types

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0, MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const ErrIndexTooLarge = errorType("Index size cannot be more than 32-bits")

ErrIndexTooLarge indicates the maximum supported bucket size is 32-bits

View Source
const ErrKeyExists = errorType("key exists")
View Source
const ErrKeyTooShort = errorType("Key must be at least 4 bytes long")
View Source
const ErrOutOfBounds = errorType("Buckets out of bound error")

ErrOutOfBounds indicates the bucket index was greater than the number of bucks

View Source
const OffBytesLen = 8
View Source
const SizeBytesLen = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Offset Position
	Size   Size
}

type ErrIndexWrongBitSize

type ErrIndexWrongBitSize [2]byte

func (ErrIndexWrongBitSize) Error

func (e ErrIndexWrongBitSize) Error() string

type ErrIndexWrongFileSize added in v0.1.0

type ErrIndexWrongFileSize [2]uint32

func (ErrIndexWrongFileSize) Error added in v0.1.0

func (e ErrIndexWrongFileSize) Error() string

type ErrPrimaryWrongFileSize added in v0.3.0

type ErrPrimaryWrongFileSize [2]uint32

func (ErrPrimaryWrongFileSize) Error added in v0.3.0

func (e ErrPrimaryWrongFileSize) Error() string

type Position

type Position uint64

Position indicates a position in a file

type Size

type Size uint32

type Work

type Work uint64

Jump to

Keyboard shortcuts

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