예제 #1
0
        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
        }
예제 #2
0
        public void Dispose()
        {
#if USE_MESSAGE_PACk
            _deserializer.Dispose();
            _deserializer = null;
#endif
            _stream.Dispose();
            _stream = null;
        }