On Sun, 27 Aug 2006 23:21:18 +0200
Andreas Jellinghaus <[EMAIL PROTECTED]> wrote:

> I looked at the code, and I am very confused. can you help me?
> 
> 1.) why four bytes? all msc_* funcions only use the first two bytes
>      anyway, so passing more looks wrong to me. also I'm not sure
> which if any functions in card-muscle or the muscle filesystem use
> more than this. so why four bytes?
4 bytes = size of muscle card object ID
file-> 2 byte dir, 2 byte file
dir -> 2 bytes only
> 2.) why int and u8[4] mix? why not keep only one? less converting,
>      should be easier. or maybe best use two bytes where only two are
>      looked at anyway, and more where more is actualy used?
Keeping the u8[4] seems to be the best and simplest route.  int was
used to keep data passing simple (I was re-aquanting myself with C at
the time).
> 3.) why not sc_path?
I hadn't really looked at sc_path (until just now)... it looks like it
could potentially work... just have muscle_filesystem convert them to
the object-ids as necessary.

-- 
Thomas Harning Jr.
_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to