public void TetsUnsignedByte(byte number, byte[] data) { MsgPackSpec.ReadUInt8(data, out var readSize).ShouldBe(number); readSize.ShouldBe(data.Length); }
public void ReadUnsignedByte(byte number, byte[] data) { MsgPackSpec.ReadUInt8(data.ToSingleSegment(), out var readSize).ShouldBe(number); readSize.ShouldBe(data.Length); }