public void readInt(long pos, int dest[], int off, int len) throws IOException { seek(pos); for (int i=0; i<len; i++) dest[off+i] = delegate.readInt(); cpos += len * 4; }
while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.read(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readShort(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readInt(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readFloat(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readDouble(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readLong(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.read(chunk.getSrcPos(), pa, (int) chunk.getDestElem() * recsize, chunk.getNelems() * recsize);
PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); IospHelper.readData(dataSource, layout, DataType.STRUCTURE, result); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); IospHelper.readData(dataSource, layout, DataType.STRUCTURE, result); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); IospHelper.readData(dataSource, layout, DataType.STRUCTURE, result);
while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.read(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readShort(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readInt(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readFloat(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readDouble(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readLong(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.read(chunk.getSrcPos(), pa, (int) chunk.getDestElem() * recsize, chunk.getNelems() * recsize);
PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); IospHelper.readData(dataSource, layout, DataType.STRUCTURE, result); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); IospHelper.readData(dataSource, layout, DataType.STRUCTURE, result); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); IospHelper.readData(dataSource, layout, DataType.STRUCTURE, result);
while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.read(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readShort(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readInt(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readFloat(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readDouble(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.readLong(chunk.getSrcPos(), pa, (int) chunk.getDestElem(), chunk.getNelems()); while (index.hasNext()) { Layout.Chunk chunk = index.next(); raf.read(chunk.getSrcPos(), pa, (int) chunk.getDestElem() * recsize, chunk.getNelems() * recsize);
public void readDouble(long pos, double dest[], int off, int len) throws IOException { seek(pos); for (int i=0; i<len; i++) dest[off+i] = delegate.readDouble(); cpos += len * 8; } }
PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); IospHelper.readData(dataSource, layout, DataType.STRUCTURE, result); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); IospHelper.readData(dataSource, layout, DataType.STRUCTURE, result); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Layout layout = new LayoutRegular(0, recsize, s.getShape(), section); IospHelper.readData(dataSource, layout, DataType.STRUCTURE, result);
public void read(long pos, byte dest[], int off, int len) throws IOException { seek(pos); delegate.readFully(dest, off, len); cpos += len; }
Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue); return Array.factory(dataType, section.getShape(), data); Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getLinkedCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue); return Array.factory(dataType, section.getShape(), data);
public void readInt(long pos, int dest[], int off, int len) throws IOException { seek(pos); for (int i=0; i<len; i++) dest[off+i] = delegate.readInt(); cpos += len * 4; }
Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue); return Array.factory(dataType.getPrimitiveClassType(), section.getShape(), data); Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getLinkedCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue); return Array.factory(dataType.getPrimitiveClassType(), section.getShape(), data);
public void read(long pos, byte dest[], int off, int len) throws IOException { seek(pos); delegate.readFully(dest, off, len); cpos += len; }
Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue); return Array.factory(dataType.getPrimitiveClassType(), section.getShape(), data); Layout index = new LayoutRegular(0, v.getElementSize(), v.getShape(), section); InputStream is = getLinkedCompressedInputStream(vinfo); PositioningDataInputStream dataSource = new PositioningDataInputStream(is); Object data = IospHelper.readDataFill(dataSource, index, dataType, vinfo.fillValue); return Array.factory(dataType.getPrimitiveClassType(), section.getShape(), data);
public void readShort(long pos, short dest[], int off, int len) throws IOException { seek(pos); for (int i=0; i<len; i++) dest[off+i] = delegate.readShort(); cpos += len * 2; }
public void readFloat(long pos, float dest[], int off, int len) throws IOException { seek(pos); for (int i=0; i<len; i++) dest[off+i] = delegate.readFloat(); cpos += len * 4; }
public void read(long pos, byte dest[], int off, int len) throws IOException { seek(pos); delegate.readFully(dest, off, len); cpos += len; }
public void readDouble(long pos, double dest[], int off, int len) throws IOException { seek(pos); for (int i=0; i<len; i++) dest[off+i] = delegate.readDouble(); cpos += len * 8; } }
public void readShort(long pos, short dest[], int off, int len) throws IOException { seek(pos); for (int i=0; i<len; i++) dest[off+i] = delegate.readShort(); cpos += len * 2; }
public void readInt(long pos, int dest[], int off, int len) throws IOException { seek(pos); for (int i=0; i<len; i++) dest[off+i] = delegate.readInt(); cpos += len * 4; }