System.SysUtils.TMarshaller.InOutString
Delphi
function InOutString(SB: TStringBuilder; MaxLen: Integer): TPtrWrapper;
C++
System::TPtrWrapper __fastcall InOutString(TStringBuilder* SB, int MaxLen);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TMarshaller |
Description
Returns a wrapped pointer to a buffer.
The InOutString method returns a wrapped pointer to a buffer containing a copy of the character data in the SB TStringBuilder. The buffer is sized to allow up to MaxLen + 1 characters including the null terminator. When the marshaller is flushed or goes out of scope, the string is moved back into SB.