Documentation ¶
Index ¶
- Constants
- Variables
- func EncodeItems(items ...any) []byte
- type AMF
- func (a *AMF) Bytes() []byte
- func (a *AMF) ReadByte() (byte, error)
- func (a *AMF) ReadEcmaArray() (map[string]any, error)
- func (a *AMF) ReadItem() (any, error)
- func (a *AMF) ReadItems() ([]any, error)
- func (a *AMF) ReadNumber() (float64, error)
- func (a *AMF) ReadObject() (map[string]any, error)
- func (a *AMF) ReadString() (string, error)
- func (a *AMF) WriteBool(b bool)
- func (a *AMF) WriteEcmaArray(obj map[string]any)
- func (a *AMF) WriteNull()
- func (a *AMF) WriteNumber(n float64)
- func (a *AMF) WriteObject(obj map[string]any)
- func (a *AMF) WriteString(s string)
Constants ¶
View Source
const ( TypeNumber byte = iota TypeBoolean TypeString TypeObject TypeNull = 5 TypeEcmaArray = 8 TypeObjectEnd = 9 )
Variables ¶
View Source
var ErrRead = errors.New("amf: read error")
Functions ¶
func EncodeItems ¶
Types ¶
type AMF ¶
type AMF struct {
// contains filtered or unexported fields
}
AMF spec: http://download.macromedia.com/pub/labs/amf/amf0_spec_121207.pdf
func (*AMF) ReadNumber ¶
func (*AMF) ReadString ¶
func (*AMF) WriteEcmaArray ¶
func (*AMF) WriteNumber ¶
func (*AMF) WriteObject ¶
func (*AMF) WriteString ¶
Click to show internal directories.
Click to hide internal directories.