表示: Delphi C++
表示設定

System.SysUtils.StrBufSize

提供: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 */;

プロパティ

種類 可視性 ソース ユニット
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

説明

StrAlloc で割り当てた文字列バッファに格納できる最大文字数を返します。

StrBufSize 関数は,終了文字のバイトも含めた Str のバイト数を返します。

メモ:  Str が StrAlloc または StrNew で割り当てた文字列バッファを指していない場合,エラーメッセージは返されませんが,予測できない結果になります。

関連項目

以前のバージョン
他の言語