-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
file_descriptor.read_bytes
do not alloc.
- `read_bytes` takes in Span[Byte] buffer as opposed to allocating to avoid n+1 alloc. issues etc. - Remove c_str_ptr type from ffi module since it is not a convention set by C lang., it will potentially get added back in at a later date after discussions and under its own PR - Doc string updates to libC funcs. Co-authored-by: Connor Gray <accounts@connorgray.com> Signed-off-by: Hristo (Izo) G. <53634432+izo0x90@users.noreply.github.com>
- Loading branch information
1 parent
62ab625
commit bba987f
Showing
3 changed files
with
31 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters