System.SysUtils.TMarshaller.InOutString
Delphi
function InOutString(SB: TStringBuilder; MaxLen: Integer): TPtrWrapper;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas | 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
.