FlatBuffers.ByteBuffer.GetInt C# (CSharp) Method

GetInt() public method

public GetInt ( int offset ) : int
offset int
return int
        public int GetInt(int offset)
        {
            return (int)GetUint(offset);
        }

Usage Example

Example #1
0
    private int GetMsgID(FlatBuffers.ByteBuffer bb)
    {
        int bb_pos = bb.GetInt(0);
        int vtable = bb_pos - bb.GetInt(bb_pos);
        var o      = 4 < bb.GetShort(vtable) ? (int)bb.GetShort(vtable + 4) : 0;

        return(bb.GetInt(o + bb_pos));
    }
All Usage Examples Of FlatBuffers.ByteBuffer::GetInt