Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ext_storage_read #366

Closed
kogeler opened this issue Jun 30, 2020 · 0 comments · Fixed by #448
Closed

ext_storage_read #366

kogeler opened this issue Jun 30, 2020 · 0 comments · Fixed by #448
Assignees
Labels
Milestone

Comments

@kogeler
Copy link
Contributor

kogeler commented Jun 30, 2020

Gets the given key from storage, placing the value into a buffer and returning the number of bytes that the

entry in storage has beyond the offset.

E.1.3.1 Version 1 - Prototype

(func $ext_storage_read_version_1 (param $key i64) (param $value_out i64) (param $offset i32) (result i64))

Arguments :

  • key: a pointer-size as defined in Definition E.2 containing the key.
  • value_out: a pointer-size as defined in Definition E.2 containing the buffer to which the value will be written to. This function will never write more then the length of the buffer, even if the value's length is bigger.
  • offset: an i32 integer containing the offset beyond the value should be read from.
  • result: a pointer-size as defined in Definition E.2 indicating the SCALE encoded Option as defined in Definition B.4 containing the number of bytes written into the value_out buffer. Returns None if the entry does not exists.

Aha! Link: https://soramitsucoltd.aha.io/requirements/PRE-43-3

@kogeler kogeler mentioned this issue Jul 1, 2020
18 tasks
@kamilsa kamilsa added this to the Sprint 1 milestone Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants