flatbuffers

This commit is contained in:
Ilia Denisov
2026-03-22 19:43:45 +02:00
committed by GitHub
parent 73a4b0d3ec
commit d6a707d60e
13 changed files with 665 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
// Code generated by the FlatBuffers compiler. DO NOT EDIT.
package order
import (
flatbuffers "github.com/google/flatbuffers/go"
)
type uuid struct {
_tab flatbuffers.Struct
}
func (rcv *uuid) Init(buf []byte, i flatbuffers.UOffsetT) {
rcv._tab.Bytes = buf
rcv._tab.Pos = i
}
func (rcv *uuid) Table() flatbuffers.Table {
return rcv._tab.Table
}
func (rcv *uuid) Left() int64 {
return rcv._tab.GetInt64(rcv._tab.Pos + flatbuffers.UOffsetT(0))
}
func (rcv *uuid) MutateLeft(n int64) bool {
return rcv._tab.MutateInt64(rcv._tab.Pos+flatbuffers.UOffsetT(0), n)
}
func (rcv *uuid) Right() int64 {
return rcv._tab.GetInt64(rcv._tab.Pos + flatbuffers.UOffsetT(8))
}
func (rcv *uuid) MutateRight(n int64) bool {
return rcv._tab.MutateInt64(rcv._tab.Pos+flatbuffers.UOffsetT(8), n)
}
func Createuuid(builder *flatbuffers.Builder, left int64, right int64) flatbuffers.UOffsetT {
builder.Prep(8, 16)
builder.PrependInt64(right)
builder.PrependInt64(left)
return builder.Offset()
}