LiteNetLib_Utils::​NetDataWriter
UnityObjectLink
LiteNetLib_Utils::​NetDataWriter

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

Parent

UnityObjectLink

Variables
capacity
readonly System.Int32 capacity
data
readonly System.Byte[] data
length
readonly System.Int32 length
Functions
copydata
System.Byte[] CopyData()
Returns

System.Byte[]

litenetlib_utils::​netdatawriter::​create
static LiteNetLib.Utils.NetDataWriter Create (
System.Boolean autoResize
)

Constructor replaces new;

Parameters
autoResize
System.Boolean

no description

Returns

LiteNetLib.Utils.NetDataWriter

litenetlib_utils::​netdatawriter::​create
static LiteNetLib.Utils.NetDataWriter Create (
System.Boolean autoResize,
System.Int32 initialSize
)

Constructor replaces new;

Parameters
autoResize
System.Boolean

no description

initialSize
System.Int32

no description

Returns

LiteNetLib.Utils.NetDataWriter

litenetlib_utils::​netdatawriter::​create
static LiteNetLib.Utils.NetDataWriter Create ()

Constructor replaces new;

Returns

LiteNetLib.Utils.NetDataWriter

litenetlib_utils::​netdatawriter::​fromassetbundle
static LiteNetLib.Utils.NetDataWriter 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.NetDataWriter

litenetlib_utils::​netdatawriter::​frombytes
static LiteNetLib.Utils.NetDataWriter FromBytes(
System.Byte[] bytes,
System.Int32 offset,
System.Int32 length
)

System.Byte[] bytes-no documentation

Parameters
bytes
System.Byte[]

no documentation

offset
System.Int32

no documentation length -

Returns

LiteNetLib.Utils.NetDataWriter

litenetlib_utils::​netdatawriter::​frombytes
static LiteNetLib.Utils.NetDataWriter FromBytes(
System.Byte[] bytes,
System.Boolean copy
)

System.Byte[] bytes-no documentation

Parameters
bytes
System.Byte[]

no documentation copy -

Returns

LiteNetLib.Utils.NetDataWriter

litenetlib_utils::​netdatawriter::​fromstring
static LiteNetLib.Utils.NetDataWriter FromString(
System.String value
)

System.String value-no documentation

Parameters

value -

Returns

LiteNetLib.Utils.NetDataWriter

put
System.Void Put(
System.UInt32 value
)

System.UInt32 value-no documentation

Parameters

value -

Returns

System.Void

put
System.Void Put(
System.Int32 value
)

System.Int32 value-no documentation

Parameters

value -

Returns

System.Void

put
System.Void Put(
System.UInt64 value
)

System.UInt64 value-no documentation

Parameters

value -

Returns

System.Void

put
System.Void Put(
System.Double value
)

System.Double value-no documentation

Parameters

value -

Returns

System.Void

put
System.Void Put(
System.Single value
)

System.Single value-no documentation

Parameters

value -

Returns

System.Void

put
System.Void Put(
System.Int64 value
)

System.Int64 value-no documentation

Parameters

value -

Returns

System.Void

put
System.Void Put(
System.String value,
System.Int32 maxLength
)

System.String value-no documentation

Parameters
value
System.String

no documentation maxLength -

Returns

System.Void

put
System.Void Put(
System.String value
)

System.String value-no documentation

Parameters

value -

Returns

System.Void

put
System.Void Put(
System.Net.IPEndPoint endPoint
)

System.Net.IPEndPoint endPoint-no documentation

Parameters

endPoint -

Returns

System.Void

put
System.Void Put(
System.Boolean value
)

System.Boolean value-no documentation

Parameters

value -

Returns

System.Void

put
System.Void Put(
System.Byte[] data
)

System.Byte[] data-no documentation

Parameters

data -

Returns

System.Void

put
System.Void Put(
System.Byte[] data,
System.Int32 offset,
System.Int32 length
)

System.Byte[] data-no documentation

Parameters
data
System.Byte[]

no documentation

offset
System.Int32

no documentation length -

Returns

System.Void

put
System.Void Put(
System.Byte value
)

System.Byte value-no documentation

Parameters

value -

Returns

System.Void

put
System.Void Put(
System.Int16 value
)

System.Int16 value-no documentation

Parameters

value -

Returns

System.Void

put
System.Void Put(
System.UInt16 value
)

System.UInt16 value-no documentation

Parameters

value -

Returns

System.Void

put
System.Void Put(
System.Char value
)

System.Char value-no documentation

Parameters

value -

Returns

System.Void

putarray
System.Void PutArray(
System.Boolean[] value
)

System.Boolean[] value-no documentation

Parameters

value -

Returns

System.Void

putarray
System.Void PutArray(
System.String[] value,
System.Int32 maxLength
)

System.String[] value-no documentation

Parameters
value
System.String[]

no documentation maxLength -

Returns

System.Void

putarray
System.Void PutArray(
System.UInt16[] value
)

System.UInt16[] value-no documentation

Parameters

value -

Returns

System.Void

putarray
System.Void PutArray(
System.UInt32[] value
)

System.UInt32[] value-no documentation

Parameters

value -

Returns

System.Void

putarray
System.Void PutArray(
System.Int32[] value
)

System.Int32[] value-no documentation

Parameters

value -

Returns

System.Void

putarray
System.Void PutArray(
System.UInt64[] value
)

System.UInt64[] value-no documentation

Parameters

value -

Returns

System.Void

putarray
System.Void PutArray(
System.Int64[] value
)

System.Int64[] value-no documentation

Parameters

value -

Returns

System.Void

putarray
System.Void PutArray(
System.Double[] value
)

System.Double[] value-no documentation

Parameters

value -

Returns

System.Void

putarray
System.Void PutArray(
System.Single[] value
)

System.Single[] value-no documentation

Parameters

value -

Returns

System.Void

putarray
System.Void PutArray(
System.String[] value
)

System.String[] value-no documentation

Parameters

value -

Returns

System.Void

putarray
System.Void PutArray(
System.Int16[] value
)

System.Int16[] value-no documentation

Parameters

value -

Returns

System.Void

putbool
System.Void PutBool(
System.Boolean b
)

LiteNetLibExtension,

Parameters
b
System.Boolean

no documentation

Returns

System.Void

putbyteswithlength
System.Void PutBytesWithLength(
System.Byte[] data
)

System.Byte[] data-no documentation

Parameters

data -

Returns

System.Void

putbyteswithlength
System.Void PutBytesWithLength(
System.Byte[] data,
System.Int32 offset,
System.Int32 length
)

System.Byte[] data-no documentation

Parameters
data
System.Byte[]

no documentation

offset
System.Int32

no documentation length -

Returns

System.Void

putchar
System.Void PutChar(
System.Char b
)

LiteNetLibExtension,

Parameters
b
System.Char

no documentation

Returns

System.Void

putfloat
System.Void PutFloat(
System.Single b
)

LiteNetLibExtension,

Parameters
b
System.Single

no documentation

Returns

System.Void

putint
System.Void PutInt(
System.Int32 b
)

LiteNetLibExtension,

Parameters
b
System.Int32

no documentation

Returns

System.Void

putstring
System.Void PutString(
System.String b
)

LiteNetLibExtension,

Parameters
b
System.String

no documentation

Returns

System.Void

reset
System.Void Reset(
System.Int32 size
)

System.Int32 size-no documentation

Parameters

size -

Returns

System.Void

reset
System.Void Reset()
Returns

System.Void

resizeifneed
System.Void ResizeIfNeed(
System.Int32 newSize
)

System.Int32 newSize-no documentation

Parameters

newSize -

Returns

System.Void

setposition
System.Int32 SetPosition(
System.Int32 position
)

System.Int32 position-no documentation

Parameters

position -

Returns

System.Int32