TTMSFNCWebSocketFrame.UnMask Method
Applies the masking transform to a payload in place, returning the transformed bytes.
API unit family: TMSFNCWebSocketCommon
Declaring type: TTMSFNCWebSocketFrame
Syntax
class function UnMask(var payload: TBytes; Key: Integer; Offset: Integer = 0): TBytes;
Remarks
The masking operation is symmetric, so the same call both masks and unmasks data.
Parameters
| Name | Description |
|---|---|
payload |
Payload bytes that are masked or unmasked in place. |
Key |
Masking key applied byte by byte. |
Offset |
Index at which the transform starts; bytes before the offset are left unchanged. Defaults to 0. |
Returns
The transformed payload bytes.