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();
 }
 protected void putTimestamp(String name, BSONTimestamp ts) {
   _put(TIMESTAMP, name);
   _buf.writeInt(ts.getInc());
   _buf.writeInt(ts.getTime());
 }