Copies length bytes from input buffer to output buffer starting at output[offset]. You have to make sure, that the buffer is byte aligned. If not enough bytes are available, copies fewer bytes.
Parameters
- output
- The buffer to copy bytes to.
- offset
- The offset in the buffer at which copying starts
- length
- The length to copy, 0 is allowed.
Return Value
The number of bytes copied, 0 if no bytes were available.
Exceptions
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | Length is less than zero |
InvalidOperationException | Bit buffer isnt byte aligned |
See Also
StreamManipulator Class | ICSharpCode.SharpZipLib.Zip.Compression.Streams Namespace