mirror of https://bitbucket.org/ausocean/av.git
Use literal values for data type consts per the AMF spec, rather than iota.
This commit is contained in:
parent
b31c65001e
commit
cb2ea08fff
|
@ -44,27 +44,27 @@ import (
|
|||
"math"
|
||||
)
|
||||
|
||||
// AMF data types.
|
||||
// AMF data types, as defined by the AMF specification.
|
||||
// NB: we export these sparingly.
|
||||
const (
|
||||
typeNumber = iota
|
||||
typeBoolean
|
||||
typeString
|
||||
TypeObject
|
||||
typeMovieClip
|
||||
TypeNull
|
||||
typeUndefined
|
||||
typeReference
|
||||
typeEcmaArray
|
||||
TypeObjectEnd
|
||||
typeStrictArray
|
||||
typeDate
|
||||
typeLongString
|
||||
typeUnsupported
|
||||
typeRecordset
|
||||
typeXmlDoc
|
||||
typeTypedObject
|
||||
typeAvmplus
|
||||
typeNumber = 0x00
|
||||
typeBoolean = 0x01
|
||||
typeString = 0x02
|
||||
TypeObject = 0x03
|
||||
typeMovieClip = 0x04
|
||||
TypeNull = 0x05
|
||||
typeUndefined = 0x06
|
||||
typeReference = 0x07
|
||||
typeEcmaArray = 0x08
|
||||
TypeObjectEnd = 0x09
|
||||
typeStrictArray = 0x0A
|
||||
typeDate = 0x0B
|
||||
typeLongString = 0x0C
|
||||
typeUnsupported = 0x0D
|
||||
typeRecordset = 0x0E
|
||||
typeXmlDoc = 0x0F
|
||||
typeTypedObject = 0x10
|
||||
typeAvmplus = 0x11
|
||||
typeInvalid = 0xff
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue