public unsafe uint GetUint(int offset) { AssertOffsetAndLength(offset, sizeof(uint)); fixed (byte* ptr = _buffer) { return BitConverter.IsLittleEndian ? *(uint*)(ptr + offset) : ReverseBytes(*(uint*)(ptr + offset)); } }
public bool MoveNext() { if (_pos >= _end) { return(false); } Current = _buffer.GetUint(_pos); _pos += Size; return(true); }