C# 클래스 MongoDB.Bson.IO.SingleChunkBuffer

An IBsonBuffer that only has a single chunk.
상속: ByteArrayBuffer
파일 보기 프로젝트 열기: egametang/Egametang 1 사용 예제들

공개 메소드들

메소드 설명
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