Dart.PowerTCP.Zip Namespace > Archive Class : Read Method |
Public Function Read( _ ByVal buffer() As Byte, _ ByVal offset As Integer, _ ByVal count As Integer _ ) As Integer
Exception | Description |
---|---|
System.ArgumentNullException | Thrown when the buffer is null. |
System.ArgumentOutOfRangeException | Thrown when the offset is less than zero or when count is less than or equal to zero. |
System.ArgumentException | Thrown when the (offset + count) > buffer.Length. |
This method allows the user to compress an Archive "on the fly" without using intermediate disk storage. This feature is useful for streaming applications.
Since each file must be compressed before the local header can be created, it will take longer to generate the first buffer of each ArchiveItem (subsequent buffers for the same ArchiveItem are filled quickly).