mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:07:45 +00:00
AK: Deprecate the old AK::Stream
This also removes a few cases where the respective header wasn't actually required to be included.
This commit is contained in:
parent
230cb3b0cb
commit
ae64b68717
38 changed files with 116 additions and 120 deletions
|
@ -4,6 +4,7 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/DeprecatedStream.h>
|
||||
#include <AK/Try.h>
|
||||
#include <AK/Utf8View.h>
|
||||
#include <LibCrypto/ASN1/DER.h>
|
||||
|
@ -223,7 +224,7 @@ Optional<DecodeError> Decoder::leave()
|
|||
return {};
|
||||
}
|
||||
|
||||
void pretty_print(Decoder& decoder, OutputStream& stream, int indent)
|
||||
void pretty_print(Decoder& decoder, DeprecatedOutputStream& stream, int indent)
|
||||
{
|
||||
while (!decoder.eof()) {
|
||||
auto tag = decoder.peek();
|
||||
|
|
|
@ -226,7 +226,7 @@ private:
|
|||
Optional<Tag> m_current_tag;
|
||||
};
|
||||
|
||||
void pretty_print(Decoder&, OutputStream&, int indent = 0);
|
||||
void pretty_print(Decoder&, DeprecatedOutputStream&, int indent = 0);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <AK/ByteReader.h>
|
||||
#include <AK/Debug.h>
|
||||
#include <AK/MemoryStream.h>
|
||||
#include <AK/DeprecatedMemoryStream.h>
|
||||
#include <AK/Types.h>
|
||||
#include <LibCrypto/Authentication/GHash.h>
|
||||
|
||||
|
@ -47,7 +47,7 @@ GHash::TagType GHash::process(ReadonlyBytes aad, ReadonlyBytes cipher)
|
|||
if (i > buf.size()) {
|
||||
static u8 buffer[16];
|
||||
Bytes buffer_bytes { buffer, 16 };
|
||||
OutputMemoryStream stream { buffer_bytes };
|
||||
DeprecatedOutputMemoryStream stream { buffer_bytes };
|
||||
stream.write(buf.slice(i - 16));
|
||||
stream.fill_to_end(0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue