Table of Contents

Class PlaFile

Namespace
PlaIO
Assembly
PlaIO.dll

File kind detection.

public static class PlaFile

Inheritance

Inherited Members

Fields

SignatureLength

The number of leading bytes PlaIO.PlaFile.DetectKind(System.ReadOnlySpan{System.Byte}) needs to recognise every kind.

public const int SignatureLength = 8

Field Value

int

Methods

DetectKind(ReadOnlySpan<byte>)

The kind of a file whose first bytes are head.

public static PlaFileKind DetectKind(ReadOnlySpan<byte> head)

Parameters

head ReadOnlySpan<byte>

Returns

PlaFileKind

DetectKind(string)

The kind of the file at path; reads at most PlaIO.PlaFile.SignatureLength bytes. I/O errors propagate.

public static PlaFileKind DetectKind(string path)

Parameters

path string

Returns

PlaFileKind