Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 24878 invoked from network); 30 Mar 2005 06:30:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Mar 2005 06:30:47 -0000 Received: (qmail 42260 invoked by uid 500); 30 Mar 2005 06:30:46 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 42210 invoked by uid 500); 30 Mar 2005 06:30:45 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 42197 invoked by uid 99); 30 Mar 2005 06:30:45 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 29 Mar 2005 22:30:45 -0800 Received: (qmail 24780 invoked by uid 65534); 30 Mar 2005 06:30:44 -0000 Message-ID: <20050330063044.24774.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: svnmailer-1.0.0-dev Date: Wed, 30 Mar 2005 06:30:44 -0000 Subject: svn commit: r159464 - directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java To: commits@directory.apache.org From: elecharny@apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: elecharny Date: Tue Mar 29 22:30:41 2005 New Revision: 159464 URL: http://svn.apache.org/viewcvs?view=3Drev&rev=3D159464 Log: Corrected a bug in Value : I was using the wrong method for bulk copy of a = block of bytes from a ByteBuffer.=20 Fixed the current length handling in partial decoding Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv= /Value.java Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/b= er/tlv/Value.java URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/s= rc/java/org/apache/asn1/ber/tlv/Value.java?view=3Ddiff&r1=3D159463&r2=3D159= 464 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv= /Value.java (original) +++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv= /Value.java Tue Mar 29 22:30:41 2005 @@ -90,8 +90,9 @@ */ public void setData( ByteBuffer data ) { - data.put(this.data, 0, data.remaining()); - currentPos =3D this.data.length; + int length =3D data.remaining(); + data.get(this.data, 0, length); + currentPos =3D length; } =20 /** @@ -101,8 +102,9 @@ */ public void addData( ByteBuffer data ) { - data.put(this.data , currentPos, data.remaining()); - currentPos =3D this.data.length; + int length =3D data.remaining(); + data.get(this.data , currentPos, length); + currentPos +=3D length; } =20 /** @@ -124,7 +126,7 @@ public void addData( byte[] data ) { System.arraycopy( data, 0, this.data, currentPos, data.length ); - currentPos +=3D data.length; + currentPos =3D data.length; } =20 /**