control

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	ControlHeader

	ChecksumIndex  *index.ChecksumIndex
	ChecksumLookup filechecksum.ChecksumLookup
}

func ParseControl

func ParseControl(data []byte) (control *Control, err error)

type ControlHeader

type ControlHeader struct {
	Version     string
	MTime       string
	FileName    string
	Blocks      uint
	BlockSize   uint
	FileLength  int64
	HashLengths ControlHeaderHashLengths
	URL         string
	SHA1        string
}

func LoadControlHeader

func LoadControlHeader(data []byte) (header ControlHeader, dataStart int, err error)

type ControlHeaderHashLengths

type ControlHeaderHashLengths struct {
	ConsecutiveMatchNeeded uint
	WeakCheckSumBytes      uint
	StrongCheckSumBytes    uint
}

Jump to

Keyboard shortcuts

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