Skip to content

Mirror::SimpleWeb::MessageProcessor

Public Functions

Name
bool NeedToReadShortLength(byte [] buffer)
int GetOpcode(byte [] buffer)
int GetPayloadLength(byte [] buffer)
void ValidateHeader(byte [] buffer, int maxLength, bool expectMask)
void ToggleMask(byte [] src, int sourceOffset, int messageLength, byte [] maskBuffer, int maskOffset)
void ToggleMask(byte [] src, int sourceOffset, ArrayBuffer dst, int messageLength, byte [] maskBuffer, int maskOffset)
void ToggleMask(byte [] src, int srcOffset, byte [] dst, int dstOffset, int messageLength, byte [] maskBuffer, int maskOffset)

Public Functions Documentation

function NeedToReadShortLength

static inline bool NeedToReadShortLength(
    byte [] buffer
)

function GetOpcode

static inline int GetOpcode(
    byte [] buffer
)

function GetPayloadLength

static inline int GetPayloadLength(
    byte [] buffer
)

function ValidateHeader

static inline void ValidateHeader(
    byte [] buffer,
    int maxLength,
    bool expectMask
)

function ToggleMask

static inline void ToggleMask(
    byte [] src,
    int sourceOffset,
    int messageLength,
    byte [] maskBuffer,
    int maskOffset
)

function ToggleMask

static inline void ToggleMask(
    byte [] src,
    int sourceOffset,
    ArrayBuffer dst,
    int messageLength,
    byte [] maskBuffer,
    int maskOffset
)

function ToggleMask

static inline void ToggleMask(
    byte [] src,
    int srcOffset,
    byte [] dst,
    int dstOffset,
    int messageLength,
    byte [] maskBuffer,
    int maskOffset
)

Updated on 20 January 2021 at 20:00:04 UTC