Method | Description | |
---|---|---|
Flush ( ) : void | ||
LocateBlockWithSignature ( int signature, long endLocation, int minimumBlockSize, int maximumVariableData ) : long |
Locates a block with the desired signature.
|
|
Read ( byte buffer, int offset, int count ) : int | ||
ReadDataDescriptor ( bool zip64, |
Read data descriptor at the end of compressed data.
|
|
ReadLEInt ( ) : int |
Read an int in little endian byte order.
|
|
ReadLELong ( ) : long |
Read a long in little endian byte order.
|
|
ReadLEShort ( ) : int |
Read an unsigned short in little endian byte order.
|
|
Seek ( long offset, SeekOrigin origin ) : long | ||
SetLength ( long value ) : void | ||
Write ( byte buffer, int offset, int count ) : void | ||
WriteDataDescriptor ( |
Write a data descriptor.
|
|
WriteEndOfCentralDirectory ( long noOfEntries, long sizeEntries, long startOfCentralDirectory, byte comment ) : void |
Write the required records to end the central directory.
|
|
WriteLEInt ( int value ) : void |
Write an int in little endian byte order.
|
|
WriteLELong ( long value ) : void |
Write a long in little endian byte order.
|
|
WriteLEShort ( int value ) : void |
Write an unsigned short in little endian byte order.
|
|
WriteLEUint ( uint value ) : void |
Write a uint in little endian byte order.
|
|
WriteLEUlong ( ulong value ) : void |
Write a ulong in little endian byte order.
|
|
WriteLEUshort ( ushort value ) : void |
Write a ushort in little endian byte order.
|
|
WriteZip64EndOfCentralDirectory ( long noOfEntries, long sizeEntries, long centralDirOffset ) : void |
Write Zip64 end of central directory records (File header and locator).
|
|
ZipHelperStream ( Stream stream ) : System |
Initialise a new instance of ZipHelperStream.
|
|
ZipHelperStream ( string name ) : System |
Initialise an instance of this class.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Close the stream. The underlying stream is closed only if IsStreamOwner is true. |
Method | Description | |
---|---|---|
WriteLocalHeader ( |
public LocateBlockWithSignature ( int signature, long endLocation, int minimumBlockSize, int maximumVariableData ) : long | ||
signature | int | The signature to find. |
endLocation | long | Location, marking the end of block. |
minimumBlockSize | int | Minimum size of the block. |
maximumVariableData | int | The maximum variable data. |
return | long |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | |
offset | int | |
count | int | |
return | int |
public ReadDataDescriptor ( bool zip64, |
||
zip64 | bool | if set to |
data | The data to fill in. | |
return | void |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | |
origin | SeekOrigin | |
return | long |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | |
offset | int | |
count | int | |
return | void |
public WriteDataDescriptor ( |
||
entry | The entry to write a descriptor for. | |
return | int |
public WriteEndOfCentralDirectory ( long noOfEntries, long sizeEntries, long startOfCentralDirectory, byte comment ) : void | ||
noOfEntries | long | The number of entries in the directory. |
sizeEntries | long | The size of the entries in the directory. |
startOfCentralDirectory | long | The start of the central directory. |
comment | byte | The archive comment. (This can be null). |
return | void |
public WriteLEInt ( int value ) : void | ||
value | int | The value to write. |
return | void |
public WriteLELong ( long value ) : void | ||
value | long | The value to write. |
return | void |
public WriteLEShort ( int value ) : void | ||
value | int | The value to write. |
return | void |
public WriteLEUint ( uint value ) : void | ||
value | uint | The value to write. |
return | void |
public WriteLEUlong ( ulong value ) : void | ||
value | ulong | The value to write. |
return | void |
public WriteLEUshort ( ushort value ) : void | ||
value | ushort | The value to write. |
return | void |
public WriteZip64EndOfCentralDirectory ( long noOfEntries, long sizeEntries, long centralDirOffset ) : void | ||
noOfEntries | long | The number of entries in the central directory. |
sizeEntries | long | The size of entries in the central directory. |
centralDirOffset | long | The offset of the dentral directory. |
return | void |
public ZipHelperStream ( Stream stream ) : System | ||
stream | Stream | The stream to use. |
return | System |
public ZipHelperStream ( string name ) : System | ||
name | string | The name of the file to open. |
return | System |