mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
Everywhere: Use OOM-safe ByteBuffer APIs where possible
If we can easily communicate failure, let's avoid asserting and report failure instead.
This commit is contained in:
parent
6606993432
commit
3a9f00c59b
Notes:
sideshowbarker
2024-07-18 04:39:44 +09:00
Author: https://github.com/alimpfard
Commit: 3a9f00c59b
Pull-request: https://github.com/SerenityOS/serenity/pull/9832
Reviewed-by: https://github.com/IdanHo
22 changed files with 135 additions and 67 deletions
|
@ -29,11 +29,11 @@ private:
|
|||
[[nodiscard]] KResult write_regions();
|
||||
[[nodiscard]] KResult write_notes_segment(ByteBuffer&);
|
||||
|
||||
ByteBuffer create_notes_segment_data() const;
|
||||
ByteBuffer create_notes_process_data() const;
|
||||
ByteBuffer create_notes_threads_data() const;
|
||||
ByteBuffer create_notes_regions_data() const;
|
||||
ByteBuffer create_notes_metadata_data() const;
|
||||
KResultOr<ByteBuffer> create_notes_segment_data() const;
|
||||
KResultOr<ByteBuffer> create_notes_process_data() const;
|
||||
KResultOr<ByteBuffer> create_notes_threads_data() const;
|
||||
KResultOr<ByteBuffer> create_notes_regions_data() const;
|
||||
KResultOr<ByteBuffer> create_notes_metadata_data() const;
|
||||
|
||||
NonnullRefPtr<Process> m_process;
|
||||
NonnullRefPtr<FileDescription> m_fd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue