tl

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BoolFalse = CRC("boolFalse = Bool")
View Source
var BoolTrue = CRC("boolTrue = Bool")
View Source
var Logger = func(a ...any) {}

Functions

func CRC added in v1.8.0

func CRC(schema string) uint32

func FromBytes added in v1.5.0

func FromBytes(data []byte) (loaded []byte, buffer []byte, err error)

func Hash added in v1.8.0

func Hash(key any) ([]byte, error)

func Parse added in v1.5.0

func Parse(v Serializable, data []byte, boxed bool, names ...string) (_ []byte, err error)

func Register added in v1.5.0

func Register(typ any, tl string) uint32

func Serialize added in v1.5.0

func Serialize(v Serializable, boxed bool) ([]byte, error)

func ToBytes added in v1.0.0

func ToBytes(buf []byte) []byte

Types

type Raw added in v1.5.0

type Raw []byte

type Serializable added in v1.5.0

type Serializable interface{}

type TL added in v1.5.0

type TL interface {
	Parse(data []byte) ([]byte, error)
	Serialize() ([]byte, error)
}

Jump to

Keyboard shortcuts

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