Afficher : Delphi
C++
Préférences d'affichage
System.SysUtils.StrBufSize
De XE2 API Documentation
Delphi
function StrBufSize(const Str: PAnsiChar): Cardinal; function StrBufSize(const Str: PWideChar): Cardinal;
C++
extern PACKAGE unsigned __fastcall StrBufSize(const char * Str)/* overload */;
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
| function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Renvoie le nombre de caractères maximal pouvant être placés dans un tampon alloué par StrAlloc.
StrBufSize renvoie le nombre d'octets dans Str, y compris l'octet du caractère de fin.
Remarque : Si Str ne pointe pas sur un tampon de chaîne alloué par StrAlloc ou StrNew, aucun message n'est renvoyé et le résultat est aléatoire.