this copies the content. You should be able to use value.array() and pass the proper offset and length to equals from the ByteBuffer fields.