Photon Fusion 2.1.1

NetBitBuffer.Offset Struct Reference

Represents an offset within a NetBitBuffer. More...

Public Member Functions

int GetLength (NetBitBuffer *buffer)
 Gets the length in bits from the stored offset to the current offset of the buffer.
 Offset (NetBitBuffer *buffer)
 Initializes a new instance of the Offset struct with the specified buffer.

Detailed Description

Represents an offset within a NetBitBuffer.

Constructor & Destructor Documentation

◆ Offset()

Offset ( NetBitBuffer * buffer)

Initializes a new instance of the Offset struct with the specified buffer.

Parameters
bufferThe buffer to initialize the offset from.

Member Function Documentation

◆ GetLength()

int GetLength ( NetBitBuffer * buffer)

Gets the length in bits from the stored offset to the current offset of the buffer.

Parameters
bufferThe buffer to calculate the length from.
Returns
The length in bits.