TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Gigamuxer donotspanme{at}sp
date: 2005-02-04 02:30:00
subject: BInary file header parser.

Hello gang,

I am preparing to build a VB app that will parse and decode a Binary
file. I'll explain the file structure bellow, but what I am looking for
is some source explaining how to do things like this fast on VB. This
would at least give me a head start.


The structure of the file is something like this:

File can be split into 32 bytes(packets).
	All packets start w/ a sync of 0x47.
Each packet 3 bytes Header and 29 bytes data.
	Header:
		1st byte = sync
		2nd byte = identifier
		3rd byte = type(2 bits) , continuity(4 bits)and  version  (2 bits)

There are 4 ways to decode the payload data and its specified by the
type value. This is errelevant as what I am trying to do now is to parse
the file.  These files can be as large as 5Mb.

Sumary of file structure:
File(varies)
	Packet
		Header|payload
	Packet
		Header|payload
	Packet
		Header|payload
	Packet
		Header|payload
	.
	.
	.
	.
End file
	
Any recomendations would be appreciated.

Regards,
GigaMuxer
	


--- UseNet To RIME Gateway {at} 2/4/05 2:20:05 AM ---
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270 5030/786
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.