StreamExtension Class

Extension methods for the Stream class.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static class StreamExtension
Inheritance
Object    StreamExtension

Methods

IsUtf8Tests whether the specified section of stream that extends at least count decoded characters from the current Position is UTF-8 text. The method includes the byte order mark (BOM) in the check.
IsUtf8ValidTests whether the byte sequence of stream that starts with the current Position and is at least count characters long is valid UTF-8.

See Also