C# 클래스 SWFProcessing.SWFModeller.ABCDataTypeReader

A binary reader with methods for reading the atomic units of a ABC file.
상속: IDisposable
파일 보기 프로젝트 열기: WeeWorld/Swiffotron

공개 메소드들

메소드 설명
ABCDataTypeReader ( Stream inputStream ) : System

Initializes a new instance of a reader for a ABC data stream

Align8 ( ) : void

Align to the next whole byte. If we're already on a byte boundary, the next byte position does not change.

Dispose ( ) : void
ReadByteBlock ( int len ) : byte[]
ReadInt32 ( ) : int

There isn't any 32-bit types in ABC, they're all packed ints. You probably want ReadSI32 or ReadUI32 instead. This is here to allow us to fake reading doubles.

ReadSBits ( int numBits ) : int
ReadSI24 ( ) : int
ReadSI32 ( ) : int
ReadSI8 ( ) : int

Read an unsigned byte, aligned to the next byte boundary

ReadString ( ) : string

Reads a UTF8 string, prefixed by a length value stored as a packed int.

ReadU30 ( ) : uint

Reads an aligned 30-bit unsigned integer. The top two bits will be 0. See ReadEncodedU32 for a 32-bit version. This belongs in the ABC spec; 32-bit values belong in the SWF spec.

ReadUBits ( int numBits ) : uint
ReadUI16 ( ) : ushort

Read an unsigned short, aligned to the next byte boundary

ReadUI32 ( ) : uint

Read an unsigned int, aligned to the next byte boundary

ReadUI8 ( ) : int

Read an unsigned byte, aligned to the next byte boundary

비공개 메소드들

메소드 설명
ReadFully ( byte b, int o, int len ) : void

메소드 상세

ABCDataTypeReader() 공개 메소드

Initializes a new instance of a reader for a ABC data stream
public ABCDataTypeReader ( Stream inputStream ) : System
inputStream Stream The stream to read from
리턴 System

Align8() 공개 메소드

Align to the next whole byte. If we're already on a byte boundary, the next byte position does not change.
public Align8 ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ReadByteBlock() 공개 메소드

public ReadByteBlock ( int len ) : byte[]
len int
리턴 byte[]

ReadInt32() 공개 메소드

There isn't any 32-bit types in ABC, they're all packed ints. You probably want ReadSI32 or ReadUI32 instead. This is here to allow us to fake reading doubles.
public ReadInt32 ( ) : int
리턴 int

ReadSBits() 공개 메소드

public ReadSBits ( int numBits ) : int
numBits int
리턴 int

ReadSI24() 공개 메소드

public ReadSI24 ( ) : int
리턴 int

ReadSI32() 공개 메소드

public ReadSI32 ( ) : int
리턴 int

ReadSI8() 공개 메소드

Read an unsigned byte, aligned to the next byte boundary
public ReadSI8 ( ) : int
리턴 int

ReadString() 공개 메소드

Reads a UTF8 string, prefixed by a length value stored as a packed int.
public ReadString ( ) : string
리턴 string

ReadU30() 공개 메소드

Reads an aligned 30-bit unsigned integer. The top two bits will be 0. See ReadEncodedU32 for a 32-bit version. This belongs in the ABC spec; 32-bit values belong in the SWF spec.
public ReadU30 ( ) : uint
리턴 uint

ReadUBits() 공개 메소드

public ReadUBits ( int numBits ) : uint
numBits int
리턴 uint

ReadUI16() 공개 메소드

Read an unsigned short, aligned to the next byte boundary
public ReadUI16 ( ) : ushort
리턴 ushort

ReadUI32() 공개 메소드

Read an unsigned int, aligned to the next byte boundary
public ReadUI32 ( ) : uint
리턴 uint

ReadUI8() 공개 메소드

Read an unsigned byte, aligned to the next byte boundary
public ReadUI8 ( ) : int
리턴 int