We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c79d53 commit a3c3857Copy full SHA for a3c3857
mongodb-crypt/src/main/com/mongodb/internal/crypt/capi/CAPIHelper.java
@@ -51,9 +51,7 @@ static BinaryHolder toBinary(final BsonDocument document) {
51
}
52
53
static RawBsonDocument toDocument(final mongocrypt_binary_t binary) {
54
- ByteBuffer byteBuffer = toByteBuffer(binary);
55
- byte[] bytes = new byte[byteBuffer.remaining()];
56
- byteBuffer.get(bytes);
+ byte[] bytes = toByteArray(binary);
57
return new RawBsonDocument(bytes);
58
59
0 commit comments