types

package
v0.0.0-...-df06595 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxInlineStringLength = 1 << 16
)

Variables

View Source
var TypeSize int

Functions

This section is empty.

Types

type Equaled

type Equaled interface {
	bool | int64 | float64
}

type String

type String [2]uint64

func (*String) GetString

func (str *String) GetString(area []byte) ([]byte, uuid.UUID, uint64)

func (*String) SetString

func (str *String) SetString(data []byte, area []byte, fs vfs.FS) ([]byte, error)

func (*String) SetStringUUID

func (str *String) SetStringUUID(uuid uuid.UUID, area []byte, size uint64) []byte

type T

type T uint32
const (
	T_bool T = iota

	T_int64
	T_float64
	T_string
)

func (T) Size

func (t T) Size() int

func (T) String

func (t T) String() string

type Type

type Type struct {
	// contains filtered or unexported fields
}
var BoolType Type
var DoubleType Type
var LongType Type
var StringType Type

func New

func New(oid T) *Type

func (*Type) Equal

func (typ *Type) Equal(ityp *Type) bool

func (Type) IsFixedLen

func (typ Type) IsFixedLen() bool

func (Type) IsType

func (typ Type) IsType(oid T) bool

func (*Type) Oid

func (typ *Type) Oid() T

func (*Type) Size

func (typ *Type) Size() int

func (*Type) String

func (typ *Type) String() string

Jump to

Keyboard shortcuts

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