Exemple #1
0
 public void TestSignedShort(short number, byte[] data)
 {
     MsgPackSpec.ReadInt16(data, out var readSize).ShouldBe(number);
     readSize.ShouldBe(data.Length);
 }
Exemple #2
0
 public void ReadSignedShort(short number, byte[] data)
 {
     MsgPackSpec.ReadInt16(data.ToSingleSegment(), out var readSize).ShouldBe(number);
     readSize.ShouldBe(data.Length);
 }