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); }
protected override void Initialize(IMessageBufferReader reader) { Offset = reader.PushShortFromStream(); Count = reader.PushShortFromStream(); }
protected override void Initialize(IMessageBufferReader reader) { base.Initialize(reader); Value = reader.PushShortFromStream(); }