mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-23 00:51:00 +08:00
FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer forward.
2005-02-17 Ito Kazumitsu <kaz@maczuka.gcd.org> * gnu/java/nio/channels/FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer forward. From-SVN: r95184
This commit is contained in:
parent
ae54ec16cd
commit
7801fed43d
@ -1,3 +1,8 @@
|
||||
2005-02-17 Ito Kazumitsu <kaz@maczuka.gcd.org>
|
||||
|
||||
* gnu/java/nio/channels/FileChannelImpl.java (write(ByteBuffer)):
|
||||
Move the position of the source buffer forward.
|
||||
|
||||
2005-02-17 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* java/lang/Class.h (_Jv_GetMethodString): Updated declaration.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* FileChannelImpl.java --
|
||||
Copyright (C) 2002, 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@ -192,6 +192,7 @@ public final class FileChannelImpl extends FileChannel
|
||||
{
|
||||
byte[] buffer = src.array();
|
||||
write(buffer, src.arrayOffset() + src.position(), len);
|
||||
src.position(src.position() + len);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user