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

Represents a factory for IBsonBuffers.
파일 보기 프로젝트 열기: egametang/Egametang 1 사용 예제들

공개 메소드들

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

메소드 상세

Create() 공개 정적인 메소드

Creates a buffer of the specified fixed capacity. 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.
리턴 IByteBuffer

LoadFrom() 공개 정적인 메소드

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.
stream
public static LoadFrom ( Stream stream ) : IByteBuffer
stream Stream The stream.
리턴 IByteBuffer