|
|
|
|
|
|
|
|
virtual size_t read(void *buf, size_t nbyte) { |
|
|
virtual size_t read(void *buf, size_t nbyte) { |
|
|
return sdfatfile.read(buf, nbyte); |
|
|
return sdfatfile.read(buf, nbyte); |
|
|
} |
|
|
} |
|
|
|
|
|
virtual bool truncate(uint64_t size=0) { |
|
|
|
|
|
return sdfatfile.truncate(size); |
|
|
|
|
|
} |
|
|
virtual bool seek(uint64_t pos, int mode = SeekSet) { |
|
|
virtual bool seek(uint64_t pos, int mode = SeekSet) { |
|
|
if (mode == SeekSet) return sdfatfile.seekSet(pos); |
|
|
if (mode == SeekSet) return sdfatfile.seekSet(pos); |
|
|
if (mode == SeekCur) return sdfatfile.seekCur(pos); |
|
|
if (mode == SeekCur) return sdfatfile.seekCur(pos); |