data

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package data provides routines for interpreting byte slices to []T without a copy.

Index

Constants

This section is empty.

Variables

View Source
var BitmapMarger = &pebble.Merger{
	Merge: func(key, value []byte) (pebble.ValueMerger, error) {
		ra := roaring.FromBufferWithCopy(value)
		return ra, nil
	},
	Name: "vince.BitmapMerger",
}

Functions

func Bytes

func Bytes[T any](in []T) []byte

func Data

func Data[T any](in []byte) []T

func Get added in v1.5.1

func Get(db *pebble.DB, key []byte, value func(val []byte) error) error

func Has added in v1.5.1

func Has(db *pebble.DB, key []byte) bool

func Open added in v1.5.1

func Open(path string, o *pebble.Options) (*pebble.DB, error)

func Prefix added in v1.5.1

func Prefix(db *pebble.DB, prefix []byte, f func(key, value []byte) error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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