Language

CborWriterOptions.InitialCapacity Property

Definition

Gets or sets the initial capacity, in bytes, of the buffer used when writing CBOR data.

public:
 property int InitialCapacity { int get(); void set(int value); };
public int InitialCapacity { get; set; }
member this.InitialCapacity : int with get, set
Public Property InitialCapacity As Integer

Property Value

The initial capacity, in bytes, of the buffer used when writing CBOR data, or -1 to indicate a runtime-chosen initial capacity.

Exceptions

value is less than -1.

Applies to