Searched defs:nbytes (Results 1 - 24 of 24) sorted by relevance

/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DAdler32.java76 * @param nbytes
79 * if {@code offset > buf.length} or {@code nbytes} is negative
80 * or {@code offset + nbytes > buf.length}.
82 public void update(byte[] buf, int off, int nbytes) { argument
84 if (off <= buf.length && nbytes >= 0 && off >= 0
85 && buf.length - off >= nbytes) {
86 adler = updateImpl(buf, off, nbytes, adler);
92 private native long updateImpl(byte[] buf, int off, int nbytes, long adler1); argument
H A DCRC32.java75 * @param nbytes
78 public void update(byte[] buf, int off, int nbytes) { argument
80 if (off <= buf.length && nbytes >= 0 && off >= 0
81 && buf.length - off >= nbytes) {
82 tbytes += nbytes;
83 crc = updateImpl(buf, off, nbytes, crc);
89 private native long updateImpl(byte[] buf, int off, int nbytes, long crc1); argument
H A DCheckedInputStream.java76 * @param nbytes
84 public int read(byte[] buf, int off, int nbytes) throws IOException { argument
85 int x = in.read(buf, off, nbytes);
105 * @param nbytes
112 public long skip(long nbytes) throws IOException { argument
113 if (nbytes < 1) {
117 byte[] b = new byte[(int)Math.min(nbytes, 2048L)];
119 while (skipped != nbytes) {
121 (v = (int) (nbytes - skipped)) > b.length ? b.length : v);
H A DCheckedOutputStream.java81 * @param nbytes
87 public void write(byte[] buf, int off, int nbytes) throws IOException { argument
88 out.write(buf, off, nbytes);
89 check.update(buf, off, nbytes);
H A DChecksum.java46 * @param nbytes
49 public void update(byte[] buf, int off, int nbytes); argument
H A DGZIPOutputStream.java84 * Write up to nbytes of data from the given buffer, starting at offset off,
88 public void write(byte[] buffer, int off, int nbytes) throws IOException { argument
89 super.write(buffer, off, nbytes);
90 crc.update(buffer, off, nbytes);
H A DDeflaterOutputStream.java193 * Compresses {@code nbytes} of data from {@code buf} starting at
200 * @param nbytes
206 public void write(byte[] buffer, int off, int nbytes) throws IOException { argument
211 if (off <= buffer.length && nbytes >= 0 && off >= 0
212 && buffer.length - off >= nbytes) {
216 def.setInput(buffer, off, nbytes);
H A DGZIPInputStream.java156 * @param nbytes
160 public int read(byte[] buffer, int off, int nbytes) throws IOException { argument
168 if (off > buffer.length || nbytes < 0 || off < 0
169 || buffer.length - off < nbytes) {
175 bytesRead = super.read(buffer, off, nbytes);
H A DInflaterInputStream.java139 * Reads up to {@code nbytes} of decompressed data and stores it in
146 * @param nbytes
153 public int read(byte[] buffer, int off, int nbytes) throws IOException { argument
163 if (off < 0 || nbytes < 0 || off + nbytes > buffer.length) {
167 if (nbytes == 0) {
176 if (off > buffer.length || nbytes < 0 || off < 0
177 || buffer.length - off < nbytes) {
188 int result = inf.inflate(buffer, off, nbytes);
242 * @param nbytes
249 skip(long nbytes) argument
[all...]
H A DDeflater.java202 * @param nbytes
206 public synchronized int deflate(byte[] buf, int off, int nbytes) { argument
207 return deflateImpl(buf, off, nbytes, flushParm);
216 * @param nbytes maximum number of bytes of compressed data to be written.
220 * equals {@code nbytes}, the number of bytes of input to be flushed
227 public synchronized int deflate(byte[] buf, int off, int nbytes, int flush) { argument
231 return deflateImpl(buf, off, nbytes, flush);
235 byte[] buf, int off, int nbytes, int flush) {
239 if (off > buf.length || nbytes < 0 || off < 0 || buf.length - off < nbytes) {
234 deflateImpl( byte[] buf, int off, int nbytes, int flush) argument
248 deflateImpl(byte[] buf, int off, int nbytes, long handle, int flushParm1) argument
419 setDictionary(byte[] buf, int off, int nbytes) argument
432 setDictionaryImpl(byte[] buf, int off, int nbytes, long handle) argument
458 setInput(byte[] buf, int off, int nbytes) argument
480 setInputImpl(byte[] buf, int off, int nbytes, long handle) argument
[all...]
H A DInflater.java226 * @param nbytes
233 public synchronized int inflate(byte[] buf, int off, int nbytes) argument
236 if (off > buf.length || nbytes < 0 || off < 0
237 || buf.length - off < nbytes) {
241 if (nbytes == 0) {
255 int result = inflateImpl(buf, off, nbytes, streamHandle);
265 int nbytes, long handle);
334 * @param nbytes
338 public synchronized void setDictionary(byte[] buf, int off, int nbytes) { argument
343 if (off <= buf.length && nbytes >
264 inflateImpl(byte[] buf, int off, int nbytes, long handle) argument
351 setDictionaryImpl(byte[] buf, int off, int nbytes, long handle) argument
380 setInput(byte[] buf, int off, int nbytes) argument
409 setFileInput(FileDescriptor fd, long off, int nbytes) argument
419 setInputImpl(byte[] buf, int off, int nbytes, long handle) argument
423 setFileInputImpl(FileDescriptor fd, long off, int nbytes, long handle) argument
[all...]
H A DZipFile.java431 public int read(byte[] buffer, int off, int nbytes) throws IOException { argument
432 int i = super.read(buffer, off, nbytes);
H A DZipOutputStream.java393 public void write(byte[] buffer, int off, int nbytes) argument
396 if ((off < 0 || (nbytes < 0) || off > buffer.length)
397 || (buffer.length - off < nbytes)) {
407 out.write(buffer, off, nbytes);
409 super.write(buffer, off, nbytes);
411 crc.update(buffer, off, nbytes);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/
H A DFtpURLInputStream.java45 public int read(byte[] buf, int off, int nbytes) throws IOException { argument
46 return is.read(buf, off, nbytes);
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DPipedOutputStreamTest.java66 public String read(int nbytes) { argument
67 byte[] buf = new byte[nbytes];
69 reader.read(buf, 0, nbytes);
H A DPipedInputStreamTest.java49 public PWriter(PipedOutputStream pout, int nbytes) { argument
51 bytes = new byte[nbytes];
H A DPipedWriterTest.java79 public String read(int nbytes) { argument
80 buf = new char[nbytes];
82 pr.read(buf, 0, nbytes);
/dalvik/libcore/archive/src/main/java/java/util/jar/
H A DJarFile.java104 public int read(byte[] buf, int off, int nbytes) throws IOException { argument
109 int r = super.read(buf, off, nbytes);
141 public long skip(long nbytes) throws IOException { argument
143 byte[] buf = new byte[(int)Math.min(nbytes, 2048L)];
144 while (cnt < nbytes) {
146 (rem = nbytes - cnt) > buf.length ? buf.length
H A DJarVerifier.java111 public void write(byte[] buf, int off, int nbytes) { argument
112 digest.update(buf, off, nbytes);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/
H A DJarURLConnectionImpl.java160 int nbytes = 0;
161 while ((nbytes = is.read(buf)) > -1) {
162 fos.write(buf, 0, nbytes);
404 public int read(byte[] buf, int off, int nbytes) throws IOException { argument
405 return inputStream.read(buf, off, nbytes);
409 public long skip(long nbytes) throws IOException { argument
410 return inputStream.skip(nbytes);
/dalvik/libcore/luni/src/main/native/
H A Dorg_apache_harmony_luni_platform_OSFileSystem.cpp270 jint buf, jint offset, jint nbytes) {
271 if (nbytes == 0) {
276 jlong rc = TEMP_FAILURE_RETRY(read(fd, dst, nbytes));
287 jint buf, jint offset, jint nbytes) {
289 jlong rc = TEMP_FAILURE_RETRY(write(fd, src, nbytes));
297 jbyteArray byteArray, jint offset, jint nbytes) {
299 if (nbytes == 0) {
304 jlong rc = TEMP_FAILURE_RETRY(read(fd, bytes + offset, nbytes));
322 jbyteArray byteArray, jint offset, jint nbytes) {
325 jlong result = TEMP_FAILURE_RETRY(write(fd, bytes + offset, nbytes));
269 harmony_io_readDirect(JNIEnv* env, jobject, jint fd, jint buf, jint offset, jint nbytes) argument
286 harmony_io_writeDirect(JNIEnv* env, jobject, jint fd, jint buf, jint offset, jint nbytes) argument
296 harmony_io_readImpl(JNIEnv* env, jobject, jint fd, jbyteArray byteArray, jint offset, jint nbytes) argument
321 harmony_io_writeImpl(JNIEnv* env, jobject, jint fd, jbyteArray byteArray, jint offset, jint nbytes) argument
[all...]
/dalvik/vm/alloc/
H A DHeapSource.c1281 static void releasePagesInRange(void *start, void *end, void *nbytes) argument
1291 *(size_t *)nbytes += length;
/dalvik/libcore/sql/src/main/native/
H A Dsqlite_jni.c3906 int nbytes; local
3916 nbytes = sqlite3_column_bytes((sqlite3_stmt *) v->vm, col);
3920 b = (*env)->NewByteArray(env, nbytes);
3925 (*env)->SetByteArrayRegion(env, b, 0, nbytes, data);
3943 int nbytes; local
3953 nbytes = sqlite3_column_bytes16((sqlite3_stmt *) v->vm, col);
3957 nbytes /= sizeof (jchar);
3958 b = (*env)->NewString(env, data, nbytes);
/dalvik/tools/dmtracedump/
H A DTraceDump.c298 int nbytes = 0; local
301 nbytes += 4;
302 if (nbytes >= len)
309 nbytes += 4;
310 if (nbytes >= len)
317 nbytes += 5;
318 if (nbytes >= len)
326 nbytes += 1;
327 if (nbytes >= len)
333 if (nbytes >
2050 int nbytes = sizeof(MethodEntry*) * pClass->numMethods; local
2276 int nbytes = sizeof(UniqueMethodEntry) * traceData->numUniqueMethods; local
2313 int nbytes = sizeof(MethodEntry*) * pUnique->numMethods; local
2370 int nbytes = sizeof(UniqueMethodEntry*) * traceData->numUniqueMethods; local
[all...]

Completed in 403 milliseconds