Documentation ¶
Index ¶
- Constants
- func PropertyValue(properties []ObjectProperty, name string) (value interface{}, ok bool)
- func ReadAny(r io.Reader) (value interface{}, err error)
- func ReadBool(r io.Reader) (value bool, err error)
- func ReadDate(r io.Reader) (value time.Time, err error)
- func ReadLongString(r io.Reader) (value string, err error)
- func ReadNumber(r io.Reader) (value float64, err error)
- func ReadString(r io.Reader) (value string, err error)
- func WriteAny(w io.Writer, any interface{}) (err error)
- func WriteBool(w io.Writer, value bool) (err error)
- func WriteDate(w io.Writer, value time.Time) (err error)
- func WriteEcmaArray(w io.Writer, arr EcmaArray) (err error)
- func WriteLongString(w io.Writer, value string) (err error)
- func WriteNumber(w io.Writer, value float64) (err error)
- func WriteObject(w io.Writer, obj Object) (err error)
- func WriteStrictArray(w io.Writer, arr StrictArray) (err error)
- func WriteString(w io.Writer, value string) (err error)
- type EcmaArray
- type Object
- type ObjectProperty
- type StrictArray
- type UnSupportedValue
- type UndefinedValue
Constants ¶
View Source
const ( TypeNumber = 0x00 TypeBoolean = 0x01 TypeString = 0x02 TypeObject = 0x03 TypeMovieClip = 0x04 //reserved, not supported TypeNull = 0x05 TypeUndefined = 0x06 TypeReference = 0x07 TypeEcmaArray = 0x08 TypeObjectEnd = 0x09 TypeStrictArray = 0x0A TypeDate = 0x0B TypeLongString = 0x0C TypeUnSupported = 0x0D TypeRecordSet = 0x0E TypeXMLDocument = 0x0F TypeTypedObject = 0x10 TypeAVMplusObject = 0x11 TypeOriginStrictArray = 0x20 TypeInvalid = 0x3F )
Amf0 类型常量
Variables ¶
This section is empty.
Functions ¶
func PropertyValue ¶
func PropertyValue(properties []ObjectProperty, name string) (value interface{}, ok bool)
PropertyValue 获取属性数组中指定属性名的值
func WriteLongString ¶
WriteLongString .
func WriteStrictArray ¶
func WriteStrictArray(w io.Writer, arr StrictArray) (err error)
WriteStrictArray .
Types ¶
type ObjectProperty ¶
type ObjectProperty struct { Name string Value interface{} }
ObjectProperty amf 对象属性
type StrictArray ¶
type StrictArray []interface{}
StrictArray 表示 TypeStrictArray 类型存储的值
func ReadStrictArray ¶
func ReadStrictArray(r io.Reader) (value StrictArray, err error)
ReadStrictArray .
Click to show internal directories.
Click to hide internal directories.