Method | Description | |
---|---|---|
Create ( MongoDB.Bson.IO.BsonChunkPool chunkPool, int fixedCapacity ) : IByteBuffer |
Creates a buffer of the specified fixed capacity. Depending on the required capacity, either a SingleChunkBuffer or a MultiChunkBuffer will be created.
|
|
LoadFrom ( Stream stream ) : IByteBuffer |
Loads a byte buffer from a stream (the first 4 bytes in the stream are the length of the data). Depending on the required capacity, either a SingleChunkBuffer or a MultiChunkBuffer will be created.
|
public static Create ( MongoDB.Bson.IO.BsonChunkPool chunkPool, int fixedCapacity ) : IByteBuffer | ||
chunkPool | MongoDB.Bson.IO.BsonChunkPool | The chunk pool. |
fixedCapacity | int | The required capacity. |
return | IByteBuffer |
public static LoadFrom ( Stream stream ) : IByteBuffer | ||
stream | Stream | The stream. |
return | IByteBuffer |