C# 클래스 SWFProcessing.SWFModeller.SWFDataTypeWriter

A writer that can write an assortment of atomic SWF types to a stream.
상속: IDisposable
파일 보기 프로젝트 열기: WeeWorld/Swiffotron 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
RequiredBits ( int v ) : int
WriteColorComponent ( int value, int numBits ) : void
WriteVarlenFBPair ( float a, float b ) : void

메소드 상세

Align8() 공개 메소드

public Align8 ( ) : void
리턴 void

Align8Unchecked() 공개 메소드

Call this only if you know bitCount to be >0
public Align8Unchecked ( ) : void
리턴 void

Close() 공개 메소드

public Close ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

SWFDataTypeWriter() 공개 메소드

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

Write() 공개 메소드

public Write ( byte b ) : void
b byte
리턴 void

Write() 공개 메소드

public Write ( byte b, int off, int len ) : void
b byte
off int
len int
리턴 void

WriteBit() 공개 메소드

public WriteBit ( bool bit ) : void
bit bool
리턴 void

WriteBytes() 공개 메소드

public WriteBytes ( byte bytes ) : void
bytes byte
리턴 void

WriteColorTransform() 공개 메소드

public WriteColorTransform ( ColorTransform cxform, bool withAlpha ) : void
cxform SWFProcessing.SWFModeller.Characters.ColorTransform
withAlpha bool
리턴 void

WriteFB() 공개 메소드

public WriteFB ( float value, int nbits ) : void
value float
nbits int
리턴 void

WriteFIXED8() 공개 메소드

public WriteFIXED8 ( float v ) : void
v float
리턴 void

WriteMatrix() 공개 메소드

public WriteMatrix ( Matrix m ) : void
m Matrix
리턴 void

WriteRGB() 공개 메소드

public WriteRGB ( int v ) : void
v int
리턴 void

WriteRGBA() 공개 메소드

public WriteRGBA ( int v ) : void
v int
리턴 void

WriteRect() 공개 메소드

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.
리턴 void

WriteSBits() 공개 메소드

public WriteSBits ( int value, int numBits ) : void
value int
numBits int
리턴 void

WriteSI16() 공개 메소드

public WriteSI16 ( int v ) : void
v int
리턴 void

WriteSI32() 공개 메소드

public WriteSI32 ( int v ) : void
v int
리턴 void

WriteString() 공개 메소드

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.
리턴 void

WriteUBits() 공개 메소드

public WriteUBits ( uint value, int numBits ) : void
value uint
numBits int
리턴 void

WriteUI16() 공개 메소드

public WriteUI16 ( uint v ) : void
v uint
리턴 void

WriteUI24() 공개 메소드

public WriteUI24 ( uint v ) : void
v uint
리턴 void

WriteUI32() 공개 메소드

public WriteUI32 ( uint v ) : void
v uint
리턴 void

WriteUI8() 공개 메소드

public WriteUI8 ( uint v ) : void
v uint
리턴 void