data

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: AGPL-3.0 Imports: 5 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

This section is empty.

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

func Range added in v1.7.0

func Range(it *pebble.Iterator, lo, hi []byte, f func(key []byte, ra *ro2.Bitmap) 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