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
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
position
public int position
Field Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
ReadBool()
public bool ReadBool()
Returns
ReadByte()
public byte ReadByte()
Returns
ReadBytes(int, Allocator)
public NativeArray<byte> ReadBytes(int count, Allocator allocator)
Parameters
Returns
ReadFloat()
public float ReadFloat()
Returns
ReadFloat2()
public float2 ReadFloat2()
Returns
- float2
ReadFloat3()
public float3 ReadFloat3()
Returns
- float3
ReadFloat4()
public float4 ReadFloat4()
Returns
- float4
ReadGuid()
public Guid ReadGuid()
Returns
ReadHalf()
public half ReadHalf()
Returns
- half
ReadInt()
public int ReadInt()
Returns
ReadInt2()
public int2 ReadInt2()
Returns
- int2
ReadInt3()
public int3 ReadInt3()
Returns
- int3
ReadInt4()
public int4 ReadInt4()
Returns
- int4
ReadLong()
public long ReadLong()
Returns
ReadString(Encoding)
public string ReadString(Encoding encoding)
Parameters
encoding
Encoding
Returns
ReadUInt()
public uint ReadUInt()
Returns
ReadUInt2()
public uint2 ReadUInt2()
Returns
- uint2
ReadUInt3()
public uint3 ReadUInt3()
Returns
- uint3
ReadUInt4()
public uint4 ReadUInt4()
Returns
- uint4
ReadUShort()
public ushort ReadUShort()
Returns
ReadUlong()
public ulong ReadUlong()