tl

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 8 Imported by: 0

README

Serialization and deserialization of data described by TL schemas.

This library implements Marshaling and Unmarshaling for TL data.

TL description:

Usage

Example

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeLength

func EncodeLength(i int) []byte

func Marshal

func Marshal(o any) ([]byte, error)

func Unmarshal

func Unmarshal(r io.Reader, o any) error

Types

type Int256 added in v1.0.1

type Int256 [32]byte

func (Int256) MarshalJSON added in v1.0.1

func (i Int256) MarshalJSON() ([]byte, error)

func (Int256) MarshalTL added in v1.0.1

func (i Int256) MarshalTL() ([]byte, error)

func (*Int256) Scan added in v1.0.1

func (i *Int256) Scan(src interface{}) error

Scan implements Scanner for database/sql.

func (*Int256) UnmarshalJSON added in v1.0.1

func (i *Int256) UnmarshalJSON(data []byte) error

func (*Int256) UnmarshalTL added in v1.0.1

func (i *Int256) UnmarshalTL(r io.Reader) error

func (Int256) Value added in v1.0.1

func (i Int256) Value() (driver.Value, error)

Value implements valuer for database/sql.

type MarshalerTL

type MarshalerTL interface {
	MarshalTL() ([]byte, error)
}

type SumType

type SumType string

type UnmarshalerTL

type UnmarshalerTL interface {
	UnmarshalTL(r io.Reader) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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