System.AnsiStrings.StrBufSize
Delphi
function StrBufSize(const Str: PAnsiChar): Cardinal;
C++
extern DELPHI_PACKAGE unsigned __fastcall StrBufSize(const char * Str)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
説明
StrAlloc で割り当てた文字列バッファに格納できる最大文字数を返します。
StrBufSize 関数は,終了文字のバイトも含めた Str のバイト数を返します。
メモ: Str が StrAlloc または StrNew で割り当てた文字列バッファを指していない場合,エラーメッセージは返されませんが,予測できない結果になります。