Home
last modified time | relevance | path

Searched refs:newPosition (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/main/java/java/nio/
DDirectByteBuffer.java177 int newPosition = position + SizeOf.CHAR; in getChar() local
178 if (newPosition > limit) { in getChar()
182 position = newPosition; in getChar()
194 int newPosition = position + SizeOf.DOUBLE; in getDouble() local
195 if (newPosition > limit) { in getDouble()
199 position = newPosition; in getDouble()
211 int newPosition = position + SizeOf.FLOAT; in getFloat() local
212 if (newPosition > limit) { in getFloat()
216 position = newPosition; in getFloat()
228 int newPosition = position + SizeOf.INT; in getInt() local
[all …]
DByteArrayBuffer.java163 int newPosition = position + SizeOf.CHAR; in getChar() local
164 if (newPosition > limit) { in getChar()
168 position = newPosition; in getChar()
194 int newPosition = position + SizeOf.INT; in getInt() local
195 if (newPosition > limit) { in getInt()
199 position = newPosition; in getInt()
209 int newPosition = position + SizeOf.LONG; in getLong() local
210 if (newPosition > limit) { in getLong()
214 position = newPosition; in getLong()
224 int newPosition = position + SizeOf.SHORT; in getShort() local
[all …]
DBuffer.java344 public final Buffer position(int newPosition) { in position() argument
345 positionImpl(newPosition); in position()
349 void positionImpl(int newPosition) { in positionImpl() argument
350 if (newPosition < 0 || newPosition > limit) { in positionImpl()
351 … throw new IllegalArgumentException("Bad position (limit " + limit + "): " + newPosition); in positionImpl()
354 position = newPosition; in positionImpl()
DCharSequenceAdapter.java84 int newPosition = position + charCount; in get() local
85 sequence.toString().getChars(position, newPosition, dst, dstOffset); in get()
86 position = newPosition; in get()
DFileChannelImpl.java270 public FileChannel position(long newPosition) throws IOException { in position() argument
272 if (newPosition < 0) { in position()
273 throw new IllegalArgumentException("position: " + newPosition); in position()
276 Libcore.os.lseek(fd, newPosition, SEEK_SET); in position()
/libcore/luni/src/main/java/java/nio/channels/
DFileChannel.java312 public abstract FileChannel position(long newPosition) throws IOException; in position() argument