libp2putil

package
v1.0.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UvarintReader

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

UvarintReader read protobuf blocks.

func NewDelimitedReader

func NewDelimitedReader(r io.Reader) *UvarintReader

NewDelimitedReader returns a new UvarintReader.

func (*UvarintReader) ReadBlk

func (ur *UvarintReader) ReadBlk(blk proto.Message) error

ReadBlk read protobuf blocks.

type UvarintWriter

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

UvarintWriter writes protobuf blocks.

func NewDelimitedWriter

func NewDelimitedWriter(w io.Writer) *UvarintWriter

NewDelimitedWriter returns a new UvarintWriter.

func (*UvarintWriter) WriteBlk

func (uw *UvarintWriter) WriteBlk(blk proto.Message) (err error)

WriteBlk writes protobuf block.

Jump to

Keyboard shortcuts

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