swf

package module
v0.0.0-...-ce8356d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 9 Imported by: 0

README

go-swf

WIP

Documentation

Index

Constants

View Source
const (
	SignatureUncompressed = `SWF`
	SignatureCompressed   = `SWC`
)
View Source
const (
	// First byte.
	LineStyleFlagPixelHinting      = 1 << 0
	LineStyleFlagNoVerticalScale   = 1 << 1
	LineStyleFlagNoHorizontalScale = 1 << 2
	LineStyleFlagHasFill           = 1 << 3
	LineStyleFlagJoinStyle         = 0b11 << 4
	LineStyleFlagStartCapStyle     = 0b11 << 6
	// Second byte.
	LineStyleFlagEndCapStyle = 0b11 << 8
	LineStyleFlagNoClose     = 1 << 10
	// JoinStyle mask values.
	JoinStyleRound = 0b00 << 4
	JoinStyleBevel = 0b01 << 4
	JoinStyleMiter = 0b10 << 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color struct {
	Red   uint8
	Green uint8
	Blue  uint8
	Alpha uint8
	// contains filtered or unexported fields
}

func ReadRGB

func ReadRGB(src io.Reader) (*Color, error)

func ReadRGBA

func ReadRGBA(src io.Reader) (*Color, error)

func (*Color) Bytes

func (c *Color) Bytes() []byte

func (*Color) Serialize

func (c *Color) Serialize() ([]byte, error)

func (*Color) String

func (c *Color) String() string

type Content

type Content interface {
	TagCode() TagCode
	String() string
	Bytes() []byte
	Serialize() ([]byte, error)
}

type ContentSlice

type ContentSlice []Content

func (ContentSlice) Bytes

func (c ContentSlice) Bytes() []byte

func (ContentSlice) Serialize

func (c ContentSlice) Serialize() ([]byte, error)

func (ContentSlice) String

func (c ContentSlice) String() string

type CsmTextSettings

type CsmTextSettings struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseCsmTextSettings

func ParseCsmTextSettings(src io.Reader, tag *Uint16, extended *Uint32) (*CsmTextSettings, error)

func (*CsmTextSettings) Bytes

func (v *CsmTextSettings) Bytes() []byte

func (*CsmTextSettings) Serialize

func (v *CsmTextSettings) Serialize() ([]byte, error)

func (*CsmTextSettings) String

func (v *CsmTextSettings) String() string

func (*CsmTextSettings) TagCode

func (v *CsmTextSettings) TagCode() TagCode

type DebugId

type DebugId struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDebugId

func ParseDebugId(src io.Reader, tag *Uint16, extended *Uint32) (*DebugId, error)

func (*DebugId) Bytes

func (v *DebugId) Bytes() []byte

func (*DebugId) Serialize

func (v *DebugId) Serialize() ([]byte, error)

func (*DebugId) String

func (v *DebugId) String() string

func (*DebugId) TagCode

func (v *DebugId) TagCode() TagCode

type DefineBinaryData

type DefineBinaryData struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineBinaryData

func ParseDefineBinaryData(src io.Reader, tag *Uint16, extended *Uint32) (*DefineBinaryData, error)

func (*DefineBinaryData) Bytes

func (v *DefineBinaryData) Bytes() []byte

func (*DefineBinaryData) Serialize

func (v *DefineBinaryData) Serialize() ([]byte, error)

func (*DefineBinaryData) String

func (v *DefineBinaryData) String() string

func (*DefineBinaryData) TagCode

func (v *DefineBinaryData) TagCode() TagCode

type DefineBits

type DefineBits struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineBits

func ParseDefineBits(src io.Reader, tag *Uint16, extended *Uint32) (*DefineBits, error)

func (*DefineBits) Bytes

func (v *DefineBits) Bytes() []byte

func (*DefineBits) Serialize

func (v *DefineBits) Serialize() ([]byte, error)

func (*DefineBits) String

func (v *DefineBits) String() string

func (*DefineBits) TagCode

func (v *DefineBits) TagCode() TagCode

type DefineBitsJpeg2

type DefineBitsJpeg2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineBitsJpeg2

func ParseDefineBitsJpeg2(src io.Reader, tag *Uint16, extended *Uint32) (*DefineBitsJpeg2, error)

func (*DefineBitsJpeg2) Bytes

func (v *DefineBitsJpeg2) Bytes() []byte

func (*DefineBitsJpeg2) Serialize

func (v *DefineBitsJpeg2) Serialize() ([]byte, error)

func (*DefineBitsJpeg2) String

func (v *DefineBitsJpeg2) String() string

func (*DefineBitsJpeg2) TagCode

func (v *DefineBitsJpeg2) TagCode() TagCode

type DefineBitsJpeg3

type DefineBitsJpeg3 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineBitsJpeg3

func ParseDefineBitsJpeg3(src io.Reader, tag *Uint16, extended *Uint32) (*DefineBitsJpeg3, error)

func (*DefineBitsJpeg3) Bytes

func (v *DefineBitsJpeg3) Bytes() []byte

func (*DefineBitsJpeg3) Serialize

func (v *DefineBitsJpeg3) Serialize() ([]byte, error)

func (*DefineBitsJpeg3) String

func (v *DefineBitsJpeg3) String() string

func (*DefineBitsJpeg3) TagCode

func (v *DefineBitsJpeg3) TagCode() TagCode

type DefineBitsJpeg4

type DefineBitsJpeg4 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineBitsJpeg4

func ParseDefineBitsJpeg4(src io.Reader, tag *Uint16, extended *Uint32) (*DefineBitsJpeg4, error)

func (*DefineBitsJpeg4) Bytes

func (v *DefineBitsJpeg4) Bytes() []byte

func (*DefineBitsJpeg4) Serialize

func (v *DefineBitsJpeg4) Serialize() ([]byte, error)

func (*DefineBitsJpeg4) String

func (v *DefineBitsJpeg4) String() string

func (*DefineBitsJpeg4) TagCode

func (v *DefineBitsJpeg4) TagCode() TagCode

type DefineBitsLossless

type DefineBitsLossless struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineBitsLossless

func ParseDefineBitsLossless(src io.Reader, tag *Uint16, extended *Uint32) (*DefineBitsLossless, error)

func (*DefineBitsLossless) Bytes

func (v *DefineBitsLossless) Bytes() []byte

func (*DefineBitsLossless) Serialize

func (v *DefineBitsLossless) Serialize() ([]byte, error)

func (*DefineBitsLossless) String

func (v *DefineBitsLossless) String() string

func (*DefineBitsLossless) TagCode

func (v *DefineBitsLossless) TagCode() TagCode

type DefineBitsLossless2

type DefineBitsLossless2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineBitsLossless2

func ParseDefineBitsLossless2(src io.Reader, tag *Uint16, extended *Uint32) (*DefineBitsLossless2, error)

func (*DefineBitsLossless2) Bytes

func (v *DefineBitsLossless2) Bytes() []byte

func (*DefineBitsLossless2) Serialize

func (v *DefineBitsLossless2) Serialize() ([]byte, error)

func (*DefineBitsLossless2) String

func (v *DefineBitsLossless2) String() string

func (*DefineBitsLossless2) TagCode

func (v *DefineBitsLossless2) TagCode() TagCode

type DefineButton

type DefineButton struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineButton

func ParseDefineButton(src io.Reader, tag *Uint16, extended *Uint32) (*DefineButton, error)

func (*DefineButton) Bytes

func (v *DefineButton) Bytes() []byte

func (*DefineButton) Serialize

func (v *DefineButton) Serialize() ([]byte, error)

func (*DefineButton) String

func (v *DefineButton) String() string

func (*DefineButton) TagCode

func (v *DefineButton) TagCode() TagCode

type DefineButton2

type DefineButton2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineButton2

func ParseDefineButton2(src io.Reader, tag *Uint16, extended *Uint32) (*DefineButton2, error)

func (*DefineButton2) Bytes

func (v *DefineButton2) Bytes() []byte

func (*DefineButton2) Serialize

func (v *DefineButton2) Serialize() ([]byte, error)

func (*DefineButton2) String

func (v *DefineButton2) String() string

func (*DefineButton2) TagCode

func (v *DefineButton2) TagCode() TagCode

type DefineButtonCxform

type DefineButtonCxform struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineButtonCxform

func ParseDefineButtonCxform(src io.Reader, tag *Uint16, extended *Uint32) (*DefineButtonCxform, error)

func (*DefineButtonCxform) Bytes

func (v *DefineButtonCxform) Bytes() []byte

func (*DefineButtonCxform) Serialize

func (v *DefineButtonCxform) Serialize() ([]byte, error)

func (*DefineButtonCxform) String

func (v *DefineButtonCxform) String() string

func (*DefineButtonCxform) TagCode

func (v *DefineButtonCxform) TagCode() TagCode

type DefineButtonSound

type DefineButtonSound struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineButtonSound

func ParseDefineButtonSound(src io.Reader, tag *Uint16, extended *Uint32) (*DefineButtonSound, error)

func (*DefineButtonSound) Bytes

func (v *DefineButtonSound) Bytes() []byte

func (*DefineButtonSound) Serialize

func (v *DefineButtonSound) Serialize() ([]byte, error)

func (*DefineButtonSound) String

func (v *DefineButtonSound) String() string

func (*DefineButtonSound) TagCode

func (v *DefineButtonSound) TagCode() TagCode

type DefineEditText

type DefineEditText struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineEditText

func ParseDefineEditText(src io.Reader, tag *Uint16, extended *Uint32) (*DefineEditText, error)

func (*DefineEditText) Bytes

func (v *DefineEditText) Bytes() []byte

func (*DefineEditText) Serialize

func (v *DefineEditText) Serialize() ([]byte, error)

func (*DefineEditText) String

func (v *DefineEditText) String() string

func (*DefineEditText) TagCode

func (v *DefineEditText) TagCode() TagCode

type DefineFont

type DefineFont struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineFont

func ParseDefineFont(src io.Reader, tag *Uint16, extended *Uint32) (*DefineFont, error)

func (*DefineFont) Bytes

func (v *DefineFont) Bytes() []byte

func (*DefineFont) Serialize

func (v *DefineFont) Serialize() ([]byte, error)

func (*DefineFont) String

func (v *DefineFont) String() string

func (*DefineFont) TagCode

func (v *DefineFont) TagCode() TagCode

type DefineFont2

type DefineFont2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineFont2

func ParseDefineFont2(src io.Reader, tag *Uint16, extended *Uint32) (*DefineFont2, error)

func (*DefineFont2) Bytes

func (v *DefineFont2) Bytes() []byte

func (*DefineFont2) Serialize

func (v *DefineFont2) Serialize() ([]byte, error)

func (*DefineFont2) String

func (v *DefineFont2) String() string

func (*DefineFont2) TagCode

func (v *DefineFont2) TagCode() TagCode

type DefineFont3

type DefineFont3 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineFont3

func ParseDefineFont3(src io.Reader, tag *Uint16, extended *Uint32) (*DefineFont3, error)

func (*DefineFont3) Bytes

func (v *DefineFont3) Bytes() []byte

func (*DefineFont3) Serialize

func (v *DefineFont3) Serialize() ([]byte, error)

func (*DefineFont3) String

func (v *DefineFont3) String() string

func (*DefineFont3) TagCode

func (v *DefineFont3) TagCode() TagCode

type DefineFont4

type DefineFont4 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineFont4

func ParseDefineFont4(src io.Reader, tag *Uint16, extended *Uint32) (*DefineFont4, error)

func (*DefineFont4) Bytes

func (v *DefineFont4) Bytes() []byte

func (*DefineFont4) Serialize

func (v *DefineFont4) Serialize() ([]byte, error)

func (*DefineFont4) String

func (v *DefineFont4) String() string

func (*DefineFont4) TagCode

func (v *DefineFont4) TagCode() TagCode

type DefineFontAlignZones

type DefineFontAlignZones struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineFontAlignZones

func ParseDefineFontAlignZones(src io.Reader, tag *Uint16, extended *Uint32) (*DefineFontAlignZones, error)

func (*DefineFontAlignZones) Bytes

func (v *DefineFontAlignZones) Bytes() []byte

func (*DefineFontAlignZones) Serialize

func (v *DefineFontAlignZones) Serialize() ([]byte, error)

func (*DefineFontAlignZones) String

func (v *DefineFontAlignZones) String() string

func (*DefineFontAlignZones) TagCode

func (v *DefineFontAlignZones) TagCode() TagCode

type DefineFontInfo

type DefineFontInfo struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineFontInfo

func ParseDefineFontInfo(src io.Reader, tag *Uint16, extended *Uint32) (*DefineFontInfo, error)

func (*DefineFontInfo) Bytes

func (v *DefineFontInfo) Bytes() []byte

func (*DefineFontInfo) Serialize

func (v *DefineFontInfo) Serialize() ([]byte, error)

func (*DefineFontInfo) String

func (v *DefineFontInfo) String() string

func (*DefineFontInfo) TagCode

func (v *DefineFontInfo) TagCode() TagCode

type DefineFontInfo2

type DefineFontInfo2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineFontInfo2

func ParseDefineFontInfo2(src io.Reader, tag *Uint16, extended *Uint32) (*DefineFontInfo2, error)

func (*DefineFontInfo2) Bytes

func (v *DefineFontInfo2) Bytes() []byte

func (*DefineFontInfo2) Serialize

func (v *DefineFontInfo2) Serialize() ([]byte, error)

func (*DefineFontInfo2) String

func (v *DefineFontInfo2) String() string

func (*DefineFontInfo2) TagCode

func (v *DefineFontInfo2) TagCode() TagCode

type DefineFontName

type DefineFontName struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineFontName

func ParseDefineFontName(src io.Reader, tag *Uint16, extended *Uint32) (*DefineFontName, error)

func (*DefineFontName) Bytes

func (v *DefineFontName) Bytes() []byte

func (*DefineFontName) Serialize

func (v *DefineFontName) Serialize() ([]byte, error)

func (*DefineFontName) String

func (v *DefineFontName) String() string

func (*DefineFontName) TagCode

func (v *DefineFontName) TagCode() TagCode

type DefineMorphShape

type DefineMorphShape struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineMorphShape

func ParseDefineMorphShape(src io.Reader, tag *Uint16, extended *Uint32) (*DefineMorphShape, error)

func (*DefineMorphShape) Bytes

func (v *DefineMorphShape) Bytes() []byte

func (*DefineMorphShape) Serialize

func (v *DefineMorphShape) Serialize() ([]byte, error)

func (*DefineMorphShape) String

func (v *DefineMorphShape) String() string

func (*DefineMorphShape) TagCode

func (v *DefineMorphShape) TagCode() TagCode

type DefineMorphShape2

type DefineMorphShape2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineMorphShape2

func ParseDefineMorphShape2(src io.Reader, tag *Uint16, extended *Uint32) (*DefineMorphShape2, error)

func (*DefineMorphShape2) Bytes

func (v *DefineMorphShape2) Bytes() []byte

func (*DefineMorphShape2) Serialize

func (v *DefineMorphShape2) Serialize() ([]byte, error)

func (*DefineMorphShape2) String

func (v *DefineMorphShape2) String() string

func (*DefineMorphShape2) TagCode

func (v *DefineMorphShape2) TagCode() TagCode

type DefineScalingGrid

type DefineScalingGrid struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineScalingGrid

func ParseDefineScalingGrid(src io.Reader, tag *Uint16, extended *Uint32) (*DefineScalingGrid, error)

func (*DefineScalingGrid) Bytes

func (v *DefineScalingGrid) Bytes() []byte

func (*DefineScalingGrid) Serialize

func (v *DefineScalingGrid) Serialize() ([]byte, error)

func (*DefineScalingGrid) String

func (v *DefineScalingGrid) String() string

func (*DefineScalingGrid) TagCode

func (v *DefineScalingGrid) TagCode() TagCode

type DefineSceneAndFrameLabelData

type DefineSceneAndFrameLabelData struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineSceneAndFrameLabelData

func ParseDefineSceneAndFrameLabelData(src io.Reader, tag *Uint16, extended *Uint32) (*DefineSceneAndFrameLabelData, error)

func (*DefineSceneAndFrameLabelData) Bytes

func (v *DefineSceneAndFrameLabelData) Bytes() []byte

func (*DefineSceneAndFrameLabelData) Serialize

func (v *DefineSceneAndFrameLabelData) Serialize() ([]byte, error)

func (*DefineSceneAndFrameLabelData) String

func (*DefineSceneAndFrameLabelData) TagCode

type DefineShape

type DefineShape struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineShape

func ParseDefineShape(src io.Reader, tag *Uint16, extended *Uint32) (*DefineShape, error)

func (*DefineShape) Bytes

func (v *DefineShape) Bytes() []byte

func (*DefineShape) Serialize

func (v *DefineShape) Serialize() ([]byte, error)

func (*DefineShape) String

func (v *DefineShape) String() string

func (*DefineShape) TagCode

func (v *DefineShape) TagCode() TagCode

type DefineShape2

type DefineShape2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineShape2

func ParseDefineShape2(src io.Reader, tag *Uint16, extended *Uint32) (*DefineShape2, error)

func (*DefineShape2) Bytes

func (v *DefineShape2) Bytes() []byte

func (*DefineShape2) Serialize

func (v *DefineShape2) Serialize() ([]byte, error)

func (*DefineShape2) String

func (v *DefineShape2) String() string

func (*DefineShape2) TagCode

func (v *DefineShape2) TagCode() TagCode

type DefineShape3

type DefineShape3 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineShape3

func ParseDefineShape3(src io.Reader, tag *Uint16, extended *Uint32) (*DefineShape3, error)

func (*DefineShape3) Bytes

func (v *DefineShape3) Bytes() []byte

func (*DefineShape3) Serialize

func (v *DefineShape3) Serialize() ([]byte, error)

func (*DefineShape3) String

func (v *DefineShape3) String() string

func (*DefineShape3) TagCode

func (v *DefineShape3) TagCode() TagCode

type DefineShape4

type DefineShape4 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineShape4

func ParseDefineShape4(src io.Reader, tag *Uint16, extended *Uint32) (*DefineShape4, error)

func (*DefineShape4) Bytes

func (v *DefineShape4) Bytes() []byte

func (*DefineShape4) Serialize

func (v *DefineShape4) Serialize() ([]byte, error)

func (*DefineShape4) String

func (v *DefineShape4) String() string

func (*DefineShape4) TagCode

func (v *DefineShape4) TagCode() TagCode

type DefineSound

type DefineSound struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineSound

func ParseDefineSound(src io.Reader, tag *Uint16, extended *Uint32) (*DefineSound, error)

func (*DefineSound) Bytes

func (v *DefineSound) Bytes() []byte

func (*DefineSound) Serialize

func (v *DefineSound) Serialize() ([]byte, error)

func (*DefineSound) String

func (v *DefineSound) String() string

func (*DefineSound) TagCode

func (v *DefineSound) TagCode() TagCode

type DefineSprite

type DefineSprite struct {
	Tag       *Uint16
	Extended  *Uint32
	ID        *Uint16
	NumFrames *Uint16
}

func ParseDefineSprite

func ParseDefineSprite(src io.Reader, tag *Uint16, extended *Uint32) (*DefineSprite, error)

func (*DefineSprite) Bytes

func (v *DefineSprite) Bytes() []byte

func (*DefineSprite) Serialize

func (v *DefineSprite) Serialize() ([]byte, error)

func (*DefineSprite) String

func (v *DefineSprite) String() string

func (*DefineSprite) TagCode

func (v *DefineSprite) TagCode() TagCode

type DefineText

type DefineText struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineText

func ParseDefineText(src io.Reader, tag *Uint16, extended *Uint32) (*DefineText, error)

func (*DefineText) Bytes

func (v *DefineText) Bytes() []byte

func (*DefineText) Serialize

func (v *DefineText) Serialize() ([]byte, error)

func (*DefineText) String

func (v *DefineText) String() string

func (*DefineText) TagCode

func (v *DefineText) TagCode() TagCode

type DefineText2

type DefineText2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineText2

func ParseDefineText2(src io.Reader, tag *Uint16, extended *Uint32) (*DefineText2, error)

func (*DefineText2) Bytes

func (v *DefineText2) Bytes() []byte

func (*DefineText2) Serialize

func (v *DefineText2) Serialize() ([]byte, error)

func (*DefineText2) String

func (v *DefineText2) String() string

func (*DefineText2) TagCode

func (v *DefineText2) TagCode() TagCode

type DefineVideoStream

type DefineVideoStream struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDefineVideoStream

func ParseDefineVideoStream(src io.Reader, tag *Uint16, extended *Uint32) (*DefineVideoStream, error)

func (*DefineVideoStream) Bytes

func (v *DefineVideoStream) Bytes() []byte

func (*DefineVideoStream) Serialize

func (v *DefineVideoStream) Serialize() ([]byte, error)

func (*DefineVideoStream) String

func (v *DefineVideoStream) String() string

func (*DefineVideoStream) TagCode

func (v *DefineVideoStream) TagCode() TagCode

type DoAbc

type DoAbc struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDoAbc

func ParseDoAbc(src io.Reader, tag *Uint16, extended *Uint32) (*DoAbc, error)

func (*DoAbc) Bytes

func (v *DoAbc) Bytes() []byte

func (*DoAbc) Serialize

func (v *DoAbc) Serialize() ([]byte, error)

func (*DoAbc) String

func (v *DoAbc) String() string

func (*DoAbc) TagCode

func (v *DoAbc) TagCode() TagCode

type DoAction

type DoAction struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDoAction

func ParseDoAction(src io.Reader, tag *Uint16, extended *Uint32) (*DoAction, error)

func (*DoAction) Bytes

func (v *DoAction) Bytes() []byte

func (*DoAction) Serialize

func (v *DoAction) Serialize() ([]byte, error)

func (*DoAction) String

func (v *DoAction) String() string

func (*DoAction) TagCode

func (v *DoAction) TagCode() TagCode

type DoInitAction

type DoInitAction struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseDoInitAction

func ParseDoInitAction(src io.Reader, tag *Uint16, extended *Uint32) (*DoInitAction, error)

func (*DoInitAction) Bytes

func (v *DoInitAction) Bytes() []byte

func (*DoInitAction) Serialize

func (v *DoInitAction) Serialize() ([]byte, error)

func (*DoInitAction) String

func (v *DoInitAction) String() string

func (*DoInitAction) TagCode

func (v *DoInitAction) TagCode() TagCode

type EnableDebugger

type EnableDebugger struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseEnableDebugger

func ParseEnableDebugger(src io.Reader, tag *Uint16, extended *Uint32) (*EnableDebugger, error)

func (*EnableDebugger) Bytes

func (v *EnableDebugger) Bytes() []byte

func (*EnableDebugger) Serialize

func (v *EnableDebugger) Serialize() ([]byte, error)

func (*EnableDebugger) String

func (v *EnableDebugger) String() string

func (*EnableDebugger) TagCode

func (v *EnableDebugger) TagCode() TagCode

type EnableDebugger2

type EnableDebugger2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseEnableDebugger2

func ParseEnableDebugger2(src io.Reader, tag *Uint16, extended *Uint32) (*EnableDebugger2, error)

func (*EnableDebugger2) Bytes

func (v *EnableDebugger2) Bytes() []byte

func (*EnableDebugger2) Serialize

func (v *EnableDebugger2) Serialize() ([]byte, error)

func (*EnableDebugger2) String

func (v *EnableDebugger2) String() string

func (*EnableDebugger2) TagCode

func (v *EnableDebugger2) TagCode() TagCode

type EnableTelemetry

type EnableTelemetry struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseEnableTelemetry

func ParseEnableTelemetry(src io.Reader, tag *Uint16, extended *Uint32) (*EnableTelemetry, error)

func (*EnableTelemetry) Bytes

func (v *EnableTelemetry) Bytes() []byte

func (*EnableTelemetry) Serialize

func (v *EnableTelemetry) Serialize() ([]byte, error)

func (*EnableTelemetry) String

func (v *EnableTelemetry) String() string

func (*EnableTelemetry) TagCode

func (v *EnableTelemetry) TagCode() TagCode

type End

type End struct {
	Tag *Uint16
}

func ParseEnd

func ParseEnd(tag *Uint16) *End

func (*End) Bytes

func (v *End) Bytes() []byte

func (*End) Serialize

func (v *End) Serialize() ([]byte, error)

func (*End) String

func (v *End) String() string

func (*End) TagCode

func (v *End) TagCode() TagCode

type ExportAssets

type ExportAssets struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseExportAssets

func ParseExportAssets(src io.Reader, tag *Uint16, extended *Uint32) (*ExportAssets, error)

func (*ExportAssets) Bytes

func (v *ExportAssets) Bytes() []byte

func (*ExportAssets) Serialize

func (v *ExportAssets) Serialize() ([]byte, error)

func (*ExportAssets) String

func (v *ExportAssets) String() string

func (*ExportAssets) TagCode

func (v *ExportAssets) TagCode() TagCode

type File

type File struct {
	Signature  *Signature
	Version    *Uint8
	FileSize   *Uint32
	Rectangle  *Rectangle
	FrameRate  *FrameRate
	FrameCount *Uint16
	Contents   ContentSlice
}

func Parse

func Parse(src io.Reader) (*File, error)

func (*File) Bytes

func (f *File) Bytes() []byte

func (*File) Serialize

func (f *File) Serialize() ([]byte, error)

func (*File) String

func (f *File) String() string

type FileAttributes

type FileAttributes struct {
	Tag      *Uint16
	Extended *Uint32
	Flags    *Uint32
}

func ParseFileAttributes

func ParseFileAttributes(src io.Reader, tag *Uint16) (*FileAttributes, error)

func (*FileAttributes) Bytes

func (v *FileAttributes) Bytes() []byte

func (*FileAttributes) Serialize

func (v *FileAttributes) Serialize() ([]byte, error)

func (*FileAttributes) String

func (v *FileAttributes) String() string

func (*FileAttributes) TagCode

func (v *FileAttributes) TagCode() TagCode

type FillStyle

type FillStyle struct {
	Type       *Uint8
	Color      *Color
	Gradient   *Gradient
	FocalPoint *Uint16
	ID         *Uint16
	Matrix     *Matrix
}

func ReadFillStyle

func ReadFillStyle(src io.Reader, shapeVersion int) (*FillStyle, error)

type FrameLabel

type FrameLabel struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseFrameLabel

func ParseFrameLabel(src io.Reader, tag *Uint16, extended *Uint32) (*FrameLabel, error)

func (*FrameLabel) Bytes

func (v *FrameLabel) Bytes() []byte

func (*FrameLabel) Serialize

func (v *FrameLabel) Serialize() ([]byte, error)

func (*FrameLabel) String

func (v *FrameLabel) String() string

func (*FrameLabel) TagCode

func (v *FrameLabel) TagCode() TagCode

type FrameRate

type FrameRate struct {
	Value float64
	// contains filtered or unexported fields
}

func ReadFrameRate

func ReadFrameRate(src io.Reader) (*FrameRate, error)

func (*FrameRate) Bytes

func (f *FrameRate) Bytes() []byte

func (*FrameRate) Serialize

func (f *FrameRate) Serialize() ([]byte, error)

func (*FrameRate) String

func (f *FrameRate) String() string

type Gradient

type Gradient struct {
	Matrix  *Matrix
	Flags   *GradientFlags
	Records []*GradientRecord
}

func ReadGradient

func ReadGradient(src io.Reader, shapeVersion int) (*Gradient, error)

type GradientFlags

type GradientFlags struct {
	NumRecords    uint8
	Spread        uint8
	Interporation uint8
}

func ReadGradientFlags

func ReadGradientFlags(src io.Reader) (*GradientFlags, error)

type GradientRecord

type GradientRecord struct {
	Ratio *Uint8
	Color *Color
}

func ReadGradientRecord

func ReadGradientRecord(src io.Reader, shapeVersion int) (*GradientRecord, error)

type ImportAssets

type ImportAssets struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseImportAssets

func ParseImportAssets(src io.Reader, tag *Uint16, extended *Uint32) (*ImportAssets, error)

func (*ImportAssets) Bytes

func (v *ImportAssets) Bytes() []byte

func (*ImportAssets) Serialize

func (v *ImportAssets) Serialize() ([]byte, error)

func (*ImportAssets) String

func (v *ImportAssets) String() string

func (*ImportAssets) TagCode

func (v *ImportAssets) TagCode() TagCode

type ImportAssets2

type ImportAssets2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseImportAssets2

func ParseImportAssets2(src io.Reader, tag *Uint16, extended *Uint32) (*ImportAssets2, error)

func (*ImportAssets2) Bytes

func (v *ImportAssets2) Bytes() []byte

func (*ImportAssets2) Serialize

func (v *ImportAssets2) Serialize() ([]byte, error)

func (*ImportAssets2) String

func (v *ImportAssets2) String() string

func (*ImportAssets2) TagCode

func (v *ImportAssets2) TagCode() TagCode

type JpegTables

type JpegTables struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseJpegTables

func ParseJpegTables(src io.Reader, tag *Uint16, extended *Uint32) (*JpegTables, error)

func (*JpegTables) Bytes

func (v *JpegTables) Bytes() []byte

func (*JpegTables) Serialize

func (v *JpegTables) Serialize() ([]byte, error)

func (*JpegTables) String

func (v *JpegTables) String() string

func (*JpegTables) TagCode

func (v *JpegTables) TagCode() TagCode

type LineStyle

type LineStyle struct {
	Width     *Uint16
	Color     *Color
	Flags     *Uint16
	FillStyle *FillStyle
	Miter     *Uint16
}

func ReadLineStyle

func ReadLineStyle(src io.Reader, shapeVersion int) (*LineStyle, error)

type Matrix

type Matrix struct {
	// Scale
	HasScale     bool
	NumScaleBits uint8
	A            uint32
	D            uint32
	// Rotate/Skew
	HasRotate     bool
	NumRotateBits uint8
	B             uint32
	C             uint32
	// Translate (always present)
	NumTranslateBits uint8
	TX               uint32
	TY               uint32
}

func ReadMatrix

func ReadMatrix(src io.Reader) (*Matrix, error)

type Metadata

type Metadata struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseMetadata

func ParseMetadata(src io.Reader, tag *Uint16, extended *Uint32) (*Metadata, error)

func (*Metadata) Bytes

func (v *Metadata) Bytes() []byte

func (*Metadata) Serialize

func (v *Metadata) Serialize() ([]byte, error)

func (*Metadata) String

func (v *Metadata) String() string

func (*Metadata) TagCode

func (v *Metadata) TagCode() TagCode

type MorphFillStyle

type MorphFillStyle struct {
	Type            *Uint8
	Start           *FillStyle
	End             *FillStyle
	MorphGradient   *MorphGradient
	StartFocalPoint *Uint16
	EndFocalPoint   *Uint16
	ID              *Uint16
}

func ReadMorphFillStyle

func ReadMorphFillStyle(src io.Reader, shapeVersion int) (*MorphFillStyle, error)

type MorphGradient

type MorphGradient struct {
	Flags *GradientFlags
	Start *Gradient
	End   *Gradient
}

func ReadMorphGradient

func ReadMorphGradient(src io.Reader, shapeVersion int) (*MorphGradient, error)

type NameCharacter

type NameCharacter struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseNameCharacter

func ParseNameCharacter(src io.Reader, tag *Uint16, extended *Uint32) (*NameCharacter, error)

func (*NameCharacter) Bytes

func (v *NameCharacter) Bytes() []byte

func (*NameCharacter) Serialize

func (v *NameCharacter) Serialize() ([]byte, error)

func (*NameCharacter) String

func (v *NameCharacter) String() string

func (*NameCharacter) TagCode

func (v *NameCharacter) TagCode() TagCode

type PlaceObject

type PlaceObject struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParsePlaceObject

func ParsePlaceObject(src io.Reader, tag *Uint16, extended *Uint32) (*PlaceObject, error)

func (*PlaceObject) Bytes

func (v *PlaceObject) Bytes() []byte

func (*PlaceObject) Serialize

func (v *PlaceObject) Serialize() ([]byte, error)

func (*PlaceObject) String

func (v *PlaceObject) String() string

func (*PlaceObject) TagCode

func (v *PlaceObject) TagCode() TagCode

type PlaceObject2

type PlaceObject2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParsePlaceObject2

func ParsePlaceObject2(src io.Reader, tag *Uint16, extended *Uint32) (*PlaceObject2, error)

func (*PlaceObject2) Bytes

func (v *PlaceObject2) Bytes() []byte

func (*PlaceObject2) Serialize

func (v *PlaceObject2) Serialize() ([]byte, error)

func (*PlaceObject2) String

func (v *PlaceObject2) String() string

func (*PlaceObject2) TagCode

func (v *PlaceObject2) TagCode() TagCode

type PlaceObject3

type PlaceObject3 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParsePlaceObject3

func ParsePlaceObject3(src io.Reader, tag *Uint16, extended *Uint32) (*PlaceObject3, error)

func (*PlaceObject3) Bytes

func (v *PlaceObject3) Bytes() []byte

func (*PlaceObject3) Serialize

func (v *PlaceObject3) Serialize() ([]byte, error)

func (*PlaceObject3) String

func (v *PlaceObject3) String() string

func (*PlaceObject3) TagCode

func (v *PlaceObject3) TagCode() TagCode

type PlaceObject4

type PlaceObject4 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParsePlaceObject4

func ParsePlaceObject4(src io.Reader, tag *Uint16, extended *Uint32) (*PlaceObject4, error)

func (*PlaceObject4) Bytes

func (v *PlaceObject4) Bytes() []byte

func (*PlaceObject4) Serialize

func (v *PlaceObject4) Serialize() ([]byte, error)

func (*PlaceObject4) String

func (v *PlaceObject4) String() string

func (*PlaceObject4) TagCode

func (v *PlaceObject4) TagCode() TagCode

type ProductInfo

type ProductInfo struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseProductInfo

func ParseProductInfo(src io.Reader, tag *Uint16, extended *Uint32) (*ProductInfo, error)

func (*ProductInfo) Bytes

func (v *ProductInfo) Bytes() []byte

func (*ProductInfo) Serialize

func (v *ProductInfo) Serialize() ([]byte, error)

func (*ProductInfo) String

func (v *ProductInfo) String() string

func (*ProductInfo) TagCode

func (v *ProductInfo) TagCode() TagCode

type Protect

type Protect struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseProtect

func ParseProtect(src io.Reader, tag *Uint16, extended *Uint32) (*Protect, error)

func (*Protect) Bytes

func (v *Protect) Bytes() []byte

func (*Protect) Serialize

func (v *Protect) Serialize() ([]byte, error)

func (*Protect) String

func (v *Protect) String() string

func (*Protect) TagCode

func (v *Protect) TagCode() TagCode

type Rectangle

type Rectangle struct {
	BitsPerField int
	MinX         uint32
	MaxX         uint32
	MinY         uint32
	MaxY         uint32
	// contains filtered or unexported fields
}

func ReadRectangle

func ReadRectangle(src io.Reader) (*Rectangle, error)

func (*Rectangle) Bytes

func (r *Rectangle) Bytes() []byte

func (*Rectangle) Serialize

func (r *Rectangle) Serialize() ([]byte, error)

func (*Rectangle) String

func (r *Rectangle) String() string

type RemoveObject

type RemoveObject struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseRemoveObject

func ParseRemoveObject(src io.Reader, tag *Uint16, extended *Uint32) (*RemoveObject, error)

func (*RemoveObject) Bytes

func (v *RemoveObject) Bytes() []byte

func (*RemoveObject) Serialize

func (v *RemoveObject) Serialize() ([]byte, error)

func (*RemoveObject) String

func (v *RemoveObject) String() string

func (*RemoveObject) TagCode

func (v *RemoveObject) TagCode() TagCode

type RemoveObject2

type RemoveObject2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseRemoveObject2

func ParseRemoveObject2(src io.Reader, tag *Uint16, extended *Uint32) (*RemoveObject2, error)

func (*RemoveObject2) Bytes

func (v *RemoveObject2) Bytes() []byte

func (*RemoveObject2) Serialize

func (v *RemoveObject2) Serialize() ([]byte, error)

func (*RemoveObject2) String

func (v *RemoveObject2) String() string

func (*RemoveObject2) TagCode

func (v *RemoveObject2) TagCode() TagCode

type ScriptLimits

type ScriptLimits struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseScriptLimits

func ParseScriptLimits(src io.Reader, tag *Uint16, extended *Uint32) (*ScriptLimits, error)

func (*ScriptLimits) Bytes

func (v *ScriptLimits) Bytes() []byte

func (*ScriptLimits) Serialize

func (v *ScriptLimits) Serialize() ([]byte, error)

func (*ScriptLimits) String

func (v *ScriptLimits) String() string

func (*ScriptLimits) TagCode

func (v *ScriptLimits) TagCode() TagCode

type SetBackgroundColor

type SetBackgroundColor struct {
	Tag   *Uint16
	Color *Color
}

func ParseSetBackgroundColor

func ParseSetBackgroundColor(src io.Reader, tag *Uint16) (*SetBackgroundColor, error)

func (*SetBackgroundColor) Bytes

func (v *SetBackgroundColor) Bytes() []byte

func (*SetBackgroundColor) Serialize

func (v *SetBackgroundColor) Serialize() ([]byte, error)

func (*SetBackgroundColor) String

func (v *SetBackgroundColor) String() string

func (*SetBackgroundColor) TagCode

func (v *SetBackgroundColor) TagCode() TagCode

type SetTabIndex

type SetTabIndex struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseSetTabIndex

func ParseSetTabIndex(src io.Reader, tag *Uint16, extended *Uint32) (*SetTabIndex, error)

func (*SetTabIndex) Bytes

func (v *SetTabIndex) Bytes() []byte

func (*SetTabIndex) Serialize

func (v *SetTabIndex) Serialize() ([]byte, error)

func (*SetTabIndex) String

func (v *SetTabIndex) String() string

func (*SetTabIndex) TagCode

func (v *SetTabIndex) TagCode() TagCode

type Shape

type Shape struct {
	ID           *Uint16
	ShapeBounds  *Rectangle
	EdgeBounds   *Rectangle
	Flags        *Uint8
	ShapeStyles  *ShapeStyles
	ShapeRecords []*ShapeRecord
}

func ReadDefineShape

func ReadDefineShape(src io.Reader, swfVersion, shapeVersion int) (*Shape, error)

type ShapeContext

type ShapeContext struct {
	SWFVersion   int
	ShapeVersion int
	NumFillBits  uint8
	NumLineBits  uint8
}

type ShapeRecord

type ShapeRecord struct {
	IsEdgeRecordValue   *uint64
	IsStraightEdgeValue *uint64
	NumBitsValue        *uint64
	IsAxisAlignedValue  *uint64
	IsVerticalValue     *uint64
	DeltaXValue         *uint64
	DeltaYValue         *uint64
	ControlDeltaXValue  *uint64
	ControlDeltaYValue  *uint64
	AnchorDeltaXValue   *uint64
	AnchorDeltaYValue   *uint64
	FlagsValue          *uint64
	StyleChangeData     *StyleChangeData
}

func ReadShapeRecord

func ReadShapeRecord(src io.Reader, shapeContext *ShapeContext) (*ShapeRecord, error)

type ShapeStyles

type ShapeStyles struct {
	NumFillStyles  *Uint8
	NumFillStyles2 *Uint16
	FillStyles     []*FillStyle
	NumLineStyles  *Uint8
	NumLineStyles2 *Uint16
	LineStyles     []*LineStyle
	NumBits        *Uint8
}

func ReadShapeStyles

func ReadShapeStyles(src io.Reader, shapeVersion int) (*ShapeStyles, error)

type ShowFrame

type ShowFrame struct {
	Tag *Uint16
}

func ParseShowFrame

func ParseShowFrame(tag *Uint16) *ShowFrame

func (*ShowFrame) Bytes

func (v *ShowFrame) Bytes() []byte

func (*ShowFrame) Serialize

func (v *ShowFrame) Serialize() ([]byte, error)

func (*ShowFrame) String

func (v *ShowFrame) String() string

func (*ShowFrame) TagCode

func (v *ShowFrame) TagCode() TagCode

type Signature

type Signature struct {
	Value string
	// contains filtered or unexported fields
}

func ReadSignature

func ReadSignature(src io.Reader) (*Signature, error)

func (*Signature) Bytes

func (s *Signature) Bytes() []byte

func (*Signature) Serialize

func (s *Signature) Serialize() ([]byte, error)

func (*Signature) String

func (s *Signature) String() string

type SoundStreamBlock

type SoundStreamBlock struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseSoundStreamBlock

func ParseSoundStreamBlock(src io.Reader, tag *Uint16, extended *Uint32) (*SoundStreamBlock, error)

func (*SoundStreamBlock) Bytes

func (v *SoundStreamBlock) Bytes() []byte

func (*SoundStreamBlock) Serialize

func (v *SoundStreamBlock) Serialize() ([]byte, error)

func (*SoundStreamBlock) String

func (v *SoundStreamBlock) String() string

func (*SoundStreamBlock) TagCode

func (v *SoundStreamBlock) TagCode() TagCode

type SoundStreamHead

type SoundStreamHead struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseSoundStreamHead

func ParseSoundStreamHead(src io.Reader, tag *Uint16, extended *Uint32) (*SoundStreamHead, error)

func (*SoundStreamHead) Bytes

func (v *SoundStreamHead) Bytes() []byte

func (*SoundStreamHead) Serialize

func (v *SoundStreamHead) Serialize() ([]byte, error)

func (*SoundStreamHead) String

func (v *SoundStreamHead) String() string

func (*SoundStreamHead) TagCode

func (v *SoundStreamHead) TagCode() TagCode

type SoundStreamHead2

type SoundStreamHead2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseSoundStreamHead2

func ParseSoundStreamHead2(src io.Reader, tag *Uint16, extended *Uint32) (*SoundStreamHead2, error)

func (*SoundStreamHead2) Bytes

func (v *SoundStreamHead2) Bytes() []byte

func (*SoundStreamHead2) Serialize

func (v *SoundStreamHead2) Serialize() ([]byte, error)

func (*SoundStreamHead2) String

func (v *SoundStreamHead2) String() string

func (*SoundStreamHead2) TagCode

func (v *SoundStreamHead2) TagCode() TagCode

type StartSound

type StartSound struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseStartSound

func ParseStartSound(src io.Reader, tag *Uint16, extended *Uint32) (*StartSound, error)

func (*StartSound) Bytes

func (v *StartSound) Bytes() []byte

func (*StartSound) Serialize

func (v *StartSound) Serialize() ([]byte, error)

func (*StartSound) String

func (v *StartSound) String() string

func (*StartSound) TagCode

func (v *StartSound) TagCode() TagCode

type StartSound2

type StartSound2 struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseStartSound2

func ParseStartSound2(src io.Reader, tag *Uint16, extended *Uint32) (*StartSound2, error)

func (*StartSound2) Bytes

func (v *StartSound2) Bytes() []byte

func (*StartSound2) Serialize

func (v *StartSound2) Serialize() ([]byte, error)

func (*StartSound2) String

func (v *StartSound2) String() string

func (*StartSound2) TagCode

func (v *StartSound2) TagCode() TagCode

type StyleChangeData

type StyleChangeData struct {
	NumBitsValue    *uint64
	MoveToValue1    *uint64
	MoveToValue2    *uint64
	FillStyle0Value *uint64
	FillStyle1Value *uint64
	LineStyleValue  *uint64
	ShapeStyles     *ShapeStyles
}

type SymbolClass

type SymbolClass struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseSymbolClass

func ParseSymbolClass(src io.Reader, tag *Uint16, extended *Uint32) (*SymbolClass, error)

func (*SymbolClass) Bytes

func (v *SymbolClass) Bytes() []byte

func (*SymbolClass) Serialize

func (v *SymbolClass) Serialize() ([]byte, error)

func (*SymbolClass) String

func (v *SymbolClass) String() string

func (*SymbolClass) TagCode

func (v *SymbolClass) TagCode() TagCode

type TagCode

type TagCode uint16
const (
	EndTagCode                          TagCode = 0
	ShowFrameTagCode                    TagCode = 1
	DefineShapeTagCode                  TagCode = 2
	PlaceObjectTagCode                  TagCode = 4
	RemoveObjectTagCode                 TagCode = 5
	DefineBitsTagCode                   TagCode = 6
	DefineButtonTagCode                 TagCode = 7
	JpegTablesTagCode                   TagCode = 8
	SetBackgroundColorTagCode           TagCode = 9
	DefineFontTagCode                   TagCode = 10
	DefineTextTagCode                   TagCode = 11
	DoActionTagCode                     TagCode = 12
	DefineFontInfoTagCode               TagCode = 13
	DefineSoundTagCode                  TagCode = 14
	StartSoundTagCode                   TagCode = 15
	DefineButtonSoundTagCode            TagCode = 17
	SoundStreamHeadTagCode              TagCode = 18
	SoundStreamBlockTagCode             TagCode = 19
	DefineBitsLosslessTagCode           TagCode = 20
	DefineBitsJpeg2TagCode              TagCode = 21
	DefineShape2TagCode                 TagCode = 22
	DefineButtonCxformTagCode           TagCode = 23
	ProtectTagCode                      TagCode = 24
	PlaceObject2TagCode                 TagCode = 26
	RemoveObject2TagCode                TagCode = 28
	DefineShape3TagCode                 TagCode = 32
	DefineText2TagCode                  TagCode = 33
	DefineButton2TagCode                TagCode = 34
	DefineBitsJpeg3TagCode              TagCode = 35
	DefineBitsLossless2TagCode          TagCode = 36
	DefineEditTextTagCode               TagCode = 37
	DefineSpriteTagCode                 TagCode = 39
	NameCharacterTagCode                TagCode = 40
	ProductInfoTagCode                  TagCode = 41
	FrameLabelTagCode                   TagCode = 43
	SoundStreamHead2TagCode             TagCode = 45
	DefineMorphShapeTagCode             TagCode = 46
	DefineFont2TagCode                  TagCode = 48
	ExportAssetsTagCode                 TagCode = 56
	ImportAssetsTagCode                 TagCode = 57
	EnableDebuggerTagCode               TagCode = 58
	DoInitActionTagCode                 TagCode = 59
	DefineVideoStreamTagCode            TagCode = 60
	VideoFrameTagCode                   TagCode = 61
	DefineFontInfo2TagCode              TagCode = 62
	DebugIdTagCode                      TagCode = 63
	EnableDebugger2TagCode              TagCode = 64
	ScriptLimitsTagCode                 TagCode = 65
	SetTabIndexTagCode                  TagCode = 66
	FileAttributesTagCode               TagCode = 69
	PlaceObject3TagCode                 TagCode = 70
	ImportAssets2TagCode                TagCode = 71
	DefineFontAlignZonesTagCode         TagCode = 73
	CsmTextSettingsTagCode              TagCode = 74
	DefineFont3TagCode                  TagCode = 75
	SymbolClassTagCode                  TagCode = 76
	MetadataTagCode                     TagCode = 77
	DefineScalingGridTagCode            TagCode = 78
	DoAbcTagCode                        TagCode = 82
	DefineShape4TagCode                 TagCode = 83
	DefineMorphShape2TagCode            TagCode = 84
	DefineSceneAndFrameLabelDataTagCode TagCode = 86
	DefineBinaryDataTagCode             TagCode = 87
	DefineFontNameTagCode               TagCode = 88
	StartSound2TagCode                  TagCode = 89
	DefineBitsJpeg4TagCode              TagCode = 90
	DefineFont4TagCode                  TagCode = 91
	EnableTelemetryTagCode              TagCode = 93
	PlaceObject4TagCode                 TagCode = 94
	UnknownTagCode                      TagCode = 0xffff
)

func (TagCode) String

func (i TagCode) String() string

type Uint16

type Uint16 struct {
	Value uint16
	// contains filtered or unexported fields
}

func ReadUint16

func ReadUint16(src io.Reader) (*Uint16, error)

func (*Uint16) Bytes

func (u *Uint16) Bytes() []byte

func (*Uint16) Contains

func (u *Uint16) Contains(value uint16) bool

func (*Uint16) Serialize

func (u *Uint16) Serialize() ([]byte, error)

func (*Uint16) String

func (u *Uint16) String() string

type Uint32

type Uint32 struct {
	Value uint32
	// contains filtered or unexported fields
}

func ReadUint32

func ReadUint32(src io.Reader) (*Uint32, error)

func (*Uint32) Bytes

func (u *Uint32) Bytes() []byte

func (*Uint32) Serialize

func (u *Uint32) Serialize() ([]byte, error)

func (*Uint32) String

func (u *Uint32) String() string

type Uint8

type Uint8 struct {
	Value uint8
	// contains filtered or unexported fields
}

func ReadUint8

func ReadUint8(src io.Reader) (*Uint8, error)

func (*Uint8) Bytes

func (u *Uint8) Bytes() []byte

func (*Uint8) Serialize

func (u *Uint8) Serialize() ([]byte, error)

func (*Uint8) String

func (u *Uint8) String() string

type Unknown

type Unknown struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseUnknown

func ParseUnknown(src io.Reader, tag *Uint16, extended *Uint32) (*Unknown, error)

func (*Unknown) Bytes

func (v *Unknown) Bytes() []byte

func (*Unknown) Serialize

func (v *Unknown) Serialize() ([]byte, error)

func (*Unknown) String

func (v *Unknown) String() string

func (*Unknown) TagCode

func (v *Unknown) TagCode() TagCode

type VideoFrame

type VideoFrame struct {
	Tag      *Uint16
	Extended *Uint32
	// contains filtered or unexported fields
}

func ParseVideoFrame

func ParseVideoFrame(src io.Reader, tag *Uint16, extended *Uint32) (*VideoFrame, error)

func (*VideoFrame) Bytes

func (v *VideoFrame) Bytes() []byte

func (*VideoFrame) Serialize

func (v *VideoFrame) Serialize() ([]byte, error)

func (*VideoFrame) String

func (v *VideoFrame) String() string

func (*VideoFrame) TagCode

func (v *VideoFrame) TagCode() TagCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL