System.AnsiStrings.StrBufSize

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function StrBufSize(const Str: PAnsiChar): Cardinal;

C++

extern DELPHI_PACKAGE unsigned __fastcall StrBufSize(const char * Str)/* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

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.

Voir aussi