public MessageReader(byte[] buffer, int index) { _stream = new System.IO.MemoryStream(buffer, index, buffer.Length); #if USE_MESSAGE_PACK _deserializer = new Colopl.Serialization.MsgPack.Deserializer(_stream); #endif }
public void Dispose() { #if USE_MESSAGE_PACk _deserializer.Dispose(); _deserializer = null; #endif _stream.Dispose(); _stream = null; }