// Code generated by the FlatBuffers compiler. DO NOT EDIT.

package fbsemantic

import (
	flatbuffers "github.com/google/flatbuffers/go"
)

type Basic struct {
	_tab flatbuffers.Table
}

func GetRootAsBasic(buf []byte, offset flatbuffers.UOffsetT) *Basic {
	n := flatbuffers.GetUOffsetT(buf[offset:])
	x := &Basic{}
	x.Init(buf, n+offset)
	return x
}

func (rcv *Basic) Init(buf []byte, i flatbuffers.UOffsetT) {
	rcv._tab.Bytes = buf
	rcv._tab.Pos = i
}

func (rcv *Basic) Table() flatbuffers.Table {
	return rcv._tab
}

func (rcv *Basic) T() Type {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
	if o != 0 {
		return rcv._tab.GetByte(o + rcv._tab.Pos)
	}
	return 0
}

func (rcv *Basic) MutateT(n Type) bool {
	return rcv._tab.MutateByteSlot(4, n)
}

func BasicStart(builder *flatbuffers.Builder) {
	builder.StartObject(1)
}
func BasicAddT(builder *flatbuffers.Builder, t byte) {
	builder.PrependByteSlot(0, t, 0)
}
func BasicEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
	return builder.EndObject()
}
