Skip to content

Commit

Permalink
comments and debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
carltimmer committed Oct 31, 2024
1 parent 1c72b5d commit 3e15a01
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions java/org/jlab/coda/jevio/ByteDataTransformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1952,7 +1952,7 @@ public static void swapArray32(byte[] data, int dataOffset, int dataLen)
/**
* This method swaps the byte order of an entire evio event or bank.
* The byte order of the swapped buffer will be opposite to the byte order
* of the the source buffer argument. If the swap is done in place, the
* of the source buffer argument. If the swap is done in place, the
* byte order of the source buffer will be switched upon completion and
* the destPos arg will be set equal to the srcPos arg.
* The positions of the source and destination buffers are not changed.
Expand All @@ -1964,7 +1964,7 @@ public static void swapArray32(byte[] data, int dataOffset, int dataLen)
* Position and limit of neither buffer is changed.
*
* @param srcBuffer buffer containing event to swap.
* @param destBuffer buffer in which to placed the swapped event.
* @param destBuffer buffer in which to place the swapped event.
* If null, or identical to srcBuffer, the data is swapped in place.
* @param srcPos position in srcBuffer to start reading event
* @param destPos position in destBuffer to start writing swapped event
Expand Down
3 changes: 3 additions & 0 deletions java/org/jlab/coda/jevio/test/SequentialReaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public static void main(String args[]) {
System.out.println("get ev #" + eventCount);
event = fileReader.getEvent(eventCount);

// Only works for evio 4
System.out.println("rewind file");
fileReader.rewind();

Expand All @@ -56,6 +57,7 @@ public static void main(String args[]) {
System.out.println("goto ev #" + eventCount);
event = fileReader.gotoEventNumber(eventCount);

// Only works for evio 4
System.out.println("rewind file");
fileReader.rewind();

Expand All @@ -68,6 +70,7 @@ public static void main(String args[]) {
System.out.println("parse ev #" + eventCount);
event = fileReader.parseEvent(eventCount);

// Only works for evio 4
System.out.println("rewind file");
fileReader.rewind();

Expand Down
2 changes: 1 addition & 1 deletion java/org/jlab/coda/jevio/test/StructureBufferDebugger.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ else if (args[i].equalsIgnoreCase("-f")) {
/** Method to print out correct program command line usage. */
private static void usage() {
System.out.println("\nUsage:\n\n" +
" java org.jlab.coda.jevio.test.CompositeDebugger\n" +
" java org.jlab.coda.jevio.test.StructureBufferDebugger\n" +
" [-t <tag>] tag of structures to look for\n"+
" [-n <num>] num of structures to look for\n" +
" [-e <event #>] number of specific event to look at\n" +
Expand Down
2 changes: 1 addition & 1 deletion java/org/jlab/coda/jevio/test/Tester.java
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ public static void main2(String args[]) {
// event - bank of banks
EvioEvent ev = eb.getEvent();

// bank of ints
// bank of strings
EvioBank ibanks = new EvioBank(3, DataType.CHARSTAR8, 3);
ibanks.appendStringData("string 1"); // len + null = 8
eb.addChild(ev, ibanks);
Expand Down

0 comments on commit 3e15a01

Please sign in to comment.