Photon Fusion 2.0.9

Public Member Functions | List of all members
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. More...
 
 Offset (NetBitBuffer *buffer)
 Initializes a new instance of the Offset struct with the specified buffer. More...
 

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.