sizedstream

package
v0.0.0-...-2c76a10 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbeddedToken

type EmbeddedToken int

type PreparedFixed64Key

type PreparedFixed64Key byte

func PrepareFixed64Field

func PrepareFixed64Field(fieldNumber int) PreparedFixed64Key

type PreparedKey

type PreparedKey byte

PreparedKey of string,bytes or embedded wire type.

func PrepareEmbeddedField

func PrepareEmbeddedField(fieldNumber int) PreparedKey

func PrepareField

func PrepareField(fieldNumber int, wireType protowire.Type) PreparedKey

func PrepareStringField

func PrepareStringField(fieldNumber int) PreparedKey

type PreparedUint32Key

type PreparedUint32Key byte

func PrepareUint32Field

func PrepareUint32Field(fieldNumber int) PreparedUint32Key

type ProtoStream

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

func NewProtoStream

func NewProtoStream() *ProtoStream

func (*ProtoStream) BeginEmbedded

func (s *ProtoStream) BeginEmbedded() EmbeddedToken

func (*ProtoStream) BufferBytes

func (s *ProtoStream) BufferBytes() ([]byte, error)

func (*ProtoStream) EndEmbeddedPrepared

func (s *ProtoStream) EndEmbeddedPrepared(
	startPos EmbeddedToken, fieldKey PreparedKey,
)

func (*ProtoStream) Fixed64Prepared

func (s *ProtoStream) Fixed64Prepared(fieldKey PreparedFixed64Key, value uint64)

Fixed64Prepared writes a value of fixed64 to the stream.

func (*ProtoStream) Len

func (s *ProtoStream) Len() int

func (*ProtoStream) Raw

func (s *ProtoStream) Raw(b []byte)

Raw writes the byte sequence as is. Used to write prepared embedded byte sequences.

func (*ProtoStream) Reset

func (s *ProtoStream) Reset()

func (*ProtoStream) StringPrepared

func (s *ProtoStream) StringPrepared(key PreparedKey, value string)

StringPrepared writes a string to the stream.

func (*ProtoStream) Uint32Prepared

func (s *ProtoStream) Uint32Prepared(fieldKey PreparedUint32Key, value uint32)

Uint32Prepared writes a value of uint32 to the stream.

Jump to

Keyboard shortcuts

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