Ejemplo n.º 1
0
        public override void  write(ConnectionHandlerContext ctx, object msg)
        {
            tempBuf.MakeBufferEmpty();
            memStream.Position = 0;
            ProtoBuf.Serializer.Serialize(memStream, msg);
            int writeIndex = (int)memStream.Position;

            tempBuf.setWriteIndex(writeIndex);

            ctx.fireWrite(tempBuf);
        }