Implement std::io
traits for IStream
/ISequentialStream
#2923
Labels
enhancement
New feature or request
std::io
traits for IStream
/ISequentialStream
#2923
Suggestion
The
Read
/Write
/Seek
traits instd::io
form a battle-tested[citation needed] abstraction over (de-)serializing implementations, that roughly map to these COM interfaces:IStream
:Read
/Write
/Seek
ISequentialStream
:Read
/Write
It would be convenient to have those implemented (I can supply a draft PR for discussion if desired).
Ignoring the maintenance burden, the only issue I see is how to deal with the impedance mismatch between the representation of sizes/offsets:
std::io
chooses[i|u]size
(i.e., pointer precision), whereas the COM interfaces are based on[U]LARGE_INTEGER
(64-bit quantities).This could be addressed
Result<>
orpanic!()
)The text was updated successfully, but these errors were encountered: