Table of Contents

Class BinarySerializer

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

Constructors

BinarySerializer()

public BinarySerializer()

BinarySerializer(int, Allocator)

public BinarySerializer(int defaultCapacity, Allocator allocator)

Parameters

defaultCapacity int
allocator Allocator

Properties

Position

public int Position { get; }

Property Value

int

buffer

public NativeArray<byte> buffer { get; }

Property Value

NativeArray<byte>

Methods

Dispose()

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

public void Dispose()

WriteBool(bool)

public void WriteBool(bool value)

Parameters

value bool

WriteByte(byte)

public void WriteByte(byte value)

Parameters

value byte

WriteBytes(NativeArray<byte>)

public void WriteBytes(NativeArray<byte> value)

Parameters

value NativeArray<byte>

WriteFloat(float)

public void WriteFloat(float value)

Parameters

value float

WriteFloat2(float2)

public void WriteFloat2(float2 value)

Parameters

value float2

WriteFloat3(float3)

public void WriteFloat3(float3 value)

Parameters

value float3

WriteFloat4(float4)

public void WriteFloat4(float4 value)

Parameters

value float4

WriteGuid(Guid)

public void WriteGuid(Guid guid)

Parameters

guid Guid

WriteHalf(half)

public void WriteHalf(half value)

Parameters

value half

WriteInt(int)

public void WriteInt(int value)

Parameters

value int

WriteInt2(int2)

public void WriteInt2(int2 value)

Parameters

value int2

WriteInt3(int3)

public void WriteInt3(int3 value)

Parameters

value int3

WriteInt4(int4)

public void WriteInt4(int4 value)

Parameters

value int4

WriteLong(long)

public void WriteLong(long value)

Parameters

value long

WriteOptionableLong(Optionable<long>)

public void WriteOptionableLong(Optionable<long> value)

Parameters

value Optionable<long>

WriteString(string, Encoding)

public void WriteString(string comment, Encoding encoding)

Parameters

comment string
encoding Encoding

WriteUInt(uint)

public void WriteUInt(uint value)

Parameters

value uint

WriteUInt2(uint2)

public void WriteUInt2(uint2 value)

Parameters

value uint2

WriteUInt3(uint3)

public void WriteUInt3(uint3 value)

Parameters

value uint3

WriteUInt4(uint4)

public void WriteUInt4(uint4 value)

Parameters

value uint4

WriteUlong(ulong)

public void WriteUlong(ulong value)

Parameters

value ulong

WriteUshort(ushort)

public void WriteUshort(ushort value)

Parameters

value ushort