Comment by Kalanos
2 years ago
That sounds nice for chunking, but what if you need contiguous memory? E.g. viewing an image or running an AI model
2 years ago
That sounds nice for chunking, but what if you need contiguous memory? E.g. viewing an image or running an AI model
You can always use a chunked API to read data into a contiguous buffer. Just allocate a large enough contiguous block of memory, then copy chunk by chunk into that contiguous memory until you've read everything.