protostream

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeVarint

func DecodeVarint(b []byte) (uint64, int)

func EncodeVarint

func EncodeVarint(v uint64) []byte

Types

type ProtoStream

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

func NewProtoStream

func NewProtoStream(rw ReaderWriter) *ProtoStream

func (*ProtoStream) Recv

func (p *ProtoStream) Recv(m proto.Message) error

func (*ProtoStream) Send

func (p *ProtoStream) Send(m proto.Message) error

type ReaderWriter

type ReaderWriter interface {
	io.Reader
	io.Writer
}

Jump to

Keyboard shortcuts

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