Lines Matching defs:buffer
677 * Called by JNI. Given a URI, a buffer, and an offset into the buffer,
678 * copy the resource into buffer.
680 * @param buffer The byte array to copy the data into.
681 * @param offset The offet into buffer to place the data.
682 * @param expectedSize The size that the buffer has allocated for this file.
685 private int getFile(String uri, byte[] buffer, int offset,
692 if (size <= expectedSize && buffer != null
693 && buffer.length - offset >= size) {
694 stream.read(buffer, offset, size);