package mem
import "github.com/segmentio/asm/mem"
Index ¶
- func Blend(dst, src []byte) int
- func ContainsByte(haystack []byte, needle byte) bool
- func Copy(dst, src []byte) int
- func CountPair(b []byte, n int) int
- func IndexPair(b []byte, n int) int
- func Mask(dst, src []byte) int
Functions ¶
func Blend ¶
Blend performs a OR of src and dst into dst, returning the number of bytes written to dst.
func ContainsByte ¶
func Copy ¶
func CountPair ¶
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 ¶
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 ¶
Mask performs a AND of src and dst into dst, returning the number of bytes written to dst.
Source Files ¶
blend.go blend_default.go contains.go contains_default.go copy.go copy_default.go count_pair.go count_pair_default.go index_pair.go index_pair_default.go mask.go mask_default.go mem.go
- Version
- v1.1.3
- Published
- Dec 8, 2021
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 6 seconds ago –
Tools for package owners.