# automatically generated by the FlatBuffers compiler, do not modify

# namespace: apemodefb

import flatbuffers

class SubsetFb(object):
    __slots__ = ['_tab']

    # SubsetFb
    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    # SubsetFb
    def MaterialId(self): return self._tab.Get(flatbuffers.number_types.Uint32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(0))
    # SubsetFb
    def BaseIndex(self): return self._tab.Get(flatbuffers.number_types.Uint32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(4))
    # SubsetFb
    def IndexCount(self): return self._tab.Get(flatbuffers.number_types.Uint32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(8))

def CreateSubsetFb(builder, materialId, baseIndex, indexCount):
    builder.Prep(4, 12)
    builder.PrependUint32(indexCount)
    builder.PrependUint32(baseIndex)
    builder.PrependUint32(materialId)
    return builder.Offset()
