Method Bson.this

Overload group

Initializes a new BSON value from the given D type.

Prototypes

Bson this(
  double value
);

Bson this(
  string value,
  Bson.Type type
);

Bson this(
  in Bson[string] value
);

Bson this(
  in Bson[] value
);

Bson this(
  in BsonBinData value
);

Bson this(
  in BsonObjectID value
);

Bson this(
  bool value
);

Bson this(
  in BsonDate value
);

Bson this(
  typeof(null) _param_0
);

Bson this(
  in BsonRegex value
);

Bson this(
  int value
);

Bson this(
  in BsonTimestamp value
);

Bson this(
  long value
);

Bson this(
  in Json value
);

Overload group

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

Bson this(
  Bson.Type type,
  bdata_t data
);

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.