[Coco] DriveWire with filesizes not divisible by 256

CoCoList for Color Computer Enthusiasts coco at maltedmedia.com
Sun May 11 17:20:18 EDT 2014


On Sun, May 11, 2014 at 9:45 PM, Aaron wrote:
> A couple survey responses have indicted a desire to use files of arbitrary
> size in DriveWire.
>
> Since we only read/write 256 byte sized sectors, what is the correct way to
> do that?  Just fill the last sector with 0?  There isn't a way for the
> server to tell the coco what's part of the file and what's not in the last
> sector, and vice versa the file would become padded to 256 byte boundary if
> the last sector is written, since coco can't tell server the same.  Does
> that matter?  It feels a bit dangerous.

Just padding with 0 would be fine for my application. The client
should know what it is doing and the file might have other meta
information to keep track of its content length.

Tormod



More information about the Coco mailing list