Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
example_host_methods Struct Reference
Collaboration diagram for example_host_methods:

Public Member Functions

void print_num (uint64_t n)
 
void print_name (const char *nm)
 
void * memset (char *ptr, int x, size_t n)
 
void sysio_assert (bool test, const char *msg)
 
void print_span (span< const char > s)
 

Public Attributes

std::string field = ""
 

Detailed Description

Definition at line 14 of file hello_driver.cpp.

Member Function Documentation

◆ memset()

void * example_host_methods::memset ( char * ptr,
int x,
size_t n )
inline

Definition at line 19 of file hello_driver.cpp.

19{ return ::memset(ptr, x, n); }

◆ print_name()

void example_host_methods::print_name ( const char * nm)
inline

Definition at line 17 of file hello_driver.cpp.

17{ std::cout << "Name : " << nm << " " << field << "\n"; }

◆ print_num()

void example_host_methods::print_num ( uint64_t n)
inline

Definition at line 15 of file hello_driver.cpp.

15{ std::cout << "Number : " << n << "\n"; }

◆ print_span()

void example_host_methods::print_span ( span< const char > s)
inline

Definition at line 29 of file hello_driver.cpp.

29 {
30 std::cout << "Span : " << std::string{s.data(), s.size()} << "\n";
31 }
char * s

◆ sysio_assert()

void example_host_methods::sysio_assert ( bool test,
const char * msg )
inline

Definition at line 22 of file hello_driver.cpp.

22 {
23 if (!test) {
24 std::cout << msg << std::endl;
25 throw 0;
26 }
27 }

Member Data Documentation

◆ field

std::string example_host_methods::field = ""

Definition at line 20 of file hello_driver.cpp.


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