Return-Path: Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 88573 invoked from network); 12 Oct 2001 18:07:32 -0000 Received: from unknown (HELO mta.12.com) (65.198.8.41) by daedalus.apache.org with SMTP; 12 Oct 2001 18:07:32 -0000 Received: (qmail 28114 invoked from network); 12 Oct 2001 18:04:57 -0000 Received: from unknown (HELO riker.grandcentral.com) (10.102.15.55) by mta.12.com with SMTP; 12 Oct 2001 18:04:57 -0000 Received: by mail.grandcentral.com with Internet Mail Service (5.5.2653.19) id <42Y1HVRZ>; Fri, 12 Oct 2001 10:56:56 -0700 Message-ID: <4BC270C6AB8AD411AD0B00B0D0493DF0EE7C76@mail.grandcentral.com> From: Doug Cutting To: "'lucene-dev@jakarta.apache.org'" Subject: RE: Added comments to InputStream and OutputStream Date: Fri, 12 Oct 2001 10:56:47 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Dmitry Serebrennikov [mailto:dmitrys@earthlink.net] > > I figured that I might as well be adding comments as I am reading and > figuring out the code. These comments are great to have. The only corrections I have are that vInt's can take from one to five bytes, and vLongs can take from one to ten bytes. The eighth bit indicates that a byte is *not* the last. Also it's worth noting that vLong and vInt are inefficient for negative numbers: they'll always take the maximum number of bytes. The "v" is for "variable length", although "c" for "compressed" would probably be better. Doug