What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » File format suggestions

File format suggestions
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: File format suggestions
quote:
Originally posted by Choli
agree with cookie on his format, however i'd improve what is in the quote: Name and comments are human-readable strings, I mean: they have no weird symbols, only characters; so you can use null-terminated strings: The size required would be the same (because you add a null character at the end, but you no longer need the byte identifying the lenght) and this way you can have strings of any size. You may want to have a 500-byte comments on the chunk. In any case, the recommendation of making the name and comments as short as possible still applies.
True, that's also a possebility. But personaly, I don't like to use that because you need to read and check an unknown amount of bytes until you encounter a null-byte.

The advanatge is indeed that you can have a string longer then 255 bytes, but the disadvantage is that you need to read an X-amount of bytes and check each byte if it is a null-byte.

This implies also that you can't jump easly to a certain part of the file/chunck without checking these null-terminated strings and this is, IMO, a bit messy (but it will work though). For example, If I wanna read a certain chunk, I must process every previous chunk to check if there are comments and how long they are, before I now where the offset is from the chunk I need. If you use a length-identifier, I can jump very easly and quickly thru the chunks...

This post was edited on 06-12-2004 at 01:49 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-12-2004 01:45 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
File format suggestions - by Millenium_edition on 06-11-2004 at 02:24 PM
RE: File format suggestions - by Concord Dawn on 06-11-2004 at 02:50 PM
RE: File format suggestions - by Millenium_edition on 06-11-2004 at 03:02 PM
RE: File format suggestions - by CookieRevised on 06-11-2004 at 11:51 PM
RE: File format suggestions - by Choli on 06-12-2004 at 12:22 AM
RE: File format suggestions - by CookieRevised on 06-12-2004 at 01:45 AM
RE: File format suggestions - by Choli on 06-12-2004 at 10:09 AM
RE: File format suggestions - by Millenium_edition on 06-12-2004 at 12:08 PM
RE: File format suggestions - by Choli on 06-12-2004 at 01:30 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On