/// <summary> /// Parses a <see cref="uint"/> from the specified <see cref="ReadableBuffer"/> /// </summary> /// <param name="buffer">The <see cref="ReadableBuffer"/> to parse</param> public static uint GetUInt32(this ReadableBuffer buffer) { uint value; int consumed; if (!buffer.TryParseUInt32(out value, out consumed)) { throw new InvalidOperationException("could not parse uint"); } return(value); }