C# Класс MongoDB.Bson.IO.SingleChunkBuffer

An IBsonBuffer that only has a single chunk.
Наследование: ByteArrayBuffer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clear ( ) : void

Clears this instance.

GetSlice ( int position, int length ) : IByteBuffer

Gets a slice of this buffer.

SingleChunkBuffer ( MongoDB.Bson.IO.BsonChunk chunk, int sliceOffset, int length, bool isReadOnly ) : System

Initializes a new instance of the SingleChunkBuffer class.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Приватные методы

Метод Описание
GetChunkBytes ( MongoDB.Bson.IO.BsonChunk chunk ) : byte[]

Описание методов

Clear() публичный Метод

Clears this instance.
SingleChunkBuffer Write operations are not allowed for read only buffers.
public Clear ( ) : void
Результат void

Dispose() защищенный Метод

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

GetSlice() публичный Метод

Gets a slice of this buffer.
SingleChunkBuffer GetSlice can only be called for read only buffers. /// position /// or /// length ///
public GetSlice ( int position, int length ) : IByteBuffer
position int The position of the start of the slice.
length int The length of the slice.
Результат IByteBuffer

SingleChunkBuffer() публичный Метод

Initializes a new instance of the SingleChunkBuffer class.
public SingleChunkBuffer ( MongoDB.Bson.IO.BsonChunk chunk, int sliceOffset, int length, bool isReadOnly ) : System
chunk MongoDB.Bson.IO.BsonChunk The chunk.
sliceOffset int The slice offset.
length int The length.
isReadOnly bool Whether the buffer is read only.
Результат System