Documentation
¶
Index ¶
- Variables
- func Bool2Int(b bool) int
- func CalcListLength(data []byte) (int, int)
- func ConsumeFixed32[T int32 | uint32 | float32](data []byte) (T, int)
- func ConsumeFixed64[T int64 | uint64 | float64](data []byte) (T, int)
- func ConsumeMessage(data []byte, msg proto.Message) (int, error)
- func ConsumeVarint[T int32 | uint32 | int64 | uint64 | float32 | float64](data []byte) (T, int)
- func EqualBytes(b1, b2 []byte) bool
- func EqualBytesMap[K comparable](s1, s2 map[K][]byte) bool
- func EqualBytesSlice(s1, s2 [][]byte) bool
- func EqualMap[K comparable, V comparable](s1, s2 map[K]V) bool
- func EqualProtoMap[K comparable, V proto.Message](s1, s2 map[K]V) bool
- func EqualProtoSlice[V proto.Message](s1, s2 []V) bool
- func EqualSlice[T comparable](s1, s2 []T) bool
- func FieldMessageName(gen *protogen.Plugin, file *protogen.File, field *protogen.Field) string
- func GoTypeOfField(field protoreflect.FieldDescriptor) string
- func KindToType(kind protoreflect.Kind) protowire.Type
- func MessageTypesVarName(f *protogen.File) string
- func SizeVarintSlice[T int32 | uint32 | int64 | uint64](arr []T) int
- func SizeZigZagSlice[T int32 | uint32 | int64 | uint64](arr []T) int
- func Skip(data []byte) (n int, err error)
- type VarintType
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CalcListLength ¶
func ConsumeVarint ¶
func EqualBytes ¶
func EqualBytesMap ¶
func EqualBytesMap[K comparable](s1, s2 map[K][]byte) bool
func EqualBytesSlice ¶
func EqualMap ¶
func EqualMap[K comparable, V comparable](s1, s2 map[K]V) bool
func EqualProtoMap ¶
func EqualProtoMap[K comparable, V proto.Message](s1, s2 map[K]V) bool
func EqualProtoSlice ¶
func EqualSlice ¶
func EqualSlice[T comparable](s1, s2 []T) bool
func FieldMessageName ¶
func GoTypeOfField ¶
func GoTypeOfField(field protoreflect.FieldDescriptor) string
func KindToType ¶
func KindToType(kind protoreflect.Kind) protowire.Type
func MessageTypesVarName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.