Ejemplo n.º 1
0
        public MessageWriter(int size)
        {
            _stream = new System.IO.MemoryStream(size);
#if USE_MESSAGE_PACk
            _serializer = new Colopl.Serialization.MsgPack.Serializer(_stream);
#endif
        }
Ejemplo n.º 2
0
        public void Dispose()
        {
            _stream.Dispose();
            _stream = null;
#if USE_MESSAGE_PACK
            _serializer.Dispose();
            _serializer = null;
#endif
        }