Hello Murad,

You can allocate a MemoryPtr with a size larger than 64 by MemChunkNew and
the Flag memNewChunkFlagAllowLarge. Look for this in the forum, it has been
discussed.
I see no use for Buffers larger than 500k because most of the PalmOS devices
dont even have so much dynamic space availiable. If you want to save it to a
external card anyway, I think a buffersize of 64k is enought. I dont think,
the speed will go up with bigger buffers. I'm afraid, saving a 500K buffer
at once will make the system not responding for a longer time than saving a
64k buffer every time it is full.

Regards,

Thomas


"Murad Kakabayev" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
>
> Hello people,
>
> I have to save some file(s) (not prc/pdb in general) from network to
> external storage card.
> I got  data from network splited in 4k chunks. I'd like to find the
fastest
> way to storage
> that data on card. I could allocate 64k in heap, collect received data to
> that buffer and
> flush that buffer with VFSFileWrite periodically
>
> The question is : How to increase internal buffer size to 500k and more?.
I
> know that Memory Manager could not allocate chunks more that 64k in heap.
> But there is a File Streaming API,
> which allows to store incoming data into big chunks on the RAM. But  then
I
> copy data from
> RAM to card, I could read with FileRead from buffer only 64k chunks. Am I
> right? Is there any method to break 64k limitation?
>
> I don't insist on big buffer size, there might  be another way to increase
> writing on external card.
> Any ideas?
>
> Thank you in advance.
> Murad Kakabayev
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to