Coder Social home page Coder Social logo

Comments (7)

armink avatar armink commented on July 26, 2024

没有太明白你的需求,可否详细举例说明一下

from flashdb.

wireless-guy avatar wireless-guy commented on July 26, 2024

比方说我在EasyFlash里面存了一个结构体数组a[100],每个数组元素a[]是一个结构体,我想从Flash读取a[50]的内容,我不需要把整个a[0]~a[100]读出来,可以通过偏移量的方式直接读取a[50]的内容.

from flashdb.

armink avatar armink commented on July 26, 2024

FlashDB 如何知道 a[50] 的偏移地址,并返回给用户呢?

from flashdb.

wireless-guy avatar wireless-guy commented on July 26, 2024

用户通过参数输入,比方说50*单个结构体长度,存放的变量也是用输入。

from flashdb.

armink avatar armink commented on July 26, 2024

有个比较粗暴的方法,可以试试

from flashdb.

wireless-guy avatar wireless-guy commented on July 26, 2024

这样的话需要外部提供一个很大的局部变量或者全局变量来暂存数据吧?

from flashdb.

armink avatar armink commented on July 26, 2024

不用的,_fdb_flash_read 本身就是可以直接基于 offset 来读取

from flashdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.