Table of Contents

Class StreamExtensions

Namespace
PaintDotNet.IO
Assembly
PaintDotNet.Fundamentals.dll
public static class StreamExtensions
Inheritance
StreamExtensions
Inherited Members

Methods

AreNextBytesEqualTo(Stream, byte[])
AreNextBytesEqualTo(Stream, byte[], Func<byte, byte, bool>)
CopyTo(Stream, Stream, byte[])
ReadAtLeast(Stream, ExtentPtr<byte>, nint, bool)
ReadExactly(Stream, ExtentPtr<byte>)
TryReadBoolean(Stream)
TryReadByte(Stream)

Reads a single byte from the stream.

TryReadInt16(Stream)

Reads a 16-bit signed integer from the stream in little-endian byte order.

TryReadInt32(Stream)

Reads a 32-bit signed integer from the stream in little-endian byte order.

TryReadInt64(Stream)

Reads a 64-bit signed integer from the stream in little-endian byte order.

TryReadUInt16(Stream)

Reads a 16-bit unsigned integer from the stream in little-endian byte order.

TryReadUInt24(Stream)

Reads a 24-bit unsigned integer from the stream in little-endian byte order.

TryReadUInt32(Stream)

Reads a 32-bit unsigned integer from the stream in little-endian byte order.

TryReadUInt64(Stream)

Reads a 64-bit unsigned integer from the stream in little-endian byte order.

TryReadValue<T>(Stream)
TryReadValue<T>(Stream, out T)
Write(Stream, ExtentPtr<byte>)
Write(Stream, byte*, long)
WriteBoolean(Stream, bool)
WriteInt16(Stream, short)

Writes a 16-bit signed integer to the stream in little-endian byte order.

WriteInt32(Stream, int)

Writes a 32-bit signed integer to the stream in little-endian byte order.

WriteInt64(Stream, long)

Writes a 64-bit signed integer to the stream in little-endian byte order.

WriteUInt16(Stream, ushort)

Writes a 16-bit unsigned integer to the stream in little-endian byte order.

WriteUInt24(Stream, int)

Writes a 24-bit unsigned integer to the stream in little-endian byte order.

WriteUInt32(Stream, uint)

Writes a 32-bit unsigned integer to the stream in little-endian byte order.

WriteUInt64(Stream, ulong)

Writes a 64-bit unsigned integer to the stream in little-endian byte order.

WriteValue<T>(Stream, T)