示例#1
0
        public bool TryVisitValue(VisitArgs args, out byte[] value)
        {
            if (args.Index > 0 && !MoveToIndex(args.Index))
            {
                value = null;
                return(false);
            }
            var length = _reader.ReadByte();

            if (length == BinaryZPacker.Null)
            {
                value = null;
                return(true);
            }

            var lengthToRead = length == BinaryZPacker.VariabelLength ? _reader.ReadV() : length;

            value = _reader.ReadBlob(lengthToRead);
            return(true);
        }