amf3

package
v0.0.0-...-5278192 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeUndefined    byte = 0x00
	TypeNull              = 0x01
	TypeFalse             = 0x02
	TypeTrue              = 0x03
	TypeInteger           = 0x04
	TypeDouble            = 0x05
	TypeString            = 0x06
	TypeXmlDoc            = 0x07
	TypeDate              = 0x08
	TypeArray             = 0x09
	TypeObject            = 0x0A
	TypeXml               = 0x0B
	TypeByteArray         = 0x0C
	TypeVectorInt         = 0x0D
	TypeVectorUint        = 0x0E
	TypeVectorDouble      = 0x0F
	TypeVectorObject      = 0x10
	TypeDictionary        = 0x11
)
View Source
const MaxInt int = 268435455
View Source
const MinInt int = -268435456
View Source
const UTF8Empty byte = 0x01

Variables

This section is empty.

Functions

func Encode

func Encode(v interface{}) ([]byte, error)

Encodes the value v into its AMF3 form. If you encode a signed/unsigned int greater than MaxInt, it will be encoded as a double. If you encode a signed int less than MinInt, it will be encoded as a double.

Types

This section is empty.

Jump to

Keyboard shortcuts

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