diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-02-24 22:38:01 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-13 15:16:20 +0000 |
commit | d5871f5717579fab3c093537c44e3cd467560cdd (patch) | |
tree | 9e7e118ae5b7642f0168c5302ee74e9e483ae91c /Meta/Lagom/Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp | |
parent | 1d5b45f7d938b15db9da9b12dc4d8b373abd6c7c (diff) | |
download | serenity-d5871f5717579fab3c093537c44e3cd467560cdd.zip |
AK: Rename Stream::{read,write} to Stream::{read_some,write_some}
Similar to POSIX read, the basic read and write functions of AK::Stream
do not have a lower limit of how much data they read or write (apart
from "none at all").
Rename the functions to "read some [data]" and "write some [data]" (with
"data" being omitted, since everything here is reading and writing data)
to make them sufficiently distinct from the functions that ensure to
use the entire buffer (which should be the go-to function for most
usages).
No functional changes, just a lot of new FIXMEs.
Diffstat (limited to 'Meta/Lagom/Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp b/Meta/Lagom/Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp index bf6228ce7a..0e6f1be97e 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp @@ -211,7 +211,8 @@ namespace PnpIDs { } )~~~"); - TRY(file.write(generator.as_string_view().bytes())); + // FIXME: This should write the entire span. + TRY(file.write_some(generator.as_string_view().bytes())); return {}; } @@ -265,7 +266,8 @@ IterationDecision for_each(Function<IterationDecision(PnpIDData const&)> callbac } )~~~"); - TRY(file.write(generator.as_string_view().bytes())); + // FIXME: This should write the entire span. + TRY(file.write_some(generator.as_string_view().bytes())); return {}; } |