core

package
v0.0.0-...-7b85739 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotSplitBytes = errors.New(
	"byte array can not be split given size vector",
)

ErrCannotSplitBytes is returned when a byte slice cannot be split evenly with the given size array.

Functions

func CompressBytes

func CompressBytes(src []byte) []byte

CompressBytes returns a compressed byte slice.

func DecompressBytes

func DecompressBytes(src []byte) []byte

DecompressBytes returns a decompressed byte slice.

func SplitBytes

func SplitBytes(bytes []byte, sizes []uint32) ([][]byte, error)

SplitBytes splits a []byte n times.

Types

This section is empty.

Jump to

Keyboard shortcuts

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