ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] RFC: new TVBUFF type

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 22 May 2001 14:34:02 -0700 (PDT)
> This type of TVBUFF can be created and destroyed as any other TVBUFF, though
> none of the accessorts or any
> other functions in tvbuff.c can operate on this TVBUFF.

Why not?

Why not simply change composite tvbuffs so you can add stuff in
arbitrary places and have holes?

Attempts to fetch data from holes would throw a new exception type. 
(Note that a "hole" due to, for example, a tvbuff having a length
shorter than its reported length would cause a BoundsError exception to
be thrown, not a new type of exception.)