Browse Source

Support for files larger than 4GB

main
PaulStoffregen 4 years ago
parent
commit
aa7f27f6d5
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/SD.h

+ 3
- 3
src/SD.h View File

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 seek(uint32_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);
if (mode == SeekEnd) return sdfatfile.seekEnd(pos); if (mode == SeekEnd) return sdfatfile.seekEnd(pos);
return false; return false;
} }
virtual uint32_t position() {
virtual uint64_t position() {
return sdfatfile.curPosition(); return sdfatfile.curPosition();
} }
virtual uint32_t size() {
virtual uint64_t size() {
return sdfatfile.size(); return sdfatfile.size();
} }
virtual void close() { virtual void close() {

Loading…
Cancel
Save