Click or drag to resize

ByteBufferFactoryCreate Method

Creates a buffer of the specified length. Depending on the length, either a SingleChunkBuffer or a MultiChunkBuffer will be created.

Namespace:  MongoDB.Bson.IO
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public static IByteBuffer Create(
	IBsonChunkSource chunkSource,
	int minimumCapacity
)

Parameters

chunkSource
Type: MongoDB.Bson.IOIBsonChunkSource
The chunk pool.
minimumCapacity
Type: SystemInt32
The minimum capacity.

Return Value

Type: IByteBuffer
A buffer with at least the minimum capacity.
See Also