flatbuffers & transcoders

This commit is contained in:
Ilia Denisov
2026-03-31 19:16:34 +02:00
committed by GitHub
parent 6e01d73a5e
commit f616e3f5ca
75 changed files with 10540 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
// Code generated by the FlatBuffers compiler. DO NOT EDIT.
package report
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) Hi() uint64 {
return rcv._tab.GetUint64(rcv._tab.Pos + flatbuffers.UOffsetT(0))
}
func (rcv *UUID) MutateHi(n uint64) bool {
return rcv._tab.MutateUint64(rcv._tab.Pos+flatbuffers.UOffsetT(0), n)
}
func (rcv *UUID) Lo() uint64 {
return rcv._tab.GetUint64(rcv._tab.Pos + flatbuffers.UOffsetT(8))
}
func (rcv *UUID) MutateLo(n uint64) bool {
return rcv._tab.MutateUint64(rcv._tab.Pos+flatbuffers.UOffsetT(8), n)
}
func CreateUUID(builder *flatbuffers.Builder, hi uint64, lo uint64) flatbuffers.UOffsetT {
builder.Prep(8, 16)
builder.PrependUint64(lo)
builder.PrependUint64(hi)
return builder.Offset()
}