1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

AK: Introduce a fallible version of StringBuilder::to_byte_buffer

Name it StringBuilder::try_to_byte_buffer accordingly :^)
This commit is contained in:
Karol Baraniecki 2023-03-06 20:06:54 +01:00 committed by Linus Groh
parent 8b8e91d4da
commit b4b283670d
2 changed files with 6 additions and 0 deletions

View file

@ -69,6 +69,7 @@ public:
ErrorOr<FlyString> to_fly_string() const;
[[nodiscard]] ByteBuffer to_byte_buffer() const;
[[nodiscard]] ErrorOr<ByteBuffer> try_to_byte_buffer() const;
[[nodiscard]] StringView string_view() const;
void clear();