examples

package
v0.0.0-...-43cdc6c Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LargestFieldNumber

type LargestFieldNumber struct {
	Int32 int32 `canoto:"int,536870911"`
	// contains filtered or unexported fields
}

func (*LargestFieldNumber) MarshalCanoto

func (c *LargestFieldNumber) MarshalCanoto(w *canoto.Writer)

func (*LargestFieldNumber) SizeCanoto

func (c *LargestFieldNumber) SizeCanoto() int

func (*LargestFieldNumber) UnmarshalCanoto

func (c *LargestFieldNumber) UnmarshalCanoto(r *canoto.Reader) error

func (*LargestFieldNumber) ValidCanoto

func (c *LargestFieldNumber) ValidCanoto() bool

type Scalars

type Scalars struct {
	Int32              int32              `canoto:"int,1"`
	Int64              int64              `canoto:"int,2"`
	Uint32             uint32             `canoto:"int,3"`
	Uint64             uint64             `canoto:"int,4"`
	Sint32             int32              `canoto:"sint,5"`
	Sint64             int64              `canoto:"sint,6"`
	Fixed32            uint32             `canoto:"fint,7"`
	Fixed64            uint64             `canoto:"fint,8"`
	Sfixed32           int32              `canoto:"fint,9"`
	Sfixed64           int64              `canoto:"fint,10"`
	Bool               bool               `canoto:"bool,11"`
	String             string             `canoto:"bytes,12"`
	Bytes              []byte             `canoto:"bytes,13"`
	LargestFieldNumber LargestFieldNumber `canoto:"bytes,14"`
	// contains filtered or unexported fields
}

func (*Scalars) MarshalCanoto

func (c *Scalars) MarshalCanoto(w *canoto.Writer)

func (*Scalars) SizeCanoto

func (c *Scalars) SizeCanoto() int

func (*Scalars) UnmarshalCanoto

func (c *Scalars) UnmarshalCanoto(r *canoto.Reader) error

func (*Scalars) ValidCanoto

func (c *Scalars) ValidCanoto() bool

Jump to

Keyboard shortcuts

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