Bson.this - multiple declarations
- Function Bson.this
- Function Bson.this
Function Bson.this
Initializes a new BSON value
from the given D type
.
Prototypes
ref this(
double value
);
ref this(
string value,
Bson . Type type = cast(Type)cast(ubyte)2u
);
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(
typeof(null) _param_0
);
ref this(
const(BsonRegex) value
);
ref this(
int value
);
ref this(
const(BsonTimestamp) value
);
ref this(
long value
);
ref this(
const(Json) value
);
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
ref this(
Bson . Type type,
immutable(ubyte)[] data
);
Authors
Sönke Ludwig
Copyright
© 2012-2015 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.