AsmGrader 0.0.0
Loading...
Searching...
No Matches
asmgrader::AsmBuffer< NumBytes > Class Template Reference

#include <asm_buffer.hpp>

Inheritance diagram for asmgrader::AsmBuffer< NumBytes >:
[legend]

Public Member Functions

 AsmBuffer (Program &prog)
 
std::size_t size () const
 
std::string str () const
 
ByteArray< NumBytes > fill (std::byte byte) const
 
- Public Member Functions inherited from asmgrader::AsmData< ByteArray< NumBytes > >
 AsmData (Program &prog, std::uintptr_t address)
 
virtual ~AsmData ()=default
 
std::uintptr_t get_address () const
 
virtual Result< ByteArray< NumBytes > > get_value () const
 Get the value currently present in the asm program.
 
ByteArray< NumBytes > set_value (const U &val) const
 Set the value of type T in the asm program.
 
ByteArray< NumBytes > zero () const
 Zeros the object of type T residing in the asm program.
 

Additional Inherited Members

- Protected Member Functions inherited from asmgrader::AsmData< ByteArray< NumBytes > >
Result< ByteArray< NumBytes > > get_value_impl () const
 
Programget_program () const
 

Constructor & Destructor Documentation

◆ AsmBuffer()

template<std::size_t NumBytes>
asmgrader::AsmBuffer< NumBytes >::AsmBuffer ( Program & prog)
explicit

Member Function Documentation

◆ fill()

template<std::size_t NumBytes>
ByteArray< NumBytes > asmgrader::AsmBuffer< NumBytes >::fill ( std::byte byte) const

◆ size()

template<std::size_t NumBytes>
std::size_t asmgrader::AsmBuffer< NumBytes >::size ( ) const

◆ str()

template<std::size_t NumBytes>
std::string asmgrader::AsmBuffer< NumBytes >::str ( ) const

The documentation for this class was generated from the following file: