C# Class MongoDB.Driver.Bson.BsonWriter

Writes primitives to a stream. Use Documents and Elements to write more complex items.
Inheritance: IDisposable
ファイルを表示 Open project: sdether/mongodb-csharp Class Usage Examples

Public Methods

Method Description
BsonWriter ( Stream stream ) : System
CalculateSize ( Document doc ) : int
CalculateSize ( IEnumerable arr ) : int
CalculateSize ( Object val ) : int
CalculateSize ( String val ) : int
CalculateSize ( String val, bool includeLen ) : int
Flush ( ) : void
Write ( Document doc ) : void
WriteArray ( IEnumerable arr ) : void
WriteString ( String str ) : void
WriteValue ( BsonDataType dt, Object obj ) : void

Protected Methods

Method Description
TranslateToBsonType ( Object val ) : BsonDataType

Method Details

BsonWriter() public method

public BsonWriter ( Stream stream ) : System
stream Stream
return System

CalculateSize() public method

public CalculateSize ( Document doc ) : int
doc Document
return int

CalculateSize() public method

public CalculateSize ( IEnumerable arr ) : int
arr IEnumerable
return int

CalculateSize() public method

public CalculateSize ( Object val ) : int
val Object
return int

CalculateSize() public method

public CalculateSize ( String val ) : int
val String
return int

CalculateSize() public method

public CalculateSize ( String val, bool includeLen ) : int
val String
includeLen bool
return int

Flush() public method

public Flush ( ) : void
return void

TranslateToBsonType() protected method

protected TranslateToBsonType ( Object val ) : BsonDataType
val Object
return BsonDataType

Write() public method

public Write ( Document doc ) : void
doc Document
return void

WriteArray() public method

public WriteArray ( IEnumerable arr ) : void
arr IEnumerable
return void

WriteString() public method

public WriteString ( String str ) : void
str String
return void

WriteValue() public method

public WriteValue ( BsonDataType dt, Object obj ) : void
dt BsonDataType
obj Object
return void