Table of Contents

Class BinaryDeserializer

Namespace
Zorro.Core.Serizalization
Assembly
Zorro.Core.Runtime.dll
public class BinaryDeserializer : IDisposable
Inheritance
BinaryDeserializer
Implements
Inherited Members
Extension Methods

Constructors

BinaryDeserializer(byte[], Allocator)

public BinaryDeserializer(byte[] buffer, Allocator allocator)

Parameters

buffer byte[]
allocator Allocator

BinaryDeserializer(NativeArray<byte>)

public BinaryDeserializer(NativeArray<byte> buffer)

Parameters

buffer NativeArray<byte>

BinaryDeserializer(BinarySerializer)

public BinaryDeserializer(BinarySerializer serializer)

Parameters

serializer BinarySerializer

Fields

buffer

public NativeArray<byte> buffer

Field Value

NativeArray<byte>

position

public int position

Field Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

ReadBool()

public bool ReadBool()

Returns

bool

ReadByte()

public byte ReadByte()

Returns

byte

ReadBytes(int, Allocator)

public NativeArray<byte> ReadBytes(int count, Allocator allocator)

Parameters

count int
allocator Allocator

Returns

NativeArray<byte>

ReadFloat()

public float ReadFloat()

Returns

float

ReadFloat2()

public float2 ReadFloat2()

Returns

float2

ReadFloat3()

public float3 ReadFloat3()

Returns

float3

ReadFloat4()

public float4 ReadFloat4()

Returns

float4

ReadGuid()

public Guid ReadGuid()

Returns

Guid

ReadHalf()

public half ReadHalf()

Returns

half

ReadInt()

public int ReadInt()

Returns

int

ReadInt2()

public int2 ReadInt2()

Returns

int2

ReadInt3()

public int3 ReadInt3()

Returns

int3

ReadInt4()

public int4 ReadInt4()

Returns

int4

ReadLong()

public long ReadLong()

Returns

long

ReadString(Encoding)

public string ReadString(Encoding encoding)

Parameters

encoding Encoding

Returns

string

ReadUInt()

public uint ReadUInt()

Returns

uint

ReadUInt2()

public uint2 ReadUInt2()

Returns

uint2

ReadUInt3()

public uint3 ReadUInt3()

Returns

uint3

ReadUInt4()

public uint4 ReadUInt4()

Returns

uint4

ReadUShort()

public ushort ReadUShort()

Returns

ushort

ReadUlong()

public ulong ReadUlong()

Returns

ulong