private long readDDH(List<Tag> alltags, long start) throws IOException { raf.seek(start); int ndd = DataType.unsignedShortToInt(raf.readShort()); // number of DD blocks long link = DataType.unsignedIntToLong(raf.readInt()); // point to the next DDH; link == 0 means no more if (debugDD) System.out.println(" DDHeader ndd=" + ndd + " link=" + link); long pos = raf.getFilePointer(); for (int i = 0; i < ndd; i++) { raf.seek(pos); Tag tag = factory(); pos += 12; // tag usually changed the file pointer if (tag.code > 1) alltags.add(tag); } memTracker.add("DD block", start, raf.getFilePointer()); return link; }
private long readDDH(List<Tag> alltags, long start) throws IOException { raf.seek(start); int ndd = DataType.unsignedShortToInt(raf.readShort()); // number of DD blocks long link = DataType.unsignedIntToLong(raf.readInt()); // point to the next DDH; link == 0 means no more if (debugDD) System.out.println(" DDHeader ndd=" + ndd + " link=" + link); long pos = raf.getFilePointer(); for (int i = 0; i < ndd; i++) { raf.seek(pos); Tag tag = factory(); pos += 12; // tag usually changed the file pointer if (tag.code > 1) alltags.add(tag); } memTracker.add("DD block", start, raf.getFilePointer()); return link; }
private long readDDH(List<Tag> alltags, long start) throws IOException { raf.seek(start); int ndd = DataType.unsignedShortToInt(raf.readShort()); // number of DD blocks long link = DataType.unsignedIntToLong(raf.readInt()); // point to the next DDH; link == 0 means no more if (debugDD) System.out.println(" DDHeader ndd=" + ndd + " link=" + link); long pos = raf.getFilePointer(); for (int i = 0; i < ndd; i++) { raf.seek(pos); Tag tag = factory(); pos += 12; // tag usually changed the file pointer if (tag.code > 1) alltags.add(tag); } memTracker.add("DD block", start, raf.getFilePointer()); return link; }