void flush()
Flushes any pending data to the output destination.
Writes a BSON Binary data element to the writer.
binary
- The Binary data.
Writes a BSON Binary data element to the writer.
name
- The name of the element.
binary
- The Binary data value.
void writeBoolean(boolean value)
Writes a BSON Boolean to the writer.
value
- The Boolean value.
Writes a BSON Boolean element to the writer.
name
- The name of the element.
value
- The Boolean value.
void writeDateTime(long value)
Writes a BSON DateTime to the writer.
value
- The number of milliseconds since the Unix epoch.
Writes a BSON DateTime element to the writer.
name
- The name of the element.
value
- The number of milliseconds since the Unix epoch.
Writes a BSON DBPointer to the writer.
value
- The DBPointer to write
Writes a BSON DBPointer element to the writer.
name
- The name of the element.
value
- The DBPointer to write
void writeDouble(double value)
Writes a BSON Double to the writer.
value
- The Double value.
Writes a BSON Double element to the writer.
name
- The name of the element.
value
- The Double value.
void writeEndArray()
Writes the end of a BSON array to the writer.
void writeEndDocument()
Writes the end of a BSON document to the writer.
void writeInt32(int value)
Writes a BSON Int32 to the writer.
value
- The Int32 value.
Writes a BSON Int32 element to the writer.
name
- The name of the element.
value
- The Int32 value.
void writeInt64(long value)
Writes a BSON Int64 to the writer.
value
- The Int64 value.
Writes a BSON Int64 element to the writer.
name
- The name of the element.
value
- The Int64 value.
Writes a BSON Decimal128 to the writer.
value
- The Decimal128 value.
Writes a BSON Decimal128 element to the writer.
name
- The name of the element.
value
- The Decimal128 value.
Writes a BSON JavaScript to the writer.
code
- The JavaScript code.
Writes a BSON JavaScript element to the writer.
name
- The name of the element.
code
- The JavaScript code.
Writes a BSON JavaScript to the writer (call WriteStartDocument to start writing the scope).
code
- The JavaScript code.
Writes a BSON JavaScript element to the writer (call WriteStartDocument to start writing the scope).
name
- The name of the element.
code
- The JavaScript code.
void writeMaxKey()
Writes a BSON MaxKey to the writer.
Writes a BSON MaxKey element to the writer.
name
- The name of the element.
void writeMinKey()
Writes a BSON MinKey to the writer.
Writes a BSON MinKey element to the writer.
name
- The name of the element.
Writes the name of an element to the writer.
name
- The name of the element.
void writeNull()
Writes a BSON null to the writer.
Writes a BSON null element to the writer.
name
- The name of the element.
Writes a BSON ObjectId to the writer.
objectId
- The ObjectId value.
Writes a BSON ObjectId element to the writer.
name
- The name of the element.
objectId
- The ObjectId value.
Writes a BSON regular expression to the writer.
regularExpression
- the regular expression to write.
Writes a BSON regular expression element to the writer.
name
- The name of the element.
regularExpression
- The RegularExpression value.
void writeStartArray()
Writes the start of a BSON array to the writer.
BsonSerializationException
- if maximum serialization depth exceeded.
Writes the start of a BSON array element to the writer.
name
- The name of the element.
void writeStartDocument()
Writes the start of a BSON document to the writer.
BsonSerializationException
- if maximum serialization depth exceeded.
Writes the start of a BSON document element to the writer.
name
- The name of the element.
Writes a BSON String to the writer.
value
- The String value.
Writes a BSON String element to the writer.
name
- The name of the element.
value
- The String value.
Writes a BSON Symbol to the writer.
value
- The symbol.
Writes a BSON Symbol element to the writer.
name
- The name of the element.
value
- The symbol.
Writes a BSON Timestamp to the writer.
value
- The combined timestamp/increment value.
Writes a BSON Timestamp element to the writer.
name
- The name of the element.
value
- The combined timestamp/increment value.
void writeUndefined()
Writes a BSON undefined to the writer.
Writes a BSON undefined element to the writer.
name
- The name of the element.
Reads a single document from a BsonReader and writes it to this.
reader
- The source.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4