FileIOExtensionsReadExactly Method |
Reads the data into a buffer. Ensures that the provided number of bytes is really read. If not, a
EndOfStreamException is thrown.
Namespace: Altaxo.SerializationAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntax public static void ReadExactly(
this Stream stream,
byte[] buffer,
int offset,
int length
)
Parameters
- stream Stream
- The stream.
- buffer Byte
- The buffer.
- offset Int32
- The offset where the first read byte should be stored into the buffer.
- length Int32
- The number of bytes that must be read.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Stream. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also