proto

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolMarshal

func BoolMarshal(field int, buf []byte, v bool) int

func BoolSize

func BoolSize(field int, v bool) int

func BytesMarshal

func BytesMarshal(field int, buf, v []byte) int

func BytesSize

func BytesSize(field int, v []byte) int

func EnumMarshal

func EnumMarshal(field int, buf []byte, v int32) int

func EnumSize

func EnumSize(field int, v int32) int

func Fixed32Marshal

func Fixed32Marshal(field int, buf []byte, v uint32) int

Fixed32Marshal encodes uint32 value to Protocol Buffers fixed32 field with specified number, and writes it to specified buffer. Returns number of bytes written.

Panics if the buffer is undersized.

func Fixed32Size

func Fixed32Size(fNum int, v uint32) int

Fixed32Size returns number of bytes required to encode uint32 value to Protocol Buffers fixed32 field with specified number.

func Fixed64Marshal

func Fixed64Marshal(field int, buf []byte, v uint64) int

func Fixed64Size

func Fixed64Size(fNum int, v uint64) int

func Float64Marshal

func Float64Marshal(field int, buf []byte, v float64) int

func Float64Size

func Float64Size(fNum int, v float64) int

func Int32Marshal

func Int32Marshal(field int, buf []byte, v int32) int

func Int32Size

func Int32Size(field int, v int32) int

func Int64Marshal

func Int64Marshal(field int, buf []byte, v int64) int

func Int64Size

func Int64Size(field int, v int64) int

func NestedStructureMarshal

func NestedStructureMarshal[T stableMarshaller](field int64, buf []byte, v T) int

func NestedStructureSize

func NestedStructureSize[T stableMarshaller](field int64, v T) (size int)

func RepeatedBytesMarshal

func RepeatedBytesMarshal(field int, buf []byte, v [][]byte) int

func RepeatedBytesSize

func RepeatedBytesSize(field int, v [][]byte) (size int)

func RepeatedInt32Marshal

func RepeatedInt32Marshal(field int, buf []byte, v []int32) int

func RepeatedInt32Size

func RepeatedInt32Size(field int, v []int32) (size, arraySize int)

func RepeatedInt64Marshal

func RepeatedInt64Marshal(field int, buf []byte, v []int64) int

func RepeatedInt64Size

func RepeatedInt64Size(field int, v []int64) (size, arraySize int)

func RepeatedStringMarshal

func RepeatedStringMarshal(field int, buf []byte, v []string) int

func RepeatedStringSize

func RepeatedStringSize(field int, v []string) (size int)

func RepeatedUInt32Marshal

func RepeatedUInt32Marshal(field int, buf []byte, v []uint32) int

func RepeatedUInt32Size

func RepeatedUInt32Size(field int, v []uint32) (size, arraySize int)

func RepeatedUInt64Marshal

func RepeatedUInt64Marshal(field int, buf []byte, v []uint64) int

func RepeatedUInt64Size

func RepeatedUInt64Size(field int, v []uint64) (size, arraySize int)

func StringMarshal

func StringMarshal(field int, buf []byte, v string) int

func StringSize

func StringSize(field int, v string) int

func UInt32Marshal

func UInt32Marshal(field int, buf []byte, v uint32) int

func UInt32Size

func UInt32Size(field int, v uint32) int

func UInt64Marshal

func UInt64Marshal(field int, buf []byte, v uint64) int

func UInt64Size

func UInt64Size(field int, v uint64) int

func VarUIntSize

func VarUIntSize(x uint64) int

VarUIntSize returns length of varint byte sequence for uint64 value 'x'.

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