blockfile

package
v0.0.0-...-d9d0c30 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

* @Author: soso * @Date: 2022-02-18 17:15:45 * @LastEditTime: 2022-02-18 17:17:01 * @LastEditors: Please set LastEditors * @Description: 索引数据块 * @FilePath: /go-utils/blockfile/index.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockfile

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

func NewBlockfile

func NewBlockfile() *Blockfile

func (*Blockfile) Add

func (bf *Blockfile) Add(data []byte) (key int, err error)

func (*Blockfile) Adds

func (bf *Blockfile) Adds(datas [][]byte) (keys []int, err error)

func (*Blockfile) Clean

func (bf *Blockfile) Clean() (err error)

func (*Blockfile) Get

func (bf *Blockfile) Get(key int) (out []byte, err error)

func (*Blockfile) GetsFrom

func (bf *Blockfile) GetsFrom(keyFrom int) (out []byte, err error)

func (*Blockfile) Set

func (bf *Blockfile) Set(key int, data []byte) (err error)

Jump to

Keyboard shortcuts

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