Skip to content

Commit

Permalink
Check if memory address is accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Feb 4, 2024
1 parent b691316 commit 0af1556
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public abstract class DigestManager {
abstract int internalUpdate(int digest, byte[] buffer, int offset, int len);

final int update(int digest, ByteBuf buffer, int offset, int len) {
if (buffer.hasMemoryAddress()) {
if (buffer.hasMemoryAddress() && acceptsMemoryAddressBuffer()) {
return internalUpdate(digest, buffer, offset, len);
} else if (buffer.hasArray()) {
return internalUpdate(digest, buffer.array(), buffer.arrayOffset() + offset, len);
Expand Down

0 comments on commit 0af1556

Please sign in to comment.