<filename>python/DeepSeaScene/AttachmentRef.py
# automatically generated by the FlatBuffers compiler, do not modify

# namespace: DeepSeaScene

import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()

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

    @classmethod
    def SizeOf(cls):
        return 8

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

    # AttachmentRef
    def Index(self): return self._tab.Get(flatbuffers.number_types.Uint32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(0))
    # AttachmentRef
    def Resolve(self): return self._tab.Get(flatbuffers.number_types.BoolFlags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(4))

def CreateAttachmentRef(builder, index, resolve):
    builder.Prep(4, 8)
    builder.Pad(3)
    builder.PrependBool(resolve)
    builder.PrependUint32(index)
    return builder.Offset()

<filename>python/DeepSeaScene/AttachmentRef.py
# automatically generated by the FlatBuffers compiler, do not modify

# namespace: DeepSeaScene

import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()

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

    @classmethod
    def SizeOf(cls):
        return 8

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

    # AttachmentRef
    def Index(self): return self._tab.Get(flatbuffers.number_types.Uint32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(0))
    # AttachmentRef
    def Resolve(self): return self._tab.Get(flatbuffers.number_types.BoolFlags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(4))

def CreateAttachmentRef(builder, index, resolve):
    builder.Prep(4, 8)
    builder.Pad(3)
    builder.PrependBool(resolve)
    builder.PrependUint32(index)
    return builder.Offset()

# automatically generated by the FlatBuffers compiler, do not modify # namespace: DeepSeaScene # AttachmentRef # AttachmentRef # AttachmentRef