April 2020
Intermediate to advanced
412 pages
9h 58m
English
We will create an application that handles a data buffer of a variable size. We need an ability to access any address of memory provided by a target platform if needed. Follow these steps to do so:
#include <iostream> void StoreData(const char* buffer, size_t size) { std::cout << "Store " << size << " bytes of data" << std::endl;}int main() { char data[] = "Hello,\x1b\a\x03world!"; const char *buffer = data; std::cout << "Size of buffer pointer is " << sizeof(buffer) << std::endl; std::cout << "Size ...Read now
Unlock full access