HomeSort by relevance Sort by last modified time
    Searched refs:byteCount (Results 26 - 50 of 204) sorted by null

12 3 4 5 6 7 8 9

  /libcore/luni/src/main/java/java/io/
StringBufferInputStream.java 81 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) {
85 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
86 if (byteCount == 0) {
90 int copylen = count - pos < byteCount ? count - pos : byteCount;
  /libcore/luni/src/main/java/libcore/io/
NioBufferIterator.java 44 public void skip(int byteCount) {
45 position += byteCount;
48 public void readByteArray(byte[] dst, int dstOffset, int byteCount) {
49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount);
50 position += byteCount;
Posix.java 85 public native void mincore(long address, long byteCount, byte[] vector) throws ErrnoException;
87 public native void mlock(long address, long byteCount) throws ErrnoException;
88 public native long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException;
89 public native void msync(long address, long byteCount, int flags) throws ErrnoException;
90 public native void munlock(long address, long byteCount) throws ErrnoException;
91 public native void munmap(long address, long byteCount) throws ErrnoException;
102 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException {
104 return preadBytes(fd, bytes, byteOffset, byteCount, offset);
106 private native int preadBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) throws ErrnoException;
114 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException
    [all...]
Streams.java 64 * Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws
69 public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) throws IOException {
70 if (byteCount == 0) {
79 Arrays.checkOffsetAndCount(dst.length, offset, byteCount);
80 while (byteCount > 0) {
81 int bytesRead = in.read(dst, offset, byteCount);
86 byteCount -= bytesRead;
139 * {@code byteCount} bytes have been read.
148 public static long skipByReading(InputStream in, long byteCount) throws IOException {
156 while (skipped < byteCount) {
    [all...]
  /external/yaffs2/yaffs2/
yaffs_packedtags2.c 50 pt->t.objectId, pt->t.chunkId, pt->t.byteCount,
61 t->chunkId, t->byteCount, t->chunkDeleted, t->serialNumber,
70 pt->t.byteCount = t->byteCount;
90 pt->t.byteCount = t->extraEquivalentObjectId;
92 pt->t.byteCount = t->extraFileLength;
94 pt->t.byteCount = 0;
155 t->byteCount = pt->t.byteCount;
164 t->byteCount = 0
    [all...]
yaffs_packedtags1.c 8 pt->byteCount = t->byteCount;
31 t->byteCount = pt->byteCount;
yaffs_packedtags1.h 11 unsigned byteCount:10;
yaffs_packedtags2.h 13 unsigned byteCount;
  /libcore/luni/src/main/java/javax/crypto/spec/
GCMParameterSpec.java 43 * {@code offset} and {@code byteCount} do not specify a valid
59 * (IV) of {@code byteCount} bytes from the specified buffer {@code iv}
63 * {@code offset} and {@code byteCount} do not specify a valid
66 * {@code byteCount} are negative.
68 public GCMParameterSpec(int tagLen, byte[] iv, int offset, int byteCount) {
76 Arrays.checkOffsetAndCount(iv.length, offset, byteCount);
81 this.iv = Arrays.copyOfRange(iv, offset, offset + byteCount);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
MD5Calculator.java 35 int byteCount;
36 while ((byteCount = in.read(bytes)) > 0) {
37 digester.update(bytes, 0, byteCount);
  /libcore/luni/src/main/java/java/nio/
IoVec.java 88 void didTransfer(int byteCount) {
89 for (int i = 0; byteCount > 0 && i < bufferCount; ++i) {
91 if (byteCounts[i] < byteCount) {
93 byteCount -= byteCounts[i];
95 b.position((direction == Direction.WRITEV ? b.position() : 0) + byteCount);
96 byteCount = 0;
MemoryBlock.java 34 private MemoryMappedBlock(long address, long byteCount) {
35 super(address, byteCount);
66 private NonMovableHeapBlock(byte[] array, long address, long byteCount) {
67 super(address, byteCount);
86 private UnmanagedBlock(long address, long byteCount) {
87 super(address, byteCount);
123 public static MemoryBlock allocate(int byteCount) {
125 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, byteCount);
127 return new NonMovableHeapBlock(array, address, byteCount);
130 public static MemoryBlock wrapFromJni(long address, long byteCount) {
    [all...]
Buffer.java 171 int byteCount = bytesPerElement * count;
176 if (byteCount > remaining()) {
179 return byteCount;
183 int byteCount = bytesPerElement * count;
188 if (byteCount > remaining()) {
194 return byteCount;
DirectByteBuffer.java 106 @Override public final ByteBuffer get(byte[] dst, int dstOffset, int byteCount) {
107 checkGetBounds(1, dst.length, dstOffset, byteCount);
108 this.block.peekByteArray(offset + position, dst, dstOffset, byteCount);
109 position += byteCount;
114 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount);
116 position += byteCount;
120 int byteCount = checkGetBounds(SizeOf.DOUBLE, dst.length, dstOffset, doubleCount);
122 position += byteCount;
126 int byteCount = checkGetBounds(SizeOf.FLOAT, dst.length, dstOffset, floatCount);
128 position += byteCount;
    [all...]
  /external/chromium_org/third_party/skia/src/ports/
SkOSFile_stdio.cpp 73 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* f) {
81 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_CUR);
84 byteCount, curr, feof((FILE*)f), ferror((FILE*)f), err));
87 return byteCount;
90 return ::fread(buffer, 1, byteCount, (FILE*)f);
93 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) {
95 return ::fwrite(buffer, 1, byteCount, (FILE*)f);
103 bool sk_fseek(SkFILE* f, size_t byteCount) {
104 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_SET);
108 bool sk_fmove(SkFILE* f, long byteCount) {
    [all...]
  /external/skia/src/ports/
SkOSFile_stdio.cpp 73 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* f) {
81 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_CUR);
84 byteCount, curr, feof((FILE*)f), ferror((FILE*)f), err));
87 return byteCount;
90 return ::fread(buffer, 1, byteCount, (FILE*)f);
93 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) {
95 return ::fwrite(buffer, 1, byteCount, (FILE*)f);
103 bool sk_fseek(SkFILE* f, size_t byteCount) {
104 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_SET);
108 bool sk_fmove(SkFILE* f, long byteCount) {
    [all...]
  /external/chromium_org/third_party/skia/src/utils/
SkMD5.h 44 uint64_t byteCount;
SkSHA1.h 44 uint64_t byteCount;
  /external/skia/src/utils/
SkMD5.h 44 uint64_t byteCount;
SkSHA1.h 44 uint64_t byteCount;
  /libcore/luni/src/main/java/java/util/zip/
InflaterInputStream.java 134 * Reads up to {@code byteCount} bytes of decompressed data and stores it in
139 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
141 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
143 if (byteCount == 0) {
158 int result = inf.inflate(buffer, byteOffset, byteCount);
201 * Skips up to {@code byteCount} bytes of uncompressed data.
203 * @param byteCount the number of bytes to skip.
205 * @throws IllegalArgumentException if {@code byteCount < 0}.
209 public long skip(long byteCount) throws IOException {
210 if (byteCount < 0)
    [all...]
  /libcore/luni/src/main/java/javax/crypto/
CipherInputStream.java 102 int byteCount = in.read(inputBuffer);
103 if (byteCount == -1) {
113 outputLength = cipher.update(inputBuffer, 0, byteCount, outputBuffer, 0);
155 public long skip(long byteCount) throws IOException {
156 return Streams.skipByReading(this, byteCount);
  /external/chromium_org/third_party/skia/src/utils/ios/
SkOSFile_iOS.mm 69 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* rec) {
74 if (byteCount > remaining) {
75 byteCount = remaining;
77 memcpy(buffer, (char*)[rec->fData bytes] + rec->fOffset, byteCount);
78 rec->fOffset += byteCount;
80 return byteCount;
84 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) {
  /external/skia/src/utils/ios/
SkOSFile_iOS.mm 69 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* rec) {
74 if (byteCount > remaining) {
75 byteCount = remaining;
77 memcpy(buffer, (char*)[rec->fData bytes] + rec->fOffset, byteCount);
78 rec->fOffset += byteCount;
80 return byteCount;
84 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) {
  /libcore/luni/src/main/java/java/security/
DigestInputStream.java 99 * Reads up to {@code byteCount} bytes into {@code buffer}, starting at
112 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
113 int bytesRead = in.read(buffer, byteOffset, byteCount);

Completed in 610 milliseconds

12 3 4 5 6 7 8 9