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
 
NativeByteArray< NumBytes > fill (Byte byte) const
 
- Public Member Functions inherited from asmgrader::AsmData< NativeByteArray< NumBytes > >
 AsmData (Program &prog, std::uintptr_t address)
 
virtual ~AsmData ()=default
 
std::uintptr_t operator& () const
 
std::uintptr_t get_address () const
 
Result< NativeByteArray< NumBytes > > get_value () const
 Get the value currently present in the asm program.
 
NativeByteArray< NumBytes > set_value (const U &val) const
 Set the value of type T in the asm program.
 
NativeByteArray< NumBytes > zero () const
 Zeros the object of type T residing in the asm program.
 

Additional Inherited Members

- Protected Member Functions inherited from asmgrader::AsmData< NativeByteArray< NumBytes > >
Result< NativeByteArray< 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>
NativeByteArray< NumBytes > asmgrader::AsmBuffer< NumBytes >::fill ( 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: