Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 VirtualAlloc()'da 10MB 内存块,并使用IWICStream::InitializeFromMemory().
IWICStream::InitializeFromMemory()
我将 PNG 编码到 IWICStream 中,但我不知道 PNG 数据占用了多少内存。
如何确定 IWICStream 缓冲区的有效/使用大小?
IWICStream 继承 IStream。标准技巧是使用IStream::Seek(),在您写入图像后指定 STREAM_SEEK_CUR 。*plibNewPosition 参数为您提供长度。