コード例 #1
0
 /// <summary>
 /// Reads a varint from the input one byte at a time, so that it does not
 /// read any bytes after the end of the varint. If you simply wrapped the
 /// stream in a CodedInputStream and used ReadRawVarint32(Stream)
 /// then you would probably end up reading past the end of the varint since
 /// CodedInputStream buffers its input.
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 internal static uint ReadRawVarint32(Stream input)
 {
     return(ParsingPrimitives.ReadRawVarint32(input));
 }