Reads a number of characters from the current source Stream and writes the data to the target array at the specified index.
Namespace: StreamCoders.Container.Compression.Libs.zlib
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public static int ReadInput( Stream sourceStream, byte[] target, int start, int count )
Parameters
- sourceStream
- Type: System.IOStream
The source Stream to read from. - target
- Type: SystemByte
Contains the array of characteres read from the source Stream. - start
- Type: SystemInt32
The starting index of the target array. - count
- Type: SystemInt32
The maximum number of characters to read from the source Stream.
Return Value
Type: Int32The number of characters read. The number will be less than or equal to count depending on the data available in the source Stream. Returns -1 if the end of the stream is reached.
See Also