C# Class MongoDB.Bson.LazyBsonDocument

Inheritance: BsonDocument, IDisposable
ファイルを表示 Open project: egametang/Egametang Class Usage Examples

Public Methods

Method Description
Clone ( ) : BsonValue

Creates a shallow clone of the document (see also DeepClone).

DeepClone ( ) : BsonValue

Creates a deep clone of the document (see also Clone).

LazyBsonDocument ( IByteBuffer slice ) : System

Initializes a new instance of the LazyBsonDocument class.

LazyBsonDocument ( byte bytes ) : System

Initializes a new instance of the LazyBsonDocument class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Materialize ( ) : IEnumerable

Materializes the BsonDocument.

MaterializeCompleted ( ) : void

Informs subclasses that the Materialize process completed so they can free any resources related to the unmaterialized state.

Private Methods

Method Description
CloneSlice ( ) : IByteBuffer
DeserializeLazyBsonArray ( MongoDB.Bson.IO.BsonBinaryReader bsonReader ) : LazyBsonArray
DeserializeLazyBsonDocument ( MongoDB.Bson.IO.BsonBinaryReader bsonReader ) : LazyBsonDocument
MaterializeThisLevel ( ) : IEnumerable

Method Details

Clone() public method

Creates a shallow clone of the document (see also DeepClone).
public Clone ( ) : BsonValue
return BsonValue

DeepClone() public method

Creates a deep clone of the document (see also Clone).
public DeepClone ( ) : BsonValue
return BsonValue

Dispose() protected method

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.
return void

LazyBsonDocument() public method

Initializes a new instance of the LazyBsonDocument class.
slice LazyBsonDocument cannot be used with an IByteBuffer that needs disposing.
public LazyBsonDocument ( IByteBuffer slice ) : System
slice IByteBuffer The slice.
return System

LazyBsonDocument() public method

Initializes a new instance of the LazyBsonDocument class.
public LazyBsonDocument ( byte bytes ) : System
bytes byte The bytes.
return System

Materialize() protected method

Materializes the BsonDocument.
protected Materialize ( ) : IEnumerable
return IEnumerable

MaterializeCompleted() protected method

Informs subclasses that the Materialize process completed so they can free any resources related to the unmaterialized state.
protected MaterializeCompleted ( ) : void
return void