Skip to main content
Table of Contents

TTMSFNCWebSocketFrame.ToBuffer Method

Serializes the frame into the wire byte sequence, applying length encoding and masking according to the frame state.

API unit family: TMSFNCWebSocketCommon Declaring type: TTMSFNCWebSocketFrame

Syntax

FMX.TMSFNCWebSocketCommon.hppPascalC++
function ToBuffer: TBytes;
System::Sysutils::TBytes __fastcall ToBuffer();

Returns

The byte buffer ready to be written to the connection.