Skip to content

Commit

Permalink
fix bug setting buf position after write
Browse files Browse the repository at this point in the history
  • Loading branch information
carltimmer committed Dec 2, 2024
1 parent 4bfe97c commit 4c209d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions java/org/jlab/coda/jevio/EventWriterUnsyncV4.java
Original file line number Diff line number Diff line change
Expand Up @@ -2814,7 +2814,9 @@ protected void writeEventToBuffer(EvioBank bank, ByteBuffer bankBuffer, int curr

// Write event to internal buffer
if (bankBuffer != null) {
int bankPos = bankBuffer.position();
buffer.put(bankBuffer);
bankBuffer.position(bankPos);
}
else if (bank != null) {
bank.write(buffer);
Expand Down

0 comments on commit 4c209d1

Please sign in to comment.