FlatBuffers.ByteBuffer.GetUint C# (CSharp) Method

GetUint() public method

public GetUint ( int offset ) : uint
offset int
return uint
        public unsafe uint GetUint(int offset)
        {
            AssertOffsetAndLength(offset, sizeof(uint));
            fixed (byte* ptr = _buffer)
            {
                return BitConverter.IsLittleEndian
                    ? *(uint*)(ptr + offset)
                    : ReverseBytes(*(uint*)(ptr + offset));
            }
        }

Usage Example

 public bool MoveNext()
 {
     if (_pos >= _end)
     {
         return(false);
     }
     Current = _buffer.GetUint(_pos);
     _pos   += Size;
     return(true);
 }
All Usage Examples Of FlatBuffers.ByteBuffer::GetUint