UpgradeOutputStream.h
Go to the documentation of this file.
UpgradeOutputStream(Partition partition, size_t maxLength=0)
Construct a stream for the given partition.
Definition: UpgradeOutputStream.h:50
storage_size_t address() const
Obtain partition starting address.
Definition: Partition.h:335
size_t write(const uint8_t *data, size_t size) override
Write chars to stream.
virtual bool init()
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
Definition: UpgradeOutputStream.h:67
Definition: HttpUpgrader.h:21
int available() override
Return the total length of the stream.
Definition: UpgradeOutputStream.h:77
bool seek(int len) override
Move read cursor.
Definition: UpgradeOutputStream.h:72
size_t getMaxLength() const
Definition: UpgradeOutputStream.h:94
virtual bool close()
StreamType getStreamType() const override
Get the stream type.
Definition: UpgradeOutputStream.h:62
size_t getStartAddress() const
Definition: UpgradeOutputStream.h:89
bool isFinished() override
Check if all data has been read.
Definition: UpgradeOutputStream.h:82
virtual ~UpgradeOutputStream()
Definition: UpgradeOutputStream.h:55
@ eSST_File
< Memory stream where data can be safely written to.
Definition: DataSourceStream.h:30