proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAny

func DecodeAny(r io.Reader) (any, error)

func DecodeBytes

func DecodeBytes(r io.Reader) ([]byte, error)

func DecodeString

func DecodeString(r io.Reader) (string, error)

func Encode

func Encode(value any) ([]byte, error)

func EncodeBytes

func EncodeBytes(b []byte) []byte

func EncodeString

func EncodeString(s string) []byte

func RegisterMessage

func RegisterMessage(s Struct)

Types

type Numeric

type Numeric interface {
	uint8 | uint16 | uint32 | uint64 | int8 | int16 | int32 | int64
}

type PrimitiveType

type PrimitiveType byte
const (
	TypeVoid    PrimitiveType = 0b0000
	TypeScalar  PrimitiveType = 0b0001
	TypeBoolean PrimitiveType = 0b0010
	TypeFloat   PrimitiveType = 0b0011
	TypeString  PrimitiveType = 0b0100
	TypeBytes   PrimitiveType = 0b0101
	TypeArray   PrimitiveType = 0b0110
	TypeMap     PrimitiveType = 0b0111
	TypeStruct  PrimitiveType = 0b1000
)

func (PrimitiveType) String

func (i PrimitiveType) String() string

type Struct

type Struct interface {
	ArfStructID() string
}

Jump to

Keyboard shortcuts

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