lvstream

package
v0.0.0-...-2627f95 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EClosed = errors.New("Closed")

msg,msg,msg -> [length|msg|length|msg...] [length|msg|length|msg...] -> msg,msg,msg

View Source
var MaxValueSize = 10 * 1024 * 1024 * 1024

10 MB

Functions

This section is empty.

Types

type LVStreamDecoder

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

func NewLVStreamDecoder

func NewLVStreamDecoder(nextValue func([]byte) error) *LVStreamDecoder

func (*LVStreamDecoder) Close

func (decoder *LVStreamDecoder) Close() error

func (*LVStreamDecoder) Write

func (decoder *LVStreamDecoder) Write(p []byte) (int, error)

type LVStreamEncoder

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

func NewLVStreamEncoder

func NewLVStreamEncoder(nextValue func() ([]byte, error), cleanup func()) *LVStreamEncoder

func (*LVStreamEncoder) Close

func (encoder *LVStreamEncoder) Close() error

func (*LVStreamEncoder) Read

func (encoder *LVStreamEncoder) Read(p []byte) (int, error)

Read implements io.Reader It will panic if any of the preconditions are not met.

Jump to

Keyboard shortcuts

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