C# Class SWFProcessing.SWFModeller.SWFDataTypeWriter

A writer that can write an assortment of atomic SWF types to a stream.
Inheritance: IDisposable
Afficher le fichier Open project: WeeWorld/Swiffotron Class Usage Examples

Méthodes publiques

Méthode Description
Align8 ( ) : void
Align8Unchecked ( ) : void

Call this only if you know bitCount to be >0

Close ( ) : void
Dispose ( ) : void
SWFDataTypeWriter ( Stream outputStream ) : System

Initializes a new instance of a SWF data writer

Write ( byte b ) : void
Write ( byte b, int off, int len ) : void
WriteBit ( bool bit ) : void
WriteBytes ( byte bytes ) : void
WriteColorTransform ( ColorTransform cxform, bool withAlpha ) : void
WriteFB ( float value, int nbits ) : void
WriteFIXED8 ( float v ) : void
WriteMatrix ( Matrix m ) : void
WriteRGB ( int v ) : void
WriteRGBA ( int v ) : void
WriteRect ( Rect r ) : void

Writes a rectangle to the stream

WARNING: Bear in mind that the writer will probably not be byte-aligned after calling this.

WriteSBits ( int value, int numBits ) : void
WriteSI16 ( int v ) : void
WriteSI32 ( int v ) : void
WriteString ( string s, bool write8BitLen = false ) : void

Strings in SWF are zero-terminated.

WriteUBits ( uint value, int numBits ) : void
WriteUI16 ( uint v ) : void
WriteUI24 ( uint v ) : void
WriteUI32 ( uint v ) : void
WriteUI8 ( uint v ) : void

Private Methods

Méthode Description
RequiredBits ( int v ) : int
WriteColorComponent ( int value, int numBits ) : void
WriteVarlenFBPair ( float a, float b ) : void

Method Details

Align8() public méthode

public Align8 ( ) : void
Résultat void

Align8Unchecked() public méthode

Call this only if you know bitCount to be >0
public Align8Unchecked ( ) : void
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

SWFDataTypeWriter() public méthode

Initializes a new instance of a SWF data writer
public SWFDataTypeWriter ( Stream outputStream ) : System
outputStream Stream The stream to write SWF data to.
Résultat System

Write() public méthode

public Write ( byte b ) : void
b byte
Résultat void

Write() public méthode

public Write ( byte b, int off, int len ) : void
b byte
off int
len int
Résultat void

WriteBit() public méthode

public WriteBit ( bool bit ) : void
bit bool
Résultat void

WriteBytes() public méthode

public WriteBytes ( byte bytes ) : void
bytes byte
Résultat void

WriteColorTransform() public méthode

public WriteColorTransform ( ColorTransform cxform, bool withAlpha ) : void
cxform SWFProcessing.SWFModeller.Characters.ColorTransform
withAlpha bool
Résultat void

WriteFB() public méthode

public WriteFB ( float value, int nbits ) : void
value float
nbits int
Résultat void

WriteFIXED8() public méthode

public WriteFIXED8 ( float v ) : void
v float
Résultat void

WriteMatrix() public méthode

public WriteMatrix ( Matrix m ) : void
m Matrix
Résultat void

WriteRGB() public méthode

public WriteRGB ( int v ) : void
v int
Résultat void

WriteRGBA() public méthode

public WriteRGBA ( int v ) : void
v int
Résultat void

WriteRect() public méthode

Writes a rectangle to the stream
WARNING: Bear in mind that the writer will probably not be byte-aligned after calling this.
public WriteRect ( Rect r ) : void
r SWFProcessing.ModellingUtils.Geom.Rect The rectangle to write.
Résultat void

WriteSBits() public méthode

public WriteSBits ( int value, int numBits ) : void
value int
numBits int
Résultat void

WriteSI16() public méthode

public WriteSI16 ( int v ) : void
v int
Résultat void

WriteSI32() public méthode

public WriteSI32 ( int v ) : void
v int
Résultat void

WriteString() public méthode

Strings in SWF are zero-terminated.
public WriteString ( string s, bool write8BitLen = false ) : void
s string The string to write
write8BitLen bool Some weird parts of SWF have a zero-terminated /// string prefixed by a length. Yeah, I know.
Résultat void

WriteUBits() public méthode

public WriteUBits ( uint value, int numBits ) : void
value uint
numBits int
Résultat void

WriteUI16() public méthode

public WriteUI16 ( uint v ) : void
v uint
Résultat void

WriteUI24() public méthode

public WriteUI24 ( uint v ) : void
v uint
Résultat void

WriteUI32() public méthode

public WriteUI32 ( uint v ) : void
v uint
Résultat void

WriteUI8() public méthode

public WriteUI8 ( uint v ) : void
v uint
Résultat void