Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Oct 16, 2023
1 parent 48f335e commit 81fe571
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,11 @@ private void writeBuffers(CoreLocation xyp, List<ByteBuffer> buffers,
throws IOException, ProcessException, InterruptedException {
var nBytes = buffers.stream().reduce(
0, (r, b) -> r + b.remaining(), Integer::sum);
var data = ByteBuffer.allocate(nBytes);
var data = ByteBuffer.allocate(nBytes).order(LITTLE_ENDIAN);
for (var buf : buffers) {
data.put(buf);
}
data.rewind();
writeRegion(xyp, data, address);
}

Expand Down

0 comments on commit 81fe571

Please sign in to comment.