types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package types contains definitions for types shared across multiple file formats.

Index

Constants

This section is empty.

Variables

View Source
var EnumNamesCompression = map[Compression]string{
	Compressionuncompressed: "uncompressed",
	Compressionsnappy:       "snappy",
	Compressionzstd:         "zstd",
}
View Source
var EnumValuesCompression = map[string]Compression{
	"uncompressed": Compressionuncompressed,
	"snappy":       Compressionsnappy,
	"zstd":         Compressionzstd,
}

Functions

func FinishHashBuffer

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

func FinishSizePrefixedHashBuffer

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

func HashAddAlgorithm

func HashAddAlgorithm(builder *flatbuffers.Builder, algorithm flatbuffers.UOffsetT)

func HashAddDigest

func HashAddDigest(builder *flatbuffers.Builder, digest flatbuffers.UOffsetT)

func HashEnd

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

func HashStart

func HashStart(builder *flatbuffers.Builder)

Types

type Compression

type Compression uint32
const (
	Compressionuncompressed Compression = 0
	Compressionsnappy       Compression = 1
	Compressionzstd         Compression = 2
)

func (Compression) String

func (v Compression) String() string

type Hash

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

func GetRootAsHash

func GetRootAsHash(buf []byte, offset flatbuffers.UOffsetT) *Hash

func GetSizePrefixedRootAsHash

func GetSizePrefixedRootAsHash(buf []byte, offset flatbuffers.UOffsetT) *Hash

func (*Hash) Algorithm

func (rcv *Hash) Algorithm() []byte

func (*Hash) Digest

func (rcv *Hash) Digest() []byte

func (*Hash) Init

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

func (*Hash) Table

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

Jump to

Keyboard shortcuts

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