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.
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!