mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:07:36 +00:00
AK: Stream operators for String for generic streams.
I think this should really be a member function of InputStream instead, but I don't want to include String in Stream.h. This will do for now...
This commit is contained in:
parent
deb85c47b5
commit
e7df17d146
2 changed files with 20 additions and 18 deletions
|
@ -181,8 +181,6 @@ inline OutputStream& operator<<(OutputStream& stream, bool value)
|
|||
}
|
||||
|
||||
class InputMemoryStream final : public InputStream {
|
||||
friend InputMemoryStream& operator>>(InputMemoryStream& stream, String& string);
|
||||
|
||||
public:
|
||||
InputMemoryStream(ReadonlyBytes bytes)
|
||||
: m_bytes(bytes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue