C# Class SWFProcessing.SWFModeller.ABCDataTypeReader

A binary reader with methods for reading the atomic units of a ABC file.
Inheritance: IDisposable
Afficher le fichier Open project: WeeWorld/Swiffotron

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
ReadFully ( byte b, int o, int len ) : void

Method Details

ABCDataTypeReader() public méthode

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

Align8() public méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ReadByteBlock() public méthode

public ReadByteBlock ( int len ) : byte[]
len int
Résultat byte[]

ReadInt32() public méthode

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
Résultat int

ReadSBits() public méthode

public ReadSBits ( int numBits ) : int
numBits int
Résultat int

ReadSI24() public méthode

public ReadSI24 ( ) : int
Résultat int

ReadSI32() public méthode

public ReadSI32 ( ) : int
Résultat int

ReadSI8() public méthode

Read an unsigned byte, aligned to the next byte boundary
public ReadSI8 ( ) : int
Résultat int

ReadString() public méthode

Reads a UTF8 string, prefixed by a length value stored as a packed int.
public ReadString ( ) : string
Résultat string

ReadU30() public méthode

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
Résultat uint

ReadUBits() public méthode

public ReadUBits ( int numBits ) : uint
numBits int
Résultat uint

ReadUI16() public méthode

Read an unsigned short, aligned to the next byte boundary
public ReadUI16 ( ) : ushort
Résultat ushort

ReadUI32() public méthode

Read an unsigned int, aligned to the next byte boundary
public ReadUI32 ( ) : uint
Résultat uint

ReadUI8() public méthode

Read an unsigned byte, aligned to the next byte boundary
public ReadUI8 ( ) : int
Résultat int