Home | History | Annotate | Download | only in util

Lines Matching refs:offset

63      * @param offset index (in bytes) at which the chunk starts inside data source
66 * @throws IndexOutOfBoundsException if {@code offset} or {@code size} is negative, or if
67 * {@code offset + size} is greater than {@link #size()}.
69 void feed(long offset, long size, DataSink sink) throws IOException;
79 * @param offset index (in bytes) at which the chunk starts inside data source
82 * @throws IndexOutOfBoundsException if {@code offset} or {@code size} is negative, or if
83 * {@code offset + size} is greater than {@link #size()}.
85 ByteBuffer getByteBuffer(long offset, int size) throws IOException;
91 * @param offset index (in bytes) at which the chunk starts inside data source
94 * @throws IndexOutOfBoundsException if {@code offset} or {@code size} is negative, or if
95 * {@code offset + size} is greater than {@link #size()}.
97 void copyTo(long offset, int size, ByteBuffer dest) throws IOException;
103 * @param offset index (in bytes) at which the region starts inside data source
106 * @throws IndexOutOfBoundsException if {@code offset} or {@code size} is negative, or if
107 * {@code offset + size} is greater than {@link #size()}.
109 DataSource slice(long offset, long size);