1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:17:34 +00:00

AK: Move memory streams into their own header.

This commit is contained in:
asynts 2020-09-01 11:43:32 +02:00 committed by Andreas Kling
parent f9516a99bf
commit b68a873067
12 changed files with 314 additions and 298 deletions

View file

@ -27,7 +27,7 @@
#include "AbbreviationsMap.h"
#include "DwarfInfo.h"
#include <AK/Stream.h>
#include <AK/MemoryStream.h>
namespace Debug::Dwarf {

View file

@ -28,7 +28,7 @@
#include "CompilationUnit.h"
#include "DwarfInfo.h"
#include <AK/ByteBuffer.h>
#include <AK/Stream.h>
#include <AK/MemoryStream.h>
namespace Debug::Dwarf {

View file

@ -26,7 +26,7 @@
#include "DwarfInfo.h"
#include <AK/Stream.h>
#include <AK/MemoryStream.h>
namespace Debug::Dwarf {
@ -53,7 +53,7 @@ void DwarfInfo::populate_compilation_units()
if (m_debug_info_data.is_null())
return;
InputMemoryStream stream{ m_debug_info_data };
InputMemoryStream stream { m_debug_info_data };
while (!stream.eof()) {
auto unit_offset = stream.offset();
CompilationUnitHeader compilation_unit_header {};

View file

@ -25,7 +25,7 @@
*/
#include "Expression.h"
#include <AK/Stream.h>
#include <AK/MemoryStream.h>
#include <sys/arch/i386/regs.h>

View file

@ -26,7 +26,7 @@
#pragma once
#include <AK/Stream.h>
#include <AK/MemoryStream.h>
#include <AK/String.h>
#include <AK/Vector.h>
@ -57,7 +57,8 @@ private:
void handle_standard_opcode(u8 opcode);
void handle_sepcial_opcode(u8 opcode);
struct [[gnu::packed]] UnitHeader32 {
struct [[gnu::packed]] UnitHeader32
{
u32 length;
u16 version;
u32 header_length;