Method FromStream
FromStream(string, Stream, int)
Creates a DeviceFirmware object extracted from the specified ASCII stream in Intel HEX format, the specified metadata string and page size.
public static DeviceFirmware FromStream(string metadata, Stream stream, int pageSize)
Parameters
metadatastringThe firmware metadata encoded in a text string representation.
streamStreamThe ASCII stream in Intel HEX format from which to extract the device firmware.
pageSizeintThe size of the memory blocks used to upload the device firmware.
Returns
- DeviceFirmware
A new DeviceFirmware object representing the extracted binary firware blob, together with the metadata extracted from the firmware file name.