Пример #1
0
        public void TryRead(byte[] value, byte[] data)
        {
            MsgPackSpec.TryReadBinary(data.ToSingleSegment(), out var owner, out var readSize).ShouldBeTrue();

            using (owner)
            {
                readSize.ShouldBe(data.Length);
                owner.Memory.ToArray().ShouldBe(value);
            }
        }