PartitionStream.h
Go to the documentation of this file.
45 SMING_DEPRECATED PartitionStream(Partition partition, storage_size_t offset, size_t size, bool blockErase)
74 PartitionStream(Partition partition, storage_size_t offset, size_t size, Mode mode = Mode::ReadOnly)
Stream operating directory on a Storage partition.
Definition: PartitionStream.h:32
PartitionStream(Partition partition, Mode mode=Mode::ReadOnly)
Access entire partition using stream.
Definition: PartitionStream.h:86
int seekFrom(int offset, SeekOrigin origin) override
Change position in stream.
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
size_t write(const uint8_t *buffer, size_t size) override
Write chars to stream.
PartitionStream(Partition partition, bool blockErase)
Access entire partition using stream.
Definition: PartitionStream.h:59
bool isFinished() override
Check if all data has been read.
Definition: PartitionStream.h:102
PartitionStream(Partition partition, storage_size_t offset, size_t size, bool blockErase)
Access part of a partition using a stream.
Definition: PartitionStream.h:45
PartitionStream(Partition partition, storage_size_t offset, size_t size, Mode mode=Mode::ReadOnly)
Access part of a partition using a stream.
Definition: PartitionStream.h:74
int available() override
Return the total length of the stream.
Definition: PartitionStream.h:91
Definition: FileDevice.h:26
@ ReadOnly