unbbf

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MediaTypeUnknown = 0x00
	MediaTypeAVIF    = 0x01
	MediaTypePNG     = 0x02
	MediaTypeWEBP    = 0x03
	MediaTypeJXL     = 0x04
	MediaTypeBMP     = 0x05
	MediaTypeGIF     = 0x07
	MediaTypeTIFF    = 0x08
	MediaTypeJPG     = 0x09
)

BBF Media types

Variables

This section is empty.

Functions

func ExtractFile

func ExtractFile(ctx context.Context, targetDirectory string, filename string, reporter progress.Reporter) error

ExtractFile extracts all pages from a BBF archive

func ExtractFromReader

func ExtractFromReader(ctx context.Context, targetDirectory string, stream io.Reader, reporter progress.Reporter) error

ExtractFromReader writes a BBF stream to a temporary file, then extracts it. BBF files require seeking because the footer is at the end of the file.

func TopLevelEntries added in v1.2.0

func TopLevelEntries(ctx context.Context, filename string, limit int) ([]string, error)

TopLevelEntries returns synthetic page names from the BBF page count.

Types

This section is empty.

Jump to

Keyboard shortcuts

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