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