Replace(Int32, ReadOnlySpan) Method

Definition

Assembly Broadside.dll

Replaces an operator and its operands with content.

public void Replace(int index, ReadOnlySpan<byte> content)

Parameters

index
Int32

The operator's number.

content
ReadOnlySpan<Byte>

Content stream syntax to write instead; copied. Empty removes the operator.

Remarks

ISO 32000-2 §7.8.2. Replacing an operator with its own bytes leaves it, and the bytes around it, exactly as they were.