mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-04 10:10:59 +00:00
61a7671de1
This patch improves the Readonly_file::read method such that the capacity of the specified buffer is used as upper bound for the read operation instead of VFS-internal I/O buffer sizes. This relieves the caller from implementing a read loop in most cases. As a step away from C-ish use of the API, the patch deprecates the old 'read' method that takes the buffer as char *, size_t arguments. Fixes #4745