Documentation
¶
Index ¶
- Constants
- func AmfBool(value bool) []byte
- func AmfDoubleDecode(data []byte) (float64, int, error)
- func AmfDoubleDecodePayload(data []byte) (float64, int, error)
- func AmfDoubleEncode(value float64) ([]byte, error)
- func AmfDoubleEncodePayload(value float64) ([]byte, error)
- func AmfIntDecode(bytes []byte) (uint32, int, error)
- func AmfIntDecodePayload(bytes []byte) (uint32, int, error)
- func AmfIntEncode(value uint32) ([]byte, error)
- func AmfIntEncodePayload(value uint32) ([]byte, error)
- func AmfNull() []byte
- func AmfStringHeader(len uint32) ([]byte, error)
- func AmfStringRef(id uint32) ([]byte, error)
- func AmfUndefined() []byte
- type AmfArrAssoc
- type AmfArray
- type AmfCodec
- func (codec *AmfCodec) AmfArrayDecode(data []byte) (*AmfArray, int, error)
- func (codec *AmfCodec) AmfArrayEncode(arr *AmfArray) ([]byte, error)
- func (codec *AmfCodec) AmfByteArrayDecode(data []byte) ([]byte, int, error)
- func (codec *AmfCodec) AmfByteArrayEncode(value *[]byte) ([]byte, error)
- func (codec *AmfCodec) AmfDateDecode(data []byte) (AmfDate, int, error)
- func (codec *AmfCodec) AmfDateEncode(value AmfDate) ([]byte, error)
- func (codec *AmfCodec) AmfDateNow() ([]byte, error)
- func (codec *AmfCodec) AmfDecode(data []byte) (interface{}, int, error)
- func (codec *AmfCodec) AmfDictDecode(data []byte) (*AmfDict, int, error)
- func (codec *AmfCodec) AmfDictEncode(dict *AmfDict) ([]byte, error)
- func (codec *AmfCodec) AmfEncode(value interface{}) ([]byte, error)
- func (codec *AmfCodec) AmfObjDecode(data []byte) (*AmfObj, int, error)
- func (codec *AmfCodec) AmfObjEncode(obj *AmfObj) ([]byte, error)
- func (codec *AmfCodec) AmfStringDecode(data []byte) (string, int, error)
- func (codec *AmfCodec) AmfStringDecodePayload(bytes []byte) (string, int, error)
- func (codec *AmfCodec) AmfStringEncode(value string) ([]byte, error)
- func (codec *AmfCodec) AmfStringEncodePayload(value string) ([]byte, error)
- func (codec *AmfCodec) AmfVectorDoubleDecode(data []byte) (*AmfVectorDouble, int, error)
- func (codec *AmfCodec) AmfVectorDoubleEncode(vec *AmfVectorDouble) ([]byte, error)
- func (codec *AmfCodec) AmfVectorIntDecode(data []byte) (*AmfVectorInt, int, error)
- func (codec *AmfCodec) AmfVectorIntEncode(vec *AmfVectorInt) ([]byte, error)
- func (codec *AmfCodec) AmfVectorObjDecode(data []byte) (*AmfVectorObj, int, error)
- func (codec *AmfCodec) AmfVectorObjEncode(obj *AmfVectorObj) ([]byte, error)
- func (codec *AmfCodec) AmfVectorUintDecode(data []byte) (*AmfVectorUint, int, error)
- func (codec *AmfCodec) AmfVectorUintEncode(vec *AmfVectorUint) ([]byte, error)
- func (codec *AmfCodec) AmfXmlDecode(data []byte) (AmfXml, int, error)
- func (codec *AmfCodec) AmfXmlDocDecode(data []byte) (AmfXmlDoc, int, error)
- func (codec *AmfCodec) AmfXmlDocEncode(value AmfXmlDoc) ([]byte, error)
- func (codec *AmfCodec) AmfXmlEncode(value AmfXml) ([]byte, error)
- func (codec *AmfCodec) Append(value interface{}, kind AmfCodecTable) bool
- func (codec *AmfCodec) Get(id uint32, kind AmfCodecTable) (interface{}, bool)
- func (codec *AmfCodec) GetId(value interface{}, kind AmfCodecTable) (uint32, bool)
- type AmfCodecTable
- type AmfDate
- type AmfDict
- type AmfInt
- type AmfMarker
- type AmfObj
- type AmfObjMember
- type AmfTraitExtHandler
- type AmfTraitSet
- type AmfVectorDouble
- type AmfVectorInt
- type AmfVectorObj
- type AmfVectorUint
- type AmfXml
- type AmfXmlDoc
Constants ¶
View Source
const ( COMPLEX_TABLE = iota STRING_TABLE TRAIT_TABLE )
View Source
const ( HIGH_BIT_MASK = 0x80 LOW_BITS_MASK = 0x7f )
View Source
const ( AMF_UNDEFINED = 0x00 AMF_NULL = 0x01 AMF_FALSE = 0x02 AMF_TRUE = 0x03 AMF_INTEGER = 0x04 AMF_DOUBLE = 0x05 AMF_STRING = 0x06 AMF_XML_DOC = 0x07 AMF_DATE = 0x08 AMF_ARRAY = 0x09 AMF_OBJECT = 0x0a AMF_XML = 0x0b AMF_BYTE_ARRAY = 0x0c AMF_VECTOR_INT = 0x0d AMF_VECTOR_UINT = 0x0e AMF_VECTOR_DOUBLE = 0x0f AMF_VECTOR_OBJECT = 0x10 AMF_DICTIONARY = 0x11 )
View Source
const (
AMF_STRING_HEADER_MAXLEN = 0xf0 << 24
)
Variables ¶
This section is empty.
Functions ¶
func AmfDoubleEncode ¶
func AmfDoubleEncodePayload ¶
func AmfIntEncode ¶
func AmfIntEncodePayload ¶
func AmfStringHeader ¶
func AmfStringRef ¶
func AmfUndefined ¶
func AmfUndefined() []byte
Types ¶
type AmfArrAssoc ¶
type AmfArrAssoc struct { Key string Value interface{} }
type AmfArray ¶
type AmfArray struct { Dense []interface{} Assoc []AmfArrAssoc }
func EmptyAmfArray ¶
func EmptyAmfArray() *AmfArray
type AmfCodec ¶
type AmfCodec struct {
// contains filtered or unexported fields
}
func NewAmfCodec ¶
func NewAmfCodec() *AmfCodec
func (*AmfCodec) AmfArrayDecode ¶
func (*AmfCodec) AmfArrayEncode ¶
func (*AmfCodec) AmfByteArrayDecode ¶
func (*AmfCodec) AmfByteArrayEncode ¶
func (*AmfCodec) AmfDateDecode ¶
func (*AmfCodec) AmfDateEncode ¶
func (*AmfCodec) AmfDateNow ¶
func (*AmfCodec) AmfDictDecode ¶
func (*AmfCodec) AmfDictEncode ¶
func (*AmfCodec) AmfObjDecode ¶
func (*AmfCodec) AmfStringDecode ¶
func (*AmfCodec) AmfStringDecodePayload ¶
func (*AmfCodec) AmfStringEncode ¶
func (*AmfCodec) AmfStringEncodePayload ¶
func (*AmfCodec) AmfVectorDoubleDecode ¶
func (codec *AmfCodec) AmfVectorDoubleDecode(data []byte) (*AmfVectorDouble, int, error)
func (*AmfCodec) AmfVectorDoubleEncode ¶
func (codec *AmfCodec) AmfVectorDoubleEncode(vec *AmfVectorDouble) ([]byte, error)
func (*AmfCodec) AmfVectorIntDecode ¶
func (codec *AmfCodec) AmfVectorIntDecode(data []byte) (*AmfVectorInt, int, error)
func (*AmfCodec) AmfVectorIntEncode ¶
func (codec *AmfCodec) AmfVectorIntEncode(vec *AmfVectorInt) ([]byte, error)
func (*AmfCodec) AmfVectorObjDecode ¶
func (codec *AmfCodec) AmfVectorObjDecode(data []byte) (*AmfVectorObj, int, error)
func (*AmfCodec) AmfVectorObjEncode ¶
func (codec *AmfCodec) AmfVectorObjEncode( obj *AmfVectorObj, ) ([]byte, error)
func (*AmfCodec) AmfVectorUintDecode ¶
func (codec *AmfCodec) AmfVectorUintDecode(data []byte) (*AmfVectorUint, int, error)
func (*AmfCodec) AmfVectorUintEncode ¶
func (codec *AmfCodec) AmfVectorUintEncode(vec *AmfVectorUint) ([]byte, error)
func (*AmfCodec) AmfXmlDecode ¶
func (*AmfCodec) AmfXmlDocDecode ¶
func (*AmfCodec) AmfXmlDocEncode ¶
func (*AmfCodec) Append ¶
func (codec *AmfCodec) Append(value interface{}, kind AmfCodecTable) bool
type AmfCodecTable ¶
type AmfCodecTable int
type AmfDict ¶
type AmfDict struct { WeakKeys bool EntryKey []interface{} EntryValue []interface{} }
func EmptyAmfDict ¶
func EmptyAmfDict() *AmfDict
type AmfObj ¶
type AmfObj struct { ClassName string Member []AmfObjMember DynMembers []AmfObjMember ExtTraits []byte }
func EmptyAmfObj ¶
func EmptyAmfObj() *AmfObj
func (*AmfObj) AppendDynMember ¶
func (obj *AmfObj) AppendDynMember(mem AmfObjMember)
func (*AmfObj) AppendMember ¶
func (obj *AmfObj) AppendMember(mem AmfObjMember)
type AmfObjMember ¶
type AmfObjMember struct { Key string Value interface{} }
type AmfTraitExtHandler ¶
used when decoding traits-ext given data without obj marker, U29o header, class-name, return traits-ext(U8s)
type AmfTraitSet ¶
func NewAmfTraitSet ¶
func NewAmfTraitSet() *AmfTraitSet
type AmfVectorDouble ¶
type AmfVectorInt ¶
type AmfVectorObj ¶
func EmptyAmfVectorObj ¶
func EmptyAmfVectorObj() *AmfVectorObj
type AmfVectorUint ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.