libstone

package module
v0.0.0-...-092eee8 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoStone is returned when the magic number doesn't match
	// [MagicNumber].
	ErrNoStone = errors.New("data is not a stone archive")
)

Functions

This section is empty.

Types

type Prelude

type Prelude struct {
	Data PreludeData

	// Version is the version of this stone archive.
	Version Version
}

Prelude is the header of the stone format.

func ReadPrelude

func ReadPrelude(src io.Reader) (Prelude, error)

type PreludeData

type PreludeData [24]byte

PreludeData is an agnostic array of bytes extending the base Prelude. Its meaning varies according to Version.

type Version

type Version uint32

Version is the stone format version contained inside the Prelude.

const (
	// V1 is the first version of the stone format.
	V1 Version = iota + 1
)

Directories

Path Synopsis
internal
cli

Jump to

Keyboard shortcuts

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