C# Class ManagedXZ.XZCompressStream

Inheritance: Stream
Datei anzeigen Open project: goldenbull/ManagedXZ Class Usage Examples

Public Methods

Method Description
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

learn from 01_compress_easy.c

XZCompressStream ( Stream stream ) : System
XZCompressStream ( Stream stream, int threads ) : System
XZCompressStream ( Stream stream, int threads, int level ) : System

ctor

XZCompressStream ( string filename ) : System
XZCompressStream ( string filename, FileMode mode ) : System
XZCompressStream ( string filename, FileMode mode, int threads ) : System
XZCompressStream ( string filename, int threads ) : System
XZCompressStream ( string filename, int threads, int level, FileMode mode ) : System

create xz file stream.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Init ( ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

learn from 01_compress_easy.c
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

XZCompressStream() public method

public XZCompressStream ( Stream stream ) : System
stream Stream
return System

XZCompressStream() public method

public XZCompressStream ( Stream stream, int threads ) : System
stream Stream
threads int
return System

XZCompressStream() public method

ctor
public XZCompressStream ( Stream stream, int threads, int level ) : System
stream Stream
threads int number of threads for parallel compress
level int 0-9, the bigger, the slower, and higher compression ratio
return System

XZCompressStream() public method

public XZCompressStream ( string filename ) : System
filename string
return System

XZCompressStream() public method

public XZCompressStream ( string filename, FileMode mode ) : System
filename string
mode FileMode
return System

XZCompressStream() public method

public XZCompressStream ( string filename, FileMode mode, int threads ) : System
filename string
mode FileMode
threads int
return System

XZCompressStream() public method

public XZCompressStream ( string filename, int threads ) : System
filename string
threads int
return System

XZCompressStream() public method

create xz file stream.
public XZCompressStream ( string filename, int threads, int level, FileMode mode ) : System
filename string
threads int number of threads for parallel compress
level int 0-9, the bigger, the slower, and higher compression ratio
mode FileMode file mode to create FileStream
return System