vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Bson.this - multiple declarations

Function Bson.this

Creates a new BSON value using raw data.

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

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.

Function Bson.this

Initializes a new BSON value from the given D type.

ref this (
  double value
) @safe;

ref this (
  scope const(char)[] value,
  Bson.Type type = Type.string
) @safe;

ref this (
  in const(Bson[string]) value
) @safe;

ref this (
  in const(Bson[]) value
) @safe;

ref this (
  in const(BsonBinData) value
) @safe;

ref this (
  in const(BsonObjectID) value
) @safe;

ref this (
  bool value
) @safe;

ref this (
  in const(BsonDate) value
) @safe;

ref this (
  typeof(null) __param_0
) @safe;

ref this (
  in const(BsonRegex) value
) @safe;

ref this (
  int value
) @safe;

ref this (
  in const(BsonTimestamp) value
) @safe;

ref this (
  long value
) @safe;

ref this (
  in const(Json) value
) @safe;

ref this (
  in const(std.uuid.UUID) value
) @safe;
Authors

Sönke Ludwig

Copyright

© 2012-2015 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.