Table of Contents

Class Writer

Namespace
Mech3DotNet.Exchange
Assembly
Mech3DotNet.dll

A writer of binary exchange data. Driven by a serializer.

public class Writer : IDisposable
Inheritance
Writer
Implements
Inherited Members

Constructors

Writer()

public Writer()

Methods

Dispose()

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

public void Dispose()

GetBuffer()

public byte[] GetBuffer()

Returns

byte[]

WriteBool(bool)

public void WriteBool(bool v)

Parameters

v bool

WriteBytes(byte[])

public void WriteBytes(byte[] v)

Parameters

v byte[]

WriteEnumNewType(uint)

public void WriteEnumNewType(uint variantIndex)

Parameters

variantIndex uint

WriteEnumUnit(uint)

public void WriteEnumUnit(uint variantIndex)

Parameters

variantIndex uint

WriteF32(float)

public void WriteF32(float v)

Parameters

v float

WriteI16(short)

public void WriteI16(short v)

Parameters

v short

WriteI32(int)

public void WriteI32(int v)

Parameters

v int

WriteI8(sbyte)

public void WriteI8(sbyte v)

Parameters

v sbyte

WriteNone()

public void WriteNone()

WriteSeqSized(ulong)

public void WriteSeqSized(ulong len)

Parameters

len ulong

WriteSome()

public void WriteSome()

WriteStr(string)

public void WriteStr(string v)

Parameters

v string

WriteStruct(ulong)

public void WriteStruct(ulong len)

Parameters

len ulong

WriteU16(ushort)

public void WriteU16(ushort v)

Parameters

v ushort

WriteU32(uint)

public void WriteU32(uint v)

Parameters

v uint

WriteU64(ulong)

public void WriteU64(ulong v)

Parameters

v ulong

WriteU8(byte)

public void WriteU8(byte v)

Parameters

v byte