Jaa


CborWriter.WriteStartIndefiniteLengthByteString Method

Definition

Writes the start of an indefinite-length byte string (major type 2).

public:
 void WriteStartIndefiniteLengthByteString();
public void WriteStartIndefiniteLengthByteString ();
member this.WriteStartIndefiniteLengthByteString : unit -> unit
Public Sub WriteStartIndefiniteLengthByteString ()

Exceptions

Writing a new value exceeds the definite length of the parent data item.

-or-

The major type of the encoded value is not permitted in the parent data item.

-or-

The written data is not accepted under the current conformance mode.

Remarks

Pushes a context where definite-length chunks of the same major type can be written. In canonical conformance modes, the writer will reject indefinite-length writes unless the ConvertIndefiniteLengthEncodings flag is enabled.

Applies to