rogersce / cnpy

library to read/write .npy and .npz files in C/C++
MIT License
1.34k stars 301 forks source link

Feature request: support writing to memory streams #94

Open zbendefy opened 1 year ago

zbendefy commented 1 year ago

Hi!

Thanks for this lib! One of the use cases I have is that I have a memory byte stream that I need so save the raw file content into.

Would it be feasable to provide a way for saving NPY and NPZ into a memory stream? e.g.: the interface could expect a stream instead of a filename.