CanParse(ReadOnlySpan) Method

Definition

Namespace Broadside.Fonts
Assembly Broadside.dll

Tells, cheaply, whether the bytes are a program this parser reads, from their signature (such as 00 01 00 00, OTTO, %!).

bool CanParse(ReadOnlySpan<byte> data)

Parameters

data
ReadOnlySpan<Byte>

The decoded font program.

Returns

Boolean
true when the parser recognizes the bytes.