public static TestPacket1 D(ReadOnlyMemory <byte> buffer) { var res = new TestPacket1(); res.Value = buffer.Span.ReadInt(); return(res); }
public static ushort S(TestPacket1 message, Span <byte> buffer) { message.Value.WriteTo(buffer); return(1000); }