sortedset

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dedupe

func Dedupe(dst, src []byte, size int) []byte

Dedupe writes to dst the deduplicated sequence of items of the given size read from src, returning the byte slice containing the result.

If dst is too small, a new slice is allocated and returned instead.

The source and destination slices may be the same to perform in-place deduplication of the elements. The behavior is undefined for any other conditions where the source and destination slices overlap.

The function panics if len(src) is not a multiple of the element size.

func Intersect added in v0.2.0

func Intersect(dst, a, b []byte, size int) []byte

func Union added in v0.2.0

func Union(dst, a, b []byte, size int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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