Kaynağa Gözat

File support for files larger than 4GB

main
PaulStoffregen 4 yıl önce
ebeveyn
işleme
1064e48373
3 değiştirilmiş dosya ile 12 ekleme ve 12 silme
  1. +4
    -4
      teensy/FS.h
  2. +4
    -4
      teensy3/FS.h
  3. +4
    -4
      teensy4/FS.h

+ 4
- 4
teensy/FS.h Dosyayı Görüntüle

@@ -101,13 +101,13 @@ public:
virtual void flush() {
if (f) f->flush();
}
virtual bool seek(uint32_t pos, int mode) {
virtual bool seek(uint64_t pos, int mode) {
return (f) ? f->seek(pos, mode) : false;
}
virtual uint32_t position() {
virtual uint64_t position() {
return (f) ? f->position() : 0;
}
virtual uint32_t size() {
virtual uint64_t size() {
return (f) ? f->size() : 0;
}
virtual void close() {
@@ -128,7 +128,7 @@ public:
virtual void rewindDirectory(void) {
if (f) f->rewindDirectory();
}
bool seek(uint32_t pos) {
bool seek(uint64_t pos) {
return seek(pos, SeekSet);
}
int read() {

+ 4
- 4
teensy3/FS.h Dosyayı Görüntüle

@@ -101,13 +101,13 @@ public:
virtual void flush() {
if (f) f->flush();
}
virtual bool seek(uint32_t pos, int mode) {
virtual bool seek(uint64_t pos, int mode) {
return (f) ? f->seek(pos, mode) : false;
}
virtual uint32_t position() {
virtual uint64_t position() {
return (f) ? f->position() : 0;
}
virtual uint32_t size() {
virtual uint64_t size() {
return (f) ? f->size() : 0;
}
virtual void close() {
@@ -128,7 +128,7 @@ public:
virtual void rewindDirectory(void) {
if (f) f->rewindDirectory();
}
bool seek(uint32_t pos) {
bool seek(uint64_t pos) {
return seek(pos, SeekSet);
}
int read() {

+ 4
- 4
teensy4/FS.h Dosyayı Görüntüle

@@ -101,13 +101,13 @@ public:
virtual void flush() {
if (f) f->flush();
}
virtual bool seek(uint32_t pos, int mode) {
virtual bool seek(uint64_t pos, int mode) {
return (f) ? f->seek(pos, mode) : false;
}
virtual uint32_t position() {
virtual uint64_t position() {
return (f) ? f->position() : 0;
}
virtual uint32_t size() {
virtual uint64_t size() {
return (f) ? f->size() : 0;
}
virtual void close() {
@@ -128,7 +128,7 @@ public:
virtual void rewindDirectory(void) {
if (f) f->rewindDirectory();
}
bool seek(uint32_t pos) {
bool seek(uint64_t pos) {
return seek(pos, SeekSet);
}
int read() {

Yükleniyor…
İptal
Kaydet