Versions in this module Expand all Collapse all v1 v1.0.2 May 24, 2021 v1.0.1 May 21, 2021 Changes in this version + const CodeTagDoABC + const CodeTagEnd + const CompressionLZMA + const CompressionNone + const CompressionZlib + var ErrMalformedHeader = errors.New("malformed header") + var ErrUnsupportedFile = errors.New("unsupported file") + type Header struct + Compression uint8 + FileLength uint32 + FrameCount uint16 + FrameRate float32 + FrameSize Rect + Version uint8 + type Parser interface + Parse func() (Swf, error) + func NewParser(origin io.ReadSeeker, unrheadlen int) Parser + type Reader interface + ReadBitValue func(n uint8) (int32, error) + ReadBits func(n uint) (uint32, error) + ReadByte func() (byte, error) + ReadEUInt32 func() (uint32, error) + ReadFixed func() (float32, error) + ReadFixed8 func() (float32, error) + ReadInt16 func() (int16, error) + ReadInt32 func() (int32, error) + ReadInt8 func() (int8, error) + ReadString func() (string, error) + ReadUBitValue func(n uint8) (uint32, error) + ReadUInt16 func() (uint16, error) + ReadUInt32 func() (uint32, error) + ReadUInt8 func() (uint8, error) + func NewReader(r io.ReadSeeker) Reader + type Rect struct + NBits uint8 + Xmax int32 + Xmin int32 + Ymax int32 + Ymin int32 + type Swf struct + Header Header + Tags []Tag + func Parse(origin io.ReadSeeker, unrheadlen int) (Swf, error) + type Tag interface + Code func() uint16 + Length func() uint32 + type TagDoABC struct + ABCData []byte + Flags uint32 + Name string + func (t *TagDoABC) Code() uint16 + func (t *TagDoABC) Length() uint32