byteutils

package
v0.0.0-...-5dd4785 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0, BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatBytes

func ConcatBytes(byteSlices ...[]byte) []byte

ConcatBytes concatenates the byte slices into a new byte slice.

func ConcatBytesToString

func ConcatBytesToString(byteSlices ...[]byte) string

ConcatBytesToString concatenates the byte slices into a string.

func ReadAvailableBytesToBuffer

func ReadAvailableBytesToBuffer(target []byte, targetOffset int, source []byte, sourceOffset int, sourceLength int) int

func XORBytes

func XORBytes(dst, a, b []byte) int

XORBytes xors the bytes in a and b. The destination should have enough space, otherwise XOR will panic. Returns the number of bytes xor'd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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