tarray

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder generates the code

func New

func New(msgType, fieldType reflect.Type, elementBuilder types.BuilderFactory) Builder

New returns new code builder

func (Builder) ConstantSize

func (b Builder) ConstantSize() uint64

ConstantSize returns the amount of bytes data will always need to be marshaled, independent of actual content

func (Builder) Dependencies

func (b Builder) Dependencies() []reflect.Type

Dependencies returns the list of other types which code must be generated for

func (Builder) MarshalCodeTemplate

func (b Builder) MarshalCodeTemplate() string

MarshalCodeTemplate returns code template marshaling the data

func (Builder) SizeCodeTemplate

func (b Builder) SizeCodeTemplate() (string, bool)

SizeCodeTemplate returns code template computing the required size of buffer (above constant size) required to marshal the data

func (Builder) UnmarshalCodeTemplate

func (b Builder) UnmarshalCodeTemplate() string

UnmarshalCodeTemplate returns code template unmarshaling the data

Jump to

Keyboard shortcuts

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