“Chunked” MemoryStream

前端 未结 9 876
轮回少年
轮回少年 2020-12-10 12:50

I\'m looking for the implementation of MemoryStream which does not allocate memory as one big block, but rather a collection of chunks. I want to store a few GB of data in m

9条回答
  •  执念已碎
    2020-12-10 13:28

    Another implementation of chunked stream could be considered as a stock MemoryStream replacement. Additionally it allows to allocate a single large byte array on LOH which will be used as a "chunk" pool, shared between all ChunkedStream instances...

    https://github.com/ImmortalGAD/ChunkedStream

提交回复
热议问题