serial

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstanceOf

func GetInstanceOf(v *anypb.Any) (proto.Message, error)

func ReadUint16

func ReadUint16(reader io.Reader) (uint16, error)

ReadUint16 reads first two bytes from the reader, and then coverts them to an uint16 value.

func ToTypedMessage

func ToTypedMessage(message proto.Message) *anypb.Any

ToTypedMessage converts a proto Message into TypedMessage.

func ToTypedMessages

func ToTypedMessages(messages ...proto.Message) []*anypb.Any

func WriteUint16

func WriteUint16(writer io.Writer, value uint16) (int, error)

WriteUint16 writes an uint16 value into writer.

func WriteUint64

func WriteUint64(writer io.Writer, value uint64) (int, error)

WriteUint64 writes an uint64 value into writer.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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