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

package scrabblefb

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

type FeedbackUnread struct {
	_tab flatbuffers.Table
}

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

func FinishFeedbackUnreadBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT) {
	builder.Finish(offset)
}

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

func FinishSizePrefixedFeedbackUnreadBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT) {
	builder.FinishSizePrefixed(offset)
}

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

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

func (rcv *FeedbackUnread) ReplyUnread() bool {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
	if o != 0 {
		return rcv._tab.GetBool(o + rcv._tab.Pos)
	}
	return false
}

func (rcv *FeedbackUnread) MutateReplyUnread(n bool) bool {
	return rcv._tab.MutateBoolSlot(4, n)
}

func FeedbackUnreadStart(builder *flatbuffers.Builder) {
	builder.StartObject(1)
}
func FeedbackUnreadAddReplyUnread(builder *flatbuffers.Builder, replyUnread bool) {
	builder.PrependBoolSlot(0, replyUnread, false)
}
func FeedbackUnreadEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
	return builder.EndObject()
}
