Skip to content

Mirror::MessagePacker

Public Functions

Name
int GetId< T >()
int GetId(Type type)
void Pack< T >(T message, NetworkWriter writer)
T Unpack< T >(byte [] data)
bool UnpackMessage(NetworkReader messageReader, out int msgType)

Public Functions Documentation

function GetId< T >

static inline int GetId< T >()

function GetId

static inline int GetId(
    Type type
)

function Pack< T >

static inline void Pack< T >(
    T message,
    NetworkWriter writer
)

function Unpack< T >

static inline T Unpack< T >(
    byte [] data
)

function UnpackMessage

static inline bool UnpackMessage(
    NetworkReader messageReader,
    out int msgType
)

Updated on 17 January 2021 at 14:41:07 UTC