public void writeTimestamp ( Timestamp timestamp ) throws IOException { _writeArrayFieldNameIfNeeded ( ) ; _verifyValueWrite ( "write timestamp" ) ; _buffer . putByte ( _typeMarker , BsonConstants . TYPE_TIMESTAMP ) ; _buffer . putInt ( timestamp . getInc ( ) ) ; _buffer . putInt ( timestamp . getTime ( ) ) ; flushBuffer ( ) ; }
Write a MongoDB timestamp