codec

package
v0.0.0-...-f5f0bdb Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MAX_U8 ...
	MAX_U8 uint = 63
	// MAX_U16 ...
	MAX_U16 uint = 16383
	// MAX_U32 ...
	MAX_U32 uint = 1073741823
	// DEFAULT_BITLENGTH ...
	DEFAULT_BITLENGTH int = 32
)

note: https://github.com/polkadot-js/common/blob/89030f41b34e5bb815f8004861c0424bdd3337f4/packages/util/src/compact/toU8a.ts#L11

Variables

View Source
var (
	// ErrInvalidKind ...
	ErrInvalidKind = errors.New("invalid kind")
	// ErrNilKind ...
	ErrNilKind = errors.New("kind cannot be nil")
	// ErrNilInput ...
	ErrNilInput = errors.New("input cannot be nil")
	// ErrNilTarget ...
	ErrNilTarget = errors.New("target cannot be nil")
	// ErrNonTargetPointer ...
	ErrNonTargetPointer = errors.New("target must be pointer")
	// ErrInvalidLength ...
	ErrInvalidLength = errors.New("invalid length")
)

Functions

This section is empty.

Types

type Compact

type Compact []byte

Compact ...

type CompactMeta

type CompactMeta struct {
	Offset int
	Length *big.Int
}

CompactMeta ...

Jump to

Keyboard shortcuts

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