Method | 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 ( |
||
WriteFB ( float value, int nbits ) : void | ||
WriteFIXED8 ( float v ) : void | ||
WriteMatrix ( Matrix m ) : void | ||
WriteRGB ( int v ) : void | ||
WriteRGBA ( int v ) : void | ||
WriteRect ( |
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 |
Method | Description | |
---|---|---|
RequiredBits ( int v ) : int | ||
WriteColorComponent ( int value, int numBits ) : void | ||
WriteVarlenFBPair ( float a, float b ) : void |
public SWFDataTypeWriter ( Stream outputStream ) : System | ||
outputStream | Stream | The stream to write SWF data to. |
return | System |
public Write ( byte b, int off, int len ) : void | ||
b | byte | |
off | int | |
len | int | |
return | void |
public WriteColorTransform ( |
||
cxform | ||
withAlpha | bool | |
return | void |
public WriteFB ( float value, int nbits ) : void | ||
value | float | |
nbits | int | |
return | void |
public WriteRect ( |
||
r | The rectangle to write. | |
return | void |
public WriteSBits ( int value, int numBits ) : void | ||
value | int | |
numBits | int | |
return | void |
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. |
return | void |
public WriteUBits ( uint value, int numBits ) : void | ||
value | uint | |
numBits | int | |
return | void |