|
fasmcpp
0.1
|
Manages resources for Flat Assembler. More...
#include <fasmcpp.h>
Public Member Functions | |
| Assembler () | |
| Constructs an empty and invalid instance. More... | |
| Assembler (size_t memory, size_t predefinitionsMemory=10_KB) | |
| Assembler (const Assembler &)=delete | |
| Assembler (Assembler &&) | |
| Assembler & | operator= (const Assembler &)=delete |
| Assembler & | operator= (Assembler &&) |
| void * | getMemory () const |
| Returns a pointer to the memory allocated for Flat Assembler. | |
| uint32_t | getMemorySize () const |
| Returns the amount of memory in bytes allocated for Flat Assembler. | |
| char * | getPredefinitionsMemory () const |
| Returns a pointer to the memory allocated for predefinitions. More... | |
| uint32_t | getPredefinitionsMemorySize () const |
| Returns the amount of memory in bytes allocated for predefinitions. More... | |
Manages resources for Flat Assembler.
| fasmcpp::Assembler::Assembler | ( | ) |
Constructs an empty and invalid instance.
You should properly initialize an instance before using it.
| fasmcpp::Assembler::Assembler | ( | size_t | memory, |
| size_t | predefinitionsMemory = 10_KB |
||
| ) |
| [in] | memory | Amount of memory to allocate for the assembler |
| [in] | predefinitionsMemory | Amount of memory to allocate for storing predefinitions |
predefinitionsMemory is only used for 64-bit platforms and is ignored otherwise. | std::runtime_error | if failed to allocate memory or if the binary was not found. |
| std::length_error | if the requested amount of memory cannot fit in 32-bit addressable memory. |
| char* fasmcpp::Assembler::getPredefinitionsMemory | ( | ) | const |
Returns a pointer to the memory allocated for predefinitions.
Only for 64-bit platforms.
| uint32_t fasmcpp::Assembler::getPredefinitionsMemorySize | ( | ) | const |
Returns the amount of memory in bytes allocated for predefinitions.
Only for 64-bit platforms
1.8.13