Crates.io | tempfile-istream |
lib.rs | tempfile-istream |
version | 1.0.4 |
source | src |
created_at | 2022-02-07 23:48:29.17998 |
updated_at | 2022-05-20 05:20:36.621299 |
description | COM IStream on an exclusive temp file which is deleted on release |
homepage | |
repository | https://github.com/wravery/tempfile-istream |
max_upload_size | |
id | 528729 |
size | 12,435 |
This is a read/write implementation of the windows crate's
Windows::Win32::System::Com::IStream
interface backed by a temp file on disk. The temp file is created with
SHCreateStreamOnFileEx, using
FILE_ATTRIBUTE_TEMPORARY and FILE_FLAG_DELETE_ON_CLOSE
so it will be deleted by the OS as soon as the last reference to the IStream
is dropped.
It is intended as an alternative to SHCreateMemStream or CreateStreamOnHGlobal, both of which will hold the entire stream in memory.