FlatBuffers.ByteBuffer.GetShort C# (CSharp) Method

GetShort() public method

public GetShort ( int offset ) : short
offset int
return short
        public short GetShort(int offset)
        {
            return (short)GetUshort(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::GetShort