Method ReadAtLeast
- Namespace
- PaintDotNet.IO
- Assembly
- PaintDotNet.Fundamentals.dll
ReadAtLeast(Stream, ExtentPtr<byte>, nint, bool)
public static nint ReadAtLeast(this Stream stream, ExtentPtr<byte> buffer, nint minimumBytes, bool throwOnEndOfStream = true)
Parameters
stream
StreamThe stream to read from.
buffer
ExtentPtr<byte>minimumBytes
nintthrowOnEndOfStream
bool