Table of Contents

Class ArrayTextUtilities

Namespace
Fluxzy.Misc
Assembly
Fluxzy.Core.dll
public static class ArrayTextUtilities
Inheritance
ArrayTextUtilities
Inherited Members

Methods

IsText(Stream, int, Encoding?)

public static bool IsText(Stream stream, int maxCheckLength = 1024, Encoding? encoding = null)

Parameters

stream Stream
maxCheckLength int
encoding Encoding

Returns

bool

Exceptions

ArgumentException

IsText(ReadOnlySpan<byte>, int, Encoding?)

This method check if first maxCheckLength characters are printable characters

public static bool IsText(ReadOnlySpan<byte> buffer, int maxCheckLength = 1024, Encoding? encoding = null)

Parameters

buffer ReadOnlySpan<byte>
maxCheckLength int
encoding Encoding

Returns

bool

IsText(string, int, Encoding?)

public static bool IsText(string fileName, int maxCheckLength = 1024, Encoding? encoding = null)

Parameters

fileName string
maxCheckLength int
encoding Encoding

Returns

bool