mem

package
Version: v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blend

func Blend(dst []byte, src []byte) int

Blend copies the one-bits of src to dst, returning the number of bytes written.

func ContainsByte

func ContainsByte(haystack []byte, needle byte) bool

func Copy

func Copy(dst []byte, src []byte) int

Copy copies src to dst, returning the number of bytes written.

func CountPair added in v0.2.2

func CountPair(b []byte, n int) int

CountPair returns the byte index of the first pair of two equal elements of size n.

If no pairs of equal elements were found, len(b) is returned.

func IndexPair added in v0.2.2

func IndexPair(b []byte, n int) int

IndexPair returns the byte index of the first pair of two equal elements of size n.

If no pairs of equal elements were found, -1 is returned.

func Mask

func Mask(dst []byte, src []byte) int

Mask set bits of dst to zero and copies the one-bits of src to dst, returning the number of bytes written.

Types

This section is empty.

Jump to

Keyboard shortcuts

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