pwn++  0.1.4
A (toy) Windows & Linux pwn library to play with modern C++.
Architecture Struct Reference

Architecture class definition, with its wstring representation. More...

#include <Architecture.hpp>

Public Member Functions

auto operator<=> (Architecture const &other) const =default
 

Static Public Member Functions

static Architecture const & Find (std::string_view const &architecture_name)
 Find an architecture by name. The function will throw std::range_error More...
 

Public Attributes

std::string_view name {}
 
ArchitectureType id {}
 
usize ptrsize {}
 
Endianess endian {}
 
std::array< std::string_view, 4 > aliases {}
 

Friends

std::ostream & operator<< (std::ostream &os, Architecture const &a)
 Output Architecture to std::wostream. More...
 
std::wostream & operator<< (std::wostream &wos, Architecture const &a)
 Output Architecture to std::wostream. More...
 

Detailed Description

Architecture class definition, with its wstring representation.

Member Function Documentation

◆ Find()

static Architecture const& Architecture::Find ( std::string_view const &  architecture_name)
static

Find an architecture by name. The function will throw std::range_error

Parameters
architecture_name
Returns
Architecture
Exceptions
range_errorif not found

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream& operator<< ( std::ostream &  os,
Architecture const &  a 
)
friend

Output Architecture to std::wostream.

Parameters
wos
e
Returns
std::wostream&

◆ operator<< [2/2]

std::wostream& operator<< ( std::wostream &  wos,
Architecture const &  a 
)
friend

Output Architecture to std::wostream.

Parameters
wos
e
Returns
std::wostream&

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