chunking

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChunkBufSize uint32 = 32 * 1024
View Source
var ChunkHeaderByteOrder = binary.LittleEndian

Functions

This section is empty.

Types

type Chunker

type Chunker struct {
	ChunkCount int
	// contains filtered or unexported fields
}

func NewChunker

func NewChunker(conn io.Reader) Chunker

func NewChunkerSized

func NewChunkerSized(conn io.Reader, chunkSize uint32) Chunker

func (*Chunker) Read

func (c *Chunker) Read(b []byte) (n int, err error)

type Unchunker

type Unchunker struct {
	ChunkCount int
	// contains filtered or unexported fields
}

func NewUnchunker

func NewUnchunker(conn io.Reader) *Unchunker

func (*Unchunker) Close

func (c *Unchunker) Close() (err error)

func (*Unchunker) Read

func (c *Unchunker) Read(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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