/** * Read an array of longs * * @param pa read into this array * @param start starting at pa[start] * @param n read this many elements * @throws IOException on read error */ public final void readLong(long[] pa, int start, int n) throws IOException { for (int i = 0; i < n; i++) { pa[start + i] = readLong(); } }
/** * Read an array of longs * * @param pa read into this array * @param start starting at pa[start] * @param n read this many elements * @throws IOException on read error */ public final void readLong(long[] pa, int start, int n) throws IOException { for (int i = 0; i < n; i++) { pa[start + i] = readLong(); } }
/** * Read an array of longs * * @param pa read into this array * @param start starting at pa[start] * @param n read this many elements * @throws IOException on read error */ public final void readLong(long[] pa, int start, int n) throws IOException { for (int i = 0; i < n; i++) { pa[start + i] = readLong(); } }
/** * Read an array of longs * * @param pa read into this array * @param start starting at pa[start] * @param n read this many elements * @throws IOException on read error */ public final void readLong(long[] pa, int start, int n) throws IOException { for (int i = 0; i < n; i++) { pa[start + i] = readLong(); } }
/** * Read an array of doubles * * @param pa read into this array * @param start starting at pa[start] * @param n read this many elements * @throws IOException on read error */ public final void readDouble(double[] pa, int start, int n) throws IOException { for (int i = 0; i < n; i++) { pa[start + i] = Double.longBitsToDouble(readLong()); } }
/** * Read an array of doubles * * @param pa read into this array * @param start starting at pa[start] * @param n read this many elements * @throws IOException on read error */ public final void readDouble(double[] pa, int start, int n) throws IOException { for (int i = 0; i < n; i++) { pa[start + i] = Double.longBitsToDouble(readLong()); } }
/** * Read an array of doubles * * @param pa read into this array * @param start starting at pa[start] * @param n read this many elements * @throws IOException on read error */ public final void readDouble(double[] pa, int start, int n) throws IOException { for (int i = 0; i < n; i++) { pa[start + i] = Double.longBitsToDouble(readLong()); } }
/** * Read an array of doubles * * @param pa read into this array * @param start starting at pa[start] * @param n read this many elements * @throws IOException on read error */ public final void readDouble(double[] pa, int start, int n) throws IOException { for (int i = 0; i < n; i++) { pa[start + i] = Double.longBitsToDouble(readLong()); } }
long readLength() throws IOException { return isLengthLong ? raf.readLong() : (long) raf.readInt(); }
long readLength() throws IOException { return isLengthLong ? raf.readLong() : (long) raf.readInt(); }
long readOffset() throws IOException { return isOffsetLong ? raf.readLong() : (long) raf.readInt(); }
long readLength() throws IOException { return isLengthLong ? raf.readLong() : (long) raf.readInt(); }
Record6() throws IOException { creationOrder = raf.readLong(); raf.readFully(heapId); if (debugBtree2) debugOut.println(" record6 creationOrder=" + creationOrder + " heapId=" + Misc.showBytes(heapId)); } }
Record6() throws IOException { creationOrder = raf.readLong(); raf.read(heapId); if (debugBtree2) debugOut.println(" record6 creationOrder=" + creationOrder + " heapId=" + Misc.showBytes(heapId)); } }
Record6() throws IOException { creationOrder = raf.readLong(); raf.readFully(heapId); if (debugBtree2) debugOut.println(" record6 creationOrder=" + creationOrder + " heapId=" + Misc.showBytes(heapId)); } }
void read() throws IOException { if (debugPos) debugOut.println(" *MessageGroupNew start pos= " + raf.getFilePointer()); byte version = raf.readByte(); byte flags = raf.readByte(); if ((flags & 1) != 0) { maxCreationIndex = raf.readLong(); } fractalHeapAddress = readOffset(); v2BtreeAddress = readOffset(); // aka name index if ((flags & 2) != 0) { v2BtreeAddressCreationOrder = readOffset(); } if (debug1) debugOut.println(" MessageGroupNew version= " + version + " flags = " + flags + this); }
void read() throws IOException { if (debugPos) debugOut.println(" *MessageGroupNew start pos= " + raf.getFilePointer()); byte version = raf.readByte(); byte flags = raf.readByte(); if ((flags & 1) != 0) { maxCreationIndex = raf.readLong(); } fractalHeapAddress = readOffset(); v2BtreeAddress = readOffset(); // aka name index if ((flags & 2) != 0) { v2BtreeAddressCreationOrder = readOffset(); } if (debug1) debugOut.println(" MessageGroupNew version= " + version + " flags = " + flags + this); }
DataChunk(int ndim, boolean last) throws IOException { this.size = h5.raf.readInt(); this.filterMask = h5.raf.readInt(); offset = new int[ndim]; for (int i = 0; i < ndim; i++) { long loffset = h5.raf.readLong(); assert loffset < Integer.MAX_VALUE; offset[i] = (int) loffset; } this.filePos = last ? -1 : h5.readAddress(); // if (memTracker != null) memTracker.addByLen("Chunked Data (" + owner + ")", filePos, size); }
DataChunk(int ndim, boolean last) throws IOException { this.size = raf.readInt(); this.filterMask = raf.readInt(); offset = new int[ndim]; for (int i = 0; i < ndim; i++) { long loffset = raf.readLong(); assert loffset < Integer.MAX_VALUE; offset[i] = (int) loffset; } this.filePos = last ? -1 : h5.readAddress(); // if (memTracker != null) memTracker.addByLen("Chunked Data (" + owner + ")", filePos, size); }
DataChunk(int ndim, boolean last) throws IOException { this.size = raf.readInt(); this.filterMask = raf.readInt(); offset = new int[ndim]; for (int i = 0; i < ndim; i++) { long loffset = raf.readLong(); assert loffset < Integer.MAX_VALUE; offset[i] = (int) loffset; } this.filePos = last ? -1 : h5.readAddress(); // if (memTracker != null) memTracker.addByLen("Chunked Data (" + owner + ")", filePos, size); }