public static uint NextUInt(this IBufferedArray buffer, IByteConverter converter) { SharedContracts(buffer, converter); buffer.BufferNextExceptionChecking(ByteLength.UInt); return(converter.ToUInt(buffer.Buffer, 0)); }
public static bool TryNextUInt(this IBufferedArray buffer, IByteConverter converter, out uint value) { SharedContracts(buffer, converter); if (buffer.TryBufferNext(ByteLength.UInt)) { value = converter.ToUInt(buffer.Buffer, 0); return(true); } else { value = default(uint); return(false); } }
public static uint ToUInt(this IByteConverter converter, byte[] buffer, int index) { Contracts.Requires.That(converter != null); return(converter.ToUInt(buffer, ref index)); }