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
metadata
stringThe firmware metadata encoded in a text string representation.
stream
StreamThe ASCII stream in Intel HEX format from which to extract the device firmware.
pageSize
intThe 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.