C# Class SwfDotNet.IO.Tags.RecordHeader

RecordHeader object represents swf tag headers.

The Swf format is composed of a series of tagged data blocks. All tag begins with record header informations.

A record header object contains the current tag code and the size of the tag in bytes.

You don't need to instance this object, to construct a tag. Record header management is automatically done on the reading or the writing process of a tag.

Datei anzeigen Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
ReadData ( BufferedBinaryReader binaryReader ) : void

Reads the data from a binary file

RecordHeader ( ) : System

Creates a new RecordHeader instance.

RecordHeader ( bool longTag ) : System

Creates a new RecordHeader instance.

RecordHeader ( int tag, int length ) : System

Creates a new RecordHeader instance.

RecordHeader ( int tag, int length, bool longTag ) : System

Creates a new RecordHeader instance.

RecordHeader ( int tag, uint length ) : System

Creates a new RecordHeader instance.

WriteTo ( BufferedBinaryWriter w ) : void

Writes binary data to given BinaryWriter.

Method Details

ReadData() public method

Reads the data from a binary file
public ReadData ( BufferedBinaryReader binaryReader ) : void
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader Binary reader.
return void

RecordHeader() public method

Creates a new RecordHeader instance.
public RecordHeader ( ) : System
return System

RecordHeader() public method

Creates a new RecordHeader instance.
public RecordHeader ( bool longTag ) : System
longTag bool Long tag.
return System

RecordHeader() public method

Creates a new RecordHeader instance.
public RecordHeader ( int tag, int length ) : System
tag int Tag code.
length int Length.
return System

RecordHeader() public method

Creates a new RecordHeader instance.
public RecordHeader ( int tag, int length, bool longTag ) : System
tag int Tag code.
length int Length.
longTag bool Long tag encoding.
return System

RecordHeader() public method

Creates a new RecordHeader instance.
public RecordHeader ( int tag, uint length ) : System
tag int Tag code.
length uint Length.
return System

WriteTo() public method

Writes binary data to given BinaryWriter.
public WriteTo ( BufferedBinaryWriter w ) : void
w SwfDotNet.IO.Utils.BufferedBinaryWriter binary writer
return void