LiteNetLib_Utils::​NetDataReader
UnityObjectLink
LiteNetLib_Utils::​NetDataReader
LiteNetLib::​NetPacketReader

class:/TYPE/LiteNetLib.Utils.NetDataReader//, can be loaded from an assetbundle using LiteNetLib_Utils::NetDataReader::createfromassetbundle(bundlename,prefabname) /

Parent

UnityObjectLink

Variables
availablebytes
readonly System.Int32 availablebytes
endofdata
readonly System.Boolean endofdata
isnull
readonly System.Boolean isnull
position
readonly System.Int32 position
rawdata
readonly System.Byte[] rawdata
rawdatasize
readonly System.Int32 rawdatasize
userdataoffset
readonly System.Int32 userdataoffset
userdatasize
readonly System.Int32 userdatasize
Functions
clear
System.Void Clear()
Returns

System.Void

getbool
System.Boolean GetBool()
Returns

System.Boolean

getboolarray
System.Boolean[] GetBoolArray()
Returns

System.Boolean[]

getbyte
System.Byte GetByte()
Returns

System.Byte

getbytes
System.Void GetBytes(
System.Byte[] destination,
System.Int32 start,
System.Int32 count
)

System.Byte[] destination-no documentation

Parameters
destination
System.Byte[]

no documentation

start
System.Int32

no documentation count -

Returns

System.Void

getbytes
System.Void GetBytes(
System.Byte[] destination,
System.Int32 count
)

System.Byte[] destination-no documentation

Parameters
destination
System.Byte[]

no documentation count -

Returns

System.Void

getbyteswithlength
System.Byte[] GetBytesWithLength()
Returns

System.Byte[]

getchar
System.Char GetChar()
Returns

System.Char

getdouble
System.Double GetDouble()
Returns

System.Double

getdoublearray
System.Double[] GetDoubleArray()
Returns

System.Double[]

getfloat
System.Single GetFloat()
Returns

System.Single

getfloatarray
System.Single[] GetFloatArray()
Returns

System.Single[]

getint
System.Int32 GetInt()
Returns

System.Int32

getintarray
System.Int32[] GetIntArray()
Returns

System.Int32[]

getlong
System.Int64 GetLong()
Returns

System.Int64

getlongarray
System.Int64[] GetLongArray()
Returns

System.Int64[]

getnetendpoint
System.Net.IPEndPoint GetNetEndPoint()
Returns

System.Net.IPEndPoint

getremainingbytes
System.Byte[] GetRemainingBytes()
Returns

System.Byte[]

getshort
System.Int16 GetShort()
Returns

System.Int16

getshortarray
System.Int16[] GetShortArray()
Returns

System.Int16[]

getstring
System.String GetString(
System.Int32 maxLength
)

System.Int32 maxLength-no documentation

Parameters

maxLength -

Returns

System.String

getstring
System.String GetString()
Returns

System.String

getstringarray
System.String[] GetStringArray(
System.Int32 maxStringLength
)

System.Int32 maxStringLength-no documentation

Parameters

maxStringLength -

Returns

System.String[]

getstringarray
System.String[] GetStringArray()
Returns

System.String[]

getuint
System.UInt32 GetUInt()
Returns

System.UInt32

getuintarray
System.UInt32[] GetUIntArray()
Returns

System.UInt32[]

getulong
System.UInt64 GetULong()
Returns

System.UInt64

getulongarray
System.UInt64[] GetULongArray()
Returns

System.UInt64[]

getushort
System.UInt16 GetUShort()
Returns

System.UInt16

getushortarray
System.UInt16[] GetUShortArray()
Returns

System.UInt16[]

litenetlib_utils::​netdatareader::​create
static LiteNetLib.Utils.NetDataReader Create ()

Constructor replaces new;

Returns

LiteNetLib.Utils.NetDataReader

litenetlib_utils::​netdatareader::​create
static LiteNetLib.Utils.NetDataReader Create (
LiteNetLib.Utils.NetDataWriter writer
)

Constructor replaces new;

Parameters
writer
LiteNetLib.Utils.NetDataWriter

no description

Returns

LiteNetLib.Utils.NetDataReader

litenetlib_utils::​netdatareader::​fromassetbundle
static LiteNetLib.Utils.NetDataReader CreateFromAssetBundle(
string bundle,
string objectname
)

Constructor for object from a bundle

Parameters
bundle
string

bundle name

objectname
string

object name with extension

Returns

LiteNetLib.Utils.NetDataReader

peekbool
System.Boolean PeekBool()
Returns

System.Boolean

peekbyte
System.Byte PeekByte()
Returns

System.Byte

peekchar
System.Char PeekChar()
Returns

System.Char

peekdouble
System.Double PeekDouble()
Returns

System.Double

peekfloat
System.Single PeekFloat()
Returns

System.Single

peekint
System.Int32 PeekInt()
Returns

System.Int32

peeklong
System.Int64 PeekLong()
Returns

System.Int64

peekshort
System.Int16 PeekShort()
Returns

System.Int16

peekstring
System.String PeekString(
System.Int32 maxLength
)

System.Int32 maxLength-no documentation

Parameters

maxLength -

Returns

System.String

peekstring
System.String PeekString()
Returns

System.String

peekuint
System.UInt32 PeekUInt()
Returns

System.UInt32

peekulong
System.UInt64 PeekULong()
Returns

System.UInt64

peekushort
System.UInt16 PeekUShort()
Returns

System.UInt16

setsource
System.Void SetSource(
System.Byte[] source
)

System.Byte[] source-no documentation

Parameters

source -

Returns

System.Void

setsource
System.Void SetSource(
LiteNetLib.Utils.NetDataWriter dataWriter
)

LiteNetLib.Utils.NetDataWriter dataWriter-no documentation

Parameters

dataWriter -

Returns

System.Void

setsource
System.Void SetSource(
System.Byte[] source,
System.Int32 offset,
System.Int32 maxSize
)

System.Byte[] source-no documentation

Parameters
source
System.Byte[]

no documentation

offset
System.Int32

no documentation maxSize -

Returns

System.Void

setsource
System.Void SetSource(
System.Byte[] source,
System.Int32 offset
)

System.Byte[] source-no documentation

Parameters
source
System.Byte[]

no documentation offset -

Returns

System.Void

skipbytes
System.Void SkipBytes(
System.Int32 count
)

System.Int32 count-no documentation

Parameters

count -

Returns

System.Void