C# Class javazoom.jl.converter.RiffFile

Class to manage RIFF files
Show file Open project: RHY3756547/FreeSO Class Usage Examples

Protected Properties

Property Type Description
file System.IO.Stream
fmode int

Public Methods

Method Description
Backpatch ( long FileOffset, RiffChunkHeader Data, int NumBytes ) : int

Write Data to specified offset.

Backpatch ( long FileOffset, sbyte Data, int NumBytes ) : int
Close ( ) : int

Close Riff File. Length is written too.

CurrentFileMode ( ) : int

Return File Mode.

CurrentFilePosition ( ) : long

Return File Position.

Expect ( System Data, int NumBytes ) : int

Expect NumBytes data.

FourCC ( System ChunkName ) : int

Fill the header.

Open ( System Filename, int NewMode ) : int

Open a RIFF file.

Read ( sbyte Data, int NumBytes ) : int

Read NumBytes data.

RiffFile ( ) : System

Dummy Constructor

Write ( RiffChunkHeader Triff_header, int NumBytes ) : int

Write NumBytes data.

Write ( int Data, int NumBytes ) : int

Write NumBytes data.

Write ( sbyte Data, int NumBytes ) : int

Write NumBytes data.

Write ( short Data, int NumBytes ) : int

Write NumBytes data.

Protected Methods

Method Description
Seek ( long offset ) : int

Seek in the File.

Private Methods

Method Description
DDCRET_String ( int retcode ) : System.String

Error Messages.

Method Details

Backpatch() public method

Write Data to specified offset.
public Backpatch ( long FileOffset, RiffChunkHeader Data, int NumBytes ) : int
FileOffset long
Data RiffChunkHeader
NumBytes int
return int

Backpatch() public method

public Backpatch ( long FileOffset, sbyte Data, int NumBytes ) : int
FileOffset long
Data sbyte
NumBytes int
return int

Close() public method

Close Riff File. Length is written too.
public Close ( ) : int
return int

CurrentFileMode() public method

Return File Mode.
public CurrentFileMode ( ) : int
return int

CurrentFilePosition() public method

Return File Position.
public CurrentFilePosition ( ) : long
return long

Expect() public method

Expect NumBytes data.
public Expect ( System Data, int NumBytes ) : int
Data System
NumBytes int
return int

FourCC() public static method

Fill the header.
public static FourCC ( System ChunkName ) : int
ChunkName System
return int

Open() public method

Open a RIFF file.
public Open ( System Filename, int NewMode ) : int
Filename System
NewMode int
return int

Read() public method

Read NumBytes data.
public Read ( sbyte Data, int NumBytes ) : int
Data sbyte
NumBytes int
return int

RiffFile() public method

Dummy Constructor
public RiffFile ( ) : System
return System

Seek() protected method

Seek in the File.
protected Seek ( long offset ) : int
offset long
return int

Write() public method

Write NumBytes data.
public Write ( RiffChunkHeader Triff_header, int NumBytes ) : int
Triff_header RiffChunkHeader
NumBytes int
return int

Write() public method

Write NumBytes data.
public Write ( int Data, int NumBytes ) : int
Data int
NumBytes int
return int

Write() public method

Write NumBytes data.
public Write ( sbyte Data, int NumBytes ) : int
Data sbyte
NumBytes int
return int

Write() public method

Write NumBytes data.
public Write ( short Data, int NumBytes ) : int
Data short
NumBytes int
return int

Property Details

file protected property

protected System.IO.Stream file
return System.IO.Stream

fmode protected property

protected int fmode
return int