Esempio n. 1
0
 /// <summary>
 /// Read variable encoded 64-bit unsigned integer
 /// </summary>
 /// <exception cref="EndOfStreamException"/>
 public ulong ReadVarUInt64()
 {
     if (position >= end - IntegerHelper.MaxBytesVarInt64)
     {
         return(DecodeVarUInt64Checked());
     }
     return(IntegerHelper.DecodeVarUInt64(buffer, ref position));
 }