tl

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = func(a ...any) {}

Functions

func FromBytes added in v1.5.0

func FromBytes(data []byte) (loaded []byte, buffer []byte, err 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