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.
Click to show internal directories.
Click to hide internal directories.