classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: java/nio/ByteBufferImpl.java, java/nio/CharBufferImpl.


From: Jeroen Frijters
Subject: [cp-patches] FYI: java/nio/ByteBufferImpl.java, java/nio/CharBufferImpl.java
Date: Mon, 18 Apr 2005 11:05:56 +0200

Hi,

I committed the attached patch to fix CharBufferImpl to use array_offset
properly and to optimize the get/put methods of ByteBufferImpl and
CharBufferImpl, because these are now used heavily by String's new nio
based character decoding/encoding.

Regards,
Jeroen

2005-04-18  Jeroen Frijters  <address@hidden>

        * java/nio/ByteBufferImpl.java (get(), put(byte)): Inlined
checks
        and field updates.
        * java/nio/CharBufferImpl.java
        (CharBufferImpl(CharBufferImpl)): Copy array_offset field.
        (get(), put(char)): Inlined checks and field updates. Fixed to
        take array_offset into account.
        (get(int), put(int, char)): Fixed to take array_offset into
account.

Attachment: buf.patch.txt
Description: buf.patch.txt


reply via email to

[Prev in Thread] Current Thread [Next in Thread]