fourbytes

package
v3.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFromFiles

func GenerateFromFiles(outDir string) (err error)

GenerateFromFiles reads input files and creates four bytes database. It then sends it to writeWorkers to save chunk files.

func Verify

func Verify(chunks *map[string]mapRecord, outDir string)

Verify checks if the files written match the data

Types

type Header struct {
	Magic          uint32
	Hash           common.Hash
	SignatureCount uint32
}

type SignatureRecord

type SignatureRecord struct {
	Signature common.Hash
	// Where the string representation starts in the file?
	Offset uint32
	// How long is the string representation?
	Len uint32
}

type StringRecord

type StringRecord struct {
	Value string
	Len   int
}

Jump to

Keyboard shortcuts

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