Add support for reading large files #48
robin-nitrokey
started this conversation in
Ideas
Replies: 1 comment
-
|
@robin-nitrokey Passing an offset as argument could work when reading files. But for writing files Trussed should have an API that allows to open the file (returning handle/file descriptor), write data, flush/commit dat and close the handle. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, Trussed can only handle files up to
MAX_MESSAGE_LENGTH= 1024 bytes long as thewrite_fileandread_filemethods of theFilesystemClientrequire and return the full content of the file. This may not be enough in some use cases, e. g. some data objects in the OpenPGP card application. Adding an API using offsets or a cursor could solve this problem and allow files with arbitrary length.Beta Was this translation helpful? Give feedback.
All reactions