xtd 0.2.0
Loading...
Searching...
No Matches
memory.hpp
Go to the documentation of this file.
1
4#pragma once
6#if !defined(__XTD_CORE_NATIVE_LIBRARY__)
7#error "Do not include this file: Internal use only"
8#endif
10
13#include "platform_ids.hpp"
14#include <xtd/core_native_export>
15#include <cstdint>
16#include <map>
17#include <string>
18#include <vector>
19
21namespace xtd {
23 class memory_information;
25
28 namespace native {
36 class core_native_export_ memory final {
37 memory() = delete;
39 protected:
41
50 static size_t get_total_process_memory();
54 static size_t get_total_virtual_memory();
55
59 static size_t get_used_physical_memory();
63 static size_t get_used_process_memory();
67 static size_t get_used_virtual_memory();
69 };
70 }
71}
Represents information about the memory. This class is static.
Definition memory_information.hpp:20
Contains memory native API.
Definition memory.hpp:36
static size_t get_used_physical_memory()
Gets the used physical memory in bytes.
static size_t get_used_process_memory()
Gets the used process memory in bytes.
static size_t get_used_virtual_memory()
Gets the used virtual memory in bytes.
static size_t get_total_physical_memory()
Gets the total physical memory in bytes.
static size_t get_total_process_memory()
Gets the total process memory in bytes.
static size_t get_total_virtual_memory()
Gets the total virtual memory in bytes.
Contains constant special item ID list.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains platform id constants.
Contains xtd::environment_variable_target enum class.