types

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadZiplistEntry2

func ReadZiplistEntry2(buf *util.SliceBuffer, firstByte byte) []byte

func ReadZiplistLength

func ReadZiplistLength(buf *util.SliceBuffer) int64

<zlbytes><zltail><zllen><entry>...<entry><zlend>

Types

type Listpack

type Listpack struct {
	// contains filtered or unexported fields
}

func NewListpack

func NewListpack(data []byte) *Listpack

func (*Listpack) End

func (lp *Listpack) End()

func (*Listpack) Next

func (lp *Listpack) Next() []byte

redis, Listpack.c:lpGet

func (*Listpack) NextInteger

func (lp *Listpack) NextInteger() int64

func (*Listpack) NumElements

func (lp *Listpack) NumElements() uint16

type Ziplist

type Ziplist struct {
	// contains filtered or unexported fields
}

redis : ziplist.c

func NewZiplist

func NewZiplist(data []byte) *Ziplist

func (*Ziplist) Length

func (zl *Ziplist) Length() int64

func (*Ziplist) Next

func (zl *Ziplist) Next() []byte

Jump to

Keyboard shortcuts

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