diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-18 14:38:30 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-18 14:38:30 +0100 |
commit | 9ad076178a4bb13436e2edf90e62a26fb2cf32ea (patch) | |
tree | 478cedcbcc44e7e98348d67787216c25a318b3dc /AK/AKString.h | |
parent | 8e3d0a23d555b2464aba5a07a90092535cec19e1 (diff) | |
download | serenity-9ad076178a4bb13436e2edf90e62a26fb2cf32ea.zip |
GIODevice: Add a read_all() that returns a ByteBuffer with all we can read.
Use this to implement file opening in TextEditor.
Diffstat (limited to 'AK/AKString.h')
-rw-r--r-- | AK/AKString.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/AK/AKString.h b/AK/AKString.h index 31b2b4d383..a9ad132c57 100644 --- a/AK/AKString.h +++ b/AK/AKString.h @@ -100,6 +100,7 @@ public: } ByteBuffer to_byte_buffer() const; + static String from_byte_buffer(const ByteBuffer&); static String format(const char*, ...); |