Method Bson.this

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.

Prototypes

Bson this(
  Bson.Type type,
  immutable(ubyte)[] data
) ref;

Overload group

Initializes a new BSON value from the given D type.

Prototypes

Bson this(
  double value
) ref;

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

Bson this(
  const(Bson[string]) value
) ref;

Bson this(
  const(Bson[]) value
) ref;

Bson this(
  const(BsonBinData) value
) ref;

Bson this(
  const(BsonObjectID) value
) ref;

Bson this(
  bool value
) ref;

Bson this(
  const(BsonDate) value
) ref;

Bson this(
  typeof function(null) 
) ref;

Bson this(
  const(BsonRegex) value
) ref;

Bson this(
  int value
) ref;

Bson this(
  const(BsonTimestamp) value
) ref;

Bson this(
  long value
) ref;

Bson this(
  const(Json) value
) 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.