AsmGrader 0.0.0
Loading...
Searching...
No Matches
ptrace_memory_io.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <cstddef>
7
8namespace asmgrader {
9
11class PtraceMemoryIO final : public MemoryIOBase
12{
14
15private:
16 Result<ByteVector> read_block_impl(std::uintptr_t address, std::size_t length) override;
17 // ByteVector read_until_impl(std::uintptr_t address, const std::function<bool(std::byte)>& predicate) override;
18 Result<void> write_block_impl(std::uintptr_t address, const ByteVector& data) override;
19};
20
21} // namespace asmgrader
Definition byte_vector.hpp:32
std::variant wrapper for a partial implementation of C++23's expected type
Definition expected.hpp:34
Base class for interacting with a tracee's memory in a variety of ways at a (relatively) high-level F...
Definition memory_io_base.hpp:23
MemoryIOBase(pid_t pid)
Definition memory_io_base.hpp:25
TraceeMemory implemented using ptrace(2) commands.
Definition ptrace_memory_io.hpp:12
Definition asm_buffer.hpp:19