C# Class AK.F1.Timing.Extensions.StreamExtensions

System.IO.Stream extension class. This class is .
Show file Open project: simoneb/ak-f1-timing

Public Methods

Method Description
Fill ( this stream, byte buffer, int offset, int count ) : bool

Reads a sequences of bytes the stream and advances the position within the stream by the number read. If the end of the stream is reached before count bytes are read, this method will return , otherwise it will return which indicates that exactly count bytes have been written to the specified buffer.

Method Details

Fill() public static method

Reads a sequences of bytes the stream and advances the position within the stream by the number read. If the end of the stream is reached before count bytes are read, this method will return , otherwise it will return which indicates that exactly count bytes have been written to the specified buffer.
/// Thrown when is . /// /// Thrown when /// /// /// is negative or greater than the length /// of /// /// /// is negative or greater than the length of /// given . /// /// ///
public static Fill ( this stream, byte buffer, int offset, int count ) : bool
stream this The stream to read from.
buffer byte The buffer into which the read data is written.
offset int The offset in at which writing begins.
count int The exact number of bytes to read.
return bool