Lines Matching refs:destOffset
51 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException;
53 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException;
193 * @param destOffset offset into the byte array buffer to read into.
198 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count)
203 if (destOffset < 0 || destOffset > buffer.length || count < 0
204 || count > buffer.length - destOffset
209 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging);
218 * @param destOffset offset into the memory file to write to.
222 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count)
229 || destOffset < 0 || destOffset > mLength
230 || count > mLength - destOffset) {
233 native_write(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging);