@Override protected void doWriteDecimal128(final Decimal128 value) { bsonOutput.writeByte(BsonType.DECIMAL128.getValue()); writeCurrentName(); bsonOutput.writeInt64(value.getLow()); bsonOutput.writeInt64(value.getHigh()); }
return new LongsBsonDecimal128( value.asDecimal128().decimal128Value().getHigh(), value.asDecimal128().decimal128Value().getLow()); case JAVASCRIPT_WITH_SCOPE: { BsonJavaScriptWithScope casted = value.asJavaScriptWithScope();