Skip to main content
Version: 2.x

Interface IMsgPackWriter

General Msgpack interface that will be used for sending RPC to the server.

Assembly: cs.temp.dll.dll
Declaration
public interface IMsgPackWriter : IDisposable

Properties

Encoding

Declaration
Encoding Encoding { get; }

Methods

Append(byte[])

Declaration
void Append(byte[] bytes)
Parameters
TypeName
System.Byte[]bytes

GetBuffer(out ArraySegment<byte>)

Declaration
bool GetBuffer(out ArraySegment<byte> buffer)
Returns

System.Boolean

Parameters
TypeName
Odin.ArraySegment<System.Byte>buffer

Clear()

Declaration
void Clear()

GetBytes()

Declaration
byte[] GetBytes()
Returns

System.Byte[]

GetLength()

Declaration
long GetLength()
Returns

System.Int64

Write(int)

Declaration
int Write(int value)
Returns

System.Int32

Parameters
TypeName
System.Int32value

Write(uint)

Declaration
int Write(uint value)
Returns

System.Int32

Parameters
TypeName
System.UInt32value

WriteArrayHeader(uint)

Declaration
int WriteArrayHeader(uint count)
Returns

System.Int32

Parameters
TypeName
System.UInt32count

WriteBinary(byte[])

Declaration
int WriteBinary(byte[] value)
Returns

System.Int32

Parameters
TypeName
System.Byte[]value

WriteBool(bool)

Declaration
void WriteBool(bool value)
Parameters
TypeName
System.Booleanvalue

WriteByte(byte)

Declaration
void WriteByte(byte value)
Parameters
TypeName
System.Bytevalue

WriteDouble(double)

Declaration
void WriteDouble(double value)
Parameters
TypeName
System.Doublevalue

WriteFloat(float)

Declaration
void WriteFloat(float value)
Parameters
TypeName
System.Singlevalue

WriteInt(int)

Declaration
void WriteInt(int value)
Parameters
TypeName
System.Int32value

WriteLong(long)

Declaration
void WriteLong(long value)
Parameters
TypeName
System.Int64value

WriteMapHeader(uint)

Declaration
int WriteMapHeader(uint count)
Returns

System.Int32

Parameters
TypeName
System.UInt32count

WriteSByte(sbyte)

Declaration
void WriteSByte(sbyte value)
Parameters
TypeName
System.SBytevalue

WriteShort(short)

Declaration
void WriteShort(short value)
Parameters
TypeName
System.Int16value

WriteString(string)

Declaration
int WriteString(string value)
Returns

System.Int32

Parameters
TypeName
System.Stringvalue

WriteString(string, Encoding)

Declaration
int WriteString(string value, Encoding encoding)
Returns

System.Int32

Parameters
TypeName
System.Stringvalue
Odin.Encodingencoding

WriteUInt(uint)

Declaration
void WriteUInt(uint value)
Parameters
TypeName
System.UInt32value

WriteULong(ulong)

Declaration
void WriteULong(ulong value)
Parameters
TypeName
System.UInt64value

WriteUShort(ushort)

Declaration
void WriteUShort(ushort value)
Parameters
TypeName
System.UInt16value