couchbytes

package
v0.0.0-...-62b11f3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package couchbytes provides routines to read CoucDB blocks into byte slices working around special meaning of the 4K boundry and handling the uncompression of compressed data.

Index

Constants

View Source
const (
	// BlockAlignment is block size for DB Header start
	BlockAlignment = 4096
)

Variables

This section is empty.

Functions

func ReadDbHeaderBytes

func ReadDbHeaderBytes(input io.ReadSeeker, offset int64) (*[]byte, error)

ReadDbHeaderBytes reads DB header from input Reader at given offset and returns it as byte array

func ReadDocumentBytes

func ReadDocumentBytes(input io.ReadSeeker, offset int64) (*[]byte, error)

ReadDocumentBytes reads actual stored document from input Reader at given offset and returns it as byte array

func ReadNodeBytes

func ReadNodeBytes(input io.ReadSeeker, offset int64) (*[]byte, error)

ReadNodeBytes reads Node from input Reader at given offset and returns it as byte array

Types

This section is empty.

Jump to

Keyboard shortcuts

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