types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValueType

type ValueType uint8

ValueType is an enumeration of supported data types for function parameters and returns.

const (
	ValueTypeBytes ValueType = iota
	ValueTypeByte
	ValueTypeI32
	ValueTypeI64
	ValueTypeF32
	ValueTypeF64
	ValueTypeString
)

These constants represent the possible data types that can be used in function parameters and returns.

const ValueTypePack ValueType = 255

ValueTypePack is a reserved ValueType used for packed data.

func GetOffsetSizeAndDataTypeByConversion

func GetOffsetSizeAndDataTypeByConversion(data any) (dataType ValueType, offsetSize uint32, err error)

GetOffsetSizeAndDataTypeByConversion determines the memory size (offsetSize) and ValueType of a given data. The function supports several data

func (ValueType) String

func (v ValueType) String() string

Jump to

Keyboard shortcuts

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