TryParse(ReadOnlySpan, out XmpPacket?) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Reads an XMP packet; never throws.

public static bool TryParse(ReadOnlySpan<byte> data, [NotNullWhen(true)] scoped out XmpPacket? packet)

Parameters

data
ReadOnlySpan<Byte>

The packet's bytes, such as the decoded data of a metadata stream.

packet
XmpPacket

The packet, or null when the bytes are not one.

Returns

Boolean
true when the bytes hold a readable rdf:RDF element.

Remarks

ISO 16684-1 §7. See the type's remarks for what is accepted.