C# Class pr2.Garlick.Garlicker

creates garlick files and libraries. only supports IT > 2.00; shouldnt be a problem. does not support compressed samples. this class is not thread-safe
Mostra file Open project: Bananattack/verge3 Class Usage Examples

Public Properties

Property Type Description
flac bool

Public Methods

Method Description
copy ( FileStream fsin, FileStream fsout, int count ) : void
matchOrAdd ( BinaryWriter outfile, byte data, Span spanType ) : void

attempts to find a match for the provided data in the library. if it is present, it writes the long pointer to the location record in the library if it is absent, it adds a new record to the library and returns a pointer to that

process ( string fnin, FileStream fsin ) : void

do not give me overlapping spans. that would be cruel.

processIT ( string fname ) : void
processS3M ( string fname ) : void
processSimple ( string fname ) : void
processWav ( string fname ) : void
processXM ( string fname ) : void
span ( Span type, long start, long length ) : void
span ( long start, long length ) : void
writeLibrary ( string fname ) : void

writes the library to the specified file

Private Methods

Method Description
areBuffersEqual ( byte x, byte y ) : bool

Method Details

copy() public method

public copy ( FileStream fsin, FileStream fsout, int count ) : void
fsin System.IO.FileStream
fsout System.IO.FileStream
count int
return void

matchOrAdd() public method

attempts to find a match for the provided data in the library. if it is present, it writes the long pointer to the location record in the library if it is absent, it adds a new record to the library and returns a pointer to that
public matchOrAdd ( BinaryWriter outfile, byte data, Span spanType ) : void
outfile System.IO.BinaryWriter
data byte
spanType Span
return void

process() public method

do not give me overlapping spans. that would be cruel.
public process ( string fnin, FileStream fsin ) : void
fnin string
fsin System.IO.FileStream
return void

processIT() public method

public processIT ( string fname ) : void
fname string
return void

processS3M() public method

public processS3M ( string fname ) : void
fname string
return void

processSimple() public method

public processSimple ( string fname ) : void
fname string
return void

processWav() public method

public processWav ( string fname ) : void
fname string
return void

processXM() public method

public processXM ( string fname ) : void
fname string
return void

span() public method

public span ( Span type, long start, long length ) : void
type Span
start long
length long
return void

span() public method

public span ( long start, long length ) : void
start long
length long
return void

writeLibrary() public method

writes the library to the specified file
public writeLibrary ( string fname ) : void
fname string
return void

Property Details

flac public_oe property

indicates whether flaccing is allowed
public bool flac
return bool