Class PlaFile
- Namespace
- PlaIO
- Assembly
- PlaIO.dll
File kind detection.
public static class PlaFileInheritance
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 = 8Field Value
Methods
DetectKind(ReadOnlySpan<byte>)
The kind of a file whose first bytes are head.
public static PlaFileKind DetectKind(ReadOnlySpan<byte> head)Parameters
headReadOnlySpan<byte>
Returns
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
pathstring