Skip to main content
Table of Contents

TTMSFNCWebSocketFrame.UnMask Method

Applies the masking transform to a payload in place, returning the transformed bytes.

API unit family: TMSFNCWebSocketCommon Declaring type: TTMSFNCWebSocketFrame

Syntax

FMX.TMSFNCWebSocketCommon.hppPascalC++
class function UnMask(var payload: TBytes; Key: Integer; Offset: Integer = 0): TBytes;
__classmethod System::Sysutils::TBytes __fastcall UnMask(System::Sysutils::TBytes &payload, int Key, int Offset = 0x0);

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.