pea
developer
Hi all,
I am currently writing a stream library (memory stream, not file stream) capable of holding arbitrary-length data. It works with chunks of a set size. Once a chunk is filled, a new one is allocated from the memory. It is used for loading data of unknown length, and data that needs its length altered all the time ,such as text files (notepad style).
Just some questions -
1) Surely this has been done already? Anyone know of any good stream lib for c?
2) What is a good size for the 'chunks' of memory? 1k?
I am currently writing a stream library (memory stream, not file stream) capable of holding arbitrary-length data. It works with chunks of a set size. Once a chunk is filled, a new one is allocated from the memory. It is used for loading data of unknown length, and data that needs its length altered all the time ,such as text files (notepad style).
Just some questions -
1) Surely this has been done already? Anyone know of any good stream lib for c?
2) What is a good size for the 'chunks' of memory? 1k?