[Coco] variable sized GETlike operation in basic 09?
Christopher Hawks
chawks at dls.net
Tue Jan 5 20:51:54 EST 2010
L. Curtis Boyle said the following on 01/05/2010 07:23 PM:
> Best is to use the I$Read or I$ReadLn SYSCALL functions... Just set the
> Y register to the # of bytes you want to read for each call. You can
> vary it for every read, if you want.
And I$GetStat for SS.READY SYSCALL will tell you how many bytes are available...
> On Jan 5, 2010, at 6:17 PM, Aaron Wolfe <aawolfe at gmail.com> wrote:
>
>> Does anyone know if its possible to do a GET for changing amounts of
>> data? Or another fast way to read changing sized 'records'? GETting
>> one byte at a time is very slow compared to getting several in the
>> HTTPD program. Right now I GET a 32 byte array at a time out of files
>> and just try to make sure files are sized a multiple of 32, but thats
>> no good. I also pad out all the headers coming in from the client to
>> a standard length so GET can work there, also not great.
>>
>> I think I could use SYSCALL and I$Read, but this seems wasteful, maybe
>> not? Maybe I'm missing something in B09? It seems GET only reads the
>> size of the variable(s) specified, and you cannot reDIM or change the
>> size of the variables in any way.
>>
>> Thanks for any clues
>> -Aaron
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> http://five.pairlist.net/mailman/listinfo/coco
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
--
Christopher R. Hawks
HAWKSoft
---------------------------------------------------------
The obvious mathematical breakthrough [to break modern encryption] would
be development of an easy way to factor large prime numbers.
-- Bill Gates, The Road Ahead
More information about the Coco
mailing list