mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 22:09:28 +02:00
* Added some clarifying comments for TWSMessage data
This commit is contained in:
parent
5ca52bcab1
commit
14b40473fc
@ -266,8 +266,13 @@ type
|
|||||||
PayLoad : TBytes;
|
PayLoad : TBytes;
|
||||||
Sequences : TFrameSequences;
|
Sequences : TFrameSequences;
|
||||||
IsText : Boolean;
|
IsText : Boolean;
|
||||||
|
// Use these only when IsText is true (PayLoad contains valid UTF-8).
|
||||||
|
// You may use try to use them when IsText is false, but there is no guarantee they will give correct results.
|
||||||
|
// Return Payload as a UTF8 string
|
||||||
Property AsString : UTF8String Read GetAsString;
|
Property AsString : UTF8String Read GetAsString;
|
||||||
|
// Return Payload as a UTF8 string
|
||||||
Property AsUTF8String : UTF8String Read GetAsString;
|
Property AsUTF8String : UTF8String Read GetAsString;
|
||||||
|
// Return Payload (assumed to contain valid UTF8) as a UTF16 string
|
||||||
Property AsUnicodeString : UnicodeString Read GetAsUnicodeString;
|
Property AsUnicodeString : UnicodeString Read GetAsUnicodeString;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user