vdf

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment [0xFF + 1]byte

type EntryAttrib

type EntryAttrib uint32
const (
	EntryAttribReadOnly EntryAttrib = 1
	EntryAttribHidden   EntryAttrib = 2
	EntryAttribSystem   EntryAttrib = 4
	EntryAttribArchive  EntryAttrib = 32

	EntryAttribMask EntryAttrib = EntryAttribReadOnly |
		EntryAttribHidden |
		EntryAttribSystem |
		EntryAttribArchive
)

type EntryFlag

type EntryFlag uint32
const (
	EntryFlagDirectory EntryFlag = 0x80000000
	EntryFlagLastEntry EntryFlag = 0x40000000
)

type EntryMetadata

type EntryMetadata struct {
	Name    EntryName
	Offset  size_t
	Size    size_t
	Flags   EntryFlag
	Attribs EntryAttrib
}

type EntryName

type EntryName [0x3F + 1]byte

type ExtendedEntryMetadata

type ExtendedEntryMetadata struct {
	EntryMetadata

	Path string
}
type Header struct {
	Comment Comment
	Version Version
	Params  Params
}

type Params

type Params struct {
	EntryCount  uint32
	FileCount   uint32
	TimeStamp   time_t
	DataSize    size_t
	TableOffset uint32
	EntrySize   uint32
}

type VM

type VM struct {
	Comment   string
	BaseDir   string
	VDFName   string
	Timestamp time.Time

	Files   []string
	Exclude []string
	Include []string
	// contains filtered or unexported fields
}

func ParseVM

func ParseVM(path string) (*VM, error)

func (*VM) Execute

func (vm *VM) Execute() error

type Version

type Version [0x0F + 1]byte

Jump to

Keyboard shortcuts

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