示例#1
0
        public static PbfBlock Create(ReadOnlySpan <byte> block)
        {
            var result = new PbfBlock {
                Block    = block,
                Position = 0,
                Length   = block.Length
            };

            return(result);
        }
示例#2
0
 public long ReadSignedLong()
 {
     return(PbfBlock.Zag(this.ReadVarint64()));
 }
示例#3
0
 public int ReadSignedInt()
 {
     return(PbfBlock.Zag(this.ReadVarint32()));
 }