MLAPI_Serialization::​NetworkBuffer
UnityObjectLink
MLAPI_Serialization::​NetworkBuffer

class:/TYPE/MLAPI.Serialization.NetworkBuffer//, can be loaded from an assetbundle using MLAPI_Serialization::NetworkBuffer::createfromassetbundle(bundlename,prefabname) /

Parent

UnityObjectLink

Variables
bitaligned
readonly System.Boolean bitaligned
bitlength
readonly System.UInt64 bitlength
bitposition
System.UInt64 bitposition
canread
readonly System.Boolean canread
canseek
readonly System.Boolean canseek
canwrite
readonly System.Boolean canwrite
capacity
System.Int64 capacity
growthfactor
System.Single growthfactor
hasdatatoread
readonly System.Boolean hasdatatoread
length
readonly System.Int64 length
position
System.Int64 position
resizable
readonly System.Boolean resizable
Functions
copyfrom
System.Void CopyFrom(
System.IO.Stream s,
System.Int32 count
)

System.IO.Stream s-no documentation

Parameters
s
System.IO.Stream

no documentation count -

Returns

System.Void

copyfrom
System.Void CopyFrom(
MLAPI.Serialization.NetworkBuffer buffer,
System.Int32 dataCount,
System.Boolean copyBits
)

MLAPI.Serialization.NetworkBuffer buffer-no documentation

Parameters
buffer
MLAPI.Serialization.NetworkBuffer

no documentation

dataCount
System.Int32

no documentation copyBits -

Returns

System.Void

copyto
System.Void CopyTo(
System.IO.Stream stream,
System.Int32 count
)

System.IO.Stream stream-no documentation

Parameters
stream
System.IO.Stream

no documentation count -

Returns

System.Void

copyunreadfrom
System.Void CopyUnreadFrom(
System.IO.Stream s,
System.Int32 count
)

System.IO.Stream s-no documentation

Parameters
s
System.IO.Stream

no documentation count -

Returns

System.Void

flush
System.Void Flush()
Returns

System.Void

getbuffer
System.Byte[] GetBuffer()
Returns

System.Byte[]

mlapi_serialization::​networkbuffer::​create
static MLAPI.Serialization.NetworkBuffer Create (
System.Int32 capacity
)

Constructor replaces new;

Parameters
capacity
System.Int32

no description

Returns

MLAPI.Serialization.NetworkBuffer

mlapi_serialization::​networkbuffer::​create
static MLAPI.Serialization.NetworkBuffer Create (
System.Single growthFactor
)

Constructor replaces new;

Parameters
growthFactor
System.Single

no description

Returns

MLAPI.Serialization.NetworkBuffer

mlapi_serialization::​networkbuffer::​create
static MLAPI.Serialization.NetworkBuffer Create (
System.Int32 capacity,
System.Single growthFactor
)

Constructor replaces new;

Parameters
capacity
System.Int32

no description

growthFactor
System.Single

no description

Returns

MLAPI.Serialization.NetworkBuffer

mlapi_serialization::​networkbuffer::​create
static MLAPI.Serialization.NetworkBuffer Create ()

Constructor replaces new;

Returns

MLAPI.Serialization.NetworkBuffer

mlapi_serialization::​networkbuffer::​fromassetbundle
static MLAPI.Serialization.NetworkBuffer CreateFromAssetBundle(
string bundle,
string objectname
)

Constructor for object from a bundle

Parameters
bundle
string

bundle name

objectname
string

object name with extension

Returns

MLAPI.Serialization.NetworkBuffer

padbuffer
System.Void PadBuffer()
Returns

System.Void

peekbyte
System.Int32 PeekByte()
Returns

System.Int32

read
System.Int32 Read(
System.Byte[] buffer,
System.Int32 offset,
System.Int32 count
)

System.Byte[] buffer-no documentation

Parameters
buffer
System.Byte[]

no documentation

offset
System.Int32

no documentation count -

Returns

System.Int32

readbit
System.Boolean ReadBit()
Returns

System.Boolean

readbyte
System.Int32 ReadByte()
Returns

System.Int32

setlength
System.Void SetLength(
System.Int64 value
)

System.Int64 value-no documentation

Parameters

value -

Returns

System.Void

skippadbits
System.Void SkipPadBits()
Returns

System.Void

toarray
System.Byte[] ToArray()
Returns

System.Byte[]

tostring
System.String ToString()
Returns

System.String

write
System.Void Write(
System.Byte[] buffer,
System.Int32 offset,
System.Int32 count
)

System.Byte[] buffer-no documentation

Parameters
buffer
System.Byte[]

no documentation

offset
System.Int32

no documentation count -

Returns

System.Void

write
System.Void Write(
System.Byte[] buffer
)

System.Byte[] buffer-no documentation

Parameters

buffer -

Returns

System.Void

writebit
System.Void WriteBit(
System.Boolean bit
)

System.Boolean bit-no documentation

Parameters

bit -

Returns

System.Void

writebyte
System.Void WriteByte(
System.Byte value
)

System.Byte value-no documentation

Parameters

value -

Returns

System.Void