mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
AK: Remove the fallible constructor from FixedMemoryStream
This commit is contained in:
parent
8b2f23d016
commit
220fbcaa7e
31 changed files with 185 additions and 209 deletions
|
@ -14,10 +14,10 @@ namespace Debug::Dwarf::Expression {
|
|||
|
||||
ErrorOr<Value> evaluate(ReadonlyBytes bytes, [[maybe_unused]] PtraceRegisters const& regs)
|
||||
{
|
||||
auto stream = TRY(FixedMemoryStream::construct(bytes));
|
||||
FixedMemoryStream stream { bytes };
|
||||
|
||||
while (!stream->is_eof()) {
|
||||
auto opcode = TRY(stream->read_value<u8>());
|
||||
while (!stream.is_eof()) {
|
||||
auto opcode = TRY(stream.read_value<u8>());
|
||||
|
||||
switch (static_cast<Operations>(opcode)) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue