Example #1
0
            protected override void Initialize(IMessageBufferReader reader)
            {
                base.Initialize(reader);

                ReadCount = reader.PushShortFromStream();

                WriteOffset = reader.PushShortFromStream();
                WriteCount  = reader.PushShortFromStream();

                var byteCount = reader.PushByteFromStream();

                reader.PushFromStream(byteCount);

                MessageBuffer = new MessageBufferSpan(reader.Buffer, (ushort)(reader.Buffer.Length - byteCount - 2), byteCount);
            }
Example #2
0
 protected override void Initialize(IMessageBufferReader reader)
 {
     Offset = reader.PushShortFromStream();
     Count  = reader.PushShortFromStream();
 }
Example #3
0
            protected override void Initialize(IMessageBufferReader reader)
            {
                base.Initialize(reader);

                Value = reader.PushShortFromStream();
            }