ddablib / vibin

Library code for reading and writing Windows binary version information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a `Bytes` property to `TVIBinResource` to access version info data

delphidabbler opened this issue · comments

Having read access to version info data without going via a stream would be very useful.

The property (or method) should copy all version info data to a TBytes array.

A matching ability to load version info data via a byte array would also be useful.

Issue b/f from delphidabbler/vilib#9

Could this be implemented using Delphi's TBytesStream? This could be adapted to IStream using TStreamAdapter.

That way the existing stream loading code could be used.

⚠️ I seem to recall some problems with TBytesStream setting it's size to a multiple of its buffer size rather than the actual number of bytes in the byte array. I may be wrong, but be careful!