comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: bitstreams
Date: Mon, 15 Jan 2001 16:54:18 -0500
Date: 2001-01-15T21:54:18+00:00	[thread overview]
Message-ID: <3A63718A.12F72E9E@averstar.com> (raw)
In-Reply-To: 93vkl3$1j$1@nnrp1.deja.com

mark_lundquist@my-deja.com wrote:
> 
> In article <3A622CE5.89C9378E@worldnet.att.net>,
>   srini <r.srinivasan@worldnet.att.net> wrote:
> >
> > I do not know much about mp3 etc but I have developed a bit stream
> > package which allows you to perform reads in terms of bits. I use
> these
> > in my own compression/decompression test software. The spec is
> attached.
> 
> > ----------------------------------------------------------------------
> > package Bits_Io is
> >
> >    type File_Type is limited private;
> >    type File_Mode is (In_File, Out_File, Append_File);
> >
> >    type Vector_type is array (natural range <>) of boolean ;
> >    pragma pack( Vector_Type ) ;
> .
> .
> .
> 
> Beware, though... this is implementation-dependent. If the compiler
> doesn't represent a packed array of boolean as a bit vector, it doesn't
> work.

Any Ada 95 compiler that has passed the chapter 13 ACATS (aka ACVCs) 
supports packed bit vectors, so not-to-worry (cf. generic Length_Check
used by many chapter 13 "cd*.*" tests).
 
Ada 95 requires support for packed bit vectors as part of
conforming to the Systems Programming Annex, and about the
only compilers that don't support the Systems Programming Annex
these days are those that generate Java byte codes (and even those
can support packed bit vectors without too much pain, though 
supporting arbitrary unchecked conversion is generally not possible).

> ...
> Mark Lundquist

-- 
-Tucker Taft   stt@avercom.net   http://www.averstar.com/~stt/
Chief Technology Officer, AverCom, Inc. (A Titan Company) Burlington, MA  USA
(AverCom was formed 1/1/01 from the Commercial Division of AverStar)
(http://www.averstar.com/services/ebusiness_applications.html)



  reply	other threads:[~2001-01-15 21:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-14 14:47 bitstreams Daniel Nilsson
2001-01-14 15:10 ` bitstreams Larry Kilgallen
2001-01-14 16:15 ` bitstreams tmoran
2001-01-14 19:46 ` bitstreams srini
2001-01-15 19:56   ` bitstreams mark_lundquist
2001-01-15 21:54     ` Tucker Taft [this message]
2001-01-16  0:41       ` bitstreams Robert Dewar
2001-01-16  0:39     ` bitstreams Robert Dewar
2001-01-16 23:26       ` bitstreams Rajagopalan Srinivasan
2001-01-15 19:21 ` bitstreams mark_lundquist
2001-01-15 20:43   ` bitstreams Pat Rogers
2001-01-15 21:15     ` bitstreams mark_lundquist
2001-01-16  0:59   ` bitstreams Robert Dewar
2001-01-16 17:36     ` bitstreams mark_lundquist
2001-01-16 20:08       ` bitstreams Pat Rogers
2001-01-17  2:15         ` bitstreams Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox