TryParse(ReadOnlySpan, out CosObject?) Method

Definition

Assembly Broadside.dll

Tries to parse exactly one COS object from bytes, under the same rules as Parse(ReadOnlySpan<Byte>).

public static bool TryParse(ReadOnlySpan<byte> bytes, [NotNullWhen(true)] scoped out CosObject? result)

Parameters

bytes
ReadOnlySpan<Byte>

The object's syntax, optionally surrounded by white-space and comments.

result
CosObject

The parsed object, or null when the bytes are not exactly one well-formed object.

Returns

Boolean
true when the bytes hold exactly one well-formed object.

Remarks

ISO 32000-2 §7.2 and §7.3.