# automatically generated by the FlatBuffers compiler, do not modify

# namespace: wamp

from autobahn import flatbuffers
from autobahn.flatbuffers.compat import import_numpy

np = import_numpy()


# Void type (table based) for use with services.
class Void(object):
    __slots__ = ["_tab"]

    @classmethod
    def GetRootAs(cls, buf, offset=0):
        n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
        x = Void()
        x.Init(buf, n + offset)
        return x

    @classmethod
    def GetRootAsVoid(cls, buf, offset=0):
        """This method is deprecated. Please switch to GetRootAs."""
        return cls.GetRootAs(buf, offset)

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


def VoidStart(builder):
    builder.StartObject(0)


def Start(builder):
    VoidStart(builder)


def VoidEnd(builder):
    return builder.EndObject()


def End(builder):
    return VoidEnd(builder)
