/// <summary> /// Read variable encoded 32-bit unsigned integer /// </summary> /// <exception cref="EndOfStreamException"/> public uint ReadVarUInt32() { if (position >= end - IntegerHelper.MaxBytesVarInt32) { return((uint)DecodeVarUInt64Checked()); } return(IntegerHelper.DecodeVarUInt32(buffer, ref position)); }