1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 19:15:07 +00:00

LibDebug: Use InputMemoryStream instead of BufferStream.

This removes another call to ByteBuffer::wrap(const void*, size_t).
This commit is contained in:
asynts 2020-08-05 10:55:36 +02:00 committed by Andreas Kling
parent 5bfa7749c3
commit ac9f6fd1f8
12 changed files with 125 additions and 106 deletions

View file

@ -26,12 +26,13 @@
#pragma once
#include <AK/BufferStream.h>
#include <AK/Stream.h>
#include <AK/String.h>
#include <AK/Vector.h>
class LineProgram {
public:
explicit LineProgram(BufferStream& stream);
explicit LineProgram(InputMemoryStream& stream);
struct LineInfo {
u32 address { 0 };
@ -97,7 +98,7 @@ private:
static constexpr u16 DWARF_VERSION = 3;
static constexpr u8 SPECIAL_OPCODES_BASE = 13;
BufferStream& m_stream;
InputMemoryStream& m_stream;
size_t m_unit_offset { 0 };
UnitHeader32 m_unit_header {};