Exemplo n.º 1
0
 public void writeBSONTimestamp(BSONTimestamp timestamp) throws IOException {
   _writeArrayFieldNameIfNeeded();
   _verifyValueWrite("write timestamp");
   _buffer.putByte(_typeMarker, BsonConstants.TYPE_TIMESTAMP);
   _buffer.putInt(timestamp.getInc());
   _buffer.putInt(timestamp.getTime());
   flushBuffer();
 }
Exemplo n.º 2
0
 protected void putTimestamp(String name, BSONTimestamp ts) {
   _put(TIMESTAMP, name);
   _buf.writeInt(ts.getInc());
   _buf.writeInt(ts.getTime());
 }