Commits


David Li authored and liyafan82 committed ae4eb608931
ARROW-9221: [Java] account for big-endian buffers in ArrowBuf.setBytes `ArrowBuf.setBytes` has an override that uses a 8-byte-at-a-time copy loop if the byte buffer does not provide an array and is not direct. Unfortunately, this means it'll mangle data when the byte buffer is big-endian, as it then writes the data into the little-endian ArrowBuf. This fixes it by setting the byte order before copying, and then restoring it. Closes #7543 from lidavidm/arrow-9221 Authored-by: David Li <li.davidm96@gmail.com> Signed-off-by: liyafan82 <fan_li_ya@foxmail.com>