package
0.1.0
Repository: https://github.com/bpfs/dep2p.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Adapted from gogo/protobuf to use multiformats/go-varint for efficient, interoperable length-prefixing.
Adapted from gogo/protobuf to use multiformats/go-varint for efficient, interoperable length-prefixing.

# Functions

Combine wraps a pair of msgio.Writer and msgio.Reader with a msgio.ReadWriter.
LimitedReader wraps an io.Reader with a msgio framed reader.
LimitedWriter wraps an io.Writer with a msgio framed writer.
NewReader wraps an io.Reader with a msgio framed reader.
NewReaderSize is equivalent to NewReader but allows one to specify a max message size.
NewReaderWithPool is the same as NewReader but allows one to specify a buffer pool and a max message size.
NewReaderWithPool is the same as NewReader but allows one to specify a buffer pool.
NewReadWriter wraps an io.ReadWriter with a msgio.ReadWriter.
NewVarintReader wraps an io.Reader with a varint msgio framed reader.
NewVarintReaderSize is equivalent to NewVarintReader but allows one to specify a max message size.
NewVarintReaderWithPool is the same as NewVarintReader but allows one to specify a buffer pool and a max message size.
NewVarintReaderWithPool is the same as NewVarintReader but allows one to specify a buffer pool.
NewVarintWriter wraps an io.Writer with a varint msgio framed writer.
No description provided by the author
NewWriter wraps an io.Writer with a msgio framed writer.
NewWriterWithPool is identical to NewWriter but allows the user to pass a custom buffer pool.
ReadLen reads a length from the given reader.
WriteLen writes a length to the given writer.

# Variables

ErrMsgTooLarge is returned when the message length is exessive.
NBO is NetworkByteOrder.

# Structs

No description provided by the author

# Interfaces

ReadCloser combines a Reader and Closer.
Reader is the msgio Reader interface.
ReadWriteCloser combines a Reader, a Writer, and Closer.
ReadWriter combines a Reader and Writer.
WriteCloser is a Writer + Closer interface.
Writer is the msgio Writer interface.