Sfoglia il codice sorgente

Add File truncate(size)

teensy4-core
PaulStoffregen 4 anni fa
parent
commit
36bfbd1648
3 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. +3
    -0
      teensy/FS.h
  2. +3
    -0
      teensy3/FS.h
  3. +3
    -0
      teensy4/FS.h

+ 3
- 0
teensy/FS.h Vedi File

@@ -101,6 +101,9 @@ public:
virtual void flush() {
if (f) f->flush();
}
virtual bool truncate(uint64_t size=0) {
return (f) ? f->truncate(size) : false;
}
virtual bool seek(uint64_t pos, int mode) {
return (f) ? f->seek(pos, mode) : false;
}

+ 3
- 0
teensy3/FS.h Vedi File

@@ -101,6 +101,9 @@ public:
virtual void flush() {
if (f) f->flush();
}
virtual bool truncate(uint64_t size=0) {
return (f) ? f->truncate(size) : false;
}
virtual bool seek(uint64_t pos, int mode) {
return (f) ? f->seek(pos, mode) : false;
}

+ 3
- 0
teensy4/FS.h Vedi File

@@ -101,6 +101,9 @@ public:
virtual void flush() {
if (f) f->flush();
}
virtual bool truncate(uint64_t size=0) {
return (f) ? f->truncate(size) : false;
}
virtual bool seek(uint64_t pos, int mode) {
return (f) ? f->seek(pos, mode) : false;
}

Loading…
Annulla
Salva