瀏覽代碼

Support for files larger than 4GB

main
PaulStoffregen 4 年之前
父節點
當前提交
aa7f27f6d5
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      src/SD.h

+ 3
- 3
src/SD.h 查看文件

@@ -79,16 +79,16 @@ public:
virtual size_t read(void *buf, size_t 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 == SeekCur) return sdfatfile.seekCur(pos);
if (mode == SeekEnd) return sdfatfile.seekEnd(pos);
return false;
}
virtual uint32_t position() {
virtual uint64_t position() {
return sdfatfile.curPosition();
}
virtual uint32_t size() {
virtual uint64_t size() {
return sdfatfile.size();
}
virtual void close() {

Loading…
取消
儲存