fb

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2026 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fb contains FlatBuffers-generated code for the blob index format.

This package is auto-generated by the FlatBuffers compiler. Do not edit directly. Regenerate using: flatc --go --go-namespace fb -o internal schema/index.fbs

Index

Constants

This section is empty.

Variables

View Source
var EnumNamesCompression = map[Compression]string{
	CompressionNone: "None",
	CompressionZstd: "Zstd",
}
View Source
var EnumNamesHashAlgorithm = map[HashAlgorithm]string{
	HashAlgorithmSHA256: "SHA256",
}
View Source
var EnumValuesCompression = map[string]Compression{
	"None": CompressionNone,
	"Zstd": CompressionZstd,
}
View Source
var EnumValuesHashAlgorithm = map[string]HashAlgorithm{
	"SHA256": HashAlgorithmSHA256,
}

Functions

func EntryAddCompression

func EntryAddCompression(builder *flatbuffers.Builder, compression Compression)

func EntryAddDataOffset

func EntryAddDataOffset(builder *flatbuffers.Builder, dataOffset uint64)

func EntryAddDataSize

func EntryAddDataSize(builder *flatbuffers.Builder, dataSize uint64)

func EntryAddGid

func EntryAddGid(builder *flatbuffers.Builder, gid uint32)

func EntryAddHash

func EntryAddHash(builder *flatbuffers.Builder, hash flatbuffers.UOffsetT)

func EntryAddMode

func EntryAddMode(builder *flatbuffers.Builder, mode uint32)

func EntryAddMtimeNs

func EntryAddMtimeNs(builder *flatbuffers.Builder, mtimeNs int64)

func EntryAddOriginalSize

func EntryAddOriginalSize(builder *flatbuffers.Builder, originalSize uint64)

func EntryAddPath

func EntryAddPath(builder *flatbuffers.Builder, path flatbuffers.UOffsetT)

func EntryAddUid

func EntryAddUid(builder *flatbuffers.Builder, uid uint32)

func EntryEnd

func EntryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func EntryKeyCompare

func EntryKeyCompare(o1, o2 flatbuffers.UOffsetT, buf []byte) bool

func EntryStart

func EntryStart(builder *flatbuffers.Builder)

func EntryStartHashVector

func EntryStartHashVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func FinishEntryBuffer

func FinishEntryBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT)

func FinishIndexBuffer

func FinishIndexBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT)

func FinishSizePrefixedEntryBuffer

func FinishSizePrefixedEntryBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT)

func FinishSizePrefixedIndexBuffer

func FinishSizePrefixedIndexBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT)

func IndexAddDataHash

func IndexAddDataHash(builder *flatbuffers.Builder, dataHash flatbuffers.UOffsetT)

func IndexAddDataSize

func IndexAddDataSize(builder *flatbuffers.Builder, dataSize uint64)

func IndexAddEntries

func IndexAddEntries(builder *flatbuffers.Builder, entries flatbuffers.UOffsetT)

func IndexAddHashAlgorithm

func IndexAddHashAlgorithm(builder *flatbuffers.Builder, hashAlgorithm HashAlgorithm)

func IndexAddVersion

func IndexAddVersion(builder *flatbuffers.Builder, version uint32)

func IndexEnd

func IndexEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func IndexStart

func IndexStart(builder *flatbuffers.Builder)

func IndexStartDataHashVector

func IndexStartDataHashVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func IndexStartEntriesVector

func IndexStartEntriesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

Types

type Compression

type Compression int8
const (
	CompressionNone Compression = 0
	CompressionZstd Compression = 1
)

func (Compression) String

func (v Compression) String() string

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

func GetRootAsEntry

func GetRootAsEntry(buf []byte, offset flatbuffers.UOffsetT) *Entry

func GetSizePrefixedRootAsEntry

func GetSizePrefixedRootAsEntry(buf []byte, offset flatbuffers.UOffsetT) *Entry

func (*Entry) Compression

func (rcv *Entry) Compression() Compression

func (*Entry) DataOffset

func (rcv *Entry) DataOffset() uint64

func (*Entry) DataSize

func (rcv *Entry) DataSize() uint64

func (*Entry) Gid

func (rcv *Entry) Gid() uint32

func (*Entry) Hash

func (rcv *Entry) Hash(j int) byte

func (*Entry) HashBytes

func (rcv *Entry) HashBytes() []byte

func (*Entry) HashLength

func (rcv *Entry) HashLength() int

func (*Entry) Init

func (rcv *Entry) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Entry) LookupByKey

func (rcv *Entry) LookupByKey(key string, vectorLocation flatbuffers.UOffsetT, buf []byte) bool

func (*Entry) Mode

func (rcv *Entry) Mode() uint32

func (*Entry) MtimeNs

func (rcv *Entry) MtimeNs() int64

func (*Entry) MutateCompression

func (rcv *Entry) MutateCompression(n Compression) bool

func (*Entry) MutateDataOffset

func (rcv *Entry) MutateDataOffset(n uint64) bool

func (*Entry) MutateDataSize

func (rcv *Entry) MutateDataSize(n uint64) bool

func (*Entry) MutateGid

func (rcv *Entry) MutateGid(n uint32) bool

func (*Entry) MutateHash

func (rcv *Entry) MutateHash(j int, n byte) bool

func (*Entry) MutateMode

func (rcv *Entry) MutateMode(n uint32) bool

func (*Entry) MutateMtimeNs

func (rcv *Entry) MutateMtimeNs(n int64) bool

func (*Entry) MutateOriginalSize

func (rcv *Entry) MutateOriginalSize(n uint64) bool

func (*Entry) MutateUid

func (rcv *Entry) MutateUid(n uint32) bool

func (*Entry) OriginalSize

func (rcv *Entry) OriginalSize() uint64

func (*Entry) Path

func (rcv *Entry) Path() []byte

func (*Entry) Table

func (rcv *Entry) Table() flatbuffers.Table

func (*Entry) Uid

func (rcv *Entry) Uid() uint32

type HashAlgorithm

type HashAlgorithm int8
const (
	HashAlgorithmSHA256 HashAlgorithm = 0
)

func (HashAlgorithm) String

func (v HashAlgorithm) String() string

type Index

type Index struct {
	// contains filtered or unexported fields
}

func GetRootAsIndex

func GetRootAsIndex(buf []byte, offset flatbuffers.UOffsetT) *Index

func GetSizePrefixedRootAsIndex

func GetSizePrefixedRootAsIndex(buf []byte, offset flatbuffers.UOffsetT) *Index

func (*Index) DataHash

func (rcv *Index) DataHash(j int) byte

func (*Index) DataHashBytes

func (rcv *Index) DataHashBytes() []byte

func (*Index) DataHashLength

func (rcv *Index) DataHashLength() int

func (*Index) DataSize

func (rcv *Index) DataSize() uint64

func (*Index) Entries

func (rcv *Index) Entries(obj *Entry, j int) bool

func (*Index) EntriesByKey

func (rcv *Index) EntriesByKey(obj *Entry, key string) bool

func (*Index) EntriesLength

func (rcv *Index) EntriesLength() int

func (*Index) HashAlgorithm

func (rcv *Index) HashAlgorithm() HashAlgorithm

func (*Index) Init

func (rcv *Index) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Index) MutateDataHash

func (rcv *Index) MutateDataHash(j int, n byte) bool

func (*Index) MutateDataSize

func (rcv *Index) MutateDataSize(n uint64) bool

func (*Index) MutateHashAlgorithm

func (rcv *Index) MutateHashAlgorithm(n HashAlgorithm) bool

func (*Index) MutateVersion

func (rcv *Index) MutateVersion(n uint32) bool

func (*Index) Table

func (rcv *Index) Table() flatbuffers.Table

func (*Index) Version

func (rcv *Index) Version() uint32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL