C# Класс SWFProcessing.SWFModeller.ABCDataTypeReader

A binary reader with methods for reading the atomic units of a ABC file.
Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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