structure

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RDB6ByteLen  = 0 // RDB_6BITLEN
	RDB14ByteLen = 1 // RDB_14BITLEN

	RDB32ByteLen = 0x80
	RDB64ByteLen = 0x81
)
View Source
const (
	RDBEncInt8  = 0 // RDB_ENC_INT8
	RDBEncInt16 = 1 // RDB_ENC_INT16
	RDBEncInt32 = 2 // RDB_ENC_INT32
	RDBEncLZF   = 3 // RDB_ENC_LZF
)

Variables

This section is empty.

Functions

func ReadByte

func ReadByte(rd io.Reader) byte

func ReadBytes

func ReadBytes(rd io.Reader, n int) []byte

func ReadDouble

func ReadDouble(rd io.Reader) float64

func ReadFloat

func ReadFloat(rd io.Reader) float64

func ReadInt16

func ReadInt16(rd io.Reader) int16

func ReadInt24

func ReadInt24(rd io.Reader) int32

func ReadInt32

func ReadInt32(rd io.Reader) int32

func ReadInt64

func ReadInt64(rd io.Reader) int64

func ReadInt8

func ReadInt8(rd io.Reader) int8

func ReadIntset

func ReadIntset(rd io.Reader) []string

func ReadLength

func ReadLength(rd io.Reader) uint64

func ReadListpack

func ReadListpack(rd io.Reader) []string

func ReadListpack2

func ReadListpack2(rd io.Reader) ([]string, uint32)

返回listpack类型的bytes,用于rdb计算内存占用

func ReadModuleDouble

func ReadModuleDouble(rd io.Reader) string

func ReadModuleEof

func ReadModuleEof(rd io.Reader)

func ReadModuleFloat

func ReadModuleFloat(rd io.Reader) string

func ReadModuleSigned

func ReadModuleSigned(rd io.Reader) string

func ReadModuleString

func ReadModuleString(rd io.Reader) string

func ReadModuleUnsigned

func ReadModuleUnsigned(rd io.Reader) string

func ReadString

func ReadString(rd io.Reader) string

func ReadUint16

func ReadUint16(rd io.Reader) uint16

func ReadUint24

func ReadUint24(rd io.Reader) uint32

func ReadUint32

func ReadUint32(rd io.Reader) uint32

func ReadUint64

func ReadUint64(rd io.Reader) uint64

func ReadUint8

func ReadUint8(rd io.Reader) uint8

func ReadZipList

func ReadZipList(rd io.Reader) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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