Searched defs:offset (Results 101 - 125 of 222) sorted by relevance

123456789

/libcore/luni/src/main/java/java/nio/
H A DDirectByteBuffer.java23 // This is the offset into {@code Buffer.block} at which this buffer logically starts.
25 protected final int offset; field in class:DirectByteBuffer
27 protected DirectByteBuffer(MemoryBlock block, int capacity, int offset) { argument
31 if (baseSize >= 0 && (capacity + offset) > baseSize) {
32 throw new IllegalArgumentException("capacity + offset > baseSize");
35 this.offset = offset;
36 this.effectiveDirectAddress = block.toInt() + offset;
42 this.block.peekByteArray(offset + position, dst, dstOffset, byteCount);
49 this.block.peekCharArray(offset
[all...]
H A DHeapByteBuffer.java41 final int offset; field in class:HeapByteBuffer
51 HeapByteBuffer(byte[] backingArray, int capacity, int offset) { argument
54 this.offset = offset;
55 if (offset + capacity > backingArray.length) {
57 ", capacity=" + capacity + ", offset=" + offset);
64 System.arraycopy(backingArray, offset + position, dst, dstOffset, byteCount);
71 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, offset + position, SizeOf.CHAR, order.needsSwap);
77 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, offset
[all...]
/libcore/luni/src/main/java/java/nio/channels/
H A DDatagramChannel.java263 * @param offset
264 * a non-negative offset in the array of buffers, pointing to the
270 * {@code targets.length - offset}.
287 public abstract long read(ByteBuffer[] targets, int offset, int length) argument
364 * @param offset
365 * a non-negative offset in the array of buffers, pointing to the
371 * {@code sources.length - offset}.
390 public abstract long write(ByteBuffer[] sources, int offset, int length) argument
H A DSocketChannel.java261 * length} byte buffers, in order, starting at {@code targets[offset]}. The
269 * @param offset
284 * if {@code offset < 0} or {@code length < 0}, or if {@code
285 * offset + length} is greater than the size of {@code targets}.
293 public abstract long read(ByteBuffer[] targets, int offset, int length) throws IOException; argument
363 * sources[offset]}. The number of bytes actually written is returned.
371 * @param offset
387 * if {@code offset < 0} or {@code length < 0}, or if {@code
388 * offset + length} is greater than the size of {@code sources}.
396 public abstract long write(ByteBuffer[] sources, int offset, in argument
[all...]
/libcore/luni/src/main/java/java/security/
H A DSignatureSpi.java127 int offset = input.arrayOffset();
131 engineUpdate(tmp, offset + position, limit - position);
171 * @param offset
180 * if {@code offset} or {@code len} are not valid in respect to
183 protected int engineSign(byte[] outbuf, int offset, int len) throws SignatureException { argument
191 if (offset < 0) {
192 throw new SignatureException("offset < 0");
194 if (offset + len > outbuf.length) {
195 throw new SignatureException("offset + len > outbuf.length");
197 System.arraycopy(tmp, 0, outbuf, offset, tm
244 engineVerify(byte[] sigBytes, int offset, int length) argument
[all...]
/libcore/luni/src/main/java/java/text/
H A DBreakIterator.java350 * Indicates whether the given offset is a boundary position. If this method
355 * @param offset
356 * the given offset to check.
357 * @return {@code true} if the given offset is a boundary position; {@code
360 public boolean isBoundary(int offset) { argument
361 return wrapped.isBoundary(offset);
365 * Returns the position of last boundary preceding the given offset, and
367 * given offset specifies the starting position.
369 * @param offset
371 * @return the position of the last boundary preceding the given offset
375 preceding(int offset) argument
417 following(int offset) argument
[all...]
H A DRuleBasedBreakIterator.java42 @Override public int following(int offset) { argument
43 validateOffset(offset);
44 return wrapped.following(offset);
48 * check the offset, throw exception if it is invalid
50 private void validateOffset(int offset) { argument
52 if (offset < it.getBeginIndex() || offset > it.getEndIndex()) {
84 @Override public boolean isBoundary(int offset) { argument
85 validateOffset(offset);
86 return wrapped.isBoundary(offset);
89 preceding(int offset) argument
[all...]
H A DStringCharacterIterator.java27 int start, end, offset; field in class:StringCharacterIterator
39 start = offset = 0;
64 offset = location;
92 offset = location;
118 if (offset == end) {
121 return string.charAt(offset);
143 && offset == it.offset;
157 offset = start;
158 return string.charAt(offset);
[all...]
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicReferenceFieldUpdater.java155 private final long offset; field in class:AtomicReferenceFieldUpdater.AtomicReferenceFieldUpdaterImpl
206 offset = unsafe.objectFieldOffset(field);
229 return unsafe.compareAndSwapObject(obj, offset, expect, update);
238 return unsafe.compareAndSwapObject(obj, offset, expect, update);
246 unsafe.putObjectVolatile(obj, offset, newValue);
254 unsafe.putOrderedObject(obj, offset, newValue);
260 return (V)unsafe.getObjectVolatile(obj, offset);
/libcore/luni/src/main/java/java/util/jar/
H A DJarInputStream.java134 * {@code buffer} starting at {@code offset}.
138 * @param offset
139 * offset in buffer to store at
147 public int read(byte[] buffer, int offset, int length) throws IOException { argument
151 int r = super.read(buffer, offset, length);
171 verStream.write(buffer, offset, r);
/libcore/luni/src/main/java/java/util/zip/
H A DDeflaterInputStream.java114 @Override public int read(byte[] buffer, int offset, int byteCount) throws IOException { argument
116 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount);
140 System.arraycopy(buf, 0, buffer, offset + count, bytesDeflated);
H A DGZIPInputStream.java156 public int read(byte[] buffer, int offset, int byteCount) throws IOException { argument
163 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount);
167 bytesRead = super.read(buffer, offset, byteCount);
173 crc.update(buffer, offset, bytesRead);
201 private void readFully(byte[] buffer, int offset, int length) throws IOException { argument
204 result = in.read(buffer, offset, length);
208 offset += result;
H A DInflaterInputStream.java135 * {@code buffer} starting at {@code offset}.
140 public int read(byte[] buffer, int offset, int byteCount) throws IOException { argument
142 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount);
159 int result = inf.inflate(buffer, offset, byteCount);
/libcore/luni/src/main/java/javax/crypto/
H A DKeyAgreement.java278 * sharedSecred} at {@code offset}.
282 * @param offset
283 * the offset in the buffer.
290 public final int generateSecret(byte[] sharedSecret, int offset) argument
292 return spiImpl.engineGenerateSecret(sharedSecret, offset);
H A DMac.java246 * {@code input} from the specified {@code offset} and length {@code len}.
250 * @param offset
251 * the offset in the buffer.
257 * if {@code offset} and {@code len} do not specified a valid
260 public final void update(byte[] input, int offset, int len) throws IllegalStateException { argument
267 if ((offset < 0) || (len < 0) || ((offset + len) > input.length)) {
270 spiImpl.engineUpdate(input, offset, len);
333 * output} buffer at offset {@code outOffset}.
342 * the offset i
[all...]
/libcore/luni/src/main/java/libcore/icu/
H A DCollationElementIteratorICU.java107 * Get the offset of the current source character.
108 * This is an offset into the text of the character containing the current
110 * @return offset of the current source character.
118 * Set the offset of the current source character.
119 * This is an offset into the text of the character to be processed.
120 * @param offset The desired character offset.
123 public void setOffset(int offset) { argument
124 NativeCollation.setOffset(address, offset);
/libcore/luni/src/main/java/libcore/net/
H A DRawSocket.java50 int offset, int byteCount);
52 int offset, int byteCount, int destPort, int timeoutMillis);
80 public int read(byte[] packet, int offset, int byteCount, int destPort, argument
86 Arrays.checkOffsetAndCount(packet.length, offset, byteCount);
93 return recvPacket(fd, packet, offset, byteCount, destPort,
103 public int write(byte[] destMac, byte[] packet, int offset, int byteCount) { argument
112 Arrays.checkOffsetAndCount(packet.length, offset, byteCount);
120 offset, byteCount);
48 sendPacket(FileDescriptor fd, String interfaceName, short protocolType, byte[] destMac, byte[] packet, int offset, int byteCount) argument
51 recvPacket(FileDescriptor fd, byte[] packet, int offset, int byteCount, int destPort, int timeoutMillis) argument
/libcore/luni/src/main/java/libcore/net/http/
H A DChunkedOutputStream.java63 @Override public synchronized void write(byte[] buffer, int offset, int count) argument
66 Arrays.checkOffsetAndCount(buffer.length, offset, count);
75 bufferedChunk.write(buffer, offset, numBytesWritten);
84 socketOut.write(buffer, offset, numBytesWritten);
88 offset += numBytesWritten;
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DASN1Type.java85 public final Object decode(byte[] encoded, int offset, int encodingLen) argument
87 return decode(new DerInputStream(encoded, offset, encodingLen));
H A DDerInputStream.java43 public DerInputStream(byte[] encoded, int offset, int encodingLen) throws IOException { argument
44 super(encoded, offset, encodingLen);
74 && (buffer[offset - 1] & UNUSED_BITS_MASK[buffer[contentOffset] - 1]) != 0) {
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
H A DSHA1_MessageDigestImpl.java73 * offset - offset in digest
75 private void processDigest(byte[] digest, int offset) { argument
121 j = offset;
171 * Upon return, the value is stored in "buf" buffer beginning "offset" byte. <BR>
180 * offset a position in the array for first byte of the message digest
191 * if offset + len > buf.length <BR>
192 * if offset > buf.length or len > buf.length
198 * if offset < 0
200 protected int engineDigest(byte[] buf, int offset, in argument
290 engineUpdate(byte[] input, int offset, int len) argument
[all...]
H A DSHA1withDSA_SignatureImpl.java299 * off offset in byte array to start from
311 private boolean checkSignature(byte[] sigBytes, int offset, int length) argument
331 n1 = sigBytes[offset + 3];
332 n2 = sigBytes[offset + n1 + 5];
334 if (sigBytes[offset + 0] != 0x30 || sigBytes[offset + 2] != 2
335 || sigBytes[offset + n1 + 4] != 2
336 || sigBytes[offset + 1] != (n1 + n2 + 4) || n1 > 21
338 || (length != 0 && (sigBytes[offset + 1] + 2) > length)) {
350 System.arraycopy(sigBytes, offset
419 engineVerify(byte[] sigBytes, int offset, int length) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DCharacterDataImpl.java46 public void deleteData(int offset, int count) throws DOMException { argument
47 buffer.delete(offset, offset + count);
70 public void insertData(int offset, String arg) throws DOMException { argument
72 buffer.insert(offset, arg);
78 public void replaceData(int offset, int count, String arg) argument
81 buffer.replace(offset, offset + count, arg);
91 public String substringData(int offset, int count) throws DOMException { argument
93 return buffer.substring(offset, offse
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DConnectionStateSSLv3.java229 protected byte[] encrypt(byte type, byte[] fragment, int offset, int len) { argument
234 System.arraycopy(fragment, offset, res, 0, len);
244 messageDigest.update(fragment, offset, len);
256 // logger.print(fragment, offset, len);
290 int offset, int len) {
292 byte[] data = decCipher.update(fragment, offset, len);
289 decrypt(byte type, byte[] fragment, int offset, int len) argument
H A DConnectionStateTLS.java237 protected byte[] encrypt(byte type, byte[] fragment, int offset, int len) { argument
242 System.arraycopy(fragment, offset, res, 0, len);
250 encMac.update(fragment, offset, len);
257 // logger.print(fragment, offset, len);
300 int offset, int len) {
302 byte[] data = decCipher.update(fragment, offset, len);
299 decrypt(byte type, byte[] fragment, int offset, int len) argument

Completed in 822 milliseconds

123456789