vccd

package
v0.0.0-...-62eada6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Magic = 0x44434356

Variables

This section is empty.

Functions

func Hash

func Hash(key string) uint32

Types

type CaptionDictionary

type CaptionDictionary struct {
	Header Header
	Lookup Entries
	Data   []uint16
}

func (*CaptionDictionary) ReadFrom

func (d *CaptionDictionary) ReadFrom(r io.Reader) (int64, error)

type Entries

type Entries []Entry

func (Entries) Find

func (e Entries) Find(key string) int

func (Entries) FindHash

func (e Entries) FindHash(hash uint32) int

func (Entries) Len

func (e Entries) Len() int

func (Entries) Less

func (e Entries) Less(i, j int) bool

func (*Entries) Pop

func (e *Entries) Pop() interface{}

func (*Entries) Push

func (e *Entries) Push(x interface{})

func (Entries) Swap

func (e Entries) Swap(i, j int)

type Entry

type Entry struct {
	Hash     uint32
	BlockNum int32
	Offset   uint16
	Length   uint16
}

func (Entry) String

func (e Entry) String(d *CaptionDictionary) string
type Header struct {
	Magic         int32
	Version       int32
	NumBlocks     int32
	BlockSize     int32
	DirectorySize int32
	DataOffset    int32
}

Jump to

Keyboard shortcuts

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