Table of Contents

Method EnsureCapacity

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

EnsureCapacity(int)

Ensure that the buffer has a minimum capacity. Depending on the buffer allocation strategy calling this method may result in a higher capacity than the minimum (but never lower).

void EnsureCapacity(int minimumCapacity)

Parameters

minimumCapacity int

The minimum capacity.