Bson.this - multiple declarations
- Function Bson.this
- Function Bson.this
Function Bson.this
Initializes a new BSON value
from the given D type
.
Prototypes
this( double value ) ref; this( string value, Bson.Type type ) ref; this( const(Bson[string]) value ) ref; this( const(Bson[]) value ) ref; this( const(BsonBinData) value ) ref; this( const(BsonObjectID) value ) ref; this( bool value ) ref; this( const(BsonDate) value ) ref; this() ref; this( const(BsonRegex) value ) ref; this( int value ) ref; this( const(BsonTimestamp) value ) ref; this( long value ) ref; this( const(Json) value ) ref;
Function Bson.this
Creates a new BSON value using raw data
.
A slice of the first bytes of 'data
' is stored, containg the data
related to the value. An
exception is thrown if 'data
' is too short.
Prototype
this( Bson.Type type, immutable(ubyte)[] data ) ref;
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.