tint8

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 3 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(fieldType reflect.Type, tm *types.TypeMap) 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(_ *uint64) string

MarshalCodeTemplate returns code template marshaling the data.

func (Builder) UnmarshalCodeTemplate

func (b Builder) UnmarshalCodeTemplate(_ *uint64) 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