Documentation
¶
Index ¶
- Variables
- func CRC(schema string) uint32
- func FromBytes(data []byte) (loaded []byte, buffer []byte, err error)
- func Hash(key any) ([]byte, error)
- func Parse(v Serializable, data []byte, boxed bool) (_ []byte, err error)
- func Register(typ any, tl string) uint32
- func RemapBufferAsSlice(buf *bytes.Buffer, from int)
- func Serialize(v Serializable, boxed bool, bufOpt ...*bytes.Buffer) ([]byte, error)
- func ToBytes(buf []byte) []byte
- func ToBytesToBuffer(buf *bytes.Buffer, data []byte)
- type ParseableTL
- type Raw
- type Serializable
- type SerializableTL
- type TL
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSerializeBufferSize = 1024
View Source
var Logger = func(a ...any) {}
Functions ¶
func RemapBufferAsSlice ¶
func ToBytesToBuffer ¶
Types ¶
type ParseableTL ¶
type Serializable ¶
type Serializable interface{}
type SerializableTL ¶
type TL ¶
type TL interface { ParseableTL SerializableTL }
Click to show internal directories.
Click to hide internal directories.