hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
8fbe026b68b788da837502a350bcc2ecfd1d3335
5,780
inl
C++
unit_tests/api/cl_enqueue_svm_memcpy_tests.inl
PTS93/compute-runtime
0655045c7962d551e29008547a802e398b646c6e
[ "MIT" ]
null
null
null
unit_tests/api/cl_enqueue_svm_memcpy_tests.inl
PTS93/compute-runtime
0655045c7962d551e29008547a802e398b646c6e
[ "MIT" ]
null
null
null
unit_tests/api/cl_enqueue_svm_memcpy_tests.inl
PTS93/compute-runtime
0655045c7962d551e29008547a802e398b646c6e
[ "MIT" ]
null
null
null
/* * Copyright (C) 2017-2018 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "cl_api_tests.h" #include "runtime/context/context.h" #include "runtime/command_queue/command_queue.h" #include "runtime/device/device.h" using namespace OCLRT; typedef api_tests clEnqueueSVMMemcpyTests; namespace ULT { TEST_F(clEnqueueSVMMemcpyTests, invalidCommandQueue) { auto retVal = clEnqueueSVMMemcpy( nullptr, // cl_command_queue command_queue CL_FALSE, // cl_bool blocking_copy nullptr, // void *dst_ptr nullptr, // const void *src_ptr 0, // size_t size 0, // cl_uint num_events_in_wait_list nullptr, // const cl_event *event_wait_list nullptr // cl_event *event ); EXPECT_EQ(CL_INVALID_COMMAND_QUEUE, retVal); } TEST_F(clEnqueueSVMMemcpyTests, invalidValueDstPtrIsNull) { const DeviceInfo &devInfo = pPlatform->getDevice(0)->getDeviceInfo(); if (devInfo.svmCapabilities != 0) { void *pSrcSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4); EXPECT_NE(nullptr, pSrcSvm); auto retVal = clEnqueueSVMMemcpy( pCommandQueue, // cl_command_queue command_queue CL_FALSE, // cl_bool blocking_copy nullptr, // void *dst_ptr pSrcSvm, // const void *src_ptr 256, // size_t size 0, // cl_uint num_events_in_wait_list nullptr, // const cl_event *event_wait_list nullptr // cl_event *event ); EXPECT_EQ(CL_INVALID_VALUE, retVal); clSVMFree(pContext, pSrcSvm); } } TEST_F(clEnqueueSVMMemcpyTests, invalidValueSrcPtrIsNull) { const DeviceInfo &devInfo = pPlatform->getDevice(0)->getDeviceInfo(); if (devInfo.svmCapabilities != 0) { void *pDstSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4); EXPECT_NE(nullptr, pDstSvm); auto retVal = clEnqueueSVMMemcpy( pCommandQueue, // cl_command_queue command_queue CL_FALSE, // cl_bool blocking_copy pDstSvm, // void *dst_ptr nullptr, // const void *src_ptr 256, // size_t size 0, // cl_uint num_events_in_wait_list nullptr, // const cl_event *event_wait_list nullptr // cl_event *event ); EXPECT_EQ(CL_INVALID_VALUE, retVal); clSVMFree(pContext, pDstSvm); } } TEST_F(clEnqueueSVMMemcpyTests, invalidEventWaitListEventWaitListIsNullAndNumEventsInWaitListIsGreaterThanZero) { auto retVal = clEnqueueSVMMemcpy( pCommandQueue, // cl_command_queue command_queue CL_FALSE, // cl_bool blocking_copy nullptr, // void *dst_ptr nullptr, // const void *src_ptr 0, // size_t size 1, // cl_uint num_events_in_wait_list nullptr, // const cl_event *event_wait_list nullptr // cl_event *event ); EXPECT_EQ(CL_INVALID_EVENT_WAIT_LIST, retVal); } TEST_F(clEnqueueSVMMemcpyTests, invalidEventWaitListEventWaitListIsNotNullAndNumEventsInWaitListIsZero) { UserEvent uEvent(pContext); cl_event eventWaitList[] = {&uEvent}; auto retVal = clEnqueueSVMMemcpy( pCommandQueue, // cl_command_queue command_queue CL_FALSE, // cl_bool blocking_copy nullptr, // void *dst_ptr nullptr, // const void *src_ptr 0, // size_t size 0, // cl_uint num_events_in_wait_list eventWaitList, // const cl_event *event_wait_list nullptr // cl_event *event ); EXPECT_EQ(CL_INVALID_EVENT_WAIT_LIST, retVal); } TEST_F(clEnqueueSVMMemcpyTests, successSizeIsNonZero) { const DeviceInfo &devInfo = pPlatform->getDevice(0)->getDeviceInfo(); if (devInfo.svmCapabilities != 0) { void *pDstSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4); EXPECT_NE(nullptr, pDstSvm); void *pSrcSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4); EXPECT_NE(nullptr, pSrcSvm); auto retVal = clEnqueueSVMMemcpy( pCommandQueue, // cl_command_queue command_queue CL_FALSE, // cl_bool blocking_copy pDstSvm, // void *dst_ptr pSrcSvm, // const void *src_ptr 256, // size_t size 0, // cl_uint num_events_in_wait_list nullptr, // const cl_event *event_wait_list nullptr // cl_event *event ); EXPECT_EQ(CL_SUCCESS, retVal); clSVMFree(pContext, pDstSvm); clSVMFree(pContext, pSrcSvm); } } TEST_F(clEnqueueSVMMemcpyTests, successSizeIsZero) { const DeviceInfo &devInfo = pPlatform->getDevice(0)->getDeviceInfo(); if (devInfo.svmCapabilities != 0) { void *pDstSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4); EXPECT_NE(nullptr, pDstSvm); void *pSrcSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4); EXPECT_NE(nullptr, pSrcSvm); auto retVal = clEnqueueSVMMemcpy( pCommandQueue, // cl_command_queue command_queue CL_FALSE, // cl_bool blocking_copy pDstSvm, // void *dst_ptr pSrcSvm, // const void *src_ptr 0, // size_t size 0, // cl_uint num_events_in_wait_list nullptr, // const cl_event *event_wait_list nullptr // cl_event *event ); EXPECT_EQ(CL_SUCCESS, retVal); clSVMFree(pContext, pDstSvm); clSVMFree(pContext, pSrcSvm); } } } // namespace ULT
36.815287
113
0.61436
PTS93
8fc1074187b35be6b0b071e7e036c637dbf7da4e
290
cpp
C++
C++_Essential_Training/Chap02/pointers.cpp
MarkWMavis/developer_practice
a10a11874454eb805e4cea8cbbdbc315c9791996
[ "MIT" ]
1
2020-07-20T15:28:50.000Z
2020-07-20T15:28:50.000Z
C++_Essential_Training/Chap02/pointers.cpp
MarkWMavis/developer_practice
a10a11874454eb805e4cea8cbbdbc315c9791996
[ "MIT" ]
1
2022-03-02T13:16:03.000Z
2022-03-02T13:16:03.000Z
C++/LinkedInLearning/Exercise Files/Chap02/pointers.cpp
Youngermaster/Learning-Programming-Languages
b94d3d85abc6c107877b11b42a3862d4aae8e3ee
[ "MIT" ]
null
null
null
// pointers.cpp by Bill Weinman [bw.org] // updated 2020-06-24 #include <cstdio> int main() { int x = 7; int y = 42; int * ip = &x; printf("The value of x is %d\n", x); printf("The value of y is %d\n", y); printf("The value of *ip is %d\n", *ip); return 0; }
17.058824
44
0.537931
MarkWMavis
8fc6c424fbdf3c50b7127849b1ada2012ae4ffe2
11,060
cpp
C++
sdl/window_sdl.cpp
franko/elementary-plotlib
d11b56a13893781d84a8e93183f01b13140dd4e3
[ "MIT" ]
14
2020-04-03T02:14:08.000Z
2021-07-16T21:05:56.000Z
sdl/window_sdl.cpp
franko/elementary-plotlib
d11b56a13893781d84a8e93183f01b13140dd4e3
[ "MIT" ]
2
2020-04-22T15:40:42.000Z
2020-04-28T21:17:23.000Z
sdl/window_sdl.cpp
franko/libcanvas
d11b56a13893781d84a8e93183f01b13140dd4e3
[ "MIT" ]
1
2020-04-30T07:49:02.000Z
2020-04-30T07:49:02.000Z
#ifdef WIN32 #include <windows.h> #endif #include <stdint.h> #include "sdl/window_sdl.h" #include "complete_notify.h" struct window_create_message { const char *caption; unsigned width; unsigned height; unsigned flags; window_sdl *this_window; window_close_callback *callback; }; bool window_sdl::g_sdl_initialized = false; Uint32 window_sdl::g_user_event_type = -1; std::mutex window_sdl::g_register_mutex; agg::pod_bvector<window_entry> window_sdl::g_window_entries; window_sdl::window_sdl(graphics::window_surface& window_surface): m_window(nullptr), m_pixel_format(agg::pix_format_undefined), m_window_surface(window_surface) { } static agg::pix_format_e find_pixel_format(SDL_Surface *surface) { switch (surface->format->format) { case SDL_PIXELFORMAT_ABGR8888: // equal to SDL_PIXELFORMAT_RGBA32 case SDL_PIXELFORMAT_BGR888: return agg::pix_format_rgba32; case SDL_PIXELFORMAT_ARGB8888: // equal to SDL_PIXELFORMAT_BGRA32 case SDL_PIXELFORMAT_RGB888: return agg::pix_format_bgra32; case SDL_PIXELFORMAT_BGR24: return agg::pix_format_bgr24; case SDL_PIXELFORMAT_RGB24: return agg::pix_format_rgb24; default: break; } return agg::pix_format_undefined; } void window_sdl::process_window_event(SDL_Event *event) { switch (event->window.event) { case SDL_WINDOWEVENT_SHOWN: { SDL_Surface *window_surface = SDL_GetWindowSurface(m_window); m_pixel_format = find_pixel_format(window_surface); m_window_surface.resize(window_surface->w, window_surface->h); m_window_surface.render(); set_status(graphics::window_running); break; } case SDL_WINDOWEVENT_RESIZED: { const int width = event->window.data1, height = event->window.data2; m_window_surface.resize(width, height); m_window_surface.render(); break; } case SDL_WINDOWEVENT_EXPOSED: m_window_surface.update_window_area(); break; case SDL_WINDOWEVENT_CLOSE: SDL_DestroyWindow(m_window); unregister_window(); set_status(graphics::window_closed); break; default: break; } } void window_sdl::process_update_event() { if (!m_update_notify.completed()) { m_window_surface.slot_refresh(m_update_notify.message()); m_update_notify.notify(); } } window_sdl *window_sdl::select_on_window_id(Uint32 window_id) { g_register_mutex.lock(); for (unsigned i = 0; i < g_window_entries.size(); i++) { window_entry& we = g_window_entries[i]; if (we.window && we.window_id == window_id) { g_register_mutex.unlock(); return we.window; } } g_register_mutex.unlock(); return nullptr; } int window_sdl::initialize_sdl() { #ifdef WIN32 HINSTANCE lib = LoadLibrary("user32.dll"); int (*SetProcessDPIAware)() = (int (*)()) GetProcAddress(lib, "SetProcessDPIAware"); SetProcessDPIAware(); #endif if (SDL_Init(SDL_INIT_VIDEO)) { return (-1); } g_user_event_type = SDL_RegisterEvents(1); if (g_user_event_type == ((Uint32)-1)) { return (-1); } g_sdl_initialized = true; return 0; } void window_sdl::event_loop(status_notifier<task_status> *initialization) { if (initialize_sdl()) { initialization->set(kTaskComplete); return; } initialization->set(kTaskComplete); SDL_Event event; bool quit = false; while (!quit) { int event_status = SDL_WaitEvent(&event); if (event_status == 0) { break; } switch (event.type) { case SDL_QUIT: quit = true; break; case SDL_WINDOWEVENT: { window_sdl *window = select_on_window_id(event.window.windowID); if (window) { window->process_window_event(&event); } break; } default: if (event.type == window_sdl::g_user_event_type) { if (event.user.code == kUpdateRegion) { window_sdl *window = select_on_window_id((intptr_t) event.user.data1); if (window) { window->process_update_event(); } } else if (event.user.code == kCreateWindow) { complete_notify<window_create_message> *create = (complete_notify<window_create_message> *) event.user.data1; const window_create_message& message = create->message(); Uint32 window_flags = SDL_WINDOW_ALLOW_HIGHDPI | (message.flags & graphics::window_resize ? SDL_WINDOW_RESIZABLE : 0); SDL_Window *window = SDL_CreateWindow(message.caption, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, message.width, message.height, window_flags); message.this_window->set_sdl_window(window); message.this_window->register_window(window, message.callback); create->notify(); } } } } } void window_sdl::register_window(SDL_Window *window, window_close_callback *close_callback) { g_register_mutex.lock(); g_window_entries.add(window_entry{this, SDL_GetWindowID(window), close_callback}); g_register_mutex.unlock(); } void window_sdl::compact_window_register() { const unsigned we_size = g_window_entries.size(); unsigned iw = 0; for (unsigned ir = 0; ir < we_size; ir++) { if (g_window_entries[ir].window) { if (iw < ir) { g_window_entries[iw] = g_window_entries[ir]; } iw++; } } g_window_entries.free_tail(iw); } void window_sdl::unregister_window() { int empty_windows_number = 0; g_register_mutex.lock(); for (unsigned i = 0; i < g_window_entries.size(); i++) { window_entry& we = g_window_entries[i]; if (we.window == this) { we.window = nullptr; we.window_id = -1; we.close_callback->execute(); delete we.close_callback; we.close_callback = nullptr; break; } if (!we.window) { empty_windows_number++; } } if (empty_windows_number >= 8) { compact_window_register(); } g_register_mutex.unlock(); } void window_sdl::start(unsigned width, unsigned height, unsigned flags, window_close_callback *callback) { if (!g_sdl_initialized) { status_notifier<task_status> initialization; std::thread events_thread(window_sdl::event_loop, &initialization); events_thread.detach(); initialization.wait_for_status(kTaskComplete); if (!g_sdl_initialized) { fprintf(stderr, "error: unable to open window, cannot initialize SDL2.\n"); fflush(stderr); return; } } set_status(graphics::window_starting); sdl_thread_create_window("Graphics Window", width, height, flags, callback); wait_for_status(graphics::window_running); } void window_sdl::update_region(const graphics::image& src_img, const agg::rect_i& r) { // We may consider using the function SDL_CreateRGBSurfaceWithFormatFrom to wrap // the pixel data from the image and use SDL_BlitSurface to blit the pixels. // Unfortunately the convention for the y sign is opposite and I know no way // to make it work with SDL blit function. rendering_buffer_ro src_view; rendering_buffer_get_const_view(src_view, src_img, r, graphics::image::pixel_size); SDL_Surface *window_surface = SDL_GetWindowSurface(m_window); Uint8 *pixels = (Uint8 *) window_surface->pixels; const int window_bpp = window_surface->format->BytesPerPixel; rendering_buffer dst(pixels, window_surface->w, window_surface->h, -window_surface->w * window_bpp); rendering_buffer dst_view; rendering_buffer_get_view(dst_view, dst, r, window_bpp); rendering_buffer_copy(dst_view, m_pixel_format, src_view, (agg::pix_format_e) graphics::pixel_format); SDL_Rect rect; rect.x = r.x1; rect.y = window_surface->h - r.y2; rect.w = r.x2 - r.x1; rect.h = r.y2 - r.y1; SDL_UpdateWindowSurfaceRects(m_window, &rect, 1); } /* When querying about the status of the window in the method below and in send_close_window_event we should use a mutex to ensure that the state of the window doesn't change between the query and the SDL_PushEvent. If this case the mutex should be appropriately locked/unlocked in the event loop. We do not use the mutex for staty simple and because SDL_PushEvent is thread safe and we consider pushing an event for a window not yet started or closed as a benign error. */ bool window_sdl::send_update_region_event() { SDL_Event event; SDL_zero(event); event.type = window_sdl::g_user_event_type; event.user.code = kUpdateRegion; event.user.data1 = (void *) (intptr_t) SDL_GetWindowID(m_window); if (status() == graphics::window_running) { return (SDL_PushEvent(&event) >= 0); } return false; } void window_sdl::sdl_thread_create_window(const char *caption, unsigned width, unsigned height, unsigned flags, window_close_callback *callback) { // This function post an event to the main SDL thread requesting // a window creation. We attach some data to the event // with the instance address (this), the "create" object to notify about // the window's creation and the "close callback". complete_notify<window_create_message> create; create.start(window_create_message{caption, width, height, flags, this, callback}); SDL_Event event; SDL_zero(event); event.type = window_sdl::g_user_event_type; event.user.code = kCreateWindow; event.user.data1 = (void *) &create; if (SDL_PushEvent(&event) >= 0) { create.wait(); } } bool window_sdl::send_close_window_event() { SDL_Event event; SDL_zero(event); event.type = SDL_WINDOWEVENT; event.window.event = SDL_WINDOWEVENT_CLOSE; event.window.windowID = SDL_GetWindowID(m_window); auto current_status = status(); if (current_status == graphics::window_running || current_status == graphics::window_starting) { return (SDL_PushEvent(&event) >= 0); } return false; } bool window_sdl::send_request(graphics::window_request request_type, int index) { switch (request_type) { case graphics::window_request::update: m_update_notify.start(index); if (send_update_region_event()) { // Wait for the notification but only if the message was actually sent. m_update_notify.wait(); return true; } break; case graphics::window_request::close: if (send_close_window_event()) { wait_for_status(graphics::window_closed); return true; } } return false; }
34.779874
170
0.655696
franko
8fc9a7f68da384be8527c4e3455d645acc9b29b3
82
cpp
C++
deps/src/cmake-3.9.3/Tests/QtAutogen/mocPlugin/StyleE.cpp
shreyasvj25/turicreate
32e84ca16aef8d04aff3d49ae9984bd49326bffd
[ "BSD-3-Clause" ]
2
2019-02-08T08:45:27.000Z
2020-09-07T05:55:18.000Z
deps/src/cmake-3.9.3/Tests/QtAutogen/mocPlugin/StyleE.cpp
shreyasvj25/turicreate
32e84ca16aef8d04aff3d49ae9984bd49326bffd
[ "BSD-3-Clause" ]
3
2021-09-08T02:18:00.000Z
2022-03-12T00:39:44.000Z
deps/src/cmake-3.13.4/Tests/QtAutogen/mocPlugin/StyleE.cpp
ZeroInfinite/turicreate
dd210c2563930881abd51fd69cb73007955b33fd
[ "BSD-3-Clause" ]
1
2019-06-01T18:49:28.000Z
2019-06-01T18:49:28.000Z
#include "StyleE.hpp" QStyle* StyleE::create(const QString& key) { return 0; }
11.714286
42
0.682927
shreyasvj25
8fc9e724a31df2a22f287ca6b0a7297dc0975dab
2,303
cpp
C++
SPOJ/FASHION - Fashion Shows.cpp
ravirathee/Competitive-Programming
20a0bfda9f04ed186e2f475644e44f14f934b533
[ "Unlicense" ]
6
2018-11-26T02:38:07.000Z
2021-07-28T00:16:41.000Z
SPOJ/FASHION - Fashion Shows.cpp
ravirathee/Competitive-Programming
20a0bfda9f04ed186e2f475644e44f14f934b533
[ "Unlicense" ]
1
2021-05-30T09:25:53.000Z
2021-06-05T08:33:56.000Z
SPOJ/FASHION - Fashion Shows.cpp
ravirathee/Competitive-Programming
20a0bfda9f04ed186e2f475644e44f14f934b533
[ "Unlicense" ]
4
2020-04-16T07:15:01.000Z
2020-12-04T06:26:07.000Z
/*FASHION - Fashion Shows #ad-hoc-1 A fashion show rates participants according to their level of hotness. Two different fashion shows were organized, one for men and the other for women. A date for the third is yet to be decided ;) . Now the results of both fashion shows are out. The participants of both the fashion shows have decided to date each other, but as usual they have difficuly in choosing their partners. The Maximum Match dating serive (MMDS) comes to their rescue and matches them in such a way that that maximizes the hotness bonds for all couples. If a man has been rated at hotness level x and a women at hotness level y, the value of their hotness bond is x*y. Both fashion shows contain N participants each. MMDS has done its job and your job is to find the sum of hotness bonds for all the couples that MMDS has proposed. Input The first line of the input contains an integer t, the number of test cases. t test cases follow. Each test case consists of 3 lines: The first line contains a single integer N (1 <= N <= 1000). The second line contains N integers separated by single spaces denoting the hotness levels of the men. The third line contains N integers separated by single spaces denoting the hotness levels of the women. All hotness ratings are on a scale of 0 to 10. Output For each test case output a single line containing a single integer denoting the sum of the hotness bonds for all pairs that MMDS has proposed. Example Input: 2 2 1 1 3 2 3 2 3 2 1 3 2 Output: 5 15 */ #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <vector> int main() { int t; std::cin >> t; while (t--) { int n; std::cin >> n; std::vector<int> men (n); std::vector<int> women (n); // input std::copy_n(std::istream_iterator<int>(std::cin), n, std::begin(men)); std::copy_n(std::istream_iterator<int>(std::cin), n, std::begin(women)); // sort std::sort(std::begin(men), std::end(men)); std::sort(std::begin(women), std::end(women)); // calculate std::cout << std::inner_product(std::begin(men), std::end(men), std::begin(women), 0) << std::endl; } return 0; }
30.706667
330
0.680417
ravirathee
8fcc6469197dd37ec3edc73ec51ffe09c419314f
484
cpp
C++
Algorithms/0259.3Sum_Smaller.cpp
metehkaya/LeetCode
52f4a1497758c6f996d515ced151e8783ae4d4d2
[ "MIT" ]
2
2020-07-20T06:40:22.000Z
2021-11-20T01:23:26.000Z
Problems/LeetCode/Problems/0259.3Sum_Smaller.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
Problems/LeetCode/Problems/0259.3Sum_Smaller.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
class Solution { public: int threeSumSmaller(vector<int>& ar, int target) { int n = ar.size() , ans = 0; sort(ar.begin(),ar.end()); for( int i = 0 ; i < n ; i++ ) { int k = n-1; for( int j = i+1 ; j < n ; j++ ) { while(k > j && ar[i]+ar[j]+ar[k] >= target) k--; if(k <= j) break; ans += k-j; } } return ans; } };
26.888889
59
0.334711
metehkaya
8fcea9f16a2ffc3d8b5979e99318ca31293cd384
1,049
cpp
C++
SDK/ARKSurvivalEvolved_DinoEntry_Allosaurus_functions.cpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
10
2020-02-17T19:08:46.000Z
2021-07-31T11:07:19.000Z
SDK/ARKSurvivalEvolved_DinoEntry_Allosaurus_functions.cpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
9
2020-02-17T18:15:41.000Z
2021-06-06T19:17:34.000Z
SDK/ARKSurvivalEvolved_DinoEntry_Allosaurus_functions.cpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
3
2020-07-22T17:42:07.000Z
2021-06-19T17:16:13.000Z
// ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_DinoEntry_Allosaurus_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- // Function DinoEntry_Allosaurus.DinoEntry_Allosaurus_C.ExecuteUbergraph_DinoEntry_Allosaurus // () // Parameters: // int EntryPoint (Parm, ZeroConstructor, IsPlainOldData) void UDinoEntry_Allosaurus_C::ExecuteUbergraph_DinoEntry_Allosaurus(int EntryPoint) { static auto fn = UObject::FindObject<UFunction>("Function DinoEntry_Allosaurus.DinoEntry_Allosaurus_C.ExecuteUbergraph_DinoEntry_Allosaurus"); UDinoEntry_Allosaurus_C_ExecuteUbergraph_DinoEntry_Allosaurus_Params params; params.EntryPoint = EntryPoint; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } } #ifdef _MSC_VER #pragma pack(pop) #endif
26.225
143
0.655863
2bite
8fd269d39cade5864bc69bbb61750d8df7d2c949
4,572
hpp
C++
test/performance/alignment/edit_distance_benchmark_template.hpp
qPCR4vir/seqan3
67ebf427dc1d49fb55e684acc108ed75d224f5d4
[ "CC-BY-4.0", "CC0-1.0" ]
null
null
null
test/performance/alignment/edit_distance_benchmark_template.hpp
qPCR4vir/seqan3
67ebf427dc1d49fb55e684acc108ed75d224f5d4
[ "CC-BY-4.0", "CC0-1.0" ]
null
null
null
test/performance/alignment/edit_distance_benchmark_template.hpp
qPCR4vir/seqan3
67ebf427dc1d49fb55e684acc108ed75d224f5d4
[ "CC-BY-4.0", "CC0-1.0" ]
null
null
null
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License // shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md // ----------------------------------------------------------------------------------------------------- #pragma once #include <benchmark/benchmark.h> #include <seqan3/test/alignment/align_pairwise_edit_distance.hpp> #include <seqan3/test/performance/sequence_generator.hpp> #include <seqan3/test/performance/units.hpp> #include <seqan3/test/seqan2.hpp> // ---------------------------------------------------------------------------- // seqan3 edit distance pairwise alignment benchmarks // ---------------------------------------------------------------------------- // This directly benchmarks the alignment algorithm without going through the whole align_pairwise function template <typename sequence_pair_generator_t, typename align_configs_t> void seqan3_align_pairwise_edit_distance_benchmark(benchmark::State & state, sequence_pair_generator_t sequence_pair_generator, align_configs_t && edit_distance_cfg) { using seqan3::test::edit_distance_algorithm; auto sequence_pair_or_pairs = sequence_pair_generator(state); constexpr bool collection_benchmark = sequence_pair_generator.is_collection; using sequence_t = typename sequence_pair_generator_t::sequence_t; int64_t total = 0; auto algorithm = edit_distance_algorithm::select<sequence_t, sequence_t>(edit_distance_cfg); if constexpr (collection_benchmark) { for (auto _ : state) for (auto && [sequence1, sequence2] : sequence_pair_or_pairs) total += algorithm(sequence1, sequence2, edit_distance_cfg).score(); } else { for (auto _ : state) { auto & [sequence1, sequence2] = sequence_pair_or_pairs; total += algorithm(sequence1, sequence2, edit_distance_cfg).score(); } } std::conditional_t<collection_benchmark, decltype(std::views::all), decltype(std::views::single)> view_adaptor{}; state.counters["cells"] = seqan3::test::pairwise_cell_updates(view_adaptor(sequence_pair_or_pairs), edit_distance_cfg); state.counters["CUPS"] = seqan3::test::cell_updates_per_second(state.counters["cells"]); state.counters["total"] = total; } #ifdef SEQAN3_HAS_SEQAN2 // ---------------------------------------------------------------------------- // seqan2 edit distance pairwise alignment benchmarks // ---------------------------------------------------------------------------- template <typename sequence_pair_generator_t, typename align_cfg_t> void seqan2_align_pairwise_edit_distance_benchmark(benchmark::State & state, sequence_pair_generator_t sequence_pair_generator, align_cfg_t seqan3_align_cfg) { using seqan3::test::edit_distance_algorithm_seqan2; auto [sequences1, sequences2] = sequence_pair_generator(state); constexpr bool collection_benchmark = sequence_pair_generator.is_collection; using sequence_t = typename sequence_pair_generator_t::sequence_t; auto algorithm_seqan2 = edit_distance_algorithm_seqan2::select<sequence_t, sequence_t>(seqan3_align_cfg); int64_t total = 0; if constexpr (collection_benchmark) { for (auto _ : state) for (size_t i = 0u; i < seqan::length(sequences1); ++i) total += algorithm_seqan2(sequences1[i], sequences2[i]); } else { for (auto _ : state) total += algorithm_seqan2(sequences1, sequences2); } std::conditional_t<collection_benchmark, decltype(std::views::all), decltype(std::views::single)> view_adaptor{}; auto sequence_pairs_view = seqan3::views::zip(view_adaptor(sequences1), view_adaptor(sequences2)); state.counters["cells"] = seqan3::test::pairwise_cell_updates(sequence_pairs_view, seqan3_align_cfg); state.counters["CUPS"] = seqan3::test::cell_updates_per_second(state.counters["cells"]); state.counters["total"] = total; } #endif // SEQAN3_HAS_SEQAN2
45.72
117
0.615048
qPCR4vir
8fdd77884d513302f116b2b80b40fc88ef0aa37f
3,411
cc
C++
src/2lgc/pattern/publisher/publisher_ip.cc
Joyero/lib2lgc
5ef337ebe167fd68d2432b6297e25d4e533cb612
[ "Apache-2.0" ]
null
null
null
src/2lgc/pattern/publisher/publisher_ip.cc
Joyero/lib2lgc
5ef337ebe167fd68d2432b6297e25d4e533cb612
[ "Apache-2.0" ]
null
null
null
src/2lgc/pattern/publisher/publisher_ip.cc
Joyero/lib2lgc
5ef337ebe167fd68d2432b6297e25d4e533cb612
[ "Apache-2.0" ]
1
2019-04-23T14:53:34.000Z
2019-04-23T14:53:34.000Z
/* * Copyright 2018 LE GARREC Vincent * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef PATTERN_PUBLISHER_PUBLISHER_IP_CC_ #define PATTERN_PUBLISHER_PUBLISHER_IP_CC_ #include <2lgc/compat.h> #include <2lgc/pattern/publisher/publisher_interface.h> #include <2lgc/pattern/publisher/publisher_ip.h> namespace llgc::pattern::publisher { template <typename T> class ConnectorInterface; } /** \class llgc::pattern::publisher::PublisherIp * \brief Interface to create a TCP server. * \tparam T Message from protobuf. * \dotfile pattern/publisher/publisher_tcp.dot */ /** \brief Constructor with port for the TCP server. * \param[in] port The port to listen from. */ template <typename T> INLINE_TEMPLATE llgc::pattern::publisher::PublisherIp<T>::PublisherIp( uint16_t port) : llgc::pattern::publisher::PublisherInterface< T, std::shared_ptr<llgc::pattern::publisher::ConnectorInterface<T>>>(), port_(port) { } /// \brief Destructor. Make sure that thread is finished. template <typename T> INLINE_TEMPLATE llgc::pattern::publisher::PublisherIp<T>::~PublisherIp() { // Can't destroy a thread if it's still running. PublisherIp<T>::JoinWait(); } /** \fn bool llgc::pattern::publisher::PublisherIp::Listen() * \brief Start the server and the listening the port. * \return true if no problem. * * * \fn bool llgc::pattern::publisher::PublisherIp::Wait() * \brief Wait for client. * \return true if no problem. * * * \fn void llgc::pattern::publisher::PublisherIp::Stop() * \brief Stop the thread. */ /// \brief Join the waiting thread. template <typename T> INLINE_TEMPLATE void llgc::pattern::publisher::PublisherIp<T>::JoinWait() { if (thread_wait_.joinable()) { thread_wait_.join(); } } /** \fn uint16_t llgc::pattern::publisher::PublisherIp::GetPort() const * \brief Return the port. * \return The port. * * * \fn llgc::pattern::publisher::PublisherIp::PublisherIp(PublisherIp&& other) * \brief Delete move constructor. * \param[in] other Don't care. * * * \fn llgc::pattern::publisher::PublisherIp::PublisherIp(PublisherIp const& other) * \brief Delete copy constructor. * \param[in] other Don't care. * * * \fn PublisherIp& llgc::pattern::publisher::PublisherIp::operator=(PublisherIp&& other) * \brief Delete move operator. * \param[in] other Don't care. * \return Nothing. * * * \fn PublisherIp& llgc::pattern::publisher::PublisherIp::operator=(PublisherIp const& other) * \brief Delete copy operator. * \param[in] other Don't care. * \return Nothing. * * * \var llgc::pattern::publisher::PublisherIp::thread_wait_ * \brief Thread that run the Wait function and add socket to thread_sockets_. * * * \var llgc::pattern::publisher::PublisherIp::port_ * \brief Port to listen from. */ #endif // PATTERN_PUBLISHER_PUBLISHER_IP_CC_ /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
28.663866
94
0.715919
Joyero
8fde7ac2661ec45703ac4816fbb5baa2b5199040
6,277
inl
C++
src/kernel/sched/pid.c.inl
GrieferAtWork/KOSmk2
446a982c7930eeb48710bcb234c4e4b15446b869
[ "Zlib" ]
1
2021-01-02T22:15:14.000Z
2021-01-02T22:15:14.000Z
src/kernel/sched/pid.c.inl
GrieferAtWork/KOSmk2
446a982c7930eeb48710bcb234c4e4b15446b869
[ "Zlib" ]
null
null
null
src/kernel/sched/pid.c.inl
GrieferAtWork/KOSmk2
446a982c7930eeb48710bcb234c4e4b15446b869
[ "Zlib" ]
1
2019-10-21T17:39:46.000Z
2019-10-21T17:39:46.000Z
/* Copyright (c) 2017 Griefer@Work * * * * This software is provided 'as-is', without any express or implied * * warranty. In no event will the authors be held liable for any damages * * arising from the use of this software. * * * * Permission is granted to anyone to use this software for any purpose, * * including commercial applications, and to alter it and redistribute it * * freely, subject to the following restrictions: * * * * 1. The origin of this software must not be misrepresented; you must not * * claim that you wrote the original software. If you use this software * * in a product, an acknowledgement in the product documentation would be * * appreciated but is not required. * * 2. Altered source versions must be plainly marked as such, and must not be * * misrepresented as being the original software. * * 3. This notice may not be removed or altered from any source distribution. * */ #ifndef GUARD_KERNEL_SCHED_PID_C_INL #define GUARD_KERNEL_SCHED_PID_C_INL 1 #define _KOS_SOURCE 2 #include <assert.h> #include <hybrid/check.h> #include <hybrid/compiler.h> #include <hybrid/panic.h> #include <hybrid/section.h> #include <malloc.h> #include <sched/cpu.h> #include <sched/task.h> #include <sched/types.h> DECL_BEGIN PUBLIC struct pid_namespace pid_global = { /* 3/4 initial references: * - pid_global * - inittask.t_pid.tp_ids[PIDTYPE_GPID].tl_ns * - __bootcpu.c_idle.t_pid.tp_ids[PIDTYPE_GPID].tl_ns * - [!CONFIG_NO_JOBS] __bootcpu.c_work.t_pid.tp_ids[PIDTYPE_GPID].tl_ns */ #ifndef CONFIG_NO_JOBS #ifdef CONFIG_DEBUG .pn_refcnt = 4, #else .pn_refcnt = 0x80000004, #endif #else /* !CONFIG_NO_JOBS */ #ifdef CONFIG_DEBUG .pn_refcnt = 3, #else .pn_refcnt = 0x80000003, #endif #endif /* CONFIG_NO_JOBS */ .pn_type = PIDTYPE_GPID, .pn_min = BOOSTRAP_PID_COUNT, .pn_max = (1 << 16)-1, .pn_lock = ATOMIC_RWLOCK_INIT, .pn_next = BOOSTRAP_PID_COUNT, .pn_mapa = BOOSTRAP_PID_COUNT, .pn_mapc = BOOSTRAP_PID_COUNT, .pn_map = NULL, }; PUBLIC struct pid_namespace pid_init = { #ifndef CONFIG_NO_JOBS #ifdef CONFIG_DEBUG .pn_refcnt = 4, #else .pn_refcnt = 0x80000004, #endif #else /* !CONFIG_NO_JOBS */ #ifdef CONFIG_DEBUG .pn_refcnt = 3, #else .pn_refcnt = 0x80000003, #endif #endif /* CONFIG_NO_JOBS */ .pn_type = PIDTYPE_PID, .pn_min = BOOSTRAP_PID_COUNT, .pn_max = (1 << 16)-1, .pn_lock = ATOMIC_RWLOCK_INIT, .pn_next = BOOSTRAP_PID_COUNT, .pn_mapa = BOOSTRAP_PID_COUNT, .pn_mapc = BOOSTRAP_PID_COUNT, .pn_map = NULL, }; PUBLIC REF struct pid_namespace * KCALL pid_namespace_new(pidtype_t type) { REF struct pid_namespace *result; assert(type < PIDTYPE_COUNT); result = omalloc(struct pid_namespace); if unlikely(!result) return NULL; result->pn_refcnt = 1; result->pn_type = type; result->pn_min = 1; result->pn_max = (1 << 16)-1; atomic_rwlock_init(&result->pn_lock); result->pn_next = 0; result->pn_mapa = 0; result->pn_mapc = 0; result->pn_map = NULL; return result; } PUBLIC void KCALL pid_namespace_destroy(struct pid_namespace *__restrict self) { CHECK_HOST_DOBJ(self); assert(self != &pid_global); assert(self != &pid_init); assertf(self->pn_mapc == 0,"But any task should be holding a reference..."); assert((self->pn_map != NULL) == (self->pn_mapa != 0)); free(self->pn_map); free(self); } PUBLIC REF struct task *KCALL pid_namespace_lookup(struct pid_namespace *__restrict self, pid_t id) { REF struct task *result = NULL; CHECK_HOST_DOBJ(self); atomic_rwlock_read(&self->pn_lock); if likely(self->pn_mapa) { result = self->pn_map[id % self->pn_mapa].pb_chain; while (result && result->t_pid.tp_ids[self->pn_type].tl_pid != id) result = result->t_pid.tp_ids[self->pn_type].tl_link.le_next; if (result && !TASK_TRYINCREF(result)) result = NULL; } atomic_rwlock_endread(&self->pn_lock); return result; } PUBLIC WEAK REF struct task *KCALL pid_namespace_lookup_weak(struct pid_namespace *__restrict self, pid_t id) { REF struct task *result = NULL; CHECK_HOST_DOBJ(self); atomic_rwlock_read(&self->pn_lock); if likely(self->pn_mapa) { result = self->pn_map[id % self->pn_mapa].pb_chain; while (result && result->t_pid.tp_ids[self->pn_type].tl_pid != id) result = result->t_pid.tp_ids[self->pn_type].tl_link.le_next; /* Must only create a new weak reference. */ if (result) TASK_WEAK_INCREF(result); } atomic_rwlock_endread(&self->pn_lock); return result; } PRIVATE ATTR_FREETEXT void KCALL setup_pid_namespace(struct pid_namespace *__restrict self) { CHECK_HOST_DOBJ(self); assert(self->pn_map == NULL); assert(self->pn_mapa == BOOSTRAP_PID_COUNT); assert(self->pn_mapc == BOOSTRAP_PID_COUNT); self->pn_map = _mall_untrack(tmalloc(struct pid_bucket,BOOSTRAP_PID_COUNT)); if unlikely(!self->pn_map) PANIC("PID namespace setup failed: %[errno]",ENOMEM); /* Link the initial namespace entries. */ self->pn_map[BOOTTASK_PID % BOOSTRAP_PID_COUNT].pb_chain = &inittask; self->pn_map[BOOTCPU_IDLE_PID % BOOSTRAP_PID_COUNT].pb_chain = &__bootcpu.c_idle; inittask.t_pid.tp_ids[self->pn_type].tl_link.le_pself = &self->pn_map[BOOTTASK_PID % BOOSTRAP_PID_COUNT].pb_chain; __bootcpu.c_idle.t_pid.tp_ids[self->pn_type].tl_link.le_pself = &self->pn_map[BOOTCPU_IDLE_PID % BOOSTRAP_PID_COUNT].pb_chain; #ifndef CONFIG_NO_JOBS self->pn_map[BOOTCPU_WORK_PID % BOOSTRAP_PID_COUNT].pb_chain = &__bootcpu.c_work; __bootcpu.c_work.t_pid.tp_ids[self->pn_type].tl_link.le_pself = &self->pn_map[BOOTCPU_WORK_PID % BOOSTRAP_PID_COUNT].pb_chain; #endif } INTERN ATTR_FREETEXT void KCALL pid_initialize(void) { setup_pid_namespace(&pid_global); setup_pid_namespace(&pid_init); } DECL_END #endif /* !GUARD_KERNEL_SCHED_PID_C_INL */
35.067039
127
0.670065
GrieferAtWork
8fe27532fb4b2ce66fac217b7132d6f6ab7fc091
28,975
cpp
C++
lib/sunmoon/sunmoon.cpp
thorsten-l/ESP32-Weather-Forecast
1d08d0386936fedce37f3e21050e1d7b604ff03d
[ "Apache-2.0" ]
null
null
null
lib/sunmoon/sunmoon.cpp
thorsten-l/ESP32-Weather-Forecast
1d08d0386936fedce37f3e21050e1d7b604ff03d
[ "Apache-2.0" ]
null
null
null
lib/sunmoon/sunmoon.cpp
thorsten-l/ESP32-Weather-Forecast
1d08d0386936fedce37f3e21050e1d7b604ff03d
[ "Apache-2.0" ]
null
null
null
/* Entfernen Sie folgende Informationen auf keinen Fall: / Do not remove following text: Source code based on the javascript by Arnold Barmettler, www.astronomie.info / www.CalSky.com based on algorithms by Peter Duffett-Smith's great and easy book 'Practical Astronomy with your Calculator'. */ #include "sunmoon.h" #include <stdlib.h> #include <string.h> #define _USE_MATH_DEFINES #include <math.h> #define M_PI 3.14159265358979323846 #define DEG (M_PI / 180.0) #define RAD (180.0 / M_PI) #ifndef isnan inline bool isnan(double x) { return x != x; } inline bool isnan(int x) { return x != x; } #endif int sun_moon_int(double x) { return (x < 0) ? (int)ceil(x) : (int)floor(x); } double sun_moon_sqr(double x) { return x * x; } double sun_moon_frac(double x) { return (x - floor(x)); } double sun_moon_mod(double a, double b) { return (a - floor(a / b) * b); } double sun_moon_mod2pi(double x) { return sun_moon_mod(x, 2.0 * M_PI); } double sun_moon_round100000(double x) { return (round(100000.0 * x) / 100000.0); } double sun_moon_round10000(double x) { return (round(10000.0 * x) / 10000.0); } double sun_moon_round1000(double x) { return (round(1000.0 * x) / 1000.0); } double sun_moon_round100(double x) { return (round(100.0 * x) / 100.0); } double sun_moon_round10(double x) { return (round(10.0 * x) / 10.0); } enum SIGN sun_moon_sign(double lon) { return (enum SIGN)((int)floor(lon * RAD / 30.0)); } // Calculate Julian date: valid only from 1.3.1901 to 28.2.2100 double sun_moon_calcjd(int day, int month, int year) { double jd = 2415020.5 - 64; // 1.1.1900 - correction of algorithm if (month <= 2) { year--; month += 12; } jd += sun_moon_int(((year - 1900)) * 365.25); jd += sun_moon_int(30.6001 * ((1 + month))); return jd + day; } // Julian Date to Greenwich Mean Sidereal Time double sun_moon_calcgmst(double JD) { double UT, T, T0; UT = sun_moon_frac(JD - 0.5) * 24.0; // UT in hours JD = floor(JD - 0.5) + 0.5; // JD at 0 hours UT T = (JD - 2451545.0) / 36525.0; T0 = 6.697374558 + T * (2400.051336 + T * 0.000025862); return (sun_moon_mod(T0 + UT * 1.002737909, 24.0)); } // Convert Greenweek mean sidereal time to UT double sun_moon_gmst2ut(double JD, double gmst) { double T, T0; JD = floor(JD - 0.5) + 0.5; // JD at 0 hours UT T = (JD - 2451545.0) / 36525.0; T0 = sun_moon_mod(6.697374558 + T * (2400.051336 + T * 0.000025862), 24.0); return 0.9972695663 * ((gmst - T0)); } // Local Mean Sidereal Time, geographical longitude in radians, East is positive double sun_moon_gmst2lmst(double gmst, double lon) { return sun_moon_mod(gmst + RAD * lon / 15, 24.0); } struct SUN_MOON_STORAGE { double lat; double lon; double ra; double dec; double az; double alt; double radius; double distance; double rise; double transit; double set; double x; double y; double z; double distanceTopocentric; double decTopocentric; double raTopocentric; double anomalyMean; double diameter; double parallax; double orbitLon; double raGeocentric; double decGeocentric; double moonAge; double phase; int moonPhase; double cicilTwilightMorning, cicilTwilightEvening; double nauticalTwilightMorning, nauticalTwilightEvening; double astronomicalTwilightMorning, astronomicalTwilightEvening; }; // Transform ecliptical coordinates (lon/lat) to equatorial coordinates (RA/dec) struct SUN_MOON_STORAGE sun_moon_ecl2equ(struct SUN_MOON_STORAGE coor, double TDT) { double T = (TDT - 2451545.0) / 36525.0; // Epoch 2000 January 1.5 double eps = (23.0 + (26 + 21.45 / 60.0) / 60.0 + T * (-46.815 + T * (-0.0006 + T * 0.00181)) / 3600.0) * DEG; double coseps = cos(eps); double sineps = sin(eps); double sinlon = sin(coor.lon); coor.ra = sun_moon_mod2pi(atan2((sinlon * coseps - tan(coor.lat) * sineps), cos(coor.lon))); coor.dec = asin(sin(coor.lat) * coseps + cos(coor.lat) * sineps * sinlon); return coor; } // Transform equatorial coordinates (RA/Dec) to horizonal coordinates (azimuth/altitude) // Refraction is ignored struct SUN_MOON_STORAGE sun_moon_equ2altaz(struct SUN_MOON_STORAGE coor, double TDT, double geolat, double lmst) { double cosdec = cos(coor.dec); double sindec = sin(coor.dec); double lha = lmst - coor.ra; double coslha = cos(lha); double sinlha = sin(lha); double coslat = cos(geolat); double sinlat = sin(geolat); double N = -cosdec * sinlha; double D = sindec * coslat - cosdec * coslha * sinlat; coor.az = sun_moon_mod2pi(atan2(N, D)); coor.alt = asin(sindec * sinlat + cosdec * coslha * coslat); return coor; } // Transform geocentric equatorial coordinates (RA/Dec) to topocentric equatorial coordinates struct SUN_MOON_STORAGE sun_moon_geoequ2topoequ(struct SUN_MOON_STORAGE coor, struct SUN_MOON_STORAGE observer, double lmst) { double cosdec = cos(coor.dec); double sindec = sin(coor.dec); double coslst = cos(lmst); double sinlst = sin(lmst); double coslat = cos(observer.lat); // we should use geocentric latitude, not geodetic latitude double sinlat = sin(observer.lat); double rho = observer.radius; // observer-geocenter in Kilometer double x = coor.distance * cosdec * cos(coor.ra) - rho * coslat * coslst; double y = coor.distance * cosdec * sin(coor.ra) - rho * coslat * sinlst; double z = coor.distance * sindec - rho * sinlat; coor.distanceTopocentric = sqrt(x * x + y * y + z * z); coor.decTopocentric = asin(z / coor.distanceTopocentric); coor.raTopocentric = sun_moon_mod2pi(atan2(y, x)); return coor; } // Calculate cartesian from polar coordinates struct SUN_MOON_STORAGE sun_moon_equpolar2cart(double lon, double lat, double distance) { struct SUN_MOON_STORAGE cart; double rcd = cos(lat) * distance; memset(&cart, 0, sizeof(struct SUN_MOON_STORAGE)); cart.x = rcd * cos(lon); cart.y = rcd * sin(lon); cart.z = distance * sin(lat); return cart; } // Calculate observers cartesian equatorial coordinates (x,y,z in celestial frame) // from geodetic coordinates (longitude, latitude, height above WGS84 ellipsoid) // Currently only used to calculate distance of a body from the observer struct SUN_MOON_STORAGE sun_moon_observer2equcart(double lon, double lat, double height, double gmst) { double co, si, fl, u, a, b, radius, x, y, rotangle; double flat = 298.257223563; // WGS84 flatening of earth double aearth = 6378.137; // GRS80/WGS84 semi major axis of earth ellipsoid struct SUN_MOON_STORAGE cart; memset(&cart, 0, sizeof(struct SUN_MOON_STORAGE)); // Calculate geocentric latitude from geodetic latitude co = cos(lat); si = sin(lat); fl = 1.0 - 1.0 / flat; fl = fl * fl; si = si * si; u = 1.0 / sqrt(co * co + fl * si); a = aearth * u + height; b = aearth * fl * u + height; radius = sqrt(a * a * co * co + b * b * si); // geocentric distance from earth center cart.y = acos(a * co / radius); // geocentric latitude, rad cart.x = lon; // longitude stays the same if (lat < 0.0) { cart.y = -cart.y; } // adjust sign cart = sun_moon_equpolar2cart(cart.x, cart.y, radius); // convert from geocentric polar to geocentric cartesian, with regard to Greenwich // rotate around earth's polar axis to align coordinate system from Greenwich to vernal equinox x = cart.x; y = cart.y; rotangle = gmst / 24.0 * 2.0 * M_PI; // sideral time gmst given in hours. Convert to radians cart.x = x * cos(rotangle) - y * sin(rotangle); cart.y = x * sin(rotangle) + y * cos(rotangle); cart.radius = radius; cart.lon = lon; cart.lat = lat; return cart; } // Calculate coordinates for Sun // Coordinates are accurate to about 10s (right ascension) // and a few minutes of arc (declination) struct SUN_MOON_STORAGE sun_moon_sunposition(double TDT, double geolat, double lmst) { struct SUN_MOON_STORAGE sunCoor; double D = TDT - 2447891.5; double eg = 279.403303 * DEG; double wg = 282.768422 * DEG; double e = 0.016713; double a = 149598500; // km double diameter0 = 0.533128 * DEG; // angular diameter of Moon at a distance double MSun = 360 * DEG / 365.242191 * D + eg - wg; double nu = MSun + 360.0 * DEG / M_PI * e * sin(MSun); memset(&sunCoor, 0, sizeof(struct SUN_MOON_STORAGE)); sunCoor.lon = sun_moon_mod2pi(nu + wg); sunCoor.lat = 0; sunCoor.anomalyMean = MSun; sunCoor.distance = (1 - sun_moon_sqr(e)) / (1 + e * cos(nu)); // distance in astronomical units sunCoor.diameter = diameter0 / sunCoor.distance; // angular diameter in radians sunCoor.distance *= a; // distance in km sunCoor.parallax = 6378.137 / sunCoor.distance; // horizonal parallax sunCoor = sun_moon_ecl2equ(sunCoor, TDT); // Calculate horizonal coordinates of sun, if geographic positions is given if (!isnan(geolat) && !isnan(lmst)) { sunCoor = sun_moon_equ2altaz(sunCoor, TDT, geolat, lmst); } return sunCoor; } // Calculate data and coordinates for the Moon // Coordinates are accurate to about 1/5 degree (in ecliptic coordinates) struct SUN_MOON_STORAGE sun_moon_moonposition(struct SUN_MOON_STORAGE sunCoor, double TDT, struct SUN_MOON_STORAGE* observer, double lmst) { struct SUN_MOON_STORAGE moonCoor; double mainPhase, p; double D = TDT - 2447891.5; // Mean Moon orbit elements as of 1990.0 double l0 = 318.351648 * DEG; double P0 = 36.340410 * DEG; double N0 = 318.510107 * DEG; double i = 5.145396 * DEG; double e = 0.054900; double a = 384401; // km double diameter0 = 0.5181 * DEG; // angular diameter of Moon at a distance double parallax0 = 0.9507 * DEG; // parallax at distance a double l = 13.1763966 * DEG * D + l0; double MMoon = l - 0.1114041 * DEG * D - P0; // Moon's mean anomaly M double N = N0 - 0.0529539 * DEG * D; // Moon's mean ascending node longitude double C = l - sunCoor.lon; double Ev = 1.2739 * DEG * sin(2 * C - MMoon); double Ae = 0.1858 * DEG * sin(sunCoor.anomalyMean); double A3 = 0.37 * DEG * sin(sunCoor.anomalyMean); double MMoon2 = MMoon + Ev - Ae - A3; // corrected Moon anomaly double Ec = 6.2886 * DEG * sin(MMoon2); // equation of centre double A4 = 0.214 * DEG * sin(2 * MMoon2); double l2 = l + Ev + Ec - Ae + A4; // corrected Moon's longitude double V = 0.6583 * DEG * sin(2 * (l2 - sunCoor.lon)); double l3 = l2 + V; // true orbital longitude; double N2 = N - 0.16 * DEG * sin(sunCoor.anomalyMean); memset(&moonCoor, 0, sizeof(struct SUN_MOON_STORAGE)); moonCoor.lon = sun_moon_mod2pi(N2 + atan2(sin(l3 - N2) * cos(i), cos(l3 - N2))); moonCoor.lat = asin(sin(l3 - N2) * sin(i)); moonCoor.orbitLon = l3; moonCoor = sun_moon_ecl2equ(moonCoor, TDT); // relative distance to semi mayor axis of lunar oribt moonCoor.distance = (1 - sun_moon_sqr(e)) / (1 + e * cos(MMoon2 + Ec)); moonCoor.diameter = diameter0 / moonCoor.distance; // angular diameter in radians moonCoor.parallax = parallax0 / moonCoor.distance; // horizontal parallax in radians moonCoor.distance = moonCoor.distance * a; // distance in km // Calculate horizonal coordinates of sun, if geographic positions is given if (observer != NULL && !isnan(lmst)) { // transform geocentric coordinates into topocentric (==observer based) coordinates moonCoor = sun_moon_geoequ2topoequ(moonCoor, *observer, lmst); moonCoor.raGeocentric = moonCoor.ra; // backup geocentric coordinates moonCoor.decGeocentric = moonCoor.dec; moonCoor.ra = moonCoor.raTopocentric; moonCoor.dec = moonCoor.decTopocentric; moonCoor = sun_moon_equ2altaz(moonCoor, TDT, observer->lat, lmst); // now ra and dec are topocentric } // Age of Moon in radians since New Moon (0) - Full Moon (pi) moonCoor.moonAge = sun_moon_mod2pi(l3 - sunCoor.lon); moonCoor.phase = 0.5 * (1 - cos(moonCoor.moonAge)); // Moon phase, 0-1 mainPhase = 1.0 / 29.53 * 360 * DEG; // show 'Newmoon, 'Quarter' for +/-1 day arond the actual event p = sun_moon_mod(moonCoor.moonAge, 90.0 * DEG); if (p < mainPhase || p > 90 * DEG - mainPhase) p = 2 * round(moonCoor.moonAge / (90.0 * DEG)); else p = 2 * floor(moonCoor.moonAge / (90.0 * DEG)) + 1; moonCoor.moonPhase = (int)p; return moonCoor; } // Rough refraction formula using standard atmosphere: 1015 mbar and 10°C // Input true altitude in radians, Output: increase in altitude in degrees double sun_moon_refraction(double alt) { int i; double pressure, temperature, y, D, P, Q, y0, D0, N; double altdeg = alt * RAD; if (altdeg < -2 || altdeg >= 90) return 0.0; pressure = 1015; temperature = 10; if (altdeg > 15) return (0.00452 * pressure / ((273 + temperature) * tan(alt))); y = alt; D = 0.0; P = (pressure - 80.0) / 930.0; Q = 0.0048 * (temperature - 10.0); y0 = y; D0 = D; for (i = 0; i < 3; i++) { N = y + (7.31 / (y + 4.4)); N = 1.0 / tan(N * DEG); D = N * P / (60.0 + Q * (N + 39.0)); N = y - y0; y0 = D - D0 - N; if ((N != 0.0) && (y0 != 0.0)) { N = y - N * (alt + D - y) / y0; } else { N = alt + D; } y0 = y; D0 = D; y = N; } return D; // Hebung durch Refraktion in radians } // returns Greenwich sidereal time (hours) of time of rise // and set of object with coordinates coor.ra/coor.dec // at geographic position lon/lat (all values in radians) // Correction for refraction and semi-diameter/parallax of body is taken care of in function RiseSet // h is used to calculate the twilights. It gives the required elevation of the disk center of the sun struct SUN_MOON_STORAGE sun_moon_gmstriseset(struct SUN_MOON_STORAGE coor, double lon, double lat, double hn) { struct SUN_MOON_STORAGE riseset; double h = isnan(hn) ? 0.0 : hn; // set default value double tagbogen = acos((sin(h) - sin(lat) * sin(coor.dec)) / (cos(lat) * cos(coor.dec))); memset(&riseset, 0, sizeof(struct SUN_MOON_STORAGE)); riseset.transit = RAD / 15 * (+coor.ra - lon); riseset.rise = 24.0 + RAD / 15 * (-tagbogen + coor.ra - lon); // calculate GMST of rise of object riseset.set = RAD / 15 * (+tagbogen + coor.ra - lon); // calculate GMST of set of object // using the modulo function Mod, the day number goes missing. This may get a problem for the moon riseset.transit = sun_moon_mod(riseset.transit, 24); riseset.rise = sun_moon_mod(riseset.rise, 24); riseset.set = sun_moon_mod(riseset.set, 24); return riseset; } // Find GMST of rise/set of object from the two calculates // (start)points (day 1 and 2) and at midnight UT(0) double sun_moon_interpolategmst(double gmst0, double gmst1, double gmst2, double timefactor) { return ((timefactor * 24.07 * gmst1 - gmst0 * (gmst2 - gmst1)) / (timefactor * 24.07 + gmst1 - gmst2)); } // JD is the Julian Date of 0h UTC time (midnight) struct SUN_MOON_STORAGE sun_moon_riseset(double jd0UT, struct SUN_MOON_STORAGE coor1, struct SUN_MOON_STORAGE coor2, double lon, double lat, double timeinterval, double naltitude) { struct SUN_MOON_STORAGE rise1, rise2, rise; double T0, T02, decMean, psi, y, dt; // altitude of sun center: semi-diameter, horizontal parallax and (standard) refraction of 34' double alt = 0.0; // calculate double altitude = isnan(naltitude) ? 0.0 : naltitude; // set default value // true height of sun center for sunrise and set calculation. Is kept 0 for twilight (ie. altitude given): if (altitude == 0.0) alt = 0.5 * coor1.diameter - coor1.parallax + 34.0 / 60 * DEG; rise1 = sun_moon_gmstriseset(coor1, lon, lat, altitude); rise2 = sun_moon_gmstriseset(coor2, lon, lat, altitude); memset(&rise, 0, sizeof(struct SUN_MOON_STORAGE)); // unwrap GMST in case we move across 24h -> 0h if (rise1.transit > rise2.transit && abs(rise1.transit - rise2.transit) > 18) rise2.transit += 24.0; if (rise1.rise > rise2.rise && abs(rise1.rise - rise2.rise) > 18) rise2.rise += 24.0; if (rise1.set > rise2.set && abs(rise1.set - rise2.set) > 18) rise2.set += 24.0; T0 = sun_moon_calcgmst(jd0UT); // var T02 = T0-zone*1.002738; // Greenwich sidereal time at 0h time zone (zone: hours) // Greenwich sidereal time for 0h at selected longitude T02 = T0 - lon * RAD / 15 * 1.002738; if (T02 < 0) T02 += 24; if (rise1.transit < T02) { rise1.transit += 24.0; rise2.transit += 24.0; } if (rise1.rise < T02) { rise1.rise += 24.0; rise2.rise += 24.0; } if (rise1.set < T02) { rise1.set += 24.0; rise2.set += 24.0; } // Refraction and Parallax correction decMean = 0.5 * (coor1.dec + coor2.dec); psi = acos(sin(lat) / cos(decMean)); y = asin(sin(alt) / sin(psi)); dt = 240 * RAD * y / cos(decMean) / 3600; // time correction due to refraction, parallax rise.transit = sun_moon_gmst2ut(jd0UT, sun_moon_interpolategmst(T0, rise1.transit, rise2.transit, timeinterval)); rise.rise = sun_moon_gmst2ut(jd0UT, sun_moon_interpolategmst(T0, rise1.rise, rise2.rise, timeinterval) - dt); rise.set = sun_moon_gmst2ut(jd0UT, sun_moon_interpolategmst(T0, rise1.set, rise2.set, timeinterval) + dt); return rise; } // Find (local) time of sunrise and sunset, and twilights // JD is the Julian Date of 0h local time (midnight) // Accurate to about 1-2 minutes // recursive: 1 - calculate rise/set in UTC in a second run // recursive: 0 - find rise/set on the current local day. This is set when doing the first call to this function struct SUN_MOON_STORAGE sun_moon_calcsunrise(double JD, double deltaT, double lon, double lat, int zone, int recursive) { struct SUN_MOON_STORAGE risetemp; double jd0UT = floor(JD - 0.5) + 0.5; // JD at 0 hours UT struct SUN_MOON_STORAGE coor1 = sun_moon_sunposition(jd0UT + deltaT / 24.0 / 3600.0, NAN, NAN); struct SUN_MOON_STORAGE coor2 = sun_moon_sunposition(jd0UT + 1.0 + deltaT / 24.0 / 3600.0, NAN, NAN); // calculations for next day's UTC midnight // rise/set time in UTC. struct SUN_MOON_STORAGE rise = sun_moon_riseset(jd0UT, coor1, coor2, lon, lat, 1, NAN); if (recursive == 0) { // check and adjust to have rise/set time on local calendar day if (zone > 0) { // rise time was yesterday local time -> calculate rise time for next UTC day if (rise.rise >= 24 - zone || rise.transit >= 24 - zone || rise.set >= 24 - zone) { risetemp = sun_moon_calcsunrise(JD + 1, deltaT, lon, lat, zone, 1); if (rise.rise >= 24 - zone) rise.rise = risetemp.rise; if (rise.transit >= 24 - zone) rise.transit = risetemp.transit; if (rise.set >= 24 - zone) rise.set = risetemp.set; } } else if (zone < 0) { // rise time was yesterday local time -> calculate rise time for next UTC day if (rise.rise < -zone || rise.transit < -zone || rise.set < -zone) { risetemp = sun_moon_calcsunrise(JD - 1, deltaT, lon, lat, zone, 1); if (rise.rise < -zone) rise.rise = risetemp.rise; if (rise.transit < -zone) rise.transit = risetemp.transit; if (rise.set < -zone) rise.set = risetemp.set; } } rise.transit = sun_moon_mod(rise.transit + zone, 24.0); rise.rise = sun_moon_mod(rise.rise + zone, 24.0); rise.set = sun_moon_mod(rise.set + zone, 24.0); // Twilight calculation // civil twilight time in UTC. risetemp = sun_moon_riseset(jd0UT, coor1, coor2, lon, lat, 1, -6.0 * DEG); rise.cicilTwilightMorning = sun_moon_mod(risetemp.rise + zone, 24.0); rise.cicilTwilightEvening = sun_moon_mod(risetemp.set + zone, 24.0); // nautical twilight time in UTC. risetemp = sun_moon_riseset(jd0UT, coor1, coor2, lon, lat, 1, -12.0 * DEG); rise.nauticalTwilightMorning = sun_moon_mod(risetemp.rise + zone, 24.0); rise.nauticalTwilightEvening = sun_moon_mod(risetemp.set + zone, 24.0); // astronomical twilight time in UTC. risetemp = sun_moon_riseset(jd0UT, coor1, coor2, lon, lat, 1, -18.0 * DEG); rise.astronomicalTwilightMorning = sun_moon_mod(risetemp.rise + zone, 24.0); rise.astronomicalTwilightEvening = sun_moon_mod(risetemp.set + zone, 24.0); } return rise; } // Find local time of moonrise and moonset // JD is the Julian Date of 0h local time (midnight) // Accurate to about 5 minutes or better // recursive: 1 - calculate rise/set in UTC // recursive: 0 - find rise/set on the current local day (set could also be first) // returns '' for moonrise/set does not occur on selected day struct SUN_MOON_STORAGE sun_moon_calcmoonrise(double JD, double deltaT, double lon, double lat, int zone, int recursive) { struct SUN_MOON_STORAGE risetemp; double timeinterval = 0.5; double jd0UT = floor(JD - 0.5) + 0.5; // JD at 0 hours UT struct SUN_MOON_STORAGE suncoor1 = sun_moon_sunposition(jd0UT + deltaT / 24.0 / 3600.0, NAN, NAN); struct SUN_MOON_STORAGE coor1 = sun_moon_moonposition(suncoor1, jd0UT + deltaT / 24.0 / 3600.0, NULL, NAN); struct SUN_MOON_STORAGE suncoor2 = sun_moon_sunposition(jd0UT + timeinterval + deltaT / 24.0 / 3600.0, NAN, NAN); // calculations for noon // calculations for next day's midnight struct SUN_MOON_STORAGE coor2 = sun_moon_moonposition(suncoor2, jd0UT + timeinterval + deltaT / 24.0 / 3600.0, NULL, NAN); // rise/set time in UTC, time zone corrected later. // Taking into account refraction, semi-diameter and parallax struct SUN_MOON_STORAGE rise = sun_moon_riseset(jd0UT, coor1, coor2, lon, lat, timeinterval, NAN); if (recursive == 0) { // check and adjust to have rise/set time on local calendar day if (zone > 0) { // recursive call to MoonRise returns events in UTC risetemp = sun_moon_calcmoonrise(JD - 1.0, deltaT, lon, lat, zone, 1); if (rise.transit >= 24.0 - zone || rise.transit < -zone) { // transit time is tomorrow local time if (risetemp.transit < 24.0 - zone) rise.transit = NAN; // there is no moontransit today else rise.transit = risetemp.transit; } if (rise.rise >= 24.0 - zone || rise.rise < -zone) { // rise time is tomorrow local time if (risetemp.rise < 24.0 - zone) rise.rise = NAN; // there is no moontransit today else rise.rise = risetemp.rise; } if (rise.set >= 24.0 - zone || rise.set < -zone) { // set time is tomorrow local time if (risetemp.set < 24.0 - zone) rise.set = NAN; // there is no moontransit today else rise.set = risetemp.set; } } else if (zone < 0) { // rise/set time was tomorrow local time -> calculate rise time for former UTC day if (rise.rise < -zone || rise.set < -zone || rise.transit < -zone) { risetemp = sun_moon_calcmoonrise(JD + 1.0, deltaT, lon, lat, zone, 1); if (rise.rise < -zone) { if (risetemp.rise > -zone) rise.rise = NAN; // there is no moonrise today else rise.rise = risetemp.rise; } if (rise.transit < -zone) { if (risetemp.transit > -zone) rise.transit = NAN; // there is no moonset today else rise.transit = risetemp.transit; } if (rise.set < -zone) { if (risetemp.set > -zone) rise.set = NAN; // there is no moonset today else rise.set = risetemp.set; } } } if (rise.rise != NAN) rise.rise = sun_moon_mod(rise.rise + zone, 24.0); // correct for time zone, if time is valid if (rise.transit != NAN) rise.transit = sun_moon_mod(rise.transit + zone, 24.0); // correct for time zone, if time is valid if (rise.set != NAN) rise.set = sun_moon_mod(rise.set + zone, 24.0); // correct for time zone, if time is valid } return rise; } struct TIMESPAN sun_moon_calctimespan(double tm) { struct TIMESPAN ts; double m, s; ts.hh = ts.mm = ts.ss = (int)NAN; ts.real = NAN; if (tm == 0.0 || isnan(tm)) return ts; ts.real = tm; m = (tm - floor(tm)) * 60.0; ts.hh = sun_moon_int(tm); s = (m - floor(m)) * 60.0; ts.mm = sun_moon_int(m); if (s >= 59.5) { ts.mm++; s -= 60.0; } if (ts.mm >= 60) { ts.hh++; ts.mm -= 60; } ts.ss = (int)round(s); return ts; } int sun_moon(double latitude, double longitude, struct tm* datetime, double deltaT, int zone, struct SUN_MOON* output) { struct SUN_MOON_STORAGE observerCart, sunCoor, moonCoor, sunCart, sunRise, moonCart, moonRise; if (output == NULL) return EXIT_FAILURE; memset(output, 0, sizeof(struct SUN_MOON)); double JD0 = sun_moon_calcjd(datetime->tm_mday, datetime->tm_mon + 1, datetime->tm_year + 1900); double jd = JD0 + (datetime->tm_hour - zone + datetime->tm_min / 60.0 + datetime->tm_sec / 3600.0) / 24.0; double TDT = jd + deltaT / 24.0 / 3600.0; double lat = latitude * DEG; // geodetic latitude of observer on WGS84 double lon = longitude * DEG; // latitude of observer double height = 0 * 0.001; // altiude of observer in meters above WGS84 ellipsoid (and converted to kilometers) double gmst = sun_moon_calcgmst(jd); double lmst = sun_moon_gmst2lmst(gmst, lon); output->Lat = latitude; output->Lon = longitude; memcpy(&output->DateTime, datetime, sizeof(struct tm)); output->DeltaT = deltaT; output->Zone = zone; observerCart = sun_moon_observer2equcart(lon, lat, height, gmst); // geocentric cartesian coordinates of observer sunCoor = sun_moon_sunposition(TDT, lat, lmst * 15.0 * DEG); // Calculate data for the Sun at given time moonCoor = sun_moon_moonposition(sunCoor, TDT, &observerCart, lmst * 15.0 * DEG); // Calculate data for the Moon at given time output->JD = sun_moon_round100000(jd); output->GMST = sun_moon_calctimespan(gmst); output->LMST = sun_moon_calctimespan(lmst); output->SunLon = sun_moon_round1000(sunCoor.lon * RAD); output->SunRA = sun_moon_calctimespan(sunCoor.ra * RAD / 15); output->SunDec = sun_moon_round1000(sunCoor.dec * RAD); output->SunAz = sun_moon_round100(sunCoor.az * RAD); output->SunAlt = sun_moon_round10(sunCoor.alt * RAD + sun_moon_refraction(sunCoor.alt)); // including refraction output->SunSign = sun_moon_sign(sunCoor.lon); output->SunDiameter = sun_moon_round100(sunCoor.diameter * RAD * 60.0); // angular diameter in arc seconds output->SunDistance = sun_moon_round10(sunCoor.distance); // Calculate distance from the observer (on the surface of earth) to the center of the sun sunCart = sun_moon_equpolar2cart(sunCoor.ra, sunCoor.dec, sunCoor.distance); output->SunDistanceObserver = sun_moon_round10(sqrt(sun_moon_sqr(sunCart.x - observerCart.x) + sun_moon_sqr(sunCart.y - observerCart.y) + sun_moon_sqr(sunCart.z - observerCart.z))); // JD0: JD of 0h UTC time sunRise = sun_moon_calcsunrise(JD0, output->DeltaT, lon, lat, output->Zone, 0); output->SunTransit = sun_moon_calctimespan(sunRise.transit); output->SunRise = sun_moon_calctimespan(sunRise.rise); output->SunSet = sun_moon_calctimespan(sunRise.set); output->SunCivilTwilightMorning = sun_moon_calctimespan(sunRise.cicilTwilightMorning); output->SunCivilTwilightEvening = sun_moon_calctimespan(sunRise.cicilTwilightEvening); output->SunNauticalTwilightMorning = sun_moon_calctimespan(sunRise.nauticalTwilightMorning); output->SunNauticalTwilightEvening = sun_moon_calctimespan(sunRise.nauticalTwilightEvening); output->SunAstronomicalTwilightMorning = sun_moon_calctimespan(sunRise.astronomicalTwilightMorning); output->SunAstronomicalTwilightEvening = sun_moon_calctimespan(sunRise.astronomicalTwilightEvening); output->MoonLon = sun_moon_round1000(moonCoor.lon * RAD); output->MoonLat = sun_moon_round1000(moonCoor.lat * RAD); output->MoonRA = sun_moon_calctimespan(moonCoor.ra * RAD / 15.0); output->MoonDec = sun_moon_round1000(moonCoor.dec * RAD); output->MoonAz = sun_moon_round100(moonCoor.az * RAD); output->MoonAlt = sun_moon_round10(moonCoor.alt * RAD + sun_moon_refraction(moonCoor.alt)); // including refraction output->MoonAge = sun_moon_round1000(moonCoor.moonAge * RAD); output->MoonPhaseNumber = sun_moon_round1000(moonCoor.phase); //char* phases[] = { "Neumond", "Zunehmende Sichel", "Erstes Viertel", "Zunehmender Mond", "Vollmond", "Abnehmender Mond", "Letztes Viertel", "Abnehmende Sichel", "Neumond" }; if (moonCoor.moonPhase == 8) moonCoor.moonPhase = 0; output->MoonPhase = (enum LUNARPHASE)moonCoor.moonPhase; output->MoonSign = sun_moon_sign(moonCoor.lon); output->MoonDistance = sun_moon_round10(moonCoor.distance); output->MoonDiameter = sun_moon_round100(moonCoor.diameter * RAD * 60.0); // angular diameter in arc seconds // Calculate distance from the observer (on the surface of earth) to the center of the moon moonCart = sun_moon_equpolar2cart(moonCoor.raGeocentric, moonCoor.decGeocentric, moonCoor.distance); output->MoonDistanceObserver = sun_moon_round10(sqrt(sun_moon_sqr(moonCart.x - observerCart.x) + sun_moon_sqr(moonCart.y - observerCart.y) + sun_moon_sqr(moonCart.z - observerCart.z))); moonRise = sun_moon_calcmoonrise(JD0, output->DeltaT, lon, lat, output->Zone, 0); output->MoonTransit = sun_moon_calctimespan(moonRise.transit); output->MoonRise = sun_moon_calctimespan(moonRise.rise); output->MoonSet = sun_moon_calctimespan(moonRise.set); return EXIT_SUCCESS; }
42.925926
187
0.684452
thorsten-l
8fe5c3b8d48d0137830e12e0b5ae77aa5948f390
885
hpp
C++
sophus_ros_conversions/include/sophus_ros_conversions.hpp
mortaas/sophus_ros_toolkit
d803a2b9639033d7fc87a9454ae7824a5c1ef653
[ "BSD-2-Clause" ]
null
null
null
sophus_ros_conversions/include/sophus_ros_conversions.hpp
mortaas/sophus_ros_toolkit
d803a2b9639033d7fc87a9454ae7824a5c1ef653
[ "BSD-2-Clause" ]
null
null
null
sophus_ros_conversions/include/sophus_ros_conversions.hpp
mortaas/sophus_ros_toolkit
d803a2b9639033d7fc87a9454ae7824a5c1ef653
[ "BSD-2-Clause" ]
null
null
null
/** * @file /sophus_ros_conversions/include/sophus_ros_conversions/sophus_ros_conversions.hpp */ /***************************************************************************** ** Ifdefs *****************************************************************************/ #ifndef sophus_ros_conversions_SOPHUS_ROS_CONVERSIONS_HPP_ #define sophus_ros_conversions_SOPHUS_ROS_CONVERSIONS_HPP_ /***************************************************************************** ** Includes *****************************************************************************/ #include "sophus_ros_conversions/eigen.hpp" #include "sophus_ros_conversions/geometry.hpp" /***************************************************************************** ** Trailers *****************************************************************************/ #endif /* sophus_ros_conversions_SOPHUS_ROS_CONVERSIONS_HPP_ */
38.478261
90
0.39096
mortaas
8ff07693ae1080f536727bb2554245ce0208a363
2,826
cpp
C++
uva/1047.cpp
btjanaka/competitive-programming-solutions
e3df47c18451802b8521ebe61ca71ee348e5ced7
[ "MIT" ]
3
2020-06-25T21:04:02.000Z
2021-05-12T03:33:19.000Z
uva/1047.cpp
btjanaka/competitive-programming-solutions
e3df47c18451802b8521ebe61ca71ee348e5ced7
[ "MIT" ]
null
null
null
uva/1047.cpp
btjanaka/competitive-programming-solutions
e3df47c18451802b8521ebe61ca71ee348e5ced7
[ "MIT" ]
1
2020-06-25T21:04:06.000Z
2020-06-25T21:04:06.000Z
// Author: btjanaka (Bryon Tjanaka) // Problem: (UVa) 1047 #include <bits/stdc++.h> #define FOR(i, a, b) for (int i = a; i < b; ++i) #define FORe(i, a, b) for (int i = a; i <= b; ++i) #define PAI(arr, len) /*Print array of integers*/ \ for (int _i = 0; _i < len; ++_i) { \ if (_i != len - 1) { \ printf("%d ", arr[_i]); \ } else { \ printf("%d\n", arr[_i]); \ } \ } #define GET(x) scanf("%d", &x) #define PLN putchar('\n') typedef long long ll; using namespace std; // Note: towers all 0-indexed here int tower[25]; // Amount for each tower int t[15]; // How many towers in this index of the list int common_list[15][25]; // List of towers with this number in common int num_common[15]; // Number in common int res; // Bitset for results int subset; // Temporary set before results int main() { int n, x, m; // x = actual towers for (int c = 1; scanf("%d %d", &n, &x) && n > 0 && x > 0; ++c) { // Input FOR(i, 0, n) GET(tower[i]); GET(m); FOR(i, 0, m) { GET(t[i]); FOR(j, 0, t[i]) { GET(common_list[i][j]); --common_list[i][j]; } GET(num_common[i]); } // Find all subsets of the n towers that contain x towers. Based on these // subsets, calculate number that would be included in this attempt, and // check against max. res = 0; int max_cus = 0; int limit = (1 << n) - 1; FORe(i, 1, limit) { // Count number of towers in this set while adding up normal counts subset = i; int x_count = 0; int cus = 0; FOR(j, 0, n) { bool cmp = i & (1 << j); x_count += cmp; if (cmp) cus += tower[j]; } if (x_count != x) continue; // Subtract intersections // Count up number of shared for each tower entry, and subtract off the // excess - for instance if 3 regions share an area and are present in // this set subtract 2 times the number of people in the region. FOR(j, 0, m) { int shared = 0; FOR(k, 0, t[j]) { // i.e. check if the bit indicated by common_list[j][k] is on in // subset if (1 << common_list[j][k] & subset) ++shared; } if (shared > 1) cus -= (shared - 1) * num_common[j]; } // Compare if (cus > max_cus) { max_cus = cus; res = subset; } } // Output printf("Case Number %d\n", c); printf("Number of Customers: %d\n", max_cus); printf("Locations recommended:"); FOR(i, 0, n) if ((1 << i) & res) printf(" %d", i + 1); PLN; PLN; } return 0; }
31.054945
77
0.491154
btjanaka
8ff30c72198e4e0fa0117c6a222504a4dc19c4ad
1,356
cpp
C++
aplcore/src/utils/corelocalemethods.cpp
DamianMehers/apl-core-library
9c003dbfc8bc90709396c07179c523473d380db1
[ "Apache-2.0" ]
28
2019-11-05T12:23:01.000Z
2022-03-22T10:01:53.000Z
aplcore/src/utils/corelocalemethods.cpp
DamianMehers/apl-core-library
9c003dbfc8bc90709396c07179c523473d380db1
[ "Apache-2.0" ]
7
2020-03-28T12:44:08.000Z
2022-01-23T17:02:27.000Z
aplcore/src/utils/corelocalemethods.cpp
DamianMehers/apl-core-library
9c003dbfc8bc90709396c07179c523473d380db1
[ "Apache-2.0" ]
15
2019-12-25T10:15:52.000Z
2021-12-30T03:50:00.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ #include <algorithm> #include "apl/utils/corelocalemethods.h" namespace apl { std::string CoreLocaleMethods::toUpperCase(const std::string& value, const std::string& locale) { std::string result; result.resize(value.size()); std::transform(value.begin(), value.end(), result.begin(), [](unsigned char c) -> unsigned char { return std::toupper(c); }); return result; } std::string CoreLocaleMethods::toLowerCase(const std::string& value, const std::string& locale) { std::string result; result.resize(value.size()); std::transform(value.begin(), value.end(), result.begin(), [](unsigned char c) -> unsigned char { return std::tolower(c); }); return result; } } // namespace apl
29.478261
94
0.669617
DamianMehers
8ff4e14cb0d7d71254592165830773d2d85e93ed
2,541
cpp
C++
foobar2000/foobar2000/foo_vis_taskbar/main.cpp
vakuras/vis_taskbar
b11584ad6953ea0dc23e1ae2a30d9269a8134d42
[ "MIT" ]
null
null
null
foobar2000/foobar2000/foo_vis_taskbar/main.cpp
vakuras/vis_taskbar
b11584ad6953ea0dc23e1ae2a30d9269a8134d42
[ "MIT" ]
null
null
null
foobar2000/foobar2000/foo_vis_taskbar/main.cpp
vakuras/vis_taskbar
b11584ad6953ea0dc23e1ae2a30d9269a8134d42
[ "MIT" ]
null
null
null
#include "foo_vis_taskbar.h" #pragma comment(lib, "..\\shared\\shared.lib") // Foobar2K Component Variables #define COMPONENT_NAME "foo_vis_taskbar" #define COMPONENT_VERSION "0.1" #define COMPONENT_DESCRIPTION "foo_vis_taskbar (c) vDk. 2010.\n\nfoo_vis_taskbar displays a visualization behind MS Windows 7 taskbar." DECLARE_COMPONENT_VERSION(COMPONENT_NAME, COMPONENT_VERSION, COMPONENT_DESCRIPTION); class initquit_foo_vis_taskbar : public initquit { virtual void on_init() { foo_vis_taskbar::SetAppName(APPNAME); foo_vis_taskbar::InitTrace(); foo_vis_taskbar::Instance.Start(); } virtual void on_quit() { foo_vis_taskbar::Instance.Stop(); foo_vis_taskbar::DeInitTrace(); } }; static initquit_factory_t< initquit_foo_vis_taskbar > foo_initquit_foo_vis_taskbar; class preferences_page_foo_vis_taskbar_instance : public preferences_page_instance { private: HWND m_hWnd; preferences_page_callback::ptr m_Callback; public: preferences_page_foo_vis_taskbar_instance(HWND parent, preferences_page_callback::ptr callback) : m_Callback(callback) { foo_vis_taskbar::Instance.CloneSettings(); m_hWnd = foo_vis_taskbar::Instance.CreatePreferencesDialog(parent); } virtual t_uint32 get_state() { return preferences_state::resettable | preferences_state::changed; } virtual HWND get_wnd() { return m_hWnd; } virtual void apply() { foo_vis_taskbar::Instance.UpdateSettings(); m_Callback->on_state_changed(); } virtual void reset() { foo_vis_taskbar::Instance.CloneSettings(); SendMessage(m_hWnd, WM_INITDIALOG, 0, 0); InvalidateRect(m_hWnd, NULL, TRUE); UpdateWindow(m_hWnd); m_Callback->on_state_changed(); } }; class preferences_page_foo_vis_taskbar : public preferences_page_v3 { public: virtual const char * get_name() { return "foo_vis_taskbar"; } virtual GUID get_guid() { // {C3DC676D-AC31-45A6-AA3A-7EA0DD766D57} static const GUID guid = { 0xc3dc676d, 0xac31, 0x45a6, { 0xaa, 0x3a, 0x7e, 0xa0, 0xdd, 0x76, 0x6d, 0x57 } }; return guid; } virtual GUID get_parent_guid() { return preferences_page_v3::guid_display; } virtual preferences_page_instance::ptr instantiate(HWND parent, preferences_page_callback::ptr callback) { return new service_impl_t<preferences_page_foo_vis_taskbar_instance>(parent, callback); } }; static preferences_page_factory_t<preferences_page_foo_vis_taskbar> foo_preferences_page_foo_vis_taskbar;
26.46875
136
0.74144
vakuras
8ff4ff69c86f9d8b38e7992f4e3dc8962a6a9424
282
hxx
C++
src/elle/reactor/http/Client.hxx
infinitio/elle
d9bec976a1217137436db53db39cda99e7024ce4
[ "Apache-2.0" ]
521
2016-02-14T00:39:01.000Z
2022-03-01T22:39:25.000Z
src/elle/reactor/http/Client.hxx
infinitio/elle
d9bec976a1217137436db53db39cda99e7024ce4
[ "Apache-2.0" ]
8
2017-02-21T11:47:33.000Z
2018-11-01T09:37:14.000Z
src/elle/reactor/http/Client.hxx
infinitio/elle
d9bec976a1217137436db53db39cda99e7024ce4
[ "Apache-2.0" ]
48
2017-02-21T10:18:13.000Z
2022-03-25T02:35:20.000Z
namespace elle { namespace reactor { namespace http { template <typename ... Args> Request Client::request(Args&& ... args) { Request res(std::forward<Args>(args)...); this->_register(res); return res; } } } }
15.666667
49
0.507092
infinitio
8ff5bef569769e94002351367c88c5a98f91ddcc
3,064
cpp
C++
src/add-ons/screen_savers/gravity/ConfigView.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
1,338
2015-01-03T20:06:56.000Z
2022-03-26T13:49:54.000Z
src/add-ons/screen_savers/gravity/ConfigView.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
15
2015-01-17T22:19:32.000Z
2021-12-20T12:35:00.000Z
src/add-ons/screen_savers/gravity/ConfigView.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
350
2015-01-08T14:15:27.000Z
2022-03-21T18:14:35.000Z
/* * Copyright 2012-2013 Tri-Edge AI <triedgeai@gmail.com> * Copyright 2014-2016 Haiku, Inc. All rights reserved. * * Distributed under the terms of the MIT license. * * Authors: * Tri-Edge AI * John Scipione, jscipione@gmail.com */ #include "ConfigView.h" #include <LayoutBuilder.h> #include <ListView.h> #include <ScrollView.h> #include <Slider.h> #include <StringView.h> #include <View.h> #include "ColorItem.h" #include "Gravity.h" #include "RainbowItem.h" static const int32 kMsgSize = 'size'; static const int32 kMsgShade = 'shad'; ConfigView::ConfigView(BRect frame, Gravity* parent) : BView(frame, B_EMPTY_STRING, B_FOLLOW_ALL_SIDES, B_WILL_DRAW), fParent(parent), fTitleString(new BStringView(B_EMPTY_STRING, "OpenGL Gravity Effect")), fAuthorString(new BStringView(B_EMPTY_STRING, "by Tri-Edge AI")), fCountSlider(new BSlider(B_EMPTY_STRING, "Particle Count: ", new BMessage(kMsgSize), 0, 4, B_HORIZONTAL, B_BLOCK_THUMB, B_NAVIGABLE | B_WILL_DRAW)), fShadeString(new BStringView(B_EMPTY_STRING, "Shade: ")), fShadeList(new BListView(B_EMPTY_STRING, B_SINGLE_SELECTION_LIST, B_WILL_DRAW | B_NAVIGABLE)) { SetViewUIColor(B_PANEL_BACKGROUND_COLOR); fShadeList->SetSelectionMessage(new BMessage(kMsgShade)); fShadeList->AddItem(new ColorItem("Red", (rgb_color){ 255, 65, 54 })); fShadeList->AddItem(new ColorItem("Green", (rgb_color){ 46, 204, 64 })); fShadeList->AddItem(new ColorItem("Blue", (rgb_color){ 0, 116, 217 })); fShadeList->AddItem(new ColorItem("Orange", (rgb_color){ 255, 133, 27 })); fShadeList->AddItem(new ColorItem("Purple", (rgb_color){ 177, 13, 201 })); fShadeList->AddItem(new ColorItem("White", (rgb_color){ 255, 255, 255 })); fShadeList->AddItem(new RainbowItem("Rainbow")); fShadeScroll = new BScrollView(B_EMPTY_STRING, fShadeList, B_WILL_DRAW | B_FRAME_EVENTS, false, true); fCountSlider->SetHashMarks(B_HASH_MARKS_BOTTOM); fCountSlider->SetHashMarkCount(5); fCountSlider->SetLimitLabels("128", "2048"); fCountSlider->SetModificationMessage(new BMessage(kMsgSize)); fCountSlider->SetValue(parent->Config.ParticleCount); BLayoutBuilder::Group<>(this, B_VERTICAL, B_USE_DEFAULT_SPACING) .AddGroup(B_VERTICAL, 0) .Add(fTitleString) .Add(fAuthorString) .End() .Add(fShadeString) .Add(fShadeScroll) .Add(fCountSlider) .SetInsets(B_USE_DEFAULT_SPACING) .End(); } void ConfigView::AllAttached() { // fixup scroll bar range fShadeScroll->ScrollBar(B_VERTICAL)->SetRange(0.0f, fShadeList->ItemFrame(fShadeList->CountItems()).bottom - fShadeList->ItemFrame((int32)0).top); // select the shade fShadeList->Select(fParent->Config.ShadeID); } void ConfigView::AttachedToWindow() { fShadeList->SetTarget(this); fCountSlider->SetTarget(this); } void ConfigView::MessageReceived(BMessage* message) { switch (message->what) { case kMsgSize: fParent->Config.ParticleCount = fCountSlider->Value(); break; case kMsgShade: fParent->Config.ShadeID = fShadeList->CurrentSelection(); break; default: BView::MessageReceived(message); } }
26.877193
75
0.738577
Kirishikesan
8ff5e2c9ec572fe7baa63217e1d767a11e1c32b8
1,969
cpp
C++
AtCoder/ABC/ABC-097/SolveD.cpp
MonadicDavidHuang/CompetitiveProgramming
b5b6f39a1be05d257f8ea8e504dd910cc624b153
[ "MIT" ]
null
null
null
AtCoder/ABC/ABC-097/SolveD.cpp
MonadicDavidHuang/CompetitiveProgramming
b5b6f39a1be05d257f8ea8e504dd910cc624b153
[ "MIT" ]
null
null
null
AtCoder/ABC/ABC-097/SolveD.cpp
MonadicDavidHuang/CompetitiveProgramming
b5b6f39a1be05d257f8ea8e504dd910cc624b153
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; using ll = long long int; const int MAX = (int)(1e5 + 5); const ll INF = (ll)(1e10 + 5); const int MAX_N = (int)(1e5 + 5); const int MAX_M = (int)(1e5 + 5); ///////////////////////////////////////////////////////// // node in { 0, ... } class UnionFind { public: static const int MAX_N_LIB = (int)(2e5 + 100); int uf_par[MAX_N_LIB]; int uf_rank[MAX_N_LIB]; int uf_size[MAX_N_LIB]; UnionFind(int n) { init(n); } void init(int n) { for (int i = 0; i < n; ++i) { uf_par[i] = i; uf_rank[i] = 0; uf_size[i] = 1; } } int find(int x) { if (uf_par[x] == x) return x; else { return uf_par[x] = find(uf_par[x]); } } void unite(int leaf_x, int leaf_y) { int x = find(leaf_x); int y = find(leaf_y); if (x == y) return; if (uf_rank[x] < uf_rank[y]) { uf_par[x] = y; uf_size[y] += uf_size[x]; } else if (uf_rank[x] > uf_rank[y]) { uf_par[y] = x; uf_size[x] += uf_size[y]; } else { uf_par[y] = x; uf_size[x] += uf_size[y]; uf_rank[x] += 1; } } bool same(int x, int y) { return find(x) == find(y); } int size(int x) { return uf_size[find(x)]; } }; ///////////////////////////////////////////////////////// int n, m; int p[MAX_N]; map<int, set<int>> target_map; map<int, set<int>> goal_map; UnionFind uf(MAX_N); int ans; int main(void) { // Here your code ! scanf("%d %d", &n, &m); for (int i = 1; i <= n; ++i) { scanf("%d", &(p[i])); } for (int i = 0; i < m; ++i) { int x, y; scanf("%d %d", &x, &y); uf.unite(x, y); } for (int i = 1; i <= n; ++i) { int key = uf.find(i); target_map[key].insert(p[i]); goal_map[key].insert(i); } ans = 0; for (auto &e : target_map) { for (auto &d : e.second) { if (goal_map[e.first].find(d) != goal_map[e.first].end()) ans += 1; } } printf("%d\n", ans); return 0; }
18.231481
73
0.476384
MonadicDavidHuang
8ffcbce1424bb74fb833809b0c3c9b3b43b1d3f3
6,470
cpp
C++
src/CameraComponent.cpp
southdy/platformer
9d794338ac4d18ac439b5b47bab3cfeb538f79bb
[ "Apache-2.0" ]
2
2019-08-24T08:51:44.000Z
2020-12-24T05:54:48.000Z
src/CameraComponent.cpp
southdy/platformer
9d794338ac4d18ac439b5b47bab3cfeb538f79bb
[ "Apache-2.0" ]
null
null
null
src/CameraComponent.cpp
southdy/platformer
9d794338ac4d18ac439b5b47bab3cfeb538f79bb
[ "Apache-2.0" ]
2
2019-08-24T08:51:45.000Z
2020-12-24T05:54:51.000Z
#include "CameraComponent.h" #include "Common.h" #include "GameObject.h" #include "GameObjectController.h" #include "Messages.h" #include "PlayerComponent.h" #include "Scene.h" namespace game { CameraComponent::CameraComponent() : _camera(nullptr) , _player(nullptr) , _previousZoom(0.0f) , _zoomSpeedScale(0.003f) , _smoothSpeedScale(0.1f) , _targetBoundaryScale(0.25f, 0.5) , _boundary(std::numeric_limits<float>::max(), std::numeric_limits<float>::max()) { _currentZoom = getMaxZoom(); _targetZoom = getDefaultZoom(); } CameraComponent::~CameraComponent() { } void CameraComponent::onStart() { _camera = gameobjects::GameObjectController::getInstance().getScene()->getActiveCamera(); _camera->addRef(); _initialCurrentZoom = _currentZoom; _initialTargetZoom = _targetZoom; } void CameraComponent::readProperties(gameplay::Properties & properties) { gameobjects::setIfExists(properties, "target_boundary_screen_scale", _targetBoundaryScale); gameobjects::setIfExists(properties, "zoom_speed_scale", _zoomSpeedScale); gameobjects::setIfExists(properties, "smooth_speed_scale", _smoothSpeedScale); } void CameraComponent::finalize() { SAFE_RELEASE(_camera); SAFE_RELEASE(_player); } bool CameraComponent::onMessageReceived(gameobjects::Message *message, int messageType) { switch(messageType) { case Messages::Type::PostSimulationUpdate: if(_player) { onPostSimulationUpdate(_player->getRenderPosition(), PostSimulationUpdateMessage(message)._elapsedTime); } break; case Messages::Type::LevelLoaded: _player = getParent()->getComponentInChildren<PlayerComponent>(); _player->addRef(); break; case Messages::Type::LevelUnloaded: SAFE_RELEASE(_player); break; } return true; } void CameraComponent::onPostSimulationUpdate(gameplay::Vector3 const & target, float elapsedTime) { bool clamp = true; #ifndef _FINAL clamp = getConfig()->getBool("clamp_camera"); #endif if(_currentZoom != _targetZoom) { _currentZoom = gameplay::Curve::lerp(elapsedTime * _zoomSpeedScale, _currentZoom, _targetZoom); if(clamp) { _currentZoom = MATH_CLAMP(_currentZoom, getMinZoom(), getMaxZoom()); } if(_currentZoom != _previousZoom) { _camera->setZoomX(gameplay::Game::getInstance()->getWidth() * _currentZoom); _camera->setZoomY(gameplay::Game::getInstance()->getHeight() * _currentZoom); } _previousZoom = _currentZoom; } _targetPosition.smooth(target, elapsedTime / 1000.0f, _smoothSpeedScale); gameplay::Game::getInstance()->getAudioListener()->setPosition(_targetPosition.x, _targetPosition.y, 0.0); if(clamp) { float const offsetX = (gameplay::Game::getInstance()->getWidth() / 2) * _currentZoom; _targetPosition.x = MATH_CLAMP(_targetPosition.x, _boundary.x + offsetX, _boundary.x + _boundary.width - offsetX); float const offsetY = (gameplay::Game::getInstance()->getHeight() / 2) * _currentZoom; _targetPosition.y = MATH_CLAMP(_targetPosition.y, _boundary.y + offsetY, std::numeric_limits<float>::max()); } _camera->getNode()->setTranslation(gameplay::Vector3(_targetPosition.x, _targetPosition.y, 0)); } void CameraComponent::setBoundary(gameplay::Rectangle boundary) { _boundary = boundary; } void CameraComponent::setPosition(gameplay::Vector3 const & position) { _camera->getNode()->setTranslation(position); } float CameraComponent::getMinZoom() { return getMaxZoom() / 4; } float CameraComponent::getMaxZoom() { float const viewportWidth = 1280.0f; float const screenWidth = gameplay::Game::getInstance()->getWidth(); return GAME_UNIT_SCALAR * ((1.0f / screenWidth) * viewportWidth); } float CameraComponent::getDefaultZoom() { return (getMinZoom() + getMaxZoom()) / 2; } float CameraComponent::getZoom() const { return _currentZoom; } float CameraComponent::getTargetZoom() const { return _targetZoom; } gameplay::Matrix CameraComponent::getRenderViewProjectionMatrix() { gameplay::Camera * camera = gameobjects::GameObjectController::getInstance().getScene()->getActiveCamera(); gameplay::Matrix viewProj = camera->getViewProjectionMatrix(); viewProj.rotateX(MATH_DEG_TO_RAD(180)); viewProj.scale(GAME_UNIT_SCALAR); return viewProj; } gameplay::Matrix const & CameraComponent::getViewProjectionMatrix() { return gameobjects::GameObjectController::getInstance().getScene()->getActiveCamera()->getViewProjectionMatrix(); } gameplay::Rectangle CameraComponent::getRenderViewport() { gameplay::Camera * camera = gameobjects::GameObjectController::getInstance().getScene()->getActiveCamera(); gameplay::Rectangle viewport = gameplay::Game::getInstance()->getViewport(); float currentZoomX = camera->getZoomX(); #ifndef _FINAL if(getConfig()->getBool("show_culling")) { currentZoomX = getDefaultZoom() * viewport.width; } #endif float const zoomScale = GAME_UNIT_SCALAR * ((1.0f / GAME_UNIT_SCALAR) * (currentZoomX / viewport.width)); viewport.width *= zoomScale, viewport.height *= zoomScale; viewport.x = camera->getNode()->getTranslationX() - (viewport.width / 2.0f); viewport.y = camera->getNode()->getTranslationY() - (viewport.height / 2.0f); return viewport; } void CameraComponent::setZoom(float zoom) { _targetZoom = zoom; } gameplay::Vector3 const & CameraComponent::getPosition() const { return _camera->getNode()->getTranslation(); } gameplay::Rectangle const & CameraComponent::getTargetBoundary() const { return _boundary; } gameplay::Vector3 const & CameraComponent::getTargetPosition() const { return _targetPosition; } }
32.84264
126
0.63864
southdy
8fffedffa30031bcd5c9d2496f82e13057beed6e
663
cpp
C++
Examen3PC/P6_OddManOut/OddManOut.cpp
VanessaMMH/ProgComp2021A
03a3e0394b26eb78801246c7d6b7888fe53141bd
[ "BSD-3-Clause" ]
null
null
null
Examen3PC/P6_OddManOut/OddManOut.cpp
VanessaMMH/ProgComp2021A
03a3e0394b26eb78801246c7d6b7888fe53141bd
[ "BSD-3-Clause" ]
null
null
null
Examen3PC/P6_OddManOut/OddManOut.cpp
VanessaMMH/ProgComp2021A
03a3e0394b26eb78801246c7d6b7888fe53141bd
[ "BSD-3-Clause" ]
null
null
null
#include <bits/stdc++.h> using namespace std; /* link: https://open.kattis.com/problems/oddmanout */ int N, n = 0, G, tmp, res; int main(int argc, char const *argv[]) { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> N; while(n++ < N){ unordered_map<int, int> odds; cin >> G; for(int i = 0; i < G; i++){ cin >> tmp; odds[tmp]++; } for(auto it = odds.begin(); it != odds.end(); it++){ if(it->second == 1){ res = it->first; } } cout << "Case #" << n << ": " << res << endl; } return 0; }
19.5
60
0.446456
VanessaMMH
890736d44600075e0747c7c10fa2c1f3c3cf71da
920
cpp
C++
09/FixedVectorExample.cpp
memnoth/COMP3200CodeSamples
28c4921d9c2d5c6077cde2eb0e0e93cee7680ca4
[ "MIT" ]
60
2018-12-22T01:59:21.000Z
2022-02-16T07:34:51.000Z
09/FixedVectorExample.cpp
memnoth/COMP3200CodeSamples
28c4921d9c2d5c6077cde2eb0e0e93cee7680ca4
[ "MIT" ]
null
null
null
09/FixedVectorExample.cpp
memnoth/COMP3200CodeSamples
28c4921d9c2d5c6077cde2eb0e0e93cee7680ca4
[ "MIT" ]
32
2018-12-25T01:20:02.000Z
2022-01-16T01:59:33.000Z
#include <iostream> #include "FixedVector.h" #include "FixedVectorExample.h" #include "IntVector.h" using namespace std; namespace samples { void FixedVectorExample() { FixedVector<int, 3> scores; scores.Add(10); scores.Add(50); cout << "scores - <Size, Capacity>: " << "<" << scores.GetSize() << ", " << scores.GetCapacity() << ">" << endl; FixedVector<IntVector, 5> intVectors; intVectors.Add(IntVector(2, 5)); intVectors.Add(IntVector(4, 30)); intVectors.Add(IntVector(22, 3)); cout << "intVectors - <Size, Capacity>: " << "<" << intVectors.GetSize() << ", " << intVectors.GetCapacity() << ">" << endl; FixedVector<IntVector*, 4> intVectors2; IntVector* intVector = new IntVector(3, 2); intVectors2.Add(intVector); cout << "intVectors2 - <Size, Capacity>: " << "<" << intVectors2.GetSize() << ", " << intVectors2.GetCapacity() << ">" << endl; delete intVector; } }
24.864865
76
0.627174
memnoth
890afbc648cfab0ef765008fba8a4c1ffab17e03
1,984
cpp
C++
src/telecomms/msp_payloads/transmit_packet.cpp
MelbourneSpaceProgram/msp_flight_software_public
de290a2e7181ac43af1232b2ffbca2db8ec4ecd2
[ "MIT" ]
10
2018-04-28T04:44:56.000Z
2022-02-06T21:12:13.000Z
src/telecomms/msp_payloads/transmit_packet.cpp
MelbourneSpaceProgram/msp_flight_software_public
de290a2e7181ac43af1232b2ffbca2db8ec4ecd2
[ "MIT" ]
null
null
null
src/telecomms/msp_payloads/transmit_packet.cpp
MelbourneSpaceProgram/msp_flight_software_public
de290a2e7181ac43af1232b2ffbca2db8ec4ecd2
[ "MIT" ]
3
2019-02-16T03:22:26.000Z
2022-02-03T14:54:22.000Z
#include <src/messages/serialised_message_builder.h> #include <src/telecomms/lithium.h> #include <src/telecomms/msp_payloads/transmit_packet.h> #include <src/telecomms/msp_payloads/transmit_payload.h> #include <src/telecomms/fec/rs8.h> #include <xdc/runtime/Log.h> #include <src/util/msp_exception.h> #include <src/util/message_codes.h> #include <src/config/satellite.h> TransmitPacket::TransmitPacket(TransmitPayload *transmit_payload) : tx_count(Lithium::GetTxCounter()), rx_count(Lithium::GetRxCounter()), command_success_count(Lithium::GetCommandSuccessCounter()), transmit_payload(transmit_payload) {} SerialisedMessage TransmitPacket::SerialiseTo(byte *serial_buffer) const { SerialisedMessageBuilder builder(serial_buffer, GetSerialisedSize()); builder.AddData<uint8_t>(tx_count) .AddData<uint8_t>(rx_count) .AddData<uint8_t>(command_success_count) .AddData<uint8_t>(transmit_payload->GetPayloadCode()) .AddMessage(transmit_payload); if (kDownlinkFecEnabled) { try { EncodeWithFec(serial_buffer, &builder); } catch (MspException& e) { MspException::LogException(e, kTransmitPacketBuild); } } return builder.Build(); } void TransmitPacket::EncodeWithFec(byte* buffer, SerialisedMessageBuilder* builder) const{ if (builder->GetSerialisedMessageBufferSize() < Rs8::kBlockLength) { MspException e("Buffer size too small to allow FEC", kFecBufferTooSmall, __FILE__, __LINE__); throw e; } else if (builder->GetSerialisedLength() > Rs8::kDataLength) { MspException e("Payload size exceeds FEC block size", kPayloadExceedsFecBuffer, __FILE__, __LINE__); throw e; } builder->PadZeroes(); Rs8::Encode(buffer, buffer + Rs8::kDataLength); } uint16_t TransmitPacket::GetSerialisedSize() const { return Rs8::kBlockLength; }
35.428571
80
0.693044
MelbourneSpaceProgram
890cba4c34d8684ccc4c4aab3fb579aa858a534d
513
cpp
C++
examples/2_svg_parser.cpp
tyt2y3/tinybind
04a50a813521b468ae3994f848baac0c6f61e4dc
[ "Unlicense", "MIT" ]
18
2015-02-25T09:04:38.000Z
2021-06-10T13:57:20.000Z
examples/2_svg_parser.cpp
chinarouter/tinybind2
d4e898332cdfd1ecf47cee382ad1d8b3f0cabf11
[ "Unlicense", "MIT" ]
1
2016-03-18T11:03:31.000Z
2016-03-24T17:32:56.000Z
examples/2_svg_parser.cpp
tyt2y3/tinybind
04a50a813521b468ae3994f848baac0c6f61e4dc
[ "Unlicense", "MIT" ]
12
2015-04-09T06:34:49.000Z
2020-06-09T11:42:22.000Z
#include "../tinybind.h" //compile by g++ ../tinybind.cpp 2_svg_parser.cpp -o 2_svg_parser #include <string> #include <vector> #include <stdio.h> using namespace std; #include "../tinybind_struct.h" #include "2_svg.h" #include "../tinybind_xml.h" #include "2_svg.h" #include "../tinybind_clean.h" int main() { TiXmlDocument DOC; DOC.LoadFile("2_sample.svg"); svg SVG; TXB_fromxmldoc( &SVG, &DOC); TiXmlElement XELE("svg"); TXB_toxml( &SVG, &XELE); XELE.Print( stdout, 0); printf("\n"); return 1; }
17.1
65
0.678363
tyt2y3
890ccbbbe9f804241fdd6140be20a3c4a22410e7
1,441
cpp
C++
W_eclipse1_3/ch08.Wiimote/jni/WiiCNew/src/log/training.cpp
00wendi00/MyProject
204a659c2d535d8ff588f6d926bf0edc7f417661
[ "Apache-2.0" ]
1
2019-04-28T11:57:07.000Z
2019-04-28T11:57:07.000Z
W_eclipse1_3/ch08.Wiimote/jni/WiiCNew/src/log/training.cpp
00wendi00/MyProject
204a659c2d535d8ff588f6d926bf0edc7f417661
[ "Apache-2.0" ]
null
null
null
W_eclipse1_3/ch08.Wiimote/jni/WiiCNew/src/log/training.cpp
00wendi00/MyProject
204a659c2d535d8ff588f6d926bf0edc7f417661
[ "Apache-2.0" ]
null
null
null
#include "training.h" Training::~Training() { clear(); } /*** * Load data into a single training */ void Training::loadTraining(ifstream& infile) { string line; getline(infile,line); if(line == "acc") { loadAccTraining(infile); logType = LOG_ACC; } else cout << "[Error]: bad log type." << endl; } void Training::loadAccTraining(ifstream& infile) { istringstream xIn, yIn, zIn; string xLine, yLine, zLine; float xAcc, yAcc, zAcc; if(getline(infile,xLine) && getline(infile,yLine) && getline(infile,zLine)) { xIn.str(xLine); yIn.str(yLine); zIn.str(zLine); while(xIn >> xAcc) { yIn >> yAcc; zIn >> zAcc; samples.push_back(new AccSample(xAcc,yAcc,zAcc)); } } } void Training::save(ofstream& out) const { if(logType == LOG_ACC) { out << "acc" << endl; for(int i = 0 ; i < samples.size() ; i++) { AccSample* s = (AccSample*)samples[i]; out << s->x() << " "; } out << endl; for(int i = 0 ; i < samples.size() ; i++) { AccSample* s = (AccSample*)samples[i]; out << s->y() << " "; } out << endl; for(int i = 0 ; i < samples.size() ; i++) { AccSample* s = (AccSample*)samples[i]; out << s->z() << " "; } out << endl; } } void Training::addSample(Sample* s) { if(s) samples.push_back(s); } void Training::clear() { for(int i = 0 ; i < samples.size() ; i++) { if(samples[i]) { delete samples[i]; samples[i] = 0; } } samples.clear(); }
17.361446
78
0.572519
00wendi00
891218f5b98c4d19e6640485ac2923287aa810f8
1,738
cpp
C++
USACO/Bronze/2015Dec/ContaminatedMilk.cpp
polarr/competitive-programming
06e41fd72c785eb5621e20669d76ed99fafab901
[ "CC0-1.0" ]
1
2020-12-16T19:08:51.000Z
2020-12-16T19:08:51.000Z
USACO/Bronze/2015Dec/ContaminatedMilk.cpp
polarr/competitive-programming
06e41fd72c785eb5621e20669d76ed99fafab901
[ "CC0-1.0" ]
null
null
null
USACO/Bronze/2015Dec/ContaminatedMilk.cpp
polarr/competitive-programming
06e41fd72c785eb5621e20669d76ed99fafab901
[ "CC0-1.0" ]
null
null
null
/** Code by 1egend **/ // Problem: Contaminated Milk - USACO 2015 DEC BRONZE Q3 #include <bits/stdc++.h> using namespace std; #define pb push_back #define ull unsigned long long const int MAX_N = 1e5 + 1; const int MOD = 1e9 + 7; ifstream fin("badmilk.in"); ofstream fout("badmilk.out"); void solve(){ int n, m, d, s; fin >> n >> m >> d >> s; set <int> possible; for (int i = 1; i < m + 1; ++i){ possible.insert(i); } vector<tuple<int, int, int>> drink; vector<pair<int, int>> sick; for (int i = 0; i < d; ++i){ int a, b, c; fin >> a >> b >> c; drink.pb(make_tuple(a, b, c)); } for (int i = 0; i < s; ++i){ int a, b; fin >> a >> b; sick.pb(make_pair(a, b)); } sort(drink.begin(), drink.end()); for (int i = 0; i < s; ++i){ pair <int, int> patient = sick[i]; set <int> thisPossible; for (int k = 0; k < d; ++k){ tuple <int, int, int> cup = drink[k]; if (get<0>(cup) < patient.first){ continue; } if (get<0>(cup) > patient.first){ break; } if (get<2>(cup) < patient.second){ int maybeMilk = get<1>(cup); thisPossible.insert(maybeMilk); } } set <int> temp; set_intersection(possible.begin(), possible.end(), thisPossible.begin(), thisPossible.end(), inserter(temp, temp.begin())); possible = temp; } int ans = 0; for (const int &bad : possible){ int least = 0; int x = 0; for (int i = 0; i < d; ++i){ tuple <int, int, int> cup = drink[i]; if (get<1> (cup) == bad && get<0> (cup) > least){ ++x; least = get<0> (cup); // cout << least << " "; } } // cout << bad << endl; ans = max<int> (ans, x); } fout << ans; } int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); solve(); return 0; }
20.939759
125
0.547181
polarr
8913422715206f148300fbab514d5b1e42ffaf81
2,229
hpp
C++
cplusplus/src/Core/Input.hpp
TeodorVecerdi/saxion_cplusplus
5ffb57deb9d43b21cc72329d04f90185ecb858ad
[ "MIT" ]
1
2021-04-12T19:31:40.000Z
2021-04-12T19:31:40.000Z
cplusplus/src/Core/Input.hpp
TeodorVecerdi/saxion_cplusplus
5ffb57deb9d43b21cc72329d04f90185ecb858ad
[ "MIT" ]
null
null
null
cplusplus/src/Core/Input.hpp
TeodorVecerdi/saxion_cplusplus
5ffb57deb9d43b21cc72329d04f90185ecb858ad
[ "MIT" ]
null
null
null
#pragma once #include <SFML/Window/Event.hpp> class Input { public: inline static int mouseX; inline static int mouseY; static void setKey(int key, sf::Event::EventType mode) { bool press = mode == sf::Event::EventType::KeyPressed; if (press) { keydown[key] = true; lastKeyDown = key; } else { keyup[key] = true; lastKeyUp = key; } keys[key] = press; lastKey = key; } static void setButton(int button, sf::Event::EventType mode) { bool press = mode == sf::Event::EventType::MouseButtonPressed; if (press) mousehits[button] = true; else mouseup[button] = true; buttons[button] = press; } static bool GetKey(int key) { return keys[key]; } static bool GetKeyDown(int key) { return keydown[key]; } static bool GetKeyUp(int key) { return keyup[key]; } static bool AnyKey() { for (int i = 0; i < MAXKEYS; i++) if (keys[i]) return true; return false; } static bool AnyKeyDown() { for (int i = 0; i < MAXKEYS; i++) if (keydown[i]) return true; return false; } static bool AnyKeyUp() { for (int i = 0; i < MAXKEYS; i++) if (keyup[i]) return true; return false; } static int LastKey() { return lastKey; } static int LastKeyDown() { return lastKeyDown; } static int LastKeyUp() { return lastKeyUp; } static bool GetMouseButton(int button) { return buttons[button]; } static bool GetMouseButtonDown(int button) { return mousehits[button]; } static bool GetMouseButtonUp(int button) { return mouseup[button]; } static void resetHitCounters() { std::fill_n(keydown, MAXKEYS, false); std::fill_n(keyup, MAXKEYS, false); std::fill_n(mousehits, MAXBUTTONS, false); std::fill_n(mouseup, MAXBUTTONS, false); } static void updateMouse(int x, int y) { mouseX = x; mouseY = y; } private: inline const static int MAXKEYS = 65535; inline const static int MAXBUTTONS = 255; inline static bool keys[MAXKEYS + 1]; inline static bool keydown[MAXKEYS + 1]; inline static bool keyup[MAXKEYS + 1]; inline static bool buttons[MAXBUTTONS + 1]; inline static bool mousehits[MAXBUTTONS + 1]; inline static bool mouseup[MAXBUTTONS + 1]; inline static int lastKey; inline static int lastKeyDown; inline static int lastKeyUp; };
21.228571
64
0.67878
TeodorVecerdi
891498db6ea5d00d8ce714b276b0d074688f987c
610
cpp
C++
day2/02_layout/smallwidget.cpp
fuzongjian/QtStudy
cff7b1848b3287f4e172f69d0a3c3cfa48bd07af
[ "Apache-2.0" ]
1
2018-10-18T06:38:35.000Z
2018-10-18T06:38:35.000Z
day2/02_layout/smallwidget.cpp
fuzongjian/QtStudy
cff7b1848b3287f4e172f69d0a3c3cfa48bd07af
[ "Apache-2.0" ]
null
null
null
day2/02_layout/smallwidget.cpp
fuzongjian/QtStudy
cff7b1848b3287f4e172f69d0a3c3cfa48bd07af
[ "Apache-2.0" ]
1
2018-10-18T06:39:02.000Z
2018-10-18T06:39:02.000Z
#include "smallwidget.h" #include <QSpinBox> #include <QSlider> #include <QHBoxLayout> SmallWidget::SmallWidget(QWidget *parent) : QWidget(parent) { QSpinBox * spin = new QSpinBox(this); QSlider * slider = new QSlider(Qt::Horizontal,this); QHBoxLayout * layout = new QHBoxLayout;//如果没有指定父对象,需要setLayout设置 layout->addWidget(spin); layout->addWidget(slider); setLayout(layout); // 强制类型转换 connect(spin,static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), slider,&QSlider::setValue); connect(slider,&QSlider::valueChanged,spin,&QSpinBox::setValue); }
26.521739
79
0.695082
fuzongjian
89193cb00f97eeb6751f65cc98a72e4a64d03a7d
11,051
cpp
C++
packages/monte_carlo/core/src/MonteCarlo_SimulationElectronProperties.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
10
2019-11-14T19:58:30.000Z
2021-04-04T17:44:09.000Z
packages/monte_carlo/core/src/MonteCarlo_SimulationElectronProperties.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
43
2020-03-03T19:59:20.000Z
2021-09-08T03:36:08.000Z
packages/monte_carlo/core/src/MonteCarlo_SimulationElectronProperties.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
6
2020-02-12T17:37:07.000Z
2020-09-08T18:59:51.000Z
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_SimulationElectronProperties.cpp //! \author Alex Robinson, Luke Kersting //! \brief Simulation electron properties class def. //! //---------------------------------------------------------------------------// // FRENSIE Includes #include "FRENSIE_Archives.hpp" #include "MonteCarlo_SimulationElectronProperties.hpp" #include "Utility_DesignByContract.hpp" namespace MonteCarlo{ // The absolute min electron energy const double SimulationElectronProperties::s_absolute_min_electron_energy = 1.5e-5; // The absolute max electron energy (MeV) const double SimulationElectronProperties::s_absolute_max_electron_energy = 1.0e5; // Constructor SimulationElectronProperties::SimulationElectronProperties() : d_min_electron_energy( 1e-4 ), d_max_electron_energy( 20.0 ), d_evaluation_tol( 1e-7 ), d_electron_interpolation_type( LOGLOGLOG_INTERPOLATION ), d_electron_grid_type( UNIT_BASE_CORRELATED_GRID ), d_num_electron_hash_grid_bins( 1000 ), d_atomic_relaxation_mode_on( true ), d_elastic_mode_on( true ), d_elastic_interpolation_type( LOGLOGLOG_INTERPOLATION ), d_elastic_distribution_mode( COUPLED_DISTRIBUTION ), d_coupled_elastic_sampling_method( MODIFIED_TWO_D_UNION ), d_elastic_cutoff_angle_cosine( 1.0 ), d_bremsstrahlung_mode_on( true ), d_bremsstrahlung_interpolation_type( LOGLOGLOG_INTERPOLATION ), d_bremsstrahlung_angular_distribution_function( TWOBS_DISTRIBUTION ), d_electroionization_mode_on( true ), d_electroionization_interpolation_type( LOGLOGLOG_INTERPOLATION ), d_electroionization_sampling_mode( KNOCK_ON_SAMPLING ), d_atomic_excitation_mode_on( true ), d_threshold_weight( 0.0 ), d_survival_weight() { /* ... */ } // Set the minimum electron energy (MeV) void SimulationElectronProperties::setMinElectronEnergy( const double energy ) { // Make sure the energy is valid testPrecondition(energy >= s_absolute_min_electron_energy); testPrecondition( energy < d_max_electron_energy ); d_min_electron_energy = energy; } // Return the minimum electron energy (MeV) double SimulationElectronProperties::getMinElectronEnergy() const { return d_min_electron_energy; } // Return the absolute minimum electron energy (MeV) double SimulationElectronProperties::getAbsoluteMinElectronEnergy() { return s_absolute_min_electron_energy; } // Set the maximum electron energy (MeV) void SimulationElectronProperties::setMaxElectronEnergy( const double energy ) { // Make sure the energy is valid testPrecondition( energy > d_min_electron_energy ); testPrecondition(energy <= s_absolute_max_electron_energy); d_max_electron_energy = energy; } // Return the maximum electron energy (MeV) - cannot be set at runtime double SimulationElectronProperties::getMaxElectronEnergy() const { return d_max_electron_energy; } // Return the absolute maximum electron energy (MeV) double SimulationElectronProperties::getAbsoluteMaxElectronEnergy() { return s_absolute_max_electron_energy; } // Set the electron FullyTabularTwoDDistribution evaluation tolerance (default = 1e-7) /*! \details The evaluation tolerance is used by the * InterpolatedFullyTabularTwoDDistribution as the tolerance when performing * evaluations. */ void SimulationElectronProperties::setElectronEvaluationTolerance( const double tol ) { d_evaluation_tol = tol; } // Return the electron FullyTabularTwoDDistribution evaluation tolerance (default = 1e-7) /*! \details The evaluation tolerance is used by the * InterpolatedFullyTabularTwoDDistribution as the tolerance when performing * evaluations. */ double SimulationElectronProperties::getElectronEvaluationTolerance() const { return d_evaluation_tol; } // Set the electron 2D interpolation policy (LogLogLog by default) void SimulationElectronProperties::setElectronTwoDInterpPolicy( const TwoDInterpolationType interp_type ) { d_electron_interpolation_type = interp_type; } // Return the electron 2D interpolation policy TwoDInterpolationType SimulationElectronProperties::getElectronTwoDInterpPolicy() const { return d_electron_interpolation_type; } // Set the electron bivariate grid policy (Unit-base Correlated by default) void SimulationElectronProperties::setElectronTwoDGridPolicy( TwoDGridType grid_type ) { d_electron_grid_type = grid_type; } // Return the electron bivariate grid policy TwoDGridType SimulationElectronProperties::getElectronTwoDGridPolicy() const { return d_electron_grid_type; } // Set the number of electron hash grid bins void SimulationElectronProperties::setNumberOfElectronHashGridBins( const unsigned bins ) { // Make sure the number of bins is valid testPrecondition( bins >= 1 ); d_num_electron_hash_grid_bins = bins; } // Get the number of electron hash grid bins unsigned SimulationElectronProperties::getNumberOfElectronHashGridBins() const { return d_num_electron_hash_grid_bins; } // Set atomic relaxation mode to off (on by default) void SimulationElectronProperties::setAtomicRelaxationModeOff() { d_atomic_relaxation_mode_on = false; } // Set atomic relaxation mode to on (on by default) void SimulationElectronProperties::setAtomicRelaxationModeOn() { d_atomic_relaxation_mode_on = true; } // Return if atomic relaxation mode is on bool SimulationElectronProperties::isAtomicRelaxationModeOn() const { return d_atomic_relaxation_mode_on; } // Set elastic mode to off (on by default) void SimulationElectronProperties::setElasticModeOff() { d_elastic_mode_on = false; } // Set elastic mode to on (on by default) void SimulationElectronProperties::setElasticModeOn() { d_elastic_mode_on = true; } // Return if elastic mode is on bool SimulationElectronProperties::isElasticModeOn() const { return d_elastic_mode_on; } // Set the elastic distribution mode ( Decoupled by default ) void SimulationElectronProperties::setElasticElectronDistributionMode( const ElasticElectronDistributionType distribution_mode ) { d_elastic_distribution_mode = distribution_mode; } // Return the elastic distribution mode ElasticElectronDistributionType SimulationElectronProperties::getElasticElectronDistributionMode() const { return d_elastic_distribution_mode; } // Set the coupled elastic sampling mode ( Two D Union by default ) void SimulationElectronProperties::setCoupledElasticSamplingMode( const CoupledElasticSamplingMethod sampling_method ) { d_coupled_elastic_sampling_method = sampling_method; } // Return the coupled elastic sampling mode CoupledElasticSamplingMethod SimulationElectronProperties::getCoupledElasticSamplingMode() const { return d_coupled_elastic_sampling_method; } // Set the elastic cutoff angle cosine (mu = 1.0 by default) void SimulationElectronProperties::setElasticCutoffAngleCosine( const double cutoff_angle_cosine ) { d_elastic_cutoff_angle_cosine = cutoff_angle_cosine; } // Return the elastic cutoff angle cosine double SimulationElectronProperties::getElasticCutoffAngleCosine() const { return d_elastic_cutoff_angle_cosine; } // Set electroionization mode to off (on by default) void SimulationElectronProperties::setElectroionizationModeOff() { d_electroionization_mode_on = false; } // Set electroionization mode to on (on by default) void SimulationElectronProperties::setElectroionizationModeOn() { d_electroionization_mode_on = true; } // Return if electroionization mode is on bool SimulationElectronProperties::isElectroionizationModeOn() const { return d_electroionization_mode_on; } // Set the electroionization sampling mode (KNOCK_ON_SAMPLING by default) void SimulationElectronProperties::setElectroionizationSamplingMode( const ElectroionizationSamplingType sampling_mode ) { d_electroionization_sampling_mode = sampling_mode; } // Return the electroionization sampling mode ElectroionizationSamplingType SimulationElectronProperties::getElectroionizationSamplingMode() const { return d_electroionization_sampling_mode; } // Set bremsstrahlung mode to off (on by default) void SimulationElectronProperties::setBremsstrahlungModeOff() { d_bremsstrahlung_mode_on = false; } // Set bremsstrahlung mode to on (on by default) void SimulationElectronProperties::setBremsstrahlungModeOn() { d_bremsstrahlung_mode_on = true; } // Return if bremsstrahlung mode is on bool SimulationElectronProperties::isBremsstrahlungModeOn() const { return d_bremsstrahlung_mode_on; } // Set the bremsstrahlung photon angular distribution function (2BS by default) void SimulationElectronProperties::setBremsstrahlungAngularDistributionFunction( const BremsstrahlungAngularDistributionType function ) { d_bremsstrahlung_angular_distribution_function = function; } // Return the bremsstrahlung photon angular distribution function (2BS by default) BremsstrahlungAngularDistributionType SimulationElectronProperties::getBremsstrahlungAngularDistributionFunction() const { return d_bremsstrahlung_angular_distribution_function; } // Set atomic excitation mode to off (on by default) void SimulationElectronProperties::setAtomicExcitationModeOff() { d_atomic_excitation_mode_on = false; } // Set atomic excitation mode to on (on by default) void SimulationElectronProperties::setAtomicExcitationModeOn() { d_atomic_excitation_mode_on = true; } // Return if atomic excitation mode is on bool SimulationElectronProperties::isAtomicExcitationModeOn() const { return d_atomic_excitation_mode_on; } // Set the cutoff roulette threshold weight void SimulationElectronProperties::setElectronRouletteThresholdWeight( const double threshold_weight ) { // Make sure the weights are valid testPrecondition( threshold_weight > 0.0 ); d_threshold_weight = threshold_weight; } // Return the cutoff roulette threshold weight double SimulationElectronProperties::getElectronRouletteThresholdWeight() const { return d_threshold_weight; } // Set the cutoff roulette threshold weight /*! \details The survival weight should be set after the threshold weight to * ensure the weight is valid. */ void SimulationElectronProperties::setElectronRouletteSurvivalWeight( const double survival_weight ) { // Make sure the weights are valid testPrecondition( survival_weight > d_threshold_weight ); d_survival_weight = survival_weight; } // Return the cutoff roulette survival weight double SimulationElectronProperties::getElectronRouletteSurvivalWeight() const { return d_survival_weight; } EXPLICIT_CLASS_SERIALIZE_INST( SimulationElectronProperties ); } // end MonteCarlo namespace BOOST_CLASS_EXPORT_IMPLEMENT( MonteCarlo::SimulationElectronProperties ); //---------------------------------------------------------------------------// // end MonteCarlo_SimulationElectronProperties.cpp //---------------------------------------------------------------------------//
30.78273
89
0.780472
bam241
891a2392017f84c39efb7669ea4ac5d670137760
3,155
hpp
C++
modules/cvv/src/gui/overview_table_row.hpp
Nondzu/opencv_contrib
0b0616a25d4239ee81fda965818b49b721620f56
[ "BSD-3-Clause" ]
7,158
2016-07-04T22:19:27.000Z
2022-03-31T07:54:32.000Z
modules/cvv/src/gui/overview_table_row.hpp
Nondzu/opencv_contrib
0b0616a25d4239ee81fda965818b49b721620f56
[ "BSD-3-Clause" ]
2,184
2016-07-05T12:04:14.000Z
2022-03-30T19:10:12.000Z
modules/cvv/src/gui/overview_table_row.hpp
Nondzu/opencv_contrib
0b0616a25d4239ee81fda965818b49b721620f56
[ "BSD-3-Clause" ]
5,535
2016-07-06T12:01:10.000Z
2022-03-31T03:13:24.000Z
#ifndef CVVISUAL_OVERVIEWTABLEROW_HPP #define CVVISUAL_OVERVIEWTABLEROW_HPP #include <vector> #include <QTableWidget> #include <QString> #include <QPixmap> #include "../impl/call.hpp" #include "../util/util.hpp" namespace cvv { namespace gui { /** * @brief A UI wrapper for an impl::Call, providing utility and UI functions. * * Also allowing it to add its data to a table. */ class OverviewTableRow { public: /** * @brief Constructor of this class. * @param call call this row is based on */ OverviewTableRow(util::Reference<const impl::Call> call); ~OverviewTableRow() { } /** * @brief Adds the inherited data set to the given table. * @param table given table * @param row row index at which the data will be shown * @param showImages does the table show images? * @param maxImages the maximum number of images the table shows * @param imgHeight height of the shown images * @param imgWidth width of the shown images */ void addToTable(QTableWidget *table, size_t row, bool showImages, size_t maxImages, int imgHeight = 100, int imgWidth = 100); /** * @brief Resizes the images in the given row. * Make sure to call this after (!) you called addToTable() with the * same row parameter on this object some time. * @param table given table * @param row row index at which the data will be shown * @param showImages does the table show images? * @param maxImages the maximum number of images the table shows * @param imgHeight height of the shown images * @param imgWidth width of the shown images */ void resizeInTable(QTableWidget *table, size_t row, bool showImages, size_t maxImages, int imgHeight = 100, int imgWidth = 100); /** * @brief Get the inherited call. * @return the inherited call */ util::Reference<const impl::Call> call() const { return call_; } /** * @brief Returns the description of the inherited call. * @return description of the inherited call. */ QString description() const { return description_; } /** * @brief Returns the id of the inherited call. * @return id of the inherited call. */ size_t id() const { return id_; } /** * @brief Returns the function name property of the inherited call. * @return function name property of the inherited call. */ QString function() const { return functionStr; } /** * @brief Returns the file name of the inherited call. * @return file name of the inherited call. */ QString file() const { return fileStr; } /** * @brief Returns the line property of the inherited call. * @return line property of the inherited call. */ size_t line() const { return line_; } /** * @brief Returns the type of the inherited call. * @return type of the inherited call. */ QString type() const { return typeStr; } private: util::Reference<const impl::Call> call_; size_t id_ = 0; size_t line_ = 0; QString idStr = ""; QString description_ = ""; std::vector<QPixmap> imgs{}; QString functionStr = ""; QString fileStr = ""; QString lineStr = ""; QString typeStr = ""; }; } } #endif
21.909722
77
0.676387
Nondzu
891a87b669334eb055fc393403c19d7478e90287
7,076
cpp
C++
sw/src/skt.cpp
fpgasystems/SKT
828e32de9f344f53bbd061d2b8c7642164105e48
[ "BSD-3-Clause" ]
5
2021-07-25T14:53:20.000Z
2022-03-29T06:21:23.000Z
sw/src/skt.cpp
fpgasystems/SKT
828e32de9f344f53bbd061d2b8c7642164105e48
[ "BSD-3-Clause" ]
null
null
null
sw/src/skt.cpp
fpgasystems/SKT
828e32de9f344f53bbd061d2b8c7642164105e48
[ "BSD-3-Clause" ]
1
2021-10-01T10:55:29.000Z
2021-10-01T10:55:29.000Z
/** * Copyright (c) 2020, Systems Group, ETH Zurich * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of the copyright holder nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "skt.hpp" #include <map> #include <vector> #include <algorithm> #include <limits> #include <cstring> #include <cmath> //--------------------------------------------------------------------------- // Utilities for hash_e enum template<> char const *name_of<hash_e>(hash_e val) { static char const *LOOKUP[(unsigned)hash_e::end] = { "IDENT", "SIP", "MURMUR3_32", "MURMUR3_64", "MURMUR3_128", #ifdef INCLUDE_AVX_HASHES "MURMUR3_32AVX", "MURMUR3_64AVX", #endif }; return val < hash_e::end? LOOKUP[(unsigned)val] : "<undef>"; } template<> hash_e value_of<hash_e>(char const *name) { static std::map<char const*, hash_e, std::function<bool(char const*, char const*)>> const LOOKUP { { { "IDENT", hash_e::IDENT }, { "SIP", hash_e::SIP }, { "MURMUR3_32", hash_e::MURMUR3_32 }, { "MURMUR3_64", hash_e::MURMUR3_64 }, { "MURMUR3_128", hash_e::MURMUR3_128 }, #ifdef INCLUDE_AVX_HASHES { "MURMUR3_32AVX", hash_e::MURMUR3_32AVX }, { "MURMUR3_64AVX", hash_e::MURMUR3_64AVX }, #endif }, [](char const *a, char const *b) { return strcmp(a, b) < 0; } }; auto const res = LOOKUP.find(name); return res != LOOKUP.end()? res->second : hash_e::end; } //--------------------------------------------------------------------------- // Hash-based Dispatch Table std::array<SktCollector::dispatch_t, (unsigned)hash_e::end> const SktCollector::DISPATCH { SktCollector::dispatch_t { skt_collect_ptr<hash_e::IDENT> }, SktCollector::dispatch_t { skt_collect_ptr<hash_e::SIP> }, SktCollector::dispatch_t { skt_collect_ptr<hash_e::MURMUR3_32> }, SktCollector::dispatch_t { skt_collect_ptr<hash_e::MURMUR3_64> }, SktCollector::dispatch_t { skt_collect_ptr<hash_e::MURMUR3_128> }, #ifdef INCLUDE_AVX_HASHES SktCollector::dispatch_t { skt_collect_ptr<hash_e::MURMUR3_32AVX> }, SktCollector::dispatch_t { skt_collect_ptr<hash_e::MURMUR3_64AVX> }, #endif }; #include <iostream> void SktCollector::merge0(SktCollector const& other) { if(this->m_p_hll != other.m_p_hll) throw std::invalid_argument("HLL incompatible bucket sets."); if(this->m_p_agms != other.m_p_agms || this->m_r_agms != other.m_r_agms) throw std::invalid_argument("AGMS incompatible table."); if(this->m_p_cm != other.m_p_cm || this->m_r_cm != other.m_r_cm) throw std::invalid_argument("CM incompatible table."); size_t const M_hll = 1<<other.m_p_hll; size_t const M_agms = (1<<other.m_p_agms) * other.m_r_agms; size_t const M_cm = (1<<other.m_p_cm) * other.m_r_cm; for(size_t i = 0; i < M_hll; i++) { unsigned *const ref = &this->m_buckets_hll[i]; unsigned const cand = other.m_buckets_hll[i]; if(*ref < cand) *ref = cand; } for(size_t i = 0; i < M_agms; i++) { signed *const ref = &this->m_table_agms[i]; signed const cand = other.m_table_agms[i]; *ref += cand; } for(size_t i = 0; i < M_cm; i++) { unsigned *const ref = &this->m_table_cm[i]; unsigned const cand = other.m_table_cm[i]; *ref += cand; } } void SktCollector::merge0_columns(SktCollector const& other) { size_t const N = (1<<other.m_p_agms); for(size_t i = 0; i < other.m_r_agms; i++) { signed *const ref = &this->m_table_agms[i]; for (size_t j=0; j<N; j++){ signed const cand = other.m_table_agms[i*N+j]; *ref += cand*cand; } //std::cout<< this->m_table[i]<<std::endl; } } double SktCollector::get_median() { signed *const ref = &this->m_table_agms[0]; unsigned val = this->m_r_agms; std::sort(ref, ref+val); double median = double(m_table_agms[(val-1)/2] + m_table_agms[val/2])/2; return median; } double SktCollector::estimate_cardinality() { size_t const M = 1<<m_p_hll; double const ALPHA = (0.7213*M)/(M+1.079); // Raw Estimate and Zero Count size_t zeros = 0; double rawest = 0.0; for(unsigned i = 0; i < M; i++) { unsigned const rank = m_buckets_hll[i]; if(rank == 0) zeros++; if(std::numeric_limits<double>::is_iec559) { union { uint64_t i; double f; } d = { .i = (UINT64_C(1023)-rank)<<52 }; rawest += d.f; } else rawest += 1.0/pow(2.0, rank); } rawest = (ALPHA * M * M) / rawest; // Refine Output if(rawest <= 2.5*M) { // Small Range Correction // Linear counting if(zeros) return M * log((double)M / (double)zeros); } // DROP Large Range Correction - It makes things worse instead of better. // else if(rawest > CONST_TWO_POWER_32/30.0) { // Large Range Correction // return (-CONST_TWO_POWER_32) * log(1.0 - (rawest / CONST_TWO_POWER_32)); // } return rawest; } void SktCollector::clean(){ size_t const M_hll = 1<<this->m_p_hll; size_t const M_agms = (1<<this->m_p_agms) * this->m_r_agms; size_t const M_cm = (1<<this->m_p_cm) * this->m_r_cm; for(unsigned i=0; i<M_hll; i++) this->m_buckets_hll[i] = 0; for(unsigned i=0; i<M_agms; i++) this->m_table_agms[i] = 0; for(unsigned i=0; i<M_cm; i++) this->m_table_cm[i] = 0; }
36.287179
104
0.615885
fpgasystems
891e32a7c8cc6b810d9135ddf7c1ef7f0606e031
1,733
cxx
C++
physics/neutron/nudy/src/TVNudyModelFile3.cxx
Geant-RnD/geant
ffff95e23547531f3254ada2857c062a31f33e8f
[ "ECL-2.0", "Apache-2.0" ]
2
2016-10-16T14:37:42.000Z
2018-04-05T15:49:09.000Z
physics/neutron/nudy/src/TVNudyModelFile3.cxx
Geant-RnD/geant
ffff95e23547531f3254ada2857c062a31f33e8f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
physics/neutron/nudy/src/TVNudyModelFile3.cxx
Geant-RnD/geant
ffff95e23547531f3254ada2857c062a31f33e8f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#include "Geant/TVNudyModel.h" #include "TList.h" #include "Geant/TNudyEndfFile.h" #include "Geant/TNudyEndfTab1.h" #include "Geant/TNudyCore.h" using namespace Nudy; //______________________________________________________________________________ void TVNudyModel::ReadFile3(TNudyEndfFile *file) { TIter secIter(file->GetSections()); TNudyEndfSec *sec; while ((sec = (TNudyEndfSec *)secIter.Next())) { if (sec->GetMT() == (int)fReaction) { // Read the data required for GetXSect(E) TNudyEndfTab1 *record = (TNudyEndfTab1 *)(sec->GetRecords()->At(0)); fEXSect_length = record->GetNP(); fE_file3 = new double[fEXSect_length](); fXSect_file3 = new double[fEXSect_length](); for (int i = 0; i < fEXSect_length; i++) { fE_file3[i] = record->GetX(i); fXSect_file3[i] = record->GetY(i); } } } } //______________________________________________________________________________ double TVNudyModel::GetXSect(double e) { if (!fE_file3 || !fXSect_file3 || fEXSect_length == 0) { Error("GetXSect", "Energy-Cross Section data for model is not set\n"); return 0; } if (e <= fE_file3[0]) return fXSect_file3[0]; if (e >= fE_file3[fEXSect_length - 1]) return fXSect_file3[fEXSect_length - 1]; int low, high, mid; low = 0; high = fEXSect_length; while (high - low > 1) { mid = (low + high) / 2; if (fE_file3[mid] >= e) high = mid; else low = mid; } if (high == low) return fXSect_file3[low]; else return TNudyCore::Instance()->LinearInterpolation(fE_file3[low], fXSect_file3[low], fE_file3[high], fXSect_file3[high], e); }
32.092593
103
0.633583
Geant-RnD
89213495e2dbbcbe313f141d110c7ea65a1fbbc4
5,557
cpp
C++
Src/Vessel/ShuttleA/mfdbutton.cpp
Ybalrid/orbiter
7bed82f845ea8347f238011367e07007b0a24099
[ "MIT" ]
1,040
2021-07-27T12:12:06.000Z
2021-08-02T14:24:49.000Z
Src/Vessel/ShuttleA/mfdbutton.cpp
Ybalrid/orbiter
7bed82f845ea8347f238011367e07007b0a24099
[ "MIT" ]
20
2021-07-27T12:25:22.000Z
2021-08-02T12:22:19.000Z
Src/Vessel/ShuttleA/mfdbutton.cpp
Ybalrid/orbiter
7bed82f845ea8347f238011367e07007b0a24099
[ "MIT" ]
71
2021-07-27T14:19:49.000Z
2021-08-02T05:51:52.000Z
// Copyright (c) Martin Schweiger // Licensed under the MIT License // ============================================================== // ORBITER MODULE: ShuttleA // Part of the ORBITER SDK // // mfdbutton.cpp // User interface for MFD buttons // ============================================================== #define STRICT 1 #include "mfdbutton.h" // MFD button font geometry const int MFD_font_xpos[256] = { // character x-positions in texture 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,80/*(*/,87/*)*/,93/***/,101/*+*/,111/*,*/,116/*-*/,125/*.*/,130/*/*/, 137/*0*/,147/*1*/,156/*2*/,166/*3*/,175/*4*/,185/*5*/,195/*6*/,204/*7*/,214/*8*/,224/*9*/,234/*:*/,240/*;*/,247/*<*/,256/*=*/,267/*>*/,278/*?*/, 288/*@*/,304/*A*/,316/*B*/,328/*C*/,340/*D*/,352/*E*/,362/*F*/,373/*G*/,386/*H*/,398/*I*/,404/*J*/,414/*K*/,425/*L*/,435/*M*/,449/*N*/,461/*O*/, 474/*P*/,485/*Q*/,497/*R*/,2/*S*/,13/*T*/,24/*U*/,36/*V*/,48/*W*/,64/*X*/,76/*Y*/,87/*Z*/,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, }; const int MFD_font_width[256] = { // character widths in texture 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,6/*(*/,6/*)*/,7/***/,9/*+*/,5/*,*/,9/*-*/,5/*.*/,7/*/*/, 9/*0*/,9/*1*/,9/*2*/,9/*3*/,9/*4*/,9/*5*/,9/*6*/,9/*7*/,9/*8*/,9/*9*/,5/*:*/,5/*;*/,8/*<*/,10/*=*/,8/*>*/,9/*?*/, 14/*@*/,11/*A*/,11/*B*/,10/*C*/,10/*D*/,9/*E*/,9/*F*/,11/*G*/,10/*H*/,4/*I*/,8/*J*/,10/*K*/,9/*L*/,13/*M*/,10/*N*/,11/*O*/, 9/*P*/,11/*Q*/,11/*R*/,10/*S*/,10/*T*/,10/*U*/,10/*V*/,14/*W*/,10/*X*/,9/*Y*/,10/*Z*/,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, }; const int MFD_font_ypos[2] = {0,16}; const int MFD_font_height = 16; const int texlabelw = 44; // horizontal MFD button centres for left/right button column of left/right MFD const int lblx[2][2] = {{LMFD_X-26,LMFD_X+284},{RMFD_X-26,RMFD_X+284}}; // button top edges const int lbly[6] = {PANEL2D_MAINH-272, PANEL2D_MAINH-234, PANEL2D_MAINH-196, PANEL2D_MAINH-158, PANEL2D_MAINH-120, PANEL2D_MAINH-82}; // ============================================================== MFDButtonCol::MFDButtonCol (VESSEL3 *v, DWORD _mfdid, DWORD _lr): PanelElement (v) { mfdid = _mfdid; lr = _lr; xcnt = PANELEL_TEXW - texlabelw/2; }; // ============================================================== void MFDButtonCol::AddMeshData2D (MESHHANDLE hMesh, DWORD grpidx) { static const DWORD nbtn = 6; static const DWORD nvtx = 4*nbtn; static const DWORD nidx = 6*nbtn; static const WORD base_idx[6] = { 0,1,2, 3,2,1 }; DWORD btn, i; int x0 = lblx[mfdid][lr]-15; NTVERTEX vtx[nvtx]; WORD idx[nidx]; memset (vtx, 0, nvtx*sizeof(NTVERTEX)); for (btn = 0; btn < nbtn; btn++) { for (i = 0; i < 4; i++) { vtx[btn*4+i].x = (float)(x0+(i%2)*30); vtx[btn*4+i].y = (float)(lbly[btn] + (i/2)*13 + 1.5); vtx[btn*4+i].tu = (float)(PANELEL_TEXW - (i%2 ? 0 : texlabelw))/(float)PANELEL_TEXW; vtx[btn*4+i].tv = (float)(PANELEL_TEXH - MFD_font_height*(24-mfdid*12-lr*6-btn-(i/2?1:0)))/(float)PANELEL_TEXH; } for (i = 0; i < 6; i++) idx[btn*6+i] = (WORD)btn*4 + base_idx[i]; } AddGeometry (hMesh, grpidx, vtx, nvtx, idx, nidx); } // ============================================================== bool MFDButtonCol::Redraw2D (SURFHANDLE surf) { int btn, x, y, ysrc, len, i, w; const char *label; y = PANELEL_TEXH - MFD_font_height*(24-mfdid*12-lr*6); // blank buttons oapiBlt (surf, surf, xcnt-texlabelw/2, y, xcnt-texlabelw/2, PANELEL_TEXH-MFD_font_height*30, texlabelw, MFD_font_height*6); // write labels for (btn = 0; btn < 6; btn++) { if (label = oapiMFDButtonLabel (mfdid, btn+lr*6)) { len = strlen(label); for (w = i = 0; i < len; i++) w += MFD_font_width[label[i]]; for (i = 0, x = xcnt-w/2; i < len; i++) { w = MFD_font_width[label[i]]; ysrc = (label[i] < 'S' ? 0:16); if (w) { oapiBlt (surf, surf, x, y, MFD_font_xpos[label[i]], ysrc, w, MFD_font_height); x += w; } } } else break; y += MFD_font_height; } return false; } // ============================================================== bool MFDButtonCol::ProcessMouse2D (int event, int mx, int my) { if (my%38 < 27) { int bt = my/38 + lr*6; oapiProcessMFDButton (mfdid, bt, event); return true; } else return false; } // ============================================================== // ============================================================== MFDButtonRow::MFDButtonRow (VESSEL3 *v, DWORD _mfdid): PanelElement (v) { mfdid = _mfdid; } // ============================================================== bool MFDButtonRow::ProcessMouse2D (int event, int mx, int my) { bool proc = false; if (mx % 50 < 37) { int bt = mx/50; switch (bt) { case 0: oapiToggleMFD_on (mfdid); return true; case 1: oapiSendMFDKey (mfdid, OAPI_KEY_F1); return true; case 2: oapiSendMFDKey (mfdid, OAPI_KEY_GRAVE); return true; } } return false; }
32.881657
145
0.502069
Ybalrid
8921c83c983eccabc8ad5fcc4c4c8b02c1a18638
2,947
cpp
C++
gui/ctrl/look/tree.cpp
r3dl3g/guipp
3d3179be3022935b46b59f1b988a029abeabfcbf
[ "MIT" ]
null
null
null
gui/ctrl/look/tree.cpp
r3dl3g/guipp
3d3179be3022935b46b59f1b988a029abeabfcbf
[ "MIT" ]
null
null
null
gui/ctrl/look/tree.cpp
r3dl3g/guipp
3d3179be3022935b46b59f1b988a029abeabfcbf
[ "MIT" ]
null
null
null
/** * @copyright (c) 2016-2021 Ing. Buero Rothfuss * Riedlinger Str. 8 * 70327 Stuttgart * Germany * http://www.rothfuss-web.de * * @author <a href="mailto:armin@rothfuss-web.de">Armin Rothfuss</a> * * Project gui++ lib * * @brief tree look * * @license MIT license. See accompanying file LICENSE. */ // -------------------------------------------------------------------------- // // Library includes // #include <gui/draw/graphics.h> #include <gui/draw/drawers.h> #include <gui/draw/brush.h> #include <gui/draw/pen.h> #include <gui/draw/font.h> #include <gui/draw/icons.h> #include <gui/io/pnm.h> #include <gui/ctrl/look/control.h> #include <gui/ctrl/look/tree.h> namespace gui { namespace tree { icon_drawer standard_icon_drawer (bool has_children, bool is_open, bool selected) { if (has_children) { if (is_open) { } return &draw::draw_icon<draw::icon_type::folder_open>; } else { return &draw::draw_icon<draw::icon_type::folder>; } return &draw::draw_icon<draw::icon_type::file>; } } // tree namespace look { void tree_button (draw::graphics& graph, const core::rectangle& area, bool is_open, const draw::pen& pn) { const auto radius = area.max_radius()/ 2; if (is_open) { graph.frame(draw::icon_t<draw::icon_type::down>(area.center(), radius), pn); } else { graph.frame(draw::icon_t<draw::icon_type::right>(area.center(), radius), pn); } } void tree_node (draw::graphics& graph, const core::rectangle& area, const draw::brush& background, std::size_t depth, const std::string& label, tree::icon_drawer icon, bool has_children, bool is_open, ctrl::item_state state) { if (!color::is_transparent(background.color())) { graph.fill(draw::rectangle(area), get_background_color(state, background.color())); } const auto radius = area.max_radius(); core::rectangle r = area + core::point(core::point::type(depth * radius * 2), 0); const os::color col = get_text_color(state); draw::pen pn(col, 1, draw::pen::Style::solid, draw::pen::Cap::round, draw::pen::Join::round); if (has_children) { r.width(radius * 2); tree_button(graph, r, is_open, pn); } r += core::point(radius*2, 0); if (icon) { (*icon)(graph, pn, {r.x() + radius, r.center_y()}, radius); r += core::point(radius * 2 + 5, 0); } r.x2(area.x2()); graph.text(draw::text_box(label, r, text_origin_t::vcenter_left), draw::font::system(), col); } } // look } // gui
29.178218
99
0.531388
r3dl3g
892541845c98898efa6104b194f61390ac75ee4e
1,903
hpp
C++
tools/io.hpp
pzh2386034/phosphor-ipmi-flash
c557dc1302e46c60431af8b55056c5d24331063b
[ "Apache-2.0" ]
7
2019-01-20T08:36:51.000Z
2021-09-04T19:03:53.000Z
tools/io.hpp
pzh2386034/phosphor-ipmi-flash
c557dc1302e46c60431af8b55056c5d24331063b
[ "Apache-2.0" ]
9
2018-08-06T03:30:47.000Z
2022-03-08T17:28:07.000Z
tools/io.hpp
pzh2386034/phosphor-ipmi-flash
c557dc1302e46c60431af8b55056c5d24331063b
[ "Apache-2.0" ]
4
2019-08-22T21:03:59.000Z
2021-12-17T10:00:05.000Z
#pragma once #include "internal/sys.hpp" #include "io_interface.hpp" #include <cstdint> #include <string> namespace host_tool { class DevMemDevice : public HostIoInterface { public: explicit DevMemDevice(const internal::Sys* sys = &internal::sys_impl) : sys(sys) {} ~DevMemDevice() = default; /* Don't allow copying, assignment or move assignment, only moving. */ DevMemDevice(const DevMemDevice&) = delete; DevMemDevice& operator=(const DevMemDevice&) = delete; DevMemDevice(DevMemDevice&&) = default; DevMemDevice& operator=(DevMemDevice&&) = delete; bool read(const std::size_t offset, const std::size_t length, void* const destination) override; bool write(const std::size_t offset, const std::size_t length, const void* const source) override; private: static const std::string devMemPath; int devMemFd = -1; void* devMemMapped = nullptr; const internal::Sys* sys; }; class PpcMemDevice : public HostIoInterface { public: explicit PpcMemDevice(const std::string& ppcMemPath, const internal::Sys* sys = &internal::sys_impl) : ppcMemPath(ppcMemPath), sys(sys) {} ~PpcMemDevice() override; /* Don't allow copying or assignment, only moving. */ PpcMemDevice(const PpcMemDevice&) = delete; PpcMemDevice& operator=(const PpcMemDevice&) = delete; PpcMemDevice(PpcMemDevice&&) = default; PpcMemDevice& operator=(PpcMemDevice&&) = default; bool read(const std::size_t offset, const std::size_t length, void* const destination) override; bool write(const std::size_t offset, const std::size_t length, const void* const source) override; private: void close(); int ppcMemFd = -1; const std::string ppcMemPath; const internal::Sys* sys; }; } // namespace host_tool
26.430556
75
0.663163
pzh2386034
8927c202b3b63c7628ad6fa8ee59673ad134e1ba
14,673
cpp
C++
DNN_Primitives/code/amd/eventGEMM.cpp
hpc-ulisboa/nonconventional-dvfs
e1a633e541be93da0b41d27047627116f902e3b8
[ "MIT" ]
1
2021-12-02T22:40:53.000Z
2021-12-02T22:40:53.000Z
DNN_Primitives/code/amd/eventGEMM.cpp
TheEmbbededCoder/GPU-Characterization
297031f6cd7008df62a7e37927308310daebe003
[ "MIT" ]
null
null
null
DNN_Primitives/code/amd/eventGEMM.cpp
TheEmbbededCoder/GPU-Characterization
297031f6cd7008df62a7e37927308310daebe003
[ "MIT" ]
1
2022-01-11T16:48:50.000Z
2022-01-11T16:48:50.000Z
#include <chrono> #include <iomanip> #include <iostream> #include <memory> #include <stdexcept> #include <tuple> #include <vector> #include <cmath> #include <rocblas.h> #include <cstdlib> #include "tensor.h" #include "gemm_problems.h" #include <limits> #include <unistd.h> #include <sys/wait.h> #include <signal.h> #include <list> #include <iterator> #include <functional> #define ERROR_TOLERANCE 0.001 #define MAX_RAND 1 #define MIN_RAND 0.1 #define TEST_RUN float ComputeMedian(std::list<float> listOfErrors) { float median = 0; int halfPos; bool pair; int listSize = 0; int i = 0; listSize = listOfErrors.size(); if(listSize != 0) { halfPos = listSize / 2; if (listSize % 2 == 0) pair = true; else pair = false; std::list <float> :: iterator it; for(it = listOfErrors.begin(); it != listOfErrors.end(); ++it) { if(i == halfPos - 1 && pair == true) { median = *it; } else if(i == halfPos && pair == true) { median += *it; median /= 2.0; break; } else if(i == halfPos && pair == false) { median = *it; break; } i++; } } return median; } void CalculatePrintAvgMedian(std::list<float> listOfErrors) { float avg = 0.0; float min_error = 0.0; float max_error = 0.0; float median = 0.0; int i = 0; int halfPos = 0; bool pair; int listSize = 0; std::list <float> firstHalf; std::list <float> secondHalf; listSize = listOfErrors.size(); if(listSize != 0) { halfPos = listSize / 2; if (listSize % 2 == 0) pair = true; else pair = false; std::list <float> :: iterator it; for(it = listOfErrors.begin(); it != listOfErrors.end(); ++it) { if(i == 0) min_error = *it; if(i == listSize - 1) max_error = *it; if(i < halfPos - 1) { firstHalf.push_front(*it); } else if(i == halfPos - 1 && pair == true) { median = *it; firstHalf.push_front(*it); } else if(i == halfPos - 1 && pair == false) { firstHalf.push_front(*it); } else if(i == halfPos && pair == true) { median += *it; median /= 2.0; secondHalf.push_front(*it); } else if(i == halfPos && pair == false) { median = *it; } else { secondHalf.push_front(*it); } avg += *it; i++; } avg /= listSize; } float firstQuartile = ComputeMedian(firstHalf); float thirdQuartile = ComputeMedian(secondHalf); float IQR = thirdQuartile - firstQuartile; std::cout << "Average Percentage of Relative Error: " << avg << " %\n"; std::cout << "Median Percentage of Relative Error: " << median << " %\n"; std::cout << "\n"; std::cout << "Minimum value: " << min_error << " %\n"; std::cout << "1st quartile: " << firstQuartile << " %\n"; std::cout << "2nd quartile: " << median << " %\n"; std::cout << "3rd quartile: " << thirdQuartile << " %\n"; std::cout << "Maximum value: " << max_error << " %\n"; std::cout << "IQR: " << IQR << " %\n"; std::cout << "\n"; } void print(std::vector<int> const &input) { for (auto const& i: input) { std::cout << i << " "; } } float RandomFloat() { float random = ((float) rand()) / (float) RAND_MAX; float diff = MIN_RAND - MAX_RAND; float r = random * diff; return MAX_RAND + r; } template<typename T> std::vector<T> rand_local(std::vector<int> dims) { size_t d = std::accumulate(dims.begin(), dims.end(), 1, std::multiplies<int>()); std::vector<T> host_ptr(d); std::srand(std::time(0)); for(int i=0;i<d;i++) { host_ptr[i] = RandomFloat(); } return host_ptr; } template<typename T> Tensor<T> vector2tensor2Device(std::vector<int> dims, std::vector<T> host_ptr) { Tensor<T> tensor(dims); size_t d = std::accumulate(dims.begin(), dims.end(), 1, std::multiplies<int>()); hipMemcpy(tensor.ptr_.get(), host_ptr.data(), d*sizeof(T), hipMemcpyHostToDevice); return tensor; } template<typename T> std::vector<T> tensor2Host2vector(std::vector<int> dims, Tensor<T> tensor) { size_t d = std::accumulate(dims.begin(), dims.end(), 1, std::multiplies<int>()); std::vector<T> host_ptr(d); hipMemcpy(host_ptr.data(), tensor.ptr_.get(), d*sizeof(T), hipMemcpyDeviceToHost); return host_ptr; } double time_gemm(Tensor<float> A, Tensor<float> B, Tensor<float> C, bool a_t, bool b_t, rocblas_handle handle, int pid) { const float alpha = 1.f / static_cast<float>(A.dims()[1]); const float beta = 1.f; int m = C.dims()[0]; int k = a_t ? A.dims()[0] : A.dims()[1]; int n = C.dims()[1]; int numRepeats = std::max(std::ceil(1e11 / (m * k * n)), 10.); // Warm up rocblas_status stat = rocblas_sgemm( handle, a_t ? rocblas_operation_transpose : rocblas_operation_none, b_t ? rocblas_operation_transpose : rocblas_operation_none, m, n, k, &alpha, A.begin(), A.dims()[0], B.begin(), B.dims()[0], &beta, C.begin(), C.dims()[0] ); if (stat != rocblas_status_success) { throw std::runtime_error("sgemm failed"); } hipDeviceSynchronize(); if(pid != -1) { printf("Num numRepeats %d .\n", numRepeats); kill(pid, SIGUSR1); } auto start = std::chrono::steady_clock::now(); for (int i = 0; i < numRepeats; ++i) { rocblas_status stat = rocblas_sgemm( handle, a_t ? rocblas_operation_transpose : rocblas_operation_none, b_t ? rocblas_operation_transpose : rocblas_operation_none, m, n, k, &alpha, A.begin(), A.dims()[0], B.begin(), B.dims()[0], &beta, C.begin(), C.dims()[0] ); if (stat != rocblas_status_success) { throw std::runtime_error("sgemm failed"); } } hipDeviceSynchronize(); auto end = std::chrono::steady_clock::now(); if (pid != -1) { kill(pid, SIGUSR2); } return static_cast<double>(std::chrono::duration<double, std::micro>(end - start).count() / numRepeats); } int main(int argc, char **argv) { if(argc != 6) { std::cout << "Usage: " << argv[0] << " [m > 0] [n > 0] [k > 0] [a_t = True|False] [b_t = True|False]" << '\n'; return 0; } // Argument parsing std::string a_t_string(argv[4]); std::string b_t_string(argv[5]); int m, n, k; bool a_t, b_t; std::string m_string = argv[1]; std::string n_string = argv[2]; std::string k_string = argv[3]; try { std::size_t pos; m = std::stoi(m_string, &pos); if (pos < m_string.size()) { std::cerr << "Trailing characters after number: " << m_string << '\n'; } n = std::stoi(n_string, &pos); if (pos < n_string.size()) { std::cerr << "Trailing characters after number: " << n_string << '\n'; } k = std::stoi(k_string, &pos); if (pos < k_string.size()) { std::cerr << "Trailing characters after number: " << k_string << '\n'; } if (m < 1 || n < 1 || k < 1) { std::cout << "Usage: " << argv[0] << " [m > 0] [n > 0] [k > 0] [a_t = True|False] [b_t = True|False]" << '\n'; return 0; } } catch (std::invalid_argument const &ex) { std::cerr << "Invalid number: " << m_string << n_string << k_string << '\n'; } catch (std::out_of_range const &ex) { std::cerr << "Number out of range: " << m_string << n_string << k_string << '\n'; } if (a_t_string == "True") { a_t = true; } else if (a_t_string == "False") { a_t = false; } else { std::cout << "Usage: " << argv[0] << " [m > 0] [n > 0] [k > 0] [a_t = True|False] [b_t = True|False]" << '\n'; return 0; } if (b_t_string == "True") { b_t = true; } else if (b_t_string == "False") { b_t = false; } else { std::cout << "Usage: " << argv[0] << " [m > 0] [n > 0] [k > 0] [a_t = True|False] [b_t = True|False]" << '\n'; return 0; } int status; #ifdef TEST_RUN printf("TEST_RUN\n"); // Resets the DVFS Settings to guarantee correct MemCpy of the data status = system("rocm-smi -r"); status = system("./DVFS -P 7"); status = system("./DVFS -p 3"); #endif // Synchronize in order to wait for memory operations to finish hipDeviceSynchronize(); int pid = fork(); if(pid == 0) { char *args[4]; std::string gpowerSAMPLER = "gpowerSAMPLER_peak"; std::string e = "-e"; std::string time_string = "-s 1"; args[0] = (char *) gpowerSAMPLER.c_str(); args[1] = (char *) e.c_str(); args[2] = (char *) time_string.c_str(); args[3] = NULL; if( execvp(args[0], args) == -1) { printf("Error lauching gpowerSAMPLER_peak.\n"); } exit(0); } else { hipFree(0); hipSetDevice(1); rocblas_handle handle; rocblas_create_handle(&handle); auto a_v = rand_local<float>({a_t ? k : m, a_t ? m : k}); auto b_v = rand_local<float>({b_t ? n : k, b_t ? k : n}); auto a = vector2tensor2Device<float>({a_t ? k : m, a_t ? m : k}, a_v); auto b = vector2tensor2Device<float>({b_t ? n : k, b_t ? k : n}, b_v); auto c = zeros<float>({m, n}); #ifdef TEST_RUN // Apply custom DVFS profile status = system("python applyDVFS.py 7 3"); printf("Apply DVFS status: %d\n", status); #endif if(status == 0) { printf("Start Testing\n"); kill(pid, SIGUSR1); double registered_time = time_gemm(a, b, c, a_t, b_t, handle, pid); printf("End Testing\n"); std::cout << " m n k a_t b_t time (usec) " << std::endl; std::cout << std::setw(7) << m; std::cout << std::setw(7) << n; std::cout << std::setw(7) << k; std::cout << std::setw(7) << (a_t ? "t" : "n"); std::cout << std::setw(7) << (b_t ? "t" : "n"); std::cout << std::setw(16) << std::setprecision(5) << registered_time; std::cout << std::endl; // Resets the DVFS Settings status = system("rocm-smi -r"); #ifdef TEST_RUN status = system("./DVFS -P 7"); status = system("./DVFS -p 3"); #endif hipDeviceSynchronize(); auto c_v = tensor2Host2vector<float>({b_t ? n : k, b_t ? k : n}, c); std::cout << "Registered Time: " << registered_time << " ms" << std::endl; hipFree(0); hipSetDevice(1); auto a_default = vector2tensor2Device<float>({a_t ? k : m, a_t ? m : k}, a_v); auto b_default = vector2tensor2Device<float>({b_t ? n : k, b_t ? k : n}, b_v); auto c_default = zeros<float>({m, n}); printf("Start Testing Verification\n"); double registered_time_default = time_gemm(a_default, b_default, c_default, a_t, b_t, handle, -1); printf("End Testing Verification\n"); std::cout << " m n k a_t b_t time (usec) " << std::endl; std::cout << std::setw(7) << m; std::cout << std::setw(7) << n; std::cout << std::setw(7) << k; std::cout << std::setw(7) << (a_t ? "t" : "n"); std::cout << std::setw(7) << (b_t ? "t" : "n"); std::cout << std::setw(16) << std::setprecision(5) << registered_time_default; std::cout << std::endl; std::cout << std::endl; std::cout << "Registered Time DEFAULT DVFS: " << registered_time_default << " ms" << std::endl; auto c_v_default = tensor2Host2vector<float>({b_t ? n : k, b_t ? k : n}, c_default); std::list <float> listOfErrors; /*typedef std::numeric_limits< double > dbl; std::cout.precision(dbl::max_digits10);*/ int errors = 0; float max_error = 0, relative_error; for(std::vector<int>::size_type i = 0; i != c_v.size(); i++) { relative_error = abs(c_v[i] - c_v_default[i])/abs(c_v[i])*100; if(relative_error > max_error) max_error = relative_error; if (relative_error > ERROR_TOLERANCE) { std::cout << "ERROR: " << c_v[i] << " != " << c_v_default[i] << " ERROR: "<< abs(c_v[i] - c_v_default[i]) << " .\n"; errors++; listOfErrors.push_front(relative_error); } //std::cout << c_v[i] << " != " << c_v_default[i] << " ABS: "<< abs(c_v[i] - c_v_default[i]) << '\n'; } //Sor the errors in the list listOfErrors.sort(); float percentage_errors = (float ) errors/c_v.size() * 100; std::cout << "Size: " << c_v.size() << " .\nErrors: " << errors << " .\nMax Relative Error: " << max_error << " %\n"; std::cout << "Percentage of output matrix with errors: " << percentage_errors << " %\n"; CalculatePrintAvgMedian(listOfErrors); if(errors == 0) { std::cout << "Result: True ." << '\n'; } else { std::cout << "Result: False ." << '\n'; } rocblas_destroy_handle(handle); } else { rocblas_destroy_handle(handle); hipDeviceReset(); // Kills gpowerSAMPLER child process kill(pid, SIGKILL); // Wait for child process to finish pid = wait(&status); return -1; } hipDeviceReset(); } return 0; }
31.691145
136
0.491311
hpc-ulisboa
892de3217eadc76496b986f9b02315dfb9d31a50
4,781
cpp
C++
Mains/offline_sec_path_modelling.cpp
psykulsk/RpiANC
8ca3f54cdfb90ca3bf31d492714851c919c5ae39
[ "MIT-0", "MIT" ]
54
2019-12-07T06:04:11.000Z
2022-03-10T22:52:37.000Z
Mains/offline_sec_path_modelling.cpp
psykulsk/RpiANC
8ca3f54cdfb90ca3bf31d492714851c919c5ae39
[ "MIT-0", "MIT" ]
5
2020-09-20T15:00:11.000Z
2021-12-15T22:18:25.000Z
Mains/offline_sec_path_modelling.cpp
psykulsk/RpiANC
8ca3f54cdfb90ca3bf31d492714851c919c5ae39
[ "MIT-0", "MIT" ]
9
2019-04-15T08:00:18.000Z
2021-11-12T10:14:03.000Z
#include <vector> #include <chrono> #include <iostream> #include <omp.h> #include <random> #include "../Headers/capture.h" #include "../Headers/playback.h" #include "../Headers/processing.h" #include "../Headers/common.h" #include "../Headers/LMSFilter.h" #define DEPLOYED_ON_RPI #define FEEDFORWARD int main() { omp_set_num_threads(4); const long RESERVED_SAMPLES = 2560000; std::vector<fixed_sample_type> err_vec; err_vec.reserve(RESERVED_SAMPLES); std::vector<fixed_sample_type> ref_vec; ref_vec.reserve(RESERVED_SAMPLES); std::vector<fixed_sample_type> corr_vec; corr_vec.reserve(RESERVED_SAMPLES); std::vector<fixed_sample_type> corr_vec_2; corr_vec_2.reserve(RESERVED_SAMPLES); #ifdef DEPLOYED_ON_RPI const std::string capture_device_name = RPI_CAPTURE_DEVICE_NAME; const std::string playback_device_name = RPI_PLAYBACK_DEVICE_NAME; #else const std::string capture_device_name = "default"; const std::string playback_device_name = "default"; #endif snd_pcm_t *cap_handle; unsigned int play_freq = 44100; unsigned int number_of_channels = NR_OF_CHANNELS; snd_pcm_uframes_t cap_frames_per_period = CAP_FRAMES_PER_PERIOD; snd_pcm_uframes_t cap_frames_per_device_buffer = CAP_PERIODS_PER_BUFFER * CAP_FRAMES_PER_PERIOD; init_capture(&cap_handle, &play_freq, &cap_frames_per_period, &cap_frames_per_device_buffer, NR_OF_CHANNELS, capture_device_name); snd_pcm_t *play_handle; snd_pcm_uframes_t play_frames_per_period = PLAY_FRAMES_PER_PERIOD; snd_pcm_uframes_t play_frames_per_device_buffer = PLAY_PERIODS_PER_BUFFER * PLAY_FRAMES_PER_PERIOD; init_playback(&play_handle, &play_freq, &play_frames_per_period, &play_frames_per_device_buffer, number_of_channels, playback_device_name); int sample = 0; std::array<fixed_sample_type, BUFFER_SAMPLE_SIZE> capture_buffer = {0}; std::array<fixed_sample_type, BUFFER_SAMPLE_SIZE> playback_buffer = {0}; std::array<fixed_sample_type, BUFFER_SAMPLE_SIZE> processing_buffer = {0}; std::array<fixed_sample_type, BUFFER_SAMPLE_SIZE> reference_generated_for_processing = {0}; const int START_PROCESSING_AFTER_SAMPLE = 1000; auto secondary_path_estimation_filter = LMSFilter<FX_FILTER_LENGTH>(SEC_PATH_LMS_STEP_SIZE); while (sample < 300000) { ++sample; #pragma omp parallel sections { #pragma omp section { capture(cap_handle, capture_buffer.data(), CAP_FRAMES_PER_PERIOD); dc_removal(capture_buffer.data(), BUFFER_SAMPLE_SIZE); #ifdef CAP_MEASUREMENTS for (unsigned int i = 0; i < BUFFER_SAMPLE_SIZE; ++i) if (i % 2) err_vec.push_back(capture_buffer[i]); else ref_vec.push_back(capture_buffer[i]); #endif } #pragma omp section { if (sample > START_PROCESSING_AFTER_SAMPLE) { secondary_path_identification(processing_buffer.data(), reference_generated_for_processing.data(), BUFFER_SAMPLE_SIZE, secondary_path_estimation_filter); } #ifdef CAP_MEASUREMENTS for (unsigned int i = 0; i < BUFFER_SAMPLE_SIZE; ++i) { if (i % 2) corr_vec_2.push_back(processing_buffer[i]); else corr_vec.push_back(floating_to_signed_fixed(secondary_path_estimation_filter.fir_filter.get_coefficients().at(0))); } #endif } #pragma omp section { for (unsigned int i = 0; i < BUFFER_SAMPLE_SIZE; ++i) { float r = -1.0f + static_cast <float> (rand()) / (RAND_MAX / 2.0f); playback_buffer.at(i) = floating_to_signed_fixed(r); } playback(play_handle, playback_buffer.data(), PLAY_FRAMES_PER_PERIOD); } } // Exchange data between arrays std::copy(playback_buffer.begin(), playback_buffer.end(), reference_generated_for_processing.begin()); std::copy(capture_buffer.begin(), capture_buffer.end(), processing_buffer.begin()); } std::cout << "Final coefficients:" << "\n"; for (float coeff : secondary_path_estimation_filter.fir_filter.get_coefficients()) { std::cout << coeff << ",\n"; } #ifdef CAP_MEASUREMENTS save_vector_to_file("rec/err_mic.dat", err_vec); save_vector_to_file("rec/ref_mic.dat", ref_vec); save_vector_to_file("rec/corr_sig.dat", corr_vec); #endif snd_pcm_drain(play_handle); snd_pcm_close(play_handle); return 0; }
36.776923
139
0.662623
psykulsk
892e46556209b2d612654a7e8d719f7ffb9117b0
1,257
cpp
C++
src/Network/test-parameters.cpp
wt-student-projects/computer-game-ai
33eb9e5334f64a4290c1196b2a2709c71bc1917b
[ "Apache-2.0" ]
1
2019-10-13T02:56:45.000Z
2019-10-13T02:56:45.000Z
src/Network/test-parameters.cpp
bsc-william-taylor/computer-game-ai
33eb9e5334f64a4290c1196b2a2709c71bc1917b
[ "Apache-2.0" ]
1
2017-04-08T20:50:57.000Z
2017-04-09T00:57:49.000Z
src/Network/test-parameters.cpp
wt-student-projects/computer-game-ai
33eb9e5334f64a4290c1196b2a2709c71bc1917b
[ "Apache-2.0" ]
null
null
null
#include "test-parameters.h" TestParameters::TestParameters(const char* filename) { XMLDocument document; document.LoadFile(filename); auto rootOne = getRootNode(document, "Settings", "SettingsMLP"); auto rootTwo = getRootNode(document, "Settings", "SettingsRBF"); mlp.errorThreshold = atof(rootOne->FirstChildElement("ErrorThreshold")->GetText()); mlp.learningRate = atof(rootOne->FirstChildElement("LearningRate")->GetText()); mlp.iterations = atof(rootOne->FirstChildElement("Iterations")->GetText()); rbf.errorThreshold = atof(rootTwo->FirstChildElement("ErrorThreshold")->GetText()); rbf.learningRate = atof(rootTwo->FirstChildElement("LearningRate")->GetText()); rbf.iterations = atof(rootTwo->FirstChildElement("Iterations")->GetText()); trainingSet = atof(getNodeText(document, "Settings", "TrainingData")); noise = atof(getNodeText(document, "Settings", "Noise")); } XMLElement* TestParameters::getRootNode(XMLDocument& doc, const char* base, const char* section) { return doc.FirstChildElement(base)->FirstChildElement(section); } const char* TestParameters::getNodeText(XMLDocument& doc, const char* base, const char* section) { return getRootNode(doc, base, section)->GetText(); }
39.28125
96
0.733492
wt-student-projects
8930eedfefd7955d96c854d94b15ee5af5eeccff
7,002
cc
C++
mindspore/lite/tools/converter/micro/coder/opcoders/custom/custom_coder.cc
zhz44/mindspore
6044d34074c8505dd4b02c0a05419cbc32a43f86
[ "Apache-2.0" ]
1
2022-03-05T02:59:21.000Z
2022-03-05T02:59:21.000Z
mindspore/lite/tools/converter/micro/coder/opcoders/custom/custom_coder.cc
zhz44/mindspore
6044d34074c8505dd4b02c0a05419cbc32a43f86
[ "Apache-2.0" ]
null
null
null
mindspore/lite/tools/converter/micro/coder/opcoders/custom/custom_coder.cc
zhz44/mindspore
6044d34074c8505dd4b02c0a05419cbc32a43f86
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2021 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <string> #include <map> #include "tools/converter/micro/coder/opcoders/op_coder.h" #include "tools/converter/micro/coder/opcoders/file_collector.h" #include "tools/converter/micro/coder/opcoders/serializers/serializer.h" #include "tools/converter/micro/coder/opcoders/custom/custom_coder.h" #include "tools/converter/micro/coder/opcoders/op_coder_register.h" #include "tools/converter/micro/coder/opcoders/kernel_registry.h" #include "src/common/prim_util.h" #include "nnacl/custom_parameter.h" using mindspore::schema::PrimitiveType_Custom; namespace mindspore::lite::micro { std::map<Tensor *, void *> CustomCoder::const_tensor_map_; void CustomCoder::Populate(const void *prim) { auto op = static_cast<const schema::Primitive *>(prim)->value_as_Custom(); type_ = op->type()->str(); for (size_t i = 0; i < op->attr()->size(); ++i) { auto attr = op->attr()->Get(i); std::string data; for (size_t j = 0; j < attr->data()->size(); ++j) { data.push_back(static_cast<char>(attr->data()->Get(j))); } attrs_[attr->name()->str()] = data; } } int CustomCoder::Prepare(CoderContext *const context) { if (GetPrimitiveType(node_->primitive_, schema_version_) != PrimitiveType_Custom) { MS_LOG(ERROR) << "Primitive type should be custom"; return RET_ERROR; } Populate(node_->primitive_); for (const auto &tensor : input_tensors_) { if (tensor->category() == lite::Category::CONST_TENSOR) { if (!const_tensor_map_.count(tensor)) { auto buff = allocator_->Malloc(kNumberTypeUInt8, tensor->Size(), kOfflinePackWeight); memcpy_s(buff, tensor->Size(), tensor->data(), tensor->Size()); const_tensor_map_[tensor] = buff; } } } return RET_OK; } int CustomCoder::TransformTensors(Serializer *code, std::string array_name, const std::vector<Tensor *> &tensors) { if (tensors.size() > 16) { MS_LOG(ERROR) << "The number of tensors is too large"; return RET_ERROR; } (*code) << "\t\tTensorC " << array_name << "[" << tensors.size() << "];\n"; for (size_t i = 0; i < tensors.size(); ++i) { if (tensors[i]->category() == lite::Category::CONST_TENSOR) { if (!const_tensor_map_.count(tensors[i])) { MS_LOG(ERROR) << "can't find the const tensor's runtime address"; return RET_ERROR; } (*code) << "\t\t" << array_name << "[" << i << "].data_ = " << allocator_->GetRuntimeAddr(const_tensor_map_[tensors[i]]) << ";\n"; } else { (*code) << "\t\t" << array_name << "[" << i << "].data_ = " << allocator_->GetRuntimeAddr(tensors[i]) << ";\n"; } for (size_t j = 0; j < tensors[i]->shape().size(); ++j) { (*code) << "\t\t" << array_name << "[" << i << "].shape_[" << j << "] = " << tensors[i]->shape()[j] << ";\n"; } (*code) << "\t\t" << array_name << "[" << i << "].shape_size_ = " << tensors[i]->shape().size() << ";\n"; (*code) << "\t\t" << array_name << "[" << i << "].data_type_ = " << tensors[i]->data_type() << ";\n"; (*code) << "\t\t" << array_name << "[" << i << "].format_ = " << tensors[i]->format() << ";\n"; if (tensors[i]->tensor_name().size() > MAX_STR_LEN) { MS_LOG(ERROR) << "tensor name is too long: " << tensors[i]->tensor_name(); return RET_ERROR; } (*code) << "\t\t" << array_name << "[" << i << "].name_ = " << "malloc(" << tensors[i]->tensor_name().length() + 1 << ");\n"; (*code) << "\t\tstrcpy(" << array_name << "[" << i << "].name_, " << "\"" << tensors[i]->tensor_name() << "\"" << ");\n"; } return RET_OK; } int CustomCoder::TransformParams(Serializer *code, std::string var_name) { if (attrs_.size() > MAX_ATTR_NUM) { MS_LOG(ERROR) << "Attrs's number exceeds the maximum"; return RET_ERROR; } (*code) << "\t\tCustomParameter " << var_name << ";\n"; if (type_.size() > MAX_STR_LEN) { MS_LOG(ERROR) << "type name is too long: " << type_; return RET_ERROR; } (*code) << "\t\tstrcpy(" << var_name << ".type, " << "\"" << type_ << "\"" << ");\n"; int i = 0; for (auto iter = attrs_.begin(); iter != attrs_.end(); ++iter) { if (iter->first.size() > MAX_STR_LEN) { MS_LOG(ERROR) << "attr name is too long: " << iter->first; return RET_ERROR; } (*code) << "\t\tstrcpy(" << var_name << ".attr_name[" << i << "], " << "\"" << iter->first << "\"" << ");\n"; (*code) << "\t\t" << var_name << ".attr_data[" << i << "] = " << "malloc(" << iter->second.size() + 1 << ");\n"; (*code) << "\t\tstrcpy(" << var_name << ".attr_data[" << i++ << "], " << "\"" << iter->second << "\"" << ");\n"; } (*code) << "\t\t" << var_name << ".attr_num = " << attrs_.size() << ";\n"; return RET_OK; } void CustomCoder::FreeParams(Serializer *code, std::string var_name) { int i = 0; for (auto iter = attrs_.begin(); iter != attrs_.end(); ++iter) { (*code) << "\t\tfree(" << var_name << ".attr_data[" << i++ << "]);\n"; } } void CustomCoder::FreeTensors(Serializer *code, std::string array_name, size_t tensors_num) { for (size_t i = 0; i < tensors_num; i++) { (*code) << "\t\tfree(" << array_name << "[" << i << "].name_);\n"; } } int CustomCoder::DoCode(CoderContext *const context) { Collect(context, {"nnacl/custom_parameter.h", "nnacl/tensor_c.h", "registered_kernel.h"}, {}); Serializer code; MS_CHECK_RET_CODE(TransformTensors(&code, "inputs", input_tensors_), "Transform input tensors error!"); MS_CHECK_RET_CODE(TransformTensors(&code, "outputs", output_tensors_), "Transform output tensors error!"); MS_CHECK_RET_CODE(TransformParams(&code, "param"), "Transform output tensors error!"); code.CodeFunction(kCustomKernelName, "inputs", input_tensors_.size(), "outputs", output_tensors_.size(), "&param"); FreeParams(&code, "param"); FreeTensors(&code, "inputs", input_tensors_.size()); FreeTensors(&code, "outputs", output_tensors_.size()); context->AppendCode(code.str()); return 0; } REG_OPERATOR_CODER(kAllTargets, kNumberTypeInt8, PrimitiveType_Custom, CPUOpCoderCreator<CustomCoder>) REG_OPERATOR_CODER(kAllTargets, kNumberTypeUInt8, PrimitiveType_Custom, CPUOpCoderCreator<CustomCoder>) REG_OPERATOR_CODER(kAllTargets, kNumberTypeFloat32, PrimitiveType_Custom, CPUOpCoderCreator<CustomCoder>) } // namespace mindspore::lite::micro
42.180723
117
0.609397
zhz44
893446b9fa99dbdb6046a924cf6fe20fb61cd374
11,760
cpp
C++
src/tests/test_observable.cpp
victimsnino/ReactivePlusPlus
bb187cc52936bce7c1ef4899d7dbb9c970cef291
[ "MIT" ]
1
2022-03-19T20:15:50.000Z
2022-03-19T20:15:50.000Z
src/tests/test_observable.cpp
victimsnino/ReactivePlusPlus
bb187cc52936bce7c1ef4899d7dbb9c970cef291
[ "MIT" ]
12
2022-03-22T21:18:14.000Z
2022-03-30T05:37:58.000Z
src/tests/test_observable.cpp
victimsnino/ReactivePlusPlus
bb187cc52936bce7c1ef4899d7dbb9c970cef291
[ "MIT" ]
null
null
null
// ReactivePlusPlus library // // Copyright Aleksey Loginov 2022 - present. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // https://www.boost.org/LICENSE_1_0.txt) // // Project home: https://github.com/victimsnino/ReactivePlusPlus // #include "copy_count_tracker.hpp" #include "mock_observer.hpp" #include "rpp/schedulers/new_thread_scheduler.hpp" #include <catch2/catch_test_macros.hpp> #include <rpp/sources.hpp> #include <rpp/observables.hpp> #include <rpp/observers.hpp> #include <rpp/subscribers.hpp> #include <rpp/subjects.hpp> #include <rpp/observables/dynamic_observable.hpp> #include <rpp/operators/map.hpp> #include <rpp/operators/publish.hpp> #include <array> #include <future> SCENARIO("Any observable can be casted to dynamic_observable", "[observable]") { auto validate_observable =[](const auto& observable) { WHEN("Call as_dynamic function") { auto dynamic_observable = observable.as_dynamic(); THEN("Obtain dynamic_observable of same type") static_assert(std::is_same<decltype(dynamic_observable), rpp::dynamic_observable<int>>{}, "Type of dynamic observable should be same!"); } WHEN("Construct dynamic_observable by constructor") { auto dynamic_observable = rpp::dynamic_observable{observable}; THEN("Obtain dynamic_observable of same type") static_assert(std::is_same<decltype(dynamic_observable), rpp::dynamic_observable<int>>{}, "Type of dynamic observable should be same!"); } }; GIVEN("specific_observable") validate_observable(rpp::specific_observable([](const rpp::dynamic_subscriber<int>&) {})); GIVEN("dynamic_observable") validate_observable(rpp::dynamic_observable([](const rpp::dynamic_subscriber<int>&) {})); } SCENARIO("Any observable can be subscribed from any type of subscription", "[observable]") { int subscribe_count = 0; auto validate_observable = [&](const auto& observable) { auto validate_subscribe = [&](auto&&...args) { observable.subscribe(std::forward<decltype(args)>(args)...); THEN("subscribe called") REQUIRE(subscribe_count == 1); }; WHEN("subscribe with no arguments") validate_subscribe(); WHEN("subscribe with lambda with specified type") validate_subscribe([](const int&){}); WHEN("subscribe with lambda with specified type + error") validate_subscribe([](const int&){}, [](const std::exception_ptr&){}); WHEN("subscribe with lambda with specified type + error + on_completed") validate_subscribe([](const int&){}, [](const std::exception_ptr&){}, [](){}); WHEN("subscribe with lambda with specified type + on_completed") validate_subscribe([](const int&){}, [](const std::exception_ptr&){}, [](){}); WHEN("subscribe with generic lambda ") validate_subscribe([](const auto&){}); WHEN("subscribe with specific_observer") validate_subscribe(rpp::specific_observer<int>{}); WHEN("subscribe with dynamic_observer") validate_subscribe(rpp::dynamic_observer<int>{}); WHEN("subscribe with specific_subscriber") validate_subscribe(rpp::specific_subscriber{rpp::specific_observer<int>{}}); WHEN("subscribe with dynamic_subscriber") validate_subscribe(rpp::dynamic_subscriber<int>{}); WHEN("subscribe with subscription + specific_observer") validate_subscribe(rpp::composite_subscription{}, rpp::specific_observer<int>{}); WHEN("subscribe with subscription + dynamic_observer") validate_subscribe(rpp::composite_subscription{}, rpp::dynamic_observer<int>{}); WHEN("subscribe with subscription + lambda") validate_subscribe(rpp::composite_subscription{}, [](const int&){}); }; GIVEN("specific_observable") validate_observable(rpp::specific_observable([&](const rpp::dynamic_subscriber<int>&) {++subscribe_count;})); GIVEN("dynamic_observable") validate_observable(rpp::dynamic_observable([&](const rpp::dynamic_subscriber<int>&) {++subscribe_count;})); } SCENARIO("Observable with exception", "[observable]") { GIVEN("Observable with error") { auto obs = rpp::source::create<int>([](const auto&) { throw std::runtime_error{ "" }; }); WHEN("subscribe on it") { auto mock = mock_observer<int>(); obs.subscribe(mock); THEN("exception provided") { CHECK(mock.get_total_on_next_count() == 0); CHECK(mock.get_on_error_count() == 1); CHECK(mock.get_on_completed_count() == 0); } } } } template<typename ObserverGetValue, bool is_move = false, bool is_const = false> static void TestObserverTypes(const std::string then_description, int copy_count, int move_count) { GIVEN("observer and observable of same type") { std::conditional_t<is_const, const copy_count_tracker, copy_count_tracker> tracker{}; const auto observer = rpp::dynamic_observer{[](ObserverGetValue) { }}; const auto observable = rpp::observable::create([&](const rpp::dynamic_subscriber<copy_count_tracker>& sub) { if constexpr (is_move) sub.on_next(std::move(tracker)); else sub.on_next(tracker); }); WHEN("subscribe called for observble") { observable.subscribe(observer); THEN(then_description) { CHECK(tracker.get_copy_count() == copy_count); CHECK(tracker.get_move_count() == move_count); } } } } SCENARIO("specific_observable doesn't produce extra copies for lambda", "[observable][track_copy]") { GIVEN("observer and specific_observable of same type") { copy_count_tracker tracker{}; const auto observer = rpp::dynamic_observer{[](int) { }}; const auto observable = rpp::observable::create([tracker](const rpp::dynamic_subscriber<int>& sub) { sub.on_next(123); }); WHEN("subscribe called for observble") { observable.subscribe(observer); THEN("One copy of tracker into lambda, one move of lambda into internal state") { CHECK(tracker.get_copy_count() == 1); CHECK(tracker.get_move_count() == 1); } AND_WHEN("Make copy of observable") { auto copy_of_observable = observable; THEN("One more copy of lambda") { CHECK(tracker.get_copy_count() == 2); CHECK(tracker.get_move_count() == 1); } } } } } SCENARIO("dynamic_observable doesn't produce extra copies for lambda", "[observable][track_copy]") { GIVEN("observer and dynamic_observable of same type") { copy_count_tracker tracker{}; const auto observer = rpp::dynamic_observer{[](int) { }}; const auto observable = rpp::observable::create([tracker](const rpp::dynamic_subscriber<int>& sub) { sub.on_next(123); }).as_dynamic(); WHEN("subscribe called for observble") { observable.subscribe(observer); THEN("One copy of tracker into lambda, one move of lambda into internal state and one move to dynamic observable") { CHECK(tracker.get_copy_count() == 1); CHECK(tracker.get_move_count() == 2); } AND_WHEN("Make copy of observable") { auto copy_of_observable = observable; THEN("No any new copies of lambda") { CHECK(tracker.get_copy_count() == 1); CHECK(tracker.get_move_count() == 2); } } } } } SCENARIO("Verify copy when observer take lvalue from lvalue&", "[observable][track_copy]") { TestObserverTypes<copy_count_tracker>("1 copy to final lambda", 1, 0); } SCENARIO("Verify copy when observer take lvalue from move", "[observable][track_copy]") { TestObserverTypes<copy_count_tracker, true>("1 move to final lambda", 0, 1); } SCENARIO("Verify copy when observer take lvalue from const lvalue&", "[observable][track_copy]") { TestObserverTypes<copy_count_tracker,false, true>("1 copy to final lambda", 1, 0); } SCENARIO("Verify copy when observer take const lvalue& from lvalue&", "[observable][track_copy]") { TestObserverTypes<const copy_count_tracker&>("no copies", 0, 0); } SCENARIO("Verify copy when observer take const lvalue& from move", "[observable][track_copy]") { TestObserverTypes<const copy_count_tracker&, true>("no copies", 0, 0); } SCENARIO("Verify copy when observer take const lvalue& from const lvalue&", "[observable][track_copy]") { TestObserverTypes<const copy_count_tracker&,false, true>("no copies", 0, 0); } SCENARIO("base observables") { mock_observer<int> mock{ }; GIVEN("empty") { auto observable = rpp::observable::empty<int>(); WHEN("subscribe on this observable") { observable.subscribe(mock); THEN("only on_completed called") { CHECK(mock.get_total_on_next_count() == 0); CHECK(mock.get_on_error_count() == 0); CHECK(mock.get_on_completed_count() == 1); } } } GIVEN("never") { auto observable = rpp::observable::never<int>(); WHEN("subscribe on this observable") { observable.subscribe(mock); THEN("no any callbacks") { CHECK(mock.get_total_on_next_count() == 0); CHECK(mock.get_on_error_count() == 0); CHECK(mock.get_on_completed_count() == 0); } } } GIVEN("error") { auto observable = rpp::observable::error<int>(std::make_exception_ptr(std::runtime_error{"MY EXCEPTION"})); WHEN("subscribe on this observable") { observable.subscribe(mock); THEN("only on_error callback once") { CHECK(mock.get_total_on_next_count() == 0); CHECK(mock.get_on_error_count() == 1); CHECK(mock.get_on_completed_count() == 0); } } } } SCENARIO("blocking observable") { GIVEN("observable with wait") { auto obs = rpp::source::create<int>([](const auto& sub) { std::this_thread::sleep_for(std::chrono::seconds{1}); sub.on_completed(); }); WHEN("subscribe on it via as_blocking") { auto mock = mock_observer<int>(); obs.as_blocking().subscribe(mock); THEN("obtain on_completed") { CHECK(mock.get_on_completed_count() == 1); } } } GIVEN("observable with error") { auto obs = rpp::source::error<int>(std::make_exception_ptr(std::runtime_error{""})); WHEN("subscribe on it via as_blocking") { auto mock = mock_observer<int>(); obs.as_blocking().subscribe(mock); THEN("obtain on_error") { CHECK(mock.get_on_error_count() == 1); } } } }
35.104478
152
0.596684
victimsnino
89372d171068edef7343e00f2ab26d18d94f848d
273
cpp
C++
LPI/aula18/src/Caixa.cpp
dayvisonmsilva/LPI
0e3186e03b0ed438795f513dd968911c6845f5e4
[ "Apache-2.0" ]
null
null
null
LPI/aula18/src/Caixa.cpp
dayvisonmsilva/LPI
0e3186e03b0ed438795f513dd968911c6845f5e4
[ "Apache-2.0" ]
null
null
null
LPI/aula18/src/Caixa.cpp
dayvisonmsilva/LPI
0e3186e03b0ed438795f513dd968911c6845f5e4
[ "Apache-2.0" ]
null
null
null
#include "../include/Caixa.hpp" Caixa::Caixa(string nome, double salario, double valor) : Funcionario(nome, salario), valor(valor){ } Caixa::Caixa(){} void Caixa::setValor(double valor){ this->valor = valor; } double Caixa::getValor(){ return this->valor; }
15.166667
99
0.673993
dayvisonmsilva
8938219cce88bb3f4b9affd3b266c96e38de4039
14,839
cpp
C++
src/xci/script/ast/resolve_symbols.cpp
rbrich/xcik
4eab7d1dfc8b0bc269137e28af076be943c15041
[ "Apache-2.0" ]
11
2019-08-21T12:48:45.000Z
2022-01-21T01:49:01.000Z
src/xci/script/ast/resolve_symbols.cpp
rbrich/xcik
4eab7d1dfc8b0bc269137e28af076be943c15041
[ "Apache-2.0" ]
3
2019-10-20T19:10:41.000Z
2021-02-11T10:32:40.000Z
src/xci/script/ast/resolve_symbols.cpp
rbrich/xcik
4eab7d1dfc8b0bc269137e28af076be943c15041
[ "Apache-2.0" ]
1
2020-10-09T20:08:17.000Z
2020-10-09T20:08:17.000Z
// resolve_symbols.cpp created on 2019-06-14 as part of xcikit project // https://github.com/rbrich/xcikit // // Copyright 2019–2021 Radek Brich // Licensed under the Apache License, Version 2.0 (see LICENSE file) #include "resolve_symbols.h" #include <xci/script/Function.h> #include <xci/script/Module.h> #include <xci/script/Builtin.h> #include <xci/script/Error.h> #include <range/v3/view/enumerate.hpp> #include <range/v3/algorithm/any_of.hpp> #include <vector> #include <set> #include <sstream> namespace xci::script { using std::make_unique; using ranges::views::enumerate; class SymbolResolverVisitor final: public ast::Visitor { public: explicit SymbolResolverVisitor(Function& func) : m_function(func) {} void visit(ast::Definition& dfn) override { // check for name collision const auto& name = dfn.variable.identifier.name; auto symptr = symtab().find_by_name(name); if (!symptr) { // add new function, symbol SymbolTable& fn_symtab = symtab().add_child(name); auto fn = make_unique<Function>(module(), fn_symtab); auto idx = module().add_function(move(fn)); assert(symtab().module() == &module()); symptr = symtab().add({name, Symbol::Function, idx}); } else { if (symptr->is_defined()) throw RedefinedName(name, dfn.variable.identifier.source_loc); } dfn.variable.identifier.symbol = symptr; dfn.variable.identifier.symbol->set_callable(true); if (dfn.variable.type) dfn.variable.type->apply(*this); if (dfn.expression) { symptr->set_defined(true); dfn.expression->definition = &dfn; dfn.expression->apply(*this); } if (m_class) { // export symbol to outer scope auto outer_sym = symtab().parent()->add({name, Symbol::Method, m_class->index}); outer_sym->set_ref(dfn.variable.identifier.symbol); return; } if (m_instance) { // resolve symbol with the class auto ref = m_instance->class_().symtab().find_by_name(dfn.variable.identifier.name); if (!ref) throw FunctionNotFoundInClass(dfn.variable.identifier.name, m_instance->class_().name()); dfn.variable.identifier.symbol->set_ref(ref); } } void visit(ast::Invocation& inv) override { inv.expression->apply(*this); } void visit(ast::Return& ret) override { ret.expression->apply(*this); } void visit(ast::Class& v) override { // check for name collision if (symtab().find_by_name(v.class_name.name)) throw RedefinedName(v.class_name.name, v.class_name.source_loc); // add child symbol table for the class SymbolTable& cls_symtab = symtab().add_child(v.class_name.name); for (auto&& [i, type_var] : v.type_vars | enumerate) cls_symtab.add({type_var.name, Symbol::TypeVar, i + 1}); // add new class to the module auto cls = make_unique<Class>(cls_symtab); v.index = module().add_class(move(cls)); v.symtab = &cls_symtab; m_class = &v; m_symtab = &cls_symtab; for (auto& dfn : v.defs) dfn.apply(*this); m_symtab = cls_symtab.parent(); m_class = nullptr; // add new symbol v.class_name.symbol = symtab().add({v.class_name.name, Symbol::Class, v.index}); } void visit(ast::Instance& v) override { // lookup class auto sym_class = resolve_symbol_of_type(v.class_name.name, Symbol::Class); if (!sym_class) throw UndefinedTypeName(v.class_name.name, v.class_name.source_loc); // find next instance of the class (if any) auto next = resolve_symbol_of_type(v.class_name.name, Symbol::Instance); // create symbol for the instance v.class_name.symbol = symtab().add({sym_class, Symbol::Instance}); v.class_name.symbol->set_next(next); // resolve type_inst std::stringstream inst_names; for (auto& t : v.type_inst) { t->apply(*this); if (t.get() != v.type_inst.front().get()) // not first inst_names << ' '; inst_names << *t; } // add child symbol table for the instance SymbolTable& inst_symtab = symtab().add_child(fmt::format("{} ({})", v.class_name.name, inst_names.str())); m_symtab = &inst_symtab; // add new instance to the module auto& cls = module().get_class(sym_class->index()); auto inst = make_unique<Instance>(cls, inst_symtab); m_instance = inst.get(); for (auto& dfn : v.defs) dfn.apply(*this); m_instance = nullptr; m_symtab = inst_symtab.parent(); v.index = module().add_instance(move(inst)); v.symtab = &inst_symtab; v.class_name.symbol->set_index(v.index); } void visit(ast::TypeDef& v) override { // check for name collision if (symtab().find_by_name(v.type_name.name)) throw RedefinedName(v.type_name.name, v.type_name.source_loc); // resolve the type v.type->apply(*this); // add new type to symbol table v.type_name.symbol = symtab().add({v.type_name.name, Symbol::TypeName, no_index}); } void visit(ast::TypeAlias& v) override { // check for name collision if (symtab().find_by_name(v.type_name.name)) throw RedefinedName(v.type_name.name, v.type_name.source_loc); // resolve the type v.type->apply(*this); // add new type to symbol table v.type_name.symbol = symtab().add({v.type_name.name, Symbol::TypeName, no_index}); } void visit(ast::Literal&) override {} void visit(ast::Bracketed& v) override { v.expression->apply(*this); } void visit(ast::Tuple& v) override { for (auto& item : v.items) { item->apply(*this); } } void visit(ast::List& v) override { for (auto& item : v.items) { item->apply(*this); } } void visit(ast::StructInit& v) override { for (auto& item : v.items) { item.second->apply(*this); } } void visit(ast::Reference& v) override { auto& symptr = v.identifier.symbol; symptr = resolve_symbol(v.identifier.name); if (!symptr) throw UndefinedName(v.identifier.name, v.source_loc); if (v.type_arg) v.type_arg->apply(*this); if (symptr->type() == Symbol::Method) { // if the reference points to a class function, find nearest // instance of the class auto* symmod = symptr.symtab()->module(); if (symmod == nullptr) symmod = &module(); const auto& class_name = symmod->get_class(symptr->index()).name(); v.chain = resolve_symbol_of_type(class_name, Symbol::Instance); } } void visit(ast::Call& v) override { v.callable->apply(*this); for (auto& arg : v.args) { arg->apply(*this); } } void visit(ast::OpCall& v) override { assert(!v.right_tmp); v.callable = make_unique<ast::Reference>(ast::Identifier{builtin::op_to_function_name(v.op.op), v.source_loc}); visit(*static_cast<ast::Call*>(&v)); } void visit(ast::Condition& v) override { v.cond->apply(*this); v.then_expr->apply(*this); v.else_expr->apply(*this); } void visit(ast::WithContext& v) override { v.context->apply(*this); v.expression->apply(*this); v.enter_function = ast::Reference{ast::Identifier{"enter"}}; v.enter_function.source_loc = v.source_loc; v.enter_function.apply(*this); v.leave_function = ast::Reference{ast::Identifier{"leave"}}; v.leave_function.source_loc = v.source_loc; v.leave_function.apply(*this); } void visit(ast::Function& v) override { if (v.definition != nullptr) { // use Definition's symtab and function v.index = v.definition->symbol()->index(); } else { // add new symbol table for the function std::string name = "<lambda>"; if (v.type.params.empty()) name = "<block>"; SymbolTable& fn_symtab = symtab().add_child(name); auto fn = make_unique<Function>(module(), fn_symtab); v.index = module().add_function(move(fn)); } Function& fn = module().get_function(v.index); v.body.symtab = &fn.symtab(); m_symtab = v.body.symtab; // resolve TypeNames and composite types to symbols // (in both parameters and result) v.type.apply(*this); m_symtab = v.body.symtab->parent(); // resolve body resolve_symbols(fn, v.body); } void visit(ast::Cast& v) override { v.expression->apply(*this); v.type->apply(*this); v.cast_function = make_unique<ast::Reference>(ast::Identifier{"cast"}); v.cast_function->source_loc = v.source_loc; v.cast_function->apply(*this); } void visit(ast::TypeName& t) final { assert(!t.name.empty()); // can't occur in parsed code if (t.name.empty() || t.name[0] == '$') { // anonymous generic type t.symbol = allocate_type_var(t.name); return; } t.symbol = resolve_symbol(t.name); if (!t.symbol) throw UndefinedTypeName(t.name, t.source_loc); } void visit(ast::FunctionType& t) final { size_t type_idx = 0; std::set<std::string> type_params; // check uniqueness for (auto& tp : t.type_params) { if (type_params.contains(tp.name)) throw RedefinedName(tp.name, tp.source_loc); type_params.insert(tp.name); symtab().add({tp.name, Symbol::TypeVar, ++type_idx}); } /* for (auto& tc : t.context) { tc.type_class.apply(*this); symtab().add({tc.type_name.name, Symbol::TypeVar, ++type_idx}); }*/ size_t par_idx = 0; for (auto& p : t.params) { if (!p.type) { // '$T' is internal prefix for untyped function args p.type = std::make_unique<ast::TypeName>("$T" + p.identifier.name); } p.type->apply(*this); if (!p.identifier.name.empty()) p.identifier.symbol = symtab().add({p.identifier.name, Symbol::Parameter, par_idx++}); } if (!t.result_type) t.result_type = std::make_unique<ast::TypeName>("$R"); t.result_type->apply(*this); } void visit(ast::ListType& t) final { t.elem_type->apply(*this); } void visit(ast::TupleType& t) final { for (auto& st : t.subtypes) st->apply(*this); } private: Module& module() { return m_function.module(); } SymbolTable& symtab() { return *m_symtab; } SymbolPointer allocate_type_var(const std::string& name = "") { size_t idx = 1; auto last_var = symtab().find_last_of(Symbol::TypeVar); if (last_var) idx = last_var->index() + 1; return symtab().add({name, Symbol::TypeVar, idx}); } SymbolPointer resolve_symbol(const std::string& name) { // lookup intrinsics in builtin module first // (this is just an optimization, the same lookup is repeated below) if (name.size() > 3 && name[0] == '_' && name[1] == '_') { auto& builtin_mod = module().get_imported_module(0); assert(builtin_mod.name() == "builtin"); auto symptr = builtin_mod.symtab().find_by_name(name); if (symptr) return symptr; } // (non)local values and parameters { // lookup in this and parent scopes size_t depth = 0; for (auto* p_symtab = &symtab(); p_symtab != nullptr; p_symtab = p_symtab->parent()) { if (p_symtab->name() == name && p_symtab->parent() != nullptr) { // recursion - unwrap the function auto symptr = p_symtab->parent()->find_by_name(name); return symtab().add({symptr, Symbol::Function, no_index, depth + 1}); } auto symptr = p_symtab->find_by_name(name); if (symptr) { if (depth > 0 && symptr->type() != Symbol::Method) { // add Nonlocal symbol Index idx = symtab().count(Symbol::Nonlocal); return symtab().add({symptr, Symbol::Nonlocal, idx, depth}); } return symptr; } depth ++; } } // this module { auto symptr = module().symtab().find_by_name(name); if (symptr) return symptr; } // imported modules for (size_t i = module().num_imported_modules() - 1; i != size_t(-1); --i) { auto symptr = module().get_imported_module(i).symtab().find_by_name(name); if (symptr) return symptr; } // nowhere return {}; } SymbolPointer resolve_symbol_of_type(const std::string& name, Symbol::Type type) { // lookup in this and parent scopes for (auto* p_symtab = &symtab(); p_symtab != nullptr; p_symtab = p_symtab->parent()) { auto symptr = p_symtab->find_last_of(name, type); if (symptr) return symptr; } // this module { auto symptr = module().symtab().find_last_of(name, type); if (symptr) return symptr; } // imported modules for (size_t i = module().num_imported_modules() - 1; i != size_t(-1); --i) { auto symptr = module().get_imported_module( i).symtab().find_last_of(name, type); if (symptr) return symptr; } // nowhere return {}; } private: Function& m_function; SymbolTable* m_symtab = &m_function.symtab(); ast::Class* m_class = nullptr; Instance* m_instance = nullptr; }; void resolve_symbols(Function& func, const ast::Block& block) { SymbolResolverVisitor visitor {func}; for (const auto& stmt : block.statements) { stmt->apply(visitor); } } } // namespace xci::script
34.191244
119
0.558326
rbrich
893930e5bcae774717a0c2d4e0fc5c9960449624
1,865
cpp
C++
blackscholes.cpp
TarekProjects/Monte-Carlo
46b7ad2ced2800b39d7d61101435335f0e36c87d
[ "MIT" ]
null
null
null
blackscholes.cpp
TarekProjects/Monte-Carlo
46b7ad2ced2800b39d7d61101435335f0e36c87d
[ "MIT" ]
null
null
null
blackscholes.cpp
TarekProjects/Monte-Carlo
46b7ad2ced2800b39d7d61101435335f0e36c87d
[ "MIT" ]
1
2019-01-12T10:15:35.000Z
2019-01-12T10:15:35.000Z
// Tarek Frahi #include <cmath> #include <numeric> #include "normal.hpp" #include "blackscholes.hpp" using namespace std; class BlackScholes { public: BlackScholes(void){} ~BlackScholes(void){} BS BSPrice( double S0, double K, double r, double q, double v, double T, string PutCall) { double d1 = (log(S0/K) + (r+pow(v,2)/2)*T)/(v*sqrt(T)); double d2 = d1 - v*sqrt(T); double D1 = normal::N(d1); double D2 = normal::N(d2); double phi = exp(-pow(d1,2)/2)/sqrt(2*M_PI); if (PutCall=="Call") { double value = D1*S0 - D2*K*exp(-r*T); double delta = D1; double gamma = phi/(S0*v*sqrt(T)); double vega = S0*phi*sqrt(T); double theta = -S0*phi*v/(2*sqrt(T)) - r*K*D2*exp(-r*T); double rho = K*T*D2*exp(-r*T); double zomma = (phi*(d1*d2 - 1))/(S0*v*v*sqrt(T)); double speed = (-phi * ( (d1/(v*sqrt(T))) + 1 )) / (pow(S0, 2)*v*sqrt(T)); double vanna = phi*d2/v; double vomma = S0*phi*sqrt(T)*d1*d2/v; return BS{value, delta, gamma, vega, theta, rho, vanna, vomma, speed, zomma}; //return value; } if (PutCall=="Put") { double value = D2*K*exp(-r*T) - D1*S0; double delta = - D1; double gamma = phi/(S0*v*sqrt(T)); double vega = S0*phi*sqrt(T); double theta = -S0*phi*v/(2*sqrt(T)) + r*K*D2*exp(-r*T); double rho = -K*T*D2*exp(-r*T); double zomma = (phi*(d1*d2 - 1))/(S0*v*v*sqrt(T)); double speed = (-phi * ( (d1/(v*sqrt(T))) + 1 )) / (pow(S0, 2)*v*sqrt(T)); double vanna = phi*d2/v; double vomma = S0*phi*sqrt(T)*d1*d2/v; return BS{value, delta, gamma, vega, theta, rho, vanna, vomma, speed, zomma}; //return value; } } };
30.080645
96
0.505094
TarekProjects
893af12217677fc2186eb76dfe27dbbdda00a52e
1,482
cpp
C++
date_input.cpp
Jonathan-Harty/Member-Management-System
65387cd8e786eebccb13b0d1d5da327bb43f7956
[ "MIT" ]
null
null
null
date_input.cpp
Jonathan-Harty/Member-Management-System
65387cd8e786eebccb13b0d1d5da327bb43f7956
[ "MIT" ]
null
null
null
date_input.cpp
Jonathan-Harty/Member-Management-System
65387cd8e786eebccb13b0d1d5da327bb43f7956
[ "MIT" ]
null
null
null
#include "date_input.h" DateInput::DateInput(QWidget *parent) : QWidget(parent) { dayInput = new QComboBox; fillDay(dayInput); monthInput = new QComboBox; fillMonth(monthInput); yearInput = new QComboBox; fillYear(yearInput); dateLayout = new QHBoxLayout; dateLayout->addWidget(dayInput); dateLayout->addWidget(monthInput); dateLayout->addWidget(yearInput); this->setLayout(dateLayout); } void DateInput::fillDay(QComboBox* day) { for(int i = 1; i < 32; i++) { day->addItem(QString::number(i)); } } void DateInput::fillMonth(QComboBox* month) { month->addItem("January"); month->addItem("February"); month->addItem("March"); month->addItem("April"); month->addItem("May"); month->addItem("June"); month->addItem("July"); month->addItem("August"); month->addItem("September"); month->addItem("October"); month->addItem("November"); month->addItem("December"); } void DateInput::fillYear(QComboBox* year) { for(int i = 2018; i > 1950; i--) { year->addItem(QString::number(i)); } } QString DateInput::getDate() { QString date = ""; date += dayInput->currentText() + " "; date += monthInput->currentText() + " "; date += yearInput->currentText(); return date; } void DateInput::setDate(const QString &date) { QString day = "", month = "", year = ""; }
21.794118
56
0.591093
Jonathan-Harty
9f13e5fa7d659beabe44f5099c35253a48976e44
6,882
cpp
C++
evie/utils.cpp
sni4ok/mgame
adda2a23055550ee2d992d3bd183e6983b52f395
[ "MIT" ]
null
null
null
evie/utils.cpp
sni4ok/mgame
adda2a23055550ee2d992d3bd183e6983b52f395
[ "MIT" ]
null
null
null
evie/utils.cpp
sni4ok/mgame
adda2a23055550ee2d992d3bd183e6983b52f395
[ "MIT" ]
null
null
null
/* author: Ilya Andronov <sni4ok@yandex.ru> */ #include "utils.hpp" #include "mlog.hpp" #include <errno.h> void throw_system_failure(const std::string& msg) { throw std::runtime_error(es() % (errno ? strerror(errno) : "") % ", " % msg); } std::string to_string(double value) { char buf[32]; uint32_t size = my_cvt::dtoa(buf, value); return std::string(buf, buf + size); } template<> double lexical_cast<double>(const char* from, const char* to) { char* ep; double ret; if(*to == char()) ret = strtod(from, &ep); else { my_basic_string<30> buf(from, to - from); ret = strtod(buf.c_str(), &ep); ep = (char*)(from + (ep - buf.begin())); } if(ep != to) throw std::runtime_error(es() % "bad lexical_cast to double from " % str_holder(from, to - from)); return ret; } template<> std::string lexical_cast<std::string>(const char* from, const char* to) { return std::string(from, to); } std::vector<std::string> split(const std::string& str, char sep) { std::vector<std::string> ret; auto it = str.begin(), ie = str.end(), i = it; while(it != ie) { i = std::find(it, ie, sep); ret.push_back(std::string(it, i)); if(i != ie) ++i; it = i; } return ret; } void split(std::vector<str_holder>& ret, const char* it, const char* ie, char sep) { while(it != ie) { const char* i = std::find(it, ie, sep); ret.push_back(str_holder(it, i - it)); if(i != ie) ++i; it = i; } } class crc32_table : noncopyable { uint32_t crc_table[256]; crc32_table() { for(uint32_t i = 0; i != 256; ++i) { uint32_t crc = i; for (uint32_t j = 0; j != 8; j++) crc = crc & 1 ? (crc >> 1) ^ 0xedb88320ul : crc >> 1; crc_table[i] = crc; } } public: static uint32_t* get() { static crc32_table t; return t.crc_table; } }; crc32::crc32(uint32_t init) : crc_table(crc32_table::get()), crc(init ^ 0xFFFFFFFFUL) { } void crc32::process_bytes(const char* p, uint32_t len) { const unsigned char* buf = reinterpret_cast<const unsigned char*>(p); while(len--) crc = crc_table[(crc ^ *buf++) & 0xFF] ^ (crc >> 8); } uint32_t crc32::checksum() const { return crc ^ 0xFFFFFFFFUL; } template<uint32_t frac_size> ttime_t read_time_impl::read_time(const char* &it) { //2020-01-26T10:45:21 //frac_size 0 //2020-01-26T10:45:21.418 //frac_size 3 //2020-01-26T10:45:21.418000001 //frac_size 9 if(unlikely(cur_date != str_holder(it, 10))) { if(*(it + 4) != '-' || *(it + 7) != '-') throw std::runtime_error(es() % "bad time: " % std::string(it, it + 26)); struct tm t = tm(); int y = my_cvt::atoi<int>(it, 4); int m = my_cvt::atoi<int>(it + 5, 2); int d = my_cvt::atoi<int>(it + 8, 2); t.tm_year = y - 1900; t.tm_mon = m - 1; t.tm_mday = d; cur_date_time = timegm(&t) * my_cvt::p10<9>(); cur_date = str_holder(it, 10); } it += 10; if(*it != 'T' || *(it + 3) != ':' || *(it + 6) != ':' || (frac_size ? *(it + 9) != '.' : false)) throw std::runtime_error(es() % "bad time: " % std::string(it - 10, it + 10 + (frac_size ? 1 + frac_size : 0))); uint64_t h = my_cvt::atoi<uint64_t>(it + 1, 2); uint64_t m = my_cvt::atoi<uint64_t>(it + 4, 2); uint64_t s = my_cvt::atoi<uint64_t>(it + 7, 2); uint64_t ns = 0; if(frac_size) { uint64_t frac = my_cvt::atoi<uint64_t>(it + 10, frac_size); ns = frac * my_cvt::p10<9 - frac_size>(); it += (frac_size + 1); } it += 9; return ttime_t{cur_date_time + ns + (s + m * 60 + h * 3600) * ttime_t::frac}; } template ttime_t read_time_impl::read_time<0>(const char*&); template ttime_t read_time_impl::read_time<3>(const char*&); template ttime_t read_time_impl::read_time<6>(const char*&); template ttime_t read_time_impl::read_time<9>(const char*&); namespace { time_parsed parse_time_impl(const ttime_t& time) { time_parsed ret; time_t ti = time.value / ttime_t::frac; struct tm * t = gmtime(&ti); ret.year = t->tm_year + 1900; ret.month = t->tm_mon + 1; ret.day = t->tm_mday; ret.hours = t->tm_hour; ret.minutes = t->tm_min; ret.seconds = t->tm_sec; ret.nanos = time.value % ttime_t::frac; return ret; } const uint32_t cur_day_seconds = day_seconds(cur_mtime_seconds()); const date cur_day_date = parse_time_impl(cur_mtime_seconds()); inline my_string get_cur_day_str() { buf_stream_fixed<20> str; str << mlog_fixed<4>(cur_day_date.year) << "-" << mlog_fixed<2>(cur_day_date.month) << "-" << mlog_fixed<2>(cur_day_date.day); return my_string(str.begin(), str.end()); } const my_string cur_day_date_str = get_cur_day_str(); } mlog& mlog::operator<<(const date& d) { if(d == cur_day_date) (*this) << cur_day_date_str; else (*this) << d.year << '-' << print2chars(d.month) << '-' << print2chars(d.day); return *this; } time_parsed parse_time(const ttime_t& time) { if(day_seconds(time) == cur_day_seconds) { time_parsed ret; ret.date() = cur_day_date; uint32_t frac = (time.value / ttime_t::frac) % (24 * 3600); ret.seconds = frac % 60; ret.hours = frac / 3600; ret.minutes = (frac - ret.hours * 3600) / 60; ret.nanos = time.value % ttime_t::frac; return ret; } else return parse_time_impl(time); } time_duration get_time_duration(const ttime_t& time) { time_duration ret; uint32_t frac = (time.value / time.frac) % (24 * 3600); ret.seconds = frac % 60; ret.hours = frac / 3600; ret.minutes = (frac - ret.hours * 3600) / 60; ret.nanos = time.value % time.frac; return ret; } ttime_t pack_time(const time_parsed& p) { struct tm t = tm(); t.tm_year = p.year - 1900; t.tm_mon = p.month - 1; t.tm_mday = p.day; t.tm_hour = p.hours; t.tm_min = p.minutes; t.tm_sec = p.seconds; return {uint64_t(timegm(&t) * ttime_t::frac + p.nanos)}; } date& date::operator+=(date_duration d) { time_parsed tp; tp.date() = *this; ttime_t t = pack_time(tp); t.value += int64_t(d.days) * 24 * 3600 * ttime_t::frac; tp = parse_time(t); *this = tp.date(); return *this; } date_duration date::operator-(const date& r) const { time_parsed t; t.date() = *this; ttime_t tl = pack_time(t); t.date() = r; ttime_t tr = pack_time(t); int64_t ns = tl - tr; return date_duration(ns / ttime_t::frac / (24 * 3600)); } ttime_t time_from_date(const date& t) { time_parsed p; p.date() = t; return pack_time(p); }
26.988235
134
0.569021
sni4ok
9f13f58c75a24002b459deff3ea2256977bd615a
720
cpp
C++
urlRegex.cpp
StetsonMathCS/hint
a6aaa510eea0781c9f6c06252adae7a51d654eda
[ "MIT" ]
null
null
null
urlRegex.cpp
StetsonMathCS/hint
a6aaa510eea0781c9f6c06252adae7a51d654eda
[ "MIT" ]
null
null
null
urlRegex.cpp
StetsonMathCS/hint
a6aaa510eea0781c9f6c06252adae7a51d654eda
[ "MIT" ]
2
2020-04-23T20:29:37.000Z
2020-04-27T23:24:27.000Z
//Author: Cole Spitzer //Date 05-01-20 //Purpose: To go through the map and add all of the answers to the Data Structure #include "urls.cpp" //What this does is get the URL from the myMap. Which we are stroing as hint,URL, answer //it then runs it through the function answer //this gives us back the answer from the function and we are setting that equal to mymap[hint][URL] = answer string from the answer function int main(){ for( map<string, map<string, string> > :: const_iterator ptr = myMap.begin(); ptr != myMap.end(); ptr++) { for (map<string,string> :: const_iterator eptr = ptr->second.begin(); eptr != ptr->second.end();eptr++) { myMap[ptr->first][eptr->first] = answer(eptr->first); } } }
34.285714
140
0.693056
StetsonMathCS
9f16e9609559303bb0f17158f123add7bb3456d2
1,848
cc
C++
game/material.cc
Faerbit/Saxum
3b255142337e08988f2b4f1f56d6e061e8754336
[ "CC-BY-3.0", "CC-BY-4.0" ]
2
2015-03-12T16:19:10.000Z
2015-11-24T20:23:26.000Z
game/material.cc
Faerbit/Saxum
3b255142337e08988f2b4f1f56d6e061e8754336
[ "CC-BY-3.0", "CC-BY-4.0" ]
15
2015-03-14T14:13:12.000Z
2015-06-02T18:39:55.000Z
game/material.cc
Faerbit/Saxum
3b255142337e08988f2b4f1f56d6e061e8754336
[ "CC-BY-3.0", "CC-BY-4.0" ]
null
null
null
#include "material.hh" std::set<SharedTexture2D> Material::allTexturesSet = std::set<SharedTexture2D>(); std::vector<SharedTexture2D> Material::allTexturesVector = std::vector<SharedTexture2D>(); Material::Material(std::string filePath, float ambientFactor, float diffuseFactor, float specularFactor, float shininess, bool movingTexture) { reference = ACGL::OpenGL::Texture2DFileManager::the()->get(ACGL::OpenGL::Texture2DCreator(filePath)); reference->generateMipmaps(); reference->setMinFilter(GL_NEAREST_MIPMAP_LINEAR); reference->setMagFilter(GL_LINEAR); this->ambientFactor = ambientFactor; this->diffuseFactor = diffuseFactor; this->specularFactor = specularFactor; this->shininess = shininess; this->movingTexture = movingTexture; unsigned int textureCount = allTexturesSet.size(); allTexturesSet.insert(reference); if (allTexturesSet.size() != textureCount) { allTexturesVector.push_back(reference); } textureUnit = std::distance(Material::getAllTextures()->begin(), std::find(std::begin(*Material::getAllTextures()), // first two texture units are used by the loading screen std::end(*Material::getAllTextures()), reference)) + 2; } Material::Material() { } Material::~Material() { } ACGL::OpenGL::SharedTexture2D Material::getReference() { return reference; } float Material::getAmbientFactor(){ return ambientFactor; } float Material::getDiffuseFactor(){ return diffuseFactor; } float Material::getSpecularFactor() { return specularFactor; } float Material::getShininess() { return shininess; } bool Material::isMoving(){ return movingTexture; } std::vector<SharedTexture2D>* Material::getAllTextures() { return &allTexturesVector; } int Material::getTextureUnit() { return textureUnit; }
28.430769
105
0.719156
Faerbit
9f1b831c1cfee6211693c05549a1b6c73546f199
2,087
cc
C++
instrumentation/windows-x86-markers/common.cc
fengjixuchui/bochspwn-reloaded
8e5884441b7b9f953ebdac61d0c869cb85aefcc7
[ "Apache-2.0" ]
149
2018-08-22T13:17:25.000Z
2018-09-10T01:31:04.000Z
instrumentation/windows-x86-markers/common.cc
fengjixuchui/bochspwn-reloaded
8e5884441b7b9f953ebdac61d0c869cb85aefcc7
[ "Apache-2.0" ]
7
2018-10-30T13:15:13.000Z
2021-01-20T06:42:16.000Z
instrumentation/windows-x86-markers/common.cc
fengjixuchui/bochspwn-reloaded
8e5884441b7b9f953ebdac61d0c869cb85aefcc7
[ "Apache-2.0" ]
29
2018-09-12T01:32:30.000Z
2021-12-28T02:22:44.000Z
///////////////////////////////////////////////////////////////////////// // // Author: Mateusz Jurczyk (mjurczyk@google.com) // // Copyright 2017-2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // #include "common.h" #include <unordered_set> #include "cpu/cpu.h" #include "os_windows.h" // See instrumentation.h for globals' documentation. namespace globals { bochspwn_config config; std::unordered_set<uint32_t> origins; bx_address nt_base; uint32_t *taint_alloc; bool esp_change; uint32_t esp_value; } // namespace globals void fill_pattern(uint32_t *array, uint32_t bytes) { for (uint32_t i = 0; i < bytes; i += sizeof(uint32_t)) { array[i / sizeof(uint32_t)] = 0xCAFE0000 + (i / sizeof(uint32_t)); } } void fill_uint32(uint32_t *array, uint32_t value, uint32_t bytes) { for (uint32_t i = 0; i < bytes; i += sizeof(uint32_t)) { array[i / sizeof(uint32_t)] = value; } } bool get_nth_caller(BX_CPU_C *pcpu, unsigned int idx, uint32_t *caller_address) { if (idx == 0) { *caller_address = pcpu->prev_rip; return true; } uint32_t ip = pcpu->prev_rip; uint32_t bp = pcpu->gen_reg[BX_32BIT_REG_EBP].dword.erx; unsigned int i; for (i = 0; i < idx && windows::check_kernel_addr(ip) && windows::check_kernel_addr(bp); i++) { if (!bp || !read_lin_mem(pcpu, bp + sizeof(uint32_t), sizeof(uint32_t), &ip) || !read_lin_mem(pcpu, bp, sizeof(uint32_t), &bp)) { return false; } } if (i == idx) { *caller_address = ip; return true; } return false; }
26.75641
83
0.652132
fengjixuchui
9f1ca8e28d6d309edd4af3418aeaf494633a98f4
425,806
cpp
C++
src/offset/profiles/win7_sp0_x86.cpp
MarkMankins/libosi
2d67ed8066098bc798a53c06dffb5ba257d89bde
[ "BSD-3-Clause" ]
3
2021-02-23T09:13:07.000Z
2021-08-13T14:15:06.000Z
src/offset/profiles/win7_sp0_x86.cpp
MarkMankins/libosi
2d67ed8066098bc798a53c06dffb5ba257d89bde
[ "BSD-3-Clause" ]
3
2021-12-02T17:51:48.000Z
2022-03-04T20:02:32.000Z
src/offset/profiles/win7_sp0_x86.cpp
MarkMankins/libosi
2d67ed8066098bc798a53c06dffb5ba257d89bde
[ "BSD-3-Clause" ]
2
2021-12-07T00:42:31.000Z
2022-03-04T15:42:12.000Z
#include "offset/offset.h" #include <map> #include <string> #define POINTER 0x80000000 #include "win7_sp0_x86.h" namespace windows_7sp0_x86 { enum Type : unsigned int { UNKNOWN, _WHEA_ERROR_RECORD_HEADER, _MMVAD_SHORT, _IO_WORKITEM, _WHEA_MEMORY_ERROR_SECTION, __unnamed_1c3f, _PROC_IDLE_STATE_BUCKET, _POP_POWER_ACTION, __unnamed_1a19, _MM_PAGE_ACCESS_INFO_HEADER, _OBJECT_ATTRIBUTES, _KALPC_MESSAGE_ATTRIBUTES, _XSTATE_SAVE, _OBJECT_DUMP_CONTROL, _CM_KEY_NODE, _MMPTE_LIST, _FXSAVE_FORMAT, _SLIST_HEADER, __unnamed_14ef, _PO_NOTIFY_ORDER_LEVEL, _FREE_DISPLAY, PROCESSOR_PERFSTATE_POLICY, __unnamed_1a1b, _ALPC_DISPATCH_CONTEXT, _IA64_LOADER_BLOCK, __unnamed_1e24, __unnamed_1e22, _KENLISTMENT_HISTORY, __unnamed_1e20, _ACTIVATION_CONTEXT_STACK, _WHEA_TIMESTAMP, _PS_PER_CPU_QUOTA_CACHE_AWARE, _ARBITER_QUERY_ALLOCATED_RESOURCES_PARAMETERS, __unnamed_15a6, __unnamed_15a4, _ARBITER_QUERY_ARBITRATE_PARAMETERS, _QUAD, _FILE_SEGMENT_ELEMENT, _DBGKD_SET_SPECIAL_CALL32, _VI_DEADLOCK_RESOURCE, _DEFERRED_WRITE, _PP_LOOKASIDE_LIST, _DEVICE_OBJECT_POWER_EXTENSION, _PERFINFO_TRACE_HEADER, _RTL_AVL_TABLE, _ALPC_PORT, _PI_BUS_EXTENSION, _MMPTE, _MMPFNLIST, _SID, _MMPAGING_FILE, _KDPC, _MSUBSECTION, _DBGKD_MANIPULATE_STATE32, _ALPC_COMPLETION_LIST_STATE, _OBJECT_HANDLE_COUNT_DATABASE, _HEAP_STOP_ON_VALUES, _PPM_PERF_STATES, __unnamed_158e, _CM_NAME_CONTROL_BLOCK, SYSTEM_POWER_LEVEL, _DBGKD_RESTORE_BREAKPOINT, __unnamed_199c, _NLS_DATA_BLOCK, __unnamed_199a, _TEB32, _DBGKD_READ_WRITE_MSR, _WHEA_ERROR_RECORD_HEADER_FLAGS, _PCW_COUNTER_DESCRIPTOR, __unnamed_1045, _TOKEN_SOURCE, __unnamed_1041, _flags, _TIME_FIELDS, _KALPC_REGION, __unnamed_1586, __unnamed_1580, __unnamed_1583, __unnamed_1992, _SECURITY_SUBJECT_CONTEXT, _LPCP_NONPAGED_PORT_QUEUE, _IO_RESOURCE_REQUIREMENTS_LIST, __unnamed_1994, _DIAGNOSTIC_CONTEXT, __unnamed_1340, _HEAP, _DEVICE_OBJECT, _MMVAD_FLAGS, _ETW_PERF_COUNTERS, _TP_DIRECT, _IMAGE_NT_HEADERS, __unnamed_1291, _KINTERRUPT, _HEAP_TAG_ENTRY, __unnamed_2339, __unnamed_2337, _CLIENT_ID32, _TEB, _TOKEN_CONTROL, _VI_FAULT_TRACE, _DUMP_INITIALIZATION_CONTEXT, _LUID, _VF_ADDRESS_RANGE, _MMWSLENTRY, _PCW_COUNTER_INFORMATION, _ALPC_PORT_ATTRIBUTES, __unnamed_153a, _FILE_NETWORK_OPEN_INFORMATION, _NT_TIB, _OBJECT_HEADER, __unnamed_233b, _PO_DEVICE_NOTIFY, _AUX_ACCESS_DATA, _SECURITY_CLIENT_CONTEXT, _NT_TIB64, _STRING64, _MM_PAGE_ACCESS_INFO, _HBASE_BLOCK, _KTRANSACTION, _OBJECT_DIRECTORY_ENTRY, _WHEA_ERROR_STATUS, _BLOB_TYPE, _MI_SECTION_IMAGE_INFORMATION, _TP_TASK_CALLBACKS, _CACHE_UNINITIALIZE_EVENT, _WORK_QUEUE_ITEM, _u, __unnamed_14be, _CM_RESOURCE_LIST, _VF_TARGET_VERIFIED_DRIVER_DATA, _KALPC_RESERVE, POWER_ACTION_POLICY, _HANDLE_TABLE_ENTRY_INFO, _DBGKD_WRITE_MEMORY32, _KTIMER, _MM_SESSION_SPACE, _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_FLAGS, _WMI_TRACE_PACKET, _MI_EXTRA_IMAGE_INFORMATION, _CM_INDEX_HINT_BLOCK, _CM_KEY_REFERENCE, _VF_SUSPECT_DRIVER_ENTRY, _KRESOURCEMANAGER_COMPLETION_BINDING, _POP_SYSTEM_IDLE, _IO_PRIORITY_INFO, _MI_SPECIAL_POOL_PTE_LIST, _GUID, _PPM_PERF_STATE, _MM_STORE_KEY, _DBGKD_MANIPULATE_STATE64, _MEMORY_ALLOCATION_DESCRIPTOR, _KGDTENTRY, PO_MEMORY_IMAGE, _ETW_SESSION_PERF_COUNTERS, _PS_CLIENT_SECURITY_CONTEXT, _MMWSLE, _KWAIT_STATUS_REGISTER, _HEAP_ENTRY_EXTRA, PROCESSOR_IDLESTATE_INFO, _DBGKD_READ_MEMORY32, _MAPPED_FILE_SEGMENT, _ERESOURCE, _IMAGE_SECURITY_CONTEXT, __unnamed_105e, _HEAP_VIRTUAL_ALLOC_ENTRY, _RTL_DYNAMIC_HASH_TABLE_ENUMERATOR, _IA64_DBGKD_CONTROL_SET, _CLIENT_ID, _MI_SPECIAL_POOL, _DBGKD_GET_CONTEXT, _CM_TRANS, _ACL, _PNP_DEVICE_COMPLETION_REQUEST, _GROUP_AFFINITY, _POWER_SEQUENCE, _HEAP_SEGMENT, _TOKEN, _LUID_AND_ATTRIBUTES, _NETWORK_LOADER_BLOCK, _FAST_MUTEX, __unnamed_152b, _OBJECT_HANDLE_INFORMATION, __unnamed_1980, __unnamed_218f, _IOV_FORCED_PENDING_TRACE, _OBJECT_HEADER_NAME_INFO, _LPCP_PORT_OBJECT, _FAST_IO_DISPATCH, _PCW_PROCESSOR_INFO, _SECURITY_DESCRIPTOR_RELATIVE, _IMAGE_FILE_HEADER, _MMADDRESS_NODE, _NAMED_PIPE_CREATE_PARAMETERS, _KENLISTMENT, _PO_DEVICE_NOTIFY_ORDER, _POP_SHUTDOWN_BUG_CHECK, __unnamed_162b, _KALPC_MESSAGE, __unnamed_162e, __unnamed_19da, __unnamed_19dc, _CALL_HASH_ENTRY, _I386_LOADER_BLOCK, _ARBITER_ORDERING, _SECTION_OBJECT_POINTERS, _LOOKASIDE_LIST_EX, _SEGMENT_OBJECT, _FLOATING_SAVE_AREA, _SID_AND_ATTRIBUTES, _MMPTE_SOFTWARE, _VF_TRACKER, _DBGKD_READ_WRITE_IO32, _OBP_LOOKUP_CONTEXT, _POP_ACTION_TRIGGER, __unnamed_1c45, _MDL, _CMHIVE, _ULARGE_INTEGER, _KRESOURCEMANAGER, __unnamed_12a0, __unnamed_12a5, __unnamed_12a7, _PCAT_FIRMWARE_INFORMATION, _KMUTANT, _PO_IRP_MANAGER, _PF_KERNEL_GLOBALS, _MMSECTION_FLAGS, __unnamed_204b, __unnamed_204d, _DBGKD_FILL_MEMORY, _WHEA_ERROR_PACKET_V2, _VF_AVL_TABLE, _DBGKD_GET_VERSION32, _KWAIT_BLOCK, _VIRTUAL_EFI_RUNTIME_SERVICES, _WMI_LOGGER_CONTEXT, _HEAP_FREE_ENTRY_EXTRA, _MMWSLE_HASH, _ALPC_COMPLETION_PACKET_LOOKASIDE, _GDI_TEB_BATCH32, _ALPC_HANDLE_ENTRY, _DBGKD_SWITCH_PARTITION, _ARBITER_PARAMETERS, _LOADER_PERFORMANCE_DATA, _THERMAL_INFORMATION_EX, _RTL_ACTIVATION_CONTEXT_STACK_FRAME, _RTL_RANGE_LIST, __unnamed_1888, _ALPC_MESSAGE_ZONE, _KSYSTEM_TIME, _PCW_MASK_INFORMATION, _KiIoAccessMap, _TOKEN_AUDIT_POLICY, _MMPTE_TIMESTAMP, _CM_NAME_HASH, _PNP_DEVICE_COMPLETION_QUEUE, _LOADER_PARAMETER_EXTENSION, __unnamed_1ef2, _IO_SECURITY_CONTEXT, _EVENT_FILTER_HEADER, _KALPC_SECTION, __unnamed_1e43, __unnamed_1e45, __unnamed_1e47, __unnamed_1e49, _HIVE_LOAD_FAILURE, _FIRMWARE_INFORMATION_LOADER_BLOCK, _KERNEL_STACK_CONTROL, DOCK_INTERFACE, _BITMAP_RANGE, _TP_CALLBACK_ENVIRON_V3, _CONFIGURATION_COMPONENT, _BUS_EXTENSION_LIST, __unnamed_1ea6, __unnamed_1dc5, __unnamed_1ea2, _IO_RESOURCE_DESCRIPTOR, __unnamed_1ea0, _DBGKD_SET_INTERNAL_BREAKPOINT64, _KGUARDED_MUTEX, _LPCP_PORT_QUEUE, _HEAP_SUBSEGMENT, _PENDING_RELATIONS_LIST_ENTRY, _DBGKD_GET_SET_BUS_DATA, __unnamed_1e4b, _PROCESSOR_POWER_STATE, _IO_CLIENT_EXTENSION, __unnamed_1c1d, _CM_KEY_INDEX, __unnamed_1c1b, _EX_PUSH_LOCK_CACHE_AWARE, _SEP_TOKEN_PRIVILEGES, __unnamed_132a, __unnamed_1742, __unnamed_1740, __unnamed_1746, _HANDLE_TRACE_DB_ENTRY, _PO_IRP_QUEUE, _IOP_FILE_OBJECT_EXTENSION, _DBGKD_QUERY_MEMORY, __unnamed_163e, __unnamed_163c, _PEB, _WHEA_ERROR_RECORD, _TPM_BOOT_ENTROPY_LDR_RESULT, _PROC_IDLE_ACCOUNTING, _PROC_PERF_DOMAIN, _EXCEPTION_REGISTRATION_RECORD, _MM_SUBSECTION_AVL_TABLE, _FILE_STANDARD_INFORMATION, _DBGKM_EXCEPTION32, _ACCESS_REASONS, __unnamed_1638, _KPCR, _KTRANSACTION_HISTORY, __unnamed_1634, __unnamed_1632, _POOL_TRACKER_TABLE, __unnamed_1630, __unnamed_1320, _IO_STACK_LOCATION, __unnamed_1324, __unnamed_1326, __unnamed_1328, _MMWSLE_NONDIRECT_HASH, _EXCEPTION_RECORD64, _ETW_PROVIDER_TABLE_ENTRY, _EX_RUNDOWN_REF, _HBIN, _PI_RESOURCE_ARBITER_ENTRY, _EX_PUSH_LOCK_WAIT_BLOCK, __unnamed_12bf, __unnamed_12bb, _CLIENT_ID64, _MM_PAGE_ACCESS_INFO_FLAGS, __unnamed_1884, __unnamed_2215, __unnamed_1886, __unnamed_2193, _DIAGNOSTIC_BUFFER, _IO_MINI_COMPLETION_PACKET_USER, _IRP, _CM_KEY_HASH_TABLE_ENTRY, _iobuf, _PHYSICAL_MEMORY_DESCRIPTOR, _ETW_WMITRACE_WORK, _CURDIR, __unnamed_195e, __unnamed_195c, _CM_PARTIAL_RESOURCE_LIST, _VI_DEADLOCK_THREAD, __unnamed_188a, __unnamed_188c, _DBGKD_READ_WRITE_IO_EXTENDED64, __unnamed_219c, __unnamed_219e, _DBGKD_CONTINUE, _STRING, __unnamed_12b4, _MMSUPPORT, __unnamed_12b2, __unnamed_2285, _ARBITER_CONFLICT_INFO, _POOL_HEADER, _VF_POOL_TRACE, _KUSER_SHARED_DATA, _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_VALIDBITS, _ETW_BUFFER_HANDLE, _IMAGE_DOS_HEADER, _ALPC_COMPLETION_LIST_HEADER, _AUTHZBASEP_SECURITY_ATTRIBUTES_INFORMATION, _TEB_ACTIVE_FRAME_CONTEXT, _HHIVE, _DUMP_STACK_CONTEXT, _KQUEUE, _EVENT_DESCRIPTOR, _THREAD_PERFORMANCE_DATA, _DEVOBJ_EXTENSION, _CACHED_CHILD_LIST, _MI_PAGEFILE_TRACES, __unnamed_1f63, _SECTION_OBJECT, _HEADLESS_LOADER_BLOCK, _KTIMER_TABLE, _VOLUME_CACHE_MAP, _PROC_PERF_LOAD, _RTL_DRIVE_LETTER_CURDIR, _KTMOBJECT_NAMESPACE_LINK, _WHEA_ERROR_PACKET_FLAGS, LIST_ENTRY64, _CACHE_DESCRIPTOR, _PPM_FFH_THROTTLE_STATE_INFO, _MI_SYSTEM_PTE_TYPE, _ALIGNED_AFFINITY_SUMMARY, __unnamed_1f5b, __unnamed_1f5d, __unnamed_1f5f, _HMAP_ENTRY, _PHYSICAL_MEMORY_RUN, _PTE_TRACKER, __unnamed_1c70, _IO_DRIVER_CREATE_CONTEXT, _VF_TARGET_ALL_SHARED_EXPORT_THUNKS, _IO_STATUS_BLOCK, _CM_RM, _GENERAL_LOOKASIDE, _MMPTE_SUBSECTION, _ARBITER_INTERFACE, _PNP_ASSIGN_RESOURCES_CONTEXT, _RELATION_LIST_ENTRY, _POWER_STATE, _VF_WATCHDOG_IRP, __unnamed_1f53, __unnamed_1f55, __unnamed_1f57, _TRACE_ENABLE_CONTEXT_EX, _KSPECIAL_REGISTERS, _PO_HIBER_PERF, _OBJECT_REF_STACK_INFO, _HEAP_DEBUGGING_INFORMATION, _ETIMER, _REMOTE_PORT_VIEW, _POP_HIBER_CONTEXT, _MMPFNENTRY, _KSEMAPHORE, _PORT_MESSAGE, _FILE_OBJECT, _XSTATE_FEATURE, _KPROCESSOR_STATE, _DBGKD_READ_MEMORY64, _PPM_IDLE_STATE, _ALPC_COMPLETION_LIST, SYSTEM_POWER_CAPABILITIES, _RTL_BITMAP, _KTRAP_FRAME, _POP_CPU_INFO, _OBJECT_HEADER_CREATOR_INFO, _SYSTEM_POWER_POLICY, _SHARED_CACHE_MAP, __unnamed_216f, __unnamed_1318, __unnamed_1314, _KTM, __unnamed_1310, _HEAP_LOCK, _XSAVE_AREA_HEADER, _KTMOBJECT_NAMESPACE, _GENERAL_LOOKASIDE_POOL, _KSPIN_LOCK_QUEUE, _ALPC_MESSAGE_ATTRIBUTES, _ETHREAD, _KPRCB, _SYSTEM_TRACE_HEADER, __unnamed_1544, __unnamed_1546, _RTL_BALANCED_LINKS, _HANDLE_TRACE_DEBUG_INFO, _STACK_TABLE, _PROC_PERF_CONSTRAINT, _CM_CELL_REMAP_BLOCK, _MMMOD_WRITER_MDL_ENTRY, _IMAGE_OPTIONAL_HEADER, _SID_AND_ATTRIBUTES_HASH, __unnamed_12c9, __unnamed_12c3, _ETW_REG_ENTRY, __unnamed_12c5, _NT_TIB32, BATTERY_REPORTING_SCALE, __unnamed_1866, _IMAGE_SECTION_HEADER, _HEAP_TUNING_PARAMETERS, _ALPC_PROCESS_CONTEXT, _VI_POOL_PAGE_HEADER, _KGATE, __unnamed_12de, __unnamed_12dc, _HEAP_ENTRY, _POOL_BLOCK_HEAD, _OBJECT_HANDLE_COUNT_ENTRY, _SINGLE_LIST_ENTRY, __unnamed_12cb, _OBJECT_TYPE_INITIALIZER, __unnamed_12cf, _ARBITER_ALTERNATIVE, __unnamed_12cd, _DESCRIPTOR, __unnamed_19c2, _KERNEL_STACK_SEGMENT, __unnamed_12d9, __unnamed_12d7, __unnamed_12d3, __unnamed_12d1, _DBGKD_LOAD_SYMBOLS32, _ETW_BUFFER_CONTEXT, _RTLP_RANGE_LIST_ENTRY, _OBJECT_REF_INFO, _PROC_HISTORY_ENTRY, _TXN_PARAMETER_BLOCK, _DBGKD_CONTINUE2, __unnamed_14f6, _MMSESSION, __unnamed_14f4, _XSAVE_FORMAT, __unnamed_14f1, _MMPFN, _POP_THERMAL_ZONE, _PLUGPLAY_EVENT_BLOCK, _MMVIEW, _DEVICE_NODE, _CHILD_LIST, _MMPTE_PROTOTYPE, _DBGKD_SET_CONTEXT, _GDI_TEB_BATCH64, _XSAVE_AREA, _SEGMENT, _BLOB, _SECTION_IMAGE_INFORMATION, _FS_FILTER_CALLBACKS, _SE_AUDIT_PROCESS_CREATION_INFO, __unnamed_14fb, _HEAP_FREE_ENTRY, _DBGKD_WRITE_MEMORY64, _IO_COMPLETION_CONTEXT, __unnamed_14ad, __unnamed_20df, _IMAGE_DEBUG_DIRECTORY, __unnamed_1c68, _IMAGE_ROM_OPTIONAL_HEADER, _WAIT_CONTEXT_BLOCK, _MMVAD_FLAGS3, _MMVAD_FLAGS2, __unnamed_1f8a, _VI_TRACK_IRQL, _ARBITER_ORDERING_LIST, __unnamed_1e1e, _PNP_RESOURCE_REQUEST, _MMSUBSECTION_FLAGS, __unnamed_1f65, __unnamed_1f67, _RTL_DYNAMIC_HASH_TABLE_ENTRY, _LPCP_MESSAGE, __unnamed_1ec1, _CM_KEY_CONTROL_BLOCK, _RTL_CRITICAL_SECTION, _ARBITER_QUERY_CONFLICT_PARAMETERS, _SECURITY_DESCRIPTOR, _PS_CPU_QUOTA_BLOCK, _PROCESSOR_NUMBER, _EX_FAST_REF, _HEAP_COUNTERS, _TP_TASK, __unnamed_1f88, __unnamed_18dd, _PPC_DBGKD_CONTROL_SET, __unnamed_1f80, _OBJECT_HEADER_HANDLE_INFO, __unnamed_1f6c, _VACB, _OWNER_ENTRY, _RELATIVE_SYMLINK_INFO, _VACB_LEVEL_REFERENCE, _KEXECUTE_OPTIONS, _IMAGE_DATA_DIRECTORY, _KAPC_STATE, _DBGKD_GET_INTERNAL_BREAKPOINT32, _VPB, __unnamed_130c, _RTL_DYNAMIC_HASH_TABLE_CONTEXT, _KAFFINITY_ENUMERATION_CONTEXT, _SUBSECTION, _HEAP_UCR_DESCRIPTOR, _MM_SESSION_SPACE_FLAGS, _CM_KEY_VALUE, _DBGKD_SET_SPECIAL_CALL64, _XSTATE_CONFIGURATION, __unnamed_1f61, _DBGKD_WRITE_BREAKPOINT64, __unnamed_1308, _INITIAL_PRIVILEGE_SET, __unnamed_1302, _ALPC_HANDLE_TABLE, __unnamed_1304, __unnamed_19a2, __unnamed_19a4, _OPEN_PACKET, __unnamed_1e9c, _PNP_DEVICE_ACTION_ENTRY, _WORK_QUEUE_ENTRY, _WHEA_PERSISTENCE_INFO, _KDEVICE_QUEUE_ENTRY, __unnamed_230f, __unnamed_230b, __unnamed_2272, __unnamed_2270, __unnamed_2171, __unnamed_2179, _KTHREAD_COUNTERS, VACB_LEVEL_ALLOCATION_LIST, _PEB_LDR_DATA, _MMVAD_LONG, _ETW_REPLY_QUEUE, __unnamed_197e, _PROFILE_PARAMETER_BLOCK, _RTL_HANDLE_TABLE, _DBGKD_QUERY_SPECIAL_CALLS, _ETW_GUID_ENTRY, _EPROCESS, _KALPC_VIEW, _HANDLE_TABLE, _MMPTE_HARDWARE, _DEVICE_MAP, _VACB_ARRAY_HEADER, _CM_VIEW_OF_FILE, _MAILSLOT_CREATE_PARAMETERS, _HEAP_LIST_LOOKUP, _HIVE_LIST_ENTRY, _DBGKD_READ_WRITE_IO_EXTENDED32, _X86_DBGKD_CONTROL_SET, __unnamed_1c6e, __unnamed_2008, _DRIVER_EXTENSION, _WHEA_ERROR_RECORD_HEADER_VALIDBITS, _ARBITER_BOOT_ALLOCATION_PARAMETERS, _ARM_DBGKD_CONTROL_SET, _ETW_LAST_ENABLE_INFO, _KSTACK_COUNT, __unnamed_12e6, __unnamed_12e0, __unnamed_12e2, _STRING32, _OBJECT_HEADER_PROCESS_INFO, _EVENT_DATA_DESCRIPTOR, _HEAP_STOP_ON_TAG, _MM_PAGED_POOL_INFO, _PNP_DEVICE_EVENT_LIST, _POP_DEVICE_SYS_STATE, _WHEA_REVISION, _COMPRESSED_DATA_INFO, _PNP_DEVICE_EVENT_ENTRY, _XSTATE_CONTEXT, _ETW_REALTIME_CONSUMER, _POP_TRIGGER_WAIT, PROCESSOR_IDLESTATE_POLICY, __unnamed_12ee, __unnamed_12ea, _KTIMER_TABLE_ENTRY, _VF_BTS_DATA_MANAGEMENT_AREA, __unnamed_1c5f, _MMADDRESS_LIST, _FILE_BASIC_INFORMATION, _ARBITER_ALLOCATION_STATE, __unnamed_1c56, _MMWSL, CMP_OFFSET_ARRAY, _PAGED_LOOKASIDE_LIST, LIST_ENTRY32, _LIST_ENTRY, _LARGE_INTEGER, __unnamed_22e5, __unnamed_22e7, _GDI_TEB_BATCH, __unnamed_22e1, _WHEA_MEMORY_ERROR_SECTION_VALIDBITS, _DUMMY_FILE_OBJECT, _POOL_DESCRIPTOR, _HARDWARE_PTE, _ALPC_COMPLETION_PACKET_LOOKASIDE_ENTRY, _TERMINATION_PORT, _HMAP_TABLE, _CACHED_KSTACK_LIST, _OB_DUPLICATE_OBJECT_STATE, _LAZY_WRITER, _OBJECT_DIRECTORY, __unnamed_1e96, __unnamed_1e94, __unnamed_1e92, _VI_DEADLOCK_NODE, __unnamed_1e98, _INTERLOCK_SEQ, _KDPC_DATA, _TEB64, _HEAP_LOOKASIDE, _DBGKD_SEARCH_MEMORY, _VF_TRACKER_STAMP, __unnamed_1e9e, _EX_WORK_QUEUE, __unnamed_1e9a, _EXCEPTION_POINTERS, _KTHREAD, __unnamed_17f6, _DEVICE_CAPABILITIES, _HEAP_USERDATA_HEADER, _KIDTENTRY, _RTL_ATOM_TABLE_ENTRY, _MM_DRIVER_VERIFIER_DATA, __unnamed_1f59, _DEVICE_RELATIONS, _VF_TARGET_DRIVER, _VF_KE_CRITICAL_REGION_TRACE, __unnamed_1060, _HMAP_DIRECTORY, _VI_DEADLOCK_GLOBALS, _RTL_RANGE, _HEAP_PSEUDO_TAG_ENTRY, _INTERFACE, _SECURITY_QUALITY_OF_SERVICE, _ARBITER_INSTANCE, _MM_AVL_TABLE, _OBJECT_SYMBOLIC_LINK, _CELL_DATA, _PCW_CALLBACK_INFORMATION, _LDR_DATA_TABLE_ENTRY, _MMSUBSECTION_NODE, _OBJECT_CREATE_INFORMATION, _EX_PUSH_LOCK, _CM_KEY_SECURITY_CACHE, _KALPC_HANDLE_DATA, __unnamed_1962, __unnamed_1960, _OBJECT_TYPE, _PCW_DATA, __unnamed_12fc, _DRIVER_OBJECT, _UNICODE_STRING, _OBJECT_NAME_INFORMATION, _MMWSLE_FREE_ENTRY, __unnamed_12f8, _AMD64_DBGKD_CONTROL_SET, __unnamed_12f2, _KEVENT, _SEGMENT_FLAGS, _NBQUEUE_BLOCK, _CM_NOTIFY_BLOCK, _DBGKD_READ_WRITE_IO64, _TP_NBQ_GUARD, _ETW_REF_CLOCK, _ARBITER_TEST_ALLOCATION_PARAMETERS, _VF_AVL_TREE_NODE, _CONFIGURATION_COMPONENT_DATA, _SYSPTES_HEADER, _DBGKD_GET_VERSION64, _DUAL, _MI_VERIFIER_POOL_HEADER, _DBGKD_LOAD_SYMBOLS64, _DBGKM_EXCEPTION64, _KAFFINITY_EX, _SHARED_CACHE_MAP_LIST_CURSOR, _MBCB, _ETW_SYSTEMTIME, _KLOCK_QUEUE_HANDLE, __unnamed_1300, _POOL_TRACKER_BIG_PAGES, _RTL_DYNAMIC_HASH_TABLE, _TEB_ACTIVE_FRAME, _PRIVATE_CACHE_MAP_FLAGS, _MMSECURE_FLAGS, _CONTEXT, _ARC_DISK_INFORMATION, _CONTROL_AREA, _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, _CM_KCB_UOW, __unnamed_1e41, _KALPC_SECURITY_DATA, _RTL_CRITICAL_SECTION_DEBUG, _MMVAD, _RELATION_LIST, __unnamed_1e3b, __unnamed_1e3d, _MMSUPPORT_FLAGS, __unnamed_1e3f, _ARBITER_LIST_ENTRY, __unnamed_1e8a, _KTSS, _IO_TIMER, _MI_SECTION_CREATION_GATE, _VI_POOL_ENTRY_INUSE, _NPAGED_LOOKASIDE_LIST, _FS_FILTER_PARAMETERS, _PPM_IDLE_STATES, _PCW_REGISTRATION_INFORMATION, __unnamed_1e37, _CM_KEY_SECURITY, __unnamed_22db, _PRIVILEGE_SET, _PSP_CPU_SHARE_CAPTURED_WEIGHT_DATA, __unnamed_22dd, _RTL_HANDLE_TABLE_ENTRY, _OBJECT_REF_TRACE, __unnamed_1e88, _CALL_PERFORMANCE_DATA, _VF_AVL_TREE, _PRIVATE_CACHE_MAP, _FS_FILTER_CALLBACK_DATA, _MMBANKED_SECTION, _DBGKD_SET_INTERNAL_BREAKPOINT32, __unnamed_1f76, _MMPTE_TRANSITION, _CM_KEY_BODY, _SEP_LOGON_SESSION_REFERENCES, _MI_IMAGE_SECURITY_REFERENCE, _THERMAL_INFORMATION, _COUNTER_READING, _HANDLE_TABLE_ENTRY, _DBGKD_GET_INTERNAL_BREAKPOINT64, _CACHE_MANAGER_CALLBACKS, __unnamed_19c0, _ACCESS_STATE, _VI_VERIFIER_ISSUE, _CM_BIG_DATA, _PERFINFO_GROUPMASK, _EJOB, __unnamed_17ef, _CM_PARTIAL_RESOURCE_DESCRIPTOR, _DISPATCHER_HEADER, _ARBITER_ADD_RESERVED_PARAMETERS, _GENERIC_MAPPING, _ARBITER_RETEST_ALLOCATION_PARAMETERS, __unnamed_1593, _DBGKD_WRITE_BREAKPOINT32, _IO_RESOURCE_LIST, _TRACE_ENABLE_CONTEXT, _SYSTEM_POWER_STATE_CONTEXT, _MMEXTEND_INFO, _RTL_USER_PROCESS_PARAMETERS, _PROC_IDLE_SNAP, _ECP_LIST, _TRACE_ENABLE_INFO, _EXCEPTION_RECORD32, _WMI_BUFFER_HEADER, _DBGKD_ANY_CONTROL_SET, _KDEVICE_QUEUE, _CM_WORKITEM, _FILE_GET_QUOTA_INFORMATION, _CM_FULL_RESOURCE_DESCRIPTOR, _KSTACK_AREA, __unnamed_159e, _FSRTL_ADVANCED_FCB_HEADER, __unnamed_1ea4, _EFI_FIRMWARE_INFORMATION, _FNSAVE_FORMAT, _CM_CACHED_VALUE_INDEX, _VI_POOL_ENTRY, _ALPC_COMMUNICATION_INFO, _SID_IDENTIFIER_AUTHORITY, _PO_DIAG_STACK_RECORD, _POOL_HACKER, _LOADER_PARAMETER_BLOCK, _ETW_LOGGER_HANDLE, _DBGKD_BREAKPOINTEX, _CM_INTENT_LOCK, _M128A, _SEP_AUDIT_POLICY, _MI_COLOR_BASE, _HCELL, _POP_THERMAL_ZONE_METRICS, EX_QUEUE_WORKER_INFO, _CLS_LSN, _EXCEPTION_RECORD, _KPROCESS, _CM_KEY_SECURITY_CACHE_ENTRY, _DEVICE_FLAGS, _CM_KEY_HASH, _RTL_ATOM_TABLE, _KNODE, _KAPC, _RTL_SRWLOCK, _PROC_IDLE_STATE_ACCOUNTING, _VF_BTS_RECORD, _OBJECT_HEADER_QUOTA_INFO, }; static std::map<std::string, std::pair<int, unsigned int>> OFFSET[] = { {}, // UNKNOWN { // _WHEA_ERROR_RECORD_HEADER {"PartitionId", {0x30, _GUID}}, {"Reserved", {0x74, UNKNOWN}}, {"Severity", {0xc, UNKNOWN}}, {"PersistenceInfo", {0x6c, _WHEA_PERSISTENCE_INFO}}, {"NotifyType", {0x50, _GUID}}, {"PlatformId", {0x20, _GUID}}, {"Timestamp", {0x18, _WHEA_TIMESTAMP}}, {"ValidBits", {0x10, _WHEA_ERROR_RECORD_HEADER_VALIDBITS}}, {"RecordId", {0x60, UNKNOWN}}, {"SignatureEnd", {0x6, UNKNOWN}}, {"Length", {0x14, UNKNOWN}}, {"Flags", {0x68, _WHEA_ERROR_RECORD_HEADER_FLAGS}}, {"SectionCount", {0xa, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, {"CreatorId", {0x40, _GUID}}, {"Revision", {0x4, _WHEA_REVISION}}, }, { // _MMVAD_SHORT {"PushLock", {0x18, _EX_PUSH_LOCK}}, {"LeftChild", {0x4, _MMVAD | POINTER}}, {"u", {0x14, __unnamed_1583}}, {"EndingVpn", {0x10, UNKNOWN}}, {"u5", {0x1c, __unnamed_1586}}, {"u1", {0x0, __unnamed_1580}}, {"RightChild", {0x8, _MMVAD | POINTER}}, {"StartingVpn", {0xc, UNKNOWN}}, }, { // _IO_WORKITEM {"IoObject", {0x14, UNKNOWN | POINTER}}, {"WorkItem", {0x0, _WORK_QUEUE_ITEM}}, {"Type", {0x1c, UNKNOWN}}, {"Context", {0x18, UNKNOWN | POINTER}}, {"Routine", {0x10, UNKNOWN | POINTER}}, }, { // _WHEA_MEMORY_ERROR_SECTION {"Node", {0x20, UNKNOWN}}, {"ResponderId", {0x38, UNKNOWN}}, {"BitPosition", {0x2e, UNKNOWN}}, {"Card", {0x22, UNKNOWN}}, {"Bank", {0x26, UNKNOWN}}, {"Column", {0x2c, UNKNOWN}}, {"ErrorType", {0x48, UNKNOWN}}, {"TargetId", {0x40, UNKNOWN}}, {"Module", {0x24, UNKNOWN}}, {"ErrorStatus", {0x8, _WHEA_ERROR_STATUS}}, {"PhysicalAddressMask", {0x18, UNKNOWN}}, {"RequesterId", {0x30, UNKNOWN}}, {"ValidBits", {0x0, _WHEA_MEMORY_ERROR_SECTION_VALIDBITS}}, {"Device", {0x28, UNKNOWN}}, {"PhysicalAddress", {0x10, UNKNOWN}}, {"Row", {0x2a, UNKNOWN}}, }, { // __unnamed_1c3f {"Secured", {0x0, _MMADDRESS_LIST}}, {"List", {0x0, _LIST_ENTRY}}, }, { // _PROC_IDLE_STATE_BUCKET {"TotalTime", {0x0, UNKNOWN}}, {"MinTime", {0x8, UNKNOWN}}, {"MaxTime", {0x10, UNKNOWN}}, {"Count", {0x18, UNKNOWN}}, }, { // _POP_POWER_ACTION {"ProgrammedRTCTime", {0x50, UNKNOWN}}, {"SystemState", {0x20, UNKNOWN}}, {"NextSystemState", {0x24, UNKNOWN}}, {"State", {0x1, UNKNOWN}}, {"WakeOnRTC", {0x58, UNKNOWN}}, {"EffectiveSystemState", {0x28, UNKNOWN}}, {"Status", {0x10, UNKNOWN}}, {"LightestState", {0x8, UNKNOWN}}, {"CurrentSystemState", {0x2c, UNKNOWN}}, {"WakeTime", {0x40, UNKNOWN}}, {"FilteredCapabilities", {0x60, SYSTEM_POWER_CAPABILITIES}}, {"Updates", {0x0, UNKNOWN}}, {"Action", {0x4, UNKNOWN}}, {"IrpMinor", {0x1c, UNKNOWN}}, {"DeviceTypeFlags", {0x18, UNKNOWN}}, {"DevState", {0x34, _POP_DEVICE_SYS_STATE | POINTER}}, {"Flags", {0xc, UNKNOWN}}, {"ShutdownBugCode", {0x30, _POP_SHUTDOWN_BUG_CHECK | POINTER}}, {"WakeTimerInfo", {0x5c, _DIAGNOSTIC_BUFFER | POINTER}}, {"SleepTime", {0x48, UNKNOWN}}, {"HiberContext", {0x38, _POP_HIBER_CONTEXT | POINTER}}, {"Waking", {0x1d, UNKNOWN}}, {"Shutdown", {0x2, UNKNOWN}}, {"DeviceType", {0x14, UNKNOWN}}, }, { // __unnamed_1a19 {"Revoked", {0x0, UNKNOWN}}, {"Impersonated", {0x0, UNKNOWN}}, }, { // _MM_PAGE_ACCESS_INFO_HEADER {"CurrentFileIndex", {0x8, UNKNOWN}}, {"FirstFileEntry", {0x28, UNKNOWN | POINTER}}, {"LastPageFrameEntry", {0x24, UNKNOWN | POINTER}}, {"SessionId", {0x30, UNKNOWN}}, {"FileEntry", {0x24, UNKNOWN | POINTER}}, {"EmptySequenceNumber", {0x8, UNKNOWN}}, {"TempEntry", {0x18, _MM_PAGE_ACCESS_INFO | POINTER}}, {"Process", {0x2c, _EPROCESS | POINTER}}, {"Type", {0x4, UNKNOWN}}, {"PageFrameEntry", {0x20, UNKNOWN | POINTER}}, {"EmptyTime", {0x18, UNKNOWN}}, {"Link", {0x0, _SINGLE_LIST_ENTRY}}, {"CreateTime", {0x10, UNKNOWN}}, {"PageEntry", {0x20, _MM_PAGE_ACCESS_INFO | POINTER}}, }, { // _OBJECT_ATTRIBUTES {"RootDirectory", {0x4, UNKNOWN | POINTER}}, {"ObjectName", {0x8, _UNICODE_STRING | POINTER}}, {"SecurityQualityOfService", {0x14, UNKNOWN | POINTER}}, {"SecurityDescriptor", {0x10, UNKNOWN | POINTER}}, {"Length", {0x0, UNKNOWN}}, {"Attributes", {0xc, UNKNOWN}}, }, { // _KALPC_MESSAGE_ATTRIBUTES {"HandleData", {0x18, _KALPC_HANDLE_DATA | POINTER}}, {"ServerContext", {0x4, UNKNOWN | POINTER}}, {"CancelPortContext", {0xc, UNKNOWN | POINTER}}, {"ClientContext", {0x0, UNKNOWN | POINTER}}, {"PortContext", {0x8, UNKNOWN | POINTER}}, {"SecurityData", {0x10, _KALPC_SECURITY_DATA | POINTER}}, {"View", {0x14, _KALPC_VIEW | POINTER}}, }, { // _XSTATE_SAVE {"XStateContext", {0x0, _XSTATE_CONTEXT}}, {"Thread", {0x14, _KTHREAD | POINTER}}, {"Level", {0x1c, UNKNOWN}}, {"Reserved4", {0x18, UNKNOWN | POINTER}}, {"Prev", {0xc, _XSTATE_SAVE | POINTER}}, {"Reserved1", {0x0, UNKNOWN}}, {"Reserved3", {0x10, _XSAVE_AREA | POINTER}}, {"Reserved2", {0x8, UNKNOWN}}, }, { // _OBJECT_DUMP_CONTROL {"Detail", {0x4, UNKNOWN}}, {"Stream", {0x0, UNKNOWN | POINTER}}, }, { // _CM_KEY_NODE {"WorkVar", {0x44, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, {"SubKeyLists", {0x1c, UNKNOWN}}, {"ValueList", {0x24, _CHILD_LIST}}, {"Parent", {0x10, UNKNOWN}}, {"MaxValueNameLen", {0x3c, UNKNOWN}}, {"SubKeyCounts", {0x14, UNKNOWN}}, {"Spare", {0xc, UNKNOWN}}, {"UserFlags", {0x34, UNKNOWN}}, {"VirtControlFlags", {0x34, UNKNOWN}}, {"MaxValueDataLen", {0x40, UNKNOWN}}, {"Name", {0x4c, UNKNOWN}}, {"ClassLength", {0x4a, UNKNOWN}}, {"MaxClassLen", {0x38, UNKNOWN}}, {"NameLength", {0x48, UNKNOWN}}, {"Flags", {0x2, UNKNOWN}}, {"LastWriteTime", {0x4, _LARGE_INTEGER}}, {"Debug", {0x34, UNKNOWN}}, {"Security", {0x2c, UNKNOWN}}, {"ChildHiveReference", {0x1c, _CM_KEY_REFERENCE}}, {"MaxNameLen", {0x34, UNKNOWN}}, {"Class", {0x30, UNKNOWN}}, }, { // _MMPTE_LIST {"filler1", {0x0, UNKNOWN}}, {"OneEntry", {0x0, UNKNOWN}}, {"Valid", {0x0, UNKNOWN}}, {"Prototype", {0x0, UNKNOWN}}, {"NextEntry", {0x0, UNKNOWN}}, {"filler0", {0x0, UNKNOWN}}, }, { // _FXSAVE_FORMAT {"ErrorOpcode", {0x6, UNKNOWN}}, {"MXCsrMask", {0x1c, UNKNOWN}}, {"DataSelector", {0x14, UNKNOWN}}, {"ControlWord", {0x0, UNKNOWN}}, {"ErrorSelector", {0xc, UNKNOWN}}, {"ErrorOffset", {0x8, UNKNOWN}}, {"MXCsr", {0x18, UNKNOWN}}, {"DataOffset", {0x10, UNKNOWN}}, {"TagWord", {0x4, UNKNOWN}}, {"StatusWord", {0x2, UNKNOWN}}, {"Reserved4", {0x120, UNKNOWN}}, {"RegisterArea", {0x20, UNKNOWN}}, {"Reserved3", {0xa0, UNKNOWN}}, }, { // _SLIST_HEADER {"Depth", {0x4, UNKNOWN}}, {"Sequence", {0x6, UNKNOWN}}, {"Alignment", {0x0, UNKNOWN}}, {"Next", {0x0, _SINGLE_LIST_ENTRY}}, }, { // __unnamed_14ef {"WsIndex", {0x0, UNKNOWN}}, {"Flink", {0x0, UNKNOWN}}, {"KernelStackOwner", {0x0, _KTHREAD | POINTER}}, {"Next", {0x0, UNKNOWN | POINTER}}, {"VolatileNext", {0x0, UNKNOWN | POINTER}}, {"NextStackPfn", {0x0, _SINGLE_LIST_ENTRY}}, {"Event", {0x0, _KEVENT | POINTER}}, }, { // _PO_NOTIFY_ORDER_LEVEL {"ActiveCount", {0x4, UNKNOWN}}, {"ReadySleep", {0x10, _LIST_ENTRY}}, {"WaitSleep", {0x8, _LIST_ENTRY}}, {"DeviceCount", {0x0, UNKNOWN}}, {"WaitS0", {0x20, _LIST_ENTRY}}, {"ReadyS0", {0x18, _LIST_ENTRY}}, }, { // _FREE_DISPLAY {"RealVectorSize", {0x0, UNKNOWN}}, {"Display", {0x4, _RTL_BITMAP}}, }, { // PROCESSOR_PERFSTATE_POLICY {"DecreasePercent", {0x18, UNKNOWN}}, {"MinThrottle", {0x5, UNKNOWN}}, {"DecreaseTime", {0x10, UNKNOWN}}, {"MaxThrottle", {0x4, UNKNOWN}}, {"Flags", {0x7, __unnamed_1ec1}}, {"BusyAdjThreshold", {0x6, UNKNOWN}}, {"Revision", {0x0, UNKNOWN}}, {"IncreaseTime", {0xc, UNKNOWN}}, {"IncreasePercent", {0x14, UNKNOWN}}, {"TimeCheck", {0x8, UNKNOWN}}, {"Spare", {0x7, UNKNOWN}}, }, { // __unnamed_1a1b {"s1", {0x0, __unnamed_1a19}}, }, { // _ALPC_DISPATCH_CONTEXT {"CommunicationInfo", {0x8, _ALPC_COMMUNICATION_INFO | POINTER}}, {"TargetThread", {0xc, _ETHREAD | POINTER}}, {"TargetPort", {0x10, _ALPC_PORT | POINTER}}, {"TotalLength", {0x18, UNKNOWN}}, {"Flags", {0x14, UNKNOWN}}, {"PortObject", {0x0, _ALPC_PORT | POINTER}}, {"DataInfoOffset", {0x1c, UNKNOWN}}, {"Type", {0x1a, UNKNOWN}}, {"Message", {0x4, _KALPC_MESSAGE | POINTER}}, }, { // _IA64_LOADER_BLOCK {"PlaceHolder", {0x0, UNKNOWN}}, }, { // __unnamed_1e24 {"OldCell", {0x0, __unnamed_1e20}}, {"NewCell", {0x0, __unnamed_1e22}}, }, { // __unnamed_1e22 {"u", {0x0, __unnamed_1e1e}}, }, { // _KENLISTMENT_HISTORY {"Notification", {0x0, UNKNOWN}}, {"NewState", {0x4, UNKNOWN}}, }, { // __unnamed_1e20 {"u", {0x4, __unnamed_1e1e}}, {"Last", {0x0, UNKNOWN}}, }, { // _ACTIVATION_CONTEXT_STACK {"StackId", {0x14, UNKNOWN}}, {"ActiveFrame", {0x0, _RTL_ACTIVATION_CONTEXT_STACK_FRAME | POINTER}}, {"Flags", {0xc, UNKNOWN}}, {"FrameListCache", {0x4, _LIST_ENTRY}}, {"NextCookieSequenceNumber", {0x10, UNKNOWN}}, }, { // _WHEA_TIMESTAMP {"Hours", {0x0, UNKNOWN}}, {"Precise", {0x0, UNKNOWN}}, {"Reserved", {0x0, UNKNOWN}}, {"AsLARGE_INTEGER", {0x0, _LARGE_INTEGER}}, {"Year", {0x0, UNKNOWN}}, {"Seconds", {0x0, UNKNOWN}}, {"Century", {0x0, UNKNOWN}}, {"Minutes", {0x0, UNKNOWN}}, {"Day", {0x0, UNKNOWN}}, {"Month", {0x0, UNKNOWN}}, }, { // _PS_PER_CPU_QUOTA_CACHE_AWARE {"CurrentGeneration", {0x20, UNKNOWN}}, {"SortedListEntry", {0x0, _LIST_ENTRY}}, {"CyclesRemaining", {0x18, UNKNOWN}}, {"IdleOnlyListHead", {0x8, _LIST_ENTRY}}, {"CycleBaseAllowance", {0x10, UNKNOWN}}, }, { // _ARBITER_QUERY_ALLOCATED_RESOURCES_PARAMETERS {"AllocatedResources", {0x0, UNKNOWN | POINTER}}, }, { // __unnamed_15a6 {"KeepForever", {0x0, UNKNOWN}}, }, { // __unnamed_15a4 {"IoStatus", {0x0, _IO_STATUS_BLOCK}}, }, { // _ARBITER_QUERY_ARBITRATE_PARAMETERS {"ArbitrationList", {0x0, _LIST_ENTRY | POINTER}}, }, { // _QUAD {"UseThisFieldToCopy", {0x0, UNKNOWN}}, {"DoNotUseThisField", {0x0, UNKNOWN}}, }, { // _FILE_SEGMENT_ELEMENT {"Buffer", {0x0, UNKNOWN | POINTER}}, {"Alignment", {0x0, UNKNOWN}}, }, { // _DBGKD_SET_SPECIAL_CALL32 {"SpecialCall", {0x0, UNKNOWN}}, }, { // _VI_DEADLOCK_RESOURCE {"StackTrace", {0x20, UNKNOWN}}, {"RecursionCount", {0x4, UNKNOWN}}, {"NodeCount", {0x4, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"FreeListEntry", {0x18, _LIST_ENTRY}}, {"LastReleaseTrace", {0x60, UNKNOWN}}, {"ResourceAddress", {0x8, UNKNOWN | POINTER}}, {"ThreadOwner", {0xc, _VI_DEADLOCK_THREAD | POINTER}}, {"LastAcquireTrace", {0x40, UNKNOWN}}, {"ResourceList", {0x10, _LIST_ENTRY}}, {"HashChainList", {0x18, _LIST_ENTRY}}, }, { // _DEFERRED_WRITE {"NodeByteSize", {0x2, UNKNOWN}}, {"DeferredWriteLinks", {0xc, _LIST_ENTRY}}, {"NodeTypeCode", {0x0, UNKNOWN}}, {"Context2", {0x20, UNKNOWN | POINTER}}, {"PostRoutine", {0x18, UNKNOWN | POINTER}}, {"BytesToWrite", {0x8, UNKNOWN}}, {"FileObject", {0x4, _FILE_OBJECT | POINTER}}, {"Context1", {0x1c, UNKNOWN | POINTER}}, {"Event", {0x14, _KEVENT | POINTER}}, }, { // _PP_LOOKASIDE_LIST {"P", {0x0, _GENERAL_LOOKASIDE | POINTER}}, {"L", {0x4, _GENERAL_LOOKASIDE | POINTER}}, }, { // _DEVICE_OBJECT_POWER_EXTENSION {"BusyReference", {0x8, UNKNOWN}}, {"IdleCount", {0x0, UNKNOWN}}, {"PerformanceIdleTime", {0x14, UNKNOWN}}, {"ConservationIdleTime", {0x10, UNKNOWN}}, {"IdleState", {0x28, UNKNOWN}}, {"BusyCount", {0x4, UNKNOWN}}, {"CurrentState", {0x2c, UNKNOWN}}, {"Specific", {0x38, __unnamed_1f8a}}, {"DeviceObject", {0x18, _DEVICE_OBJECT | POINTER}}, {"IdleList", {0x1c, _LIST_ENTRY}}, {"IdleType", {0x24, UNKNOWN}}, {"Volume", {0x30, _LIST_ENTRY}}, {"TotalBusyCount", {0xc, UNKNOWN}}, }, { // _PERFINFO_TRACE_HEADER {"Header", {0x4, UNKNOWN}}, {"SystemTime", {0x8, _LARGE_INTEGER}}, {"Version", {0x0, UNKNOWN}}, {"Flags", {0x3, UNKNOWN}}, {"HeaderType", {0x2, UNKNOWN}}, {"Marker", {0x0, UNKNOWN}}, {"Data", {0x10, UNKNOWN}}, {"TS", {0x8, UNKNOWN}}, {"Packet", {0x4, _WMI_TRACE_PACKET}}, }, { // _RTL_AVL_TABLE {"CompareRoutine", {0x28, UNKNOWN | POINTER}}, {"BalancedRoot", {0x0, _RTL_BALANCED_LINKS}}, {"AllocateRoutine", {0x2c, UNKNOWN | POINTER}}, {"DepthOfTree", {0x1c, UNKNOWN}}, {"TableContext", {0x34, UNKNOWN | POINTER}}, {"NumberGenericTableElements", {0x18, UNKNOWN}}, {"WhichOrderedElement", {0x14, UNKNOWN}}, {"DeleteCount", {0x24, UNKNOWN}}, {"OrderedPointer", {0x10, UNKNOWN | POINTER}}, {"FreeRoutine", {0x30, UNKNOWN | POINTER}}, {"RestartKey", {0x20, _RTL_BALANCED_LINKS | POINTER}}, }, { // _ALPC_PORT {"ResourceListLock", {0xb0, _EX_PUSH_LOCK}}, {"MainQueue", {0x5c, _LIST_ENTRY}}, {"ResourceListHead", {0xb4, _LIST_ENTRY}}, {"TargetSequencePort", {0xe0, _ALPC_PORT | POINTER}}, {"LargeMessageQueueLength", {0xf0, UNKNOWN}}, {"CompletionPort", {0x10, UNKNOWN | POINTER}}, {"CommunicationInfo", {0x8, _ALPC_COMMUNICATION_INFO | POINTER}}, {"CanceledQueue", {0xcc, _LIST_ENTRY}}, {"StaticSecurity", {0x20, _SECURITY_CLIENT_CONTEXT}}, {"Semaphore", {0x7c, _KSEMAPHORE | POINTER}}, {"PendingQueueLength", {0xec, UNKNOWN}}, {"CallbackContext", {0xc8, UNKNOWN | POINTER}}, {"TargetQueuePort", {0xdc, _ALPC_PORT | POINTER}}, {"MainQueueLength", {0xe8, UNKNOWN}}, {"WaitQueue", {0x74, _LIST_ENTRY}}, {"WaitQueueLength", {0xf8, UNKNOWN}}, {"OwnerProcess", {0xc, _EPROCESS | POINTER}}, {"PortListEntry", {0x0, _LIST_ENTRY}}, {"SequenceNo", {0xd4, UNKNOWN}}, {"DummyEvent", {0x7c, _KEVENT | POINTER}}, {"u1", {0xd8, __unnamed_19c2}}, {"PortAttributes", {0x80, _ALPC_PORT_ATTRIBUTES}}, {"MessageZone", {0xc0, _ALPC_MESSAGE_ZONE | POINTER}}, {"LargeMessageQueue", {0x6c, _LIST_ENTRY}}, {"CompletionList", {0xbc, _ALPC_COMPLETION_LIST | POINTER}}, {"PendingQueue", {0x64, _LIST_ENTRY}}, {"CachedMessage", {0xe4, _KALPC_MESSAGE | POINTER}}, {"Lock", {0xac, _EX_PUSH_LOCK}}, {"CanceledQueueLength", {0xf4, UNKNOWN}}, {"CompletionKey", {0x14, UNKNOWN | POINTER}}, {"CompletionPacketLookaside", {0x18, _ALPC_COMPLETION_PACKET_LOOKASIDE | POINTER}}, {"PortContext", {0x1c, UNKNOWN | POINTER}}, {"CallbackObject", {0xc4, UNKNOWN | POINTER}}, }, { // _PI_BUS_EXTENSION {"BusNumber", {0x38, UNKNOWN}}, {"AddressPort", {0x10, UNKNOWN | POINTER}}, {"DevicePowerState", {0x40, UNKNOWN}}, {"CardList", {0x28, _SINGLE_LIST_ENTRY}}, {"DeviceList", {0x24, _SINGLE_LIST_ENTRY}}, {"AttachedDevice", {0x34, _DEVICE_OBJECT | POINTER}}, {"NumberCSNs", {0x4, UNKNOWN}}, {"SystemPowerState", {0x3c, UNKNOWN}}, {"DataPortMapped", {0xc, UNKNOWN}}, {"ReadDataPort", {0x8, UNKNOWN | POINTER}}, {"AddrPortMapped", {0x14, UNKNOWN}}, {"Flags", {0x0, UNKNOWN}}, {"CommandPort", {0x18, UNKNOWN | POINTER}}, {"FunctionalBusDevice", {0x30, _DEVICE_OBJECT | POINTER}}, {"PhysicalBusDevice", {0x2c, _DEVICE_OBJECT | POINTER}}, {"CmdPortMapped", {0x1c, UNKNOWN}}, {"NextSlotNumber", {0x20, UNKNOWN}}, }, { // _MMPTE {"u", {0x0, __unnamed_14ad}}, }, { // _MMPFNLIST {"ListName", {0x4, UNKNOWN}}, {"Total", {0x0, UNKNOWN}}, {"Lock", {0x10, UNKNOWN}}, {"Blink", {0xc, UNKNOWN}}, {"Flink", {0x8, UNKNOWN}}, }, { // _SID {"IdentifierAuthority", {0x2, _SID_IDENTIFIER_AUTHORITY}}, {"SubAuthorityCount", {0x1, UNKNOWN}}, {"SubAuthority", {0x8, UNKNOWN}}, {"Revision", {0x0, UNKNOWN}}, }, { // _MMPAGING_FILE {"BitmapHint", {0x34, UNKNOWN}}, {"LastAllocationSize", {0x38, UNKNOWN}}, {"MinimumSize", {0x8, UNKNOWN}}, {"PageFileName", {0x24, _UNICODE_STRING}}, {"PeakUsage", {0x10, UNKNOWN}}, {"AdriftMdls", {0x42, UNKNOWN}}, {"BootPartition", {0x40, UNKNOWN}}, {"PageFileNumber", {0x40, UNKNOWN}}, {"LockOwner", {0x4c, _ETHREAD | POINTER}}, {"HighestPage", {0x14, UNKNOWN}}, {"MaximumSize", {0x4, UNKNOWN}}, {"ToBeEvictedCount", {0x3c, UNKNOWN}}, {"EvictStoreBitmap", {0x30, _RTL_BITMAP | POINTER}}, {"FreeSpace", {0xc, UNKNOWN}}, {"Spare1", {0x42, UNKNOWN}}, {"Spare0", {0x40, UNKNOWN}}, {"Lock", {0x48, UNKNOWN}}, {"Bitmap", {0x2c, _RTL_BITMAP | POINTER}}, {"Entry", {0x1c, UNKNOWN}}, {"File", {0x18, _FILE_OBJECT | POINTER}}, {"FileHandle", {0x44, UNKNOWN | POINTER}}, {"Size", {0x0, UNKNOWN}}, }, { // _KDPC {"DpcData", {0x1c, UNKNOWN | POINTER}}, {"DeferredRoutine", {0xc, UNKNOWN | POINTER}}, {"DeferredContext", {0x10, UNKNOWN | POINTER}}, {"Importance", {0x1, UNKNOWN}}, {"DpcListEntry", {0x4, _LIST_ENTRY}}, {"SystemArgument1", {0x14, UNKNOWN | POINTER}}, {"Type", {0x0, UNKNOWN}}, {"Number", {0x2, UNKNOWN}}, {"SystemArgument2", {0x18, UNKNOWN | POINTER}}, }, { // _MSUBSECTION {"RightChild", {0x28, _MMSUBSECTION_NODE | POINTER}}, {"NumberOfMappedViews", {0x34, UNKNOWN}}, {"NextSubsection", {0x8, _SUBSECTION | POINTER}}, {"NextMappedSubsection", {0x8, _MSUBSECTION | POINTER}}, {"GlobalPerSessionHead", {0x10, _MM_AVL_TABLE | POINTER}}, {"NumberOfFullSectors", {0x1c, UNKNOWN}}, {"ControlArea", {0x0, _CONTROL_AREA | POINTER}}, {"PtesInSubsection", {0xc, UNKNOWN}}, {"DereferenceList", {0x2c, _LIST_ENTRY}}, {"u1", {0x20, __unnamed_1f80}}, {"UnusedPtes", {0x10, UNKNOWN}}, {"LeftChild", {0x24, _MMSUBSECTION_NODE | POINTER}}, {"u", {0x14, __unnamed_1ef2}}, {"StartingSector", {0x18, UNKNOWN}}, {"SubsectionBase", {0x4, _MMPTE | POINTER}}, }, { // _DBGKD_MANIPULATE_STATE32 {"ProcessorLevel", {0x4, UNKNOWN}}, {"u", {0xc, __unnamed_17f6}}, {"ApiNumber", {0x0, UNKNOWN}}, {"ReturnStatus", {0x8, UNKNOWN}}, {"Processor", {0x6, UNKNOWN}}, }, { // _ALPC_COMPLETION_LIST_STATE {"u1", {0x0, __unnamed_2272}}, }, { // _OBJECT_HANDLE_COUNT_DATABASE {"CountEntries", {0x0, UNKNOWN}}, {"HandleCountEntries", {0x4, UNKNOWN}}, }, { // _HEAP_STOP_ON_VALUES {"ReAllocAddress", {0x8, UNKNOWN}}, {"AllocTag", {0x4, _HEAP_STOP_ON_TAG}}, {"AllocAddress", {0x0, UNKNOWN}}, {"FreeAddress", {0x10, UNKNOWN}}, {"ReAllocTag", {0xc, _HEAP_STOP_ON_TAG}}, {"FreeTag", {0x14, _HEAP_STOP_ON_TAG}}, }, { // _PPM_PERF_STATES {"TStateHandler", {0x44, UNKNOWN | POINTER}}, {"MinPerfState", {0x14, UNKNOWN}}, {"GetFFHThrottleState", {0x50, UNKNOWN | POINTER}}, {"State", {0x58, UNKNOWN}}, {"FeedbackHandler", {0x4c, UNKNOWN | POINTER}}, {"MaxPerfState", {0x10, UNKNOWN}}, {"BusyAdjThreshold", {0x24, UNKNOWN}}, {"IncreaseTime", {0x1c, UNKNOWN}}, {"PStateContext", {0x40, UNKNOWN}}, {"PStateHandler", {0x3c, UNKNOWN | POINTER}}, {"Count", {0x0, UNKNOWN}}, {"TargetProcessors", {0x30, _KAFFINITY_EX}}, {"DecreaseTime", {0x20, UNKNOWN}}, {"Flags", {0x2c, __unnamed_2008}}, {"LowestPState", {0x18, UNKNOWN}}, {"TimerInterval", {0x28, UNKNOWN}}, {"Reserved", {0x25, UNKNOWN}}, {"TStateCap", {0xc, UNKNOWN}}, {"ThrottleStatesOnly", {0x26, UNKNOWN}}, {"MaxFrequency", {0x4, UNKNOWN}}, {"PStateCap", {0x8, UNKNOWN}}, {"PolicyType", {0x27, UNKNOWN}}, {"TStateContext", {0x48, UNKNOWN}}, }, { // __unnamed_158e {"Balance", {0x0, UNKNOWN}}, {"Parent", {0x0, _MMADDRESS_NODE | POINTER}}, }, { // _CM_NAME_CONTROL_BLOCK {"Name", {0xe, UNKNOWN}}, {"RefCount", {0x2, UNKNOWN}}, {"NameLength", {0xc, UNKNOWN}}, {"Compressed", {0x0, UNKNOWN}}, {"NextHash", {0x8, _CM_KEY_HASH | POINTER}}, {"ConvKey", {0x4, UNKNOWN}}, {"NameHash", {0x4, _CM_NAME_HASH}}, }, { // SYSTEM_POWER_LEVEL {"MinSystemState", {0x14, UNKNOWN}}, {"BatteryLevel", {0x4, UNKNOWN}}, {"Enable", {0x0, UNKNOWN}}, {"Spare", {0x1, UNKNOWN}}, {"PowerPolicy", {0x8, POWER_ACTION_POLICY}}, }, { // _DBGKD_RESTORE_BREAKPOINT {"BreakPointHandle", {0x0, UNKNOWN}}, }, { // __unnamed_199c {"s1", {0x0, __unnamed_199a}}, }, { // _NLS_DATA_BLOCK {"OemCodePageData", {0x4, UNKNOWN | POINTER}}, {"UnicodeCaseTableData", {0x8, UNKNOWN | POINTER}}, {"AnsiCodePageData", {0x0, UNKNOWN | POINTER}}, }, { // __unnamed_199a {"Secure", {0x0, UNKNOWN}}, }, { // _TEB32 {"TxFsContext", {0x1d0, UNKNOWN}}, {"SpareUlong0", {0xfdc, UNKNOWN}}, {"EtwLocalData", {0xf64, UNKNOWN}}, {"LockCount", {0xfd8, UNKNOWN}}, {"ThreadPoolData", {0xf90, UNKNOWN}}, {"LastStatusValue", {0xbf4, UNKNOWN}}, {"HardErrorMode", {0xf28, UNKNOWN}}, {"IsImpersonating", {0xf9c, UNKNOWN}}, {"EnvironmentPointer", {0x1c, UNKNOWN}}, {"ActiveRpcHandle", {0x28, UNKNOWN}}, {"glContext", {0xbf0, UNKNOWN}}, {"StaticUnicodeBuffer", {0xc00, UNKNOWN}}, {"CurrentLocale", {0xc4, UNKNOWN}}, {"SafeThunkCall", {0xfca, UNKNOWN}}, {"DeallocationStack", {0xe0c, UNKNOWN}}, {"glReserved1", {0xb68, UNKNOWN}}, {"glReserved2", {0xbdc, UNKNOWN}}, {"InDebugPrint", {0xfca, UNKNOWN}}, {"HasFiberData", {0xfca, UNKNOWN}}, {"CrossTebFlags", {0xfc8, UNKNOWN}}, {"SavedPriorityState", {0xf88, UNKNOWN}}, {"SystemReserved1", {0xcc, UNKNOWN}}, {"WaitingOnLoaderLock", {0xf84, UNKNOWN}}, {"CsrClientThread", {0x3c, UNKNOWN}}, {"SubProcessTag", {0xf60, UNKNOWN}}, {"RealClientId", {0x6b4, _CLIENT_ID32}}, {"Instrumentation", {0xf2c, UNKNOWN}}, {"LastErrorValue", {0x34, UNKNOWN}}, {"IdealProcessorValue", {0xf74, UNKNOWN}}, {"TlsExpansionSlots", {0xf94, UNKNOWN}}, {"glCurrentRC", {0xbec, UNKNOWN}}, {"TxnScopeExitCallback", {0xfd0, UNKNOWN}}, {"glSectionInfo", {0xbe0, UNKNOWN}}, {"CountOfOwnedCriticalSections", {0x38, UNKNOWN}}, {"ReservedForOle", {0xf80, UNKNOWN}}, {"SpareSameTebBits", {0xfca, UNKNOWN}}, {"MuiImpersonation", {0xfc4, UNKNOWN}}, {"ThreadLocalStoragePointer", {0x2c, UNKNOWN}}, {"FpSoftwareStatusRegister", {0xc8, UNKNOWN}}, {"WerInShipAssertCode", {0xfca, UNKNOWN}}, {"DisableUserStackWalk", {0xfca, UNKNOWN}}, {"ActiveFrame", {0xfb0, UNKNOWN}}, {"UserReserved", {0xac, UNKNOWN}}, {"TlsLinks", {0xf10, LIST_ENTRY32}}, {"SameTebFlags", {0xfca, UNKNOWN}}, {"IdealProcessor", {0xf77, UNKNOWN}}, {"NtTib", {0x0, _NT_TIB32}}, {"EtwTraceData", {0xf68, UNKNOWN}}, {"NlsCache", {0xfa0, UNKNOWN}}, {"GdiClientTID", {0x6c4, UNKNOWN}}, {"MergedPrefLanguages", {0xfc0, UNKNOWN}}, {"ClonedThread", {0xfca, UNKNOWN}}, {"HeapVirtualAffinity", {0xfa8, UNKNOWN}}, {"ReservedForPerf", {0xf7c, UNKNOWN}}, {"GdiCachedProcessHandle", {0x6bc, UNKNOWN}}, {"CurrentTransactionHandle", {0xfac, UNKNOWN}}, {"GdiThreadLocalInfo", {0x6c8, UNKNOWN}}, {"SpareCrossTebBits", {0xfc8, UNKNOWN}}, {"TxnScopeEnterCallback", {0xfcc, UNKNOWN}}, {"GdiClientPID", {0x6c0, UNKNOWN}}, {"glSection", {0xbe4, UNKNOWN}}, {"SuppressDebugMsg", {0xfca, UNKNOWN}}, {"StaticUnicodeString", {0xbf8, _STRING32}}, {"InitialThread", {0xfca, UNKNOWN}}, {"WOW32Reserved", {0xc0, UNKNOWN}}, {"ExceptionCode", {0x1a4, UNKNOWN}}, {"Vdm", {0xf18, UNKNOWN}}, {"SkipThreadAttach", {0xfca, UNKNOWN}}, {"UserPrefLanguages", {0xfbc, UNKNOWN}}, {"TlsSlots", {0xe10, UNKNOWN}}, {"GuaranteedStackBytes", {0xf78, UNKNOWN}}, {"CurrentIdealProcessor", {0xf74, _PROCESSOR_NUMBER}}, {"Win32ClientInfo", {0x6cc, UNKNOWN}}, {"ClientId", {0x20, _CLIENT_ID32}}, {"TxnScopeContext", {0xfd4, UNKNOWN}}, {"RanProcessInit", {0xfca, UNKNOWN}}, {"RtlExceptionAttached", {0xfca, UNKNOWN}}, {"glDispatchTable", {0x7c4, UNKNOWN}}, {"ProcessEnvironmentBlock", {0x30, UNKNOWN}}, {"FlsData", {0xfb4, UNKNOWN}}, {"SpareBytes", {0x1ac, UNKNOWN}}, {"PreferredLanguages", {0xfb8, UNKNOWN}}, {"ReservedForNtRpc", {0xf1c, UNKNOWN}}, {"GdiBatchCount", {0xf70, UNKNOWN}}, {"DbgSsReserved", {0xf20, UNKNOWN}}, {"Win32ThreadInfo", {0x40, UNKNOWN}}, {"MuiGeneration", {0xf98, UNKNOWN}}, {"SoftPatchPtr1", {0xf8c, UNKNOWN}}, {"ResourceRetValue", {0xfe0, UNKNOWN}}, {"WinSockData", {0xf6c, UNKNOWN}}, {"GdiTebBatch", {0x1d4, _GDI_TEB_BATCH32}}, {"User32Reserved", {0x44, UNKNOWN}}, {"ReservedPad1", {0xf75, UNKNOWN}}, {"ReservedPad0", {0xf74, UNKNOWN}}, {"ReservedPad2", {0xf76, UNKNOWN}}, {"ActivityId", {0xf50, _GUID}}, {"glTable", {0xbe8, UNKNOWN}}, {"ActivationContextStackPointer", {0x1a8, UNKNOWN}}, {"pShimData", {0xfa4, UNKNOWN}}, }, { // _DBGKD_READ_WRITE_MSR {"DataValueLow", {0x4, UNKNOWN}}, {"Msr", {0x0, UNKNOWN}}, {"DataValueHigh", {0x8, UNKNOWN}}, }, { // _WHEA_ERROR_RECORD_HEADER_FLAGS {"AsULONG", {0x0, UNKNOWN}}, {"Reserved", {0x0, UNKNOWN}}, {"PreviousError", {0x0, UNKNOWN}}, {"Recovered", {0x0, UNKNOWN}}, {"Simulated", {0x0, UNKNOWN}}, }, { // _PCW_COUNTER_DESCRIPTOR {"Size", {0x6, UNKNOWN}}, {"Id", {0x0, UNKNOWN}}, {"StructIndex", {0x2, UNKNOWN}}, {"Offset", {0x4, UNKNOWN}}, }, { // __unnamed_1045 {"HighPart", {0x4, UNKNOWN}}, {"LowPart", {0x0, UNKNOWN}}, }, { // _TOKEN_SOURCE {"SourceName", {0x0, UNKNOWN}}, {"SourceIdentifier", {0x8, _LUID}}, }, { // __unnamed_1041 {"HighPart", {0x4, UNKNOWN}}, {"LowPart", {0x0, UNKNOWN}}, }, { // _flags {"GroupAssignmentFixed", {0x0, UNKNOWN}}, {"Fill", {0x0, UNKNOWN}}, {"GroupAssigned", {0x0, UNKNOWN}}, {"Removable", {0x0, UNKNOWN}}, {"GroupCommitted", {0x0, UNKNOWN}}, }, { // _TIME_FIELDS {"Second", {0xa, UNKNOWN}}, {"Milliseconds", {0xc, UNKNOWN}}, {"Hour", {0x6, UNKNOWN}}, {"Year", {0x0, UNKNOWN}}, {"Weekday", {0xe, UNKNOWN}}, {"Day", {0x4, UNKNOWN}}, {"Minute", {0x8, UNKNOWN}}, {"Month", {0x2, UNKNOWN}}, }, { // _KALPC_REGION {"NumberOfViews", {0x1c, UNKNOWN}}, {"ViewListHead", {0x20, _LIST_ENTRY}}, {"ReadWriteView", {0x2c, _KALPC_VIEW | POINTER}}, {"Offset", {0xc, UNKNOWN}}, {"ViewSize", {0x14, UNKNOWN}}, {"ReadOnlyView", {0x28, _KALPC_VIEW | POINTER}}, {"Section", {0x8, _KALPC_SECTION | POINTER}}, {"Size", {0x10, UNKNOWN}}, {"u1", {0x18, __unnamed_199c}}, {"RegionListEntry", {0x0, _LIST_ENTRY}}, }, { // __unnamed_1586 {"LongFlags3", {0x0, UNKNOWN}}, {"VadFlags3", {0x0, _MMVAD_FLAGS3}}, }, { // __unnamed_1580 {"Balance", {0x0, UNKNOWN}}, {"Parent", {0x0, _MMVAD | POINTER}}, }, { // __unnamed_1583 {"LongFlags", {0x0, UNKNOWN}}, {"VadFlags", {0x0, _MMVAD_FLAGS}}, }, { // __unnamed_1992 {"Internal", {0x0, UNKNOWN}}, {"Secure", {0x0, UNKNOWN}}, }, { // _SECURITY_SUBJECT_CONTEXT {"ProcessAuditId", {0xc, UNKNOWN | POINTER}}, {"ImpersonationLevel", {0x4, UNKNOWN}}, {"PrimaryToken", {0x8, UNKNOWN | POINTER}}, {"ClientToken", {0x0, UNKNOWN | POINTER}}, }, { // _LPCP_NONPAGED_PORT_QUEUE {"BackPointer", {0x14, _LPCP_PORT_OBJECT | POINTER}}, {"Semaphore", {0x0, _KSEMAPHORE}}, }, { // _IO_RESOURCE_REQUIREMENTS_LIST {"BusNumber", {0x8, UNKNOWN}}, {"Reserved", {0x10, UNKNOWN}}, {"SlotNumber", {0xc, UNKNOWN}}, {"AlternativeLists", {0x1c, UNKNOWN}}, {"ListSize", {0x0, UNKNOWN}}, {"List", {0x20, UNKNOWN}}, {"InterfaceType", {0x4, UNKNOWN}}, }, { // __unnamed_1994 {"s1", {0x0, __unnamed_1992}}, }, { // _DIAGNOSTIC_CONTEXT {"Process", {0x4, _EPROCESS | POINTER}}, {"ServiceTag", {0x8, UNKNOWN}}, {"DeviceObject", {0x4, _DEVICE_OBJECT | POINTER}}, {"ReasonSize", {0xc, UNKNOWN}}, {"CallerType", {0x0, UNKNOWN}}, }, { // __unnamed_1340 {"Wcb", {0x0, _WAIT_CONTEXT_BLOCK}}, {"ListEntry", {0x0, _LIST_ENTRY}}, }, { // _HEAP {"UCRSegmentList", {0x38, _LIST_ENTRY}}, {"Counters", {0xdc, _HEAP_COUNTERS}}, {"FreeLists", {0xc4, _LIST_ENTRY}}, {"TuningParameters", {0x130, _HEAP_TUNING_PARAMETERS}}, {"HeaderValidateLength", {0x82, UNKNOWN}}, {"FrontEndHeap", {0xd4, UNKNOWN | POINTER}}, {"NextAvailableTagIndex", {0x88, UNKNOWN}}, {"LastValidEntry", {0x28, _HEAP_ENTRY | POINTER}}, {"SegmentList", {0xa8, _LIST_ENTRY}}, {"SegmentCommit", {0x6c, UNKNOWN}}, {"DeCommitFreeBlockThreshold", {0x70, UNKNOWN}}, {"NonDedicatedListLength", {0xb4, UNKNOWN}}, {"SegmentFlags", {0xc, UNKNOWN}}, {"AlignRound", {0x98, UNKNOWN}}, {"EncodeFlagMask", {0x4c, UNKNOWN}}, {"SegmentSignature", {0x8, UNKNOWN}}, {"Encoding", {0x50, _HEAP_ENTRY}}, {"TagEntries", {0x8c, _HEAP_TAG_ENTRY | POINTER}}, {"SegmentReserve", {0x68, UNKNOWN}}, {"NumberOfUnCommittedRanges", {0x30, UNKNOWN}}, {"DeCommitTotalFreeThreshold", {0x74, UNKNOWN}}, {"TotalFreeSize", {0x78, UNKNOWN}}, {"MaximumTagIndex", {0x8a, UNKNOWN}}, {"BaseAddress", {0x1c, UNKNOWN | POINTER}}, {"FrontHeapLockCount", {0xd8, UNKNOWN}}, {"NumberOfUnCommittedPages", {0x2c, UNKNOWN}}, {"AllocatorBackTraceIndex", {0xb0, UNKNOWN}}, {"CommitRoutine", {0xd0, UNKNOWN | POINTER}}, {"ProcessHeapsListIndex", {0x80, UNKNOWN}}, {"PseudoTagEntries", {0xc0, _HEAP_PSEUDO_TAG_ENTRY | POINTER}}, {"PointerKey", {0x58, UNKNOWN}}, {"CompatibilityFlags", {0x48, UNKNOWN}}, {"VirtualAllocdBlocks", {0xa0, _LIST_ENTRY}}, {"FrontEndHeapType", {0xda, UNKNOWN}}, {"FirstEntry", {0x24, _HEAP_ENTRY | POINTER}}, {"UCRIndex", {0xbc, UNKNOWN | POINTER}}, {"ForceFlags", {0x44, UNKNOWN}}, {"VirtualMemoryThreshold", {0x60, UNKNOWN}}, {"UCRList", {0x90, _LIST_ENTRY}}, {"AlignMask", {0x9c, UNKNOWN}}, {"BlocksIndex", {0xb8, UNKNOWN | POINTER}}, {"Heap", {0x18, _HEAP | POINTER}}, {"MaximumAllocationSize", {0x7c, UNKNOWN}}, {"NumberOfPages", {0x20, UNKNOWN}}, {"Flags", {0x40, UNKNOWN}}, {"Signature", {0x64, UNKNOWN}}, {"SegmentListEntry", {0x10, _LIST_ENTRY}}, {"Reserved", {0x36, UNKNOWN}}, {"SegmentAllocatorBackTraceIndex", {0x34, UNKNOWN}}, {"Entry", {0x0, _HEAP_ENTRY}}, {"HeaderValidateCopy", {0x84, UNKNOWN | POINTER}}, {"LockVariable", {0xcc, _HEAP_LOCK | POINTER}}, {"Interceptor", {0x5c, UNKNOWN}}, }, { // _DEVICE_OBJECT {"Type", {0x0, UNKNOWN}}, {"ActiveThreadCount", {0x94, UNKNOWN}}, {"DeviceObjectExtension", {0xb0, _DEVOBJ_EXTENSION | POINTER}}, {"SecurityDescriptor", {0x98, UNKNOWN | POINTER}}, {"DeviceQueue", {0x60, _KDEVICE_QUEUE}}, {"DeviceExtension", {0x28, UNKNOWN | POINTER}}, {"Vpb", {0x24, _VPB | POINTER}}, {"CurrentIrp", {0x14, _IRP | POINTER}}, {"ReferenceCount", {0x4, UNKNOWN}}, {"AttachedDevice", {0x10, _DEVICE_OBJECT | POINTER}}, {"SectorSize", {0xac, UNKNOWN}}, {"DeviceType", {0x2c, UNKNOWN}}, {"Timer", {0x18, _IO_TIMER | POINTER}}, {"Queue", {0x34, __unnamed_1340}}, {"Dpc", {0x74, _KDPC}}, {"Reserved", {0xb4, UNKNOWN | POINTER}}, {"AlignmentRequirement", {0x5c, UNKNOWN}}, {"StackSize", {0x30, UNKNOWN}}, {"NextDevice", {0xc, _DEVICE_OBJECT | POINTER}}, {"DriverObject", {0x8, _DRIVER_OBJECT | POINTER}}, {"Spare1", {0xae, UNKNOWN}}, {"Characteristics", {0x20, UNKNOWN}}, {"DeviceLock", {0x9c, _KEVENT}}, {"Flags", {0x1c, UNKNOWN}}, {"Size", {0x2, UNKNOWN}}, }, { // _MMVAD_FLAGS {"NoChange", {0x0, UNKNOWN}}, {"PrivateMemory", {0x0, UNKNOWN}}, {"CommitCharge", {0x0, UNKNOWN}}, {"MemCommit", {0x0, UNKNOWN}}, {"VadType", {0x0, UNKNOWN}}, {"Protection", {0x0, UNKNOWN}}, {"Spare", {0x0, UNKNOWN}}, }, { // _ETW_PERF_COUNTERS {"TotalGuidsNotEnabled", {0x10, UNKNOWN}}, {"TotalActiveSessions", {0x0, UNKNOWN}}, {"TotalBufferMemoryNonPagedPool", {0x4, UNKNOWN}}, {"TotalBufferMemoryPagedPool", {0x8, UNKNOWN}}, {"TotalGuidsEnabled", {0xc, UNKNOWN}}, {"TotalGuidsPreEnabled", {0x14, UNKNOWN}}, }, { // _TP_DIRECT {"Callback", {0x0, UNKNOWN | POINTER}}, {"IdealProcessor", {0x8, UNKNOWN}}, {"NumaNode", {0x4, UNKNOWN}}, }, { // _IMAGE_NT_HEADERS {"FileHeader", {0x4, _IMAGE_FILE_HEADER}}, {"OptionalHeader", {0x18, _IMAGE_OPTIONAL_HEADER}}, {"Signature", {0x0, UNKNOWN}}, }, { // __unnamed_1291 {"InitialPrivilegeSet", {0x0, _INITIAL_PRIVILEGE_SET}}, {"PrivilegeSet", {0x0, _PRIVILEGE_SET}}, }, { // _KINTERRUPT {"Polarity", {0x40, UNKNOWN}}, {"DispatchAddress", {0x28, UNKNOWN | POINTER}}, {"InterruptListEntry", {0x4, _LIST_ENTRY}}, {"Number", {0x34, UNKNOWN}}, {"Pad", {0x39, UNKNOWN}}, {"DispatchCode", {0x58, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"FloatingSave", {0x32, UNKNOWN}}, {"MessageServiceRoutine", {0x10, UNKNOWN | POINTER}}, {"ShareVector", {0x38, UNKNOWN}}, {"ActualLock", {0x24, UNKNOWN | POINTER}}, {"Connected", {0x33, UNKNOWN}}, {"DispatchCount", {0x48, UNKNOWN}}, {"Vector", {0x2c, UNKNOWN}}, {"ServiceRoutine", {0xc, UNKNOWN | POINTER}}, {"Rsvd1", {0x50, UNKNOWN}}, {"SpinLock", {0x1c, UNKNOWN}}, {"ServiceCount", {0x44, UNKNOWN}}, {"TickCount", {0x20, UNKNOWN}}, {"SynchronizeIrql", {0x31, UNKNOWN}}, {"ServiceContext", {0x18, UNKNOWN | POINTER}}, {"MessageIndex", {0x14, UNKNOWN}}, {"Irql", {0x30, UNKNOWN}}, {"Size", {0x2, UNKNOWN}}, {"Mode", {0x3c, UNKNOWN}}, }, { // _HEAP_TAG_ENTRY {"Allocs", {0x0, UNKNOWN}}, {"Frees", {0x4, UNKNOWN}}, {"CreatorBackTraceIndex", {0xe, UNKNOWN}}, {"TagName", {0x10, UNKNOWN}}, {"TagIndex", {0xc, UNKNOWN}}, {"Size", {0x8, UNKNOWN}}, }, { // __unnamed_2339 {"DiskId", {0x0, _GUID}}, }, { // __unnamed_2337 {"CheckSum", {0x4, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, }, { // _CLIENT_ID32 {"UniqueProcess", {0x0, UNKNOWN}}, {"UniqueThread", {0x4, UNKNOWN}}, }, { // _TEB {"TxFsContext", {0x1d0, UNKNOWN}}, {"SpareUlong0", {0xfdc, UNKNOWN}}, {"EtwLocalData", {0xf64, UNKNOWN | POINTER}}, {"LockCount", {0xfd8, UNKNOWN}}, {"ThreadPoolData", {0xf90, UNKNOWN | POINTER}}, {"LastStatusValue", {0xbf4, UNKNOWN}}, {"HardErrorMode", {0xf28, UNKNOWN}}, {"IsImpersonating", {0xf9c, UNKNOWN}}, {"EnvironmentPointer", {0x1c, UNKNOWN | POINTER}}, {"ActiveRpcHandle", {0x28, UNKNOWN | POINTER}}, {"glContext", {0xbf0, UNKNOWN | POINTER}}, {"StaticUnicodeBuffer", {0xc00, UNKNOWN}}, {"CurrentLocale", {0xc4, UNKNOWN}}, {"SafeThunkCall", {0xfca, UNKNOWN}}, {"DeallocationStack", {0xe0c, UNKNOWN | POINTER}}, {"glReserved1", {0xb68, UNKNOWN}}, {"glReserved2", {0xbdc, UNKNOWN | POINTER}}, {"InDebugPrint", {0xfca, UNKNOWN}}, {"HasFiberData", {0xfca, UNKNOWN}}, {"CrossTebFlags", {0xfc8, UNKNOWN}}, {"SavedPriorityState", {0xf88, UNKNOWN | POINTER}}, {"SystemReserved1", {0xcc, UNKNOWN}}, {"WaitingOnLoaderLock", {0xf84, UNKNOWN}}, {"CsrClientThread", {0x3c, UNKNOWN | POINTER}}, {"SubProcessTag", {0xf60, UNKNOWN | POINTER}}, {"RealClientId", {0x6b4, _CLIENT_ID}}, {"Instrumentation", {0xf2c, UNKNOWN}}, {"LastErrorValue", {0x34, UNKNOWN}}, {"IdealProcessorValue", {0xf74, UNKNOWN}}, {"TlsExpansionSlots", {0xf94, UNKNOWN | POINTER}}, {"glCurrentRC", {0xbec, UNKNOWN | POINTER}}, {"TxnScopeExitCallback", {0xfd0, UNKNOWN | POINTER}}, {"glSectionInfo", {0xbe0, UNKNOWN | POINTER}}, {"CountOfOwnedCriticalSections", {0x38, UNKNOWN}}, {"ReservedForOle", {0xf80, UNKNOWN | POINTER}}, {"SpareSameTebBits", {0xfca, UNKNOWN}}, {"MuiImpersonation", {0xfc4, UNKNOWN}}, {"ThreadLocalStoragePointer", {0x2c, UNKNOWN | POINTER}}, {"FpSoftwareStatusRegister", {0xc8, UNKNOWN}}, {"WerInShipAssertCode", {0xfca, UNKNOWN}}, {"DisableUserStackWalk", {0xfca, UNKNOWN}}, {"ActiveFrame", {0xfb0, _TEB_ACTIVE_FRAME | POINTER}}, {"UserReserved", {0xac, UNKNOWN}}, {"TlsLinks", {0xf10, _LIST_ENTRY}}, {"SameTebFlags", {0xfca, UNKNOWN}}, {"IdealProcessor", {0xf77, UNKNOWN}}, {"NtTib", {0x0, _NT_TIB}}, {"EtwTraceData", {0xf68, UNKNOWN | POINTER}}, {"NlsCache", {0xfa0, UNKNOWN | POINTER}}, {"GdiClientTID", {0x6c4, UNKNOWN}}, {"MergedPrefLanguages", {0xfc0, UNKNOWN | POINTER}}, {"ClonedThread", {0xfca, UNKNOWN}}, {"HeapVirtualAffinity", {0xfa8, UNKNOWN}}, {"ReservedForPerf", {0xf7c, UNKNOWN | POINTER}}, {"GdiCachedProcessHandle", {0x6bc, UNKNOWN | POINTER}}, {"CurrentTransactionHandle", {0xfac, UNKNOWN | POINTER}}, {"GdiThreadLocalInfo", {0x6c8, UNKNOWN | POINTER}}, {"SpareCrossTebBits", {0xfc8, UNKNOWN}}, {"TxnScopeEnterCallback", {0xfcc, UNKNOWN | POINTER}}, {"GdiClientPID", {0x6c0, UNKNOWN}}, {"glSection", {0xbe4, UNKNOWN | POINTER}}, {"SuppressDebugMsg", {0xfca, UNKNOWN}}, {"StaticUnicodeString", {0xbf8, _UNICODE_STRING}}, {"InitialThread", {0xfca, UNKNOWN}}, {"WOW32Reserved", {0xc0, UNKNOWN | POINTER}}, {"ExceptionCode", {0x1a4, UNKNOWN}}, {"Vdm", {0xf18, UNKNOWN | POINTER}}, {"SkipThreadAttach", {0xfca, UNKNOWN}}, {"UserPrefLanguages", {0xfbc, UNKNOWN | POINTER}}, {"TlsSlots", {0xe10, UNKNOWN}}, {"GuaranteedStackBytes", {0xf78, UNKNOWN}}, {"CurrentIdealProcessor", {0xf74, _PROCESSOR_NUMBER}}, {"Win32ClientInfo", {0x6cc, UNKNOWN}}, {"ClientId", {0x20, _CLIENT_ID}}, {"TxnScopeContext", {0xfd4, UNKNOWN | POINTER}}, {"RanProcessInit", {0xfca, UNKNOWN}}, {"RtlExceptionAttached", {0xfca, UNKNOWN}}, {"glDispatchTable", {0x7c4, UNKNOWN}}, {"ProcessEnvironmentBlock", {0x30, _PEB | POINTER}}, {"FlsData", {0xfb4, UNKNOWN | POINTER}}, {"SpareBytes", {0x1ac, UNKNOWN}}, {"PreferredLanguages", {0xfb8, UNKNOWN | POINTER}}, {"ReservedForNtRpc", {0xf1c, UNKNOWN | POINTER}}, {"GdiBatchCount", {0xf70, UNKNOWN}}, {"DbgSsReserved", {0xf20, UNKNOWN}}, {"Win32ThreadInfo", {0x40, UNKNOWN | POINTER}}, {"MuiGeneration", {0xf98, UNKNOWN}}, {"SoftPatchPtr1", {0xf8c, UNKNOWN}}, {"ResourceRetValue", {0xfe0, UNKNOWN | POINTER}}, {"WinSockData", {0xf6c, UNKNOWN | POINTER}}, {"GdiTebBatch", {0x1d4, _GDI_TEB_BATCH}}, {"User32Reserved", {0x44, UNKNOWN}}, {"ReservedPad1", {0xf75, UNKNOWN}}, {"ReservedPad0", {0xf74, UNKNOWN}}, {"ReservedPad2", {0xf76, UNKNOWN}}, {"ActivityId", {0xf50, _GUID}}, {"glTable", {0xbe8, UNKNOWN | POINTER}}, {"ActivationContextStackPointer", {0x1a8, _ACTIVATION_CONTEXT_STACK | POINTER}}, {"pShimData", {0xfa4, UNKNOWN | POINTER}}, }, { // _TOKEN_CONTROL {"TokenSource", {0x18, _TOKEN_SOURCE}}, {"AuthenticationId", {0x8, _LUID}}, {"ModifiedId", {0x10, _LUID}}, {"TokenId", {0x0, _LUID}}, }, { // _VI_FAULT_TRACE {"StackTrace", {0x4, UNKNOWN}}, {"Thread", {0x0, _ETHREAD | POINTER}}, }, { // _DUMP_INITIALIZATION_CONTEXT {"PortConfiguration", {0x40, UNKNOWN | POINTER}}, {"DiskInfo", {0x5c, __unnamed_233b}}, {"FinishRoutine", {0x34, UNKNOWN | POINTER}}, {"OpenRoutine", {0x2c, UNKNOWN | POINTER}}, {"Reserved", {0x4, UNKNOWN}}, {"WritePendingRoutine", {0x54, UNKNOWN | POINTER}}, {"CommonBufferSize", {0x4c, UNKNOWN}}, {"MappedRegisterBase", {0x3c, UNKNOWN | POINTER}}, {"StallRoutine", {0x28, UNKNOWN | POINTER}}, {"TargetAddress", {0x50, UNKNOWN | POINTER}}, {"AdapterObject", {0x38, UNKNOWN | POINTER}}, {"Length", {0x0, UNKNOWN}}, {"WriteRoutine", {0x30, UNKNOWN | POINTER}}, {"PartitionStyle", {0x58, UNKNOWN}}, {"CrashDump", {0x44, UNKNOWN}}, {"MaximumTransferSize", {0x48, UNKNOWN}}, {"CommonBuffer", {0xc, UNKNOWN}}, {"PhysicalAddress", {0x18, UNKNOWN}}, {"MemoryBlock", {0x8, UNKNOWN | POINTER}}, }, { // _LUID {"HighPart", {0x4, UNKNOWN}}, {"LowPart", {0x0, UNKNOWN}}, }, { // _VF_ADDRESS_RANGE {"Start", {0x0, UNKNOWN | POINTER}}, {"End", {0x4, UNKNOWN | POINTER}}, }, { // _MMWSLENTRY {"Age", {0x0, UNKNOWN}}, {"Hashed", {0x0, UNKNOWN}}, {"Direct", {0x0, UNKNOWN}}, {"Protection", {0x0, UNKNOWN}}, {"Valid", {0x0, UNKNOWN}}, {"Spare", {0x0, UNKNOWN}}, {"VirtualPageNumber", {0x0, UNKNOWN}}, }, { // _PCW_COUNTER_INFORMATION {"InstanceMask", {0x8, _UNICODE_STRING | POINTER}}, {"CounterMask", {0x0, UNKNOWN}}, }, { // _ALPC_PORT_ATTRIBUTES {"DupObjectTypes", {0x28, UNKNOWN}}, {"Flags", {0x0, UNKNOWN}}, {"MaxPoolUsage", {0x18, UNKNOWN}}, {"SecurityQos", {0x4, _SECURITY_QUALITY_OF_SERVICE}}, {"MaxTotalSectionSize", {0x24, UNKNOWN}}, {"MaxViewSize", {0x20, UNKNOWN}}, {"MemoryBandwidth", {0x14, UNKNOWN}}, {"MaxSectionSize", {0x1c, UNKNOWN}}, {"MaxMessageLength", {0x10, UNKNOWN}}, }, { // __unnamed_153a {"LongFlags", {0x0, UNKNOWN}}, {"Flags", {0x0, _MMSECTION_FLAGS}}, }, { // _FILE_NETWORK_OPEN_INFORMATION {"ChangeTime", {0x18, _LARGE_INTEGER}}, {"AllocationSize", {0x20, _LARGE_INTEGER}}, {"CreationTime", {0x0, _LARGE_INTEGER}}, {"LastAccessTime", {0x8, _LARGE_INTEGER}}, {"EndOfFile", {0x28, _LARGE_INTEGER}}, {"LastWriteTime", {0x10, _LARGE_INTEGER}}, {"FileAttributes", {0x30, UNKNOWN}}, }, { // _NT_TIB {"ExceptionList", {0x0, _EXCEPTION_REGISTRATION_RECORD | POINTER}}, {"StackLimit", {0x8, UNKNOWN | POINTER}}, {"Version", {0x10, UNKNOWN}}, {"StackBase", {0x4, UNKNOWN | POINTER}}, {"Self", {0x18, _NT_TIB | POINTER}}, {"SubSystemTib", {0xc, UNKNOWN | POINTER}}, {"ArbitraryUserPointer", {0x14, UNKNOWN | POINTER}}, {"FiberData", {0x10, UNKNOWN | POINTER}}, }, { // _OBJECT_HEADER {"Body", {0x18, _QUAD}}, {"Flags", {0xf, UNKNOWN}}, {"TypeIndex", {0xc, UNKNOWN}}, {"TraceFlags", {0xd, UNKNOWN}}, {"InfoMask", {0xe, UNKNOWN}}, {"QuotaBlockCharged", {0x10, UNKNOWN | POINTER}}, {"PointerCount", {0x0, UNKNOWN}}, {"ObjectCreateInfo", {0x10, _OBJECT_CREATE_INFORMATION | POINTER}}, {"SecurityDescriptor", {0x14, UNKNOWN | POINTER}}, {"HandleCount", {0x4, UNKNOWN}}, {"NextToFree", {0x4, UNKNOWN | POINTER}}, {"Lock", {0x8, _EX_PUSH_LOCK}}, }, { // __unnamed_233b {"Gpt", {0x0, __unnamed_2339}}, {"Mbr", {0x0, __unnamed_2337}}, }, { // _PO_DEVICE_NOTIFY {"PowerParents", {0x10, _LIST_ENTRY}}, {"ActiveChild", {0x30, UNKNOWN}}, {"DriverName", {0x28, UNKNOWN | POINTER}}, {"ChildCount", {0x2c, UNKNOWN}}, {"OrderLevel", {0x1c, UNKNOWN}}, {"DeviceName", {0x24, UNKNOWN | POINTER}}, {"DeviceObject", {0x20, _DEVICE_OBJECT | POINTER}}, {"ParentCount", {0x34, UNKNOWN}}, {"TargetDevice", {0x18, _DEVICE_OBJECT | POINTER}}, {"Link", {0x0, _LIST_ENTRY}}, {"ActiveParent", {0x38, UNKNOWN}}, {"PowerChildren", {0x8, _LIST_ENTRY}}, }, { // _AUX_ACCESS_DATA {"ParentSecurityDescriptor", {0x34, UNKNOWN | POINTER}}, {"ExistingSecurityDescriptor", {0x30, UNKNOWN | POINTER}}, {"SDLock", {0x3c, UNKNOWN | POINTER}}, {"AccessReasons", {0x40, _ACCESS_REASONS}}, {"NewSecurityDescriptor", {0x2c, UNKNOWN | POINTER}}, {"TransactionId", {0x1c, _GUID}}, {"GenericMapping", {0x4, _GENERIC_MAPPING}}, {"AccessesToAudit", {0x14, UNKNOWN}}, {"MaximumAuditMask", {0x18, UNKNOWN}}, {"PrivilegesUsed", {0x0, _PRIVILEGE_SET | POINTER}}, {"DeRefSecurityDescriptor", {0x38, UNKNOWN | POINTER}}, }, { // _SECURITY_CLIENT_CONTEXT {"ClientTokenControl", {0x14, _TOKEN_CONTROL}}, {"ServerIsRemote", {0x12, UNKNOWN}}, {"ClientToken", {0xc, UNKNOWN | POINTER}}, {"DirectlyAccessClientToken", {0x10, UNKNOWN}}, {"SecurityQos", {0x0, _SECURITY_QUALITY_OF_SERVICE}}, {"DirectAccessEffectiveOnly", {0x11, UNKNOWN}}, }, { // _NT_TIB64 {"ExceptionList", {0x0, UNKNOWN}}, {"StackLimit", {0x10, UNKNOWN}}, {"Version", {0x20, UNKNOWN}}, {"StackBase", {0x8, UNKNOWN}}, {"Self", {0x30, UNKNOWN}}, {"SubSystemTib", {0x18, UNKNOWN}}, {"ArbitraryUserPointer", {0x28, UNKNOWN}}, {"FiberData", {0x20, UNKNOWN}}, }, { // _STRING64 {"Buffer", {0x8, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, {"MaximumLength", {0x2, UNKNOWN}}, }, { // _MM_PAGE_ACCESS_INFO {"FileOffset", {0x0, UNKNOWN}}, {"PointerProtoPte", {0x4, UNKNOWN | POINTER}}, {"Spare0", {0x0, UNKNOWN}}, {"Flags", {0x0, _MM_PAGE_ACCESS_INFO_FLAGS}}, {"DontUse0", {0x0, UNKNOWN}}, {"VirtualAddress", {0x0, UNKNOWN | POINTER}}, }, { // _HBASE_BLOCK {"RootCell", {0x24, UNKNOWN}}, {"BootType", {0xff8, UNKNOWN}}, {"ThawRmId", {0xfd8, _GUID}}, {"Type", {0x1c, UNKNOWN}}, {"Minor", {0x18, UNKNOWN}}, {"Format", {0x20, UNKNOWN}}, {"LogId", {0x80, _GUID}}, {"Sequence1", {0x4, UNKNOWN}}, {"Sequence2", {0x8, UNKNOWN}}, {"TimeStamp", {0xc, _LARGE_INTEGER}}, {"GuidSignature", {0xa4, UNKNOWN}}, {"ThawTmId", {0xfc8, _GUID}}, {"TmId", {0x94, _GUID}}, {"BootRecover", {0xffc, UNKNOWN}}, {"Length", {0x28, UNKNOWN}}, {"Flags", {0x90, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, {"ThawLogId", {0xfe8, _GUID}}, {"Major", {0x14, UNKNOWN}}, {"RmId", {0x70, _GUID}}, {"CheckSum", {0x1fc, UNKNOWN}}, {"FileName", {0x30, UNKNOWN}}, {"Cluster", {0x2c, UNKNOWN}}, {"Reserved1", {0xa8, UNKNOWN}}, {"Reserved2", {0x200, UNKNOWN}}, }, { // _KTRANSACTION {"PromotionCompletedEvent", {0x1cc, _KEVENT}}, {"PrePrepareRequiredEnlistmentCount", {0x88, UNKNOWN}}, {"TransactionHistoryCount", {0x198, UNKNOWN}}, {"UOW", {0x60, _GUID}}, {"GlobalNamespaceLink", {0x38, _KTMOBJECT_NAMESPACE_LINK}}, {"OutcomeEvent", {0x0, _KEVENT}}, {"LastLsn", {0xa0, _CLS_LSN}}, {"SuperiorEnlistment", {0x98, _KENLISTMENT | POINTER}}, {"DTCPrivateInformation", {0x19c, UNKNOWN | POINTER}}, {"IsolationLevel", {0xb8, UNKNOWN}}, {"TmNamespaceLink", {0x4c, _KTMOBJECT_NAMESPACE_LINK}}, {"EnlistmentCount", {0x80, UNKNOWN}}, {"OutcomeRequiredEnlistmentCount", {0x90, UNKNOWN}}, {"State", {0x70, UNKNOWN}}, {"Tm", {0x13c, _KTM | POINTER}}, {"cookie", {0x10, UNKNOWN}}, {"Timeout", {0xc0, _LARGE_INTEGER}}, {"EnlistmentHead", {0x78, _LIST_ENTRY}}, {"PromotePropagation", {0xb4, UNKNOWN | POINTER}}, {"TreeTx", {0x34, _KTRANSACTION | POINTER}}, {"Outcome", {0x138, UNKNOWN}}, {"DTCPrivateInformationLength", {0x1a0, UNKNOWN}}, {"IsolationFlags", {0xbc, UNKNOWN}}, {"PromotedEntry", {0xa8, _LIST_ENTRY}}, {"TransactionHistory", {0x148, UNKNOWN}}, {"RecoverableEnlistmentCount", {0x84, UNKNOWN}}, {"Description", {0xc8, _UNICODE_STRING}}, {"PrepareRequiredEnlistmentCount", {0x8c, UNKNOWN}}, {"LsnOrderedEntry", {0x130, _LIST_ENTRY}}, {"PendingPromotionCount", {0x1c8, UNKNOWN}}, {"RollbackThread", {0xd0, _KTHREAD | POINTER}}, {"Flags", {0x74, UNKNOWN}}, {"RollbackWorkItem", {0xd4, _WORK_QUEUE_ITEM}}, {"DTCPrivateInformationMutex", {0x1a4, _KMUTANT}}, {"PromoterTransaction", {0xb0, _KTRANSACTION | POINTER}}, {"RollbackDpc", {0xe4, _KDPC}}, {"Mutex", {0x14, _KMUTANT}}, {"RollbackTimer", {0x108, _KTIMER}}, {"PendingResponses", {0x94, UNKNOWN}}, {"PromotedTxSelfHandle", {0x1c4, UNKNOWN | POINTER}}, {"CommitReservation", {0x140, UNKNOWN}}, }, { // _OBJECT_DIRECTORY_ENTRY {"HashValue", {0x8, UNKNOWN}}, {"Object", {0x4, UNKNOWN | POINTER}}, {"ChainLink", {0x0, _OBJECT_DIRECTORY_ENTRY | POINTER}}, }, { // _WHEA_ERROR_STATUS {"Responder", {0x0, UNKNOWN}}, {"Address", {0x0, UNKNOWN}}, {"FirstError", {0x0, UNKNOWN}}, {"Control", {0x0, UNKNOWN}}, {"Reserved1", {0x0, UNKNOWN}}, {"ErrorType", {0x0, UNKNOWN}}, {"ErrorStatus", {0x0, UNKNOWN}}, {"Requester", {0x0, UNKNOWN}}, {"Overflow", {0x0, UNKNOWN}}, {"Data", {0x0, UNKNOWN}}, {"Reserved2", {0x0, UNKNOWN}}, }, { // _BLOB_TYPE {"Flags", {0x8, UNKNOWN}}, {"LookasideIndex", {0x20, UNKNOWN}}, {"DestroyProcedure", {0x18, UNKNOWN | POINTER}}, {"ResourceId", {0x0, UNKNOWN}}, {"CreatedObjects", {0xc, UNKNOWN}}, {"DeleteProcedure", {0x14, UNKNOWN | POINTER}}, {"UsualSize", {0x1c, UNKNOWN}}, {"PoolTag", {0x4, UNKNOWN}}, {"DeletedObjects", {0x10, UNKNOWN}}, }, { // _MI_SECTION_IMAGE_INFORMATION {"InternalImageInformation", {0x30, _MI_EXTRA_IMAGE_INFORMATION}}, {"ExportedImageInformation", {0x0, _SECTION_IMAGE_INFORMATION}}, }, { // _TP_TASK_CALLBACKS {"Unposted", {0x4, UNKNOWN | POINTER}}, {"ExecuteCallback", {0x0, UNKNOWN | POINTER}}, }, { // _CACHE_UNINITIALIZE_EVENT {"Event", {0x4, _KEVENT}}, {"Next", {0x0, _CACHE_UNINITIALIZE_EVENT | POINTER}}, }, { // _WORK_QUEUE_ITEM {"Parameter", {0xc, UNKNOWN | POINTER}}, {"List", {0x0, _LIST_ENTRY}}, {"WorkerRoutine", {0x8, UNKNOWN | POINTER}}, }, { // _u {"KeyString", {0x0, UNKNOWN}}, {"KeySecurity", {0x0, _CM_KEY_SECURITY}}, {"ValueData", {0x0, _CM_BIG_DATA}}, {"KeyNode", {0x0, _CM_KEY_NODE}}, {"KeyValue", {0x0, _CM_KEY_VALUE}}, {"KeyList", {0x0, UNKNOWN}}, {"KeyIndex", {0x0, _CM_KEY_INDEX}}, }, { // __unnamed_14be {"Ia64", {0x0, _IA64_LOADER_BLOCK}}, {"I386", {0x0, _I386_LOADER_BLOCK}}, }, { // _CM_RESOURCE_LIST {"Count", {0x0, UNKNOWN}}, {"List", {0x4, UNKNOWN}}, }, { // _VF_TARGET_VERIFIED_DRIVER_DATA {"AllocationsWithNoTag", {0x54, UNKNOWN}}, {"ContiguousMemoryBytes", {0x80, UNKNOWN}}, {"SynchronizeExecutions", {0x50, UNKNOWN}}, {"PeakLockedBytes", {0x64, UNKNOWN}}, {"MappedIoSpaceBytes", {0x70, UNKNOWN}}, {"AllocationsFailed", {0x58, UNKNOWN}}, {"CurrentNonPagedPoolAllocations", {0x2c, UNKNOWN}}, {"PeakMappedIoSpaceBytes", {0x74, UNKNOWN}}, {"PagedBytes", {0x38, UNKNOWN}}, {"ContiguousMemoryListHead", {0x88, _LIST_ENTRY}}, {"LockedBytes", {0x60, UNKNOWN}}, {"MappedLockedBytes", {0x68, UNKNOWN}}, {"Signature", {0x14, UNKNOWN}}, {"RaiseIrqls", {0x48, UNKNOWN}}, {"WMICallback", {0x4, UNKNOWN | POINTER}}, {"NonPagedBytes", {0x3c, UNKNOWN}}, {"CurrentPagedPoolAllocations", {0x28, UNKNOWN}}, {"AllocationsFailedDeliberately", {0x5c, UNKNOWN}}, {"PeakContiguousMemoryBytes", {0x84, UNKNOWN}}, {"PeakNonPagedBytes", {0x44, UNKNOWN}}, {"AcquireSpinLocks", {0x4c, UNKNOWN}}, {"PeakPagedPoolAllocations", {0x30, UNKNOWN}}, {"u1", {0x10, __unnamed_219e}}, {"EtwHandlesListHead", {0x8, _LIST_ENTRY}}, {"PoolTrackers", {0x20, _SLIST_HEADER}}, {"PeakPagedBytes", {0x40, UNKNOWN}}, {"SuspectDriverEntry", {0x0, _VF_SUSPECT_DRIVER_ENTRY | POINTER}}, {"PeakPagesForMdlBytes", {0x7c, UNKNOWN}}, {"PeakNonPagedPoolAllocations", {0x34, UNKNOWN}}, {"PeakMappedLockedBytes", {0x6c, UNKNOWN}}, {"PoolPageHeaders", {0x18, _SLIST_HEADER}}, {"PagesForMdlBytes", {0x78, UNKNOWN}}, }, { // _KALPC_RESERVE {"Active", {0x10, UNKNOWN}}, {"OwnerPort", {0x0, _ALPC_PORT | POINTER}}, {"Message", {0xc, _KALPC_MESSAGE | POINTER}}, {"Handle", {0x8, UNKNOWN | POINTER}}, {"HandleTable", {0x4, _ALPC_HANDLE_TABLE | POINTER}}, }, { // POWER_ACTION_POLICY {"Action", {0x0, UNKNOWN}}, {"Flags", {0x4, UNKNOWN}}, {"EventCode", {0x8, UNKNOWN}}, }, { // _HANDLE_TABLE_ENTRY_INFO {"AuditMask", {0x0, UNKNOWN}}, }, { // _DBGKD_WRITE_MEMORY32 {"ActualBytesWritten", {0x8, UNKNOWN}}, {"TransferCount", {0x4, UNKNOWN}}, {"TargetBaseAddress", {0x0, UNKNOWN}}, }, { // _KTIMER {"Header", {0x0, _DISPATCHER_HEADER}}, {"Dpc", {0x20, _KDPC | POINTER}}, {"Period", {0x24, UNKNOWN}}, {"DueTime", {0x10, _ULARGE_INTEGER}}, {"TimerListEntry", {0x18, _LIST_ENTRY}}, }, { // _MM_SESSION_SPACE {"ResidentProcessCount", {0x3c, UNKNOWN}}, {"PoolTrackBigPagesSize", {0x1fd4, UNKNOWN}}, {"IoStateSequence", {0x1fdc, UNKNOWN}}, {"SessionPageDirectoryIndex", {0x20, UNKNOWN}}, {"NonPagablePages", {0x24, UNKNOWN}}, {"SessionPoolAllocationFailures", {0x40, UNKNOWN}}, {"PoolTrackTableExpansion", {0x1fc8, UNKNOWN | POINTER}}, {"PagedPoolInfo", {0xd38, _MM_PAGED_POOL_INFO}}, {"SessionObjectHandle", {0x38, UNKNOWN | POINTER}}, {"PagedPoolPdeCount", {0x1f8c, UNKNOWN}}, {"PoolTrackBigPages", {0x1fd0, UNKNOWN | POINTER}}, {"IoState", {0x1fd8, UNKNOWN}}, {"Wsle", {0xddc, _MMWSLE | POINTER}}, {"PagedPoolEnd", {0x30, UNKNOWN | POINTER}}, {"CpuQuotaBlock", {0x1ff8, _PS_CPU_QUOTA_BLOCK | POINTER}}, {"SystemPteInfo", {0x1f98, _MI_SYSTEM_PTE_TYPE}}, {"ImageList", {0x50, _LIST_ENTRY}}, {"Lookaside", {0x80, UNKNOWN}}, {"SessionPteLock", {0x1f68, _KGUARDED_MUTEX}}, {"PageTables", {0x1f40, _MMPTE | POINTER}}, {"SpecialPoolPdeCount", {0x1f90, UNKNOWN}}, {"DynamicSessionPdeCount", {0x1f94, UNKNOWN}}, {"SessionId", {0x8, UNKNOWN}}, {"CommittedPages", {0x28, UNKNOWN}}, {"LocaleId", {0x58, UNKNOWN}}, {"DriverUnload", {0xde0, UNKNOWN | POINTER}}, {"PagedPool", {0xe00, _POOL_DESCRIPTOR}}, {"SessionPoolPdes", {0x1ff0, _RTL_BITMAP}}, {"ReferenceCount", {0x0, UNKNOWN}}, {"PoolBigEntriesInUse", {0x1f88, UNKNOWN}}, {"ProcessReferenceToSession", {0xc, UNKNOWN}}, {"AttachCount", {0x5c, UNKNOWN}}, {"IoNotificationEvent", {0x1fe0, _KEVENT}}, {"LastProcessSwappedOutTime", {0x18, _LARGE_INTEGER}}, {"ProcessList", {0x10, _LIST_ENTRY}}, {"PoolTrackTableExpansionSize", {0x1fcc, UNKNOWN}}, {"SessionObject", {0x34, UNKNOWN | POINTER}}, {"AttachGate", {0x60, _KGATE}}, {"Vm", {0xd70, _MMSUPPORT}}, {"Session", {0xd00, _MMSESSION}}, {"u", {0x4, __unnamed_20df}}, {"SpecialPool", {0x1f44, _MI_SPECIAL_POOL}}, {"WsListEntry", {0x70, _LIST_ENTRY}}, {"PagedPoolStart", {0x2c, UNKNOWN | POINTER}}, }, { // _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_FLAGS {"Reset", {0x0, UNKNOWN}}, {"ThresholdExceeded", {0x0, UNKNOWN}}, {"Reserved", {0x0, UNKNOWN}}, {"AsULONG", {0x0, UNKNOWN}}, {"ContainmentWarning", {0x0, UNKNOWN}}, {"LatentError", {0x0, UNKNOWN}}, {"ResourceNotAvailable", {0x0, UNKNOWN}}, {"Primary", {0x0, UNKNOWN}}, }, { // _WMI_TRACE_PACKET {"HookId", {0x2, UNKNOWN}}, {"Group", {0x3, UNKNOWN}}, {"Type", {0x2, UNKNOWN}}, {"Size", {0x0, UNKNOWN}}, }, { // _MI_EXTRA_IMAGE_INFORMATION {"SizeOfImage", {0x4, UNKNOWN}}, {"SizeOfHeaders", {0x0, UNKNOWN}}, }, { // _CM_INDEX_HINT_BLOCK {"Count", {0x0, UNKNOWN}}, {"HashKey", {0x4, UNKNOWN}}, }, { // _CM_KEY_REFERENCE {"KeyHive", {0x4, _HHIVE | POINTER}}, {"KeyCell", {0x0, UNKNOWN}}, }, { // _VF_SUSPECT_DRIVER_ENTRY {"Loads", {0x8, UNKNOWN}}, {"BaseName", {0x10, _UNICODE_STRING}}, {"Links", {0x0, _LIST_ENTRY}}, {"Unloads", {0xc, UNKNOWN}}, }, { // _KRESOURCEMANAGER_COMPLETION_BINDING {"NotificationListHead", {0x0, _LIST_ENTRY}}, {"BindingProcess", {0x10, _EPROCESS | POINTER}}, {"Port", {0x8, UNKNOWN | POINTER}}, {"Key", {0xc, UNKNOWN}}, }, { // _POP_SYSTEM_IDLE {"MinState", {0x20, UNKNOWN}}, {"LowestIdleness", {0x4, UNKNOWN}}, {"Timeout", {0xc, UNKNOWN}}, {"Time", {0x8, UNKNOWN}}, {"Action", {0x14, POWER_ACTION_POLICY}}, {"SystemRequired", {0x24, UNKNOWN}}, {"IdleWorker", {0x25, UNKNOWN}}, {"AverageIdleness", {0x0, UNKNOWN}}, {"LastSystemRequiredTime", {0x30, UNKNOWN}}, {"Sampling", {0x26, UNKNOWN}}, {"LastUserInput", {0x10, UNKNOWN}}, {"LastTick", {0x28, UNKNOWN}}, }, { // _IO_PRIORITY_INFO {"IoPriority", {0xc, UNKNOWN}}, {"PagePriority", {0x8, UNKNOWN}}, {"ThreadPriority", {0x4, UNKNOWN}}, {"Size", {0x0, UNKNOWN}}, }, { // _MI_SPECIAL_POOL_PTE_LIST {"FreePteHead", {0x0, _MMPTE}}, {"FreePteTail", {0x4, _MMPTE}}, }, { // _GUID {"Data4", {0x8, UNKNOWN}}, {"Data1", {0x0, UNKNOWN}}, {"Data3", {0x6, UNKNOWN}}, {"Data2", {0x4, UNKNOWN}}, }, { // _PPM_PERF_STATE {"Control", {0x10, UNKNOWN}}, {"Status", {0x18, UNKNOWN}}, {"TotalHitCount", {0x20, UNKNOWN}}, {"Frequency", {0x0, UNKNOWN}}, {"DecreaseLevel", {0xa, UNKNOWN}}, {"Power", {0x4, UNKNOWN}}, {"IncreaseLevel", {0x9, UNKNOWN}}, {"DesiredCount", {0x24, UNKNOWN}}, {"Type", {0xb, UNKNOWN}}, {"PercentFrequency", {0x8, UNKNOWN}}, }, { // _MM_STORE_KEY {"KeyLow", {0x0, UNKNOWN}}, {"EntireKey", {0x0, UNKNOWN}}, {"KeyHigh", {0x0, UNKNOWN}}, }, { // _DBGKD_MANIPULATE_STATE64 {"ProcessorLevel", {0x4, UNKNOWN}}, {"u", {0x10, __unnamed_17ef}}, {"ApiNumber", {0x0, UNKNOWN}}, {"ReturnStatus", {0x8, UNKNOWN}}, {"Processor", {0x6, UNKNOWN}}, }, { // _MEMORY_ALLOCATION_DESCRIPTOR {"BasePage", {0xc, UNKNOWN}}, {"MemoryType", {0x8, UNKNOWN}}, {"ListEntry", {0x0, _LIST_ENTRY}}, {"PageCount", {0x10, UNKNOWN}}, }, { // _KGDTENTRY {"LimitLow", {0x0, UNKNOWN}}, {"BaseLow", {0x2, UNKNOWN}}, {"HighWord", {0x4, __unnamed_1c70}}, }, { // PO_MEMORY_IMAGE {"WakeCheck", {0x48, UNKNOWN}}, {"FirmwareRuntimeInformation", {0xac, UNKNOWN}}, {"NotUsed", {0xd4, UNKNOWN}}, {"HiberVa", {0x34, UNKNOWN}}, {"FirmwareRuntimeInformationPages", {0xa8, UNKNOWN}}, {"FirstTablePage", {0x4c, UNKNOWN}}, {"ResumeContextPages", {0xdc, UNKNOWN}}, {"InterruptTime", {0x20, UNKNOWN}}, {"PageSize", {0x14, UNKNOWN}}, {"ResumeContextCheck", {0xd8, UNKNOWN}}, {"PageSelf", {0x10, UNKNOWN}}, {"FeatureFlags", {0x28, UNKNOWN}}, {"SystemTime", {0x18, _LARGE_INTEGER}}, {"NoHiberPtes", {0x30, UNKNOWN}}, {"PerfInfo", {0x50, _PO_HIBER_PERF}}, {"LengthSelf", {0xc, UNKNOWN}}, {"HiberPte", {0x38, _LARGE_INTEGER}}, {"spare", {0x2d, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, {"ImageType", {0x4, UNKNOWN}}, {"CheckSum", {0x8, UNKNOWN}}, {"HiberFlags", {0x2c, UNKNOWN}}, {"FreeMapCheck", {0x44, UNKNOWN}}, {"NoFreePages", {0x40, UNKNOWN}}, {"BootLoaderLogPages", {0xb4, UNKNOWN}}, {"NoBootLoaderLogPages", {0xb0, UNKNOWN}}, }, { // _ETW_SESSION_PERF_COUNTERS {"NumConsumers", {0x14, UNKNOWN}}, {"BufferMemoryPagedPool", {0x0, UNKNOWN}}, {"EventsLoggedCount", {0x8, UNKNOWN}}, {"BufferMemoryNonPagedPool", {0x4, UNKNOWN}}, {"EventsLost", {0x10, UNKNOWN}}, }, { // _PS_CLIENT_SECURITY_CONTEXT {"EffectiveOnly", {0x0, UNKNOWN}}, {"ImpersonationToken", {0x0, UNKNOWN | POINTER}}, {"ImpersonationLevel", {0x0, UNKNOWN}}, {"ImpersonationData", {0x0, UNKNOWN}}, }, { // _MMWSLE {"u1", {0x0, __unnamed_152b}}, }, { // _KWAIT_STATUS_REGISTER {"Priority", {0x0, UNKNOWN}}, {"Unused", {0x0, UNKNOWN}}, {"State", {0x0, UNKNOWN}}, {"Flags", {0x0, UNKNOWN}}, {"UserApc", {0x0, UNKNOWN}}, {"Apc", {0x0, UNKNOWN}}, {"Affinity", {0x0, UNKNOWN}}, {"Alert", {0x0, UNKNOWN}}, }, { // _HEAP_ENTRY_EXTRA {"AllocatorBackTraceIndex", {0x0, UNKNOWN}}, {"Settable", {0x4, UNKNOWN}}, {"TagIndex", {0x2, UNKNOWN}}, {"ZeroInit", {0x0, UNKNOWN}}, }, { // PROCESSOR_IDLESTATE_INFO {"TimeCheck", {0x0, UNKNOWN}}, {"PromotePercent", {0x5, UNKNOWN}}, {"DemotePercent", {0x4, UNKNOWN}}, {"Spare", {0x6, UNKNOWN}}, }, { // _DBGKD_READ_MEMORY32 {"ActualBytesRead", {0x8, UNKNOWN}}, {"TransferCount", {0x4, UNKNOWN}}, {"TargetBaseAddress", {0x0, UNKNOWN}}, }, { // _MAPPED_FILE_SEGMENT {"NumberOfCommittedPages", {0xc, UNKNOWN}}, {"SegmentLock", {0x1c, _EX_PUSH_LOCK}}, {"SizeOfSegment", {0x10, UNKNOWN}}, {"TotalNumberOfPtes", {0x4, UNKNOWN}}, {"SegmentFlags", {0x8, _SEGMENT_FLAGS}}, {"ControlArea", {0x0, _CONTROL_AREA | POINTER}}, {"BasedAddress", {0x18, UNKNOWN | POINTER}}, {"ExtendInfo", {0x18, _MMEXTEND_INFO | POINTER}}, }, { // _ERESOURCE {"OwnerEntry", {0x18, _OWNER_ENTRY}}, {"ActiveEntries", {0x20, UNKNOWN}}, {"NumberOfExclusiveWaiters", {0x2c, UNKNOWN}}, {"SpinLock", {0x34, UNKNOWN}}, {"SystemResourcesList", {0x0, _LIST_ENTRY}}, {"ExclusiveWaiters", {0x14, _KEVENT | POINTER}}, {"OwnerTable", {0x8, _OWNER_ENTRY | POINTER}}, {"NumberOfSharedWaiters", {0x28, UNKNOWN}}, {"ActiveCount", {0xc, UNKNOWN}}, {"SharedWaiters", {0x10, _KSEMAPHORE | POINTER}}, {"Flag", {0xe, UNKNOWN}}, {"Address", {0x30, UNKNOWN | POINTER}}, {"ContentionCount", {0x24, UNKNOWN}}, {"CreatorBackTraceIndex", {0x30, UNKNOWN}}, }, { // _IMAGE_SECURITY_CONTEXT {"PageHashes", {0x0, UNKNOWN | POINTER}}, {"SecurityBeingCreated", {0x0, UNKNOWN}}, {"Value", {0x0, UNKNOWN}}, {"PageHashPointer", {0x0, UNKNOWN}}, {"Unused", {0x0, UNKNOWN}}, {"SecurityMandatory", {0x0, UNKNOWN}}, }, { // __unnamed_105e {"LongFunction", {0x0, UNKNOWN}}, {"Persistent", {0x0, UNKNOWN}}, {"Private", {0x0, UNKNOWN}}, }, { // _HEAP_VIRTUAL_ALLOC_ENTRY {"ReserveSize", {0x14, UNKNOWN}}, {"Entry", {0x0, _LIST_ENTRY}}, {"ExtraStuff", {0x8, _HEAP_ENTRY_EXTRA}}, {"CommitSize", {0x10, UNKNOWN}}, {"BusyBlock", {0x18, _HEAP_ENTRY}}, }, { // _RTL_DYNAMIC_HASH_TABLE_ENUMERATOR {"ChainHead", {0xc, _LIST_ENTRY | POINTER}}, {"HashEntry", {0x0, _RTL_DYNAMIC_HASH_TABLE_ENTRY}}, {"BucketIndex", {0x10, UNKNOWN}}, }, { // _IA64_DBGKD_CONTROL_SET {"CurrentSymbolEnd", {0xc, UNKNOWN}}, {"Continue", {0x0, UNKNOWN}}, {"CurrentSymbolStart", {0x4, UNKNOWN}}, }, { // _CLIENT_ID {"UniqueProcess", {0x0, UNKNOWN | POINTER}}, {"UniqueThread", {0x4, UNKNOWN | POINTER}}, }, { // _MI_SPECIAL_POOL {"PagesInUse", {0x18, UNKNOWN}}, {"PteBase", {0x0, _MMPTE | POINTER}}, {"Lock", {0x4, UNKNOWN}}, {"Paged", {0x8, _MI_SPECIAL_POOL_PTE_LIST}}, {"NonPaged", {0x10, _MI_SPECIAL_POOL_PTE_LIST}}, {"SpecialPoolPdes", {0x1c, _RTL_BITMAP}}, }, { // _DBGKD_GET_CONTEXT {"Unused", {0x0, UNKNOWN}}, }, { // _CM_TRANS {"KtmEnlistmentObject", {0x20, _KENLISTMENT | POINTER}}, {"StartLsn", {0x38, UNKNOWN}}, {"KtmTrans", {0x18, UNKNOWN | POINTER}}, {"CmRm", {0x1c, _CM_RM | POINTER}}, {"HiveCount", {0x44, UNKNOWN}}, {"KtmEnlistmentHandle", {0x24, UNKNOWN | POINTER}}, {"KtmUow", {0x28, _GUID}}, {"HiveArray", {0x48, UNKNOWN}}, {"LazyCommitListEntry", {0x10, _LIST_ENTRY}}, {"KCBUoWListHead", {0x8, _LIST_ENTRY}}, {"TransactionListEntry", {0x0, _LIST_ENTRY}}, {"TransState", {0x40, UNKNOWN}}, }, { // _ACL {"AclRevision", {0x0, UNKNOWN}}, {"AclSize", {0x2, UNKNOWN}}, {"AceCount", {0x4, UNKNOWN}}, {"Sbz1", {0x1, UNKNOWN}}, {"Sbz2", {0x6, UNKNOWN}}, }, { // _PNP_DEVICE_COMPLETION_REQUEST {"Status", {0x18, UNKNOWN}}, {"Information", {0x1c, UNKNOWN | POINTER}}, {"IrpPended", {0x14, UNKNOWN}}, {"FailingDriver", {0x30, _DRIVER_OBJECT | POINTER}}, {"WorkItem", {0x20, _WORK_QUEUE_ITEM}}, {"Context", {0xc, UNKNOWN | POINTER}}, {"DeviceNode", {0x8, _DEVICE_NODE | POINTER}}, {"ReferenceCount", {0x34, UNKNOWN}}, {"ListEntry", {0x0, _LIST_ENTRY}}, {"CompletionState", {0x10, UNKNOWN}}, }, { // _GROUP_AFFINITY {"Group", {0x4, UNKNOWN}}, {"Mask", {0x0, UNKNOWN}}, {"Reserved", {0x6, UNKNOWN}}, }, { // _POWER_SEQUENCE {"SequenceD1", {0x0, UNKNOWN}}, {"SequenceD3", {0x8, UNKNOWN}}, {"SequenceD2", {0x4, UNKNOWN}}, }, { // _HEAP_SEGMENT {"LastValidEntry", {0x28, _HEAP_ENTRY | POINTER}}, {"NumberOfPages", {0x20, UNKNOWN}}, {"UCRSegmentList", {0x38, _LIST_ENTRY}}, {"Reserved", {0x36, UNKNOWN}}, {"Entry", {0x0, _HEAP_ENTRY}}, {"FirstEntry", {0x24, _HEAP_ENTRY | POINTER}}, {"SegmentListEntry", {0x10, _LIST_ENTRY}}, {"SegmentSignature", {0x8, UNKNOWN}}, {"SegmentFlags", {0xc, UNKNOWN}}, {"NumberOfUnCommittedRanges", {0x30, UNKNOWN}}, {"SegmentAllocatorBackTraceIndex", {0x34, UNKNOWN}}, {"Heap", {0x18, _HEAP | POINTER}}, {"BaseAddress", {0x1c, UNKNOWN | POINTER}}, {"NumberOfUnCommittedPages", {0x2c, UNKNOWN}}, }, { // _TOKEN {"TokenSource", {0x0, _TOKEN_SOURCE}}, {"RestrictedSidCount", {0x7c, UNKNOWN}}, {"TokenId", {0x10, _LUID}}, {"UserAndGroups", {0x90, _SID_AND_ATTRIBUTES | POINTER}}, {"Privileges", {0x40, _SEP_TOKEN_PRIVILEGES}}, {"PrimaryGroup", {0x98, UNKNOWN | POINTER}}, {"MandatoryPolicy", {0xb8, UNKNOWN}}, {"RestrictedSids", {0x94, _SID_AND_ATTRIBUTES | POINTER}}, {"AuditPolicy", {0x58, _SEP_AUDIT_POLICY}}, {"SessionId", {0x74, UNKNOWN}}, {"SidHash", {0xc8, _SID_AND_ATTRIBUTES_HASH}}, {"TokenInUse", {0xb0, UNKNOWN}}, {"DefaultOwnerIndex", {0x8c, UNKNOWN}}, {"ExpirationTime", {0x28, _LARGE_INTEGER}}, {"UserAndGroupCount", {0x78, UNKNOWN}}, {"TokenFlags", {0xac, UNKNOWN}}, {"TokenLock", {0x30, _ERESOURCE | POINTER}}, {"DefaultDacl", {0xa0, _ACL | POINTER}}, {"AuthenticationId", {0x18, _LUID}}, {"TokenType", {0xa4, UNKNOWN}}, {"VariableLength", {0x80, UNKNOWN}}, {"LogonSession", {0xbc, _SEP_LOGON_SESSION_REFERENCES | POINTER}}, {"ImpersonationLevel", {0xa8, UNKNOWN}}, {"ParentTokenId", {0x20, _LUID}}, {"VariablePart", {0x1dc, UNKNOWN}}, {"RestrictedSidHash", {0x150, _SID_AND_ATTRIBUTES_HASH}}, {"pSecurityAttributes", {0x1d8, _AUTHZBASEP_SECURITY_ATTRIBUTES_INFORMATION | POINTER}}, {"DynamicPart", {0x9c, UNKNOWN | POINTER}}, {"DynamicAvailable", {0x88, UNKNOWN}}, {"DynamicCharged", {0x84, UNKNOWN}}, {"IntegrityLevelIndex", {0xb4, UNKNOWN}}, {"OriginatingLogonSession", {0xc0, _LUID}}, {"ModifiedId", {0x34, _LUID}}, }, { // _LUID_AND_ATTRIBUTES {"Attributes", {0x8, UNKNOWN}}, {"Luid", {0x0, _LUID}}, }, { // _NETWORK_LOADER_BLOCK {"BootServerReplyPacketLength", {0xc, UNKNOWN}}, {"DHCPServerACK", {0x0, UNKNOWN | POINTER}}, {"DHCPServerACKLength", {0x4, UNKNOWN}}, {"BootServerReplyPacket", {0x8, UNKNOWN | POINTER}}, }, { // _FAST_MUTEX {"Count", {0x0, UNKNOWN}}, {"Owner", {0x4, _KTHREAD | POINTER}}, {"OldIrql", {0x1c, UNKNOWN}}, {"Contention", {0x8, UNKNOWN}}, {"Event", {0xc, _KEVENT}}, }, { // __unnamed_152b {"e1", {0x0, _MMWSLENTRY}}, {"VirtualAddress", {0x0, UNKNOWN | POINTER}}, {"Long", {0x0, UNKNOWN}}, {"e2", {0x0, _MMWSLE_FREE_ENTRY}}, }, { // _OBJECT_HANDLE_INFORMATION {"HandleAttributes", {0x0, UNKNOWN}}, {"GrantedAccess", {0x4, UNKNOWN}}, }, { // __unnamed_1980 {"s1", {0x0, __unnamed_197e}}, {"Flags", {0x0, UNKNOWN}}, }, { // __unnamed_218f {"CreatingProcess", {0x0, _EPROCESS | POINTER}}, {"ImageCommitment", {0x0, UNKNOWN}}, }, { // _IOV_FORCED_PENDING_TRACE {"Irp", {0x0, _IRP | POINTER}}, {"StackTrace", {0x8, UNKNOWN}}, {"Thread", {0x4, _ETHREAD | POINTER}}, }, { // _OBJECT_HEADER_NAME_INFO {"Directory", {0x0, _OBJECT_DIRECTORY | POINTER}}, {"ReferenceCount", {0xc, UNKNOWN}}, {"Name", {0x4, _UNICODE_STRING}}, }, { // _LPCP_PORT_OBJECT {"ServerSectionBase", {0x24, UNKNOWN | POINTER}}, {"WaitEvent", {0x94, _KEVENT}}, {"LpcReplyChainHead", {0x78, _LIST_ENTRY}}, {"StaticSecurity", {0x3c, _SECURITY_CLIENT_CONTEXT}}, {"Creator", {0x18, _CLIENT_ID}}, {"LpcDataInfoChainHead", {0x80, _LIST_ENTRY}}, {"ClientSectionBase", {0x20, UNKNOWN | POINTER}}, {"ConnectedPort", {0x4, _LPCP_PORT_OBJECT | POINTER}}, {"MaxMessageLength", {0x8c, UNKNOWN}}, {"ConnectionPort", {0x0, _LPCP_PORT_OBJECT | POINTER}}, {"ServerProcess", {0x88, _EPROCESS | POINTER}}, {"Flags", {0x90, UNKNOWN}}, {"SecurityQos", {0x30, _SECURITY_QUALITY_OF_SERVICE}}, {"ClientThread", {0x2c, _ETHREAD | POINTER}}, {"MappingProcess", {0x88, _EPROCESS | POINTER}}, {"MsgQueue", {0x8, _LPCP_PORT_QUEUE}}, {"PortContext", {0x28, UNKNOWN | POINTER}}, {"MaxConnectionInfoLength", {0x8e, UNKNOWN}}, }, { // _FAST_IO_DISPATCH {"FastIoUnlockAllByKey", {0x24, UNKNOWN | POINTER}}, {"AcquireForCcFlush", {0x68, UNKNOWN | POINTER}}, {"FastIoDeviceControl", {0x28, UNKNOWN | POINTER}}, {"FastIoWrite", {0xc, UNKNOWN | POINTER}}, {"ReleaseForCcFlush", {0x6c, UNKNOWN | POINTER}}, {"FastIoQueryBasicInfo", {0x10, UNKNOWN | POINTER}}, {"MdlWriteComplete", {0x4c, UNKNOWN | POINTER}}, {"FastIoUnlockSingle", {0x1c, UNKNOWN | POINTER}}, {"SizeOfFastIoDispatch", {0x0, UNKNOWN}}, {"ReleaseForModWrite", {0x64, UNKNOWN | POINTER}}, {"PrepareMdlWrite", {0x48, UNKNOWN | POINTER}}, {"MdlRead", {0x40, UNKNOWN | POINTER}}, {"FastIoQueryStandardInfo", {0x14, UNKNOWN | POINTER}}, {"FastIoDetachDevice", {0x34, UNKNOWN | POINTER}}, {"FastIoUnlockAll", {0x20, UNKNOWN | POINTER}}, {"ReleaseFileForNtCreateSection", {0x30, UNKNOWN | POINTER}}, {"FastIoLock", {0x18, UNKNOWN | POINTER}}, {"MdlReadComplete", {0x44, UNKNOWN | POINTER}}, {"FastIoReadCompressed", {0x50, UNKNOWN | POINTER}}, {"AcquireForModWrite", {0x3c, UNKNOWN | POINTER}}, {"FastIoQueryOpen", {0x60, UNKNOWN | POINTER}}, {"FastIoQueryNetworkOpenInfo", {0x38, UNKNOWN | POINTER}}, {"AcquireFileForNtCreateSection", {0x2c, UNKNOWN | POINTER}}, {"FastIoRead", {0x8, UNKNOWN | POINTER}}, {"FastIoWriteCompressed", {0x54, UNKNOWN | POINTER}}, {"MdlReadCompleteCompressed", {0x58, UNKNOWN | POINTER}}, {"FastIoCheckIfPossible", {0x4, UNKNOWN | POINTER}}, {"MdlWriteCompleteCompressed", {0x5c, UNKNOWN | POINTER}}, }, { // _PCW_PROCESSOR_INFO {"DpcTime", {0x28, UNKNOWN}}, {"DpcCount", {0x38, UNKNOWN}}, {"C1Transitions", {0x58, UNKNOWN}}, {"UserTime", {0x10, UNKNOWN}}, {"C3Time", {0x50, UNKNOWN}}, {"C3Transitions", {0x68, UNKNOWN}}, {"IdleTime", {0x0, UNKNOWN}}, {"Interrupts", {0x20, UNKNOWN}}, {"AvailableTime", {0x8, UNKNOWN}}, {"C1Time", {0x40, UNKNOWN}}, {"PercentMaxFrequency", {0x78, UNKNOWN}}, {"InterruptTime", {0x30, UNKNOWN}}, {"CurrentFrequency", {0x74, UNKNOWN}}, {"StateFlags", {0x7c, UNKNOWN}}, {"KernelTime", {0x18, UNKNOWN}}, {"C2Transitions", {0x60, UNKNOWN}}, {"ParkingStatus", {0x70, UNKNOWN}}, {"DpcRate", {0x3c, UNKNOWN}}, {"C2Time", {0x48, UNKNOWN}}, }, { // _SECURITY_DESCRIPTOR_RELATIVE {"Control", {0x2, UNKNOWN}}, {"Group", {0x8, UNKNOWN}}, {"Sacl", {0xc, UNKNOWN}}, {"Sbz1", {0x1, UNKNOWN}}, {"Owner", {0x4, UNKNOWN}}, {"Dacl", {0x10, UNKNOWN}}, {"Revision", {0x0, UNKNOWN}}, }, { // _IMAGE_FILE_HEADER {"NumberOfSections", {0x2, UNKNOWN}}, {"TimeDateStamp", {0x4, UNKNOWN}}, {"PointerToSymbolTable", {0x8, UNKNOWN}}, {"NumberOfSymbols", {0xc, UNKNOWN}}, {"Machine", {0x0, UNKNOWN}}, {"Characteristics", {0x12, UNKNOWN}}, {"SizeOfOptionalHeader", {0x10, UNKNOWN}}, }, { // _MMADDRESS_NODE {"LeftChild", {0x4, _MMADDRESS_NODE | POINTER}}, {"u1", {0x0, __unnamed_158e}}, {"RightChild", {0x8, _MMADDRESS_NODE | POINTER}}, {"EndingVpn", {0x10, UNKNOWN}}, {"StartingVpn", {0xc, UNKNOWN}}, }, { // _NAMED_PIPE_CREATE_PARAMETERS {"ReadMode", {0x4, UNKNOWN}}, {"NamedPipeType", {0x0, UNKNOWN}}, {"OutboundQuota", {0x14, UNKNOWN}}, {"CompletionMode", {0x8, UNKNOWN}}, {"MaximumInstances", {0xc, UNKNOWN}}, {"InboundQuota", {0x10, UNKNOWN}}, {"DefaultTimeout", {0x18, _LARGE_INTEGER}}, {"TimeoutSpecified", {0x20, UNKNOWN}}, }, { // _KENLISTMENT {"NextHistory", {0xc4, UNKNOWN}}, {"State", {0x60, UNKNOWN}}, {"Mutex", {0x28, _KMUTANT}}, {"SubordinateTxHandle", {0x90, UNKNOWN | POINTER}}, {"CrmEnlistmentTmId", {0xa4, _GUID}}, {"SupSubEnlHandle", {0x8c, UNKNOWN | POINTER}}, {"Key", {0x6c, UNKNOWN | POINTER}}, {"RecoveryInformation", {0x74, UNKNOWN | POINTER}}, {"SupSubEnlistment", {0x88, _KENLISTMENT | POINTER}}, {"CrmEnlistmentEnId", {0x94, _GUID}}, {"Transaction", {0x5c, _KTRANSACTION | POINTER}}, {"NextSameRm", {0x50, _LIST_ENTRY}}, {"CrmEnlistmentRmId", {0xb4, _GUID}}, {"NamespaceLink", {0x4, _KTMOBJECT_NAMESPACE_LINK}}, {"Flags", {0x64, UNKNOWN}}, {"NextSameTx", {0x48, _LIST_ENTRY}}, {"History", {0xc8, UNKNOWN}}, {"DynamicNameInformation", {0x7c, UNKNOWN | POINTER}}, {"ResourceManager", {0x58, _KRESOURCEMANAGER | POINTER}}, {"RecoveryInformationLength", {0x78, UNKNOWN}}, {"NotificationMask", {0x68, UNKNOWN}}, {"DynamicNameInformationLength", {0x80, UNKNOWN}}, {"KeyRefCount", {0x70, UNKNOWN}}, {"cookie", {0x0, UNKNOWN}}, {"EnlistmentId", {0x18, _GUID}}, {"FinalNotification", {0x84, UNKNOWN | POINTER}}, }, { // _PO_DEVICE_NOTIFY_ORDER {"OrderLevel", {0x8, UNKNOWN}}, {"Locked", {0x0, UNKNOWN}}, {"WarmEjectPdoPointer", {0x4, UNKNOWN | POINTER}}, }, { // _POP_SHUTDOWN_BUG_CHECK {"ProcessId", {0x8, UNKNOWN | POINTER}}, {"Code", {0xc, UNKNOWN}}, {"Parameter1", {0x10, UNKNOWN}}, {"Parameter3", {0x18, UNKNOWN}}, {"ThreadId", {0x4, UNKNOWN | POINTER}}, {"Parameter4", {0x1c, UNKNOWN}}, {"Parameter2", {0x14, UNKNOWN}}, {"ThreadHandle", {0x0, UNKNOWN | POINTER}}, }, { // __unnamed_162b {"Status", {0x4, UNKNOWN}}, {"Failure", {0x0, UNKNOWN}}, {"Point", {0x8, UNKNOWN}}, }, { // _KALPC_MESSAGE {"CancelSequencePort", {0x1c, _ALPC_PORT | POINTER}}, {"PortMessage", {0x70, _PORT_MESSAGE}}, {"CancelQueuePort", {0x20, _ALPC_PORT | POINTER}}, {"u1", {0x18, __unnamed_19dc}}, {"ConnectionPort", {0x68, _ALPC_PORT | POINTER}}, {"DataSystemVa", {0x60, UNKNOWN | POINTER}}, {"ExtensionBufferSize", {0xc, UNKNOWN}}, {"CancelSequenceNo", {0x24, UNKNOWN}}, {"MessageAttributes", {0x40, _KALPC_MESSAGE_ATTRIBUTES}}, {"ExtensionBuffer", {0x8, UNKNOWN | POINTER}}, {"OwnerPort", {0x3c, _ALPC_PORT | POINTER}}, {"DataUserVa", {0x5c, UNKNOWN | POINTER}}, {"CommunicationInfo", {0x64, _ALPC_COMMUNICATION_INFO | POINTER}}, {"PortQueue", {0x38, _ALPC_PORT | POINTER}}, {"Entry", {0x0, _LIST_ENTRY}}, {"Reserve", {0x34, _KALPC_RESERVE | POINTER}}, {"QuotaBlock", {0x10, UNKNOWN | POINTER}}, {"SequenceNo", {0x14, UNKNOWN}}, {"ServerThread", {0x6c, _ETHREAD | POINTER}}, {"WaitingThread", {0x30, _ETHREAD | POINTER}}, {"QuotaProcess", {0x10, _EPROCESS | POINTER}}, {"CancelListEntry", {0x28, _LIST_ENTRY}}, }, { // __unnamed_162e {"Action", {0x0, UNKNOWN}}, {"Status", {0x8, UNKNOWN}}, {"Handle", {0x4, UNKNOWN | POINTER}}, }, { // __unnamed_19da {"SharedQuota", {0x0, UNKNOWN}}, {"ReceiverReference", {0x0, UNKNOWN}}, {"ReplyWaitReply", {0x0, UNKNOWN}}, {"ReserveReference", {0x0, UNKNOWN}}, {"QueuePortType", {0x0, UNKNOWN}}, {"QueueType", {0x0, UNKNOWN}}, {"ViewAttributeRetrieved", {0x0, UNKNOWN}}, {"OwnerPortReference", {0x0, UNKNOWN}}, {"Canceled", {0x0, UNKNOWN}}, {"Ready", {0x0, UNKNOWN}}, {"InDispatch", {0x0, UNKNOWN}}, {"ReleaseMessage", {0x0, UNKNOWN}}, }, { // __unnamed_19dc {"s1", {0x0, __unnamed_19da}}, {"State", {0x0, UNKNOWN}}, }, { // _CALL_HASH_ENTRY {"CallCount", {0x10, UNKNOWN}}, {"CallersAddress", {0x8, UNKNOWN | POINTER}}, {"CallersCaller", {0xc, UNKNOWN | POINTER}}, {"ListEntry", {0x0, _LIST_ENTRY}}, }, { // _I386_LOADER_BLOCK {"MachineType", {0x4, UNKNOWN}}, {"VirtualBias", {0x8, UNKNOWN}}, {"CommonDataArea", {0x0, UNKNOWN | POINTER}}, }, { // _ARBITER_ORDERING {"Start", {0x0, UNKNOWN}}, {"End", {0x8, UNKNOWN}}, }, { // _SECTION_OBJECT_POINTERS {"ImageSectionObject", {0x8, UNKNOWN | POINTER}}, {"DataSectionObject", {0x0, UNKNOWN | POINTER}}, {"SharedCacheMap", {0x4, UNKNOWN | POINTER}}, }, { // _LOOKASIDE_LIST_EX {"L", {0x0, _GENERAL_LOOKASIDE_POOL}}, }, { // _SEGMENT_OBJECT {"SizeOfSegment", {0x8, _LARGE_INTEGER}}, {"TotalNumberOfPtes", {0x4, UNKNOWN}}, {"MmSubSectionFlags", {0x24, _MMSUBSECTION_FLAGS | POINTER}}, {"Subsection", {0x1c, _SUBSECTION | POINTER}}, {"MmSectionFlags", {0x20, _MMSECTION_FLAGS | POINTER}}, {"ImageCommitment", {0x14, UNKNOWN}}, {"BaseAddress", {0x0, UNKNOWN | POINTER}}, {"ControlArea", {0x18, _CONTROL_AREA | POINTER}}, {"NonExtendedPtes", {0x10, UNKNOWN}}, }, { // _FLOATING_SAVE_AREA {"ErrorOffset", {0xc, UNKNOWN}}, {"DataOffset", {0x14, UNKNOWN}}, {"ControlWord", {0x0, UNKNOWN}}, {"Cr0NpxState", {0x6c, UNKNOWN}}, {"DataSelector", {0x18, UNKNOWN}}, {"TagWord", {0x8, UNKNOWN}}, {"StatusWord", {0x4, UNKNOWN}}, {"RegisterArea", {0x1c, UNKNOWN}}, {"ErrorSelector", {0x10, UNKNOWN}}, }, { // _SID_AND_ATTRIBUTES {"Attributes", {0x4, UNKNOWN}}, {"Sid", {0x0, UNKNOWN | POINTER}}, }, { // _MMPTE_SOFTWARE {"PageFileLow", {0x0, UNKNOWN}}, {"PageFileHigh", {0x0, UNKNOWN}}, {"Transition", {0x0, UNKNOWN}}, {"Protection", {0x0, UNKNOWN}}, {"Valid", {0x0, UNKNOWN}}, {"Prototype", {0x0, UNKNOWN}}, }, { // _VF_TRACKER {"TraceDepth", {0xc, UNKNOWN}}, {"TrackerFlags", {0x0, UNKNOWN}}, {"TrackerSize", {0x4, UNKNOWN}}, {"TrackerIndex", {0x8, UNKNOWN}}, }, { // _DBGKD_READ_WRITE_IO32 {"DataValue", {0x8, UNKNOWN}}, {"DataSize", {0x0, UNKNOWN}}, {"IoAddress", {0x4, UNKNOWN}}, }, { // _OBP_LOOKUP_CONTEXT {"DirectoryLocked", {0xe, UNKNOWN}}, {"HashValue", {0x8, UNKNOWN}}, {"Object", {0x4, UNKNOWN | POINTER}}, {"HashIndex", {0xc, UNKNOWN}}, {"LockStateSignature", {0x10, UNKNOWN}}, {"Directory", {0x0, _OBJECT_DIRECTORY | POINTER}}, {"LockedExclusive", {0xf, UNKNOWN}}, }, { // _POP_ACTION_TRIGGER {"Battery", {0xc, __unnamed_204b}}, {"Flags", {0x4, UNKNOWN}}, {"Button", {0xc, __unnamed_204d}}, {"Type", {0x0, UNKNOWN}}, {"Wait", {0x8, _POP_TRIGGER_WAIT | POINTER}}, }, { // __unnamed_1c45 {"Banked", {0x0, _MMBANKED_SECTION | POINTER}}, {"ExtendedInfo", {0x0, _MMEXTEND_INFO | POINTER}}, }, { // _MDL {"StartVa", {0x10, UNKNOWN | POINTER}}, {"ByteCount", {0x14, UNKNOWN}}, {"MappedSystemVa", {0xc, UNKNOWN | POINTER}}, {"ByteOffset", {0x18, UNKNOWN}}, {"Process", {0x8, _EPROCESS | POINTER}}, {"MdlFlags", {0x6, UNKNOWN}}, {"Size", {0x4, UNKNOWN}}, {"Next", {0x0, _MDL | POINTER}}, }, { // _CMHIVE {"ViewLock", {0x338, _EX_PUSH_LOCK}}, {"UnloadEventArray", {0x5cc, UNKNOWN | POINTER}}, {"KcbCacheTable", {0x328, _CM_KEY_HASH_TABLE_ENTRY | POINTER}}, {"ViewLockLast", {0x340, UNKNOWN}}, {"HiveLock", {0x334, _FAST_MUTEX | POINTER}}, {"KcbConvertListHead", {0x5f8, _LIST_ENTRY}}, {"GrowOffset", {0x5f4, UNKNOWN}}, {"UnloadEventCount", {0x5c8, UNKNOWN}}, {"ViewLockOwner", {0x33c, _KTHREAD | POINTER}}, {"MappedViewCount", {0x384, UNKNOWN}}, {"SecurityHitHint", {0x3c0, UNKNOWN}}, {"Identity", {0x330, UNKNOWN}}, {"LastShrinkHiveSize", {0x394, UNKNOWN}}, {"SecurityCache", {0x3c4, _CM_KEY_SECURITY_CACHE_ENTRY | POINTER}}, {"FlushedViewList", {0x37c, _LIST_ENTRY}}, {"MappedViewList", {0x36c, _LIST_ENTRY}}, {"RundownThread", {0x62c, _KTHREAD | POINTER}}, {"FlushHiveTruncated", {0x360, UNKNOWN}}, {"FlushDirtyVector", {0x350, _RTL_BITMAP}}, {"KnodeConvertListHead", {0x600, _LIST_ENTRY}}, {"CellRemapArray", {0x608, _CM_CELL_REMAP_BLOCK | POINTER}}, {"NotifyList", {0x304, _LIST_ENTRY}}, {"FlushOffsetArrayCount", {0x35c, UNKNOWN}}, {"FlushLock2", {0x364, _FAST_MUTEX | POINTER}}, {"HiveRootPath", {0x3b0, _UNICODE_STRING}}, {"PinnedViewCount", {0x386, UNKNOWN}}, {"SecurityHash", {0x3c8, UNKNOWN}}, {"UnloadWorkItem", {0x5d8, _CM_WORKITEM | POINTER}}, {"TrustClassEntry", {0x610, _LIST_ENTRY}}, {"ViewsPerHive", {0x38c, UNKNOWN}}, {"CreatorOwner", {0x628, _KTHREAD | POINTER}}, {"CmRm", {0x61c, _CM_RM | POINTER}}, {"ActualFileSize", {0x398, _LARGE_INTEGER}}, {"WriterLock", {0x348, _FAST_MUTEX | POINTER}}, {"GrowOnlyMode", {0x5f0, UNKNOWN}}, {"CmRmInitFailStatus", {0x624, UNKNOWN}}, {"FileHandles", {0x2ec, UNKNOWN}}, {"UnloadWorkItemHolder", {0x5dc, _CM_WORKITEM}}, {"CmRmInitFailPoint", {0x620, UNKNOWN}}, {"FlushCount", {0x618, UNKNOWN}}, {"KcbCacheTableSize", {0x32c, UNKNOWN}}, {"PreloadedHiveList", {0x314, _LIST_ENTRY}}, {"SecurityCacheSize", {0x3bc, UNKNOWN}}, {"SecurityCount", {0x3b8, UNKNOWN}}, {"FlushOffsetArray", {0x358, CMP_OFFSET_ARRAY | POINTER}}, {"SecurityLock", {0x368, _EX_PUSH_LOCK}}, {"Frozen", {0x5d4, UNKNOWN}}, {"ViewUnLockLast", {0x344, UNKNOWN}}, {"FileUserName", {0x3a8, _UNICODE_STRING}}, {"Hive", {0x0, _HHIVE}}, {"PinnedViewList", {0x374, _LIST_ENTRY}}, {"FlusherLock", {0x34c, _ERESOURCE | POINTER}}, {"Flags", {0x60c, UNKNOWN}}, {"HiveRundown", {0x31c, _EX_RUNDOWN_REF}}, {"RootKcb", {0x5d0, _CM_KEY_CONTROL_BLOCK | POINTER}}, {"FileObject", {0x390, _FILE_OBJECT | POINTER}}, {"FileFullPath", {0x3a0, _UNICODE_STRING}}, {"UseCount", {0x388, UNKNOWN}}, {"HiveList", {0x30c, _LIST_ENTRY}}, {"ParseCacheEntries", {0x320, _LIST_ENTRY}}, }, { // _ULARGE_INTEGER {"HighPart", {0x4, UNKNOWN}}, {"u", {0x0, __unnamed_1041}}, {"QuadPart", {0x0, UNKNOWN}}, {"LowPart", {0x0, UNKNOWN}}, }, { // _KRESOURCEMANAGER {"Tm", {0xd4, _KTM | POINTER}}, {"Description", {0xd8, _UNICODE_STRING}}, {"RmId", {0x50, _GUID}}, {"CRMListEntry", {0xcc, _LIST_ENTRY}}, {"ProtocolListHead", {0xbc, _LIST_ENTRY}}, {"Enlistments", {0xe0, _KTMOBJECT_NAMESPACE}}, {"NamespaceLink", {0x3c, _KTMOBJECT_NAMESPACE_LINK}}, {"EnlistmentCount", {0xb0, UNKNOWN}}, {"NotificationMutex", {0x88, _KMUTANT}}, {"CompletionBinding", {0x140, _KRESOURCEMANAGER_COMPLETION_BINDING}}, {"State", {0x14, UNKNOWN}}, {"NotificationQueue", {0x60, _KQUEUE}}, {"cookie", {0x10, UNKNOWN}}, {"Key", {0xb8, UNKNOWN | POINTER}}, {"EnlistmentHead", {0xa8, _LIST_ENTRY}}, {"Flags", {0x18, UNKNOWN}}, {"Mutex", {0x1c, _KMUTANT}}, {"NotificationRoutine", {0xb4, UNKNOWN | POINTER}}, {"PendingPropReqListHead", {0xc4, _LIST_ENTRY}}, {"NotificationAvailable", {0x0, _KEVENT}}, }, { // __unnamed_12a0 {"IrpCount", {0x0, UNKNOWN}}, {"SystemBuffer", {0x0, UNKNOWN | POINTER}}, {"MasterIrp", {0x0, _IRP | POINTER}}, }, { // __unnamed_12a5 {"UserApcContext", {0x4, UNKNOWN | POINTER}}, {"UserApcRoutine", {0x0, UNKNOWN | POINTER}}, {"IssuingProcess", {0x0, UNKNOWN | POINTER}}, }, { // __unnamed_12a7 {"AsynchronousParameters", {0x0, __unnamed_12a5}}, {"AllocationSize", {0x0, _LARGE_INTEGER}}, }, { // _PCAT_FIRMWARE_INFORMATION {"PlaceHolder", {0x0, UNKNOWN}}, }, { // _KMUTANT {"ApcDisable", {0x1d, UNKNOWN}}, {"Header", {0x0, _DISPATCHER_HEADER}}, {"MutantListEntry", {0x10, _LIST_ENTRY}}, {"Abandoned", {0x1c, UNKNOWN}}, {"OwnerThread", {0x18, _KTHREAD | POINTER}}, }, { // _PO_IRP_MANAGER {"DeviceIrpQueue", {0x0, _PO_IRP_QUEUE}}, {"SystemIrpQueue", {0x8, _PO_IRP_QUEUE}}, }, { // _PF_KERNEL_GLOBALS {"Flags", {0x2c, UNKNOWN}}, {"AccessBufferMax", {0x1c, UNKNOWN}}, {"AccessBufferRef", {0x8, _EX_RUNDOWN_REF}}, {"AccessBufferAgeThreshold", {0x0, UNKNOWN}}, {"ScenarioPrefetchCount", {0x30, UNKNOWN}}, {"StreamSequenceNumber", {0x28, UNKNOWN}}, {"AccessBufferExistsEvent", {0xc, _KEVENT}}, {"AccessBufferList", {0x20, _SLIST_HEADER}}, }, { // _MMSECTION_FLAGS {"Based", {0x0, UNKNOWN}}, {"CopyOnWrite", {0x0, UNKNOWN}}, {"PreferredNode", {0x0, UNKNOWN}}, {"Commit", {0x0, UNKNOWN}}, {"Networked", {0x0, UNKNOWN}}, {"NoChange", {0x0, UNKNOWN}}, {"FailAllIo", {0x0, UNKNOWN}}, {"UserReference", {0x0, UNKNOWN}}, {"FilePointerNull", {0x0, UNKNOWN}}, {"DeleteOnClose", {0x0, UNKNOWN}}, {"UserWritable", {0x0, UNKNOWN}}, {"Spare", {0x0, UNKNOWN}}, {"NoModifiedWriting", {0x0, UNKNOWN}}, {"GlobalMemory", {0x0, UNKNOWN}}, {"CollidedFlush", {0x0, UNKNOWN}}, {"WasPurged", {0x0, UNKNOWN}}, {"BeingCreated", {0x0, UNKNOWN}}, {"BeingDeleted", {0x0, UNKNOWN}}, {"SetMappedFileIoComplete", {0x0, UNKNOWN}}, {"Accessed", {0x0, UNKNOWN}}, {"BeingPurged", {0x0, UNKNOWN}}, {"Reserve", {0x0, UNKNOWN}}, {"PhysicalMemory", {0x0, UNKNOWN}}, {"Rom", {0x0, UNKNOWN}}, {"GlobalOnlyPerSession", {0x0, UNKNOWN}}, {"Image", {0x0, UNKNOWN}}, {"File", {0x0, UNKNOWN}}, }, { // __unnamed_204b {"Level", {0x0, UNKNOWN}}, }, { // __unnamed_204d {"Type", {0x0, UNKNOWN}}, }, { // _DBGKD_FILL_MEMORY {"Length", {0x8, UNKNOWN}}, {"PatternLength", {0xe, UNKNOWN}}, {"Flags", {0xc, UNKNOWN}}, {"Address", {0x0, UNKNOWN}}, }, { // _WHEA_ERROR_PACKET_V2 {"DataOffset", {0x40, UNKNOWN}}, {"DataLength", {0x44, UNKNOWN}}, {"ErrorSeverity", {0x14, UNKNOWN}}, {"ErrorType", {0x10, UNKNOWN}}, {"PshedDataLength", {0x4c, UNKNOWN}}, {"ErrorSourceType", {0x1c, UNKNOWN}}, {"NotifyType", {0x20, _GUID}}, {"Length", {0x8, UNKNOWN}}, {"Version", {0x4, UNKNOWN}}, {"Flags", {0xc, _WHEA_ERROR_PACKET_FLAGS}}, {"Context", {0x30, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, {"PshedDataOffset", {0x48, UNKNOWN}}, {"DataFormat", {0x38, UNKNOWN}}, {"Reserved1", {0x3c, UNKNOWN}}, {"ErrorSourceId", {0x18, UNKNOWN}}, }, { // _VF_AVL_TABLE {"ReservedNode", {0x38, _VF_AVL_TREE_NODE | POINTER}}, {"RtlTable", {0x0, _RTL_AVL_TABLE}}, }, { // _DBGKD_GET_VERSION32 {"KeUserCallbackDispatcher", {0x1c, UNKNOWN}}, {"FramePointer", {0x16, UNKNOWN}}, {"KernBase", {0x8, UNKNOWN}}, {"Flags", {0x6, UNKNOWN}}, {"ThCallbackStack", {0x12, UNKNOWN}}, {"DebuggerDataList", {0x24, UNKNOWN}}, {"MajorVersion", {0x0, UNKNOWN}}, {"KiCallUserMode", {0x18, UNKNOWN}}, {"MachineType", {0x10, UNKNOWN}}, {"MinorVersion", {0x2, UNKNOWN}}, {"PsLoadedModuleList", {0xc, UNKNOWN}}, {"NextCallback", {0x14, UNKNOWN}}, {"BreakpointWithStatus", {0x20, UNKNOWN}}, {"ProtocolVersion", {0x4, UNKNOWN}}, }, { // _KWAIT_BLOCK {"WaitListEntry", {0x0, _LIST_ENTRY}}, {"Thread", {0x8, _KTHREAD | POINTER}}, {"NextWaitBlock", {0x10, _KWAIT_BLOCK | POINTER}}, {"Object", {0xc, UNKNOWN | POINTER}}, {"WaitType", {0x16, UNKNOWN}}, {"BlockState", {0x17, UNKNOWN}}, {"WaitKey", {0x14, UNKNOWN}}, }, { // _VIRTUAL_EFI_RUNTIME_SERVICES {"QueryVariableInfo", {0x34, UNKNOWN}}, {"GetWakeupTime", {0x8, UNKNOWN}}, {"GetNextVariableName", {0x1c, UNKNOWN}}, {"SetVirtualAddressMap", {0x10, UNKNOWN}}, {"GetVariable", {0x18, UNKNOWN}}, {"SetVariable", {0x20, UNKNOWN}}, {"UpdateCapsule", {0x2c, UNKNOWN}}, {"GetTime", {0x0, UNKNOWN}}, {"GetNextHighMonotonicCount", {0x24, UNKNOWN}}, {"ResetSystem", {0x28, UNKNOWN}}, {"QueryCapsuleCapabilities", {0x30, UNKNOWN}}, {"SetTime", {0x4, UNKNOWN}}, {"SetWakeupTime", {0xc, UNKNOWN}}, {"ConvertPointer", {0x14, UNKNOWN}}, }, { // _WMI_LOGGER_CONTEXT {"MaximumBuffers", {0x9c, UNKNOWN}}, {"ReferenceTime", {0xd8, _ETW_REF_CLOCK}}, {"LogFileName", {0x5c, _UNICODE_STRING}}, {"RequestDisableRealtime", {0x22c, UNKNOWN}}, {"BufferCallback", {0xd0, UNKNOWN | POINTER}}, {"FlushEvent", {0x15c, _KEVENT}}, {"ErrorLogged", {0x228, UNKNOWN}}, {"QueueBlockFreeList", {0x40, _SLIST_HEADER}}, {"RealtimeLogfileSize", {0x118, _LARGE_INTEGER}}, {"FlushDpc", {0x198, _KDPC}}, {"RealtimeLogfileName", {0xfc, _UNICODE_STRING}}, {"LogBuffersLost", {0xa8, UNKNOWN}}, {"BufferListPushLock", {0x1dc, _EX_PUSH_LOCK}}, {"FlushThreshold", {0x84, UNKNOWN}}, {"BufferListSpinLock", {0x1dc, UNKNOWN}}, {"ByteOffset", {0x88, _LARGE_INTEGER}}, {"RealtimeWriteOffset", {0x108, _LARGE_INTEGER}}, {"FlushTimer", {0x80, UNKNOWN}}, {"GlobalList", {0x48, _LIST_ENTRY}}, {"RealtimeLogfileUsage", {0x120, UNKNOWN}}, {"Consumers", {0xe8, _LIST_ENTRY}}, {"Wow", {0x228, UNKNOWN}}, {"RequestDisconnectConsumer", {0x22c, UNKNOWN}}, {"AcceptNewEvents", {0x14, UNKNOWN}}, {"RealTimeBuffersLost", {0xb0, UNKNOWN}}, {"FlushTimeOutTimer", {0x170, _KTIMER}}, {"LogFilePattern", {0x64, _UNICODE_STRING}}, {"RequestUpdateFile", {0x22c, UNKNOWN}}, {"InstanceGuid", {0xbc, _GUID}}, {"RealTime", {0x228, UNKNOWN}}, {"SecurityDescriptor", {0x21c, _EX_FAST_REF}}, {"BatchedBufferList", {0x50, _WMI_BUFFER_HEADER | POINTER}}, {"LocalSequence", {0xb8, UNKNOWN}}, {"MaximumFileSize", {0x78, UNKNOWN}}, {"SequencePtr", {0xb4, UNKNOWN | POINTER}}, {"ClientSecurityContext", {0x1e0, _SECURITY_CLIENT_CONTEXT}}, {"LoggerMutex", {0x1b8, _KMUTANT}}, {"LoggerId", {0x0, UNKNOWN}}, {"HookIdMap", {0x230, _RTL_BITMAP}}, {"GetCpuClock", {0x18, UNKNOWN | POINTER}}, {"RealtimeLoggerContextFreed", {0x228, UNKNOWN}}, {"StartTime", {0x20, _LARGE_INTEGER}}, {"RealtimeBuffersSaved", {0x130, UNKNOWN}}, {"LoggerName", {0x54, _UNICODE_STRING}}, {"NumConsumers", {0xf0, UNKNOWN}}, {"LoggerStatus", {0x30, UNKNOWN}}, {"EventsLost", {0xa0, UNKNOWN}}, {"RealtimeReferenceTime", {0x138, _ETW_REF_CLOCK}}, {"RealtimeMaximumFileSize", {0x128, UNKNOWN}}, {"CollectionOn", {0xc, UNKNOWN}}, {"Persistent", {0x228, UNKNOWN}}, {"RealTimeBuffersDelivered", {0xac, UNKNOWN}}, {"CurrentBuffer", {0x50, _EX_FAST_REF}}, {"AutoLogger", {0x228, UNKNOWN}}, {"FileCounter", {0xcc, UNKNOWN}}, {"LoggerLock", {0x1d8, _EX_PUSH_LOCK}}, {"KernelTrace", {0x228, UNKNOWN}}, {"PoolType", {0xd4, UNKNOWN}}, {"ClockType", {0x74, UNKNOWN}}, {"BuffersAvailable", {0x94, UNKNOWN}}, {"NumberOfBuffers", {0x98, UNKNOWN}}, {"OverflowNBQHead", {0x38, UNKNOWN | POINTER}}, {"StackTracing", {0x228, UNKNOWN}}, {"NBQHead", {0x34, UNKNOWN | POINTER}}, {"NoMoreEnable", {0x228, UNKNOWN}}, {"BuffersWritten", {0xa4, UNKNOWN}}, {"NewRTEventsLost", {0x148, UNKNOWN}}, {"NewLogFileName", {0x6c, _UNICODE_STRING}}, {"LastFlushedBuffer", {0x7c, UNKNOWN}}, {"LogFileHandle", {0x28, UNKNOWN | POINTER}}, {"LoggerMode", {0x10, UNKNOWN}}, {"FsReady", {0x228, UNKNOWN}}, {"BufferSize", {0x4, UNKNOWN}}, {"RealtimeLogfileHandle", {0xf8, UNKNOWN | POINTER}}, {"RequestFlush", {0x22c, UNKNOWN}}, {"RealtimeReadOffset", {0x110, _LARGE_INTEGER}}, {"RequestNewFie", {0x22c, UNKNOWN}}, {"RequestFlag", {0x22c, UNKNOWN}}, {"Flags", {0x228, UNKNOWN}}, {"LoggerThread", {0x2c, _ETHREAD | POINTER}}, {"LoggerEvent", {0x14c, _KEVENT}}, {"MaximumEventSize", {0x8, UNKNOWN}}, {"BufferSequenceNumber", {0x220, UNKNOWN}}, {"RequestConnectConsumer", {0x22c, UNKNOWN}}, {"TransitionConsumer", {0xf4, _ETW_REALTIME_CONSUMER | POINTER}}, {"MinimumBuffers", {0x90, UNKNOWN}}, }, { // _HEAP_FREE_ENTRY_EXTRA {"FreeBackTraceIndex", {0x2, UNKNOWN}}, {"TagIndex", {0x0, UNKNOWN}}, }, { // _MMWSLE_HASH {"Index", {0x0, UNKNOWN}}, }, { // _ALPC_COMPLETION_PACKET_LOOKASIDE {"ActiveCount", {0x8, UNKNOWN}}, {"FreeListHead", {0x18, _SINGLE_LIST_ENTRY}}, {"PendingDelete", {0x14, UNKNOWN}}, {"PendingCheckCompletionListCount", {0x10, UNKNOWN}}, {"Entry", {0x24, UNKNOWN}}, {"Lock", {0x0, UNKNOWN}}, {"CompletionKey", {0x20, UNKNOWN | POINTER}}, {"PendingNullCount", {0xc, UNKNOWN}}, {"CompletionPort", {0x1c, UNKNOWN | POINTER}}, {"Size", {0x4, UNKNOWN}}, }, { // _GDI_TEB_BATCH32 {"Buffer", {0x8, UNKNOWN}}, {"HDC", {0x4, UNKNOWN}}, {"Offset", {0x0, UNKNOWN}}, }, { // _ALPC_HANDLE_ENTRY {"Object", {0x0, UNKNOWN | POINTER}}, }, { // _DBGKD_SWITCH_PARTITION {"Partition", {0x0, UNKNOWN}}, }, { // _ARBITER_PARAMETERS {"Parameters", {0x0, __unnamed_230b}}, }, { // _LOADER_PERFORMANCE_DATA {"EndTime", {0x8, UNKNOWN}}, {"StartTime", {0x0, UNKNOWN}}, }, { // _THERMAL_INFORMATION_EX {"Processors", {0xc, _KAFFINITY_EX}}, {"CriticalTripPoint", {0x24, UNKNOWN}}, {"SamplingPeriod", {0x18, UNKNOWN}}, {"PassiveTripPoint", {0x20, UNKNOWN}}, {"CurrentTemperature", {0x1c, UNKNOWN}}, {"ThermalStamp", {0x0, UNKNOWN}}, {"ActiveTripPoint", {0x2c, UNKNOWN}}, {"S4TransitionTripPoint", {0x54, UNKNOWN}}, {"ActiveTripPointCount", {0x28, UNKNOWN}}, {"ThermalConstant2", {0x8, UNKNOWN}}, {"ThermalConstant1", {0x4, UNKNOWN}}, }, { // _RTL_ACTIVATION_CONTEXT_STACK_FRAME {"ActivationContext", {0x4, UNKNOWN | POINTER}}, {"Flags", {0x8, UNKNOWN}}, {"Previous", {0x0, _RTL_ACTIVATION_CONTEXT_STACK_FRAME | POINTER}}, }, { // _RTL_RANGE_LIST {"Count", {0xc, UNKNOWN}}, {"Stamp", {0x10, UNKNOWN}}, {"Flags", {0x8, UNKNOWN}}, {"ListHead", {0x0, _LIST_ENTRY}}, }, { // __unnamed_1888 {"Event", {0x0, _KEVENT | POINTER}}, }, { // _ALPC_MESSAGE_ZONE {"Mdl", {0x0, _MDL | POINTER}}, {"UserVa", {0x4, UNKNOWN | POINTER}}, {"SystemLimit", {0x10, UNKNOWN | POINTER}}, {"SystemVa", {0xc, UNKNOWN | POINTER}}, {"UserLimit", {0x8, UNKNOWN | POINTER}}, {"Size", {0x14, UNKNOWN}}, }, { // _KSYSTEM_TIME {"High2Time", {0x8, UNKNOWN}}, {"High1Time", {0x4, UNKNOWN}}, {"LowPart", {0x0, UNKNOWN}}, }, { // _PCW_MASK_INFORMATION {"InstanceId", {0xc, UNKNOWN}}, {"CounterMask", {0x0, UNKNOWN}}, {"Buffer", {0x14, UNKNOWN | POINTER}}, {"CollectMultiple", {0x10, UNKNOWN}}, {"CancelEvent", {0x18, _KEVENT | POINTER}}, {"InstanceMask", {0x8, _UNICODE_STRING | POINTER}}, }, { // _KiIoAccessMap {"IoMap", {0x20, UNKNOWN}}, {"DirectionMap", {0x0, UNKNOWN}}, }, { // _TOKEN_AUDIT_POLICY {"PerUserPolicy", {0x0, UNKNOWN}}, }, { // _MMPTE_TIMESTAMP {"PageFileLow", {0x0, UNKNOWN}}, {"GlobalTimeStamp", {0x0, UNKNOWN}}, {"Transition", {0x0, UNKNOWN}}, {"Protection", {0x0, UNKNOWN}}, {"MustBeZero", {0x0, UNKNOWN}}, {"Prototype", {0x0, UNKNOWN}}, }, { // _CM_NAME_HASH {"ConvKey", {0x0, UNKNOWN}}, {"NameLength", {0x8, UNKNOWN}}, {"Name", {0xa, UNKNOWN}}, {"NextHash", {0x4, _CM_NAME_HASH | POINTER}}, }, { // _PNP_DEVICE_COMPLETION_QUEUE {"CompletedSemaphore", {0x14, _KSEMAPHORE}}, {"DispatchedCount", {0x8, UNKNOWN}}, {"CompletedList", {0xc, _LIST_ENTRY}}, {"SpinLock", {0x28, UNKNOWN}}, {"DispatchedList", {0x0, _LIST_ENTRY}}, }, { // _LOADER_PARAMETER_EXTENSION {"FirmwareDescriptorListHead", {0x40, _LIST_ENTRY}}, {"LoaderPagesSpanned", {0x20, UNKNOWN}}, {"DrvDBImage", {0x2c, UNKNOWN | POINTER}}, {"HalpVectorToIRQL", {0x3c, UNKNOWN | POINTER}}, {"TriageDumpBlock", {0x1c, UNKNOWN | POINTER}}, {"HalpIRQLToTPR", {0x38, UNKNOWN | POINTER}}, {"DumpHeader", {0x78, UNKNOWN | POINTER}}, {"NumaLocalityInfo", {0x80, UNKNOWN | POINTER}}, {"HeadlessLoaderBlock", {0x24, _HEADLESS_LOADER_BLOCK | POINTER}}, {"MemoryCachingRequirementsCount", {0x90, UNKNOWN}}, {"NumaGroupAssignment", {0x84, UNKNOWN | POINTER}}, {"BgContext", {0x7c, UNKNOWN | POINTER}}, {"ResumePages", {0x74, UNKNOWN}}, {"Reserved", {0x50, UNKNOWN}}, {"LoaderPerformanceData", {0x54, _LOADER_PERFORMANCE_DATA | POINTER}}, {"TpmBootEntropyResult", {0x98, _TPM_BOOT_ENTROPY_LDR_RESULT}}, {"IoPortAccessSupported", {0x50, UNKNOWN}}, {"WmdTestResult", {0x60, UNKNOWN | POINTER}}, {"Profile", {0x4, _PROFILE_PARAMETER_BLOCK}}, {"NetworkLoaderBlock", {0x34, _NETWORK_LOADER_BLOCK | POINTER}}, {"EmInfFileSize", {0x18, UNKNOWN}}, {"DrvDBSize", {0x30, UNKNOWN}}, {"LastBootShutdown", {0x50, UNKNOWN}}, {"AcpiTable", {0x48, UNKNOWN | POINTER}}, {"ProcessorCounterFrequency", {0xe0, UNKNOWN}}, {"MemoryCachingRequirements", {0x94, UNKNOWN | POINTER}}, {"LastBootSucceeded", {0x50, UNKNOWN}}, {"BootApplicationPersistentData", {0x58, _LIST_ENTRY}}, {"AcpiTableSize", {0x4c, UNKNOWN}}, {"BootIdentifier", {0x64, _GUID}}, {"AttachedHives", {0x88, _LIST_ENTRY}}, {"SMBiosEPSHeader", {0x28, UNKNOWN | POINTER}}, {"EmInfFileImage", {0x14, UNKNOWN | POINTER}}, {"Size", {0x0, UNKNOWN}}, }, { // __unnamed_1ef2 {"LongFlags", {0x0, UNKNOWN}}, {"SubsectionFlags", {0x0, _MMSUBSECTION_FLAGS}}, }, { // _IO_SECURITY_CONTEXT {"DesiredAccess", {0x8, UNKNOWN}}, {"FullCreateOptions", {0xc, UNKNOWN}}, {"AccessState", {0x4, _ACCESS_STATE | POINTER}}, {"SecurityQos", {0x0, _SECURITY_QUALITY_OF_SERVICE | POINTER}}, }, { // _EVENT_FILTER_HEADER {"Reserved", {0x3, UNKNOWN}}, {"InstanceId", {0x8, UNKNOWN}}, {"NextOffset", {0x14, UNKNOWN}}, {"Version", {0x2, UNKNOWN}}, {"Id", {0x0, UNKNOWN}}, {"Size", {0x10, UNKNOWN}}, }, { // _KALPC_SECTION {"OwnerProcess", {0x10, _EPROCESS | POINTER}}, {"SectionObject", {0x0, UNKNOWN | POINTER}}, {"NumberOfRegions", {0x1c, UNKNOWN}}, {"HandleTable", {0x8, _ALPC_HANDLE_TABLE | POINTER}}, {"RegionListHead", {0x20, _LIST_ENTRY}}, {"OwnerPort", {0x14, _ALPC_PORT | POINTER}}, {"u1", {0x18, __unnamed_1994}}, {"SectionHandle", {0xc, UNKNOWN | POINTER}}, {"Size", {0x4, UNKNOWN}}, }, { // __unnamed_1e43 {"Priority", {0x0, UNKNOWN}}, {"Reserved1", {0x4, UNKNOWN}}, {"Reserved2", {0x8, UNKNOWN}}, }, { // __unnamed_1e45 {"Length40", {0x0, UNKNOWN}}, {"Alignment40", {0x4, UNKNOWN}}, {"MinimumAddress", {0x8, _LARGE_INTEGER}}, {"MaximumAddress", {0x10, _LARGE_INTEGER}}, }, { // __unnamed_1e47 {"Length48", {0x0, UNKNOWN}}, {"Alignment48", {0x4, UNKNOWN}}, {"MinimumAddress", {0x8, _LARGE_INTEGER}}, {"MaximumAddress", {0x10, _LARGE_INTEGER}}, }, { // __unnamed_1e49 {"Length64", {0x0, UNKNOWN}}, {"MaximumAddress", {0x10, _LARGE_INTEGER}}, {"MinimumAddress", {0x8, _LARGE_INTEGER}}, {"Alignment64", {0x4, UNKNOWN}}, }, { // _HIVE_LOAD_FAILURE {"Index", {0x4, UNKNOWN}}, {"CheckRegistry2", {0xd8, __unnamed_1630}}, {"RecoverableLocations", {0x6c, UNKNOWN}}, {"Hive", {0x0, _HHIVE | POINTER}}, {"CheckKey", {0xdc, __unnamed_1632}}, {"CheckValueList", {0xec, __unnamed_1634}}, {"CheckHive1", {0x108, __unnamed_1638}}, {"RecoverData", {0x11c, __unnamed_163e}}, {"CheckBin", {0x114, __unnamed_163c}}, {"RecoverableIndex", {0x8, UNKNOWN}}, {"CheckHive", {0xfc, __unnamed_1638}}, {"Locations", {0xc, UNKNOWN}}, {"RegistryIO", {0xcc, __unnamed_162e}}, }, { // _FIRMWARE_INFORMATION_LOADER_BLOCK {"FirmwareTypeEfi", {0x0, UNKNOWN}}, {"u", {0x4, __unnamed_1c5f}}, {"Reserved", {0x0, UNKNOWN}}, }, { // _KERNEL_STACK_CONTROL {"PreviousTrapFrame", {0x0, _KTRAP_FRAME | POINTER}}, {"PreviousExceptionList", {0x0, UNKNOWN | POINTER}}, {"PreviousSegmentsPresent", {0x4, UNKNOWN}}, {"PreviousLargeStack", {0x4, UNKNOWN}}, {"StackControlFlags", {0x4, UNKNOWN}}, {"ExpandCalloutStack", {0x4, UNKNOWN}}, {"Previous", {0x8, _KERNEL_STACK_SEGMENT}}, }, { // DOCK_INTERFACE {"ProfileDepartureSetMode", {0x10, UNKNOWN | POINTER}}, {"Version", {0x2, UNKNOWN}}, {"Context", {0x4, UNKNOWN | POINTER}}, {"InterfaceReference", {0x8, UNKNOWN | POINTER}}, {"InterfaceDereference", {0xc, UNKNOWN | POINTER}}, {"ProfileDepartureUpdate", {0x14, UNKNOWN | POINTER}}, {"Size", {0x0, UNKNOWN}}, }, { // _BITMAP_RANGE {"DirtyPages", {0x18, UNKNOWN}}, {"LastDirtyPage", {0x14, UNKNOWN}}, {"Links", {0x0, _LIST_ENTRY}}, {"Bitmap", {0x1c, UNKNOWN | POINTER}}, {"FirstDirtyPage", {0x10, UNKNOWN}}, {"BasePage", {0x8, UNKNOWN}}, }, { // _TP_CALLBACK_ENVIRON_V3 {"ActivationContext", {0x14, UNKNOWN | POINTER}}, {"CallbackPriority", {0x20, UNKNOWN}}, {"Version", {0x0, UNKNOWN}}, {"CleanupGroupCancelCallback", {0xc, UNKNOWN | POINTER}}, {"u", {0x1c, __unnamed_1060}}, {"RaceDll", {0x10, UNKNOWN | POINTER}}, {"CleanupGroup", {0x8, UNKNOWN | POINTER}}, {"FinalizationCallback", {0x18, UNKNOWN | POINTER}}, {"Pool", {0x4, UNKNOWN | POINTER}}, {"Size", {0x24, UNKNOWN}}, }, { // _CONFIGURATION_COMPONENT {"AffinityMask", {0x14, UNKNOWN}}, {"Group", {0x14, UNKNOWN}}, {"Version", {0xc, UNKNOWN}}, {"Flags", {0x8, _DEVICE_FLAGS}}, {"GroupIndex", {0x16, UNKNOWN}}, {"IdentifierLength", {0x1c, UNKNOWN}}, {"Identifier", {0x20, UNKNOWN | POINTER}}, {"Type", {0x4, UNKNOWN}}, {"Revision", {0xe, UNKNOWN}}, {"ConfigurationDataLength", {0x18, UNKNOWN}}, {"Key", {0x10, UNKNOWN}}, {"Class", {0x0, UNKNOWN}}, }, { // _BUS_EXTENSION_LIST {"BusExtension", {0x4, _PI_BUS_EXTENSION | POINTER}}, {"Next", {0x0, UNKNOWN | POINTER}}, }, { // __unnamed_1ea6 {"CustomNotification", {0x0, __unnamed_1e98}}, {"BlockedDriverNotification", {0x0, __unnamed_1ea0}}, {"ProfileNotification", {0x0, __unnamed_1e9a}}, {"VetoNotification", {0x0, __unnamed_1e9e}}, {"InstallDevice", {0x0, __unnamed_1e96}}, {"TargetDevice", {0x0, __unnamed_1e94}}, {"DeviceClass", {0x0, __unnamed_1e92}}, {"PowerNotification", {0x0, __unnamed_1e9c}}, {"PowerSettingNotification", {0x0, __unnamed_1ea4}}, {"InvalidIDNotification", {0x0, __unnamed_1ea2}}, {"PropertyChangeNotification", {0x0, __unnamed_1e96}}, }, { // __unnamed_1dc5 {"StartVa", {0x0, UNKNOWN | POINTER}}, {"Flags", {0x0, _MMSECURE_FLAGS}}, }, { // __unnamed_1ea2 {"ParentId", {0x0, UNKNOWN}}, }, { // _IO_RESOURCE_DESCRIPTOR {"Spare1", {0x3, UNKNOWN}}, {"Option", {0x0, UNKNOWN}}, {"Spare2", {0x6, UNKNOWN}}, {"Flags", {0x4, UNKNOWN}}, {"ShareDisposition", {0x2, UNKNOWN}}, {"u", {0x8, __unnamed_1e4b}}, {"Type", {0x1, UNKNOWN}}, }, { // __unnamed_1ea0 {"BlockedDriverGuid", {0x0, _GUID}}, }, { // _DBGKD_SET_INTERNAL_BREAKPOINT64 {"Flags", {0x8, UNKNOWN}}, {"BreakpointAddress", {0x0, UNKNOWN}}, }, { // _KGUARDED_MUTEX {"Count", {0x0, UNKNOWN}}, {"Contention", {0x8, UNKNOWN}}, {"SpecialApcDisable", {0x1e, UNKNOWN}}, {"KernelApcDisable", {0x1c, UNKNOWN}}, {"CombinedApcDisable", {0x1c, UNKNOWN}}, {"Owner", {0x4, _KTHREAD | POINTER}}, {"Gate", {0xc, _KGATE}}, }, { // _LPCP_PORT_QUEUE {"ReceiveHead", {0x8, _LIST_ENTRY}}, {"NonPagedPortQueue", {0x0, _LPCP_NONPAGED_PORT_QUEUE | POINTER}}, {"Semaphore", {0x4, _KSEMAPHORE | POINTER}}, }, { // _HEAP_SUBSEGMENT {"BlockCount", {0x14, UNKNOWN}}, {"AggregateExchg", {0x8, _INTERLOCK_SEQ}}, {"BlockSize", {0x10, UNKNOWN}}, {"SFreeListEntry", {0x18, _SINGLE_LIST_ENTRY}}, {"Flags", {0x12, UNKNOWN}}, {"SizeIndex", {0x16, UNKNOWN}}, {"UserBlocks", {0x4, _HEAP_USERDATA_HEADER | POINTER}}, {"Lock", {0x1c, UNKNOWN}}, {"AffinityIndex", {0x17, UNKNOWN}}, {"LocalInfo", {0x0, UNKNOWN | POINTER}}, {"Alignment", {0x10, UNKNOWN}}, }, { // _PENDING_RELATIONS_LIST_ENTRY {"RelationsList", {0x20, _RELATION_LIST | POINTER}}, {"DockInterface", {0x38, DOCK_INTERFACE | POINTER}}, {"LightestSleepState", {0x34, UNKNOWN}}, {"DeviceEvent", {0x18, _PNP_DEVICE_EVENT_ENTRY | POINTER}}, {"Problem", {0x2c, UNKNOWN}}, {"WorkItem", {0x8, _WORK_QUEUE_ITEM}}, {"DeviceObject", {0x1c, _DEVICE_OBJECT | POINTER}}, {"Lock", {0x28, UNKNOWN}}, {"EjectIrp", {0x24, _IRP | POINTER}}, {"Link", {0x0, _LIST_ENTRY}}, {"ProfileChangingEject", {0x30, UNKNOWN}}, {"DisplaySafeRemovalDialog", {0x31, UNKNOWN}}, }, { // _DBGKD_GET_SET_BUS_DATA {"BusNumber", {0x4, UNKNOWN}}, {"BusDataType", {0x0, UNKNOWN}}, {"Length", {0x10, UNKNOWN}}, {"SlotNumber", {0x8, UNKNOWN}}, {"Offset", {0xc, UNKNOWN}}, }, { // __unnamed_1e4b {"Dma", {0x0, __unnamed_1e3d}}, {"Generic", {0x0, __unnamed_1e37}}, {"Memory", {0x0, __unnamed_1e37}}, {"BusNumber", {0x0, __unnamed_1e41}}, {"Memory48", {0x0, __unnamed_1e47}}, {"Memory40", {0x0, __unnamed_1e45}}, {"DevicePrivate", {0x0, __unnamed_1e3f}}, {"ConfigData", {0x0, __unnamed_1e43}}, {"Memory64", {0x0, __unnamed_1e49}}, {"Interrupt", {0x0, __unnamed_1e3b}}, {"Port", {0x0, __unnamed_1e37}}, }, { // _PROCESSOR_POWER_STATE {"PerfActionMask", {0x80, UNKNOWN}}, {"IdleTimeEntry", {0x18, UNKNOWN}}, {"PerfHistoryCount", {0x2d, UNKNOWN}}, {"ThermalConstraint", {0x2c, UNKNOWN}}, {"FFHThrottleStateInfo", {0x40, _PPM_FFH_THROTTLE_STATE_INFO}}, {"IdleTimeLast", {0x8, UNKNOWN}}, {"WmiDispatchPtr", {0x34, UNKNOWN}}, {"WmiInterfaceEnabled", {0x38, UNKNOWN}}, {"LastSysTime", {0x30, UNKNOWN}}, {"AffinityHistory", {0xc4, UNKNOWN}}, {"Hypervisor", {0x24, UNKNOWN}}, {"PerfHistorySlot", {0x2e, UNKNOWN}}, {"IdleCheck", {0x88, _PROC_IDLE_SNAP}}, {"PerfActionDpc", {0x60, _KDPC}}, {"AffinityCount", {0xc0, UNKNOWN}}, {"PerfConstraint", {0xac, _PROC_PERF_CONSTRAINT | POINTER}}, {"Load", {0xb0, _PROC_PERF_LOAD | POINTER}}, {"Domain", {0xa8, _PROC_PERF_DOMAIN | POINTER}}, {"Reserved", {0x2f, UNKNOWN}}, {"OverUtilizedHistory", {0xbc, UNKNOWN}}, {"IdleStates", {0x0, _PPM_IDLE_STATES | POINTER}}, {"PerfHistoryTotal", {0x28, UNKNOWN}}, {"PerfHistory", {0xb4, _PROC_HISTORY_ENTRY | POINTER}}, {"Utility", {0xb8, UNKNOWN}}, {"IdleTimeTotal", {0x10, UNKNOWN}}, {"PerfCheck", {0x98, _PROC_IDLE_SNAP}}, {"IdleAccounting", {0x20, _PROC_IDLE_ACCOUNTING | POINTER}}, }, { // _IO_CLIENT_EXTENSION {"ClientIdentificationAddress", {0x4, UNKNOWN | POINTER}}, {"NextExtension", {0x0, _IO_CLIENT_EXTENSION | POINTER}}, }, { // __unnamed_1c1d {"Spare1", {0x0, UNKNOWN}}, {"HardFault", {0x0, UNKNOWN}}, {"FilePointerIndex", {0x0, UNKNOWN}}, }, { // _CM_KEY_INDEX {"Count", {0x2, UNKNOWN}}, {"List", {0x4, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, }, { // __unnamed_1c1b {"Image", {0x0, UNKNOWN}}, {"HardFault", {0x0, UNKNOWN}}, {"Spare0", {0x0, UNKNOWN}}, {"FilePointerIndex", {0x0, UNKNOWN}}, }, { // _EX_PUSH_LOCK_CACHE_AWARE {"Locks", {0x0, UNKNOWN}}, }, { // _SEP_TOKEN_PRIVILEGES {"Enabled", {0x8, UNKNOWN}}, {"Present", {0x0, UNKNOWN}}, {"EnabledByDefault", {0x10, UNKNOWN}}, }, { // __unnamed_132a {"SetQuota", {0x0, __unnamed_12d3}}, {"DeviceIoControl", {0x0, __unnamed_12de}}, {"QuerySecurity", {0x0, __unnamed_12e0}}, {"ReadWriteConfig", {0x0, __unnamed_1302}}, {"QueryInterface", {0x0, __unnamed_12f8}}, {"Create", {0x0, __unnamed_12bb}}, {"SetEa", {0x0, __unnamed_12d3}}, {"Write", {0x0, __unnamed_12c5}}, {"VerifyVolume", {0x0, __unnamed_12e6}}, {"WMI", {0x0, __unnamed_1326}}, {"CreateMailslot", {0x0, __unnamed_12c3}}, {"FilterResourceRequirements", {0x0, __unnamed_1300}}, {"SetFile", {0x0, __unnamed_12cf}}, {"MountVolume", {0x0, __unnamed_12e6}}, {"FileSystemControl", {0x0, __unnamed_12d9}}, {"UsageNotification", {0x0, __unnamed_1310}}, {"Scsi", {0x0, __unnamed_12ea}}, {"WaitWake", {0x0, __unnamed_1314}}, {"QueryFile", {0x0, __unnamed_12cd}}, {"QueryDeviceText", {0x0, __unnamed_130c}}, {"CreatePipe", {0x0, __unnamed_12bf}}, {"Power", {0x0, __unnamed_1320}}, {"QueryDeviceRelations", {0x0, __unnamed_12f2}}, {"Read", {0x0, __unnamed_12c5}}, {"StartDevice", {0x0, __unnamed_1324}}, {"QueryDirectory", {0x0, __unnamed_12c9}}, {"PowerSequence", {0x0, __unnamed_1318}}, {"QueryQuota", {0x0, __unnamed_12ee}}, {"LockControl", {0x0, __unnamed_12dc}}, {"NotifyDirectory", {0x0, __unnamed_12cb}}, {"QueryEa", {0x0, __unnamed_12d1}}, {"QueryId", {0x0, __unnamed_1308}}, {"Others", {0x0, __unnamed_1328}}, {"QueryVolume", {0x0, __unnamed_12d7}}, {"SetVolume", {0x0, __unnamed_12d7}}, {"SetSecurity", {0x0, __unnamed_12e2}}, {"SetLock", {0x0, __unnamed_1304}}, {"DeviceCapabilities", {0x0, __unnamed_12fc}}, }, { // __unnamed_1742 {"NextResourceDeviceNode", {0x0, _DEVICE_NODE | POINTER}}, }, { // __unnamed_1740 {"PendingDeviceRelations", {0x0, _DEVICE_RELATIONS | POINTER}}, {"Information", {0x0, UNKNOWN | POINTER}}, {"LegacyDeviceNode", {0x0, _DEVICE_NODE | POINTER}}, }, { // __unnamed_1746 {"DockStatus", {0x0, UNKNOWN}}, {"SerialNumber", {0xc, UNKNOWN | POINTER}}, {"ListEntry", {0x4, _LIST_ENTRY}}, }, { // _HANDLE_TRACE_DB_ENTRY {"Type", {0xc, UNKNOWN}}, {"Handle", {0x8, UNKNOWN | POINTER}}, {"ClientId", {0x0, _CLIENT_ID}}, {"StackTrace", {0x10, UNKNOWN}}, }, { // _PO_IRP_QUEUE {"CurrentIrp", {0x0, _IRP | POINTER}}, {"PendingIrpList", {0x4, _IRP | POINTER}}, }, { // _IOP_FILE_OBJECT_EXTENSION {"FoIoPriorityHint", {0x20, UNKNOWN}}, {"FoExtFlags", {0x0, UNKNOWN}}, {"FoExtPerTypeExtension", {0x4, UNKNOWN}}, }, { // _DBGKD_QUERY_MEMORY {"Flags", {0x14, UNKNOWN}}, {"Reserved", {0x8, UNKNOWN}}, {"AddressSpace", {0x10, UNKNOWN}}, {"Address", {0x0, UNKNOWN}}, }, { // __unnamed_163e {"FileOffset", {0x0, UNKNOWN}}, }, { // __unnamed_163c {"Bin", {0x0, _HBIN | POINTER}}, {"CellPoint", {0x4, _HCELL | POINTER}}, }, { // _PEB {"NumberOfProcessors", {0x64, UNKNOWN}}, {"ProcessAssemblyStorageMap", {0x1fc, UNKNOWN | POINTER}}, {"OemCodePageData", {0x5c, UNKNOWN | POINTER}}, {"GdiHandleBuffer", {0xc4, UNKNOWN}}, {"TlsBitmapBits", {0x44, UNKNOWN}}, {"NtGlobalFlag", {0x68, UNKNOWN}}, {"SubSystemData", {0x14, UNKNOWN | POINTER}}, {"FlsCallback", {0x20c, UNKNOWN | POINTER}}, {"HeapTracingEnabled", {0x240, UNKNOWN}}, {"TlsExpansionBitmapBits", {0x154, UNKNOWN}}, {"ProcessHeaps", {0x90, UNKNOWN | POINTER}}, {"MaximumNumberOfHeaps", {0x8c, UNKNOWN}}, {"OSMajorVersion", {0xa4, UNKNOWN}}, {"ImageUsesLargePages", {0x3, UNKNOWN}}, {"KernelCallbackTable", {0x2c, UNKNOWN | POINTER}}, {"CritSecTracingEnabled", {0x240, UNKNOWN}}, {"FlsBitmap", {0x218, UNKNOWN | POINTER}}, {"ImageSubsystemMajorVersion", {0xb8, UNKNOWN}}, {"MinimumStackCommit", {0x208, UNKNOWN}}, {"ActivationContextData", {0x1f8, UNKNOWN | POINTER}}, {"AtlThunkSListPtr32", {0x34, UNKNOWN}}, {"ReadOnlySharedMemoryBase", {0x4c, UNKNOWN | POINTER}}, {"CSDVersion", {0x1f0, _UNICODE_STRING}}, {"SpareTracingBits", {0x240, UNKNOWN}}, {"AnsiCodePageData", {0x58, UNKNOWN | POINTER}}, {"ApiSetMap", {0x38, UNKNOWN | POINTER}}, {"SystemAssemblyStorageMap", {0x204, UNKNOWN | POINTER}}, {"AtlThunkSListPtr", {0x20, UNKNOWN | POINTER}}, {"FastPebLock", {0x1c, _RTL_CRITICAL_SECTION | POINTER}}, {"ProcessStarterHelper", {0x98, UNKNOWN | POINTER}}, {"ProcessParameters", {0x10, _RTL_USER_PROCESS_PARAMETERS | POINTER}}, {"UserSharedInfoPtr", {0x2c, UNKNOWN | POINTER}}, {"SkipPatchingUser32Forwarders", {0x3, UNKNOWN}}, {"WerRegistrationData", {0x230, UNKNOWN | POINTER}}, {"InheritedAddressSpace", {0x0, UNKNOWN}}, {"Mutant", {0x4, UNKNOWN | POINTER}}, {"HotpatchInformation", {0x50, UNKNOWN | POINTER}}, {"IFEOKey", {0x24, UNKNOWN | POINTER}}, {"ReadOnlyStaticServerData", {0x54, UNKNOWN | POINTER}}, {"ProcessUsingVEH", {0x28, UNKNOWN}}, {"BitField", {0x3, UNKNOWN}}, {"ProcessHeap", {0x18, UNKNOWN | POINTER}}, {"OSBuildNumber", {0xac, UNKNOWN}}, {"pImageHeaderHash", {0x23c, UNKNOWN | POINTER}}, {"PostProcessInitRoutine", {0x14c, UNKNOWN | POINTER}}, {"FlsBitmapBits", {0x21c, UNKNOWN}}, {"ImageSubsystemMinorVersion", {0xbc, UNKNOWN}}, {"CrossProcessFlags", {0x28, UNKNOWN}}, {"ReservedBits0", {0x28, UNKNOWN}}, {"TlsBitmap", {0x40, UNKNOWN | POINTER}}, {"IsLegacyProcess", {0x3, UNKNOWN}}, {"ReadImageFileExecOptions", {0x1, UNKNOWN}}, {"TlsExpansionBitmap", {0x150, UNKNOWN | POINTER}}, {"LoaderLock", {0xa0, _RTL_CRITICAL_SECTION | POINTER}}, {"TlsExpansionCounter", {0x3c, UNKNOWN}}, {"HeapDeCommitTotalFreeThreshold", {0x80, UNKNOWN}}, {"ProcessUsingVCH", {0x28, UNKNOWN}}, {"FlsListHead", {0x210, _LIST_ENTRY}}, {"ProcessUsingFTH", {0x28, UNKNOWN}}, {"GdiSharedHandleTable", {0x94, UNKNOWN | POINTER}}, {"AppCompatInfo", {0x1ec, UNKNOWN | POINTER}}, {"ActiveProcessAffinityMask", {0xc0, UNKNOWN}}, {"BeingDebugged", {0x2, UNKNOWN}}, {"SystemDefaultActivationContextData", {0x200, UNKNOWN | POINTER}}, {"UnicodeCaseTableData", {0x60, UNKNOWN | POINTER}}, {"SessionId", {0x1d4, UNKNOWN}}, {"pContextData", {0x238, UNKNOWN | POINTER}}, {"HeapDeCommitFreeBlockThreshold", {0x84, UNKNOWN}}, {"ProcessInitializing", {0x28, UNKNOWN}}, {"HeapSegmentCommit", {0x7c, UNKNOWN}}, {"Ldr", {0xc, _PEB_LDR_DATA | POINTER}}, {"IsImageDynamicallyRelocated", {0x3, UNKNOWN}}, {"pShimData", {0x1e8, UNKNOWN | POINTER}}, {"AppCompatFlagsUser", {0x1e0, _ULARGE_INTEGER}}, {"GdiDCAttributeList", {0x9c, UNKNOWN}}, {"OSCSDVersion", {0xae, UNKNOWN}}, {"CriticalSectionTimeout", {0x70, _LARGE_INTEGER}}, {"WerShipAssertPtr", {0x234, UNKNOWN | POINTER}}, {"ImageBaseAddress", {0x8, UNKNOWN | POINTER}}, {"AppCompatFlags", {0x1d8, _ULARGE_INTEGER}}, {"OSPlatformId", {0xb0, UNKNOWN}}, {"OSMinorVersion", {0xa8, UNKNOWN}}, {"FlsHighIndex", {0x22c, UNKNOWN}}, {"SpareBits", {0x3, UNKNOWN}}, {"SystemReserved", {0x30, UNKNOWN}}, {"NumberOfHeaps", {0x88, UNKNOWN}}, {"ImageSubsystem", {0xb4, UNKNOWN}}, {"HeapSegmentReserve", {0x78, UNKNOWN}}, {"IsProtectedProcess", {0x3, UNKNOWN}}, {"ProcessInJob", {0x28, UNKNOWN}}, {"TracingFlags", {0x240, UNKNOWN}}, }, { // _WHEA_ERROR_RECORD {"Header", {0x0, _WHEA_ERROR_RECORD_HEADER}}, {"SectionDescriptor", {0x80, UNKNOWN}}, }, { // _TPM_BOOT_ENTROPY_LDR_RESULT {"EntropyLength", {0x18, UNKNOWN}}, {"EntropyData", {0x1c, UNKNOWN}}, {"ResultStatus", {0xc, UNKNOWN}}, {"Time", {0x10, UNKNOWN}}, {"Policy", {0x0, UNKNOWN}}, {"ResultCode", {0x8, UNKNOWN}}, }, { // _PROC_IDLE_ACCOUNTING {"BucketLimits", {0x18, UNKNOWN}}, {"StateCount", {0x0, UNKNOWN}}, {"ResetCount", {0x8, UNKNOWN}}, {"State", {0x98, UNKNOWN}}, {"StartTime", {0x10, UNKNOWN}}, {"TotalTransitions", {0x4, UNKNOWN}}, }, { // _PROC_PERF_DOMAIN {"Processors", {0x2c, _PROC_PERF_CONSTRAINT | POINTER}}, {"PreviousFrequencyMhz", {0x3c, UNKNOWN}}, {"ProcessorCount", {0x38, UNKNOWN}}, {"GetFFHThrottleState", {0x1c, UNKNOWN | POINTER}}, {"ConstrainedMinPercent", {0x6c, UNKNOWN}}, {"FeedbackHandler", {0x18, UNKNOWN | POINTER}}, {"CurrentPerfContext", {0x4c, UNKNOWN}}, {"CurrentFrequency", {0x48, UNKNOWN}}, {"DesiredFrequency", {0x50, UNKNOWN}}, {"BoostPolicyHandler", {0x20, UNKNOWN | POINTER}}, {"PerfChangeTime", {0x30, UNKNOWN}}, {"CurrentFrequencyMhz", {0x40, UNKNOWN}}, {"Link", {0x0, _LIST_ENTRY}}, {"Members", {0xc, _KAFFINITY_EX}}, {"PreviousFrequency", {0x44, UNKNOWN}}, {"PerfHandler", {0x28, UNKNOWN | POINTER}}, {"MinPercent", {0x64, UNKNOWN}}, {"PerfChangeIntervalCount", {0x74, UNKNOWN}}, {"MaxPercent", {0x60, UNKNOWN}}, {"MinThrottlePercent", {0x5c, UNKNOWN}}, {"MinPerfPercent", {0x58, UNKNOWN}}, {"ConstrainedMaxPercent", {0x68, UNKNOWN}}, {"MaxFrequency", {0x54, UNKNOWN}}, {"PerfSelectionHandler", {0x24, UNKNOWN | POINTER}}, {"Master", {0x8, _KPRCB | POINTER}}, {"Coordination", {0x70, UNKNOWN}}, }, { // _EXCEPTION_REGISTRATION_RECORD {"Handler", {0x4, UNKNOWN | POINTER}}, {"Next", {0x0, _EXCEPTION_REGISTRATION_RECORD | POINTER}}, }, { // _MM_SUBSECTION_AVL_TABLE {"Unused", {0x18, UNKNOWN}}, {"NumberGenericTableElements", {0x18, UNKNOWN}}, {"DepthOfTree", {0x18, UNKNOWN}}, {"BalancedRoot", {0x0, _MMSUBSECTION_NODE}}, {"NodeHint", {0x1c, UNKNOWN | POINTER}}, }, { // _FILE_STANDARD_INFORMATION {"Directory", {0x15, UNKNOWN}}, {"EndOfFile", {0x8, _LARGE_INTEGER}}, {"AllocationSize", {0x0, _LARGE_INTEGER}}, {"DeletePending", {0x14, UNKNOWN}}, {"NumberOfLinks", {0x10, UNKNOWN}}, }, { // _DBGKM_EXCEPTION32 {"FirstChance", {0x50, UNKNOWN}}, {"ExceptionRecord", {0x0, _EXCEPTION_RECORD32}}, }, { // _ACCESS_REASONS {"Data", {0x0, UNKNOWN}}, }, { // __unnamed_1638 {"MapPoint", {0x4, UNKNOWN}}, {"BinPoint", {0x8, _HBIN | POINTER}}, {"Space", {0x0, UNKNOWN}}, }, { // _KPCR {"VdmAlert", {0x54, UNKNOWN}}, {"HalReserved", {0x94, UNKNOWN}}, {"KernelReserved", {0x58, UNKNOWN}}, {"SetMemberCopy", {0x14, UNKNOWN}}, {"Prcb", {0x20, _KPRCB | POINTER}}, {"IRR", {0x28, UNKNOWN}}, {"KernelReserved2", {0xdc, UNKNOWN}}, {"IDR", {0x30, UNKNOWN}}, {"PrcbData", {0x120, _KPRCB}}, {"SelfPcr", {0x1c, _KPCR | POINTER}}, {"InterruptMode", {0xd4, UNKNOWN}}, {"TSS", {0x40, _KTSS | POINTER}}, {"ContextSwitches", {0x10, UNKNOWN}}, {"Spare0", {0x52, UNKNOWN}}, {"MajorVersion", {0x44, UNKNOWN}}, {"GDT", {0x3c, _KGDTENTRY | POINTER}}, {"MinorVersion", {0x46, UNKNOWN}}, {"Used_ExceptionList", {0x0, _EXCEPTION_REGISTRATION_RECORD | POINTER}}, {"StallScaleFactor", {0x4c, UNKNOWN}}, {"TssCopy", {0xc, UNKNOWN | POINTER}}, {"Spare2", {0x8, UNKNOWN | POINTER}}, {"Number", {0x51, UNKNOWN}}, {"NtTib", {0x0, _NT_TIB}}, {"Used_StackBase", {0x4, UNKNOWN | POINTER}}, {"SpareUnused", {0x50, UNKNOWN}}, {"Used_Self", {0x18, UNKNOWN | POINTER}}, {"IrrActive", {0x2c, UNKNOWN}}, {"Irql", {0x24, UNKNOWN}}, {"SecondLevelCacheAssociativity", {0x53, UNKNOWN}}, {"SecondLevelCacheSize", {0x90, UNKNOWN}}, {"KdVersionBlock", {0x34, UNKNOWN | POINTER}}, {"IDT", {0x38, _KIDTENTRY | POINTER}}, {"Spare1", {0xd8, UNKNOWN}}, {"SetMember", {0x48, UNKNOWN}}, }, { // _KTRANSACTION_HISTORY {"RecordType", {0x0, UNKNOWN}}, {"Payload", {0x4, UNKNOWN}}, }, { // __unnamed_1634 {"Cell", {0x8, UNKNOWN}}, {"Index", {0x4, UNKNOWN}}, {"List", {0x0, _CELL_DATA | POINTER}}, {"CellPoint", {0xc, _CELL_DATA | POINTER}}, }, { // __unnamed_1632 {"Cell", {0x0, UNKNOWN}}, {"Index", {0xc, UNKNOWN}}, {"RootPoint", {0x8, UNKNOWN | POINTER}}, {"CellPoint", {0x4, _CELL_DATA | POINTER}}, }, { // _POOL_TRACKER_TABLE {"NonPagedBytes", {0xc, UNKNOWN}}, {"NonPagedFrees", {0x8, UNKNOWN}}, {"Key", {0x0, UNKNOWN}}, {"PagedFrees", {0x14, UNKNOWN}}, {"PagedBytes", {0x18, UNKNOWN}}, {"PagedAllocs", {0x10, UNKNOWN}}, {"NonPagedAllocs", {0x4, UNKNOWN}}, }, { // __unnamed_1630 {"CheckStack", {0x0, UNKNOWN | POINTER}}, }, { // __unnamed_1320 {"State", {0x8, _POWER_STATE}}, {"Type", {0x4, UNKNOWN}}, {"SystemContext", {0x0, UNKNOWN}}, {"ShutdownType", {0xc, UNKNOWN}}, {"SystemPowerStateContext", {0x0, _SYSTEM_POWER_STATE_CONTEXT}}, }, { // _IO_STACK_LOCATION {"Control", {0x3, UNKNOWN}}, {"CompletionRoutine", {0x1c, UNKNOWN | POINTER}}, {"Flags", {0x2, UNKNOWN}}, {"Context", {0x20, UNKNOWN | POINTER}}, {"Parameters", {0x4, __unnamed_132a}}, {"DeviceObject", {0x14, _DEVICE_OBJECT | POINTER}}, {"MinorFunction", {0x1, UNKNOWN}}, {"FileObject", {0x18, _FILE_OBJECT | POINTER}}, {"MajorFunction", {0x0, UNKNOWN}}, }, { // __unnamed_1324 {"AllocatedResources", {0x0, _CM_RESOURCE_LIST | POINTER}}, {"AllocatedResourcesTranslated", {0x4, _CM_RESOURCE_LIST | POINTER}}, }, { // __unnamed_1326 {"Buffer", {0xc, UNKNOWN | POINTER}}, {"ProviderId", {0x0, UNKNOWN}}, {"BufferSize", {0x8, UNKNOWN}}, {"DataPath", {0x4, UNKNOWN | POINTER}}, }, { // __unnamed_1328 {"Argument4", {0xc, UNKNOWN | POINTER}}, {"Argument2", {0x4, UNKNOWN | POINTER}}, {"Argument3", {0x8, UNKNOWN | POINTER}}, {"Argument1", {0x0, UNKNOWN | POINTER}}, }, { // _MMWSLE_NONDIRECT_HASH {"Index", {0x4, UNKNOWN}}, {"Key", {0x0, UNKNOWN | POINTER}}, }, { // _EXCEPTION_RECORD64 {"ExceptionAddress", {0x10, UNKNOWN}}, {"__unusedAlignment", {0x1c, UNKNOWN}}, {"NumberParameters", {0x18, UNKNOWN}}, {"ExceptionRecord", {0x8, UNKNOWN}}, {"ExceptionCode", {0x0, UNKNOWN}}, {"ExceptionFlags", {0x4, UNKNOWN}}, {"ExceptionInformation", {0x20, UNKNOWN}}, }, { // _ETW_PROVIDER_TABLE_ENTRY {"State", {0x4, UNKNOWN}}, {"Caller", {0xc, UNKNOWN | POINTER}}, {"RefCount", {0x0, UNKNOWN}}, {"RegEntry", {0x8, _ETW_REG_ENTRY | POINTER}}, }, { // _EX_RUNDOWN_REF {"Count", {0x0, UNKNOWN}}, {"Ptr", {0x0, UNKNOWN | POINTER}}, }, { // _HBIN {"FileOffset", {0x4, UNKNOWN}}, {"TimeStamp", {0x14, _LARGE_INTEGER}}, {"Spare", {0x1c, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, {"Reserved1", {0xc, UNKNOWN}}, {"Size", {0x8, UNKNOWN}}, }, { // _PI_RESOURCE_ARBITER_ENTRY {"ResourceType", {0x8, UNKNOWN}}, {"DeviceNode", {0x10, _DEVICE_NODE | POINTER}}, {"ActiveArbiterList", {0x2c, _LIST_ENTRY}}, {"State", {0x34, UNKNOWN}}, {"BestResourceList", {0x1c, _LIST_ENTRY}}, {"ResourcesChanged", {0x35, UNKNOWN}}, {"DeviceArbiterList", {0x0, _LIST_ENTRY}}, {"ResourceList", {0x14, _LIST_ENTRY}}, {"ArbiterInterface", {0xc, _ARBITER_INTERFACE | POINTER}}, {"BestConfig", {0x24, _LIST_ENTRY}}, }, { // _EX_PUSH_LOCK_WAIT_BLOCK {"WakeEvent", {0x0, _KEVENT}}, {"Last", {0x14, _EX_PUSH_LOCK_WAIT_BLOCK | POINTER}}, {"Next", {0x10, _EX_PUSH_LOCK_WAIT_BLOCK | POINTER}}, {"Flags", {0x20, UNKNOWN}}, {"ShareCount", {0x1c, UNKNOWN}}, {"Previous", {0x18, _EX_PUSH_LOCK_WAIT_BLOCK | POINTER}}, }, { // __unnamed_12bf {"ShareAccess", {0xa, UNKNOWN}}, {"Reserved", {0x8, UNKNOWN}}, {"SecurityContext", {0x0, _IO_SECURITY_CONTEXT | POINTER}}, {"Options", {0x4, UNKNOWN}}, {"Parameters", {0xc, _NAMED_PIPE_CREATE_PARAMETERS | POINTER}}, }, { // __unnamed_12bb {"ShareAccess", {0xa, UNKNOWN}}, {"EaLength", {0xc, UNKNOWN}}, {"SecurityContext", {0x0, _IO_SECURITY_CONTEXT | POINTER}}, {"Options", {0x4, UNKNOWN}}, {"FileAttributes", {0x8, UNKNOWN}}, }, { // _CLIENT_ID64 {"UniqueProcess", {0x0, UNKNOWN}}, {"UniqueThread", {0x8, UNKNOWN}}, }, { // _MM_PAGE_ACCESS_INFO_FLAGS {"Private", {0x0, __unnamed_1c1d}}, {"File", {0x0, __unnamed_1c1b}}, }, { // __unnamed_1884 {"FileObject", {0x0, _FILE_OBJECT | POINTER}}, }, { // __unnamed_2215 {"UseLookaside", {0x0, UNKNOWN}}, {"NodeSize", {0x0, UNKNOWN}}, }, { // __unnamed_1886 {"SharedCacheMap", {0x0, _SHARED_CACHE_MAP | POINTER}}, }, { // __unnamed_2193 {"FirstMappedVa", {0x0, UNKNOWN | POINTER}}, {"ImageInformation", {0x0, _MI_SECTION_IMAGE_INFORMATION | POINTER}}, }, { // _DIAGNOSTIC_BUFFER {"ReasonOffset", {0x14, UNKNOWN}}, {"ProcessId", {0xc, UNKNOWN}}, {"DevicePathOffset", {0xc, UNKNOWN}}, {"ProcessImageNameOffset", {0x8, UNKNOWN}}, {"ServiceTag", {0x10, UNKNOWN}}, {"DeviceDescriptionOffset", {0x8, UNKNOWN}}, {"CallerType", {0x4, UNKNOWN}}, {"Size", {0x0, UNKNOWN}}, }, { // _IO_MINI_COMPLETION_PACKET_USER {"IoStatus", {0x14, UNKNOWN}}, {"Context", {0x20, UNKNOWN | POINTER}}, {"KeyContext", {0xc, UNKNOWN | POINTER}}, {"ApcContext", {0x10, UNKNOWN | POINTER}}, {"PacketType", {0x8, UNKNOWN}}, {"IoStatusInformation", {0x18, UNKNOWN}}, {"ListEntry", {0x0, _LIST_ENTRY}}, {"MiniPacketCallback", {0x1c, UNKNOWN | POINTER}}, {"Allocated", {0x24, UNKNOWN}}, }, { // _IRP {"Overlay", {0x30, __unnamed_12a7}}, {"CancelRoutine", {0x38, UNKNOWN | POINTER}}, {"RequestorMode", {0x20, UNKNOWN}}, {"MdlAddress", {0x4, _MDL | POINTER}}, {"StackCount", {0x22, UNKNOWN}}, {"UserIosb", {0x28, _IO_STATUS_BLOCK | POINTER}}, {"AllocationFlags", {0x27, UNKNOWN}}, {"ApcEnvironment", {0x26, UNKNOWN}}, {"AssociatedIrp", {0xc, __unnamed_12a0}}, {"Tail", {0x40, __unnamed_12b4}}, {"UserEvent", {0x2c, _KEVENT | POINTER}}, {"Flags", {0x8, UNKNOWN}}, {"CancelIrql", {0x25, UNKNOWN}}, {"PendingReturned", {0x21, UNKNOWN}}, {"Cancel", {0x24, UNKNOWN}}, {"UserBuffer", {0x3c, UNKNOWN | POINTER}}, {"IoStatus", {0x18, _IO_STATUS_BLOCK}}, {"ThreadListEntry", {0x10, _LIST_ENTRY}}, {"Type", {0x0, UNKNOWN}}, {"CurrentLocation", {0x23, UNKNOWN}}, {"Size", {0x2, UNKNOWN}}, }, { // _CM_KEY_HASH_TABLE_ENTRY {"Owner", {0x4, _KTHREAD | POINTER}}, {"Lock", {0x0, _EX_PUSH_LOCK}}, {"Entry", {0x8, _CM_KEY_HASH | POINTER}}, }, { // _iobuf {"_flag", {0xc, UNKNOWN}}, {"_base", {0x8, UNKNOWN | POINTER}}, {"_tmpfname", {0x1c, UNKNOWN | POINTER}}, {"_file", {0x10, UNKNOWN}}, {"_bufsiz", {0x18, UNKNOWN}}, {"_cnt", {0x4, UNKNOWN}}, {"_charbuf", {0x14, UNKNOWN}}, {"_ptr", {0x0, UNKNOWN | POINTER}}, }, { // _PHYSICAL_MEMORY_DESCRIPTOR {"NumberOfPages", {0x4, UNKNOWN}}, {"Run", {0x8, UNKNOWN}}, {"NumberOfRuns", {0x0, UNKNOWN}}, }, { // _ETW_WMITRACE_WORK {"Level", {0x2c, UNKNOWN}}, {"MaximumFileSize", {0xcc, UNKNOWN}}, {"MinBuffers", {0xd0, UNKNOWN}}, {"Mode", {0xdc, UNKNOWN}}, {"LoggerName", {0x8, UNKNOWN}}, {"Status", {0xe8, UNKNOWN}}, {"MaxBuffers", {0xd4, UNKNOWN}}, {"LoggerId", {0x0, UNKNOWN}}, {"MatchAny", {0x8, UNKNOWN}}, {"FileName", {0x49, UNKNOWN}}, {"MatchAll", {0x10, UNKNOWN}}, {"Guid", {0x1c, _GUID}}, {"EnableProperty", {0x18, UNKNOWN}}, {"FlushTimer", {0xe0, UNKNOWN}}, {"BufferSize", {0xd8, UNKNOWN}}, }, { // _CURDIR {"DosPath", {0x0, _UNICODE_STRING}}, {"Handle", {0x8, UNKNOWN | POINTER}}, }, { // __unnamed_195e {"s1", {0x0, __unnamed_195c}}, {"Length", {0x0, UNKNOWN}}, }, { // __unnamed_195c {"TotalLength", {0x2, UNKNOWN}}, {"DataLength", {0x0, UNKNOWN}}, }, { // _CM_PARTIAL_RESOURCE_LIST {"Count", {0x4, UNKNOWN}}, {"Version", {0x0, UNKNOWN}}, {"PartialDescriptors", {0x8, UNKNOWN}}, {"Revision", {0x2, UNKNOWN}}, }, { // _VI_DEADLOCK_THREAD {"CurrentSpinNode", {0x4, _VI_DEADLOCK_NODE | POINTER}}, {"Thread", {0x0, _KTHREAD | POINTER}}, {"NodeCount", {0x14, UNKNOWN}}, {"PagingCount", {0x18, UNKNOWN}}, {"FreeListEntry", {0xc, _LIST_ENTRY}}, {"ThreadUsesEresources", {0x1c, UNKNOWN}}, {"ListEntry", {0xc, _LIST_ENTRY}}, {"CurrentOtherNode", {0x8, _VI_DEADLOCK_NODE | POINTER}}, }, { // __unnamed_188a {"Reason", {0x0, UNKNOWN}}, }, { // __unnamed_188c {"Read", {0x0, __unnamed_1884}}, {"Write", {0x0, __unnamed_1886}}, {"Event", {0x0, __unnamed_1888}}, {"Notification", {0x0, __unnamed_188a}}, }, { // _DBGKD_READ_WRITE_IO_EXTENDED64 {"BusNumber", {0x8, UNKNOWN}}, {"DataValue", {0x18, UNKNOWN}}, {"InterfaceType", {0x4, UNKNOWN}}, {"DataSize", {0x0, UNKNOWN}}, {"IoAddress", {0x10, UNKNOWN}}, {"AddressSpace", {0xc, UNKNOWN}}, }, { // __unnamed_219c {"Spare", {0x0, UNKNOWN}}, {"MissedEtwRegistration", {0x0, UNKNOWN}}, }, { // __unnamed_219e {"Whole", {0x0, UNKNOWN}}, {"Flags", {0x0, __unnamed_219c}}, }, { // _DBGKD_CONTINUE {"ContinueStatus", {0x0, UNKNOWN}}, }, { // _STRING {"Buffer", {0x4, UNKNOWN | POINTER}}, {"Length", {0x0, UNKNOWN}}, {"MaximumLength", {0x2, UNKNOWN}}, }, { // __unnamed_12b4 {"Apc", {0x0, _KAPC}}, {"CompletionKey", {0x0, UNKNOWN | POINTER}}, {"Overlay", {0x0, __unnamed_12b2}}, }, { // _MMSUPPORT {"Flags", {0x68, _MMSUPPORT_FLAGS}}, {"AccessLog", {0x8, UNKNOWN | POINTER}}, {"RepurposeCount", {0x60, UNKNOWN}}, {"MaximumWorkingSetSize", {0x3c, UNKNOWN}}, {"ActualWslePages", {0x44, UNKNOWN}}, {"ExitGate", {0x4, _KGATE | POINTER}}, {"WorkingSetPrivateSize", {0x38, UNKNOWN}}, {"WorkingSetMutex", {0x0, _EX_PUSH_LOCK}}, {"MinimumWorkingSetSize", {0x30, UNKNOWN}}, {"PageFaultCount", {0x5c, UNKNOWN}}, {"PeakWorkingSetSize", {0x4c, UNKNOWN}}, {"Spare", {0x64, UNKNOWN}}, {"VmWorkingSetList", {0x54, _MMWSL | POINTER}}, {"HardFaultCount", {0x50, UNKNOWN}}, {"WorkingSetExpansionLinks", {0xc, _LIST_ENTRY}}, {"AgeDistribution", {0x14, UNKNOWN}}, {"LastTrimStamp", {0x5a, UNKNOWN}}, {"WorkingSetSizeOverhead", {0x48, UNKNOWN}}, {"NextPageColor", {0x58, UNKNOWN}}, {"WorkingSetSize", {0x34, UNKNOWN}}, {"ChargedWslePages", {0x40, UNKNOWN}}, }, { // __unnamed_12b2 {"AuxiliaryBuffer", {0x14, UNKNOWN | POINTER}}, {"Thread", {0x10, _ETHREAD | POINTER}}, {"OriginalFileObject", {0x24, _FILE_OBJECT | POINTER}}, {"DeviceQueueEntry", {0x0, _KDEVICE_QUEUE_ENTRY}}, {"PacketType", {0x20, UNKNOWN}}, {"CurrentStackLocation", {0x20, _IO_STACK_LOCATION | POINTER}}, {"ListEntry", {0x18, _LIST_ENTRY}}, {"DriverContext", {0x0, UNKNOWN}}, }, { // __unnamed_2285 {"Active", {0x0, UNKNOWN}}, {"OnlyTryAcquireUsed", {0x0, UNKNOWN}}, {"Whole", {0x0, UNKNOWN}}, {"ReleasedOutOfOrder", {0x0, UNKNOWN}}, {"SequenceNumber", {0x0, UNKNOWN}}, }, { // _ARBITER_CONFLICT_INFO {"OwningObject", {0x0, _DEVICE_OBJECT | POINTER}}, {"End", {0x10, UNKNOWN}}, {"Start", {0x8, UNKNOWN}}, }, { // _POOL_HEADER {"AllocatorBackTraceIndex", {0x4, UNKNOWN}}, {"PoolType", {0x2, UNKNOWN}}, {"PoolTagHash", {0x6, UNKNOWN}}, {"PreviousSize", {0x0, UNKNOWN}}, {"BlockSize", {0x2, UNKNOWN}}, {"PoolTag", {0x4, UNKNOWN}}, {"Ulong1", {0x0, UNKNOWN}}, {"PoolIndex", {0x0, UNKNOWN}}, }, { // _VF_POOL_TRACE {"StackTrace", {0xc, UNKNOWN}}, {"Size", {0x4, UNKNOWN}}, {"Thread", {0x8, _ETHREAD | POINTER}}, {"Address", {0x0, UNKNOWN | POINTER}}, }, { // _KUSER_SHARED_DATA {"TscQpcSpareFlag", {0x2ed, UNKNOWN}}, {"DbgInstallerDetectEnabled", {0x2f0, UNKNOWN}}, {"SystemDllWowRelocation", {0x3d8, UNKNOWN}}, {"ImageNumberHigh", {0x2e, UNKNOWN}}, {"SystemExpirationDate", {0x2c8, _LARGE_INTEGER}}, {"MaxStackTraceDepth", {0x238, UNKNOWN}}, {"TickCountLowDeprecated", {0x0, UNKNOWN}}, {"AppCompatFlag", {0x3cc, UNKNOWN}}, {"SystemCall", {0x300, UNKNOWN}}, {"ComPlusPackage", {0x2e0, UNKNOWN}}, {"ProcessorFeatures", {0x274, UNKNOWN}}, {"KdDebuggerEnabled", {0x2d4, UNKNOWN}}, {"ReservedTickCountOverlay", {0x320, UNKNOWN}}, {"SystemCallReturn", {0x304, UNKNOWN}}, {"TickCountPad", {0x32c, UNKNOWN}}, {"LangGenerationCount", {0x3a4, UNKNOWN}}, {"ImageFileExecutionOptions", {0x3a0, UNKNOWN}}, {"TscQpcBias", {0x3b8, UNKNOWN}}, {"DbgVirtEnabled", {0x2f0, UNKNOWN}}, {"InterruptTime", {0x8, _KSYSTEM_TIME}}, {"DbgSystemDllRelocated", {0x2f0, UNKNOWN}}, {"DismountCount", {0x2dc, UNKNOWN}}, {"Wow64SharedInformation", {0x340, UNKNOWN}}, {"AlternativeArchitecture", {0x2c0, UNKNOWN}}, {"NtSystemRoot", {0x30, UNKNOWN}}, {"NXSupportPolicy", {0x2d5, UNKNOWN}}, {"UserModeGlobalLogger", {0x380, UNKNOWN}}, {"AltArchitecturePad", {0x2c4, UNKNOWN}}, {"DbgSEHValidationEnabled", {0x2f0, UNKNOWN}}, {"ProductTypeIsValid", {0x268, UNKNOWN}}, {"TestRetInstruction", {0x2f8, UNKNOWN}}, {"SafeBootMode", {0x2ec, UNKNOWN}}, {"SystemDllNativeRelocation", {0x3d0, UNKNOWN}}, {"NumberOfPhysicalPages", {0x2e8, UNKNOWN}}, {"ConsoleSessionForegroundProcessId", {0x338, UNKNOWN}}, {"Cookie", {0x330, UNKNOWN}}, {"XStatePad", {0x3dc, UNKNOWN}}, {"TscQpcPad", {0x2ee, UNKNOWN}}, {"TimeZoneId", {0x240, UNKNOWN}}, {"LargePageMinimum", {0x244, UNKNOWN}}, {"SystemTime", {0x14, _KSYSTEM_TIME}}, {"ActiveGroupCount", {0x3c4, UNKNOWN}}, {"SuiteMask", {0x2d0, UNKNOWN}}, {"DataFlagsPad", {0x2f4, UNKNOWN}}, {"DbgErrorPortPresent", {0x2f0, UNKNOWN}}, {"TimeZoneBias", {0x20, _KSYSTEM_TIME}}, {"SpareBits", {0x2f0, UNKNOWN}}, {"NtProductType", {0x264, UNKNOWN}}, {"XState", {0x3e0, _XSTATE_CONFIGURATION}}, {"CryptoExponent", {0x23c, UNKNOWN}}, {"TickCount", {0x320, _KSYSTEM_TIME}}, {"DbgDynProcessorEnabled", {0x2f0, UNKNOWN}}, {"TickCountQuad", {0x320, UNKNOWN}}, {"ActiveConsoleId", {0x2d8, UNKNOWN}}, {"ImageNumberLow", {0x2c, UNKNOWN}}, {"TickCountMultiplier", {0x4, UNKNOWN}}, {"SystemCallPad", {0x308, UNKNOWN}}, {"TimeSlip", {0x2bc, UNKNOWN}}, {"TscQpcEnabled", {0x2ed, UNKNOWN}}, {"TscQpcShift", {0x2ed, UNKNOWN}}, {"AitSamplingValue", {0x3c8, UNKNOWN}}, {"DbgElevationEnabled", {0x2f0, UNKNOWN}}, {"LastSystemRITEventTickCount", {0x2e4, UNKNOWN}}, {"TscQpcData", {0x2ed, UNKNOWN}}, {"NtMinorVersion", {0x270, UNKNOWN}}, {"SharedDataFlags", {0x2f0, UNKNOWN}}, {"InterruptTimeBias", {0x3b0, UNKNOWN}}, {"NtMajorVersion", {0x26c, UNKNOWN}}, {"CookiePad", {0x334, UNKNOWN}}, {"Reserved5", {0x3a8, UNKNOWN}}, {"Reserved4", {0x3c6, UNKNOWN}}, {"ActiveProcessorCount", {0x3c0, UNKNOWN}}, {"Reserved1", {0x2b4, UNKNOWN}}, {"Reserved3", {0x2b8, UNKNOWN}}, {"Reserved2", {0x248, UNKNOWN}}, }, { // _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_VALIDBITS {"AsUCHAR", {0x0, UNKNOWN}}, {"FRUId", {0x0, UNKNOWN}}, {"Reserved", {0x0, UNKNOWN}}, {"FRUText", {0x0, UNKNOWN}}, }, { // _ETW_BUFFER_HANDLE {"BufferFastRef", {0x4, _EX_FAST_REF | POINTER}}, {"TraceBuffer", {0x0, _WMI_BUFFER_HEADER | POINTER}}, }, { // _IMAGE_DOS_HEADER {"e_cblp", {0x2, UNKNOWN}}, {"e_crlc", {0x6, UNKNOWN}}, {"e_ovno", {0x1a, UNKNOWN}}, {"e_minalloc", {0xa, UNKNOWN}}, {"e_csum", {0x12, UNKNOWN}}, {"e_cparhdr", {0x8, UNKNOWN}}, {"e_cp", {0x4, UNKNOWN}}, {"e_cs", {0x16, UNKNOWN}}, {"e_maxalloc", {0xc, UNKNOWN}}, {"e_lfarlc", {0x18, UNKNOWN}}, {"e_oemid", {0x24, UNKNOWN}}, {"e_lfanew", {0x3c, UNKNOWN}}, {"e_magic", {0x0, UNKNOWN}}, {"e_oeminfo", {0x26, UNKNOWN}}, {"e_res2", {0x28, UNKNOWN}}, {"e_res", {0x1c, UNKNOWN}}, {"e_sp", {0x10, UNKNOWN}}, {"e_ss", {0xe, UNKNOWN}}, {"e_ip", {0x14, UNKNOWN}}, }, { // _ALPC_COMPLETION_LIST_HEADER {"ListOffset", {0xc, UNKNOWN}}, {"StartMagic", {0x0, UNKNOWN}}, {"TotalSize", {0x8, UNKNOWN}}, {"ReturnCount", {0x180, UNKNOWN}}, {"LastMessageId", {0x88, UNKNOWN}}, {"ListSize", {0x10, UNKNOWN}}, {"LastCallbackId", {0x8c, UNKNOWN}}, {"PostCount", {0x100, UNKNOWN}}, {"LogSequenceNumber", {0x200, UNKNOWN}}, {"EndMagic", {0x288, UNKNOWN}}, {"State", {0x80, _ALPC_COMPLETION_LIST_STATE}}, {"DataOffset", {0x1c, UNKNOWN}}, {"BitmapOffset", {0x14, UNKNOWN}}, {"AttributeSize", {0x28, UNKNOWN}}, {"BitmapSize", {0x18, UNKNOWN}}, {"DataSize", {0x20, UNKNOWN}}, {"UserLock", {0x280, _RTL_SRWLOCK}}, {"AttributeFlags", {0x24, UNKNOWN}}, }, { // _AUTHZBASEP_SECURITY_ATTRIBUTES_INFORMATION {"WorkingSecurityAttributesList", {0x10, _LIST_ENTRY}}, {"WorkingSecurityAttributeCount", {0xc, UNKNOWN}}, {"SecurityAttributeCount", {0x0, UNKNOWN}}, {"SecurityAttributesList", {0x4, _LIST_ENTRY}}, }, { // _TEB_ACTIVE_FRAME_CONTEXT {"FrameName", {0x4, UNKNOWN | POINTER}}, {"Flags", {0x0, UNKNOWN}}, }, { // _HHIVE {"Storage", {0x74, UNKNOWN}}, {"DirtyVector", {0x2c, _RTL_BITMAP}}, {"DirtyFlag", {0x46, UNKNOWN}}, {"StorageTypeCount", {0x6c, UNKNOWN}}, {"HiveLoadFailure", {0x24, UNKNOWN | POINTER}}, {"Allocate", {0xc, UNKNOWN | POINTER}}, {"Flat", {0x44, UNKNOWN}}, {"FileRead", {0x1c, UNKNOWN | POINTER}}, {"ReleaseCellRoutine", {0x8, UNKNOWN | POINTER}}, {"Free", {0x10, UNKNOWN | POINTER}}, {"CurrentLog", {0x5c, UNKNOWN}}, {"RefreshCount", {0x68, UNKNOWN}}, {"HvUsedCellsUse", {0x50, UNKNOWN}}, {"DirtyAlloc", {0x38, UNKNOWN}}, {"DirtyCount", {0x34, UNKNOWN}}, {"LogSize", {0x60, UNKNOWN}}, {"FileFlush", {0x20, UNKNOWN | POINTER}}, {"HvBinHeadersUse", {0x48, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, {"BaseBlock", {0x28, _HBASE_BLOCK | POINTER}}, {"FileSetSize", {0x14, UNKNOWN | POINTER}}, {"FileWrite", {0x18, UNKNOWN | POINTER}}, {"HvFreeCellsUse", {0x4c, UNKNOWN}}, {"GetCellRoutine", {0x4, UNKNOWN | POINTER}}, {"BaseBlockAlloc", {0x3c, UNKNOWN}}, {"Cluster", {0x40, UNKNOWN}}, {"ReadOnly", {0x45, UNKNOWN}}, {"Version", {0x70, UNKNOWN}}, {"HiveFlags", {0x58, UNKNOWN}}, {"CmUsedCellsUse", {0x54, UNKNOWN}}, }, { // _DUMP_STACK_CONTEXT {"DumpPointers", {0x78, UNKNOWN | POINTER}}, {"ProgMsg", {0x94, _STRING}}, {"DoneMsg", {0x9c, _STRING}}, {"UsageType", {0xa8, UNKNOWN}}, {"Init", {0x0, _DUMP_INITIALIZATION_CONTEXT}}, {"PartitionOffset", {0x70, _LARGE_INTEGER}}, {"FileObject", {0xa4, UNKNOWN | POINTER}}, {"PointersLength", {0x7c, UNKNOWN}}, {"ModulePrefix", {0x80, UNKNOWN | POINTER}}, {"DriverList", {0x84, _LIST_ENTRY}}, {"InitMsg", {0x8c, _STRING}}, }, { // _KQUEUE {"CurrentCount", {0x18, UNKNOWN}}, {"Header", {0x0, _DISPATCHER_HEADER}}, {"MaximumCount", {0x1c, UNKNOWN}}, {"ThreadListHead", {0x20, _LIST_ENTRY}}, {"EntryListHead", {0x10, _LIST_ENTRY}}, }, { // _EVENT_DESCRIPTOR {"Task", {0x6, UNKNOWN}}, {"Keyword", {0x8, UNKNOWN}}, {"Level", {0x4, UNKNOWN}}, {"Version", {0x2, UNKNOWN}}, {"Opcode", {0x5, UNKNOWN}}, {"Id", {0x0, UNKNOWN}}, {"Channel", {0x3, UNKNOWN}}, }, { // _THREAD_PERFORMANCE_DATA {"ProcessorNumber", {0x4, _PROCESSOR_NUMBER}}, {"HwCounters", {0x40, UNKNOWN}}, {"HwCountersCount", {0xc, UNKNOWN}}, {"Version", {0x2, UNKNOWN}}, {"CycleTime", {0x28, _COUNTER_READING}}, {"WaitReasonBitMap", {0x18, UNKNOWN}}, {"HardwareCounters", {0x20, UNKNOWN}}, {"UpdateCount", {0x10, UNKNOWN}}, {"ContextSwitches", {0x8, UNKNOWN}}, {"Size", {0x0, UNKNOWN}}, }, { // _DEVOBJ_EXTENSION {"ExtensionFlags", {0x10, UNKNOWN}}, {"StartIoFlags", {0x24, UNKNOWN}}, {"ProviderList", {0x34, _LIST_ENTRY}}, {"DeviceNode", {0x14, UNKNOWN | POINTER}}, {"StartIoCount", {0x1c, UNKNOWN}}, {"PowerFlags", {0x8, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"DependentList", {0x2c, _LIST_ENTRY}}, {"DeviceObject", {0x4, _DEVICE_OBJECT | POINTER}}, {"Dope", {0xc, _DEVICE_OBJECT_POWER_EXTENSION | POINTER}}, {"AttachedTo", {0x18, _DEVICE_OBJECT | POINTER}}, {"StartIoKey", {0x20, UNKNOWN}}, {"Vpb", {0x28, _VPB | POINTER}}, {"Size", {0x2, UNKNOWN}}, }, { // _CACHED_CHILD_LIST {"Count", {0x0, UNKNOWN}}, {"ValueList", {0x4, UNKNOWN}}, {"RealKcb", {0x4, _CM_KEY_CONTROL_BLOCK | POINTER}}, }, { // _MI_PAGEFILE_TRACES {"Status", {0x0, UNKNOWN}}, {"Priority", {0x4, UNKNOWN}}, {"MdlHack", {0x20, __unnamed_159e}}, {"ModifiedNoWritePages", {0x1c, UNKNOWN}}, {"CurrentTime", {0x8, _LARGE_INTEGER}}, {"ModifiedPagefilePages", {0x18, UNKNOWN}}, {"IrpPriority", {0x5, UNKNOWN}}, {"AvailablePages", {0x10, UNKNOWN}}, {"ModifiedPagesTotal", {0x14, UNKNOWN}}, }, { // __unnamed_1f63 {"Length48", {0x8, UNKNOWN}}, {"Start", {0x0, _LARGE_INTEGER}}, }, { // _SECTION_OBJECT {"RightChild", {0x10, UNKNOWN | POINTER}}, {"Parent", {0x8, UNKNOWN | POINTER}}, {"EndingVa", {0x4, UNKNOWN | POINTER}}, {"LeftChild", {0xc, UNKNOWN | POINTER}}, {"StartingVa", {0x0, UNKNOWN | POINTER}}, {"Segment", {0x14, _SEGMENT_OBJECT | POINTER}}, }, { // _HEADLESS_LOADER_BLOCK {"PciBusSegment", {0x16, UNKNOWN}}, {"Parity", {0x3, UNKNOWN}}, {"BaudRate", {0x4, UNKNOWN}}, {"IsMMIODevice", {0x30, UNKNOWN}}, {"PciDeviceId", {0x10, UNKNOWN}}, {"DataBits", {0x1, UNKNOWN}}, {"PciFlags", {0x1c, UNKNOWN}}, {"TerminalType", {0x31, UNKNOWN}}, {"PciSlotNumber", {0x18, UNKNOWN}}, {"PciFunctionNumber", {0x19, UNKNOWN}}, {"UsedBiosSettings", {0x0, UNKNOWN}}, {"PciVendorId", {0x12, UNKNOWN}}, {"PortNumber", {0x8, UNKNOWN}}, {"PciBusNumber", {0x14, UNKNOWN}}, {"StopBits", {0x2, UNKNOWN}}, {"SystemGUID", {0x20, _GUID}}, {"PortAddress", {0xc, UNKNOWN | POINTER}}, }, { // _KTIMER_TABLE {"TimerEntries", {0x40, UNKNOWN}}, {"TimerExpiry", {0x0, UNKNOWN}}, }, { // _VOLUME_CACHE_MAP {"PagesQueuedToDisk", {0x1c, UNKNOWN}}, {"DirtyPages", {0x18, UNKNOWN}}, {"Flags", {0x14, UNKNOWN}}, {"NodeByteCode", {0x2, UNKNOWN}}, {"VolumeCacheMapLinks", {0xc, _LIST_ENTRY}}, {"NodeTypeCode", {0x0, UNKNOWN}}, {"DeviceObject", {0x8, _DEVICE_OBJECT | POINTER}}, {"UseCount", {0x4, UNKNOWN}}, }, { // _PROC_PERF_LOAD {"BusyPercentage", {0x0, UNKNOWN}}, {"FrequencyPercentage", {0x1, UNKNOWN}}, }, { // _RTL_DRIVE_LETTER_CURDIR {"DosPath", {0x8, _STRING}}, {"TimeStamp", {0x4, UNKNOWN}}, {"Length", {0x2, UNKNOWN}}, {"Flags", {0x0, UNKNOWN}}, }, { // _KTMOBJECT_NAMESPACE_LINK {"Expired", {0x10, UNKNOWN}}, {"Links", {0x0, _RTL_BALANCED_LINKS}}, }, { // _WHEA_ERROR_PACKET_FLAGS {"HypervisorError", {0x0, UNKNOWN}}, {"PlatformDirectedOffline", {0x0, UNKNOWN}}, {"AsULONG", {0x0, UNKNOWN}}, {"PreviousError", {0x0, UNKNOWN}}, {"Simulated", {0x0, UNKNOWN}}, {"PlatformPfaControl", {0x0, UNKNOWN}}, {"Reserved1", {0x0, UNKNOWN}}, {"Reserved2", {0x0, UNKNOWN}}, }, { // LIST_ENTRY64 {"Flink", {0x0, UNKNOWN}}, {"Blink", {0x8, UNKNOWN}}, }, { // _CACHE_DESCRIPTOR {"LineSize", {0x2, UNKNOWN}}, {"Associativity", {0x1, UNKNOWN}}, {"Size", {0x4, UNKNOWN}}, {"Type", {0x8, UNKNOWN}}, {"Level", {0x0, UNKNOWN}}, }, { // _PPM_FFH_THROTTLE_STATE_INFO {"Initialized", {0x8, UNKNOWN}}, {"LastValue", {0x10, UNKNOWN}}, {"LastLogTickCount", {0x18, _LARGE_INTEGER}}, {"MismatchCount", {0x4, UNKNOWN}}, {"EnableLogging", {0x0, UNKNOWN}}, }, { // _MI_SYSTEM_PTE_TYPE {"Hint", {0xc, UNKNOWN}}, {"TotalFreeSystemPtes", {0x20, UNKNOWN}}, {"PteFailures", {0x28, UNKNOWN}}, {"Flags", {0x8, UNKNOWN}}, {"Bitmap", {0x0, _RTL_BITMAP}}, {"SpinLock", {0x2c, UNKNOWN}}, {"GlobalMutex", {0x2c, _KGUARDED_MUTEX | POINTER}}, {"BasePte", {0x10, _MMPTE | POINTER}}, {"Vm", {0x18, _MMSUPPORT | POINTER}}, {"FailureCount", {0x14, UNKNOWN | POINTER}}, {"CachedPteCount", {0x24, UNKNOWN}}, {"TotalSystemPtes", {0x1c, UNKNOWN}}, }, { // _ALIGNED_AFFINITY_SUMMARY {"CpuSet", {0x0, _KAFFINITY_EX}}, {"SMTSet", {0xc, _KAFFINITY_EX}}, }, { // __unnamed_1f5b {"Reserved1", {0x8, UNKNOWN}}, {"Port", {0x4, UNKNOWN}}, {"Channel", {0x0, UNKNOWN}}, }, { // __unnamed_1f5d {"Start", {0x0, UNKNOWN}}, {"Length", {0x4, UNKNOWN}}, {"Reserved", {0x8, UNKNOWN}}, }, { // __unnamed_1f5f {"DataSize", {0x0, UNKNOWN}}, {"Reserved1", {0x4, UNKNOWN}}, {"Reserved2", {0x8, UNKNOWN}}, }, { // _HMAP_ENTRY {"BlockAddress", {0x0, UNKNOWN}}, {"CmView", {0x8, _CM_VIEW_OF_FILE | POINTER}}, {"MemAlloc", {0xc, UNKNOWN}}, {"BinAddress", {0x4, UNKNOWN}}, }, { // _PHYSICAL_MEMORY_RUN {"BasePage", {0x0, UNKNOWN}}, {"PageCount", {0x4, UNKNOWN}}, }, { // _PTE_TRACKER {"Count", {0xc, UNKNOWN}}, {"CallersCaller", {0x2c, UNKNOWN | POINTER}}, {"SystemVa", {0x10, UNKNOWN | POINTER}}, {"Length", {0x1c, UNKNOWN}}, {"StartVa", {0x14, UNKNOWN | POINTER}}, {"Page", {0x20, UNKNOWN}}, {"CallingAddress", {0x28, UNKNOWN | POINTER}}, {"Mdl", {0x8, _MDL | POINTER}}, {"IoMapping", {0x24, UNKNOWN}}, {"Spare", {0x24, UNKNOWN}}, {"Offset", {0x18, UNKNOWN}}, {"CacheAttribute", {0x24, UNKNOWN}}, {"ListEntry", {0x0, _LIST_ENTRY}}, {"Matched", {0x24, UNKNOWN}}, }, { // __unnamed_1c70 {"Bits", {0x0, __unnamed_1c6e}}, {"Bytes", {0x0, __unnamed_1c68}}, }, { // _IO_DRIVER_CREATE_CONTEXT {"TxnParameters", {0xc, _TXN_PARAMETER_BLOCK | POINTER}}, {"ExtraCreateParameter", {0x4, _ECP_LIST | POINTER}}, {"DeviceObjectHint", {0x8, UNKNOWN | POINTER}}, {"Size", {0x0, UNKNOWN}}, }, { // _VF_TARGET_ALL_SHARED_EXPORT_THUNKS {"SharedExportThunks", {0x0, UNKNOWN | POINTER}}, {"PoolSharedExportThunks", {0x4, UNKNOWN | POINTER}}, {"OrderDependentSharedExportThunks", {0x8, UNKNOWN | POINTER}}, }, { // _IO_STATUS_BLOCK {"Status", {0x0, UNKNOWN}}, {"Information", {0x4, UNKNOWN}}, {"Pointer", {0x0, UNKNOWN | POINTER}}, }, { // _CM_RM {"RmListEntry", {0x0, _LIST_ENTRY}}, {"KtmRm", {0x1c, UNKNOWN | POINTER}}, {"TransactionListHead", {0x8, _LIST_ENTRY}}, {"ContainerSize", {0x28, UNKNOWN}}, {"CmHive", {0x30, _CMHIVE | POINTER}}, {"RmLock", {0x50, _ERESOURCE | POINTER}}, {"ContainerNum", {0x24, UNKNOWN}}, {"RefCount", {0x20, UNKNOWN}}, {"TmHandle", {0x10, UNKNOWN | POINTER}}, {"BaseLsn", {0x48, UNKNOWN}}, {"Tm", {0x14, UNKNOWN | POINTER}}, {"MarshallingContext", {0x38, UNKNOWN | POINTER}}, {"LogStartStatus2", {0x44, UNKNOWN}}, {"LogStartStatus1", {0x40, UNKNOWN}}, {"RmFlags", {0x3c, UNKNOWN}}, {"LogFileObject", {0x34, UNKNOWN | POINTER}}, {"RmHandle", {0x18, UNKNOWN | POINTER}}, }, { // _GENERAL_LOOKASIDE {"AllocateEx", {0x28, UNKNOWN | POINTER}}, {"FreeEx", {0x2c, UNKNOWN | POINTER}}, {"Allocate", {0x28, UNKNOWN | POINTER}}, {"LastAllocateHits", {0x3c, UNKNOWN}}, {"Type", {0x1c, UNKNOWN}}, {"Free", {0x2c, UNKNOWN | POINTER}}, {"LastTotalAllocates", {0x38, UNKNOWN}}, {"LastAllocateMisses", {0x3c, UNKNOWN}}, {"FreeMisses", {0x18, UNKNOWN}}, {"SingleListHead", {0x0, _SINGLE_LIST_ENTRY}}, {"ListEntry", {0x30, _LIST_ENTRY}}, {"FreeHits", {0x18, UNKNOWN}}, {"AllocateHits", {0x10, UNKNOWN}}, {"MaximumDepth", {0xa, UNKNOWN}}, {"Depth", {0x8, UNKNOWN}}, {"Future", {0x40, UNKNOWN}}, {"TotalAllocates", {0xc, UNKNOWN}}, {"AllocateMisses", {0x10, UNKNOWN}}, {"Tag", {0x20, UNKNOWN}}, {"ListHead", {0x0, _SLIST_HEADER}}, {"TotalFrees", {0x14, UNKNOWN}}, {"Size", {0x24, UNKNOWN}}, }, { // _MMPTE_SUBSECTION {"Prototype", {0x0, UNKNOWN}}, {"SubsectionAddressHigh", {0x0, UNKNOWN}}, {"Valid", {0x0, UNKNOWN}}, {"SubsectionAddressLow", {0x0, UNKNOWN}}, }, { // _ARBITER_INTERFACE {"ArbiterHandler", {0x10, UNKNOWN | POINTER}}, {"Version", {0x2, UNKNOWN}}, {"Flags", {0x14, UNKNOWN}}, {"Context", {0x4, UNKNOWN | POINTER}}, {"InterfaceReference", {0x8, UNKNOWN | POINTER}}, {"InterfaceDereference", {0xc, UNKNOWN | POINTER}}, {"Size", {0x0, UNKNOWN}}, }, { // _PNP_ASSIGN_RESOURCES_CONTEXT {"IncludeFailedDevices", {0x0, UNKNOWN}}, {"DeviceCount", {0x4, UNKNOWN}}, {"DeviceList", {0x8, UNKNOWN}}, }, { // _RELATION_LIST_ENTRY {"Count", {0x0, UNKNOWN}}, {"Devices", {0x8, UNKNOWN}}, {"MaxCount", {0x4, UNKNOWN}}, }, { // _POWER_STATE {"SystemState", {0x0, UNKNOWN}}, {"DeviceState", {0x0, UNKNOWN}}, }, { // _VF_WATCHDOG_IRP {"Irp", {0x8, _IRP | POINTER}}, {"TrackedStackLocation", {0x11, UNKNOWN}}, {"CancelTimeoutTicks", {0x12, UNKNOWN}}, {"DueTickCount", {0xc, UNKNOWN}}, {"Inserted", {0x10, UNKNOWN}}, {"ListEntry", {0x0, _LIST_ENTRY}}, }, { // __unnamed_1f53 {"Start", {0x0, _LARGE_INTEGER}}, {"Length", {0x8, UNKNOWN}}, }, { // __unnamed_1f55 {"Affinity", {0x8, UNKNOWN}}, {"Vector", {0x4, UNKNOWN}}, {"Group", {0x2, UNKNOWN}}, {"Level", {0x0, UNKNOWN}}, }, { // __unnamed_1f57 {"Affinity", {0x8, UNKNOWN}}, {"Vector", {0x4, UNKNOWN}}, {"Group", {0x0, UNKNOWN}}, {"MessageCount", {0x2, UNKNOWN}}, }, { // _TRACE_ENABLE_CONTEXT_EX {"Reserved", {0xc, UNKNOWN}}, {"InternalFlag", {0x3, UNKNOWN}}, {"Level", {0x2, UNKNOWN}}, {"EnableFlags", {0x4, UNKNOWN}}, {"LoggerId", {0x0, UNKNOWN}}, {"EnableFlagsHigh", {0x8, UNKNOWN}}, }, { // _KSPECIAL_REGISTERS {"Cr2", {0x4, UNKNOWN}}, {"Cr3", {0x8, UNKNOWN}}, {"Cr0", {0x0, UNKNOWN}}, {"Gdtr", {0x28, _DESCRIPTOR}}, {"Cr4", {0xc, UNKNOWN}}, {"Tr", {0x38, UNKNOWN}}, {"KernelDr2", {0x18, UNKNOWN}}, {"KernelDr3", {0x1c, UNKNOWN}}, {"KernelDr0", {0x10, UNKNOWN}}, {"KernelDr1", {0x14, UNKNOWN}}, {"KernelDr6", {0x20, UNKNOWN}}, {"KernelDr7", {0x24, UNKNOWN}}, {"Reserved", {0x3c, UNKNOWN}}, {"Ldtr", {0x3a, UNKNOWN}}, {"Idtr", {0x30, _DESCRIPTOR}}, }, { // _PO_HIBER_PERF {"IoTicks", {0x0, UNKNOWN}}, {"CopyTicks", {0x10, UNKNOWN}}, {"ResumeAppTime", {0x28, UNKNOWN}}, {"PagesProcessed", {0x40, UNKNOWN}}, {"HiberFileResumeTime", {0x30, UNKNOWN}}, {"InitTicks", {0x8, UNKNOWN}}, {"CompressTicks", {0x20, UNKNOWN}}, {"BytesCopied", {0x38, UNKNOWN}}, {"DumpCount", {0x4c, UNKNOWN}}, {"PagesWritten", {0x48, UNKNOWN}}, {"FileRuns", {0x50, UNKNOWN}}, {"ElapsedTicks", {0x18, UNKNOWN}}, }, { // _OBJECT_REF_STACK_INFO {"Index", {0x4, UNKNOWN}}, {"Tag", {0x8, UNKNOWN}}, {"NumTraces", {0x6, UNKNOWN}}, {"Sequence", {0x0, UNKNOWN}}, }, { // _HEAP_DEBUGGING_INFORMATION {"InterceptorValue", {0x4, UNKNOWN}}, {"MaxTotalBlockSize", {0x14, UNKNOWN}}, {"MinTotalBlockSize", {0x10, UNKNOWN}}, {"InterceptorFunction", {0x0, UNKNOWN | POINTER}}, {"HeapLeakEnumerationRoutine", {0x18, UNKNOWN | POINTER}}, {"ExtendedOptions", {0x8, UNKNOWN}}, {"StackTraceDepth", {0xc, UNKNOWN}}, }, { // _ETIMER {"ActiveTimerListEntry", {0x78, _LIST_ENTRY}}, {"TimerDpc", {0x58, _KDPC}}, {"WakeTimerListEntry", {0x90, _LIST_ENTRY}}, {"KeTimer", {0x0, _KTIMER}}, {"Lock", {0x80, UNKNOWN}}, {"TimerApc", {0x28, _KAPC}}, {"Period", {0x84, UNKNOWN}}, {"WakeReason", {0x8c, _DIAGNOSTIC_CONTEXT | POINTER}}, {"ApcAssociated", {0x88, UNKNOWN}}, }, { // _REMOTE_PORT_VIEW {"ViewSize", {0x4, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, {"ViewBase", {0x8, UNKNOWN | POINTER}}, }, { // _POP_HIBER_CONTEXT {"Reset", {0x3, UNKNOWN}}, {"ResumeContextPages", {0x9c, UNKNOWN}}, {"NextPreserve", {0x28, UNKNOWN}}, {"MapFrozen", {0x6, UNKNOWN}}, {"DumpStack", {0x4c, _DUMP_STACK_CONTEXT | POINTER}}, {"DiscardedMemoryPages", {0x10, _RTL_BITMAP}}, {"ReserveFreeMemory", {0x2, UNKNOWN}}, {"PreferredIoWriteSize", {0x54, UNKNOWN}}, {"CompressedWriteBufferSize", {0x78, UNKNOWN}}, {"WakeState", {0x50, _KPROCESSOR_STATE | POINTER}}, {"WriteToFile", {0x0, UNKNOWN}}, {"DmaIO", {0x88, UNKNOWN | POINTER}}, {"HiberPte", {0x60, _LARGE_INTEGER}}, {"ResumeContext", {0x98, UNKNOWN | POINTER}}, {"HiberVa", {0x5c, UNKNOWN}}, {"TemporaryHeap", {0x8c, UNKNOWN | POINTER}}, {"ReserveLoaderMemory", {0x1, UNKNOWN}}, {"CurrentMcb", {0x48, UNKNOWN | POINTER}}, {"PerformanceStats", {0x80, UNKNOWN | POINTER}}, {"CompressionWorkspace", {0x70, UNKNOWN | POINTER}}, {"ClonedRangeCount", {0x20, UNKNOWN}}, {"Status", {0x68, UNKNOWN}}, {"IoPages", {0x40, UNKNOWN | POINTER}}, {"BootLoaderLogMdl", {0x90, _MDL | POINTER}}, {"MaxCompressedOutputSize", {0x7c, UNKNOWN}}, {"IoProgress", {0x58, UNKNOWN}}, {"MemoryMap", {0x8, _RTL_BITMAP}}, {"WroteHiberFile", {0x5, UNKNOWN}}, {"HiberFlags", {0x4, UNKNOWN}}, {"ClonedRanges", {0x18, _LIST_ENTRY}}, {"AllocatedMdl", {0x30, _MDL | POINTER}}, {"MemoryImage", {0x6c, PO_MEMORY_IMAGE | POINTER}}, {"FirmwareRuntimeInformationMdl", {0x94, _MDL | POINTER}}, {"CompressionBlock", {0x84, UNKNOWN | POINTER}}, {"LoaderMdl", {0x2c, _MDL | POINTER}}, {"CompressedWriteBuffer", {0x74, UNKNOWN | POINTER}}, {"NextCloneRange", {0x24, _LIST_ENTRY | POINTER}}, {"PagesOut", {0x38, UNKNOWN}}, {"IoPagesCount", {0x44, UNKNOWN}}, }, { // _MMPFNENTRY {"ParityError", {0x1, UNKNOWN}}, {"Modified", {0x0, UNKNOWN}}, {"KernelStack", {0x1, UNKNOWN}}, {"Priority", {0x1, UNKNOWN}}, {"ReadInProgress", {0x0, UNKNOWN}}, {"PageLocation", {0x0, UNKNOWN}}, {"WriteInProgress", {0x0, UNKNOWN}}, {"InPageError", {0x1, UNKNOWN}}, {"RemovalRequested", {0x1, UNKNOWN}}, {"Rom", {0x1, UNKNOWN}}, {"CacheAttribute", {0x0, UNKNOWN}}, }, { // _KSEMAPHORE {"Header", {0x0, _DISPATCHER_HEADER}}, {"Limit", {0x10, UNKNOWN}}, }, { // _PORT_MESSAGE {"DoNotUseThisField", {0x8, UNKNOWN}}, {"CallbackId", {0x14, UNKNOWN}}, {"u1", {0x0, __unnamed_195e}}, {"ClientId", {0x8, _CLIENT_ID}}, {"u2", {0x4, __unnamed_1962}}, {"MessageId", {0x10, UNKNOWN}}, {"ClientViewSize", {0x14, UNKNOWN}}, }, { // _FILE_OBJECT {"LockOperation", {0x24, UNKNOWN}}, {"Busy", {0x44, UNKNOWN}}, {"FileObjectExtension", {0x7c, UNKNOWN | POINTER}}, {"SharedRead", {0x29, UNKNOWN}}, {"CurrentByteOffset", {0x38, _LARGE_INTEGER}}, {"DeletePending", {0x25, UNKNOWN}}, {"DeleteAccess", {0x28, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"Waiters", {0x40, UNKNOWN}}, {"IrpListLock", {0x70, UNKNOWN}}, {"FsContext2", {0x10, UNKNOWN | POINTER}}, {"LastLock", {0x48, UNKNOWN | POINTER}}, {"PrivateCacheMap", {0x18, UNKNOWN | POINTER}}, {"RelatedFileObject", {0x20, _FILE_OBJECT | POINTER}}, {"ReadAccess", {0x26, UNKNOWN}}, {"Vpb", {0x8, _VPB | POINTER}}, {"SharedDelete", {0x2b, UNKNOWN}}, {"CompletionContext", {0x6c, _IO_COMPLETION_CONTEXT | POINTER}}, {"WriteAccess", {0x27, UNKNOWN}}, {"FsContext", {0xc, UNKNOWN | POINTER}}, {"IrpList", {0x74, _LIST_ENTRY}}, {"DeviceObject", {0x4, _DEVICE_OBJECT | POINTER}}, {"Lock", {0x4c, _KEVENT}}, {"FileName", {0x30, _UNICODE_STRING}}, {"FinalStatus", {0x1c, UNKNOWN}}, {"SharedWrite", {0x2a, UNKNOWN}}, {"Flags", {0x2c, UNKNOWN}}, {"SectionObjectPointer", {0x14, _SECTION_OBJECT_POINTERS | POINTER}}, {"Event", {0x5c, _KEVENT}}, {"Size", {0x2, UNKNOWN}}, }, { // _XSTATE_FEATURE {"Size", {0x4, UNKNOWN}}, {"Offset", {0x0, UNKNOWN}}, }, { // _KPROCESSOR_STATE {"ContextFrame", {0x0, _CONTEXT}}, {"SpecialRegisters", {0x2cc, _KSPECIAL_REGISTERS}}, }, { // _DBGKD_READ_MEMORY64 {"ActualBytesRead", {0xc, UNKNOWN}}, {"TransferCount", {0x8, UNKNOWN}}, {"TargetBaseAddress", {0x0, UNKNOWN}}, }, { // _PPM_IDLE_STATE {"Latency", {0x24, UNKNOWN}}, {"DemotePercent", {0x35, UNKNOWN}}, {"HvConfig", {0x18, UNKNOWN}}, {"IdleHandler", {0x10, UNKNOWN | POINTER}}, {"PromotePercent", {0x34, UNKNOWN}}, {"IdleCheck", {0xc, UNKNOWN | POINTER}}, {"DemotePercentBase", {0x37, UNKNOWN}}, {"PromotePercentBase", {0x36, UNKNOWN}}, {"Context", {0x20, UNKNOWN | POINTER}}, {"StateFlags", {0x30, UNKNOWN}}, {"TimeCheck", {0x2c, UNKNOWN}}, {"StateType", {0x38, UNKNOWN}}, {"Power", {0x28, UNKNOWN}}, {"DomainMembers", {0x0, _KAFFINITY_EX}}, }, { // _ALPC_COMPLETION_LIST {"OwnerProcess", {0x8, _EPROCESS | POINTER}}, {"BitmapNextHint", {0x44, UNKNOWN}}, {"Mdl", {0xc, _MDL | POINTER}}, {"Header", {0x24, _ALPC_COMPLETION_LIST_HEADER | POINTER}}, {"UserVa", {0x10, UNKNOWN | POINTER}}, {"SystemVa", {0x1c, UNKNOWN | POINTER}}, {"ListSize", {0x2c, UNKNOWN}}, {"DataUserVa", {0x18, UNKNOWN | POINTER}}, {"Bitmap", {0x30, UNKNOWN | POINTER}}, {"TotalSize", {0x20, UNKNOWN}}, {"UserLimit", {0x14, UNKNOWN | POINTER}}, {"BitmapSize", {0x34, UNKNOWN}}, {"AttributeSize", {0x50, UNKNOWN}}, {"BitmapLimit", {0x40, UNKNOWN}}, {"Entry", {0x0, _LIST_ENTRY}}, {"ConcurrencyCount", {0x48, UNKNOWN}}, {"DataSize", {0x3c, UNKNOWN}}, {"List", {0x28, UNKNOWN | POINTER}}, {"Data", {0x38, UNKNOWN | POINTER}}, {"AttributeFlags", {0x4c, UNKNOWN}}, }, { // SYSTEM_POWER_CAPABILITIES {"spare3", {0x16, UNKNOWN}}, {"ProcessorThrottle", {0xe, UNKNOWN}}, {"SoftLidWake", {0x3c, UNKNOWN}}, {"AcOnLineWake", {0x38, UNKNOWN}}, {"LidPresent", {0x2, UNKNOWN}}, {"FullWake", {0x9, UNKNOWN}}, {"ProcessorMinThrottle", {0xf, UNKNOWN}}, {"BatteriesAreShortTerm", {0x1f, UNKNOWN}}, {"ProcessorMaxThrottle", {0x10, UNKNOWN}}, {"SystemS4", {0x6, UNKNOWN}}, {"SystemS5", {0x7, UNKNOWN}}, {"SystemS2", {0x4, UNKNOWN}}, {"SystemS3", {0x5, UNKNOWN}}, {"SystemS1", {0x3, UNKNOWN}}, {"SystemBatteriesPresent", {0x1e, UNKNOWN}}, {"RtcWake", {0x40, UNKNOWN}}, {"PowerButtonPresent", {0x0, UNKNOWN}}, {"spare2", {0x12, UNKNOWN}}, {"ThermalControl", {0xd, UNKNOWN}}, {"VideoDimPresent", {0xa, UNKNOWN}}, {"HiberFilePresent", {0x8, UNKNOWN}}, {"SleepButtonPresent", {0x1, UNKNOWN}}, {"UpsPresent", {0xc, UNKNOWN}}, {"DiskSpinDown", {0x15, UNKNOWN}}, {"FastSystemS4", {0x11, UNKNOWN}}, {"ApmPresent", {0xb, UNKNOWN}}, {"DefaultLowLatencyWake", {0x48, UNKNOWN}}, {"MinDeviceWakeState", {0x44, UNKNOWN}}, {"BatteryScale", {0x20, UNKNOWN}}, }, { // _RTL_BITMAP {"Buffer", {0x4, UNKNOWN | POINTER}}, {"SizeOfBitMap", {0x0, UNKNOWN}}, }, { // _KTRAP_FRAME {"Eip", {0x68, UNKNOWN}}, {"Edi", {0x54, UNKNOWN}}, {"Logging", {0x12, UNKNOWN}}, {"Dr1", {0x1c, UNKNOWN}}, {"Dr0", {0x18, UNKNOWN}}, {"Dr3", {0x24, UNKNOWN}}, {"Dr2", {0x20, UNKNOWN}}, {"V86Es", {0x7c, UNKNOWN}}, {"Dr7", {0x2c, UNKNOWN}}, {"Dr6", {0x28, UNKNOWN}}, {"V86Ds", {0x80, UNKNOWN}}, {"HardwareSegSs", {0x78, UNKNOWN}}, {"TempSegCs", {0x10, UNKNOWN}}, {"DbgArgPointer", {0xc, UNKNOWN}}, {"TempEsp", {0x14, UNKNOWN}}, {"DbgEbp", {0x0, UNKNOWN}}, {"V86Gs", {0x88, UNKNOWN}}, {"V86Fs", {0x84, UNKNOWN}}, {"Edx", {0x3c, UNKNOWN}}, {"Esi", {0x58, UNKNOWN}}, {"SegDs", {0x38, UNKNOWN}}, {"SegEs", {0x34, UNKNOWN}}, {"Reserved", {0x13, UNKNOWN}}, {"HardwareEsp", {0x74, UNKNOWN}}, {"SegFs", {0x50, UNKNOWN}}, {"SegGs", {0x30, UNKNOWN}}, {"ExceptionList", {0x4c, _EXCEPTION_REGISTRATION_RECORD | POINTER}}, {"PreviousPreviousMode", {0x48, UNKNOWN}}, {"Eax", {0x44, UNKNOWN}}, {"ErrCode", {0x64, UNKNOWN}}, {"Ebp", {0x60, UNKNOWN}}, {"SegCs", {0x6c, UNKNOWN}}, {"EFlags", {0x70, UNKNOWN}}, {"DbgArgMark", {0x8, UNKNOWN}}, {"DbgEip", {0x4, UNKNOWN}}, {"Ebx", {0x5c, UNKNOWN}}, {"Ecx", {0x40, UNKNOWN}}, }, { // _POP_CPU_INFO {"Eax", {0x0, UNKNOWN}}, {"Edx", {0xc, UNKNOWN}}, {"Ebx", {0x4, UNKNOWN}}, {"Ecx", {0x8, UNKNOWN}}, }, { // _OBJECT_HEADER_CREATOR_INFO {"TypeList", {0x0, _LIST_ENTRY}}, {"CreatorUniqueProcess", {0x8, UNKNOWN | POINTER}}, {"Reserved", {0xe, UNKNOWN}}, {"CreatorBackTraceIndex", {0xc, UNKNOWN}}, }, { // _SYSTEM_POWER_POLICY {"DischargePolicy", {0x60, UNKNOWN}}, {"ForcedThrottle", {0xda, UNKNOWN}}, {"IdleTimeout", {0x3c, UNKNOWN}}, {"ReducedLatencySleep", {0x4c, UNKNOWN}}, {"BroadcastCapacityResolution", {0x5c, UNKNOWN}}, {"SpindownTimeout", {0xd4, UNKNOWN}}, {"Revision", {0x0, UNKNOWN}}, {"SleepButton", {0x10, POWER_ACTION_POLICY}}, {"MaxSleep", {0x48, UNKNOWN}}, {"LidClose", {0x1c, POWER_ACTION_POLICY}}, {"DozeS4Timeout", {0x58, UNKNOWN}}, {"OptimizeForPower", {0xd8, UNKNOWN}}, {"IdleSensitivity", {0x40, UNKNOWN}}, {"WinLogonFlags", {0x50, UNKNOWN}}, {"PowerButton", {0x4, POWER_ACTION_POLICY}}, {"VideoDimDisplay", {0xc4, UNKNOWN}}, {"MinThrottle", {0xdb, UNKNOWN}}, {"Idle", {0x30, POWER_ACTION_POLICY}}, {"LidOpenWake", {0x28, UNKNOWN}}, {"Reserved", {0x2c, UNKNOWN}}, {"Spare3", {0x54, UNKNOWN}}, {"Spare2", {0x42, UNKNOWN}}, {"VideoReserved", {0xc8, UNKNOWN}}, {"MinSleep", {0x44, UNKNOWN}}, {"FanThrottleTolerance", {0xd9, UNKNOWN}}, {"VideoTimeout", {0xc0, UNKNOWN}}, {"OverThrottled", {0xdc, POWER_ACTION_POLICY}}, {"DynamicThrottle", {0x41, UNKNOWN}}, }, { // _SHARED_CACHE_MAP {"SectionSize", {0x18, _LARGE_INTEGER}}, {"Vacbs", {0x40, UNKNOWN | POINTER}}, {"OpenCount", {0x4, UNKNOWN}}, {"WriteBehindWorkQueueEntry", {0x148, UNKNOWN | POINTER}}, {"VacbLock", {0x48, _EX_PUSH_LOCK}}, {"FlushToLsnRoutine", {0x9c, UNKNOWN | POINTER}}, {"LastUnmapBehindOffset", {0xd0, _LARGE_INTEGER}}, {"Section", {0x6c, UNKNOWN | POINTER}}, {"LazyWritePassCount", {0xa4, UNKNOWN}}, {"LazyWriteContext", {0x8c, UNKNOWN | POINTER}}, {"ValidDataLength", {0x20, _LARGE_INTEGER}}, {"WaitOnActiveCount", {0x74, _KEVENT | POINTER}}, {"LogHandle", {0x98, UNKNOWN | POINTER}}, {"DirtyPageThreshold", {0xa0, UNKNOWN}}, {"FileObjectFastRef", {0x44, _EX_FAST_REF}}, {"BcbList", {0x10, _LIST_ENTRY}}, {"LoggedStreamLinks", {0x50, _LIST_ENTRY}}, {"BcbLock", {0xac, _KGUARDED_MUTEX}}, {"ProcImagePathHash", {0x150, UNKNOWN}}, {"VolumeCacheMap", {0x14c, _VOLUME_CACHE_MAP | POINTER}}, {"HighWaterMappingOffset", {0xe8, _LARGE_INTEGER}}, {"CreateEvent", {0x70, _KEVENT | POINTER}}, {"Status", {0x64, UNKNOWN}}, {"NodeByteSize", {0x2, UNKNOWN}}, {"DirtyPages", {0x4c, UNKNOWN}}, {"PagesToWrite", {0x78, UNKNOWN}}, {"BeyondLastFlush", {0x80, UNKNOWN}}, {"Mbcb", {0x68, _MBCB | POINTER}}, {"PrivateCacheMap", {0xf0, _PRIVATE_CACHE_MAP}}, {"WritesInProgress", {0x154, UNKNOWN}}, {"InitialVacbs", {0x30, UNKNOWN}}, {"Callbacks", {0x88, _CACHE_MANAGER_CALLBACKS | POINTER}}, {"ValidDataGoal", {0x28, _LARGE_INTEGER}}, {"FileSize", {0x8, _LARGE_INTEGER}}, {"UninitializeEvent", {0xa8, _CACHE_UNINITIALIZE_EVENT | POINTER}}, {"NodeTypeCode", {0x0, UNKNOWN}}, {"Flags", {0x60, UNKNOWN}}, {"PrivateList", {0x90, _LIST_ENTRY}}, {"SharedCacheMapLinks", {0x58, _LIST_ENTRY}}, {"Event", {0xd8, _KEVENT}}, }, { // __unnamed_216f {"Owner", {0x4, UNKNOWN | POINTER}}, {"UserData", {0x0, UNKNOWN | POINTER}}, }, { // __unnamed_1318 {"PowerSequence", {0x0, _POWER_SEQUENCE | POINTER}}, }, { // __unnamed_1314 {"PowerState", {0x0, UNKNOWN}}, }, { // _KTM {"VolatileFlags", {0x50, UNKNOWN}}, {"RestartOrderedList", {0x220, _LIST_ENTRY}}, {"LastRecoveredLsn", {0x188, _CLS_LSN}}, {"LogFlags", {0x208, UNKNOWN}}, {"CommitVirtualClockMutex", {0x158, _FAST_MUTEX}}, {"TmRm", {0x194, _KRESOURCEMANAGER | POINTER}}, {"NamespaceLink", {0x28, _KTMOBJECT_NAMESPACE_LINK}}, {"LogFullNotifyEvent", {0x198, _KEVENT}}, {"LogFileName", {0x54, _UNICODE_STRING}}, {"LogWriteResource", {0x1d0, _ERESOURCE}}, {"State", {0x24, UNKNOWN}}, {"cookie", {0x0, UNKNOWN}}, {"TmRmHandle", {0x190, UNKNOWN | POINTER}}, {"OfflineWorkItem", {0x228, _WORK_QUEUE_ITEM}}, {"ResourceManagers", {0xc8, _KTMOBJECT_NAMESPACE}}, {"LsnOrderedMutex", {0x128, _KMUTANT}}, {"CheckpointWorkItem", {0x1a8, _WORK_QUEUE_ITEM}}, {"CheckpointTargetLsn", {0x1b8, _CLS_LSN}}, {"LsnOrderedList", {0x148, _LIST_ENTRY}}, {"RecoveryStatus", {0x210, UNKNOWN}}, {"Transactions", {0x68, _KTMOBJECT_NAMESPACE}}, {"CurrentReadLsn", {0x180, _CLS_LSN}}, {"Flags", {0x4c, UNKNOWN}}, {"LogFullStatus", {0x20c, UNKNOWN}}, {"LastCheckBaseLsn", {0x218, _CLS_LSN}}, {"BaseLsn", {0x178, _CLS_LSN}}, {"LogManagementContext", {0x64, UNKNOWN | POINTER}}, {"TmIdentity", {0x3c, _GUID}}, {"LogFullCompletedWorkItem", {0x1c0, _WORK_QUEUE_ITEM}}, {"CommitVirtualClock", {0x150, _LARGE_INTEGER}}, {"Mutex", {0x4, _KMUTANT}}, {"LogFileObject", {0x5c, _FILE_OBJECT | POINTER}}, {"MarshallingContext", {0x60, UNKNOWN | POINTER}}, }, { // __unnamed_1310 {"Type", {0x4, UNKNOWN}}, {"Reserved", {0x1, UNKNOWN}}, {"InPath", {0x0, UNKNOWN}}, }, { // _HEAP_LOCK {"Lock", {0x0, __unnamed_18dd}}, }, { // _XSAVE_AREA_HEADER {"Reserved", {0x8, UNKNOWN}}, {"Mask", {0x0, UNKNOWN}}, }, { // _KTMOBJECT_NAMESPACE {"Table", {0x0, _RTL_AVL_TABLE}}, {"Expired", {0x5c, UNKNOWN}}, {"Mutex", {0x38, _KMUTANT}}, {"GuidOffset", {0x5a, UNKNOWN}}, {"LinksOffset", {0x58, UNKNOWN}}, }, { // _GENERAL_LOOKASIDE_POOL {"AllocateEx", {0x28, UNKNOWN | POINTER}}, {"FreeEx", {0x2c, UNKNOWN | POINTER}}, {"Allocate", {0x28, UNKNOWN | POINTER}}, {"LastAllocateHits", {0x3c, UNKNOWN}}, {"Type", {0x1c, UNKNOWN}}, {"Free", {0x2c, UNKNOWN | POINTER}}, {"LastTotalAllocates", {0x38, UNKNOWN}}, {"LastAllocateMisses", {0x3c, UNKNOWN}}, {"FreeMisses", {0x18, UNKNOWN}}, {"SingleListHead", {0x0, _SINGLE_LIST_ENTRY}}, {"ListEntry", {0x30, _LIST_ENTRY}}, {"FreeHits", {0x18, UNKNOWN}}, {"AllocateHits", {0x10, UNKNOWN}}, {"MaximumDepth", {0xa, UNKNOWN}}, {"Depth", {0x8, UNKNOWN}}, {"Future", {0x40, UNKNOWN}}, {"TotalAllocates", {0xc, UNKNOWN}}, {"AllocateMisses", {0x10, UNKNOWN}}, {"Tag", {0x20, UNKNOWN}}, {"ListHead", {0x0, _SLIST_HEADER}}, {"TotalFrees", {0x14, UNKNOWN}}, {"Size", {0x24, UNKNOWN}}, }, { // _KSPIN_LOCK_QUEUE {"Lock", {0x4, UNKNOWN | POINTER}}, {"Next", {0x0, _KSPIN_LOCK_QUEUE | POINTER}}, }, { // _ALPC_MESSAGE_ATTRIBUTES {"ValidAttributes", {0x4, UNKNOWN}}, {"AllocatedAttributes", {0x0, UNKNOWN}}, }, { // _ETHREAD {"RundownProtect", {0x270, _EX_RUNDOWN_REF}}, {"ThreadIoPriority", {0x280, UNKNOWN}}, {"OwnsSessionWorkingSetShared", {0x289, UNKNOWN}}, {"KeyedWaitSemaphore", {0x234, _KSEMAPHORE}}, {"OwnsSystemCacheWorkingSetExclusive", {0x288, UNKNOWN}}, {"CrossThreadFlags", {0x280, UNKNOWN}}, {"ExitStatus", {0x210, UNKNOWN}}, {"KeyedWaitChain", {0x208, _LIST_ENTRY}}, {"ThreadLock", {0x274, _EX_PUSH_LOCK}}, {"SkipCreationMsg", {0x280, UNKNOWN}}, {"ReservedForSynchTracking", {0x2ac, UNKNOWN | POINTER}}, {"OwnsChangeControlAreaShared", {0x289, UNKNOWN}}, {"ThreadPagePriority", {0x280, UNKNOWN}}, {"Cid", {0x22c, _CLIENT_ID}}, {"ClonedThread", {0x284, UNKNOWN}}, {"IrpList", {0x24c, _LIST_ENTRY}}, {"Spare1", {0x28a, UNKNOWN}}, {"ReaperLink", {0x21c, _ETHREAD | POINTER}}, {"SameThreadApcFlags", {0x288, UNKNOWN}}, {"OwnsProcessAddressSpaceShared", {0x289, UNKNOWN}}, {"OwnsPagedPoolWorkingSetShared", {0x28a, UNKNOWN}}, {"AlpcWaitSemaphore", {0x234, _KSEMAPHORE}}, {"Win32StartAddress", {0x260, UNKNOWN | POINTER}}, {"IrpListLock", {0x2a8, UNKNOWN}}, {"ActiveExWorker", {0x284, UNKNOWN}}, {"AlpcMessage", {0x294, UNKNOWN | POINTER}}, {"CopyTokenOnOpen", {0x280, UNKNOWN}}, {"TrimTrigger", {0x28a, UNKNOWN}}, {"OwnsProcessWorkingSetShared", {0x288, UNKNOWN}}, {"RundownFail", {0x280, UNKNOWN}}, {"ExitTime", {0x208, _LARGE_INTEGER}}, {"OwnsSystemPtesWorkingSetExclusive", {0x28a, UNKNOWN}}, {"LockOrderState", {0x28f, UNKNOWN}}, {"HardErrorsAreDisabled", {0x280, UNKNOWN}}, {"MemoryMaker", {0x284, UNKNOWN}}, {"ActiveTimerListHead", {0x224, _LIST_ENTRY}}, {"OwnsSessionWorkingSetExclusive", {0x288, UNKNOWN}}, {"OwnsDynamicMemoryShared", {0x289, UNKNOWN}}, {"SameThreadPassiveFlags", {0x284, UNKNOWN}}, {"Tcb", {0x0, _KTHREAD}}, {"OwnsSystemCacheWorkingSetShared", {0x288, UNKNOWN}}, {"OwnsProcessWorkingSetExclusive", {0x288, UNKNOWN}}, {"OwnsSystemPtesWorkingSetShared", {0x28a, UNKNOWN}}, {"CacheManagerActive", {0x28c, UNKNOWN}}, {"PostBlockList", {0x214, _LIST_ENTRY}}, {"IoBoostCount", {0x2a4, UNKNOWN}}, {"OwnsProcessAddressSpaceExclusive", {0x289, UNKNOWN}}, {"ExWorkerCanWaitUser", {0x284, UNKNOWN}}, {"StartAddress", {0x218, UNKNOWN | POINTER}}, {"OwnsChangeControlAreaExclusive", {0x289, UNKNOWN}}, {"AlpcWaitListEntry", {0x298, _LIST_ENTRY}}, {"SuppressSymbolLoad", {0x289, UNKNOWN}}, {"LegacyPowerObject", {0x264, UNKNOWN | POINTER}}, {"MmLockOrdering", {0x27c, UNKNOWN}}, {"AlpcReceiveAttributeSet", {0x294, UNKNOWN}}, {"TopLevelIrp", {0x254, UNKNOWN}}, {"ForwardLinkShadow", {0x214, UNKNOWN | POINTER}}, {"DeviceToVerify", {0x258, _DEVICE_OBJECT | POINTER}}, {"CacheManagerCount", {0x2a0, UNKNOWN}}, {"ReadClusterSize", {0x278, UNKNOWN}}, {"DisablePageFaultClustering", {0x28d, UNKNOWN}}, {"Terminated", {0x280, UNKNOWN}}, {"RateApcState", {0x284, UNKNOWN}}, {"ActiveTimerListLock", {0x220, UNKNOWN}}, {"ClientSecurity", {0x248, _PS_CLIENT_SECURITY_CONTEXT}}, {"Prefetching", {0x289, UNKNOWN}}, {"TerminationPort", {0x21c, _TERMINATION_PORT | POINTER}}, {"OwnsPagedPoolWorkingSetExclusive", {0x28a, UNKNOWN}}, {"ActiveImpersonationInfo", {0x280, UNKNOWN}}, {"PriorityRegionActive", {0x28b, UNKNOWN}}, {"CpuQuotaApc", {0x25c, UNKNOWN | POINTER}}, {"Spare", {0x288, UNKNOWN}}, {"ActiveFaultCount", {0x28e, UNKNOWN}}, {"BreakOnTermination", {0x280, UNKNOWN}}, {"AlpcMessageId", {0x290, UNKNOWN}}, {"SelfTerminate", {0x284, UNKNOWN}}, {"CmCallbackListHead", {0x2b0, _SINGLE_LIST_ENTRY}}, {"KeyedWaitValue", {0x21c, UNKNOWN | POINTER}}, {"SkipTerminationMsg", {0x280, UNKNOWN}}, {"KeyedEventInUse", {0x284, UNKNOWN}}, {"EtwPageFaultCalloutActive", {0x288, UNKNOWN}}, {"NeedsWorkingSetAging", {0x280, UNKNOWN}}, {"StartAddressInvalid", {0x288, UNKNOWN}}, {"SystemThread", {0x280, UNKNOWN}}, {"CreateTime", {0x200, _LARGE_INTEGER}}, {"ThreadInserted", {0x280, UNKNOWN}}, {"ThreadListEntry", {0x268, _LIST_ENTRY}}, {"HideFromDebugger", {0x280, UNKNOWN}}, }, { // _KPRCB {"PPPagedLookasideList", {0xf20, UNKNOWN}}, {"RateControl", {0x34d4, UNKNOWN | POINTER}}, {"IdleThread", {0xc, _KTHREAD | POINTER}}, {"ExAcqResSharedStarveExclusiveWaits", {0x35d4, UNKNOWN}}, {"MmCacheIoCount", {0x3348, UNKNOWN}}, {"Context", {0x3618, _CONTEXT | POINTER}}, {"PrcbPad41", {0x1944, UNKNOWN}}, {"ExTryToAcqExclusiveAttempts", {0x3600, UNKNOWN}}, {"InterruptObjectPool", {0x34b8, _SLIST_HEADER}}, {"CcLazyWritePages", {0x550, UNKNOWN}}, {"CpuVendor", {0x3c4, UNKNOWN}}, {"NpxThread", {0x4a0, _KTHREAD | POINTER}}, {"LogicalProcessorsPerPhysicalProcessor", {0x337a, UNKNOWN}}, {"CcFastMdlReadNotPossible", {0x528, UNKNOWN}}, {"CcMapDataWaitMiss", {0x570, UNKNOWN}}, {"CcMdlReadNoWait", {0x540, UNKNOWN}}, {"CcPinReadNoWaitMiss", {0x574, UNKNOWN}}, {"DpcTime", {0x4b0, UNKNOWN}}, {"PeriodicBias", {0x1950, UNKNOWN}}, {"CcLostDelayedWrites", {0x55c, UNKNOWN}}, {"CcCopyReadNoWait", {0x4ec, UNKNOWN}}, {"LogicalProcessorsPerCore", {0x3bd, UNKNOWN}}, {"CallDpc", {0x31a0, _KDPC}}, {"IoWriteTransferCount", {0x510, _LARGE_INTEGER}}, {"ClockPollCycle", {0x31c5, UNKNOWN}}, {"ChainedInterruptList", {0x3320, UNKNOWN | POINTER}}, {"CcDataFlushes", {0x554, UNKNOWN}}, {"IoReadTransferCount", {0x508, _LARGE_INTEGER}}, {"CpuStepping", {0x16, UNKNOWN}}, {"WorkerRoutine", {0x1870, UNKNOWN | POINTER}}, {"ExAcqResExclusiveWaits", {0x35a4, UNKNOWN}}, {"RequestSummary", {0x18a0, UNKNOWN}}, {"CcCopyReadWait", {0x4f0, UNKNOWN}}, {"ExAcqResSharedWaitForExclusiveAcquiresExclusive", {0x35e0, UNKNOWN}}, {"ClockKeepAlive", {0x31c0, UNKNOWN}}, {"DpcRequestSummary", {0x1934, UNKNOWN}}, {"ParentNode", {0x4cc, _KNODE | POINTER}}, {"ExecutiveResourceReleaseExclusiveCount", {0x358c, UNKNOWN}}, {"CcMapDataNoWait", {0x52c, UNKNOWN}}, {"KeExceptionDispatchCount", {0x58c, UNKNOWN}}, {"MmDirtyPagesWriteCount", {0x334c, UNKNOWN}}, {"CoreProcessorSet", {0x353c, UNKNOWN}}, {"KernelTime", {0x4a8, UNKNOWN}}, {"InterruptCount", {0x4a4, UNKNOWN}}, {"IsrTime", {0x3390, UNKNOWN}}, {"IpiFrame", {0x1828, UNKNOWN | POINTER}}, {"MmPageFaultCount", {0x3328, UNKNOWN}}, {"ExBoostExclusiveOwner", {0x3608, UNKNOWN}}, {"ExAcqResExclusiveNotAcquires", {0x35a8, UNKNOWN}}, {"PacketBarrier", {0x1820, UNKNOWN}}, {"SpinLockSpinCount", {0x3568, UNKNOWN}}, {"HypercallPageVirtual", {0x34c8, UNKNOWN | POINTER}}, {"VirtualApicAssist", {0x34cc, UNKNOWN | POINTER}}, {"ExAcqResSharedWaitForExclusiveAttempts", {0x35dc, UNKNOWN}}, {"MHz", {0x3c0, UNKNOWN}}, {"LastTick", {0x193c, UNKNOWN}}, {"DpcTimeCount", {0x4b4, UNKNOWN}}, {"DpcWatchdogDpc", {0x3468, _KDPC}}, {"QuantumEnd", {0x1931, UNKNOWN}}, {"ExAcqResSharedWaitForExclusiveWaits", {0x35ec, UNKNOWN}}, {"HalReserved", {0x378, UNKNOWN}}, {"MmMappedWriteIoCount", {0x3358, UNKNOWN}}, {"ExAcqResSharedStarveExclusiveAcquiresShared", {0x35cc, UNKNOWN}}, {"ExAcqResSharedAcquiresSharedRecursive", {0x35b8, UNKNOWN}}, {"ExAcqResSharedWaits", {0x35bc, UNKNOWN}}, {"TimerExpirationDpc", {0x3540, _KDPC}}, {"LookasideIrpFloat", {0x3324, UNKNOWN}}, {"ExDeleteResourceCount", {0x3580, UNKNOWN}}, {"CachedCommit", {0x335c, UNKNOWN}}, {"ReverseStall", {0x1824, UNKNOWN}}, {"KeAlignmentFixupCount", {0x588, UNKNOWN}}, {"MasterOffset", {0x1940, UNKNOWN}}, {"StartCycles", {0x31f8, UNKNOWN}}, {"MmSpinLockOrdering", {0x4f8, UNKNOWN}}, {"CcFastMdlReadResourceMiss", {0x568, UNKNOWN}}, {"CcMdlReadNoWaitMiss", {0x57c, UNKNOWN}}, {"CcFastReadNotPossible", {0x4e8, UNKNOWN}}, {"MmPageReadIoCount", {0x3340, UNKNOWN}}, {"MinimumDpcRate", {0x1914, UNKNOWN}}, {"ExAcqResExclusiveAcquiresExclusive", {0x359c, UNKNOWN}}, {"CcCopyReadNoWaitMiss", {0x4f4, UNKNOWN}}, {"CcPinReadNoWait", {0x538, UNKNOWN}}, {"HighCycleTime", {0x3208, UNKNOWN}}, {"QueueIndex", {0x31f0, UNKNOWN}}, {"ExAcqResSharedWaitForExclusiveAcquiresSharedRecursive", {0x35e8, UNKNOWN}}, {"CcLazyWriteHotSpots", {0x548, UNKNOWN}}, {"ExAcqResSharedStarveExclusiveAttempts", {0x35c4, UNKNOWN}}, {"PPNPagedLookasideList", {0x620, UNKNOWN}}, {"KeSpinLockOrdering", {0x31d8, UNKNOWN}}, {"Number", {0x3cc, UNKNOWN}}, {"DpcWatchdogTimer", {0x3488, _KTIMER}}, {"ExAcqResSharedAttempts", {0x35ac, UNKNOWN}}, {"MmCopyOnWriteCount", {0x332c, UNKNOWN}}, {"CcMapDataWait", {0x530, UNKNOWN}}, {"ExAcqResSharedStarveExclusiveAcquiresExclusive", {0x35c8, UNKNOWN}}, {"CcFastReadWait", {0x4e4, UNKNOWN}}, {"ContextFlags", {0x361c, UNKNOWN}}, {"MmDirtyWriteIoCount", {0x3350, UNKNOWN}}, {"HyperPte", {0x3364, UNKNOWN | POINTER}}, {"IpiSendSoftwareInterruptCount", {0x3574, UNKNOWN}}, {"DpcWatchdogPeriod", {0x31c8, UNKNOWN}}, {"WaitLock", {0x31e8, UNKNOWN}}, {"ThreadWatchdogCount", {0x31d4, UNKNOWN}}, {"UserTime", {0x4ac, UNKNOWN}}, {"CcFastReadResourceMiss", {0x560, UNKNOWN}}, {"CpuType", {0x14, UNKNOWN}}, {"ExEtwSynchTrackingNotificationsAccountedCount", {0x3614, UNKNOWN}}, {"DpcWatchdogCount", {0x31cc, UNKNOWN}}, {"MmMappedPagesWriteCount", {0x3354, UNKNOWN}}, {"GroupSetMember", {0x3c8, UNKNOWN}}, {"DpcLastCount", {0x1918, UNKNOWN}}, {"NormalDpcState", {0x1934, UNKNOWN}}, {"ExAcqResSharedStarveExclusiveNotAcquires", {0x35d8, UNKNOWN}}, {"ProcessorState", {0x18, _KPROCESSOR_STATE}}, {"CcMdlReadWait", {0x544, UNKNOWN}}, {"PrcbPad22", {0x598, UNKNOWN}}, {"CcDataPages", {0x558, UNKNOWN}}, {"CurrentThread", {0x4, _KTHREAD | POINTER}}, {"NodeColor", {0x4c5, UNKNOWN}}, {"ExecutiveResourceAcquiresCount", {0x3584, UNKNOWN}}, {"ExAcqResSharedStarveExclusiveAcquiresSharedRecursive", {0x35d0, UNKNOWN}}, {"PrcbPad20", {0x4c6, UNKNOWN}}, {"NextThread", {0x8, _KTHREAD | POINTER}}, {"CoresPerPhysicalProcessor", {0x3bc, UNKNOWN}}, {"ExAcqResExclusiveAcquiresExclusiveRecursive", {0x35a0, UNKNOWN}}, {"InitialApicId", {0x3379, UNKNOWN}}, {"CpuID", {0x15, UNKNOWN}}, {"MaximumDpcQueueDepth", {0x190c, UNKNOWN}}, {"TargetSet", {0x186c, UNKNOWN}}, {"IdleSchedule", {0x1933, UNKNOWN}}, {"TimerTable", {0x1960, _KTIMER_TABLE}}, {"ExEtwSynchTrackingNotificationsCount", {0x3610, UNKNOWN}}, {"IpiSendRequestRoutineCount", {0x3570, UNKNOWN}}, {"ExecutiveResourceContentionsCount", {0x3588, UNKNOWN}}, {"DpcThreadActive", {0x1936, UNKNOWN}}, {"LegacyNumber", {0x10, UNKNOWN}}, {"Group", {0x3c6, UNKNOWN}}, {"CcPinReadWait", {0x53c, UNKNOWN}}, {"NestingLevel", {0x11, UNKNOWN}}, {"MinorVersion", {0x0, UNKNOWN}}, {"CcReadAheadIos", {0x584, UNKNOWN}}, {"CcFastReadNoWait", {0x4e0, UNKNOWN}}, {"WheaInfo", {0x34b0, UNKNOWN | POINTER}}, {"IoOtherOperationCount", {0x504, UNKNOWN}}, {"CycleTime", {0x3200, UNKNOWN}}, {"CacheCount", {0x3514, UNKNOWN}}, {"IoOtherTransferCount", {0x518, _LARGE_INTEGER}}, {"SpinLockContentionCount", {0x3564, UNKNOWN}}, {"PrcbPad50", {0x18a8, UNKNOWN}}, {"IoReadOperationCount", {0x4fc, UNKNOWN}}, {"AvailableTime", {0x594, UNKNOWN}}, {"ExSetResOwnerPointerSharedOld", {0x35fc, UNKNOWN}}, {"DispatcherReadyListHead", {0x3220, UNKNOWN}}, {"ExAcqResExclusiveAttempts", {0x3598, UNKNOWN}}, {"DpcRoutineActive", {0x1932, UNKNOWN}}, {"CcPinMappedDataCount", {0x534, UNKNOWN}}, {"ExecutiveResourceReleaseSharedCount", {0x3590, UNKNOWN}}, {"InterruptTime", {0x4b8, UNKNOWN}}, {"CpuModel", {0x17, UNKNOWN}}, {"FeatureBits", {0x3380, UNKNOWN}}, {"ExAcqResSharedNotAcquires", {0x35c0, UNKNOWN}}, {"CacheProcessorMask", {0x3518, UNKNOWN}}, {"LockQueue", {0x418, UNKNOWN}}, {"ExAcqResSharedAcquiresExclusive", {0x35b0, UNKNOWN}}, {"DpcTimeLimit", {0x4d4, UNKNOWN}}, {"UpdateSignature", {0x3388, _LARGE_INTEGER}}, {"PrcbPad70", {0x31dc, UNKNOWN}}, {"PrcbPad71", {0x320c, UNKNOWN}}, {"PrcbPad72", {0x3210, UNKNOWN}}, {"DpcRequestRate", {0x1910, UNKNOWN}}, {"PackageProcessorSet", {0x352c, _KAFFINITY_EX}}, {"MajorVersion", {0x2, UNKNOWN}}, {"CcFastMdlReadNoWait", {0x520, UNKNOWN}}, {"EtwSupport", {0x34b4, UNKNOWN | POINTER}}, {"CachedResidentAvailable", {0x3360, UNKNOWN}}, {"ExBoostSharedOwners", {0x360c, UNKNOWN}}, {"MmCacheTransitionCount", {0x3334, UNKNOWN}}, {"DeferredReadyListHead", {0x31f4, _SINGLE_LIST_ENTRY}}, {"PrcbPad0", {0x3be, UNKNOWN}}, {"PrcbPad1", {0x3d0, UNKNOWN}}, {"PrcbPad3", {0x182c, UNKNOWN}}, {"PrcbPad4", {0x1878, UNKNOWN}}, {"RuntimeAccumulation", {0x3398, UNKNOWN}}, {"PrcbPad6", {0x31c6, UNKNOWN}}, {"PrcbPad8", {0x3368, UNKNOWN}}, {"PrcbPad9", {0x337b, UNKNOWN}}, {"CFlushSize", {0x3b8, UNKNOWN}}, {"Cache", {0x34d8, UNKNOWN}}, {"ExSetResOwnerPointerSharedNew", {0x35f8, UNKNOWN}}, {"MmPageReadCount", {0x333c, UNKNOWN}}, {"IpiSendRequestBroadcastCount", {0x356c, UNKNOWN}}, {"PrcbLock", {0x191c, UNKNOWN}}, {"CcPinReadWaitMiss", {0x578, UNKNOWN}}, {"KernelReserved", {0x338, UNKNOWN}}, {"DebuggerSavedIRQL", {0x4c4, UNKNOWN}}, {"SignalDone", {0x18a4, _KPRCB | POINTER}}, {"MmDemandZeroCount", {0x3338, UNKNOWN}}, {"PPLookasideList", {0x5a0, UNKNOWN}}, {"MmTransitionCount", {0x3330, UNKNOWN}}, {"BuildType", {0x12, UNKNOWN}}, {"ExInitializeResourceCount", {0x3578, UNKNOWN}}, {"CcLazyWriteIos", {0x54c, UNKNOWN}}, {"CpuStep", {0x16, UNKNOWN}}, {"CcMapDataNoWaitMiss", {0x56c, UNKNOWN}}, {"ThreadWatchdogPeriod", {0x31d0, UNKNOWN}}, {"DpcStack", {0x1908, UNKNOWN | POINTER}}, {"PowerState", {0x33a0, _PROCESSOR_POWER_STATE}}, {"ExTryToAcqExclusiveAcquires", {0x3604, UNKNOWN}}, {"NodeShiftedColor", {0x4c8, UNKNOWN}}, {"ExecutiveResourceConvertsCount", {0x3594, UNKNOWN}}, {"PrcbPad91", {0x3538, UNKNOWN}}, {"TickOffset", {0x1958, UNKNOWN}}, {"HypercallPageList", {0x34c0, _SLIST_HEADER}}, {"AdjustDpcThreshold", {0x4bc, UNKNOWN}}, {"PeriodicCount", {0x194c, UNKNOWN}}, {"DpcRequestSlot", {0x1934, UNKNOWN}}, {"TimerHand", {0x1938, UNKNOWN}}, {"VendorString", {0x336c, UNKNOWN}}, {"ExAcqResSharedWaitForExclusiveNotAcquires", {0x35f0, UNKNOWN}}, {"ThreadDpcState", {0x1936, UNKNOWN}}, {"StatisticsPage", {0x34d0, UNKNOWN | POINTER}}, {"DpcGate", {0x1920, _KGATE}}, {"MmCacheReadCount", {0x3344, UNKNOWN}}, {"PrcbPad21", {0x4d8, UNKNOWN}}, {"PageColor", {0x4c0, UNKNOWN}}, {"CcCopyReadWaitMiss", {0x564, UNKNOWN}}, {"SpinLockAcquireCount", {0x3560, UNKNOWN}}, {"SecondaryColorMask", {0x4d0, UNKNOWN}}, {"CcMdlReadWaitMiss", {0x580, UNKNOWN}}, {"ExAcqResSharedAcquiresShared", {0x35b4, UNKNOWN}}, {"KeSystemCalls", {0x590, UNKNOWN}}, {"ClockCheckSlot", {0x31c4, UNKNOWN}}, {"ThreadDpcEnable", {0x1930, UNKNOWN}}, {"DpcData", {0x18e0, UNKNOWN}}, {"ExAcqResSharedWaitForExclusiveAcquiresShared", {0x35e4, UNKNOWN}}, {"WaitListHead", {0x31e0, _LIST_ENTRY}}, {"CurrentPacket", {0x1860, UNKNOWN}}, {"GroupIndex", {0x3c5, UNKNOWN}}, {"IpiFrozen", {0x1874, UNKNOWN}}, {"ExSetResOwnerPointerExclusive", {0x35f4, UNKNOWN}}, {"ReadySummary", {0x31ec, UNKNOWN}}, {"IoWriteOperationCount", {0x500, UNKNOWN}}, {"ExtendedState", {0x3620, _XSAVE_AREA | POINTER}}, {"ExReInitializeResourceCount", {0x357c, UNKNOWN}}, {"CcFastMdlReadWait", {0x524, UNKNOWN}}, }, { // _SYSTEM_TRACE_HEADER {"SystemTime", {0x10, _LARGE_INTEGER}}, {"HeaderType", {0x2, UNKNOWN}}, {"Version", {0x0, UNKNOWN}}, {"Flags", {0x3, UNKNOWN}}, {"ProcessId", {0xc, UNKNOWN}}, {"UserTime", {0x1c, UNKNOWN}}, {"Packet", {0x4, _WMI_TRACE_PACKET}}, {"Header", {0x4, UNKNOWN}}, {"KernelTime", {0x18, UNKNOWN}}, {"ThreadId", {0x8, UNKNOWN}}, {"Marker", {0x0, UNKNOWN}}, }, { // __unnamed_1544 {"Unused", {0x4, UNKNOWN}}, {"SubsectionRoot", {0x8, _MM_SUBSECTION_AVL_TABLE | POINTER}}, {"BitMap64", {0x4, UNKNOWN}}, {"WritableUserReferences", {0x4, UNKNOWN}}, {"ImageActive", {0x4, UNKNOWN}}, {"ImageRelocationStartBit", {0x0, UNKNOWN}}, {"ImageRelocationSizeIn64k", {0x4, UNKNOWN}}, {"NumberOfSystemCacheViews", {0x0, UNKNOWN}}, {"SeImageStub", {0x8, _MI_IMAGE_SECURITY_REFERENCE | POINTER}}, }, { // __unnamed_1546 {"e2", {0x0, __unnamed_1544}}, }, { // _RTL_BALANCED_LINKS {"LeftChild", {0x4, _RTL_BALANCED_LINKS | POINTER}}, {"Balance", {0xc, UNKNOWN}}, {"Reserved", {0xd, UNKNOWN}}, {"RightChild", {0x8, _RTL_BALANCED_LINKS | POINTER}}, {"Parent", {0x0, _RTL_BALANCED_LINKS | POINTER}}, }, { // _HANDLE_TRACE_DEBUG_INFO {"CloseCompactionLock", {0xc, _FAST_MUTEX}}, {"TraceDb", {0x30, UNKNOWN}}, {"TableSize", {0x4, UNKNOWN}}, {"CurrentStackIndex", {0x2c, UNKNOWN}}, {"RefCount", {0x0, UNKNOWN}}, {"BitMaskFlags", {0x8, UNKNOWN}}, }, { // _STACK_TABLE {"StackTrace", {0x4, UNKNOWN}}, {"TraceCapacity", {0x2, UNKNOWN}}, {"NumStackTraces", {0x0, UNKNOWN}}, {"StackTableHash", {0x44, UNKNOWN}}, }, { // _PROC_PERF_CONSTRAINT {"AcumulatedFullFrequency", {0x14, UNKNOWN}}, {"AverageFrequency", {0x20, UNKNOWN}}, {"AcumulatedZeroFrequency", {0x18, UNKNOWN}}, {"PerfContext", {0x4, UNKNOWN}}, {"TargetFrequency", {0x10, UNKNOWN}}, {"Prcb", {0x0, _KPRCB | POINTER}}, {"ThermalCap", {0xc, UNKNOWN}}, {"FrequencyHistoryTotal", {0x1c, UNKNOWN}}, {"PercentageCap", {0x8, UNKNOWN}}, }, { // _CM_CELL_REMAP_BLOCK {"OldCell", {0x0, UNKNOWN}}, {"NewCell", {0x4, UNKNOWN}}, }, { // _MMMOD_WRITER_MDL_ENTRY {"PagingFile", {0x18, _MMPAGING_FILE | POINTER}}, {"FileResource", {0x24, _ERESOURCE | POINTER}}, {"Irp", {0x10, _IRP | POINTER}}, {"PointerMdl", {0x38, _MDL | POINTER}}, {"Page", {0x58, UNKNOWN}}, {"Mdl", {0x3c, _MDL}}, {"Links", {0x0, _LIST_ENTRY}}, {"ControlArea", {0x20, _CONTROL_AREA | POINTER}}, {"u1", {0x14, __unnamed_15a6}}, {"u", {0x8, __unnamed_15a4}}, {"File", {0x1c, _FILE_OBJECT | POINTER}}, {"WriteOffset", {0x28, _LARGE_INTEGER}}, {"IssueTime", {0x30, _LARGE_INTEGER}}, }, { // _IMAGE_OPTIONAL_HEADER {"DllCharacteristics", {0x46, UNKNOWN}}, {"BaseOfCode", {0x14, UNKNOWN}}, {"MajorLinkerVersion", {0x2, UNKNOWN}}, {"Win32VersionValue", {0x34, UNKNOWN}}, {"MinorOperatingSystemVersion", {0x2a, UNKNOWN}}, {"MajorSubsystemVersion", {0x30, UNKNOWN}}, {"MajorOperatingSystemVersion", {0x28, UNKNOWN}}, {"SizeOfStackCommit", {0x4c, UNKNOWN}}, {"DataDirectory", {0x60, UNKNOWN}}, {"SizeOfUninitializedData", {0xc, UNKNOWN}}, {"NumberOfRvaAndSizes", {0x5c, UNKNOWN}}, {"SizeOfHeapReserve", {0x50, UNKNOWN}}, {"LoaderFlags", {0x58, UNKNOWN}}, {"SizeOfHeapCommit", {0x54, UNKNOWN}}, {"SizeOfStackReserve", {0x48, UNKNOWN}}, {"SizeOfHeaders", {0x3c, UNKNOWN}}, {"Subsystem", {0x44, UNKNOWN}}, {"Magic", {0x0, UNKNOWN}}, {"MinorImageVersion", {0x2e, UNKNOWN}}, {"MajorImageVersion", {0x2c, UNKNOWN}}, {"FileAlignment", {0x24, UNKNOWN}}, {"BaseOfData", {0x18, UNKNOWN}}, {"AddressOfEntryPoint", {0x10, UNKNOWN}}, {"SectionAlignment", {0x20, UNKNOWN}}, {"SizeOfCode", {0x4, UNKNOWN}}, {"ImageBase", {0x1c, UNKNOWN}}, {"SizeOfInitializedData", {0x8, UNKNOWN}}, {"SizeOfImage", {0x38, UNKNOWN}}, {"MinorSubsystemVersion", {0x32, UNKNOWN}}, {"CheckSum", {0x40, UNKNOWN}}, {"MinorLinkerVersion", {0x3, UNKNOWN}}, }, { // _SID_AND_ATTRIBUTES_HASH {"SidCount", {0x0, UNKNOWN}}, {"SidAttr", {0x4, _SID_AND_ATTRIBUTES | POINTER}}, {"Hash", {0x8, UNKNOWN}}, }, { // __unnamed_12c9 {"Length", {0x0, UNKNOWN}}, {"FileIndex", {0xc, UNKNOWN}}, {"FileInformationClass", {0x8, UNKNOWN}}, {"FileName", {0x4, _UNICODE_STRING | POINTER}}, }, { // __unnamed_12c3 {"ShareAccess", {0xa, UNKNOWN}}, {"Reserved", {0x8, UNKNOWN}}, {"SecurityContext", {0x0, _IO_SECURITY_CONTEXT | POINTER}}, {"Options", {0x4, UNKNOWN}}, {"Parameters", {0xc, _MAILSLOT_CREATE_PARAMETERS | POINTER}}, }, { // _ETW_REG_ENTRY {"Index", {0xc, UNKNOWN}}, {"Callback", {0x24, UNKNOWN | POINTER}}, {"SessionId", {0x14, UNKNOWN}}, {"EnableMask", {0x10, UNKNOWN}}, {"Flags", {0xe, UNKNOWN}}, {"CallbackContext", {0x28, UNKNOWN | POINTER}}, {"RegList", {0x0, _LIST_ENTRY}}, {"Process", {0x24, _EPROCESS | POINTER}}, {"GuidEntry", {0x8, _ETW_GUID_ENTRY | POINTER}}, {"ReplySlot", {0x14, UNKNOWN}}, {"ReplyQueue", {0x14, _ETW_REPLY_QUEUE | POINTER}}, }, { // __unnamed_12c5 {"Length", {0x0, UNKNOWN}}, {"ByteOffset", {0x8, _LARGE_INTEGER}}, {"Key", {0x4, UNKNOWN}}, }, { // _NT_TIB32 {"ExceptionList", {0x0, UNKNOWN}}, {"StackLimit", {0x8, UNKNOWN}}, {"Version", {0x10, UNKNOWN}}, {"StackBase", {0x4, UNKNOWN}}, {"Self", {0x18, UNKNOWN}}, {"SubSystemTib", {0xc, UNKNOWN}}, {"ArbitraryUserPointer", {0x14, UNKNOWN}}, {"FiberData", {0x10, UNKNOWN}}, }, { // BATTERY_REPORTING_SCALE {"Capacity", {0x4, UNKNOWN}}, {"Granularity", {0x0, UNKNOWN}}, }, { // __unnamed_1866 {"ActiveCount", {0x0, UNKNOWN}}, {"FileOffset", {0x0, _LARGE_INTEGER}}, }, { // _IMAGE_SECTION_HEADER {"PointerToLinenumbers", {0x1c, UNKNOWN}}, {"PointerToRawData", {0x14, UNKNOWN}}, {"SizeOfRawData", {0x10, UNKNOWN}}, {"Name", {0x0, UNKNOWN}}, {"NumberOfRelocations", {0x20, UNKNOWN}}, {"NumberOfLinenumbers", {0x22, UNKNOWN}}, {"Characteristics", {0x24, UNKNOWN}}, {"Misc", {0x8, __unnamed_1f6c}}, {"VirtualAddress", {0xc, UNKNOWN}}, {"PointerToRelocations", {0x18, UNKNOWN}}, }, { // _HEAP_TUNING_PARAMETERS {"MaxPreCommittThreshold", {0x4, UNKNOWN}}, {"CommittThresholdShift", {0x0, UNKNOWN}}, }, { // _ALPC_PROCESS_CONTEXT {"PagedPoolQuotaCache", {0xc, UNKNOWN}}, {"Lock", {0x0, _EX_PUSH_LOCK}}, {"ViewListHead", {0x4, _LIST_ENTRY}}, }, { // _VI_POOL_PAGE_HEADER {"Signature", {0x8, UNKNOWN}}, {"NextPage", {0x0, _SINGLE_LIST_ENTRY | POINTER}}, {"VerifierEntry", {0x4, UNKNOWN | POINTER}}, }, { // _KGATE {"Header", {0x0, _DISPATCHER_HEADER}}, }, { // __unnamed_12de {"Type3InputBuffer", {0xc, UNKNOWN | POINTER}}, {"OutputBufferLength", {0x0, UNKNOWN}}, {"IoControlCode", {0x8, UNKNOWN}}, {"InputBufferLength", {0x4, UNKNOWN}}, }, { // __unnamed_12dc {"Length", {0x0, _LARGE_INTEGER | POINTER}}, {"ByteOffset", {0x8, _LARGE_INTEGER}}, {"Key", {0x4, UNKNOWN}}, }, { // _HEAP_ENTRY {"SubSegmentCode", {0x0, UNKNOWN | POINTER}}, {"FunctionIndex", {0x0, UNKNOWN}}, {"ExtendedBlockSignature", {0x7, UNKNOWN}}, {"InterceptorValue", {0x0, UNKNOWN}}, {"Code4", {0x7, UNKNOWN}}, {"AgregateCode", {0x0, UNKNOWN}}, {"SegmentOffset", {0x6, UNKNOWN}}, {"SmallTagIndex", {0x3, UNKNOWN}}, {"Code2", {0x4, UNKNOWN}}, {"UnusedBytes", {0x7, UNKNOWN}}, {"UnusedBytesLength", {0x4, UNKNOWN}}, {"Code3", {0x6, UNKNOWN}}, {"Flags", {0x2, UNKNOWN}}, {"Code1", {0x0, UNKNOWN}}, {"PreviousSize", {0x4, UNKNOWN}}, {"LFHFlags", {0x6, UNKNOWN}}, {"ContextValue", {0x2, UNKNOWN}}, {"EntryOffset", {0x6, UNKNOWN}}, {"Size", {0x0, UNKNOWN}}, }, { // _POOL_BLOCK_HEAD {"Header", {0x0, _POOL_HEADER}}, {"List", {0x8, _LIST_ENTRY}}, }, { // _OBJECT_HANDLE_COUNT_ENTRY {"Process", {0x0, _EPROCESS | POINTER}}, {"LockCount", {0x4, UNKNOWN}}, {"HandleCount", {0x4, UNKNOWN}}, }, { // _SINGLE_LIST_ENTRY {"Next", {0x0, _SINGLE_LIST_ENTRY | POINTER}}, }, { // __unnamed_12cb {"CompletionFilter", {0x4, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, }, { // _OBJECT_TYPE_INITIALIZER {"UseDefaultObject", {0x2, UNKNOWN}}, {"OpenProcedure", {0x34, UNKNOWN | POINTER}}, {"ValidAccessMask", {0x1c, UNKNOWN}}, {"CaseInsensitive", {0x2, UNKNOWN}}, {"DumpProcedure", {0x30, UNKNOWN | POINTER}}, {"InvalidAttributes", {0x8, UNKNOWN}}, {"ObjectTypeCode", {0x4, UNKNOWN}}, {"DefaultNonPagedPoolCharge", {0x2c, UNKNOWN}}, {"GenericMapping", {0xc, _GENERIC_MAPPING}}, {"SecurityRequired", {0x2, UNKNOWN}}, {"ObjectTypeFlags", {0x2, UNKNOWN}}, {"OkayToCloseProcedure", {0x4c, UNKNOWN | POINTER}}, {"SecurityProcedure", {0x44, UNKNOWN | POINTER}}, {"DeleteProcedure", {0x3c, UNKNOWN | POINTER}}, {"UnnamedObjectsOnly", {0x2, UNKNOWN}}, {"DefaultPagedPoolCharge", {0x28, UNKNOWN}}, {"CloseProcedure", {0x38, UNKNOWN | POINTER}}, {"SupportsObjectCallbacks", {0x2, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, {"MaintainTypeList", {0x2, UNKNOWN}}, {"QueryNameProcedure", {0x48, UNKNOWN | POINTER}}, {"MaintainHandleCount", {0x2, UNKNOWN}}, {"PoolType", {0x24, UNKNOWN}}, {"ParseProcedure", {0x40, UNKNOWN | POINTER}}, {"RetainAccess", {0x20, UNKNOWN}}, }, { // __unnamed_12cf {"FileInformationClass", {0x4, UNKNOWN}}, {"AdvanceOnly", {0xd, UNKNOWN}}, {"ClusterCount", {0xc, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, {"DeleteHandle", {0xc, UNKNOWN | POINTER}}, {"ReplaceIfExists", {0xc, UNKNOWN}}, {"FileObject", {0x8, _FILE_OBJECT | POINTER}}, }, { // _ARBITER_ALTERNATIVE {"Priority", {0x20, UNKNOWN}}, {"Descriptor", {0x28, _IO_RESOURCE_DESCRIPTOR | POINTER}}, {"Length", {0x10, UNKNOWN}}, {"Minimum", {0x0, UNKNOWN}}, {"Flags", {0x24, UNKNOWN}}, {"Reserved", {0x2c, UNKNOWN}}, {"Maximum", {0x8, UNKNOWN}}, {"Alignment", {0x18, UNKNOWN}}, }, { // __unnamed_12cd {"Length", {0x0, UNKNOWN}}, {"FileInformationClass", {0x4, UNKNOWN}}, }, { // _DESCRIPTOR {"Limit", {0x2, UNKNOWN}}, {"Base", {0x4, UNKNOWN}}, {"Pad", {0x0, UNKNOWN}}, }, { // __unnamed_19c2 {"s1", {0x0, __unnamed_19c0}}, {"State", {0x0, UNKNOWN}}, }, { // _KERNEL_STACK_SEGMENT {"InitialStack", {0xc, UNKNOWN}}, {"StackLimit", {0x4, UNKNOWN}}, {"ActualLimit", {0x10, UNKNOWN}}, {"KernelStack", {0x8, UNKNOWN}}, {"StackBase", {0x0, UNKNOWN}}, }, { // __unnamed_12d9 {"Type3InputBuffer", {0xc, UNKNOWN | POINTER}}, {"OutputBufferLength", {0x0, UNKNOWN}}, {"FsControlCode", {0x8, UNKNOWN}}, {"InputBufferLength", {0x4, UNKNOWN}}, }, { // __unnamed_12d7 {"FsInformationClass", {0x4, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, }, { // __unnamed_12d3 {"Length", {0x0, UNKNOWN}}, }, { // __unnamed_12d1 {"Length", {0x0, UNKNOWN}}, {"EaList", {0x4, UNKNOWN | POINTER}}, {"EaListLength", {0x8, UNKNOWN}}, {"EaIndex", {0xc, UNKNOWN}}, }, { // _DBGKD_LOAD_SYMBOLS32 {"ProcessId", {0x8, UNKNOWN}}, {"PathNameLength", {0x0, UNKNOWN}}, {"CheckSum", {0xc, UNKNOWN}}, {"BaseOfDll", {0x4, UNKNOWN}}, {"SizeOfImage", {0x10, UNKNOWN}}, {"UnloadSymbols", {0x14, UNKNOWN}}, }, { // _ETW_BUFFER_CONTEXT {"ProcessorNumber", {0x0, UNKNOWN}}, {"LoggerId", {0x2, UNKNOWN}}, {"Alignment", {0x1, UNKNOWN}}, }, { // _RTLP_RANGE_LIST_ENTRY {"Start", {0x0, UNKNOWN}}, {"PublicFlags", {0x19, UNKNOWN}}, {"End", {0x8, UNKNOWN}}, {"Attributes", {0x18, UNKNOWN}}, {"Allocated", {0x10, __unnamed_216f}}, {"PrivateFlags", {0x1a, UNKNOWN}}, {"Merged", {0x10, __unnamed_2171}}, {"ListEntry", {0x1c, _LIST_ENTRY}}, }, { // _OBJECT_REF_INFO {"NextPos", {0x18, UNKNOWN}}, {"MaxStacks", {0x1a, UNKNOWN}}, {"StackInfo", {0x1c, UNKNOWN}}, {"ObjectHeader", {0x0, _OBJECT_HEADER | POINTER}}, {"NextRef", {0x4, UNKNOWN | POINTER}}, {"ImageFileName", {0x8, UNKNOWN}}, }, { // _PROC_HISTORY_ENTRY {"Frequency", {0x2, UNKNOWN}}, {"Reserved", {0x3, UNKNOWN}}, {"Utility", {0x0, UNKNOWN}}, }, { // _TXN_PARAMETER_BLOCK {"TxFsContext", {0x2, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, {"TransactionObject", {0x4, UNKNOWN | POINTER}}, }, { // _DBGKD_CONTINUE2 {"AnyControlSet", {0x4, _DBGKD_ANY_CONTROL_SET}}, {"ControlSet", {0x4, _X86_DBGKD_CONTROL_SET}}, {"ContinueStatus", {0x0, UNKNOWN}}, }, { // __unnamed_14f6 {"ReferenceCount", {0x0, UNKNOWN}}, {"e1", {0x2, _MMPFNENTRY}}, {"e2", {0x0, __unnamed_14f4}}, }, { // _MMSESSION {"SystemSpaceViewLock", {0x0, _KGUARDED_MUTEX}}, {"BitmapFailures", {0x34, UNKNOWN}}, {"SystemSpaceHashSize", {0x28, UNKNOWN}}, {"SystemSpaceViewLockPointer", {0x20, _KGUARDED_MUTEX | POINTER}}, {"SystemSpaceViewTable", {0x24, _MMVIEW | POINTER}}, {"SystemSpaceHashKey", {0x30, UNKNOWN}}, {"SystemSpaceHashEntries", {0x2c, UNKNOWN}}, }, { // __unnamed_14f4 {"ReferenceCount", {0x0, UNKNOWN}}, {"ShortFlags", {0x2, UNKNOWN}}, {"VolatileReferenceCount", {0x0, UNKNOWN}}, }, { // _XSAVE_FORMAT {"ErrorOffset", {0x8, UNKNOWN}}, {"ErrorOpcode", {0x6, UNKNOWN}}, {"Cr0NpxState", {0x1fc, UNKNOWN}}, {"ErrorSelector", {0xc, UNKNOWN}}, {"StackControl", {0x1e0, UNKNOWN}}, {"MxCsr", {0x18, UNKNOWN}}, {"FloatRegisters", {0x20, UNKNOWN}}, {"XmmRegisters", {0xa0, UNKNOWN}}, {"DataOffset", {0x10, UNKNOWN}}, {"ControlWord", {0x0, UNKNOWN}}, {"MxCsr_Mask", {0x1c, UNKNOWN}}, {"DataSelector", {0x14, UNKNOWN}}, {"TagWord", {0x4, UNKNOWN}}, {"StatusWord", {0x2, UNKNOWN}}, {"Reserved4", {0x120, UNKNOWN}}, {"Reserved1", {0x5, UNKNOWN}}, {"Reserved3", {0x16, UNKNOWN}}, {"Reserved2", {0xe, UNKNOWN}}, }, { // __unnamed_14f1 {"ShareCount", {0x0, UNKNOWN}}, {"ImageProtoPte", {0x0, _MMPTE | POINTER}}, {"Blink", {0x0, UNKNOWN}}, }, { // _MMPFN {"PteLong", {0x8, UNKNOWN}}, {"AweReferenceCount", {0x10, UNKNOWN}}, {"VolatilePteAddress", {0x8, UNKNOWN | POINTER}}, {"Lock", {0x8, UNKNOWN}}, {"PteAddress", {0x8, _MMPTE | POINTER}}, {"OriginalPte", {0x10, _MMPTE}}, {"u1", {0x0, __unnamed_14ef}}, {"u4", {0x14, __unnamed_14fb}}, {"u3", {0xc, __unnamed_14f6}}, {"u2", {0x4, __unnamed_14f1}}, }, { // _POP_THERMAL_ZONE {"Info", {0x84, _THERMAL_INFORMATION_EX}}, {"PendingActivePoint", {0xd, UNKNOWN}}, {"Metrics", {0xe8, _POP_THERMAL_ZONE_METRICS}}, {"Throttle", {0x10, UNKNOWN}}, {"Irp", {0x80, _IRP | POINTER}}, {"LastTemp", {0x24, UNKNOWN}}, {"OverThrottled", {0x70, _POP_ACTION_TRIGGER}}, {"PassiveDpc", {0x50, _KDPC}}, {"State", {0x8, UNKNOWN}}, {"Link", {0x0, _LIST_ENTRY}}, {"Mode", {0xa, UNKNOWN}}, {"InfoLastUpdateTime", {0xe0, _LARGE_INTEGER}}, {"PendingMode", {0xb, UNKNOWN}}, {"Flags", {0x9, UNKNOWN}}, {"SampleRate", {0x20, UNKNOWN}}, {"LastTime", {0x18, UNKNOWN}}, {"PassiveTimer", {0x28, _KTIMER}}, {"ActivePoint", {0xc, UNKNOWN}}, }, { // _PLUGPLAY_EVENT_BLOCK {"DeviceObject", {0x20, UNKNOWN | POINTER}}, {"TotalSize", {0x1c, UNKNOWN}}, {"EventCategory", {0x10, UNKNOWN}}, {"EventGuid", {0x0, _GUID}}, {"Flags", {0x18, UNKNOWN}}, {"Result", {0x14, UNKNOWN | POINTER}}, {"u", {0x24, __unnamed_1ea6}}, }, { // _MMVIEW {"ControlArea", {0x4, _CONTROL_AREA | POINTER}}, {"Writable", {0x4, UNKNOWN}}, {"SessionId", {0x14, UNKNOWN}}, {"SessionViewVa", {0x10, UNKNOWN | POINTER}}, {"Entry", {0x0, UNKNOWN}}, {"ViewLinks", {0x8, _LIST_ENTRY}}, }, { // _DEVICE_NODE {"ChildInterfaceType", {0xfc, UNKNOWN}}, {"CapabilityFlags", {0x138, UNKNOWN}}, {"NumaNodeIndex", {0x16c, UNKNOWN}}, {"Parent", {0x8, _DEVICE_NODE | POINTER}}, {"OverrideFlags", {0x180, UNKNOWN}}, {"InterfaceType", {0xf4, UNKNOWN}}, {"NoArbiterMask", {0x124, UNKNOWN}}, {"UserFlags", {0xdc, UNKNOWN}}, {"BootResourcesTranslated", {0x134, _CM_RESOURCE_LIST | POINTER}}, {"PreviousState", {0x7c, UNKNOWN}}, {"StateHistoryEntry", {0xd0, UNKNOWN}}, {"TargetDeviceNotify", {0x108, _LIST_ENTRY}}, {"Level", {0x28, UNKNOWN}}, {"Child", {0x4, _DEVICE_NODE | POINTER}}, {"ResourceListTranslated", {0xe8, _CM_RESOURCE_LIST | POINTER}}, {"BootResources", {0x130, _CM_RESOURCE_LIST | POINTER}}, {"QueryArbiterMask", {0x126, UNKNOWN}}, {"Problem", {0xe0, UNKNOWN}}, {"QueryTranslatorMask", {0x122, UNKNOWN}}, {"ChildBusTypeIndex", {0x104, UNKNOWN}}, {"PendingIrp", {0x24, _IRP | POINTER}}, {"RemovalPolicy", {0x106, UNKNOWN}}, {"Sibling", {0x0, _DEVICE_NODE | POINTER}}, {"DisableableDepends", {0x14c, UNKNOWN}}, {"Notify", {0x2c, _PO_DEVICE_NOTIFY}}, {"ResourceRequirements", {0xf0, _IO_RESOURCE_REQUIREMENTS_LIST | POINTER}}, {"StateHistory", {0x80, UNKNOWN}}, {"PendedSetInterfaceState", {0x150, _LIST_ENTRY}}, {"OverUsed2", {0x12c, __unnamed_1742}}, {"PendingEjectRelations", {0x184, _PENDING_RELATIONS_LIST_ENTRY | POINTER}}, {"OverUsed1", {0x128, __unnamed_1740}}, {"PhysicalDeviceObject", {0x10, _DEVICE_OBJECT | POINTER}}, {"State", {0x78, UNKNOWN}}, {"NoTranslatorMask", {0x120, UNKNOWN}}, {"CompletionStatus", {0xd4, UNKNOWN}}, {"DeviceArbiterList", {0x110, _LIST_ENTRY}}, {"PreviousParent", {0x164, _DEVICE_NODE | POINTER}}, {"DeviceTranslatorList", {0x118, _LIST_ENTRY}}, {"LegacyBusListEntry", {0x158, _LIST_ENTRY}}, {"ChildBusNumber", {0x100, UNKNOWN}}, {"DockInfo", {0x13c, __unnamed_1746}}, {"DriverUnloadRetryCount", {0x160, UNKNOWN}}, {"ContainerID", {0x170, _GUID}}, {"InstancePath", {0x14, _UNICODE_STRING}}, {"HardwareRemovalPolicy", {0x107, UNKNOWN}}, {"ResourceList", {0xe4, _CM_RESOURCE_LIST | POINTER}}, {"ServiceName", {0x1c, _UNICODE_STRING}}, {"Flags", {0xd8, UNKNOWN}}, {"DuplicatePDO", {0xec, _DEVICE_OBJECT | POINTER}}, {"RequiresUnloadedDriver", {0x181, UNKNOWN}}, {"BusNumber", {0xf8, UNKNOWN}}, {"DeletedChildren", {0x168, UNKNOWN}}, {"PoIrpManager", {0x68, _PO_IRP_MANAGER}}, {"LastChild", {0xc, _DEVICE_NODE | POINTER}}, }, { // _CHILD_LIST {"Count", {0x0, UNKNOWN}}, {"List", {0x4, UNKNOWN}}, }, { // _MMPTE_PROTOTYPE {"Prototype", {0x0, UNKNOWN}}, {"ReadOnly", {0x0, UNKNOWN}}, {"Valid", {0x0, UNKNOWN}}, {"ProtoAddressHigh", {0x0, UNKNOWN}}, {"ProtoAddressLow", {0x0, UNKNOWN}}, }, { // _DBGKD_SET_CONTEXT {"ContextFlags", {0x0, UNKNOWN}}, }, { // _GDI_TEB_BATCH64 {"Buffer", {0x10, UNKNOWN}}, {"HDC", {0x8, UNKNOWN}}, {"Offset", {0x0, UNKNOWN}}, }, { // _XSAVE_AREA {"Header", {0x200, _XSAVE_AREA_HEADER}}, {"LegacyState", {0x0, _XSAVE_FORMAT}}, }, { // _SEGMENT {"SegmentLock", {0x1c, _EX_PUSH_LOCK}}, {"TotalNumberOfPtes", {0x4, UNKNOWN}}, {"SegmentFlags", {0x8, _SEGMENT_FLAGS}}, {"ControlArea", {0x0, _CONTROL_AREA | POINTER}}, {"ThePtes", {0x2c, UNKNOWN}}, {"u1", {0x20, __unnamed_218f}}, {"ExtendInfo", {0x18, _MMEXTEND_INFO | POINTER}}, {"u2", {0x24, __unnamed_2193}}, {"NumberOfCommittedPages", {0xc, UNKNOWN}}, {"SizeOfSegment", {0x10, UNKNOWN}}, {"BasedAddress", {0x18, UNKNOWN | POINTER}}, {"PrototypePte", {0x28, _MMPTE | POINTER}}, }, { // _BLOB {"Pad", {0x14, UNKNOWN}}, {"CachedReferences", {0xa, UNKNOWN}}, {"Lock", {0x10, _EX_PUSH_LOCK}}, {"ResourceList", {0x0, _LIST_ENTRY}}, {"ResourceId", {0x9, UNKNOWN}}, {"ReferenceCount", {0xc, UNKNOWN}}, {"FreeListEntry", {0x0, _SINGLE_LIST_ENTRY}}, {"u1", {0x8, __unnamed_1980}}, }, { // _SECTION_IMAGE_INFORMATION {"DllCharacteristics", {0x1e, UNKNOWN}}, {"SubSystemMajorVersion", {0x16, UNKNOWN}}, {"ImageFileSize", {0x28, UNKNOWN}}, {"Machine", {0x20, UNKNOWN}}, {"CommittedStackSize", {0xc, UNKNOWN}}, {"LoaderFlags", {0x24, UNKNOWN}}, {"MaximumStackSize", {0x8, UNKNOWN}}, {"ImageContainsCode", {0x22, UNKNOWN}}, {"ImageCharacteristics", {0x1c, UNKNOWN}}, {"ZeroBits", {0x4, UNKNOWN}}, {"ComPlusILOnly", {0x23, UNKNOWN}}, {"GpValue", {0x18, UNKNOWN}}, {"SubSystemType", {0x10, UNKNOWN}}, {"ImageDynamicallyRelocated", {0x23, UNKNOWN}}, {"ImageMappedFlat", {0x23, UNKNOWN}}, {"Reserved", {0x23, UNKNOWN}}, {"ImageFlags", {0x23, UNKNOWN}}, {"CheckSum", {0x2c, UNKNOWN}}, {"ComPlusNativeReady", {0x23, UNKNOWN}}, {"TransferAddress", {0x0, UNKNOWN | POINTER}}, {"SubSystemMinorVersion", {0x14, UNKNOWN}}, {"SubSystemVersion", {0x14, UNKNOWN}}, }, { // _FS_FILTER_CALLBACKS {"PostAcquireForSectionSynchronization", {0xc, UNKNOWN | POINTER}}, {"PreAcquireForModifiedPageWriter", {0x28, UNKNOWN | POINTER}}, {"PreReleaseForSectionSynchronization", {0x10, UNKNOWN | POINTER}}, {"PreReleaseForModifiedPageWriter", {0x30, UNKNOWN | POINTER}}, {"PreAcquireForSectionSynchronization", {0x8, UNKNOWN | POINTER}}, {"PostReleaseForModifiedPageWriter", {0x34, UNKNOWN | POINTER}}, {"SizeOfFsFilterCallbacks", {0x0, UNKNOWN}}, {"PostReleaseForSectionSynchronization", {0x14, UNKNOWN | POINTER}}, {"Reserved", {0x4, UNKNOWN}}, {"PostReleaseForCcFlush", {0x24, UNKNOWN | POINTER}}, {"PostAcquireForModifiedPageWriter", {0x2c, UNKNOWN | POINTER}}, {"PostAcquireForCcFlush", {0x1c, UNKNOWN | POINTER}}, {"PreReleaseForCcFlush", {0x20, UNKNOWN | POINTER}}, {"PreAcquireForCcFlush", {0x18, UNKNOWN | POINTER}}, }, { // _SE_AUDIT_PROCESS_CREATION_INFO {"ImageFileName", {0x0, _OBJECT_NAME_INFORMATION | POINTER}}, }, { // __unnamed_14fb {"PteFrame", {0x0, UNKNOWN}}, {"PrototypePte", {0x0, UNKNOWN}}, {"AweAllocation", {0x0, UNKNOWN}}, {"PfnImageVerified", {0x0, UNKNOWN}}, {"PageColor", {0x0, UNKNOWN}}, }, { // _HEAP_FREE_ENTRY {"SubSegmentCode", {0x0, UNKNOWN | POINTER}}, {"FunctionIndex", {0x0, UNKNOWN}}, {"ExtendedBlockSignature", {0x7, UNKNOWN}}, {"InterceptorValue", {0x0, UNKNOWN}}, {"Code4", {0x7, UNKNOWN}}, {"AgregateCode", {0x0, UNKNOWN}}, {"SegmentOffset", {0x6, UNKNOWN}}, {"SmallTagIndex", {0x3, UNKNOWN}}, {"Code2", {0x4, UNKNOWN}}, {"UnusedBytes", {0x7, UNKNOWN}}, {"UnusedBytesLength", {0x4, UNKNOWN}}, {"Code3", {0x6, UNKNOWN}}, {"Flags", {0x2, UNKNOWN}}, {"FreeList", {0x8, _LIST_ENTRY}}, {"Code1", {0x0, UNKNOWN}}, {"PreviousSize", {0x4, UNKNOWN}}, {"LFHFlags", {0x6, UNKNOWN}}, {"ContextValue", {0x2, UNKNOWN}}, {"EntryOffset", {0x6, UNKNOWN}}, {"Size", {0x0, UNKNOWN}}, }, { // _DBGKD_WRITE_MEMORY64 {"ActualBytesWritten", {0xc, UNKNOWN}}, {"TransferCount", {0x8, UNKNOWN}}, {"TargetBaseAddress", {0x0, UNKNOWN}}, }, { // _IO_COMPLETION_CONTEXT {"Port", {0x0, UNKNOWN | POINTER}}, {"Key", {0x4, UNKNOWN | POINTER}}, }, { // __unnamed_14ad {"Subsect", {0x0, _MMPTE_SUBSECTION}}, {"List", {0x0, _MMPTE_LIST}}, {"Trans", {0x0, _MMPTE_TRANSITION}}, {"TimeStamp", {0x0, _MMPTE_TIMESTAMP}}, {"Flush", {0x0, _HARDWARE_PTE}}, {"Soft", {0x0, _MMPTE_SOFTWARE}}, {"VolatileLong", {0x0, UNKNOWN}}, {"Hard", {0x0, _MMPTE_HARDWARE}}, {"Proto", {0x0, _MMPTE_PROTOTYPE}}, {"Long", {0x0, UNKNOWN}}, }, { // __unnamed_20df {"LongFlags", {0x0, UNKNOWN}}, {"Flags", {0x0, _MM_SESSION_SPACE_FLAGS}}, }, { // _IMAGE_DEBUG_DIRECTORY {"TimeDateStamp", {0x4, UNKNOWN}}, {"PointerToRawData", {0x18, UNKNOWN}}, {"MinorVersion", {0xa, UNKNOWN}}, {"MajorVersion", {0x8, UNKNOWN}}, {"Characteristics", {0x0, UNKNOWN}}, {"Type", {0xc, UNKNOWN}}, {"SizeOfData", {0x10, UNKNOWN}}, {"AddressOfRawData", {0x14, UNKNOWN}}, }, { // __unnamed_1c68 {"BaseMid", {0x0, UNKNOWN}}, {"BaseHi", {0x3, UNKNOWN}}, {"Flags1", {0x1, UNKNOWN}}, {"Flags2", {0x2, UNKNOWN}}, }, { // _IMAGE_ROM_OPTIONAL_HEADER {"Magic", {0x0, UNKNOWN}}, {"BaseOfCode", {0x14, UNKNOWN}}, {"MajorLinkerVersion", {0x2, UNKNOWN}}, {"GpValue", {0x34, UNKNOWN}}, {"CprMask", {0x24, UNKNOWN}}, {"GprMask", {0x20, UNKNOWN}}, {"BaseOfData", {0x18, UNKNOWN}}, {"AddressOfEntryPoint", {0x10, UNKNOWN}}, {"SizeOfCode", {0x4, UNKNOWN}}, {"SizeOfUninitializedData", {0xc, UNKNOWN}}, {"SizeOfInitializedData", {0x8, UNKNOWN}}, {"MinorLinkerVersion", {0x3, UNKNOWN}}, {"BaseOfBss", {0x1c, UNKNOWN}}, }, { // _WAIT_CONTEXT_BLOCK {"NumberOfMapRegisters", {0x18, UNKNOWN}}, {"DeviceObject", {0x1c, UNKNOWN | POINTER}}, {"DeviceRoutine", {0x10, UNKNOWN | POINTER}}, {"BufferChainingDpc", {0x24, _KDPC | POINTER}}, {"CurrentIrp", {0x20, UNKNOWN | POINTER}}, {"DeviceContext", {0x14, UNKNOWN | POINTER}}, {"WaitQueueEntry", {0x0, _KDEVICE_QUEUE_ENTRY}}, }, { // _MMVAD_FLAGS3 {"Spare2", {0x0, UNKNOWN}}, {"Teb", {0x0, UNKNOWN}}, {"SequentialAccess", {0x0, UNKNOWN}}, {"PreferredNode", {0x0, UNKNOWN}}, {"LastSequentialTrim", {0x0, UNKNOWN}}, {"Spare", {0x0, UNKNOWN}}, }, { // _MMVAD_FLAGS2 {"FileOffset", {0x0, UNKNOWN}}, {"Spare", {0x0, UNKNOWN}}, {"Inherit", {0x0, UNKNOWN}}, {"CopyOnWrite", {0x0, UNKNOWN}}, {"SecNoChange", {0x0, UNKNOWN}}, {"LongVad", {0x0, UNKNOWN}}, {"ExtendableFile", {0x0, UNKNOWN}}, {"OneSecured", {0x0, UNKNOWN}}, {"MultipleSecured", {0x0, UNKNOWN}}, }, { // __unnamed_1f8a {"Disk", {0x0, __unnamed_1f88}}, }, { // _VI_TRACK_IRQL {"StackTrace", {0xc, UNKNOWN}}, {"OldIrql", {0x4, UNKNOWN}}, {"Thread", {0x0, UNKNOWN | POINTER}}, {"NewIrql", {0x5, UNKNOWN}}, {"TickCount", {0x8, UNKNOWN}}, {"Processor", {0x6, UNKNOWN}}, }, { // _ARBITER_ORDERING_LIST {"Count", {0x0, UNKNOWN}}, {"Orderings", {0x4, _ARBITER_ORDERING | POINTER}}, {"Maximum", {0x2, UNKNOWN}}, }, { // __unnamed_1e1e {"UserData", {0x0, UNKNOWN}}, {"Next", {0x0, UNKNOWN}}, }, { // _PNP_RESOURCE_REQUEST {"Priority", {0xc, UNKNOWN}}, {"Status", {0x24, UNKNOWN}}, {"Flags", {0x4, UNKNOWN}}, {"TranslatedResourceAssignment", {0x20, _CM_RESOURCE_LIST | POINTER}}, {"Position", {0x10, UNKNOWN}}, {"ResourceRequirements", {0x14, _IO_RESOURCE_REQUIREMENTS_LIST | POINTER}}, {"AllocationType", {0x8, UNKNOWN}}, {"ReqList", {0x18, UNKNOWN | POINTER}}, {"ResourceAssignment", {0x1c, _CM_RESOURCE_LIST | POINTER}}, {"PhysicalDevice", {0x0, _DEVICE_OBJECT | POINTER}}, }, { // _MMSUBSECTION_FLAGS {"SubsectionStatic", {0x2, UNKNOWN}}, {"StartingSector4132", {0x0, UNKNOWN}}, {"Protection", {0x0, UNKNOWN}}, {"SubsectionAccessed", {0x0, UNKNOWN}}, {"SectorEndOffset", {0x2, UNKNOWN}}, {"Spare", {0x2, UNKNOWN}}, {"GlobalMemory", {0x2, UNKNOWN}}, {"DirtyPages", {0x2, UNKNOWN}}, }, { // __unnamed_1f65 {"Start", {0x0, _LARGE_INTEGER}}, {"Length64", {0x8, UNKNOWN}}, }, { // __unnamed_1f67 {"Dma", {0x0, __unnamed_1f5b}}, {"MessageInterrupt", {0x0, __unnamed_1f59}}, {"Generic", {0x0, __unnamed_1f53}}, {"Memory", {0x0, __unnamed_1f53}}, {"BusNumber", {0x0, __unnamed_1f5d}}, {"DeviceSpecificData", {0x0, __unnamed_1f5f}}, {"Memory48", {0x0, __unnamed_1f63}}, {"Memory40", {0x0, __unnamed_1f61}}, {"DevicePrivate", {0x0, __unnamed_1e3f}}, {"Memory64", {0x0, __unnamed_1f65}}, {"Interrupt", {0x0, __unnamed_1f55}}, {"Port", {0x0, __unnamed_1f53}}, }, { // _RTL_DYNAMIC_HASH_TABLE_ENTRY {"Linkage", {0x0, _LIST_ENTRY}}, {"Signature", {0x8, UNKNOWN}}, }, { // _LPCP_MESSAGE {"FreeEntry", {0x0, _SINGLE_LIST_ENTRY}}, {"SenderPort", {0x8, UNKNOWN | POINTER}}, {"RepliedToThread", {0xc, _ETHREAD | POINTER}}, {"Request", {0x18, _PORT_MESSAGE}}, {"PortContext", {0x10, UNKNOWN | POINTER}}, {"Entry", {0x0, _LIST_ENTRY}}, {"Reserved0", {0x4, UNKNOWN}}, }, { // __unnamed_1ec1 {"IncreasePolicy", {0x0, UNKNOWN}}, {"DecreasePolicy", {0x0, UNKNOWN}}, {"AsUCHAR", {0x0, UNKNOWN}}, {"NoDomainAccounting", {0x0, UNKNOWN}}, {"Reserved", {0x0, UNKNOWN}}, }, { // _CM_KEY_CONTROL_BLOCK {"KCBLock", {0x80, _CM_INTENT_LOCK}}, {"NextHash", {0x10, _CM_KEY_HASH | POINTER}}, {"SharedCount", {0x20, UNKNOWN}}, {"HashKey", {0x3c, UNKNOWN}}, {"KeyBodyListHead", {0x40, _LIST_ENTRY}}, {"PrivateAlloc", {0x4, UNKNOWN}}, {"DelayedClose", {0x8, UNKNOWN}}, {"KcbUserFlags", {0x68, UNKNOWN}}, {"DelayQueueEntry", {0x74, _LIST_ENTRY}}, {"ConvKey", {0xc, UNKNOWN}}, {"TransValueCache", {0x90, _CHILD_LIST}}, {"KcbMaxNameLen", {0x60, UNKNOWN}}, {"FreeListEntry", {0x40, _LIST_ENTRY}}, {"NameBlock", {0x2c, _CM_NAME_CONTROL_BLOCK | POINTER}}, {"KeyHive", {0x14, _HHIVE | POINTER}}, {"Parking", {0x8, UNKNOWN}}, {"ExtFlags", {0x4, UNKNOWN}}, {"RefCount", {0x0, UNKNOWN}}, {"ParentKcb", {0x28, _CM_KEY_CONTROL_BLOCK | POINTER}}, {"LockTablePresent", {0x4, UNKNOWN}}, {"Stolen", {0x74, UNKNOWN | POINTER}}, {"KeyCell", {0x18, UNKNOWN}}, {"TransKCBOwner", {0x7c, _CM_TRANS | POINTER}}, {"TotalLevels", {0x4, UNKNOWN}}, {"TransValueListOwner", {0x98, _CM_TRANS | POINTER}}, {"KeyHash", {0xc, _CM_KEY_HASH}}, {"KCBUoWListHead", {0x6c, _LIST_ENTRY}}, {"KcbPushlock", {0x1c, _EX_PUSH_LOCK}}, {"Decommissioned", {0x4, UNKNOWN}}, {"KcbVirtControlFlags", {0x68, UNKNOWN}}, {"KeyLock", {0x88, _CM_INTENT_LOCK}}, {"KcbDebug", {0x68, UNKNOWN}}, {"CachedSecurity", {0x30, _CM_KEY_SECURITY_CACHE | POINTER}}, {"Flags", {0x68, UNKNOWN}}, {"KcbMaxValueNameLen", {0x62, UNKNOWN}}, {"KcbMaxValueDataLen", {0x64, UNKNOWN}}, {"Delete", {0x4, UNKNOWN}}, {"KeyBodyArray", {0x48, UNKNOWN}}, {"HiveUnloaded", {0x4, UNKNOWN}}, {"KcbLastWriteTime", {0x58, _LARGE_INTEGER}}, {"FullKCBName", {0x9c, _UNICODE_STRING | POINTER}}, {"ValueCache", {0x34, _CACHED_CHILD_LIST}}, {"DelayedDeref", {0x8, UNKNOWN}}, {"Owner", {0x20, _KTHREAD | POINTER}}, {"SubKeyCount", {0x3c, UNKNOWN}}, {"IndexHint", {0x3c, _CM_INDEX_HINT_BLOCK | POINTER}}, {"SlotHint", {0x24, UNKNOWN}}, }, { // _RTL_CRITICAL_SECTION {"OwningThread", {0xc, UNKNOWN | POINTER}}, {"DebugInfo", {0x0, _RTL_CRITICAL_SECTION_DEBUG | POINTER}}, {"RecursionCount", {0x8, UNKNOWN}}, {"LockCount", {0x4, UNKNOWN}}, {"LockSemaphore", {0x10, UNKNOWN | POINTER}}, {"SpinCount", {0x14, UNKNOWN}}, }, { // _ARBITER_QUERY_CONFLICT_PARAMETERS {"Conflicts", {0xc, UNKNOWN | POINTER}}, {"ConflictingResource", {0x4, _IO_RESOURCE_DESCRIPTOR | POINTER}}, {"PhysicalDeviceObject", {0x0, _DEVICE_OBJECT | POINTER}}, {"ConflictCount", {0x8, UNKNOWN | POINTER}}, }, { // _SECURITY_DESCRIPTOR {"Control", {0x2, UNKNOWN}}, {"Group", {0x8, UNKNOWN | POINTER}}, {"Sacl", {0xc, _ACL | POINTER}}, {"Sbz1", {0x1, UNKNOWN}}, {"Owner", {0x4, UNKNOWN | POINTER}}, {"Dacl", {0x10, _ACL | POINTER}}, {"Revision", {0x0, UNKNOWN}}, }, { // _PS_CPU_QUOTA_BLOCK {"CpuCyclePercent", {0x4c, UNKNOWN}}, {"DuplicateInputMarker", {0x18, UNKNOWN}}, {"MiscFlags", {0x18, UNKNOWN}}, {"SessionId", {0x8, UNKNOWN}}, {"BlockCurrentGeneration", {0x48, UNKNOWN}}, {"CycleCredit", {0x40, UNKNOWN}}, {"Cpu", {0x80, UNKNOWN}}, {"Reserved", {0x18, UNKNOWN}}, {"CyclesAccumulated", {0x8, UNKNOWN}}, {"CpuShareWeight", {0xc, UNKNOWN}}, {"CapturedWeightData", {0x10, _PSP_CPU_SHARE_CAPTURED_WEIGHT_DATA}}, {"BlockCurrentGenerationLock", {0x0, UNKNOWN}}, {"CyclesFinishedForCurrentGeneration", {0x50, UNKNOWN}}, {"ListEntry", {0x0, _LIST_ENTRY}}, }, { // _PROCESSOR_NUMBER {"Reserved", {0x3, UNKNOWN}}, {"Group", {0x0, UNKNOWN}}, {"Number", {0x2, UNKNOWN}}, }, { // _EX_FAST_REF {"Object", {0x0, UNKNOWN | POINTER}}, {"Value", {0x0, UNKNOWN}}, {"RefCnt", {0x0, UNKNOWN}}, }, { // _HEAP_COUNTERS {"LastPolledSize", {0x50, UNKNOWN}}, {"InBlockCommitFailures", {0x34, UNKNOWN}}, {"LockCollisions", {0x24, UNKNOWN}}, {"InBlockDeccommits", {0x44, UNKNOWN}}, {"AllocAndFreeOps", {0x40, UNKNOWN}}, {"CompactHeapCalls", {0x38, UNKNOWN}}, {"HighWatermarkSize", {0x4c, UNKNOWN}}, {"InBlockDeccomitSize", {0x48, UNKNOWN}}, {"DeCommitOps", {0x1c, UNKNOWN}}, {"DecommittRate", {0x2c, UNKNOWN}}, {"CompactedUCRs", {0x3c, UNKNOWN}}, {"TotalMemoryLargeUCR", {0x8, UNKNOWN}}, {"TotalUCRs", {0x14, UNKNOWN}}, {"TotalSegments", {0x10, UNKNOWN}}, {"LockAcquires", {0x20, UNKNOWN}}, {"TotalMemoryCommitted", {0x4, UNKNOWN}}, {"CommitFailures", {0x30, UNKNOWN}}, {"CommitRate", {0x28, UNKNOWN}}, {"TotalMemoryReserved", {0x0, UNKNOWN}}, {"CommittOps", {0x18, UNKNOWN}}, {"TotalSizeInVirtualBlocks", {0xc, UNKNOWN}}, }, { // _TP_TASK {"PostGuard", {0xc, _TP_NBQ_GUARD}}, {"Callbacks", {0x0, _TP_TASK_CALLBACKS | POINTER}}, {"IdealProcessor", {0x8, UNKNOWN}}, {"NBQNode", {0x1c, UNKNOWN | POINTER}}, {"NumaNode", {0x4, UNKNOWN}}, }, { // __unnamed_1f88 {"IdleTime", {0x0, UNKNOWN}}, {"NonIdleTime", {0x4, UNKNOWN}}, }, { // __unnamed_18dd {"CriticalSection", {0x0, _RTL_CRITICAL_SECTION}}, }, { // _PPC_DBGKD_CONTROL_SET {"CurrentSymbolEnd", {0x8, UNKNOWN}}, {"Continue", {0x0, UNKNOWN}}, {"CurrentSymbolStart", {0x4, UNKNOWN}}, }, { // __unnamed_1f80 {"Balance", {0x0, UNKNOWN}}, {"Parent", {0x0, _MMSUBSECTION_NODE | POINTER}}, }, { // _OBJECT_HEADER_HANDLE_INFO {"HandleCountDataBase", {0x0, _OBJECT_HANDLE_COUNT_DATABASE | POINTER}}, {"SingleEntry", {0x0, _OBJECT_HANDLE_COUNT_ENTRY}}, }, { // __unnamed_1f6c {"VirtualSize", {0x0, UNKNOWN}}, {"PhysicalAddress", {0x0, UNKNOWN}}, }, { // _VACB {"ArrayHead", {0x18, _VACB_ARRAY_HEADER | POINTER}}, {"BaseAddress", {0x0, UNKNOWN | POINTER}}, {"SharedCacheMap", {0x4, _SHARED_CACHE_MAP | POINTER}}, {"Links", {0x10, _LIST_ENTRY}}, {"Overlay", {0x8, __unnamed_1866}}, }, { // _OWNER_ENTRY {"OwnerCount", {0x4, UNKNOWN}}, {"IoPriorityBoosted", {0x4, UNKNOWN}}, {"TableSize", {0x4, UNKNOWN}}, {"OwnerThread", {0x0, UNKNOWN}}, {"OwnerReferenced", {0x4, UNKNOWN}}, }, { // _RELATIVE_SYMLINK_INFO {"ExposedNamespaceLength", {0x0, UNKNOWN}}, {"Reserved", {0x6, UNKNOWN}}, {"InteriorMountPoint", {0x8, _RELATIVE_SYMLINK_INFO | POINTER}}, {"DeviceNameLength", {0x4, UNKNOWN}}, {"Flags", {0x2, UNKNOWN}}, {"OpenedName", {0xc, _UNICODE_STRING}}, }, { // _VACB_LEVEL_REFERENCE {"SpecialReference", {0x4, UNKNOWN}}, {"Reference", {0x0, UNKNOWN}}, }, { // _KEXECUTE_OPTIONS {"DisableExceptionChainValidation", {0x0, UNKNOWN}}, {"DisableThunkEmulation", {0x0, UNKNOWN}}, {"Permanent", {0x0, UNKNOWN}}, {"Spare", {0x0, UNKNOWN}}, {"ExecuteDisable", {0x0, UNKNOWN}}, {"ImageDispatchEnable", {0x0, UNKNOWN}}, {"ExecuteOptions", {0x0, UNKNOWN}}, {"ExecuteDispatchEnable", {0x0, UNKNOWN}}, {"ExecuteEnable", {0x0, UNKNOWN}}, }, { // _IMAGE_DATA_DIRECTORY {"VirtualAddress", {0x0, UNKNOWN}}, {"Size", {0x4, UNKNOWN}}, }, { // _KAPC_STATE {"Process", {0x10, _KPROCESS | POINTER}}, {"KernelApcInProgress", {0x14, UNKNOWN}}, {"KernelApcPending", {0x15, UNKNOWN}}, {"UserApcPending", {0x16, UNKNOWN}}, {"ApcListHead", {0x0, UNKNOWN}}, }, { // _DBGKD_GET_INTERNAL_BREAKPOINT32 {"MaxCallsPerPeriod", {0xc, UNKNOWN}}, {"TotalInstructions", {0x18, UNKNOWN}}, {"BreakpointAddress", {0x0, UNKNOWN}}, {"Calls", {0x8, UNKNOWN}}, {"MaxInstructions", {0x14, UNKNOWN}}, {"Flags", {0x4, UNKNOWN}}, {"MinInstructions", {0x10, UNKNOWN}}, }, { // _VPB {"VolumeLabel", {0x18, UNKNOWN}}, {"Flags", {0x4, UNKNOWN}}, {"DeviceObject", {0x8, _DEVICE_OBJECT | POINTER}}, {"RealDevice", {0xc, _DEVICE_OBJECT | POINTER}}, {"ReferenceCount", {0x14, UNKNOWN}}, {"SerialNumber", {0x10, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"VolumeLabelLength", {0x6, UNKNOWN}}, {"Size", {0x2, UNKNOWN}}, }, { // __unnamed_130c {"DeviceTextType", {0x0, UNKNOWN}}, {"LocaleId", {0x4, UNKNOWN}}, }, { // _RTL_DYNAMIC_HASH_TABLE_CONTEXT {"PrevLinkage", {0x4, _LIST_ENTRY | POINTER}}, {"ChainHead", {0x0, _LIST_ENTRY | POINTER}}, {"Signature", {0x8, UNKNOWN}}, }, { // _KAFFINITY_ENUMERATION_CONTEXT {"CurrentMask", {0x4, UNKNOWN}}, {"Affinity", {0x0, _KAFFINITY_EX | POINTER}}, {"CurrentIndex", {0x8, UNKNOWN}}, }, { // _SUBSECTION {"UnusedPtes", {0x10, UNKNOWN}}, {"u", {0x14, __unnamed_1ef2}}, {"NextSubsection", {0x8, _SUBSECTION | POINTER}}, {"ControlArea", {0x0, _CONTROL_AREA | POINTER}}, {"GlobalPerSessionHead", {0x10, _MM_AVL_TABLE | POINTER}}, {"PtesInSubsection", {0xc, UNKNOWN}}, {"NumberOfFullSectors", {0x1c, UNKNOWN}}, {"StartingSector", {0x18, UNKNOWN}}, {"SubsectionBase", {0x4, _MMPTE | POINTER}}, }, { // _HEAP_UCR_DESCRIPTOR {"SegmentEntry", {0x8, _LIST_ENTRY}}, {"Size", {0x14, UNKNOWN}}, {"ListEntry", {0x0, _LIST_ENTRY}}, {"Address", {0x10, UNKNOWN | POINTER}}, }, { // _MM_SESSION_SPACE_FLAGS {"WsInitialized", {0x0, UNKNOWN}}, {"DynamicVaInitialized", {0x0, UNKNOWN}}, {"DeletePending", {0x0, UNKNOWN}}, {"PoolDestroyed", {0x0, UNKNOWN}}, {"ObjectInitialized", {0x0, UNKNOWN}}, {"Initialized", {0x0, UNKNOWN}}, {"Filler", {0x0, UNKNOWN}}, {"PoolInitialized", {0x0, UNKNOWN}}, }, { // _CM_KEY_VALUE {"NameLength", {0x2, UNKNOWN}}, {"Flags", {0x10, UNKNOWN}}, {"Name", {0x14, UNKNOWN}}, {"DataLength", {0x4, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, {"Type", {0xc, UNKNOWN}}, {"Spare", {0x12, UNKNOWN}}, {"Data", {0x8, UNKNOWN}}, }, { // _DBGKD_SET_SPECIAL_CALL64 {"SpecialCall", {0x0, UNKNOWN}}, }, { // _XSTATE_CONFIGURATION {"OptimizedSave", {0xc, UNKNOWN}}, {"Features", {0x10, UNKNOWN}}, {"EnabledFeatures", {0x0, UNKNOWN}}, {"Size", {0x8, UNKNOWN}}, }, { // __unnamed_1f61 {"Length40", {0x8, UNKNOWN}}, {"Start", {0x0, _LARGE_INTEGER}}, }, { // _DBGKD_WRITE_BREAKPOINT64 {"BreakPointHandle", {0x8, UNKNOWN}}, {"BreakPointAddress", {0x0, UNKNOWN}}, }, { // __unnamed_1308 {"IdType", {0x0, UNKNOWN}}, }, { // _INITIAL_PRIVILEGE_SET {"PrivilegeCount", {0x0, UNKNOWN}}, {"Control", {0x4, UNKNOWN}}, {"Privilege", {0x8, UNKNOWN}}, }, { // __unnamed_1302 {"Buffer", {0x4, UNKNOWN | POINTER}}, {"WhichSpace", {0x0, UNKNOWN}}, {"Length", {0xc, UNKNOWN}}, {"Offset", {0x8, UNKNOWN}}, }, { // _ALPC_HANDLE_TABLE {"Lock", {0xc, _EX_PUSH_LOCK}}, {"Handles", {0x0, _ALPC_HANDLE_ENTRY | POINTER}}, {"TotalHandles", {0x4, UNKNOWN}}, {"Flags", {0x8, UNKNOWN}}, }, { // __unnamed_1304 {"Lock", {0x0, UNKNOWN}}, }, { // __unnamed_19a2 {"ForceUnlink", {0x0, UNKNOWN}}, {"WriteAccess", {0x0, UNKNOWN}}, {"AutoRelease", {0x0, UNKNOWN}}, }, { // __unnamed_19a4 {"s1", {0x0, __unnamed_19a2}}, }, { // _OPEN_PACKET {"Information", {0xc, UNKNOWN}}, {"EaBuffer", {0x30, UNKNOWN | POINTER}}, {"InternalFlags", {0x58, UNKNOWN}}, {"LocalFileObject", {0x54, _DUMMY_FILE_OBJECT | POINTER}}, {"MailslotOrPipeParameters", {0x4c, UNKNOWN | POINTER}}, {"Override", {0x50, UNKNOWN}}, {"DriverCreateContext", {0x5c, _IO_DRIVER_CREATE_CONTEXT}}, {"NetworkInformation", {0x44, _FILE_NETWORK_OPEN_INFORMATION | POINTER}}, {"Type", {0x0, UNKNOWN}}, {"ShareAccess", {0x2e, UNKNOWN}}, {"FileObject", {0x4, _FILE_OBJECT | POINTER}}, {"BasicInformation", {0x40, _FILE_BASIC_INFORMATION | POINTER}}, {"DeleteOnly", {0x52, UNKNOWN}}, {"RelatedFileObject", {0x14, _FILE_OBJECT | POINTER}}, {"FullAttributes", {0x53, UNKNOWN}}, {"Disposition", {0x3c, UNKNOWN}}, {"AllocationSize", {0x20, _LARGE_INTEGER}}, {"ParseCheck", {0x10, UNKNOWN}}, {"QueryOnly", {0x51, UNKNOWN}}, {"CreateFileType", {0x48, UNKNOWN}}, {"Options", {0x38, UNKNOWN}}, {"CreateOptions", {0x28, UNKNOWN}}, {"OriginalAttributes", {0x18, _OBJECT_ATTRIBUTES | POINTER}}, {"EaLength", {0x34, UNKNOWN}}, {"FinalStatus", {0x8, UNKNOWN}}, {"Size", {0x2, UNKNOWN}}, {"FileAttributes", {0x2c, UNKNOWN}}, }, { // __unnamed_1e9c {"NotificationCode", {0x0, UNKNOWN}}, {"NotificationData", {0x4, UNKNOWN}}, }, { // _PNP_DEVICE_ACTION_ENTRY {"CompletionStatus", {0x1c, UNKNOWN | POINTER}}, {"CompletionEvent", {0x18, _KEVENT | POINTER}}, {"DeviceObject", {0x8, _DEVICE_OBJECT | POINTER}}, {"RequestType", {0xc, UNKNOWN}}, {"RequestArgument", {0x14, UNKNOWN}}, {"ReorderingBarrier", {0x10, UNKNOWN}}, {"ListEntry", {0x0, _LIST_ENTRY}}, }, { // _WORK_QUEUE_ENTRY {"Function", {0xc, UNKNOWN}}, {"WorkQueueLinks", {0x0, _LIST_ENTRY}}, {"Parameters", {0x8, __unnamed_188c}}, }, { // _WHEA_PERSISTENCE_INFO {"Reserved", {0x0, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, {"DoNotLog", {0x0, UNKNOWN}}, {"AsULONGLONG", {0x0, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, {"Attributes", {0x0, UNKNOWN}}, {"Identifier", {0x0, UNKNOWN}}, }, { // _KDEVICE_QUEUE_ENTRY {"Inserted", {0xc, UNKNOWN}}, {"DeviceListEntry", {0x0, _LIST_ENTRY}}, {"SortKey", {0x8, UNKNOWN}}, }, { // __unnamed_230f {"idxRecord", {0x0, UNKNOWN}}, {"cidContainer", {0x4, UNKNOWN}}, }, { // __unnamed_230b {"QueryAllocatedResources", {0x0, _ARBITER_QUERY_ALLOCATED_RESOURCES_PARAMETERS}}, {"QueryConflict", {0x0, _ARBITER_QUERY_CONFLICT_PARAMETERS}}, {"TestAllocation", {0x0, _ARBITER_TEST_ALLOCATION_PARAMETERS}}, {"BootAllocation", {0x0, _ARBITER_BOOT_ALLOCATION_PARAMETERS}}, {"QueryArbitrate", {0x0, _ARBITER_QUERY_ARBITRATE_PARAMETERS}}, {"RetestAllocation", {0x0, _ARBITER_RETEST_ALLOCATION_PARAMETERS}}, {"AddReserved", {0x0, _ARBITER_ADD_RESERVED_PARAMETERS}}, }, { // __unnamed_2272 {"s1", {0x0, __unnamed_2270}}, {"Value", {0x0, UNKNOWN}}, }, { // __unnamed_2270 {"Head", {0x0, UNKNOWN}}, {"Tail", {0x0, UNKNOWN}}, {"ActiveThreadCount", {0x0, UNKNOWN}}, }, { // __unnamed_2171 {"ListHead", {0x0, _LIST_ENTRY}}, }, { // __unnamed_2179 {"Disabled", {0x0, UNKNOWN}}, {"Reserved", {0x0, UNKNOWN}}, {"AsUSHORT", {0x0, UNKNOWN}}, {"AllowScaling", {0x0, UNKNOWN}}, }, { // _KTHREAD_COUNTERS {"UserData", {0x8, _THREAD_PERFORMANCE_DATA | POINTER}}, {"CycleTimeBias", {0x18, UNKNOWN}}, {"HwCounter", {0x28, UNKNOWN}}, {"Flags", {0xc, UNKNOWN}}, {"WaitReasonBitMap", {0x0, UNKNOWN}}, {"ContextSwitches", {0x10, UNKNOWN}}, {"HardwareCounters", {0x20, UNKNOWN}}, }, { // VACB_LEVEL_ALLOCATION_LIST {"VacbLevelsAllocated", {0xc, UNKNOWN}}, {"VacbLevelWithBcbListHeads", {0x8, UNKNOWN | POINTER}}, {"VacbLevelList", {0x0, _LIST_ENTRY}}, }, { // _PEB_LDR_DATA {"SsHandle", {0x8, UNKNOWN | POINTER}}, {"ShutdownInProgress", {0x28, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, {"EntryInProgress", {0x24, UNKNOWN | POINTER}}, {"InMemoryOrderModuleList", {0x14, _LIST_ENTRY}}, {"Initialized", {0x4, UNKNOWN}}, {"InLoadOrderModuleList", {0xc, _LIST_ENTRY}}, {"ShutdownThreadId", {0x2c, UNKNOWN | POINTER}}, {"InInitializationOrderModuleList", {0x1c, _LIST_ENTRY}}, }, { // _MMVAD_LONG {"VadsProcess", {0x38, _EPROCESS | POINTER}}, {"PushLock", {0x18, _EX_PUSH_LOCK}}, {"RightChild", {0x8, _MMVAD | POINTER}}, {"FirstPrototypePte", {0x28, _MMPTE | POINTER}}, {"u5", {0x1c, __unnamed_1586}}, {"u4", {0x44, __unnamed_1c45}}, {"u1", {0x0, __unnamed_1580}}, {"EndingVpn", {0x10, UNKNOWN}}, {"u3", {0x3c, __unnamed_1c3f}}, {"StartingVpn", {0xc, UNKNOWN}}, {"LeftChild", {0x4, _MMVAD | POINTER}}, {"u", {0x14, __unnamed_1583}}, {"Subsection", {0x24, _SUBSECTION | POINTER}}, {"LastContiguousPte", {0x2c, _MMPTE | POINTER}}, {"u2", {0x20, __unnamed_1593}}, {"ViewLinks", {0x30, _LIST_ENTRY}}, }, { // _ETW_REPLY_QUEUE {"Queue", {0x0, _KQUEUE}}, {"EventsLost", {0x28, UNKNOWN}}, }, { // __unnamed_197e {"Deleted", {0x0, UNKNOWN}}, {"ReferenceCache", {0x0, UNKNOWN}}, {"Lookaside", {0x0, UNKNOWN}}, {"Initializing", {0x0, UNKNOWN}}, }, { // _PROFILE_PARAMETER_BLOCK {"Status", {0x0, UNKNOWN}}, {"DockID", {0x8, UNKNOWN}}, {"DockingState", {0x4, UNKNOWN}}, {"Reserved", {0x2, UNKNOWN}}, {"SerialNumber", {0xc, UNKNOWN}}, {"Capabilities", {0x6, UNKNOWN}}, }, { // _RTL_HANDLE_TABLE {"Reserved", {0x8, UNKNOWN}}, {"CommittedHandles", {0x14, _RTL_HANDLE_TABLE_ENTRY | POINTER}}, {"MaxReservedHandles", {0x1c, _RTL_HANDLE_TABLE_ENTRY | POINTER}}, {"FreeHandles", {0x10, _RTL_HANDLE_TABLE_ENTRY | POINTER}}, {"SizeOfHandleTableEntry", {0x4, UNKNOWN}}, {"UnCommittedHandles", {0x18, _RTL_HANDLE_TABLE_ENTRY | POINTER}}, {"MaximumNumberOfHandles", {0x0, UNKNOWN}}, }, { // _DBGKD_QUERY_SPECIAL_CALLS {"NumberOfSpecialCalls", {0x0, UNKNOWN}}, }, { // _ETW_GUID_ENTRY {"RegListHead", {0x1c, _LIST_ENTRY}}, {"ProviderEnableInfo", {0x38, _TRACE_ENABLE_INFO}}, {"Guid", {0xc, _GUID}}, {"SecurityDescriptor", {0x24, UNKNOWN | POINTER}}, {"FilterData", {0x158, UNKNOWN}}, {"EnableInfo", {0x58, UNKNOWN}}, {"MatchId", {0x28, UNKNOWN}}, {"GuidList", {0x0, _LIST_ENTRY}}, {"RefCount", {0x8, UNKNOWN}}, {"LastEnable", {0x28, _ETW_LAST_ENABLE_INFO}}, }, { // _EPROCESS {"LastThreadExitStatus", {0x1a4, UNKNOWN}}, {"SetTimerResolutionLink", {0x270, UNKNOWN}}, {"Win32Process", {0x120, UNKNOWN | POINTER}}, {"SeAuditProcessCreationInfo", {0x1ec, _SE_AUDIT_PROCESS_CREATION_INFO}}, {"RundownProtect", {0xb0, _EX_RUNDOWN_REF}}, {"ExceptionPortValue", {0xf0, UNKNOWN}}, {"UniqueProcessId", {0xb4, UNKNOWN | POINTER}}, {"OutswapEnabled", {0x270, UNKNOWN}}, {"AlpcContext", {0x298, _ALPC_PROCESS_CONTEXT}}, {"CommitCharge", {0xd0, UNKNOWN}}, {"LdtInformation", {0x144, UNKNOWN | POINTER}}, {"AweInfo", {0x1e8, UNKNOWN | POINTER}}, {"VirtualSize", {0xe0, UNKNOWN}}, {"OverrideAddressSpace", {0x270, UNKNOWN}}, {"Pcb", {0x0, _KPROCESS}}, {"VdmObjects", {0x148, UNKNOWN | POINTER}}, {"ExitStatus", {0x274, UNKNOWN}}, {"ActiveThreads", {0x198, UNKNOWN}}, {"HardwareTrigger", {0x10c, UNKNOWN}}, {"HasAddressSpace", {0x270, UNKNOWN}}, {"PaeTop", {0x194, UNKNOWN | POINTER}}, {"WriteWatch", {0x270, UNKNOWN}}, {"Flags2", {0x26c, UNKNOWN}}, {"ThreadListHead", {0x188, _LIST_ENTRY}}, {"Filler", {0x160, UNKNOWN}}, {"ProcessQuotaPeak", {0xc8, UNKNOWN}}, {"DefaultPagePriority", {0x26c, UNKNOWN}}, {"WorkingSetPage", {0xfc, UNKNOWN}}, {"Cookie", {0x130, UNKNOWN}}, {"MmProcessLinks", {0x25c, _LIST_ENTRY}}, {"ForkInProgress", {0x108, _ETHREAD | POINTER}}, {"InheritedFromUniqueProcessId", {0x140, UNKNOWN | POINTER}}, {"WriteOperationCount", {0x1b8, _LARGE_INTEGER}}, {"ReportCommitChanges", {0x26c, UNKNOWN}}, {"ProcessInserted", {0x270, UNKNOWN}}, {"AccountingFolded", {0x26c, UNKNOWN}}, {"Outswapped", {0x270, UNKNOWN}}, {"Wow64SplitPages", {0x270, UNKNOWN}}, {"OtherOperationCount", {0x1c0, _LARGE_INTEGER}}, {"LastReportMemory", {0x26c, UNKNOWN}}, {"CreateReported", {0x270, UNKNOWN}}, {"VadRoot", {0x278, _MM_AVL_TABLE}}, {"CpuQuotaBlock", {0xd8, _PS_CPU_QUOTA_BLOCK | POINTER}}, {"PrefetchTrace", {0x1ac, _EX_FAST_REF}}, {"Token", {0xf8, _EX_FAST_REF}}, {"NumberOfPrivatePages", {0x118, UNKNOWN}}, {"ProcessLock", {0x98, _EX_PUSH_LOCK}}, {"ModifiedPageCount", {0x268, UNKNOWN}}, {"CommitChargeLimit", {0x1e0, UNKNOWN}}, {"ObjectTable", {0xf4, _HANDLE_TABLE | POINTER}}, {"InjectInpageErrors", {0x270, UNKNOWN}}, {"WorkingSetWatch", {0x138, UNKNOWN | POINTER}}, {"Wow64VaSpace4Gb", {0x270, UNKNOWN}}, {"TimerResolutionLink", {0x2a8, _LIST_ENTRY}}, {"VmDeleted", {0x270, UNKNOWN}}, {"NumaAware", {0x26c, UNKNOWN}}, {"PhysicalVadRoot", {0x110, _MM_AVL_TABLE | POINTER}}, {"QuotaBlock", {0xd4, UNKNOWN | POINTER}}, {"ProcessExiting", {0x270, UNKNOWN}}, {"Spare8", {0x134, UNKNOWN}}, {"NewProcessReported", {0x26c, UNKNOWN}}, {"PrimaryTokenFrozen", {0x26c, UNKNOWN}}, {"ForkFailed", {0x270, UNKNOWN}}, {"ProcessDelete", {0x270, UNKNOWN}}, {"HighestUserAddress", {0x264, UNKNOWN | POINTER}}, {"VdmAllowed", {0x270, UNKNOWN}}, {"ProcessVerifierTarget", {0x26c, UNKNOWN}}, {"ExceptionPortState", {0xf0, UNKNOWN}}, {"ProtectedProcess", {0x26c, UNKNOWN}}, {"AffinityPermanent", {0x26c, UNKNOWN}}, {"PdeUpdateNeeded", {0x270, UNKNOWN}}, {"ExceptionPortData", {0xf0, UNKNOWN | POINTER}}, {"DeviceMap", {0x150, UNKNOWN | POINTER}}, {"ConsoleHostProcess", {0x14c, UNKNOWN}}, {"Win32WindowStation", {0x13c, UNKNOWN | POINTER}}, {"AffinityUpdateEnable", {0x26c, UNKNOWN}}, {"Vm", {0x1f0, _MMSUPPORT}}, {"OtherTransferCount", {0x1d8, _LARGE_INTEGER}}, {"RefTraceEnabled", {0x26c, UNKNOWN}}, {"CloneRoot", {0x114, UNKNOWN | POINTER}}, {"SecurityPort", {0x190, UNKNOWN | POINTER}}, {"VmTopDown", {0x270, UNKNOWN}}, {"TimerResolutionStackRecord", {0x2bc, _PO_DIAG_STACK_RECORD | POINTER}}, {"HandleTableRundown", {0x26c, UNKNOWN}}, {"PriorityClass", {0x17b, UNKNOWN}}, {"Peb", {0x1a8, _PEB | POINTER}}, {"AddressCreationLock", {0x100, _EX_PUSH_LOCK}}, {"PeakVirtualSize", {0xdc, UNKNOWN}}, {"RequestedTimerResolution", {0x2b0, UNKNOWN}}, {"ProcessInSession", {0x270, UNKNOWN}}, {"StackRandomizationDisabled", {0x26c, UNKNOWN}}, {"NumberOfLockedPages", {0x11c, UNKNOWN}}, {"Job", {0x124, _EJOB | POINTER}}, {"SetTimerResolution", {0x270, UNKNOWN}}, {"SessionProcessLinks", {0xe4, _LIST_ENTRY}}, {"SmallestTimerResolution", {0x2b8, UNKNOWN}}, {"ProcessQuotaUsage", {0xc0, UNKNOWN}}, {"CommitChargePeak", {0x1e4, UNKNOWN}}, {"WriteTransferCount", {0x1d0, _LARGE_INTEGER}}, {"BreakOnTermination", {0x270, UNKNOWN}}, {"ExitProcessReported", {0x26c, UNKNOWN}}, {"ExplicitAffinity", {0x26c, UNKNOWN}}, {"ImagePathHash", {0x19c, UNKNOWN}}, {"JobNotReallyActive", {0x26c, UNKNOWN}}, {"ExitTime", {0xa8, _LARGE_INTEGER}}, {"JobLinks", {0x17c, _LIST_ENTRY}}, {"NeedsHandleRundown", {0x26c, UNKNOWN}}, {"DefaultIoPriority", {0x270, UNKNOWN}}, {"PropagateNode", {0x26c, UNKNOWN}}, {"SectionObject", {0x128, UNKNOWN | POINTER}}, {"ImageNotifyDone", {0x270, UNKNOWN}}, {"Flags", {0x270, UNKNOWN}}, {"ProcessSelfDelete", {0x270, UNKNOWN}}, {"ReadOperationCount", {0x1b0, _LARGE_INTEGER}}, {"DefaultHardErrorProcessing", {0x1a0, UNKNOWN}}, {"ActiveThreadsHighWatermark", {0x2b4, UNKNOWN}}, {"LaunchPrefetched", {0x270, UNKNOWN}}, {"FreeTebHint", {0x158, UNKNOWN | POINTER}}, {"DeprioritizeViews", {0x270, UNKNOWN}}, {"ReadTransferCount", {0x1c8, _LARGE_INTEGER}}, {"AddressSpaceInitialized", {0x270, UNKNOWN}}, {"ReportPhysicalPageChanges", {0x26c, UNKNOWN}}, {"DebugPort", {0xec, UNKNOWN | POINTER}}, {"ActiveProcessLinks", {0xb8, _LIST_ENTRY}}, {"LockedPagesList", {0x184, UNKNOWN | POINTER}}, {"ImageFileName", {0x16c, UNKNOWN}}, {"CrossSessionCreate", {0x270, UNKNOWN}}, {"Session", {0x168, UNKNOWN | POINTER}}, {"SectionBaseAddress", {0x12c, UNKNOWN | POINTER}}, {"RotateInProgress", {0x104, _ETHREAD | POINTER}}, {"EtwDataSource", {0x154, UNKNOWN | POINTER}}, {"NoDebugInherit", {0x270, UNKNOWN}}, {"PageDirectoryPte", {0x160, _HARDWARE_PTE}}, {"CreateTime", {0xa0, _LARGE_INTEGER}}, }, { // _KALPC_VIEW {"OwnerPort", {0xc, _ALPC_PORT | POINTER}}, {"Region", {0x8, _KALPC_REGION | POINTER}}, {"SecureViewHandle", {0x1c, UNKNOWN | POINTER}}, {"ProcessViewListEntry", {0x2c, _LIST_ENTRY}}, {"OwnerProcess", {0x10, _EPROCESS | POINTER}}, {"ViewListEntry", {0x0, _LIST_ENTRY}}, {"u1", {0x24, __unnamed_19a4}}, {"NumberOfOwnerMessages", {0x28, UNKNOWN}}, {"Address", {0x14, UNKNOWN | POINTER}}, {"WriteAccessHandle", {0x20, UNKNOWN | POINTER}}, {"Size", {0x18, UNKNOWN}}, }, { // _HANDLE_TABLE {"TableCode", {0x0, UNKNOWN}}, {"NextHandleNeedingPool", {0x34, UNKNOWN}}, {"DebugInfo", {0x1c, _HANDLE_TRACE_DEBUG_INFO | POINTER}}, {"UniqueProcessId", {0x8, UNKNOWN | POINTER}}, {"ExtraInfoPages", {0x20, UNKNOWN}}, {"HandleLock", {0xc, _EX_PUSH_LOCK}}, {"Flags", {0x24, UNKNOWN}}, {"StrictFIFO", {0x24, UNKNOWN}}, {"HandleTableList", {0x10, _LIST_ENTRY}}, {"FirstFreeHandle", {0x28, UNKNOWN}}, {"HandleCountHighWatermark", {0x38, UNKNOWN}}, {"HandleCount", {0x30, UNKNOWN}}, {"LastFreeHandleEntry", {0x2c, _HANDLE_TABLE_ENTRY | POINTER}}, {"QuotaProcess", {0x4, _EPROCESS | POINTER}}, {"HandleContentionEvent", {0x18, _EX_PUSH_LOCK}}, }, { // _MMPTE_HARDWARE {"LargePage", {0x0, UNKNOWN}}, {"CopyOnWrite", {0x0, UNKNOWN}}, {"Dirty1", {0x0, UNKNOWN}}, {"CacheDisable", {0x0, UNKNOWN}}, {"Write", {0x0, UNKNOWN}}, {"Valid", {0x0, UNKNOWN}}, {"Dirty", {0x0, UNKNOWN}}, {"Accessed", {0x0, UNKNOWN}}, {"Unused", {0x0, UNKNOWN}}, {"PageFrameNumber", {0x0, UNKNOWN}}, {"Global", {0x0, UNKNOWN}}, {"WriteThrough", {0x0, UNKNOWN}}, {"Owner", {0x0, UNKNOWN}}, }, { // _DEVICE_MAP {"DriveMap", {0x10, UNKNOWN}}, {"DosDevicesDirectoryHandle", {0x8, UNKNOWN | POINTER}}, {"DosDevicesDirectory", {0x0, _OBJECT_DIRECTORY | POINTER}}, {"DriveType", {0x14, UNKNOWN}}, {"ReferenceCount", {0xc, UNKNOWN}}, {"GlobalDosDevicesDirectory", {0x4, _OBJECT_DIRECTORY | POINTER}}, }, { // _VACB_ARRAY_HEADER {"VacbArrayIndex", {0x0, UNKNOWN}}, {"Reserved", {0xc, UNKNOWN}}, {"HighestMappedIndex", {0x8, UNKNOWN}}, {"MappingCount", {0x4, UNKNOWN}}, }, { // _CM_VIEW_OF_FILE {"FileOffset", {0x24, UNKNOWN}}, {"MappedViewLinks", {0x0, _LIST_ENTRY}}, {"PinnedViewLinks", {0x8, _LIST_ENTRY}}, {"ViewAddress", {0x20, UNKNOWN | POINTER}}, {"CmHive", {0x18, _CMHIVE | POINTER}}, {"FlushedViewLinks", {0x10, _LIST_ENTRY}}, {"UseCount", {0x2c, UNKNOWN}}, {"Bcb", {0x1c, UNKNOWN | POINTER}}, {"Size", {0x28, UNKNOWN}}, }, { // _MAILSLOT_CREATE_PARAMETERS {"ReadTimeout", {0x8, _LARGE_INTEGER}}, {"MaximumMessageSize", {0x4, UNKNOWN}}, {"MailslotQuota", {0x0, UNKNOWN}}, {"TimeoutSpecified", {0x10, UNKNOWN}}, }, { // _HEAP_LIST_LOOKUP {"BaseIndex", {0x14, UNKNOWN}}, {"ListHints", {0x20, UNKNOWN | POINTER}}, {"ExtendedLookup", {0x0, _HEAP_LIST_LOOKUP | POINTER}}, {"ArraySize", {0x4, UNKNOWN}}, {"ListHead", {0x18, _LIST_ENTRY | POINTER}}, {"ListsInUseUlong", {0x1c, UNKNOWN | POINTER}}, {"ItemCount", {0xc, UNKNOWN}}, {"ExtraItem", {0x8, UNKNOWN}}, {"OutOfRangeItems", {0x10, UNKNOWN}}, }, { // _HIVE_LIST_ENTRY {"HiveMounted", {0x20, UNKNOWN}}, {"ThreadStarted", {0x22, UNKNOWN}}, {"WinPERequired", {0x24, UNKNOWN}}, {"CmHive", {0xc, _CMHIVE | POINTER}}, {"BaseName", {0x4, UNKNOWN | POINTER}}, {"FileName", {0x0, UNKNOWN | POINTER}}, {"HHiveFlags", {0x10, UNKNOWN}}, {"FinishedEvent", {0x38, _KEVENT}}, {"RegRootName", {0x8, UNKNOWN | POINTER}}, {"Allocate", {0x23, UNKNOWN}}, {"StartEvent", {0x28, _KEVENT}}, {"MountLock", {0x48, _KEVENT}}, {"ThreadFinished", {0x21, UNKNOWN}}, {"CmHive2", {0x1c, _CMHIVE | POINTER}}, {"CmHiveFlags", {0x14, UNKNOWN}}, {"CmKcbCacheSize", {0x18, UNKNOWN}}, }, { // _DBGKD_READ_WRITE_IO_EXTENDED32 {"BusNumber", {0x8, UNKNOWN}}, {"DataValue", {0x14, UNKNOWN}}, {"InterfaceType", {0x4, UNKNOWN}}, {"DataSize", {0x0, UNKNOWN}}, {"IoAddress", {0x10, UNKNOWN}}, {"AddressSpace", {0xc, UNKNOWN}}, }, { // _X86_DBGKD_CONTROL_SET {"TraceFlag", {0x0, UNKNOWN}}, {"CurrentSymbolEnd", {0xc, UNKNOWN}}, {"CurrentSymbolStart", {0x8, UNKNOWN}}, {"Dr7", {0x4, UNKNOWN}}, }, { // __unnamed_1c6e {"BaseMid", {0x0, UNKNOWN}}, {"Sys", {0x0, UNKNOWN}}, {"Reserved_0", {0x0, UNKNOWN}}, {"Granularity", {0x0, UNKNOWN}}, {"BaseHi", {0x0, UNKNOWN}}, {"Default_Big", {0x0, UNKNOWN}}, {"Dpl", {0x0, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"Pres", {0x0, UNKNOWN}}, {"LimitHi", {0x0, UNKNOWN}}, }, { // __unnamed_2008 {"IncreasePolicy", {0x0, UNKNOWN}}, {"DecreasePolicy", {0x0, UNKNOWN}}, {"AsULONG", {0x0, UNKNOWN}}, {"Reserved", {0x0, UNKNOWN}}, }, { // _DRIVER_EXTENSION {"Count", {0x8, UNKNOWN}}, {"DriverObject", {0x0, _DRIVER_OBJECT | POINTER}}, {"AddDevice", {0x4, UNKNOWN | POINTER}}, {"ClientDriverExtension", {0x14, _IO_CLIENT_EXTENSION | POINTER}}, {"ServiceKeyName", {0xc, _UNICODE_STRING}}, {"FsFilterCallbacks", {0x18, _FS_FILTER_CALLBACKS | POINTER}}, }, { // _WHEA_ERROR_RECORD_HEADER_VALIDBITS {"PlatformId", {0x0, UNKNOWN}}, {"Timestamp", {0x0, UNKNOWN}}, {"PartitionId", {0x0, UNKNOWN}}, {"Reserved", {0x0, UNKNOWN}}, {"AsULONG", {0x0, UNKNOWN}}, }, { // _ARBITER_BOOT_ALLOCATION_PARAMETERS {"ArbitrationList", {0x0, _LIST_ENTRY | POINTER}}, }, { // _ARM_DBGKD_CONTROL_SET {"CurrentSymbolEnd", {0x8, UNKNOWN}}, {"Continue", {0x0, UNKNOWN}}, {"CurrentSymbolStart", {0x4, UNKNOWN}}, }, { // _ETW_LAST_ENABLE_INFO {"EnableFlags", {0x0, _LARGE_INTEGER}}, {"LoggerId", {0x8, UNKNOWN}}, {"Enabled", {0xb, UNKNOWN}}, {"InternalFlag", {0xb, UNKNOWN}}, {"Level", {0xa, UNKNOWN}}, }, { // _KSTACK_COUNT {"State", {0x0, UNKNOWN}}, {"Value", {0x0, UNKNOWN}}, {"StackCount", {0x0, UNKNOWN}}, }, { // __unnamed_12e6 {"DeviceObject", {0x4, _DEVICE_OBJECT | POINTER}}, {"Vpb", {0x0, _VPB | POINTER}}, }, { // __unnamed_12e0 {"Length", {0x4, UNKNOWN}}, {"SecurityInformation", {0x0, UNKNOWN}}, }, { // __unnamed_12e2 {"SecurityInformation", {0x0, UNKNOWN}}, {"SecurityDescriptor", {0x4, UNKNOWN | POINTER}}, }, { // _STRING32 {"Buffer", {0x4, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, {"MaximumLength", {0x2, UNKNOWN}}, }, { // _OBJECT_HEADER_PROCESS_INFO {"Reserved", {0x4, UNKNOWN}}, {"ExclusiveProcess", {0x0, _EPROCESS | POINTER}}, }, { // _EVENT_DATA_DESCRIPTOR {"Reserved", {0xc, UNKNOWN}}, {"Ptr", {0x0, UNKNOWN}}, {"Size", {0x8, UNKNOWN}}, }, { // _HEAP_STOP_ON_TAG {"TagIndex", {0x0, UNKNOWN}}, {"HeapAndTagIndex", {0x0, UNKNOWN}}, {"HeapIndex", {0x2, UNKNOWN}}, }, { // _MM_PAGED_POOL_INFO {"PagedPoolAllocationMap", {0x20, _RTL_BITMAP}}, {"AllocatedPagedPool", {0x34, UNKNOWN}}, {"PagedPoolHint", {0x2c, UNKNOWN}}, {"Mutex", {0x0, _KGUARDED_MUTEX}}, {"PagedPoolCommit", {0x30, UNKNOWN}}, {"FirstPteForPagedPool", {0x28, _MMPTE | POINTER}}, }, { // _PNP_DEVICE_EVENT_LIST {"Status", {0x0, UNKNOWN}}, {"EventQueueMutex", {0x4, _KMUTANT}}, {"List", {0x44, _LIST_ENTRY}}, {"Lock", {0x24, _KGUARDED_MUTEX}}, }, { // _POP_DEVICE_SYS_STATE {"AbortEvent", {0x10, _KEVENT | POINTER}}, {"Status", {0x198, UNKNOWN}}, {"IgnoreErrors", {0x1a2, UNKNOWN}}, {"Thread", {0xc, _KTHREAD | POINTER}}, {"IrpMinor", {0x0, UNKNOWN}}, {"ReadySemaphore", {0x14, _KSEMAPHORE | POINTER}}, {"GetNewDeviceList", {0x1c, UNKNOWN}}, {"SystemState", {0x4, UNKNOWN}}, {"Order", {0x20, _PO_DEVICE_NOTIFY_ORDER}}, {"FinishedSemaphore", {0x18, _KSEMAPHORE | POINTER}}, {"TimeRefreshLockAcquired", {0x1a4, UNKNOWN}}, {"IgnoreNotImplemented", {0x1a3, UNKNOWN}}, {"Cancelled", {0x1a1, UNKNOWN}}, {"Waking", {0x1a0, UNKNOWN}}, {"FailedDevice", {0x19c, _DEVICE_OBJECT | POINTER}}, {"SpinLock", {0x8, UNKNOWN}}, {"Pending", {0x190, _LIST_ENTRY}}, }, { // _WHEA_REVISION {"MinorRevision", {0x0, UNKNOWN}}, {"MajorRevision", {0x1, UNKNOWN}}, {"AsUSHORT", {0x0, UNKNOWN}}, }, { // _COMPRESSED_DATA_INFO {"CompressionFormatAndEngine", {0x0, UNKNOWN}}, {"NumberOfChunks", {0x6, UNKNOWN}}, {"CompressionUnitShift", {0x2, UNKNOWN}}, {"ChunkShift", {0x3, UNKNOWN}}, {"ClusterShift", {0x4, UNKNOWN}}, {"CompressedChunkSizes", {0x8, UNKNOWN}}, {"Reserved", {0x5, UNKNOWN}}, }, { // _PNP_DEVICE_EVENT_ENTRY {"Callback", {0x10, UNKNOWN | POINTER}}, {"VetoName", {0x1c, _UNICODE_STRING | POINTER}}, {"Context", {0x14, UNKNOWN | POINTER}}, {"Data", {0x20, _PLUGPLAY_EVENT_BLOCK}}, {"VetoType", {0x18, UNKNOWN | POINTER}}, {"CallerEvent", {0xc, _KEVENT | POINTER}}, {"ListEntry", {0x0, _LIST_ENTRY}}, {"Argument", {0x8, UNKNOWN}}, }, { // _XSTATE_CONTEXT {"Area", {0x10, _XSAVE_AREA | POINTER}}, {"Buffer", {0x18, UNKNOWN | POINTER}}, {"Mask", {0x0, UNKNOWN}}, {"Length", {0x8, UNKNOWN}}, {"Reserved1", {0xc, UNKNOWN}}, {"Reserved3", {0x1c, UNKNOWN}}, {"Reserved2", {0x14, UNKNOWN}}, }, { // _ETW_REALTIME_CONSUMER {"EmptyBuffersCount", {0x2c, UNKNOWN}}, {"UserPagesAllocated", {0x48, UNKNOWN}}, {"ShutDownRequested", {0x34, UNKNOWN}}, {"ReservedBufferSpaceSize", {0x44, UNKNOWN}}, {"Disconnected", {0x36, UNKNOWN}}, {"Links", {0x0, _LIST_ENTRY}}, {"BuffersLost", {0x28, UNKNOWN}}, {"ProcessObject", {0xc, _EPROCESS | POINTER}}, {"DisconnectEvent", {0x18, _KEVENT | POINTER}}, {"RealtimeConnectContext", {0x14, UNKNOWN | POINTER}}, {"UserPagesReused", {0x4c, UNKNOWN}}, {"NewBuffersLost", {0x35, UNKNOWN}}, {"UserBufferListHead", {0x24, _SINGLE_LIST_ENTRY | POINTER}}, {"ProcessHandle", {0x8, UNKNOWN | POINTER}}, {"ReservedBufferSpace", {0x40, UNKNOWN | POINTER}}, {"ReservedBufferSpaceBitMap", {0x38, _RTL_BITMAP}}, {"DataAvailableEvent", {0x1c, _KEVENT | POINTER}}, {"LoggerId", {0x30, UNKNOWN}}, {"NextNotDelivered", {0x10, UNKNOWN | POINTER}}, {"UserBufferCount", {0x20, UNKNOWN | POINTER}}, }, { // _POP_TRIGGER_WAIT {"Status", {0x10, UNKNOWN}}, {"Trigger", {0x1c, _POP_ACTION_TRIGGER | POINTER}}, {"Link", {0x14, _LIST_ENTRY}}, {"Event", {0x0, _KEVENT}}, }, { // PROCESSOR_IDLESTATE_POLICY {"PolicyCount", {0x4, UNKNOWN}}, {"Policy", {0x8, UNKNOWN}}, {"Flags", {0x2, __unnamed_2179}}, {"Revision", {0x0, UNKNOWN}}, }, { // __unnamed_12ee {"StartSid", {0x4, UNKNOWN | POINTER}}, {"Length", {0x0, UNKNOWN}}, {"SidList", {0x8, _FILE_GET_QUOTA_INFORMATION | POINTER}}, {"SidListLength", {0xc, UNKNOWN}}, }, { // __unnamed_12ea {"Srb", {0x0, UNKNOWN | POINTER}}, }, { // _KTIMER_TABLE_ENTRY {"Lock", {0x0, UNKNOWN}}, {"Time", {0x10, _ULARGE_INTEGER}}, {"Entry", {0x4, _LIST_ENTRY}}, }, { // _VF_BTS_DATA_MANAGEMENT_AREA {"PEBSIndex", {0x14, UNKNOWN | POINTER}}, {"BTSInterruptThreshold", {0xc, UNKNOWN | POINTER}}, {"Reserved", {0x28, UNKNOWN}}, {"BTSBufferBase", {0x0, UNKNOWN | POINTER}}, {"PEBSBufferBase", {0x10, UNKNOWN | POINTER}}, {"PEBSInterruptThreshold", {0x1c, UNKNOWN | POINTER}}, {"PEBSMax", {0x18, UNKNOWN | POINTER}}, {"BTSMax", {0x8, UNKNOWN | POINTER}}, {"PEBSCounterReset", {0x20, UNKNOWN}}, {"BTSIndex", {0x4, UNKNOWN | POINTER}}, }, { // __unnamed_1c5f {"PcatInformation", {0x0, _PCAT_FIRMWARE_INFORMATION}}, {"EfiInformation", {0x0, _EFI_FIRMWARE_INFORMATION}}, }, { // _MMADDRESS_LIST {"u1", {0x0, __unnamed_1dc5}}, {"EndVa", {0x4, UNKNOWN | POINTER}}, }, { // _FILE_BASIC_INFORMATION {"ChangeTime", {0x18, _LARGE_INTEGER}}, {"LastWriteTime", {0x10, _LARGE_INTEGER}}, {"CreationTime", {0x0, _LARGE_INTEGER}}, {"FileAttributes", {0x20, UNKNOWN}}, {"LastAccessTime", {0x8, _LARGE_INTEGER}}, }, { // _ARBITER_ALLOCATION_STATE {"End", {0x8, UNKNOWN}}, {"CurrentMaximum", {0x18, UNKNOWN}}, {"Start", {0x0, UNKNOWN}}, {"RangeAvailableAttributes", {0x33, UNKNOWN}}, {"Flags", {0x30, UNKNOWN}}, {"Entry", {0x20, _ARBITER_LIST_ENTRY | POINTER}}, {"CurrentAlternative", {0x24, _ARBITER_ALTERNATIVE | POINTER}}, {"RangeAttributes", {0x32, UNKNOWN}}, {"AlternativeCount", {0x28, UNKNOWN}}, {"Alternatives", {0x2c, _ARBITER_ALTERNATIVE | POINTER}}, {"CurrentMinimum", {0x10, UNKNOWN}}, {"WorkSpace", {0x34, UNKNOWN}}, }, { // __unnamed_1c56 {"Disabled", {0x0, UNKNOWN}}, {"HvMaxCState", {0x0, UNKNOWN}}, {"AsULONG", {0x0, UNKNOWN}}, {"Reserved", {0x0, UNKNOWN}}, {"AllowScaling", {0x0, UNKNOWN}}, }, { // _MMWSL {"NextAgingSlot", {0x1c, UNKNOWN}}, {"LastInitializedWsle", {0x18, UNKNOWN}}, {"CommittedPageTables", {0x648, UNKNOWN}}, {"HashTableStart", {0x40, _MMWSLE_HASH | POINTER}}, {"NonDirectHash", {0x3c, _MMWSLE_NONDIRECT_HASH | POINTER}}, {"NumberOfCommittedPageTables", {0x20, UNKNOWN}}, {"LastAllocationSizeHint", {0x34, UNKNOWN}}, {"Wsle", {0x10, _MMWSLE | POINTER}}, {"LastVadBit", {0x2c, UNKNOWN}}, {"MaximumLastVadBit", {0x30, UNKNOWN}}, {"NonDirectCount", {0x28, UNKNOWN}}, {"LowestPagableAddress", {0x14, UNKNOWN | POINTER}}, {"HighestPermittedHashAddress", {0x44, _MMWSLE_HASH | POINTER}}, {"FirstDynamic", {0x4, UNKNOWN}}, {"LastAllocationSize", {0x38, UNKNOWN}}, {"UsedPageTableEntries", {0x48, UNKNOWN}}, {"VadBitMapHint", {0x24, UNKNOWN}}, {"NextSlot", {0xc, UNKNOWN}}, {"FirstFree", {0x0, UNKNOWN}}, {"LastEntry", {0x8, UNKNOWN}}, }, { // CMP_OFFSET_ARRAY {"FileOffset", {0x0, UNKNOWN}}, {"DataBuffer", {0x4, UNKNOWN | POINTER}}, {"DataLength", {0x8, UNKNOWN}}, }, { // _PAGED_LOOKASIDE_LIST {"Lock__ObsoleteButDoNotDelete", {0x80, _FAST_MUTEX}}, {"L", {0x0, _GENERAL_LOOKASIDE}}, }, { // LIST_ENTRY32 {"Flink", {0x0, UNKNOWN}}, {"Blink", {0x4, UNKNOWN}}, }, { // _LIST_ENTRY {"Flink", {0x0, _LIST_ENTRY | POINTER}}, {"Blink", {0x4, _LIST_ENTRY | POINTER}}, }, { // _LARGE_INTEGER {"HighPart", {0x4, UNKNOWN}}, {"u", {0x0, __unnamed_1045}}, {"QuadPart", {0x0, UNKNOWN}}, {"LowPart", {0x0, UNKNOWN}}, }, { // __unnamed_22e5 {"SafeToRecurse", {0x4, UNKNOWN}}, {"NotificationType", {0x0, UNKNOWN}}, }, { // __unnamed_22e7 {"Argument4", {0xc, UNKNOWN | POINTER}}, {"Argument5", {0x10, UNKNOWN | POINTER}}, {"Argument2", {0x4, UNKNOWN | POINTER}}, {"Argument3", {0x8, UNKNOWN | POINTER}}, {"Argument1", {0x0, UNKNOWN | POINTER}}, }, { // _GDI_TEB_BATCH {"Buffer", {0x8, UNKNOWN}}, {"HDC", {0x4, UNKNOWN}}, {"Offset", {0x0, UNKNOWN}}, }, { // __unnamed_22e1 {"SyncType", {0x0, UNKNOWN}}, {"PageProtection", {0x4, UNKNOWN}}, }, { // _WHEA_MEMORY_ERROR_SECTION_VALIDBITS {"Node", {0x0, UNKNOWN}}, {"ResponderId", {0x0, UNKNOWN}}, {"BitPosition", {0x0, UNKNOWN}}, {"Reserved", {0x0, UNKNOWN}}, {"Card", {0x0, UNKNOWN}}, {"Bank", {0x0, UNKNOWN}}, {"Column", {0x0, UNKNOWN}}, {"ErrorType", {0x0, UNKNOWN}}, {"TargetId", {0x0, UNKNOWN}}, {"Module", {0x0, UNKNOWN}}, {"ErrorStatus", {0x0, UNKNOWN}}, {"PhysicalAddressMask", {0x0, UNKNOWN}}, {"RequesterId", {0x0, UNKNOWN}}, {"ValidBits", {0x0, UNKNOWN}}, {"Device", {0x0, UNKNOWN}}, {"PhysicalAddress", {0x0, UNKNOWN}}, {"Row", {0x0, UNKNOWN}}, }, { // _DUMMY_FILE_OBJECT {"FileObjectBody", {0x20, UNKNOWN}}, {"ObjectHeader", {0x0, _OBJECT_HEADER}}, }, { // _POOL_DESCRIPTOR {"ListHeads", {0x140, UNKNOWN}}, {"NonPagedLock", {0x4, UNKNOWN}}, {"PagedLock", {0x4, _KGUARDED_MUTEX}}, {"TotalPages", {0xc0, UNKNOWN}}, {"RunningDeAllocs", {0x44, UNKNOWN}}, {"PoolIndex", {0x80, UNKNOWN}}, {"PendingFreeDepth", {0x104, UNKNOWN}}, {"TotalBytes", {0x50, UNKNOWN}}, {"PoolType", {0x0, UNKNOWN}}, {"TotalBigPages", {0x48, UNKNOWN}}, {"RunningAllocs", {0x40, UNKNOWN}}, {"ThreadsProcessingDeferrals", {0x4c, UNKNOWN}}, {"PendingFrees", {0x100, UNKNOWN | POINTER}}, }, { // _HARDWARE_PTE {"reserved", {0x0, UNKNOWN}}, {"LargePage", {0x0, UNKNOWN}}, {"CopyOnWrite", {0x0, UNKNOWN}}, {"CacheDisable", {0x0, UNKNOWN}}, {"Write", {0x0, UNKNOWN}}, {"Valid", {0x0, UNKNOWN}}, {"Dirty", {0x0, UNKNOWN}}, {"Accessed", {0x0, UNKNOWN}}, {"Prototype", {0x0, UNKNOWN}}, {"PageFrameNumber", {0x0, UNKNOWN}}, {"Global", {0x0, UNKNOWN}}, {"WriteThrough", {0x0, UNKNOWN}}, {"Owner", {0x0, UNKNOWN}}, }, { // _ALPC_COMPLETION_PACKET_LOOKASIDE_ENTRY {"Lookaside", {0x8, _ALPC_COMPLETION_PACKET_LOOKASIDE | POINTER}}, {"ListEntry", {0x0, _SINGLE_LIST_ENTRY}}, {"Packet", {0x4, _IO_MINI_COMPLETION_PACKET_USER | POINTER}}, }, { // _TERMINATION_PORT {"Port", {0x4, UNKNOWN | POINTER}}, {"Next", {0x0, _TERMINATION_PORT | POINTER}}, }, { // _HMAP_TABLE {"Table", {0x0, UNKNOWN}}, }, { // _CACHED_KSTACK_LIST {"SListHead", {0x0, _SLIST_HEADER}}, {"Pad0", {0x14, UNKNOWN}}, {"Misses", {0xc, UNKNOWN}}, {"MinimumFree", {0x8, UNKNOWN}}, {"MissesLast", {0x10, UNKNOWN}}, }, { // _OB_DUPLICATE_OBJECT_STATE {"TargetAccess", {0xc, UNKNOWN}}, {"Object", {0x8, UNKNOWN | POINTER}}, {"HandleAttributes", {0x14, UNKNOWN}}, {"SourceProcess", {0x0, _EPROCESS | POINTER}}, {"ObjectInfo", {0x10, _HANDLE_TABLE_ENTRY_INFO}}, {"SourceHandle", {0x4, UNKNOWN | POINTER}}, }, { // _LAZY_WRITER {"ScanDpc", {0x0, _KDPC}}, {"PendingPeriodicScan", {0x4b, UNKNOWN}}, {"ScanActive", {0x48, UNKNOWN}}, {"OtherWork", {0x49, UNKNOWN}}, {"PendingTeardownScan", {0x4a, UNKNOWN}}, {"ScanTimer", {0x20, _KTIMER}}, {"PendingPowerScan", {0x4d, UNKNOWN}}, {"PendingLowMemoryScan", {0x4c, UNKNOWN}}, }, { // _OBJECT_DIRECTORY {"HashBuckets", {0x0, UNKNOWN}}, {"Lock", {0x94, _EX_PUSH_LOCK}}, {"NamespaceEntry", {0xa0, UNKNOWN | POINTER}}, {"SessionId", {0x9c, UNKNOWN}}, {"Flags", {0xa4, UNKNOWN}}, {"DeviceMap", {0x98, _DEVICE_MAP | POINTER}}, }, { // __unnamed_1e96 {"DeviceId", {0x0, UNKNOWN}}, }, { // __unnamed_1e94 {"DeviceIds", {0x0, UNKNOWN}}, }, { // __unnamed_1e92 {"SymbolicLinkName", {0x10, UNKNOWN}}, {"ClassGuid", {0x0, _GUID}}, }, { // _VI_DEADLOCK_NODE {"StackTrace", {0x2c, UNKNOWN}}, {"SiblingsList", {0xc, _LIST_ENTRY}}, {"ThreadEntry", {0x20, _VI_DEADLOCK_THREAD | POINTER}}, {"Root", {0x1c, _VI_DEADLOCK_RESOURCE | POINTER}}, {"ChildrenCount", {0x28, UNKNOWN}}, {"Parent", {0x0, _VI_DEADLOCK_NODE | POINTER}}, {"FreeListEntry", {0x14, _LIST_ENTRY}}, {"u1", {0x24, __unnamed_2285}}, {"ChildrenList", {0x4, _LIST_ENTRY}}, {"ResourceList", {0x14, _LIST_ENTRY}}, {"ParentStackTrace", {0x4c, UNKNOWN}}, }, { // __unnamed_1e98 {"NotificationStructure", {0x0, UNKNOWN | POINTER}}, {"DeviceIds", {0x4, UNKNOWN}}, }, { // _INTERLOCK_SEQ {"Exchg", {0x0, UNKNOWN}}, {"Depth", {0x0, UNKNOWN}}, {"FreeEntryOffset", {0x2, UNKNOWN}}, {"OffsetAndDepth", {0x0, UNKNOWN}}, {"Sequence", {0x4, UNKNOWN}}, }, { // _KDPC_DATA {"DpcLock", {0x8, UNKNOWN}}, {"DpcQueueDepth", {0xc, UNKNOWN}}, {"DpcCount", {0x10, UNKNOWN}}, {"DpcListHead", {0x0, _LIST_ENTRY}}, }, { // _TEB64 {"TxFsContext", {0x2e8, UNKNOWN}}, {"SpareUlong0", {0x180c, UNKNOWN}}, {"EtwLocalData", {0x1728, UNKNOWN}}, {"LockCount", {0x1808, UNKNOWN}}, {"ThreadPoolData", {0x1778, UNKNOWN}}, {"LastStatusValue", {0x1250, UNKNOWN}}, {"HardErrorMode", {0x16b0, UNKNOWN}}, {"IsImpersonating", {0x179c, UNKNOWN}}, {"EnvironmentPointer", {0x38, UNKNOWN}}, {"ActiveRpcHandle", {0x50, UNKNOWN}}, {"glContext", {0x1248, UNKNOWN}}, {"StaticUnicodeBuffer", {0x1268, UNKNOWN}}, {"CurrentLocale", {0x108, UNKNOWN}}, {"SafeThunkCall", {0x17ee, UNKNOWN}}, {"DeallocationStack", {0x1478, UNKNOWN}}, {"glReserved1", {0x1138, UNKNOWN}}, {"glReserved2", {0x1220, UNKNOWN}}, {"InDebugPrint", {0x17ee, UNKNOWN}}, {"HasFiberData", {0x17ee, UNKNOWN}}, {"CrossTebFlags", {0x17ec, UNKNOWN}}, {"SavedPriorityState", {0x1768, UNKNOWN}}, {"SystemReserved1", {0x110, UNKNOWN}}, {"WaitingOnLoaderLock", {0x1760, UNKNOWN}}, {"CsrClientThread", {0x70, UNKNOWN}}, {"SubProcessTag", {0x1720, UNKNOWN}}, {"RealClientId", {0x7d8, _CLIENT_ID64}}, {"Instrumentation", {0x16b8, UNKNOWN}}, {"LastErrorValue", {0x68, UNKNOWN}}, {"IdealProcessorValue", {0x1744, UNKNOWN}}, {"TlsExpansionSlots", {0x1780, UNKNOWN}}, {"glCurrentRC", {0x1240, UNKNOWN}}, {"TxnScopeExitCallback", {0x17f8, UNKNOWN}}, {"glSectionInfo", {0x1228, UNKNOWN}}, {"CountOfOwnedCriticalSections", {0x6c, UNKNOWN}}, {"ReservedForOle", {0x1758, UNKNOWN}}, {"SpareSameTebBits", {0x17ee, UNKNOWN}}, {"MuiImpersonation", {0x17e8, UNKNOWN}}, {"ThreadLocalStoragePointer", {0x58, UNKNOWN}}, {"FpSoftwareStatusRegister", {0x10c, UNKNOWN}}, {"WerInShipAssertCode", {0x17ee, UNKNOWN}}, {"DisableUserStackWalk", {0x17ee, UNKNOWN}}, {"ActiveFrame", {0x17c0, UNKNOWN}}, {"UserReserved", {0xe8, UNKNOWN}}, {"TlsLinks", {0x1680, LIST_ENTRY64}}, {"SameTebFlags", {0x17ee, UNKNOWN}}, {"IdealProcessor", {0x1747, UNKNOWN}}, {"NtTib", {0x0, _NT_TIB64}}, {"DeallocationBStore", {0x1788, UNKNOWN}}, {"EtwTraceData", {0x1730, UNKNOWN}}, {"NlsCache", {0x17a0, UNKNOWN}}, {"GdiClientTID", {0x7f4, UNKNOWN}}, {"MergedPrefLanguages", {0x17e0, UNKNOWN}}, {"ClonedThread", {0x17ee, UNKNOWN}}, {"HeapVirtualAffinity", {0x17b0, UNKNOWN}}, {"ReservedForPerf", {0x1750, UNKNOWN}}, {"GdiCachedProcessHandle", {0x7e8, UNKNOWN}}, {"CurrentTransactionHandle", {0x17b8, UNKNOWN}}, {"GdiThreadLocalInfo", {0x7f8, UNKNOWN}}, {"SpareCrossTebBits", {0x17ec, UNKNOWN}}, {"TxnScopeEnterCallback", {0x17f0, UNKNOWN}}, {"GdiClientPID", {0x7f0, UNKNOWN}}, {"glSection", {0x1230, UNKNOWN}}, {"SuppressDebugMsg", {0x17ee, UNKNOWN}}, {"StaticUnicodeString", {0x1258, _STRING64}}, {"InitialThread", {0x17ee, UNKNOWN}}, {"WOW32Reserved", {0x100, UNKNOWN}}, {"ExceptionCode", {0x2c0, UNKNOWN}}, {"Vdm", {0x1690, UNKNOWN}}, {"BStoreLimit", {0x1790, UNKNOWN}}, {"SkipThreadAttach", {0x17ee, UNKNOWN}}, {"UserPrefLanguages", {0x17d8, UNKNOWN}}, {"TlsSlots", {0x1480, UNKNOWN}}, {"GuaranteedStackBytes", {0x1748, UNKNOWN}}, {"CurrentIdealProcessor", {0x1744, _PROCESSOR_NUMBER}}, {"Win32ClientInfo", {0x800, UNKNOWN}}, {"ClientId", {0x40, _CLIENT_ID64}}, {"TxnScopeContext", {0x1800, UNKNOWN}}, {"RanProcessInit", {0x17ee, UNKNOWN}}, {"RtlExceptionAttached", {0x17ee, UNKNOWN}}, {"glDispatchTable", {0x9f0, UNKNOWN}}, {"ProcessEnvironmentBlock", {0x60, UNKNOWN}}, {"FlsData", {0x17c8, UNKNOWN}}, {"SpareBytes", {0x2d0, UNKNOWN}}, {"PreferredLanguages", {0x17d0, UNKNOWN}}, {"ReservedForNtRpc", {0x1698, UNKNOWN}}, {"GdiBatchCount", {0x1740, UNKNOWN}}, {"DbgSsReserved", {0x16a0, UNKNOWN}}, {"Win32ThreadInfo", {0x78, UNKNOWN}}, {"MuiGeneration", {0x1798, UNKNOWN}}, {"SoftPatchPtr1", {0x1770, UNKNOWN}}, {"ResourceRetValue", {0x1810, UNKNOWN}}, {"WinSockData", {0x1738, UNKNOWN}}, {"GdiTebBatch", {0x2f0, _GDI_TEB_BATCH64}}, {"User32Reserved", {0x80, UNKNOWN}}, {"ReservedPad1", {0x1745, UNKNOWN}}, {"ReservedPad0", {0x1744, UNKNOWN}}, {"ReservedPad2", {0x1746, UNKNOWN}}, {"ActivityId", {0x1710, _GUID}}, {"glTable", {0x1238, UNKNOWN}}, {"ActivationContextStackPointer", {0x2c8, UNKNOWN}}, {"pShimData", {0x17a8, UNKNOWN}}, }, { // _HEAP_LOOKASIDE {"LastTotalAllocates", {0x1c, UNKNOWN}}, {"MaximumDepth", {0xa, UNKNOWN}}, {"Depth", {0x8, UNKNOWN}}, {"LastAllocateMisses", {0x20, UNKNOWN}}, {"ListHead", {0x0, _SLIST_HEADER}}, {"FreeMisses", {0x18, UNKNOWN}}, {"TotalFrees", {0x14, UNKNOWN}}, {"Counters", {0x24, UNKNOWN}}, {"TotalAllocates", {0xc, UNKNOWN}}, {"AllocateMisses", {0x10, UNKNOWN}}, }, { // _DBGKD_SEARCH_MEMORY {"FoundAddress", {0x0, UNKNOWN}}, {"SearchAddress", {0x0, UNKNOWN}}, {"SearchLength", {0x8, UNKNOWN}}, {"PatternLength", {0x10, UNKNOWN}}, }, { // _VF_TRACKER_STAMP {"OldIrql", {0x5, UNKNOWN}}, {"Flags", {0x4, UNKNOWN}}, {"Processor", {0x7, UNKNOWN}}, {"Thread", {0x0, UNKNOWN | POINTER}}, {"NewIrql", {0x6, UNKNOWN}}, }, { // __unnamed_1e9e {"DeviceIdVetoNameBuffer", {0x4, UNKNOWN}}, {"VetoType", {0x0, UNKNOWN}}, }, { // _EX_WORK_QUEUE {"Info", {0x38, EX_QUEUE_WORKER_INFO}}, {"WorkItemsProcessed", {0x2c, UNKNOWN}}, {"QueueDepthLastPass", {0x34, UNKNOWN}}, {"WorkItemsProcessedLastPass", {0x30, UNKNOWN}}, {"DynamicThreadCount", {0x28, UNKNOWN}}, {"WorkerQueue", {0x0, _KQUEUE}}, }, { // __unnamed_1e9a {"Notification", {0x0, UNKNOWN | POINTER}}, }, { // _EXCEPTION_POINTERS {"ContextRecord", {0x4, _CONTEXT | POINTER}}, {"ExceptionRecord", {0x0, _EXCEPTION_RECORD | POINTER}}, }, { // _KTHREAD {"ProcessReadyQueue", {0x3c, UNKNOWN}}, {"UmsDirectedSwitchEnable", {0x3c, UNKNOWN}}, {"ApcQueueLock", {0x60, UNKNOWN}}, {"MiscFlags", {0x3c, UNKNOWN}}, {"InitialStack", {0x28, UNKNOWN | POINTER}}, {"ApcStateIndex", {0x134, UNKNOWN}}, {"ForceDeferSchedule", {0x3c, UNKNOWN}}, {"ThreadLock", {0x34, UNKNOWN}}, {"HighCycleTime", {0x18, UNKNOWN}}, {"WaitBlockList", {0x70, _KWAIT_BLOCK | POINTER}}, {"LargeStack", {0x1c3, UNKNOWN}}, {"QuantumReset", {0x197, UNKNOWN}}, {"SListFaultAddress", {0x1f0, UNKNOWN | POINTER}}, {"UserAffinity", {0x144, _GROUP_AFFINITY}}, {"GdiFlushActive", {0x3c, UNKNOWN}}, {"WaitListEntry", {0x74, _LIST_ENTRY}}, {"PreviousMode", {0x13a, UNKNOWN}}, {"ReservedFlags", {0xb8, UNKNOWN}}, {"DisableBoost", {0xb8, UNKNOWN}}, {"StackLimit", {0x2c, UNKNOWN | POINTER}}, {"LegoData", {0x1bc, UNKNOWN | POINTER}}, {"UserStackWalkActive", {0x3c, UNKNOWN}}, {"ContextSwitches", {0x64, UNKNOWN}}, {"StackBase", {0x190, UNKNOWN | POINTER}}, {"ReadyTransition", {0x3c, UNKNOWN}}, {"GuiThread", {0xb8, UNKNOWN}}, {"SListFaultCount", {0x1dc, UNKNOWN}}, {"Alerted", {0x3a, UNKNOWN}}, {"SuspendSemaphorefill", {0x1c8, UNKNOWN}}, {"ApcStateFill", {0x40, UNKNOWN}}, {"SuspendApcFill0", {0x194, UNKNOWN}}, {"SuspendApcFill1", {0x194, UNKNOWN}}, {"UserIdealProcessor", {0x164, UNKNOWN}}, {"SuspendApcFill3", {0x194, UNKNOWN}}, {"SuspendApcFill4", {0x194, UNKNOWN}}, {"SuspendApcFill5", {0x194, UNKNOWN}}, {"WaitStatus", {0x6c, UNKNOWN}}, {"WaitTime", {0x80, UNKNOWN}}, {"State", {0x68, UNKNOWN}}, {"EtwStackTraceApc2Inserted", {0xb8, UNKNOWN}}, {"ApcStatePointer", {0x168, UNKNOWN}}, {"WaitPrcb", {0x1b8, _KPRCB | POINTER}}, {"TimerActive", {0x3c, UNKNOWN}}, {"KernelApcDisable", {0x84, UNKNOWN}}, {"WaitMode", {0x6b, UNKNOWN}}, {"AdjustReason", {0x138, UNKNOWN}}, {"KernelTime", {0x198, UNKNOWN}}, {"EtwStackTraceApc1Inserted", {0xb8, UNKNOWN}}, {"QuantumEndMigrate", {0x3c, UNKNOWN}}, {"PriorityDecrement", {0x136, UNKNOWN}}, {"Timer", {0x90, _KTIMER}}, {"Queue", {0x7c, _KQUEUE | POINTER}}, {"ThreadCounters", {0x1f4, _KTHREAD_COUNTERS | POINTER}}, {"SuspendSemaphore", {0x1c8, _KSEMAPHORE}}, {"CalloutActive", {0xb8, UNKNOWN}}, {"IdealProcessor", {0x160, UNKNOWN}}, {"QuantumTarget", {0x20, UNKNOWN}}, {"SpecialApcDisable", {0x86, UNKNOWN}}, {"SystemCallNumber", {0x13c, UNKNOWN}}, {"CallbackDepth", {0x130, UNKNOWN}}, {"SuspendApcFill2", {0x194, UNKNOWN}}, {"AdjustIncrement", {0x139, UNKNOWN}}, {"CombinedApcDisable", {0x84, UNKNOWN}}, {"ThreadFlags", {0xb8, UNKNOWN}}, {"UmsPerformingSyscall", {0xb8, UNKNOWN}}, {"FirstArgument", {0x12c, UNKNOWN | POINTER}}, {"ApcQueueable", {0xb8, UNKNOWN}}, {"NpxState", {0x69, UNKNOWN}}, {"BasePriority", {0x135, UNKNOWN}}, {"SystemAffinityActive", {0x3c, UNKNOWN}}, {"ApcState", {0x40, _KAPC_STATE}}, {"SuspendApc", {0x194, _KAPC}}, {"WaitIrql", {0x6a, UNKNOWN}}, {"NextProcessor", {0x58, UNKNOWN}}, {"ResourceIndex", {0x195, UNKNOWN}}, {"Alertable", {0x3c, UNKNOWN}}, {"Priority", {0x57, UNKNOWN}}, {"Spare1", {0x189, UNKNOWN}}, {"Process", {0x150, _KPROCESS | POINTER}}, {"Teb", {0x88, UNKNOWN | POINTER}}, {"SuspendCount", {0x188, UNKNOWN}}, {"Header", {0x0, _DISPATCHER_HEADER}}, {"WaitRegister", {0x38, _KWAIT_STATUS_REGISTER}}, {"SwapListEntry", {0x74, _SINGLE_LIST_ENTRY}}, {"WaitBlock", {0xc0, UNKNOWN}}, {"Preempted", {0x137, UNKNOWN}}, {"OtherPlatformFill", {0x18a, UNKNOWN}}, {"KernelStack", {0x30, UNKNOWN | POINTER}}, {"Affinity", {0x154, _GROUP_AFFINITY}}, {"FreezeCount", {0x140, UNKNOWN}}, {"EnableStackSwap", {0xb8, UNKNOWN}}, {"CycleTime", {0x10, UNKNOWN}}, {"Saturation", {0x13b, UNKNOWN}}, {"UserTime", {0x1c4, UNKNOWN}}, {"TrapFrame", {0x128, _KTRAP_FRAME | POINTER}}, {"Running", {0x39, UNKNOWN}}, {"WaitReason", {0x187, UNKNOWN}}, {"SavedApcState", {0x170, _KAPC_STATE}}, {"Win32Thread", {0x18c, UNKNOWN | POINTER}}, {"MutantListHead", {0x1e8, _LIST_ENTRY}}, {"XStateSave", {0x1f8, _XSTATE_SAVE | POINTER}}, {"KernelStackResident", {0x3c, UNKNOWN}}, {"ForegroundBoost", {0x136, UNKNOWN}}, {"AutoAlignment", {0xb8, UNKNOWN}}, {"ThreadListEntry", {0x1e0, _LIST_ENTRY}}, {"Reserved", {0x3c, UNKNOWN}}, {"QueueListEntry", {0x120, _LIST_ENTRY}}, {"WaitNext", {0x3c, UNKNOWN}}, {"DeferredProcessor", {0x5c, UNKNOWN}}, {"ApcInterruptRequest", {0x3c, UNKNOWN}}, {"CallbackStack", {0x130, UNKNOWN | POINTER}}, {"SavedApcStateFill", {0x170, UNKNOWN}}, {"UnusualBoost", {0x136, UNKNOWN}}, {"ServiceTable", {0xbc, UNKNOWN | POINTER}}, }, { // __unnamed_17f6 {"SetInternalBreakpoint", {0x0, _DBGKD_SET_INTERNAL_BREAKPOINT32}}, {"GetInternalBreakpoint", {0x0, _DBGKD_GET_INTERNAL_BREAKPOINT32}}, {"WriteMemory64", {0x0, _DBGKD_WRITE_MEMORY64}}, {"Continue2", {0x0, _DBGKD_CONTINUE2}}, {"SetSpecialCall", {0x0, _DBGKD_SET_SPECIAL_CALL32}}, {"WriteBreakPoint", {0x0, _DBGKD_WRITE_BREAKPOINT32}}, {"ReadWriteIoExtended", {0x0, _DBGKD_READ_WRITE_IO_EXTENDED32}}, {"Continue", {0x0, _DBGKD_CONTINUE}}, {"GetContext", {0x0, _DBGKD_GET_CONTEXT}}, {"GetVersion32", {0x0, _DBGKD_GET_VERSION32}}, {"WriteMemory", {0x0, _DBGKD_WRITE_MEMORY32}}, {"QuerySpecialCalls", {0x0, _DBGKD_QUERY_SPECIAL_CALLS}}, {"RestoreBreakPoint", {0x0, _DBGKD_RESTORE_BREAKPOINT}}, {"ReadMemory", {0x0, _DBGKD_READ_MEMORY32}}, {"SetContext", {0x0, _DBGKD_SET_CONTEXT}}, {"ReadWriteIo", {0x0, _DBGKD_READ_WRITE_IO32}}, {"ReadMemory64", {0x0, _DBGKD_READ_MEMORY64}}, {"SearchMemory", {0x0, _DBGKD_SEARCH_MEMORY}}, {"BreakPointEx", {0x0, _DBGKD_BREAKPOINTEX}}, {"ReadWriteMsr", {0x0, _DBGKD_READ_WRITE_MSR}}, }, { // _DEVICE_CAPABILITIES {"WarmEjectSupported", {0x4, UNKNOWN}}, {"NoDisplayInUI", {0x4, UNKNOWN}}, {"Version", {0x2, UNKNOWN}}, {"Removable", {0x4, UNKNOWN}}, {"DeviceState", {0x10, UNKNOWN}}, {"HardwareDisabled", {0x4, UNKNOWN}}, {"NonDynamic", {0x4, UNKNOWN}}, {"DeviceWake", {0x30, UNKNOWN}}, {"RawDeviceOK", {0x4, UNKNOWN}}, {"SilentInstall", {0x4, UNKNOWN}}, {"D2Latency", {0x38, UNKNOWN}}, {"Address", {0x8, UNKNOWN}}, {"UINumber", {0xc, UNKNOWN}}, {"DeviceD2", {0x4, UNKNOWN}}, {"DeviceD1", {0x4, UNKNOWN}}, {"SystemWake", {0x2c, UNKNOWN}}, {"EjectSupported", {0x4, UNKNOWN}}, {"Reserved", {0x4, UNKNOWN}}, {"DockDevice", {0x4, UNKNOWN}}, {"WakeFromD2", {0x4, UNKNOWN}}, {"WakeFromD3", {0x4, UNKNOWN}}, {"WakeFromD0", {0x4, UNKNOWN}}, {"WakeFromD1", {0x4, UNKNOWN}}, {"SurpriseRemovalOK", {0x4, UNKNOWN}}, {"LockSupported", {0x4, UNKNOWN}}, {"D3Latency", {0x3c, UNKNOWN}}, {"UniqueID", {0x4, UNKNOWN}}, {"D1Latency", {0x34, UNKNOWN}}, {"Reserved1", {0x4, UNKNOWN}}, {"Size", {0x0, UNKNOWN}}, }, { // _HEAP_USERDATA_HEADER {"SizeIndex", {0x8, UNKNOWN}}, {"SubSegment", {0x0, _HEAP_SUBSEGMENT | POINTER}}, {"Reserved", {0x4, UNKNOWN | POINTER}}, {"SFreeListEntry", {0x0, _SINGLE_LIST_ENTRY}}, {"Signature", {0xc, UNKNOWN}}, }, { // _KIDTENTRY {"Access", {0x4, UNKNOWN}}, {"Selector", {0x2, UNKNOWN}}, {"ExtendedOffset", {0x6, UNKNOWN}}, {"Offset", {0x0, UNKNOWN}}, }, { // _RTL_ATOM_TABLE_ENTRY {"Name", {0xc, UNKNOWN}}, {"NameLength", {0xb, UNKNOWN}}, {"Flags", {0xa, UNKNOWN}}, {"HandleIndex", {0x4, UNKNOWN}}, {"Atom", {0x6, UNKNOWN}}, {"HashLink", {0x0, _RTL_ATOM_TABLE_ENTRY | POINTER}}, {"ReferenceCount", {0x8, UNKNOWN}}, }, { // _MM_DRIVER_VERIFIER_DATA {"AllocationsWithNoTag", {0x1c, UNKNOWN}}, {"SynchronizeExecutions", {0xc, UNKNOWN}}, {"BurstAllocationsFailedDeliberately", {0x60, UNKNOWN}}, {"ActivityCounter", {0x78, UNKNOWN}}, {"Level", {0x0, UNKNOWN}}, {"AllocationsSucceeded", {0x14, UNKNOWN}}, {"PeakNonPagedPoolAllocations", {0x4c, UNKNOWN}}, {"CurrentNonPagedPoolAllocations", {0x44, UNKNOWN}}, {"PagedBytes", {0x50, UNKNOWN}}, {"UserTrims", {0x3c, UNKNOWN}}, {"AllocationsFailedDeliberately", {0x2c, UNKNOWN}}, {"PreviousBucketName", {0x70, _UNICODE_STRING}}, {"UnTrackedPool", {0x38, UNKNOWN}}, {"AllocationsFailed", {0x28, UNKNOWN}}, {"Trims", {0x24, UNKNOWN}}, {"SessionTrims", {0x64, UNKNOWN}}, {"Loads", {0x30, UNKNOWN}}, {"NonPagedBytes", {0x54, UNKNOWN}}, {"CurrentPagedPoolAllocations", {0x40, UNKNOWN}}, {"AllocationsAttempted", {0x10, UNKNOWN}}, {"PeakNonPagedBytes", {0x5c, UNKNOWN}}, {"AcquireSpinLocks", {0x8, UNKNOWN}}, {"TrimRequests", {0x20, UNKNOWN}}, {"PeakPagedPoolAllocations", {0x48, UNKNOWN}}, {"RaiseIrqls", {0x4, UNKNOWN}}, {"AllocationsSucceededSpecialPool", {0x18, UNKNOWN}}, {"WorkerTrimRequests", {0x80, UNKNOWN}}, {"PeakPagedBytes", {0x58, UNKNOWN}}, {"VerifyMode", {0x6c, UNKNOWN}}, {"Unloads", {0x34, UNKNOWN}}, {"PreviousActivityCounter", {0x7c, UNKNOWN}}, {"OptionChanges", {0x68, UNKNOWN}}, }, { // __unnamed_1f59 {"Translated", {0x0, __unnamed_1f55}}, {"Raw", {0x0, __unnamed_1f57}}, }, { // _DEVICE_RELATIONS {"Count", {0x0, UNKNOWN}}, {"Objects", {0x4, UNKNOWN}}, }, { // _VF_TARGET_DRIVER {"VerifiedData", {0x14, _VF_TARGET_VERIFIED_DRIVER_DATA | POINTER}}, {"u1", {0x8, __unnamed_1e8a}}, {"TreeNode", {0x0, _VF_AVL_TREE_NODE}}, }, { // _VF_KE_CRITICAL_REGION_TRACE {"StackTrace", {0x4, UNKNOWN}}, {"Thread", {0x0, _ETHREAD | POINTER}}, }, { // __unnamed_1060 {"s", {0x0, __unnamed_105e}}, {"Flags", {0x0, UNKNOWN}}, }, { // _HMAP_DIRECTORY {"Directory", {0x0, UNKNOWN}}, }, { // _VI_DEADLOCK_GLOBALS {"ThreadDatabase", {0x2010, _LIST_ENTRY | POINTER}}, {"Participant", {0x4058, UNKNOWN}}, {"ABC_ACB_Skipped", {0x4038, UNKNOWN}}, {"ThreadDatabaseCount", {0x2014, UNKNOWN}}, {"SearchedNodesLimit", {0x402c, UNKNOWN}}, {"AllocationFailures", {0x4010, UNKNOWN}}, {"ResourceAddressRange", {0x18, UNKNOWN}}, {"Instigator", {0x4050, UNKNOWN | POINTER}}, {"SequenceNumber", {0x4024, UNKNOWN}}, {"TimeAcquire", {0x0, UNKNOWN}}, {"ResourceDatabaseCount", {0x14, UNKNOWN}}, {"NodesTrimmedBasedOnAge", {0x4014, UNKNOWN}}, {"NodesSearched", {0x401c, UNKNOWN}}, {"DepthLimitHits", {0x4030, UNKNOWN}}, {"NumberOfParticipants", {0x4054, UNKNOWN}}, {"TotalReleases", {0x4044, UNKNOWN}}, {"ResourceDatabase", {0x10, _LIST_ENTRY | POINTER}}, {"TimeRelease", {0x8, UNKNOWN}}, {"MaxNodesSearched", {0x4020, UNKNOWN}}, {"ChildrenCountWatermark", {0x40d8, UNKNOWN}}, {"SearchLimitHits", {0x4034, UNKNOWN}}, {"RecursionDepthLimit", {0x4028, UNKNOWN}}, {"NodesReleasedOutOfOrder", {0x4040, UNKNOWN}}, {"ForgetHistoryCounter", {0x404c, UNKNOWN}}, {"NodesTrimmedBasedOnCount", {0x4018, UNKNOWN}}, {"OutOfOrderReleases", {0x403c, UNKNOWN}}, {"RootNodesDeleted", {0x4048, UNKNOWN}}, {"ThreadAddressRange", {0x2018, UNKNOWN}}, }, { // _RTL_RANGE {"UserData", {0x10, UNKNOWN | POINTER}}, {"End", {0x8, UNKNOWN}}, {"Start", {0x0, UNKNOWN}}, {"Flags", {0x19, UNKNOWN}}, {"Owner", {0x14, UNKNOWN | POINTER}}, {"Attributes", {0x18, UNKNOWN}}, }, { // _HEAP_PSEUDO_TAG_ENTRY {"Allocs", {0x0, UNKNOWN}}, {"Frees", {0x4, UNKNOWN}}, {"Size", {0x8, UNKNOWN}}, }, { // _INTERFACE {"InterfaceDereference", {0xc, UNKNOWN | POINTER}}, {"InterfaceReference", {0x8, UNKNOWN | POINTER}}, {"Version", {0x2, UNKNOWN}}, {"Context", {0x4, UNKNOWN | POINTER}}, {"Size", {0x0, UNKNOWN}}, }, { // _SECURITY_QUALITY_OF_SERVICE {"EffectiveOnly", {0x9, UNKNOWN}}, {"ContextTrackingMode", {0x8, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, {"ImpersonationLevel", {0x4, UNKNOWN}}, }, { // _ARBITER_INSTANCE {"PdoAddressString", {0x5e8, UNKNOWN}}, {"QueryConflict", {0x64, UNKNOWN | POINTER}}, {"ResourceType", {0x10, UNKNOWN}}, {"TransactionEvent", {0x94, _KEVENT | POINTER}}, {"GetNextAllocationRange", {0x78, UNKNOWN | POINTER}}, {"StartArbiter", {0x6c, UNKNOWN | POINTER}}, {"AllocateEntry", {0x74, UNKNOWN | POINTER}}, {"ScoreRequirement", {0x48, UNKNOWN | POINTER}}, {"Allocation", {0x14, _RTL_RANGE_LIST | POINTER}}, {"FindSuitableRange", {0x7c, UNKNOWN | POINTER}}, {"TransactionInProgress", {0x90, UNKNOWN}}, {"PdoDescriptionString", {0xa8, UNKNOWN}}, {"PackResource", {0x40, UNKNOWN | POINTER}}, {"OrderingName", {0xc, UNKNOWN | POINTER}}, {"PdoSymbolicNameString", {0x348, UNKNOWN}}, {"CommitAllocation", {0x54, UNKNOWN | POINTER}}, {"OverrideConflict", {0x88, UNKNOWN | POINTER}}, {"ReservedList", {0x24, _ARBITER_ORDERING_LIST}}, {"ReferenceCount", {0x2c, UNKNOWN}}, {"InitializeRangeList", {0x8c, UNKNOWN | POINTER}}, {"PreprocessEntry", {0x70, UNKNOWN | POINTER}}, {"ConflictCallback", {0xa4, UNKNOWN | POINTER}}, {"TestAllocation", {0x4c, UNKNOWN | POINTER}}, {"AllocationStackMaxSize", {0x34, UNKNOWN}}, {"MutexEvent", {0x4, _KEVENT | POINTER}}, {"BusDeviceObject", {0x9c, _DEVICE_OBJECT | POINTER}}, {"PossibleAllocation", {0x18, _RTL_RANGE_LIST | POINTER}}, {"OrderingList", {0x1c, _ARBITER_ORDERING_LIST}}, {"RollbackAllocation", {0x58, UNKNOWN | POINTER}}, {"UnpackResource", {0x44, UNKNOWN | POINTER}}, {"ConflictCallbackContext", {0xa0, UNKNOWN | POINTER}}, {"AllocationStack", {0x38, _ARBITER_ALLOCATION_STATE | POINTER}}, {"Interface", {0x30, _ARBITER_INTERFACE | POINTER}}, {"UnpackRequirement", {0x3c, UNKNOWN | POINTER}}, {"Name", {0x8, UNKNOWN | POINTER}}, {"Extension", {0x98, UNKNOWN | POINTER}}, {"AddAllocation", {0x80, UNKNOWN | POINTER}}, {"BootAllocation", {0x5c, UNKNOWN | POINTER}}, {"Signature", {0x0, UNKNOWN}}, {"AddReserved", {0x68, UNKNOWN | POINTER}}, {"QueryArbitrate", {0x60, UNKNOWN | POINTER}}, {"RetestAllocation", {0x50, UNKNOWN | POINTER}}, {"BacktrackAllocation", {0x84, UNKNOWN | POINTER}}, }, { // _MM_AVL_TABLE {"BalancedRoot", {0x0, _MMADDRESS_NODE}}, {"NodeFreeHint", {0x1c, UNKNOWN | POINTER}}, {"DepthOfTree", {0x14, UNKNOWN}}, {"Unused", {0x14, UNKNOWN}}, {"NumberGenericTableElements", {0x14, UNKNOWN}}, {"NodeHint", {0x18, UNKNOWN | POINTER}}, }, { // _OBJECT_SYMBOLIC_LINK {"LinkTarget", {0x8, _UNICODE_STRING}}, {"CreationTime", {0x0, _LARGE_INTEGER}}, {"DosDeviceDriveIndex", {0x10, UNKNOWN}}, }, { // _CELL_DATA {"u", {0x0, _u}}, }, { // _PCW_CALLBACK_INFORMATION {"RemoveCounter", {0x0, _PCW_COUNTER_INFORMATION}}, {"EnumerateInstances", {0x0, _PCW_MASK_INFORMATION}}, {"AddCounter", {0x0, _PCW_COUNTER_INFORMATION}}, {"CollectData", {0x0, _PCW_MASK_INFORMATION}}, }, { // _LDR_DATA_TABLE_ENTRY {"InInitializationOrderLinks", {0x10, _LIST_ENTRY}}, {"InMemoryOrderLinks", {0x8, _LIST_ENTRY}}, {"TimeDateStamp", {0x44, UNKNOWN}}, {"InLoadOrderLinks", {0x0, _LIST_ENTRY}}, {"BaseDllName", {0x2c, _UNICODE_STRING}}, {"PatchInformation", {0x4c, UNKNOWN | POINTER}}, {"ServiceTagLinks", {0x58, _LIST_ENTRY}}, {"LoadCount", {0x38, UNKNOWN}}, {"DllBase", {0x18, UNKNOWN | POINTER}}, {"TlsIndex", {0x3a, UNKNOWN}}, {"LoadedImports", {0x44, UNKNOWN | POINTER}}, {"HashLinks", {0x3c, _LIST_ENTRY}}, {"ContextInformation", {0x68, UNKNOWN | POINTER}}, {"Flags", {0x34, UNKNOWN}}, {"StaticLinks", {0x60, _LIST_ENTRY}}, {"FullDllName", {0x24, _UNICODE_STRING}}, {"LoadTime", {0x70, _LARGE_INTEGER}}, {"CheckSum", {0x40, UNKNOWN}}, {"SizeOfImage", {0x20, UNKNOWN}}, {"SectionPointer", {0x3c, UNKNOWN | POINTER}}, {"EntryPoint", {0x1c, UNKNOWN | POINTER}}, {"OriginalBase", {0x6c, UNKNOWN}}, {"ForwarderLinks", {0x50, _LIST_ENTRY}}, {"EntryPointActivationContext", {0x48, UNKNOWN | POINTER}}, }, { // _MMSUBSECTION_NODE {"RightChild", {0x14, _MMSUBSECTION_NODE | POINTER}}, {"u1", {0xc, __unnamed_1f80}}, {"LeftChild", {0x10, _MMSUBSECTION_NODE | POINTER}}, {"u", {0x0, __unnamed_1ef2}}, {"NumberOfFullSectors", {0x8, UNKNOWN}}, {"StartingSector", {0x4, UNKNOWN}}, }, { // _OBJECT_CREATE_INFORMATION {"SecurityDescriptorCharge", {0x14, UNKNOWN}}, {"ProbeMode", {0x8, UNKNOWN}}, {"RootDirectory", {0x4, UNKNOWN | POINTER}}, {"SecurityQos", {0x1c, _SECURITY_QUALITY_OF_SERVICE | POINTER}}, {"PagedPoolCharge", {0xc, UNKNOWN}}, {"SecurityQualityOfService", {0x20, _SECURITY_QUALITY_OF_SERVICE}}, {"Attributes", {0x0, UNKNOWN}}, {"SecurityDescriptor", {0x18, UNKNOWN | POINTER}}, {"NonPagedPoolCharge", {0x10, UNKNOWN}}, }, { // _EX_PUSH_LOCK {"Locked", {0x0, UNKNOWN}}, {"MultipleShared", {0x0, UNKNOWN}}, {"Value", {0x0, UNKNOWN}}, {"Waking", {0x0, UNKNOWN}}, {"Waiting", {0x0, UNKNOWN}}, {"Shared", {0x0, UNKNOWN}}, {"Ptr", {0x0, UNKNOWN | POINTER}}, }, { // _CM_KEY_SECURITY_CACHE {"RealRefCount", {0x14, UNKNOWN}}, {"List", {0x8, _LIST_ENTRY}}, {"Cell", {0x0, UNKNOWN}}, {"Descriptor", {0x18, _SECURITY_DESCRIPTOR_RELATIVE}}, {"DescriptorLength", {0x10, UNKNOWN}}, {"ConvKey", {0x4, UNKNOWN}}, }, { // _KALPC_HANDLE_DATA {"DuplicateContext", {0x8, _OB_DUPLICATE_OBJECT_STATE | POINTER}}, {"Flags", {0x0, UNKNOWN}}, {"ObjectType", {0x4, UNKNOWN}}, }, { // __unnamed_1962 {"ZeroInit", {0x0, UNKNOWN}}, {"s2", {0x0, __unnamed_1960}}, }, { // __unnamed_1960 {"DataInfoOffset", {0x2, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, }, { // _OBJECT_TYPE {"Index", {0x14, UNKNOWN}}, {"TypeInfo", {0x28, _OBJECT_TYPE_INITIALIZER}}, {"Name", {0x8, _UNICODE_STRING}}, {"DefaultObject", {0x10, UNKNOWN | POINTER}}, {"HighWaterNumberOfHandles", {0x24, UNKNOWN}}, {"TypeList", {0x0, _LIST_ENTRY}}, {"CallbackList", {0x80, _LIST_ENTRY}}, {"Key", {0x7c, UNKNOWN}}, {"TotalNumberOfHandles", {0x1c, UNKNOWN}}, {"TotalNumberOfObjects", {0x18, UNKNOWN}}, {"HighWaterNumberOfObjects", {0x20, UNKNOWN}}, {"TypeLock", {0x78, _EX_PUSH_LOCK}}, }, { // _PCW_DATA {"Data", {0x0, UNKNOWN | POINTER}}, {"Size", {0x4, UNKNOWN}}, }, { // __unnamed_12fc {"Capabilities", {0x0, _DEVICE_CAPABILITIES | POINTER}}, }, { // _DRIVER_OBJECT {"FastIoDispatch", {0x28, _FAST_IO_DISPATCH | POINTER}}, {"Flags", {0x8, UNKNOWN}}, {"DriverName", {0x1c, _UNICODE_STRING}}, {"DriverSection", {0x14, UNKNOWN | POINTER}}, {"DriverStartIo", {0x30, UNKNOWN | POINTER}}, {"Type", {0x0, UNKNOWN}}, {"DriverExtension", {0x18, _DRIVER_EXTENSION | POINTER}}, {"DriverInit", {0x2c, UNKNOWN | POINTER}}, {"DeviceObject", {0x4, _DEVICE_OBJECT | POINTER}}, {"DriverUnload", {0x34, UNKNOWN | POINTER}}, {"MajorFunction", {0x38, UNKNOWN}}, {"DriverStart", {0xc, UNKNOWN | POINTER}}, {"HardwareDatabase", {0x24, _UNICODE_STRING | POINTER}}, {"Size", {0x2, UNKNOWN}}, {"DriverSize", {0x10, UNKNOWN}}, }, { // _UNICODE_STRING {"Buffer", {0x4, UNKNOWN | POINTER}}, {"Length", {0x0, UNKNOWN}}, {"MaximumLength", {0x2, UNKNOWN}}, }, { // _OBJECT_NAME_INFORMATION {"Name", {0x0, _UNICODE_STRING}}, }, { // _MMWSLE_FREE_ENTRY {"MustBeZero", {0x0, UNKNOWN}}, {"PreviousFree", {0x0, UNKNOWN}}, {"NextFree", {0x0, UNKNOWN}}, }, { // __unnamed_12f8 {"Interface", {0x8, _INTERFACE | POINTER}}, {"InterfaceSpecificData", {0xc, UNKNOWN | POINTER}}, {"Version", {0x6, UNKNOWN}}, {"InterfaceType", {0x0, _GUID | POINTER}}, {"Size", {0x4, UNKNOWN}}, }, { // _AMD64_DBGKD_CONTROL_SET {"TraceFlag", {0x0, UNKNOWN}}, {"CurrentSymbolEnd", {0x14, UNKNOWN}}, {"CurrentSymbolStart", {0xc, UNKNOWN}}, {"Dr7", {0x4, UNKNOWN}}, }, { // __unnamed_12f2 {"Type", {0x0, UNKNOWN}}, }, { // _KEVENT {"Header", {0x0, _DISPATCHER_HEADER}}, }, { // _SEGMENT_FLAGS {"TotalNumberOfPtes4132", {0x0, UNKNOWN}}, {"ContainsDebug", {0x0, UNKNOWN}}, {"Binary32", {0x0, UNKNOWN}}, {"ExtraSharedWowSubsections", {0x0, UNKNOWN}}, {"WriteCombined", {0x0, UNKNOWN}}, {"DefaultProtectionMask", {0x0, UNKNOWN}}, {"LargePages", {0x0, UNKNOWN}}, {"DebugSymbolsLoaded", {0x0, UNKNOWN}}, {"NoCache", {0x0, UNKNOWN}}, {"WatchProto", {0x0, UNKNOWN}}, {"Spare", {0x0, UNKNOWN}}, {"FloppyMedia", {0x0, UNKNOWN}}, }, { // _NBQUEUE_BLOCK {"SListEntry", {0x0, _SINGLE_LIST_ENTRY}}, {"Data", {0x10, UNKNOWN}}, {"Next", {0x8, UNKNOWN}}, }, { // _CM_NOTIFY_BLOCK {"Filter", {0x18, UNKNOWN}}, {"KeyControlBlock", {0x10, _CM_KEY_CONTROL_BLOCK | POINTER}}, {"HiveList", {0x0, _LIST_ENTRY}}, {"SubjectContext", {0x1c, _SECURITY_SUBJECT_CONTEXT}}, {"WatchTree", {0x18, UNKNOWN}}, {"PostList", {0x8, _LIST_ENTRY}}, {"KeyBody", {0x14, _CM_KEY_BODY | POINTER}}, {"NotifyPending", {0x18, UNKNOWN}}, }, { // _DBGKD_READ_WRITE_IO64 {"DataValue", {0xc, UNKNOWN}}, {"DataSize", {0x8, UNKNOWN}}, {"IoAddress", {0x0, UNKNOWN}}, }, { // _TP_NBQ_GUARD {"GuardLinks", {0x0, _LIST_ENTRY}}, {"Guards", {0x8, UNKNOWN}}, }, { // _ETW_REF_CLOCK {"StartTime", {0x0, _LARGE_INTEGER}}, {"StartPerfClock", {0x8, _LARGE_INTEGER}}, }, { // _ARBITER_TEST_ALLOCATION_PARAMETERS {"ArbitrationList", {0x0, _LIST_ENTRY | POINTER}}, {"AllocateFrom", {0x8, _CM_PARTIAL_RESOURCE_DESCRIPTOR | POINTER}}, {"AllocateFromCount", {0x4, UNKNOWN}}, }, { // _VF_AVL_TREE_NODE {"p", {0x0, UNKNOWN | POINTER}}, {"RangeSize", {0x4, UNKNOWN}}, }, { // _CONFIGURATION_COMPONENT_DATA {"Sibling", {0x8, _CONFIGURATION_COMPONENT_DATA | POINTER}}, {"ConfigurationData", {0x30, UNKNOWN | POINTER}}, {"ComponentEntry", {0xc, _CONFIGURATION_COMPONENT}}, {"Parent", {0x0, _CONFIGURATION_COMPONENT_DATA | POINTER}}, {"Child", {0x4, _CONFIGURATION_COMPONENT_DATA | POINTER}}, }, { // _SYSPTES_HEADER {"Count", {0x8, UNKNOWN}}, {"NumberOfEntries", {0xc, UNKNOWN}}, {"NumberOfEntriesPeak", {0x10, UNKNOWN}}, {"ListHead", {0x0, _LIST_ENTRY}}, }, { // _DBGKD_GET_VERSION64 {"KernBase", {0x10, UNKNOWN}}, {"Simulation", {0xd, UNKNOWN}}, {"Flags", {0x6, UNKNOWN}}, {"MaxManipulate", {0xc, UNKNOWN}}, {"MaxPacketType", {0xa, UNKNOWN}}, {"DebuggerDataList", {0x20, UNKNOWN}}, {"MajorVersion", {0x0, UNKNOWN}}, {"MaxStateChange", {0xb, UNKNOWN}}, {"MachineType", {0x8, UNKNOWN}}, {"MinorVersion", {0x2, UNKNOWN}}, {"PsLoadedModuleList", {0x18, UNKNOWN}}, {"Unused", {0xe, UNKNOWN}}, {"KdSecondaryVersion", {0x5, UNKNOWN}}, {"ProtocolVersion", {0x4, UNKNOWN}}, }, { // _DUAL {"Map", {0x4, _HMAP_DIRECTORY | POINTER}}, {"SmallDir", {0x8, _HMAP_TABLE | POINTER}}, {"Guard", {0xc, UNKNOWN}}, {"FreeDisplay", {0x10, UNKNOWN}}, {"FreeBins", {0x134, _LIST_ENTRY}}, {"Length", {0x0, UNKNOWN}}, {"FreeSummary", {0x130, UNKNOWN}}, }, { // _MI_VERIFIER_POOL_HEADER {"VerifierPoolEntry", {0x0, _VI_POOL_ENTRY | POINTER}}, }, { // _DBGKD_LOAD_SYMBOLS64 {"ProcessId", {0x10, UNKNOWN}}, {"PathNameLength", {0x0, UNKNOWN}}, {"CheckSum", {0x18, UNKNOWN}}, {"BaseOfDll", {0x8, UNKNOWN}}, {"SizeOfImage", {0x1c, UNKNOWN}}, {"UnloadSymbols", {0x20, UNKNOWN}}, }, { // _DBGKM_EXCEPTION64 {"FirstChance", {0x98, UNKNOWN}}, {"ExceptionRecord", {0x0, _EXCEPTION_RECORD64}}, }, { // _KAFFINITY_EX {"Count", {0x0, UNKNOWN}}, {"Bitmap", {0x8, UNKNOWN}}, {"Reserved", {0x4, UNKNOWN}}, {"Size", {0x2, UNKNOWN}}, }, { // _SHARED_CACHE_MAP_LIST_CURSOR {"Flags", {0x8, UNKNOWN}}, {"SharedCacheMapLinks", {0x0, _LIST_ENTRY}}, }, { // _MBCB {"MostRecentlyDirtiedPage", {0x20, UNKNOWN}}, {"ResumeWritePage", {0x18, UNKNOWN}}, {"Reserved", {0xc, UNKNOWN}}, {"BitmapRanges", {0x10, _LIST_ENTRY}}, {"DirtyPages", {0x8, UNKNOWN}}, {"PagesToWrite", {0x4, UNKNOWN}}, {"NodeIsInZone", {0x2, UNKNOWN}}, {"BitmapRange1", {0x28, _BITMAP_RANGE}}, {"BitmapRange2", {0x48, _BITMAP_RANGE}}, {"BitmapRange3", {0x68, _BITMAP_RANGE}}, {"NodeTypeCode", {0x0, UNKNOWN}}, }, { // _ETW_SYSTEMTIME {"DayOfWeek", {0x4, UNKNOWN}}, {"Second", {0xc, UNKNOWN}}, {"Milliseconds", {0xe, UNKNOWN}}, {"Hour", {0x8, UNKNOWN}}, {"Year", {0x0, UNKNOWN}}, {"Day", {0x6, UNKNOWN}}, {"Minute", {0xa, UNKNOWN}}, {"Month", {0x2, UNKNOWN}}, }, { // _KLOCK_QUEUE_HANDLE {"OldIrql", {0x8, UNKNOWN}}, {"LockQueue", {0x0, _KSPIN_LOCK_QUEUE}}, }, { // __unnamed_1300 {"IoResourceRequirementList", {0x0, _IO_RESOURCE_REQUIREMENTS_LIST | POINTER}}, }, { // _POOL_TRACKER_BIG_PAGES {"NumberOfBytes", {0xc, UNKNOWN}}, {"Va", {0x0, UNKNOWN | POINTER}}, {"PoolType", {0x8, UNKNOWN}}, {"Key", {0x4, UNKNOWN}}, }, { // _RTL_DYNAMIC_HASH_TABLE {"NonEmptyBuckets", {0x18, UNKNOWN}}, {"Flags", {0x0, UNKNOWN}}, {"TableSize", {0x8, UNKNOWN}}, {"Pivot", {0xc, UNKNOWN}}, {"Directory", {0x20, UNKNOWN | POINTER}}, {"Shift", {0x4, UNKNOWN}}, {"NumEntries", {0x14, UNKNOWN}}, {"NumEnumerators", {0x1c, UNKNOWN}}, {"DivisorMask", {0x10, UNKNOWN}}, }, { // _TEB_ACTIVE_FRAME {"Flags", {0x0, UNKNOWN}}, {"Context", {0x8, _TEB_ACTIVE_FRAME_CONTEXT | POINTER}}, {"Previous", {0x4, _TEB_ACTIVE_FRAME | POINTER}}, }, { // _PRIVATE_CACHE_MAP_FLAGS {"Available", {0x0, UNKNOWN}}, {"DontUse", {0x0, UNKNOWN}}, {"ReadAheadActive", {0x0, UNKNOWN}}, {"ReadAheadEnabled", {0x0, UNKNOWN}}, {"PagePriority", {0x0, UNKNOWN}}, }, { // _MMSECURE_FLAGS {"NoWrite", {0x0, UNKNOWN}}, {"ReadOnly", {0x0, UNKNOWN}}, {"Spare", {0x0, UNKNOWN}}, }, { // _CONTEXT {"Esp", {0xc4, UNKNOWN}}, {"Dr1", {0x8, UNKNOWN}}, {"Dr0", {0x4, UNKNOWN}}, {"Dr3", {0x10, UNKNOWN}}, {"Dr2", {0xc, UNKNOWN}}, {"Dr7", {0x18, UNKNOWN}}, {"Dr6", {0x14, UNKNOWN}}, {"ContextFlags", {0x0, UNKNOWN}}, {"Esi", {0xa0, UNKNOWN}}, {"SegDs", {0x98, UNKNOWN}}, {"SegSs", {0xc8, UNKNOWN}}, {"SegFs", {0x90, UNKNOWN}}, {"Eax", {0xb0, UNKNOWN}}, {"FloatSave", {0x1c, _FLOATING_SAVE_AREA}}, {"EFlags", {0xc0, UNKNOWN}}, {"Ecx", {0xac, UNKNOWN}}, {"Eip", {0xb8, UNKNOWN}}, {"ExtendedRegisters", {0xcc, UNKNOWN}}, {"SegEs", {0x94, UNKNOWN}}, {"Edi", {0x9c, UNKNOWN}}, {"SegGs", {0x8c, UNKNOWN}}, {"Ebp", {0xb4, UNKNOWN}}, {"SegCs", {0xbc, UNKNOWN}}, {"Edx", {0xa8, UNKNOWN}}, {"Ebx", {0xa4, UNKNOWN}}, }, { // _ARC_DISK_INFORMATION {"DiskSignatures", {0x0, _LIST_ENTRY}}, }, { // _CONTROL_AREA {"NumberOfUserReferences", {0x18, UNKNOWN}}, {"ModifiedWriteCount", {0x2c, UNKNOWN}}, {"WaitingForDeletion", {0x30, _MI_SECTION_CREATION_GATE | POINTER}}, {"DereferenceList", {0x4, _LIST_ENTRY}}, {"NumberOfMappedViews", {0x14, UNKNOWN}}, {"NumberOfPfnReferences", {0x10, UNKNOWN}}, {"FilePointer", {0x24, _EX_FAST_REF}}, {"u2", {0x34, __unnamed_1546}}, {"NumberOfSectionReferences", {0xc, UNKNOWN}}, {"ViewList", {0x48, _LIST_ENTRY}}, {"u", {0x1c, __unnamed_153a}}, {"LockedPages", {0x40, UNKNOWN}}, {"ControlAreaLock", {0x28, UNKNOWN}}, {"FlushInProgressCount", {0x20, UNKNOWN}}, {"Segment", {0x0, _SEGMENT | POINTER}}, {"StartingFrame", {0x2c, UNKNOWN}}, }, { // _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR {"SectionLength", {0x4, UNKNOWN}}, {"FRUId", {0x20, _GUID}}, {"Reserved", {0xb, UNKNOWN}}, {"FRUText", {0x34, UNKNOWN}}, {"ValidBits", {0xa, _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_VALIDBITS}}, {"SectionOffset", {0x0, UNKNOWN}}, {"SectionSeverity", {0x30, UNKNOWN}}, {"Flags", {0xc, _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_FLAGS}}, {"SectionType", {0x10, _GUID}}, {"Revision", {0x8, _WHEA_REVISION}}, }, { // _CM_KCB_UOW {"TxSecurityCell", {0x30, UNKNOWN}}, {"Transaction", {0x1c, _CM_TRANS | POINTER}}, {"KeyControlBlock", {0x18, _CM_KEY_CONTROL_BLOCK | POINTER}}, {"KCBLock", {0x8, _CM_INTENT_LOCK | POINTER}}, {"StorageType", {0x28, UNKNOWN}}, {"NewChildKCB", {0x34, _CM_KEY_CONTROL_BLOCK | POINTER}}, {"UoWState", {0x20, UNKNOWN}}, {"LastWriteTime", {0x30, _LARGE_INTEGER}}, {"OldChildKCB", {0x30, _CM_KEY_CONTROL_BLOCK | POINTER}}, {"KeyLock", {0xc, _CM_INTENT_LOCK | POINTER}}, {"ThisVolatileKeyCell", {0x34, UNKNOWN}}, {"OtherChildKCB", {0x30, _CM_KEY_CONTROL_BLOCK | POINTER}}, {"OldValueCell", {0x30, UNKNOWN}}, {"KCBListEntry", {0x10, _LIST_ENTRY}}, {"ChildKCB", {0x30, _CM_KEY_CONTROL_BLOCK | POINTER}}, {"UserFlags", {0x30, UNKNOWN}}, {"TransactionListEntry", {0x0, _LIST_ENTRY}}, {"ActionType", {0x24, UNKNOWN}}, {"VolatileKeyCell", {0x30, UNKNOWN}}, {"NewValueCell", {0x34, UNKNOWN}}, }, { // __unnamed_1e41 {"MinBusNumber", {0x4, UNKNOWN}}, {"Length", {0x0, UNKNOWN}}, {"Reserved", {0xc, UNKNOWN}}, {"MaxBusNumber", {0x8, UNKNOWN}}, }, { // _KALPC_SECURITY_DATA {"HandleTable", {0x0, _ALPC_HANDLE_TABLE | POINTER}}, {"u1", {0x4c, __unnamed_1a1b}}, {"OwnerPort", {0xc, _ALPC_PORT | POINTER}}, {"ContextHandle", {0x4, UNKNOWN | POINTER}}, {"DynamicSecurity", {0x10, _SECURITY_CLIENT_CONTEXT}}, {"OwningProcess", {0x8, _EPROCESS | POINTER}}, }, { // _RTL_CRITICAL_SECTION_DEBUG {"CreatorBackTraceIndex", {0x2, UNKNOWN}}, {"SpareUSHORT", {0x1e, UNKNOWN}}, {"EntryCount", {0x10, UNKNOWN}}, {"Flags", {0x18, UNKNOWN}}, {"ProcessLocksList", {0x8, _LIST_ENTRY}}, {"CreatorBackTraceIndexHigh", {0x1c, UNKNOWN}}, {"ContentionCount", {0x14, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"CriticalSection", {0x4, _RTL_CRITICAL_SECTION | POINTER}}, }, { // _MMVAD {"EndingVpn", {0x10, UNKNOWN}}, {"FirstPrototypePte", {0x28, _MMPTE | POINTER}}, {"RightChild", {0x8, _MMVAD | POINTER}}, {"StartingVpn", {0xc, UNKNOWN}}, {"Subsection", {0x24, _SUBSECTION | POINTER}}, {"LastContiguousPte", {0x2c, _MMPTE | POINTER}}, {"VadsProcess", {0x38, _EPROCESS | POINTER}}, {"PushLock", {0x18, _EX_PUSH_LOCK}}, {"u5", {0x1c, __unnamed_1586}}, {"u1", {0x0, __unnamed_1580}}, {"u2", {0x20, __unnamed_1593}}, {"LeftChild", {0x4, _MMVAD | POINTER}}, {"u", {0x14, __unnamed_1583}}, {"MappedSubsection", {0x24, _MSUBSECTION | POINTER}}, {"ViewLinks", {0x30, _LIST_ENTRY}}, }, { // _RELATION_LIST {"Count", {0x0, UNKNOWN}}, {"MaxLevel", {0xc, UNKNOWN}}, {"TagCount", {0x4, UNKNOWN}}, {"FirstLevel", {0x8, UNKNOWN}}, {"Entries", {0x10, UNKNOWN}}, }, { // __unnamed_1e3b {"AffinityPolicy", {0x8, UNKNOWN}}, {"Group", {0xa, UNKNOWN}}, {"PriorityPolicy", {0xc, UNKNOWN}}, {"MinimumVector", {0x0, UNKNOWN}}, {"MaximumVector", {0x4, UNKNOWN}}, {"TargetedProcessors", {0x10, UNKNOWN}}, }, { // __unnamed_1e3d {"MinimumChannel", {0x0, UNKNOWN}}, {"MaximumChannel", {0x4, UNKNOWN}}, }, { // _MMSUPPORT_FLAGS {"Available", {0x3, UNKNOWN}}, {"SessionMaster", {0x1, UNKNOWN}}, {"ModwriterAttached", {0x0, UNKNOWN}}, {"MaximumWorkingSetHard", {0x0, UNKNOWN}}, {"TrimHard", {0x0, UNKNOWN}}, {"MemoryPriority", {0x2, UNKNOWN}}, {"TrimmerState", {0x1, UNKNOWN}}, {"ForceTrim", {0x0, UNKNOWN}}, {"Reserved", {0x1, UNKNOWN}}, {"PageStealers", {0x1, UNKNOWN}}, {"VmExiting", {0x3, UNKNOWN}}, {"MinimumWorkingSetHard", {0x0, UNKNOWN}}, {"WorkingSetType", {0x0, UNKNOWN}}, {"ExpansionFailed", {0x3, UNKNOWN}}, {"WsleDeleted", {0x3, UNKNOWN}}, }, { // __unnamed_1e3f {"Data", {0x0, UNKNOWN}}, }, { // _ARBITER_LIST_ENTRY {"PhysicalDeviceObject", {0x10, _DEVICE_OBJECT | POINTER}}, {"Flags", {0x18, UNKNOWN}}, {"BusNumber", {0x28, UNKNOWN}}, {"SlotNumber", {0x24, UNKNOWN}}, {"AlternativeCount", {0x8, UNKNOWN}}, {"Assignment", {0x2c, _CM_PARTIAL_RESOURCE_DESCRIPTOR | POINTER}}, {"Alternatives", {0xc, _IO_RESOURCE_DESCRIPTOR | POINTER}}, {"InterfaceType", {0x20, UNKNOWN}}, {"Result", {0x34, UNKNOWN}}, {"WorkSpace", {0x1c, UNKNOWN}}, {"SelectedAlternative", {0x30, _IO_RESOURCE_DESCRIPTOR | POINTER}}, {"RequestSource", {0x14, UNKNOWN}}, {"ListEntry", {0x0, _LIST_ENTRY}}, }, { // __unnamed_1e8a {"AllSharedExportThunks", {0x0, _VF_TARGET_ALL_SHARED_EXPORT_THUNKS}}, {"Flags", {0x0, __unnamed_1e88}}, }, { // _KTSS {"Eip", {0x20, UNKNOWN}}, {"Reserved8", {0x62, UNKNOWN}}, {"Esp", {0x38, UNKNOWN}}, {"Ss", {0x50, UNKNOWN}}, {"Ds", {0x54, UNKNOWN}}, {"LDT", {0x60, UNKNOWN}}, {"IntDirectionMap", {0x208c, UNKNOWN}}, {"Cs", {0x4c, UNKNOWN}}, {"Flags", {0x64, UNKNOWN}}, {"Reserved4", {0x52, UNKNOWN}}, {"Reserved7", {0x5e, UNKNOWN}}, {"Backlink", {0x0, UNKNOWN}}, {"Esi", {0x40, UNKNOWN}}, {"CR3", {0x1c, UNKNOWN}}, {"Reserved5", {0x56, UNKNOWN}}, {"Fs", {0x58, UNKNOWN}}, {"Gs", {0x5c, UNKNOWN}}, {"IoMaps", {0x68, UNKNOWN}}, {"Ebx", {0x34, UNKNOWN}}, {"Edi", {0x44, UNKNOWN}}, {"IoMapBase", {0x66, UNKNOWN}}, {"Ss0", {0x8, UNKNOWN}}, {"NotUsed1", {0xc, UNKNOWN}}, {"Eax", {0x28, UNKNOWN}}, {"EFlags", {0x24, UNKNOWN}}, {"Reserved3", {0x4e, UNKNOWN}}, {"Reserved6", {0x5a, UNKNOWN}}, {"Esp0", {0x4, UNKNOWN}}, {"Ebp", {0x3c, UNKNOWN}}, {"Edx", {0x30, UNKNOWN}}, {"Reserved2", {0x4a, UNKNOWN}}, {"Reserved1", {0xa, UNKNOWN}}, {"Reserved0", {0x2, UNKNOWN}}, {"Es", {0x48, UNKNOWN}}, {"Ecx", {0x2c, UNKNOWN}}, }, { // _IO_TIMER {"TimerList", {0x4, _LIST_ENTRY}}, {"DeviceObject", {0x14, _DEVICE_OBJECT | POINTER}}, {"TimerRoutine", {0xc, UNKNOWN | POINTER}}, {"TimerFlag", {0x2, UNKNOWN}}, {"Context", {0x10, UNKNOWN | POINTER}}, {"Type", {0x0, UNKNOWN}}, }, { // _MI_SECTION_CREATION_GATE {"Gate", {0x4, _KGATE}}, {"Next", {0x0, _MI_SECTION_CREATION_GATE | POINTER}}, }, { // _VI_POOL_ENTRY_INUSE {"NumberOfBytes", {0x8, UNKNOWN}}, {"Tag", {0xc, UNKNOWN}}, {"VirtualAddress", {0x0, UNKNOWN | POINTER}}, {"CallingAddress", {0x4, UNKNOWN | POINTER}}, }, { // _NPAGED_LOOKASIDE_LIST {"Lock__ObsoleteButDoNotDelete", {0x80, UNKNOWN}}, {"L", {0x0, _GENERAL_LOOKASIDE}}, }, { // _FS_FILTER_PARAMETERS {"AcquireForModifiedPageWriter", {0x0, __unnamed_22db}}, {"NotifyStreamFileObject", {0x0, __unnamed_22e5}}, {"ReleaseForModifiedPageWriter", {0x0, __unnamed_22dd}}, {"AcquireForSectionSynchronization", {0x0, __unnamed_22e1}}, {"Others", {0x0, __unnamed_22e7}}, }, { // _PPM_IDLE_STATES {"Count", {0x0, UNKNOWN}}, {"ActualState", {0xc, UNKNOWN}}, {"Flags", {0x4, __unnamed_1c56}}, {"TargetState", {0x8, UNKNOWN}}, {"TargetProcessors", {0x18, _KAFFINITY_EX}}, {"NewlyUnparked", {0x14, UNKNOWN}}, {"OldState", {0x10, UNKNOWN}}, {"State", {0x28, UNKNOWN}}, }, { // _PCW_REGISTRATION_INFORMATION {"Name", {0x4, _UNICODE_STRING | POINTER}}, {"Callback", {0x10, UNKNOWN | POINTER}}, {"Version", {0x0, UNKNOWN}}, {"CounterCount", {0x8, UNKNOWN}}, {"CallbackContext", {0x14, UNKNOWN | POINTER}}, {"Counters", {0xc, _PCW_COUNTER_DESCRIPTOR | POINTER}}, }, { // __unnamed_1e37 {"Length", {0x0, UNKNOWN}}, {"MaximumAddress", {0x10, _LARGE_INTEGER}}, {"MinimumAddress", {0x8, _LARGE_INTEGER}}, {"Alignment", {0x4, UNKNOWN}}, }, { // _CM_KEY_SECURITY {"Reserved", {0x2, UNKNOWN}}, {"Flink", {0x4, UNKNOWN}}, {"Blink", {0x8, UNKNOWN}}, {"Descriptor", {0x14, _SECURITY_DESCRIPTOR_RELATIVE}}, {"DescriptorLength", {0x10, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, {"ReferenceCount", {0xc, UNKNOWN}}, }, { // __unnamed_22db {"ResourceToRelease", {0x4, UNKNOWN | POINTER}}, {"EndingOffset", {0x0, _LARGE_INTEGER | POINTER}}, }, { // _PRIVILEGE_SET {"PrivilegeCount", {0x0, UNKNOWN}}, {"Control", {0x4, UNKNOWN}}, {"Privilege", {0x8, UNKNOWN}}, }, { // _PSP_CPU_SHARE_CAPTURED_WEIGHT_DATA {"CombinedData", {0x0, UNKNOWN}}, {"CapturedTotalWeight", {0x4, UNKNOWN}}, {"CapturedCpuShareWeight", {0x0, UNKNOWN}}, }, { // __unnamed_22dd {"ResourceToRelease", {0x0, _ERESOURCE | POINTER}}, }, { // _RTL_HANDLE_TABLE_ENTRY {"Flags", {0x0, UNKNOWN}}, {"NextFree", {0x0, _RTL_HANDLE_TABLE_ENTRY | POINTER}}, }, { // _OBJECT_REF_TRACE {"StackTrace", {0x0, UNKNOWN}}, }, { // __unnamed_1e88 {"Spare", {0x0, UNKNOWN}}, {"SnapSharedExportsFailed", {0x0, UNKNOWN}}, }, { // _CALL_PERFORMANCE_DATA {"SpinLock", {0x0, UNKNOWN}}, {"HashTable", {0x4, UNKNOWN}}, }, { // _VF_AVL_TREE {"Tables", {0x10, _VF_AVL_TABLE | POINTER}}, {"NodeToFree", {0x4, UNKNOWN | POINTER}}, {"Lock", {0x0, UNKNOWN}}, {"u1", {0x18, __unnamed_2215}}, {"TablesNo", {0x14, UNKNOWN}}, {"NodeCount", {0xc, UNKNOWN}}, {"NodeRangeSize", {0x8, UNKNOWN}}, }, { // _PRIVATE_CACHE_MAP {"PrivateLinks", {0x4c, _LIST_ENTRY}}, {"BeyondLastByte1", {0x18, _LARGE_INTEGER}}, {"ReadAheadWorkItem", {0x54, UNKNOWN | POINTER}}, {"SequentialReadCount", {0x30, UNKNOWN}}, {"ReadAheadLength", {0x34, UNKNOWN}}, {"ReadAheadBeyondLastByte", {0x40, _LARGE_INTEGER}}, {"ReadAheadMask", {0x4, UNKNOWN}}, {"ReadAheadOffset", {0x38, _LARGE_INTEGER}}, {"BeyondLastByte2", {0x28, _LARGE_INTEGER}}, {"ReadAheadSpinLock", {0x48, UNKNOWN}}, {"Flags", {0x0, _PRIVATE_CACHE_MAP_FLAGS}}, {"NodeTypeCode", {0x0, UNKNOWN}}, {"FileOffset2", {0x20, _LARGE_INTEGER}}, {"UlongFlags", {0x0, UNKNOWN}}, {"FileOffset1", {0x10, _LARGE_INTEGER}}, {"FileObject", {0x8, _FILE_OBJECT | POINTER}}, }, { // _FS_FILTER_CALLBACK_DATA {"Reserved", {0x5, UNKNOWN}}, {"Parameters", {0x10, _FS_FILTER_PARAMETERS}}, {"DeviceObject", {0x8, _DEVICE_OBJECT | POINTER}}, {"SizeOfFsFilterCallbackData", {0x0, UNKNOWN}}, {"Operation", {0x4, UNKNOWN}}, {"FileObject", {0xc, _FILE_OBJECT | POINTER}}, }, { // _MMBANKED_SECTION {"CurrentMappedPte", {0x18, _MMPTE | POINTER}}, {"BankedRoutine", {0x10, UNKNOWN | POINTER}}, {"BankShift", {0xc, UNKNOWN}}, {"Context", {0x14, UNKNOWN | POINTER}}, {"BasePhysicalPage", {0x0, UNKNOWN}}, {"BasedPte", {0x4, _MMPTE | POINTER}}, {"BankTemplate", {0x1c, UNKNOWN}}, {"BankSize", {0x8, UNKNOWN}}, }, { // _DBGKD_SET_INTERNAL_BREAKPOINT32 {"Flags", {0x4, UNKNOWN}}, {"BreakpointAddress", {0x0, UNKNOWN}}, }, { // __unnamed_1f76 {"List", {0x0, UNKNOWN}}, {"CellData", {0x0, _CELL_DATA}}, }, { // _MMPTE_TRANSITION {"Write", {0x0, UNKNOWN}}, {"WriteThrough", {0x0, UNKNOWN}}, {"Valid", {0x0, UNKNOWN}}, {"PageFrameNumber", {0x0, UNKNOWN}}, {"Transition", {0x0, UNKNOWN}}, {"Owner", {0x0, UNKNOWN}}, {"Protection", {0x0, UNKNOWN}}, {"CacheDisable", {0x0, UNKNOWN}}, {"Prototype", {0x0, UNKNOWN}}, }, { // _CM_KEY_BODY {"KtmTrans", {0x1c, UNKNOWN | POINTER}}, {"NotifyBlock", {0x8, _CM_NOTIFY_BLOCK | POINTER}}, {"KtmUow", {0x20, _GUID | POINTER}}, {"KeyControlBlock", {0x4, _CM_KEY_CONTROL_BLOCK | POINTER}}, {"ProcessID", {0xc, UNKNOWN | POINTER}}, {"Flags", {0x18, UNKNOWN}}, {"ContextListHead", {0x24, _LIST_ENTRY}}, {"Type", {0x0, UNKNOWN}}, {"KeyBodyList", {0x10, _LIST_ENTRY}}, {"HandleTags", {0x18, UNKNOWN}}, }, { // _SEP_LOGON_SESSION_REFERENCES {"Token", {0x20, UNKNOWN | POINTER}}, {"Flags", {0x18, UNKNOWN}}, {"LogonId", {0x4, _LUID}}, {"pDeviceMap", {0x1c, _DEVICE_MAP | POINTER}}, {"ReferenceCount", {0x14, UNKNOWN}}, {"AccountName", {0x24, _UNICODE_STRING}}, {"AuthorityName", {0x2c, _UNICODE_STRING}}, {"BuddyLogonId", {0xc, _LUID}}, {"Next", {0x0, _SEP_LOGON_SESSION_REFERENCES | POINTER}}, }, { // _MI_IMAGE_SECURITY_REFERENCE {"DynamicRelocations", {0x4, UNKNOWN | POINTER}}, {"SecurityContext", {0x0, _IMAGE_SECURITY_CONTEXT}}, {"ReferenceCount", {0x8, UNKNOWN}}, }, { // _THERMAL_INFORMATION {"CriticalTripPoint", {0x1c, UNKNOWN}}, {"SamplingPeriod", {0x10, UNKNOWN}}, {"PassiveTripPoint", {0x18, UNKNOWN}}, {"Processors", {0xc, UNKNOWN}}, {"ThermalStamp", {0x0, UNKNOWN}}, {"ActiveTripPoint", {0x24, UNKNOWN}}, {"ActiveTripPointCount", {0x20, UNKNOWN}}, {"ThermalConstant2", {0x8, UNKNOWN}}, {"ThermalConstant1", {0x4, UNKNOWN}}, {"CurrentTemperature", {0x14, UNKNOWN}}, }, { // _COUNTER_READING {"Index", {0x4, UNKNOWN}}, {"Total", {0x10, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"Start", {0x8, UNKNOWN}}, }, { // _HANDLE_TABLE_ENTRY {"CreatorBackTraceIndex", {0x6, UNKNOWN}}, {"GrantedAccessIndex", {0x4, UNKNOWN}}, {"NextFreeTableEntry", {0x4, UNKNOWN}}, {"ObAttributes", {0x0, UNKNOWN}}, {"InfoTable", {0x0, _HANDLE_TABLE_ENTRY_INFO | POINTER}}, {"GrantedAccess", {0x4, UNKNOWN}}, {"Object", {0x0, UNKNOWN | POINTER}}, {"Value", {0x0, UNKNOWN}}, }, { // _DBGKD_GET_INTERNAL_BREAKPOINT64 {"MaxCallsPerPeriod", {0x10, UNKNOWN}}, {"TotalInstructions", {0x1c, UNKNOWN}}, {"BreakpointAddress", {0x0, UNKNOWN}}, {"Calls", {0xc, UNKNOWN}}, {"MaxInstructions", {0x18, UNKNOWN}}, {"Flags", {0x8, UNKNOWN}}, {"MinInstructions", {0x14, UNKNOWN}}, }, { // _CACHE_MANAGER_CALLBACKS {"ReleaseFromLazyWrite", {0x4, UNKNOWN | POINTER}}, {"AcquireForLazyWrite", {0x0, UNKNOWN | POINTER}}, {"ReleaseFromReadAhead", {0xc, UNKNOWN | POINTER}}, {"AcquireForReadAhead", {0x8, UNKNOWN | POINTER}}, }, { // __unnamed_19c0 {"ConnectionPending", {0x0, UNKNOWN}}, {"ConnectionRefused", {0x0, UNKNOWN}}, {"EnableCompletionList", {0x0, UNKNOWN}}, {"Waitable", {0x0, UNKNOWN}}, {"Disconnected", {0x0, UNKNOWN}}, {"HasCompletionList", {0x0, UNKNOWN}}, {"ReturnExtendedInfo", {0x0, UNKNOWN}}, {"Lpc", {0x0, UNKNOWN}}, {"DynamicSecurity", {0x0, UNKNOWN}}, {"LpcToLpc", {0x0, UNKNOWN}}, {"HadCompletionList", {0x0, UNKNOWN}}, {"NoFlushOnClose", {0x0, UNKNOWN}}, {"Closed", {0x0, UNKNOWN}}, {"Initialized", {0x0, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"Wow64CompletionList", {0x0, UNKNOWN}}, }, { // _ACCESS_STATE {"PrivilegesAllocated", {0xb, UNKNOWN}}, {"ObjectName", {0x64, _UNICODE_STRING}}, {"RemainingDesiredAccess", {0x10, UNKNOWN}}, {"Privileges", {0x34, __unnamed_1291}}, {"SecurityDescriptor", {0x2c, UNKNOWN | POINTER}}, {"OriginalDesiredAccess", {0x18, UNKNOWN}}, {"GenerateAudit", {0x9, UNKNOWN}}, {"SecurityEvaluated", {0x8, UNKNOWN}}, {"Flags", {0xc, UNKNOWN}}, {"SubjectSecurityContext", {0x1c, _SECURITY_SUBJECT_CONTEXT}}, {"AuxData", {0x30, UNKNOWN | POINTER}}, {"AuditPrivileges", {0x60, UNKNOWN}}, {"ObjectTypeName", {0x6c, _UNICODE_STRING}}, {"GenerateOnClose", {0xa, UNKNOWN}}, {"PreviouslyGrantedAccess", {0x14, UNKNOWN}}, {"OperationID", {0x0, _LUID}}, }, { // _VI_VERIFIER_ISSUE {"IssueType", {0x0, UNKNOWN}}, {"Parameters", {0x8, UNKNOWN}}, {"Address", {0x4, UNKNOWN | POINTER}}, }, { // _CM_BIG_DATA {"Count", {0x2, UNKNOWN}}, {"List", {0x4, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, }, { // _PERFINFO_GROUPMASK {"Masks", {0x0, UNKNOWN}}, }, { // _EJOB {"PerProcessUserTimeLimit", {0x88, _LARGE_INTEGER}}, {"TotalKernelTime", {0x60, _LARGE_INTEGER}}, {"ThisPeriodTotalKernelTime", {0x70, _LARGE_INTEGER}}, {"MaximumWorkingSetSize", {0x9c, UNKNOWN}}, {"TotalTerminatedProcesses", {0x84, UNKNOWN}}, {"TotalPageFaultCount", {0x78, UNKNOWN}}, {"UIRestrictionsClass", {0xbc, UNKNOWN}}, {"CurrentJobMemoryUsed", {0x118, UNKNOWN}}, {"TotalUserTime", {0x58, _LARGE_INTEGER}}, {"ActiveProcesses", {0x80, UNKNOWN}}, {"TotalProcesses", {0x7c, UNKNOWN}}, {"JobLinks", {0x10, _LIST_ENTRY}}, {"CompletionPort", {0xc4, UNKNOWN | POINTER}}, {"OtherTransferCount", {0x100, UNKNOWN}}, {"SchedulingClass", {0xd0, UNKNOWN}}, {"PeakProcessMemoryUsed", {0x110, UNKNOWN}}, {"EndOfJobTimeAction", {0xc0, UNKNOWN}}, {"LimitFlags", {0xa0, UNKNOWN}}, {"ProcessMemoryLimit", {0x108, UNKNOWN}}, {"AccessState", {0xb8, UNKNOWN | POINTER}}, {"PriorityClass", {0xb4, UNKNOWN}}, {"OtherOperationCount", {0xe8, UNKNOWN}}, {"MemoryLimitsLock", {0x120, _EX_PUSH_LOCK}}, {"ProcessListHead", {0x18, _LIST_ENTRY}}, {"WriteTransferCount", {0xf8, UNKNOWN}}, {"ThisPeriodTotalUserTime", {0x68, _LARGE_INTEGER}}, {"PeakJobMemoryUsed", {0x114, UNKNOWN}}, {"PerJobUserTimeLimit", {0x90, _LARGE_INTEGER}}, {"JobMemoryLimit", {0x10c, UNKNOWN}}, {"SessionId", {0xcc, UNKNOWN}}, {"WriteOperationCount", {0xe0, UNKNOWN}}, {"JobSetLinks", {0x124, _LIST_ENTRY}}, {"ReadOperationCount", {0xd8, UNKNOWN}}, {"MemberLevel", {0x12c, UNKNOWN}}, {"JobLock", {0x20, _ERESOURCE}}, {"ActiveProcessLimit", {0xa4, UNKNOWN}}, {"JobFlags", {0x130, UNKNOWN}}, {"MinimumWorkingSetSize", {0x98, UNKNOWN}}, {"Affinity", {0xa8, _KAFFINITY_EX}}, {"CompletionKey", {0xc8, UNKNOWN | POINTER}}, {"ReadTransferCount", {0xf0, UNKNOWN}}, {"Event", {0x0, _KEVENT}}, }, { // __unnamed_17ef {"BreakPointEx", {0x0, _DBGKD_BREAKPOINTEX}}, {"WriteBreakPoint", {0x0, _DBGKD_WRITE_BREAKPOINT64}}, {"GetVersion64", {0x0, _DBGKD_GET_VERSION64}}, {"GetSetBusData", {0x0, _DBGKD_GET_SET_BUS_DATA}}, {"QuerySpecialCalls", {0x0, _DBGKD_QUERY_SPECIAL_CALLS}}, {"RestoreBreakPoint", {0x0, _DBGKD_RESTORE_BREAKPOINT}}, {"ReadMemory", {0x0, _DBGKD_READ_MEMORY64}}, {"SearchMemory", {0x0, _DBGKD_SEARCH_MEMORY}}, {"ReadWriteIo", {0x0, _DBGKD_READ_WRITE_IO64}}, {"QueryMemory", {0x0, _DBGKD_QUERY_MEMORY}}, {"GetContext", {0x0, _DBGKD_GET_CONTEXT}}, {"WriteMemory", {0x0, _DBGKD_WRITE_MEMORY64}}, {"FillMemory", {0x0, _DBGKD_FILL_MEMORY}}, {"SetSpecialCall", {0x0, _DBGKD_SET_SPECIAL_CALL64}}, {"ReadWriteIoExtended", {0x0, _DBGKD_READ_WRITE_IO_EXTENDED64}}, {"GetInternalBreakpoint", {0x0, _DBGKD_GET_INTERNAL_BREAKPOINT64}}, {"Continue", {0x0, _DBGKD_CONTINUE}}, {"ReadWriteMsr", {0x0, _DBGKD_READ_WRITE_MSR}}, {"SetContext", {0x0, _DBGKD_SET_CONTEXT}}, {"Continue2", {0x0, _DBGKD_CONTINUE2}}, {"SwitchPartition", {0x0, _DBGKD_SWITCH_PARTITION}}, {"SetInternalBreakpoint", {0x0, _DBGKD_SET_INTERNAL_BREAKPOINT64}}, }, { // _CM_PARTIAL_RESOURCE_DESCRIPTOR {"Flags", {0x2, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"u", {0x4, __unnamed_1f67}}, {"ShareDisposition", {0x1, UNKNOWN}}, }, { // _DISPATCHER_HEADER {"Index", {0x3, UNKNOWN}}, {"UmsPrimary", {0x3, UNKNOWN}}, {"ActiveDR7", {0x3, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"CounterProfiling", {0x2, UNKNOWN}}, {"KeepShifting", {0x1, UNKNOWN}}, {"EncodedTolerableDelay", {0x1, UNKNOWN}}, {"TimerControlFlags", {0x1, UNKNOWN}}, {"SignalState", {0x4, UNKNOWN}}, {"Hand", {0x2, UNKNOWN}}, {"CycleProfiling", {0x2, UNKNOWN}}, {"Lock", {0x0, UNKNOWN}}, {"Instrumented", {0x3, UNKNOWN}}, {"DebugActive", {0x3, UNKNOWN}}, {"Expired", {0x3, UNKNOWN}}, {"Abandoned", {0x1, UNKNOWN}}, {"CpuThrottled", {0x2, UNKNOWN}}, {"WaitListHead", {0x8, _LIST_ENTRY}}, {"Signalling", {0x1, UNKNOWN}}, {"Processor", {0x3, UNKNOWN}}, {"Reserved", {0x2, UNKNOWN}}, {"UmsScheduled", {0x3, UNKNOWN}}, {"Inserted", {0x3, UNKNOWN}}, {"Reserved2", {0x3, UNKNOWN}}, {"TimerMiscFlags", {0x3, UNKNOWN}}, {"ThreadControlFlags", {0x2, UNKNOWN}}, {"Coalescable", {0x1, UNKNOWN}}, {"Absolute", {0x1, UNKNOWN}}, {"DpcActive", {0x3, UNKNOWN}}, {"Size", {0x2, UNKNOWN}}, }, { // _ARBITER_ADD_RESERVED_PARAMETERS {"ReserveDevice", {0x0, _DEVICE_OBJECT | POINTER}}, }, { // _GENERIC_MAPPING {"GenericWrite", {0x4, UNKNOWN}}, {"GenericRead", {0x0, UNKNOWN}}, {"GenericAll", {0xc, UNKNOWN}}, {"GenericExecute", {0x8, UNKNOWN}}, }, { // _ARBITER_RETEST_ALLOCATION_PARAMETERS {"ArbitrationList", {0x0, _LIST_ENTRY | POINTER}}, {"AllocateFrom", {0x8, _CM_PARTIAL_RESOURCE_DESCRIPTOR | POINTER}}, {"AllocateFromCount", {0x4, UNKNOWN}}, }, { // __unnamed_1593 {"LongFlags2", {0x0, UNKNOWN}}, {"VadFlags2", {0x0, _MMVAD_FLAGS2}}, }, { // _DBGKD_WRITE_BREAKPOINT32 {"BreakPointHandle", {0x4, UNKNOWN}}, {"BreakPointAddress", {0x0, UNKNOWN}}, }, { // _IO_RESOURCE_LIST {"Count", {0x4, UNKNOWN}}, {"Descriptors", {0x8, UNKNOWN}}, {"Version", {0x0, UNKNOWN}}, {"Revision", {0x2, UNKNOWN}}, }, { // _TRACE_ENABLE_CONTEXT {"EnableFlags", {0x4, UNKNOWN}}, {"LoggerId", {0x0, UNKNOWN}}, {"InternalFlag", {0x3, UNKNOWN}}, {"Level", {0x2, UNKNOWN}}, }, { // _SYSTEM_POWER_STATE_CONTEXT {"ContextAsUlong", {0x0, UNKNOWN}}, {"EffectiveSystemState", {0x0, UNKNOWN}}, {"CurrentSystemState", {0x0, UNKNOWN}}, {"IgnoreHibernationPath", {0x0, UNKNOWN}}, {"Reserved1", {0x0, UNKNOWN}}, {"PseudoTransition", {0x0, UNKNOWN}}, {"TargetSystemState", {0x0, UNKNOWN}}, {"Reserved2", {0x0, UNKNOWN}}, }, { // _MMEXTEND_INFO {"ReferenceCount", {0x8, UNKNOWN}}, {"CommittedSize", {0x0, UNKNOWN}}, }, { // _RTL_USER_PROCESS_PARAMETERS {"DebugFlags", {0xc, UNKNOWN}}, {"EnvironmentSize", {0x290, UNKNOWN}}, {"Environment", {0x48, UNKNOWN | POINTER}}, {"CountCharsY", {0x60, UNKNOWN}}, {"CountCharsX", {0x5c, UNKNOWN}}, {"ConsoleHandle", {0x10, UNKNOWN | POINTER}}, {"DllPath", {0x30, _UNICODE_STRING}}, {"StartingY", {0x50, UNKNOWN}}, {"StartingX", {0x4c, UNKNOWN}}, {"CurrentDirectores", {0x90, UNKNOWN}}, {"DesktopInfo", {0x78, _UNICODE_STRING}}, {"EnvironmentVersion", {0x294, UNKNOWN}}, {"ConsoleFlags", {0x14, UNKNOWN}}, {"RuntimeData", {0x88, _UNICODE_STRING}}, {"StandardOutput", {0x1c, UNKNOWN | POINTER}}, {"WindowTitle", {0x70, _UNICODE_STRING}}, {"StandardError", {0x20, UNKNOWN | POINTER}}, {"CurrentDirectory", {0x24, _CURDIR}}, {"CommandLine", {0x40, _UNICODE_STRING}}, {"WindowFlags", {0x68, UNKNOWN}}, {"ShowWindowFlags", {0x6c, UNKNOWN}}, {"CountY", {0x58, UNKNOWN}}, {"CountX", {0x54, UNKNOWN}}, {"ImagePathName", {0x38, _UNICODE_STRING}}, {"MaximumLength", {0x0, UNKNOWN}}, {"Flags", {0x8, UNKNOWN}}, {"ShellInfo", {0x80, _UNICODE_STRING}}, {"FillAttribute", {0x64, UNKNOWN}}, {"Length", {0x4, UNKNOWN}}, {"StandardInput", {0x18, UNKNOWN | POINTER}}, }, { // _PROC_IDLE_SNAP {"Idle", {0x8, UNKNOWN}}, {"Time", {0x0, UNKNOWN}}, }, { // _ECP_LIST {"EcpList", {0x8, _LIST_ENTRY}}, {"Flags", {0x4, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, }, { // _TRACE_ENABLE_INFO {"EnableProperty", {0x8, UNKNOWN}}, {"MatchAllKeyword", {0x18, UNKNOWN}}, {"Level", {0x4, UNKNOWN}}, {"IsEnabled", {0x0, UNKNOWN}}, {"LoggerId", {0x6, UNKNOWN}}, {"Reserved1", {0x5, UNKNOWN}}, {"MatchAnyKeyword", {0x10, UNKNOWN}}, {"Reserved2", {0xc, UNKNOWN}}, }, { // _EXCEPTION_RECORD32 {"ExceptionAddress", {0xc, UNKNOWN}}, {"NumberParameters", {0x10, UNKNOWN}}, {"ExceptionRecord", {0x8, UNKNOWN}}, {"ExceptionCode", {0x0, UNKNOWN}}, {"ExceptionFlags", {0x4, UNKNOWN}}, {"ExceptionInformation", {0x14, UNKNOWN}}, }, { // _WMI_BUFFER_HEADER {"Pointer0", {0x38, UNKNOWN | POINTER}}, {"SavedOffset", {0x4, UNKNOWN}}, {"BufferType", {0x36, UNKNOWN}}, {"BufferFlag", {0x34, UNKNOWN}}, {"SequenceNumber", {0x18, UNKNOWN}}, {"NextBuffer", {0x20, _WMI_BUFFER_HEADER | POINTER}}, {"Pointer1", {0x3c, UNKNOWN | POINTER}}, {"TimeStamp", {0x10, _LARGE_INTEGER}}, {"SlistEntry", {0x20, _SINGLE_LIST_ENTRY}}, {"GlobalEntry", {0x38, _LIST_ENTRY}}, {"State", {0x2c, UNKNOWN}}, {"CurrentOffset", {0x8, UNKNOWN}}, {"ReferenceTime", {0x38, _ETW_REF_CLOCK}}, {"Offset", {0x30, UNKNOWN}}, {"ReferenceCount", {0xc, UNKNOWN}}, {"BufferSize", {0x0, UNKNOWN}}, {"Padding1", {0x38, UNKNOWN}}, {"Padding0", {0x20, UNKNOWN}}, {"ClientContext", {0x28, _ETW_BUFFER_CONTEXT}}, }, { // _DBGKD_ANY_CONTROL_SET {"X86ControlSet", {0x0, _X86_DBGKD_CONTROL_SET}}, {"AlphaControlSet", {0x0, UNKNOWN}}, {"IA64ControlSet", {0x0, _IA64_DBGKD_CONTROL_SET}}, {"PpcControlSet", {0x0, _PPC_DBGKD_CONTROL_SET}}, {"ArmControlSet", {0x0, _ARM_DBGKD_CONTROL_SET}}, {"Amd64ControlSet", {0x0, _AMD64_DBGKD_CONTROL_SET}}, }, { // _KDEVICE_QUEUE {"Lock", {0xc, UNKNOWN}}, {"Busy", {0x10, UNKNOWN}}, {"Type", {0x0, UNKNOWN}}, {"DeviceListHead", {0x4, _LIST_ENTRY}}, {"Size", {0x2, UNKNOWN}}, }, { // _CM_WORKITEM {"Parameter", {0x10, UNKNOWN | POINTER}}, {"ListEntry", {0x0, _LIST_ENTRY}}, {"Private", {0x8, UNKNOWN}}, {"WorkerRoutine", {0xc, UNKNOWN | POINTER}}, }, { // _FILE_GET_QUOTA_INFORMATION {"SidLength", {0x4, UNKNOWN}}, {"NextEntryOffset", {0x0, UNKNOWN}}, {"Sid", {0x8, _SID}}, }, { // _CM_FULL_RESOURCE_DESCRIPTOR {"BusNumber", {0x4, UNKNOWN}}, {"PartialResourceList", {0x8, _CM_PARTIAL_RESOURCE_LIST}}, {"InterfaceType", {0x0, UNKNOWN}}, }, { // _KSTACK_AREA {"Cr0NpxState", {0x1fc, UNKNOWN}}, {"FnArea", {0x0, _FNSAVE_FORMAT}}, {"StackControl", {0x1e0, _KERNEL_STACK_CONTROL}}, {"Padding", {0x200, UNKNOWN}}, {"NpxFrame", {0x0, _FXSAVE_FORMAT}}, }, { // __unnamed_159e {"Page", {0x1c, UNKNOWN}}, {"Mdl", {0x0, _MDL}}, }, { // _FSRTL_ADVANCED_FCB_HEADER {"NodeByteSize", {0x2, UNKNOWN}}, {"AllocationSize", {0x10, _LARGE_INTEGER}}, {"Reserved", {0x7, UNKNOWN}}, {"FileContextSupportPointer", {0x38, UNKNOWN | POINTER}}, {"Flags2", {0x6, UNKNOWN}}, {"IsFastIoPossible", {0x5, UNKNOWN}}, {"PagingIoResource", {0xc, _ERESOURCE | POINTER}}, {"ValidDataLength", {0x20, _LARGE_INTEGER}}, {"FastMutex", {0x28, _FAST_MUTEX | POINTER}}, {"FilterContexts", {0x2c, _LIST_ENTRY}}, {"Version", {0x7, UNKNOWN}}, {"Flags", {0x4, UNKNOWN}}, {"FileSize", {0x18, _LARGE_INTEGER}}, {"NodeTypeCode", {0x0, UNKNOWN}}, {"Resource", {0x8, _ERESOURCE | POINTER}}, {"PushLock", {0x34, _EX_PUSH_LOCK}}, }, { // __unnamed_1ea4 {"Data", {0x1c, UNKNOWN}}, {"SessionId", {0x14, UNKNOWN}}, {"Flags", {0x10, UNKNOWN}}, {"DataLength", {0x18, UNKNOWN}}, {"PowerSettingGuid", {0x0, _GUID}}, }, { // _EFI_FIRMWARE_INFORMATION {"VirtualEfiRuntimeServices", {0x4, _VIRTUAL_EFI_RUNTIME_SERVICES | POINTER}}, {"MissedMappingsCount", {0xc, UNKNOWN}}, {"FirmwareVersion", {0x0, UNKNOWN}}, {"SetVirtualAddressMapStatus", {0x8, UNKNOWN}}, }, { // _FNSAVE_FORMAT {"ErrorOffset", {0xc, UNKNOWN}}, {"DataOffset", {0x14, UNKNOWN}}, {"ControlWord", {0x0, UNKNOWN}}, {"DataSelector", {0x18, UNKNOWN}}, {"TagWord", {0x8, UNKNOWN}}, {"StatusWord", {0x4, UNKNOWN}}, {"RegisterArea", {0x1c, UNKNOWN}}, {"ErrorSelector", {0x10, UNKNOWN}}, }, { // _CM_CACHED_VALUE_INDEX {"CellIndex", {0x0, UNKNOWN}}, {"Data", {0x4, __unnamed_1f76}}, }, { // _VI_POOL_ENTRY {"PageHeader", {0x0, _VI_POOL_PAGE_HEADER}}, {"NextFree", {0x0, _SINGLE_LIST_ENTRY | POINTER}}, {"InUse", {0x0, _VI_POOL_ENTRY_INUSE}}, }, { // _ALPC_COMMUNICATION_INFO {"ClientCommunicationPort", {0x8, _ALPC_PORT | POINTER}}, {"CommunicationList", {0xc, _LIST_ENTRY}}, {"ServerCommunicationPort", {0x4, _ALPC_PORT | POINTER}}, {"HandleTable", {0x14, _ALPC_HANDLE_TABLE}}, {"ConnectionPort", {0x0, _ALPC_PORT | POINTER}}, }, { // _SID_IDENTIFIER_AUTHORITY {"Value", {0x0, UNKNOWN}}, }, { // _PO_DIAG_STACK_RECORD {"StackDepth", {0x0, UNKNOWN}}, {"Stack", {0x4, UNKNOWN}}, }, { // _POOL_HACKER {"Header", {0x0, _POOL_HEADER}}, {"Contents", {0x8, UNKNOWN}}, }, { // _LOADER_PARAMETER_BLOCK {"ArcBootDeviceName", {0x44, UNKNOWN | POINTER}}, {"ArcHalDeviceName", {0x48, UNKNOWN | POINTER}}, {"Prcb", {0x2c, UNKNOWN}}, {"ArcDiskInformation", {0x5c, _ARC_DISK_INFORMATION | POINTER}}, {"KernelStack", {0x28, UNKNOWN}}, {"FirmwareInformation", {0x74, _FIRMWARE_INFORMATION_LOADER_BLOCK}}, {"OemFontFile", {0x60, UNKNOWN | POINTER}}, {"Extension", {0x64, _LOADER_PARAMETER_EXTENSION | POINTER}}, {"MemoryDescriptorListHead", {0x18, _LIST_ENTRY}}, {"OsMinorVersion", {0x4, UNKNOWN}}, {"RegistryLength", {0x38, UNKNOWN}}, {"OsMajorVersion", {0x0, UNKNOWN}}, {"Thread", {0x34, UNKNOWN}}, {"ConfigurationRoot", {0x40, _CONFIGURATION_COMPONENT_DATA | POINTER}}, {"NtBootPathName", {0x4c, UNKNOWN | POINTER}}, {"Reserved", {0xc, UNKNOWN}}, {"BootDriverListHead", {0x20, _LIST_ENTRY}}, {"Process", {0x30, UNKNOWN}}, {"NtHalPathName", {0x50, UNKNOWN | POINTER}}, {"RegistryBase", {0x3c, UNKNOWN | POINTER}}, {"u", {0x68, __unnamed_14be}}, {"LoadOrderListHead", {0x10, _LIST_ENTRY}}, {"LoadOptions", {0x54, UNKNOWN | POINTER}}, {"NlsData", {0x58, _NLS_DATA_BLOCK | POINTER}}, {"Size", {0x8, UNKNOWN}}, }, { // _ETW_LOGGER_HANDLE {"DereferenceAndLeave", {0x0, UNKNOWN}}, }, { // _DBGKD_BREAKPOINTEX {"BreakPointCount", {0x0, UNKNOWN}}, {"ContinueStatus", {0x4, UNKNOWN}}, }, { // _CM_INTENT_LOCK {"OwnerCount", {0x0, UNKNOWN}}, {"OwnerTable", {0x4, UNKNOWN | POINTER}}, }, { // _M128A {"High", {0x8, UNKNOWN}}, {"Low", {0x0, UNKNOWN}}, }, { // _SEP_AUDIT_POLICY {"AdtTokenPolicy", {0x0, _TOKEN_AUDIT_POLICY}}, {"PolicySetStatus", {0x1b, UNKNOWN}}, }, { // _MI_COLOR_BASE {"ColorPointer", {0x0, UNKNOWN | POINTER}}, {"ColorMask", {0x4, UNKNOWN}}, {"ColorNode", {0x6, UNKNOWN}}, }, { // _HCELL {"u", {0x4, __unnamed_1e24}}, {"Size", {0x0, UNKNOWN}}, }, { // _POP_THERMAL_ZONE_METRICS {"ActiveCount", {0x38, UNKNOWN}}, {"PassiveCount", {0x3c, UNKNOWN}}, {"LastPassiveStartTick", {0x50, _LARGE_INTEGER}}, {"AverageActiveTime", {0x48, _LARGE_INTEGER}}, {"MetricsResource", {0x0, _ERESOURCE}}, {"AveragePassiveTime", {0x58, _LARGE_INTEGER}}, {"StartTickSinceLastReset", {0x60, _LARGE_INTEGER}}, {"LastActiveStartTick", {0x40, _LARGE_INTEGER}}, }, { // EX_QUEUE_WORKER_INFO {"QueueDisabled", {0x0, UNKNOWN}}, {"MakeThreadsAsNecessary", {0x0, UNKNOWN}}, {"WaitMode", {0x0, UNKNOWN}}, {"WorkerCount", {0x0, UNKNOWN}}, {"QueueWorkerInfo", {0x0, UNKNOWN}}, }, { // _CLS_LSN {"ullOffset", {0x0, UNKNOWN}}, {"offset", {0x0, __unnamed_230f}}, }, { // _EXCEPTION_RECORD {"ExceptionAddress", {0xc, UNKNOWN | POINTER}}, {"NumberParameters", {0x10, UNKNOWN}}, {"ExceptionRecord", {0x8, _EXCEPTION_RECORD | POINTER}}, {"ExceptionCode", {0x0, UNKNOWN}}, {"ExceptionFlags", {0x4, UNKNOWN}}, {"ExceptionInformation", {0x14, UNKNOWN}}, }, { // _KPROCESS {"VdmTrapcHandler", {0x90, UNKNOWN | POINTER}}, {"CycleTime", {0x80, UNKNOWN}}, {"IdealNode", {0x68, UNKNOWN}}, {"StackCount", {0x74, _KSTACK_COUNT}}, {"ProcessListEntry", {0x78, _LIST_ENTRY}}, {"ActiveProcessors", {0x50, _KAFFINITY_EX}}, {"ReservedFlags", {0x5c, UNKNOWN}}, {"DisableBoost", {0x5c, UNKNOWN}}, {"IopmOffset", {0x6e, UNKNOWN}}, {"Affinity", {0x38, _KAFFINITY_EX}}, {"ProcessLock", {0x34, UNKNOWN}}, {"Unused3", {0x63, UNKNOWN}}, {"Visited", {0x62, UNKNOWN}}, {"Unused1", {0x6d, UNKNOWN}}, {"ReadyListHead", {0x44, _LIST_ENTRY}}, {"DisableQuantum", {0x5c, UNKNOWN}}, {"BasePriority", {0x60, UNKNOWN}}, {"ProcessFlags", {0x5c, UNKNOWN}}, {"UserTime", {0x8c, UNKNOWN}}, {"ActiveGroupsMask", {0x5c, UNKNOWN}}, {"IdealGlobalNode", {0x6a, UNKNOWN}}, {"DirectoryTableBase", {0x18, UNKNOWN}}, {"Int21Descriptor", {0x24, _KIDTENTRY}}, {"AutoAlignment", {0x5c, UNKNOWN}}, {"ThreadListHead", {0x2c, _LIST_ENTRY}}, {"Header", {0x0, _DISPATCHER_HEADER}}, {"LdtDescriptor", {0x1c, _KGDTENTRY}}, {"QuantumReset", {0x61, UNKNOWN}}, {"KernelTime", {0x88, UNKNOWN}}, {"Flags", {0x6c, _KEXECUTE_OPTIONS}}, {"ProfileListHead", {0x10, _LIST_ENTRY}}, {"SwapListEntry", {0x4c, _SINGLE_LIST_ENTRY}}, {"Unused4", {0x70, UNKNOWN}}, {"ThreadSeed", {0x64, UNKNOWN}}, }, { // _CM_KEY_SECURITY_CACHE_ENTRY {"Cell", {0x0, UNKNOWN}}, {"CachedSecurity", {0x4, _CM_KEY_SECURITY_CACHE | POINTER}}, }, { // _DEVICE_FLAGS {"ConsoleIn", {0x0, UNKNOWN}}, {"ConsoleOut", {0x0, UNKNOWN}}, {"Failed", {0x0, UNKNOWN}}, {"ReadOnly", {0x0, UNKNOWN}}, {"Removable", {0x0, UNKNOWN}}, {"Output", {0x0, UNKNOWN}}, {"Input", {0x0, UNKNOWN}}, }, { // _CM_KEY_HASH {"ConvKey", {0x0, UNKNOWN}}, {"KeyHive", {0x8, _HHIVE | POINTER}}, {"KeyCell", {0xc, UNKNOWN}}, {"NextHash", {0x4, _CM_KEY_HASH | POINTER}}, }, { // _RTL_ATOM_TABLE {"RtlHandleTable", {0x1c, _RTL_HANDLE_TABLE}}, {"CriticalSection", {0x4, _RTL_CRITICAL_SECTION}}, {"Buckets", {0x40, UNKNOWN}}, {"NumberOfBuckets", {0x3c, UNKNOWN}}, {"Signature", {0x0, UNKNOWN}}, }, { // _KNODE {"MaximumProcessors", {0x34, UNKNOWN}}, {"NodePad1", {0x64, UNKNOWN}}, {"NodeNumber", {0x30, UNKNOWN}}, {"NonPagedPoolSListHead", {0x8, UNKNOWN}}, {"Color", {0x35, UNKNOWN}}, {"NodePad0", {0x37, UNKNOWN}}, {"Flags", {0x36, _flags}}, {"ParkLock", {0x60, UNKNOWN}}, {"ProximityId", {0x2c, UNKNOWN}}, {"MmShiftedColor", {0x3c, UNKNOWN}}, {"Seed", {0x38, UNKNOWN}}, {"PagedPoolSListHead", {0x0, _SLIST_HEADER}}, {"FreeCount", {0x40, UNKNOWN}}, {"Affinity", {0x20, _GROUP_AFFINITY}}, {"PrimaryNodeNumber", {0x32, UNKNOWN}}, {"CachedKernelStacks", {0x48, _CACHED_KSTACK_LIST}}, }, { // _KAPC {"ApcMode", {0x2d, UNKNOWN}}, {"Thread", {0x8, _KTHREAD | POINTER}}, {"KernelRoutine", {0x14, UNKNOWN | POINTER}}, {"SpareByte1", {0x3, UNKNOWN}}, {"SpareByte0", {0x1, UNKNOWN}}, {"SystemArgument1", {0x24, UNKNOWN | POINTER}}, {"SystemArgument2", {0x28, UNKNOWN | POINTER}}, {"NormalContext", {0x20, UNKNOWN | POINTER}}, {"Inserted", {0x2e, UNKNOWN}}, {"NormalRoutine", {0x1c, UNKNOWN | POINTER}}, {"SpareLong0", {0x4, UNKNOWN}}, {"ApcListEntry", {0xc, _LIST_ENTRY}}, {"RundownRoutine", {0x18, UNKNOWN | POINTER}}, {"Type", {0x0, UNKNOWN}}, {"ApcStateIndex", {0x2c, UNKNOWN}}, {"Size", {0x2, UNKNOWN}}, }, { // _RTL_SRWLOCK {"Locked", {0x0, UNKNOWN}}, {"MultipleShared", {0x0, UNKNOWN}}, {"Value", {0x0, UNKNOWN}}, {"Waking", {0x0, UNKNOWN}}, {"Waiting", {0x0, UNKNOWN}}, {"Shared", {0x0, UNKNOWN}}, {"Ptr", {0x0, UNKNOWN | POINTER}}, }, { // _PROC_IDLE_STATE_ACCOUNTING {"TotalTime", {0x0, UNKNOWN}}, {"FailedTransitions", {0xc, UNKNOWN}}, {"MinTime", {0x18, UNKNOWN}}, {"IdleTransitions", {0x8, UNKNOWN}}, {"IdleTimeBuckets", {0x28, UNKNOWN}}, {"MaxTime", {0x20, UNKNOWN}}, {"InvalidBucketIndex", {0x10, UNKNOWN}}, }, { // _VF_BTS_RECORD {"Unused1", {0x8, UNKNOWN}}, {"Unused2", {0x8, UNKNOWN}}, {"JumpedTo", {0x4, UNKNOWN | POINTER}}, {"JumpedFrom", {0x0, UNKNOWN | POINTER}}, {"Predicted", {0x8, UNKNOWN}}, }, { // _OBJECT_HEADER_QUOTA_INFO {"SecurityDescriptorCharge", {0x8, UNKNOWN}}, {"NonPagedPoolCharge", {0x4, UNKNOWN}}, {"SecurityDescriptorQuotaBlock", {0xc, UNKNOWN | POINTER}}, {"PagedPoolCharge", {0x0, UNKNOWN}}, }, }; static std::map<std::string, unsigned int> TRANSLATE = { {"UNKNOWN", 0}, {"_WHEA_ERROR_RECORD_HEADER", _WHEA_ERROR_RECORD_HEADER}, {"_MMVAD_SHORT", _MMVAD_SHORT}, {"_IO_WORKITEM", _IO_WORKITEM}, {"_WHEA_MEMORY_ERROR_SECTION", _WHEA_MEMORY_ERROR_SECTION}, {"__unnamed_1c3f", __unnamed_1c3f}, {"_PROC_IDLE_STATE_BUCKET", _PROC_IDLE_STATE_BUCKET}, {"_POP_POWER_ACTION", _POP_POWER_ACTION}, {"__unnamed_1a19", __unnamed_1a19}, {"_MM_PAGE_ACCESS_INFO_HEADER", _MM_PAGE_ACCESS_INFO_HEADER}, {"_OBJECT_ATTRIBUTES", _OBJECT_ATTRIBUTES}, {"_KALPC_MESSAGE_ATTRIBUTES", _KALPC_MESSAGE_ATTRIBUTES}, {"_XSTATE_SAVE", _XSTATE_SAVE}, {"_OBJECT_DUMP_CONTROL", _OBJECT_DUMP_CONTROL}, {"_CM_KEY_NODE", _CM_KEY_NODE}, {"_MMPTE_LIST", _MMPTE_LIST}, {"_FXSAVE_FORMAT", _FXSAVE_FORMAT}, {"_SLIST_HEADER", _SLIST_HEADER}, {"__unnamed_14ef", __unnamed_14ef}, {"_PO_NOTIFY_ORDER_LEVEL", _PO_NOTIFY_ORDER_LEVEL}, {"_FREE_DISPLAY", _FREE_DISPLAY}, {"PROCESSOR_PERFSTATE_POLICY", PROCESSOR_PERFSTATE_POLICY}, {"__unnamed_1a1b", __unnamed_1a1b}, {"_ALPC_DISPATCH_CONTEXT", _ALPC_DISPATCH_CONTEXT}, {"_IA64_LOADER_BLOCK", _IA64_LOADER_BLOCK}, {"__unnamed_1e24", __unnamed_1e24}, {"__unnamed_1e22", __unnamed_1e22}, {"_KENLISTMENT_HISTORY", _KENLISTMENT_HISTORY}, {"__unnamed_1e20", __unnamed_1e20}, {"_ACTIVATION_CONTEXT_STACK", _ACTIVATION_CONTEXT_STACK}, {"_WHEA_TIMESTAMP", _WHEA_TIMESTAMP}, {"_PS_PER_CPU_QUOTA_CACHE_AWARE", _PS_PER_CPU_QUOTA_CACHE_AWARE}, {"_ARBITER_QUERY_ALLOCATED_RESOURCES_PARAMETERS", _ARBITER_QUERY_ALLOCATED_RESOURCES_PARAMETERS}, {"__unnamed_15a6", __unnamed_15a6}, {"__unnamed_15a4", __unnamed_15a4}, {"_ARBITER_QUERY_ARBITRATE_PARAMETERS", _ARBITER_QUERY_ARBITRATE_PARAMETERS}, {"_QUAD", _QUAD}, {"_FILE_SEGMENT_ELEMENT", _FILE_SEGMENT_ELEMENT}, {"_DBGKD_SET_SPECIAL_CALL32", _DBGKD_SET_SPECIAL_CALL32}, {"_VI_DEADLOCK_RESOURCE", _VI_DEADLOCK_RESOURCE}, {"_DEFERRED_WRITE", _DEFERRED_WRITE}, {"_PP_LOOKASIDE_LIST", _PP_LOOKASIDE_LIST}, {"_DEVICE_OBJECT_POWER_EXTENSION", _DEVICE_OBJECT_POWER_EXTENSION}, {"_PERFINFO_TRACE_HEADER", _PERFINFO_TRACE_HEADER}, {"_RTL_AVL_TABLE", _RTL_AVL_TABLE}, {"_ALPC_PORT", _ALPC_PORT}, {"_PI_BUS_EXTENSION", _PI_BUS_EXTENSION}, {"_MMPTE", _MMPTE}, {"_MMPFNLIST", _MMPFNLIST}, {"_SID", _SID}, {"_MMPAGING_FILE", _MMPAGING_FILE}, {"_KDPC", _KDPC}, {"_MSUBSECTION", _MSUBSECTION}, {"_DBGKD_MANIPULATE_STATE32", _DBGKD_MANIPULATE_STATE32}, {"_ALPC_COMPLETION_LIST_STATE", _ALPC_COMPLETION_LIST_STATE}, {"_OBJECT_HANDLE_COUNT_DATABASE", _OBJECT_HANDLE_COUNT_DATABASE}, {"_HEAP_STOP_ON_VALUES", _HEAP_STOP_ON_VALUES}, {"_PPM_PERF_STATES", _PPM_PERF_STATES}, {"__unnamed_158e", __unnamed_158e}, {"_CM_NAME_CONTROL_BLOCK", _CM_NAME_CONTROL_BLOCK}, {"SYSTEM_POWER_LEVEL", SYSTEM_POWER_LEVEL}, {"_DBGKD_RESTORE_BREAKPOINT", _DBGKD_RESTORE_BREAKPOINT}, {"__unnamed_199c", __unnamed_199c}, {"_NLS_DATA_BLOCK", _NLS_DATA_BLOCK}, {"__unnamed_199a", __unnamed_199a}, {"_TEB32", _TEB32}, {"_DBGKD_READ_WRITE_MSR", _DBGKD_READ_WRITE_MSR}, {"_WHEA_ERROR_RECORD_HEADER_FLAGS", _WHEA_ERROR_RECORD_HEADER_FLAGS}, {"_PCW_COUNTER_DESCRIPTOR", _PCW_COUNTER_DESCRIPTOR}, {"__unnamed_1045", __unnamed_1045}, {"_TOKEN_SOURCE", _TOKEN_SOURCE}, {"__unnamed_1041", __unnamed_1041}, {"_flags", _flags}, {"_TIME_FIELDS", _TIME_FIELDS}, {"_KALPC_REGION", _KALPC_REGION}, {"__unnamed_1586", __unnamed_1586}, {"__unnamed_1580", __unnamed_1580}, {"__unnamed_1583", __unnamed_1583}, {"__unnamed_1992", __unnamed_1992}, {"_SECURITY_SUBJECT_CONTEXT", _SECURITY_SUBJECT_CONTEXT}, {"_LPCP_NONPAGED_PORT_QUEUE", _LPCP_NONPAGED_PORT_QUEUE}, {"_IO_RESOURCE_REQUIREMENTS_LIST", _IO_RESOURCE_REQUIREMENTS_LIST}, {"__unnamed_1994", __unnamed_1994}, {"_DIAGNOSTIC_CONTEXT", _DIAGNOSTIC_CONTEXT}, {"__unnamed_1340", __unnamed_1340}, {"_HEAP", _HEAP}, {"_DEVICE_OBJECT", _DEVICE_OBJECT}, {"_MMVAD_FLAGS", _MMVAD_FLAGS}, {"_ETW_PERF_COUNTERS", _ETW_PERF_COUNTERS}, {"_TP_DIRECT", _TP_DIRECT}, {"_IMAGE_NT_HEADERS", _IMAGE_NT_HEADERS}, {"__unnamed_1291", __unnamed_1291}, {"_KINTERRUPT", _KINTERRUPT}, {"_HEAP_TAG_ENTRY", _HEAP_TAG_ENTRY}, {"__unnamed_2339", __unnamed_2339}, {"__unnamed_2337", __unnamed_2337}, {"_CLIENT_ID32", _CLIENT_ID32}, {"_TEB", _TEB}, {"_TOKEN_CONTROL", _TOKEN_CONTROL}, {"_VI_FAULT_TRACE", _VI_FAULT_TRACE}, {"_DUMP_INITIALIZATION_CONTEXT", _DUMP_INITIALIZATION_CONTEXT}, {"_LUID", _LUID}, {"_VF_ADDRESS_RANGE", _VF_ADDRESS_RANGE}, {"_MMWSLENTRY", _MMWSLENTRY}, {"_PCW_COUNTER_INFORMATION", _PCW_COUNTER_INFORMATION}, {"_ALPC_PORT_ATTRIBUTES", _ALPC_PORT_ATTRIBUTES}, {"__unnamed_153a", __unnamed_153a}, {"_FILE_NETWORK_OPEN_INFORMATION", _FILE_NETWORK_OPEN_INFORMATION}, {"_NT_TIB", _NT_TIB}, {"_OBJECT_HEADER", _OBJECT_HEADER}, {"__unnamed_233b", __unnamed_233b}, {"_PO_DEVICE_NOTIFY", _PO_DEVICE_NOTIFY}, {"_AUX_ACCESS_DATA", _AUX_ACCESS_DATA}, {"_SECURITY_CLIENT_CONTEXT", _SECURITY_CLIENT_CONTEXT}, {"_NT_TIB64", _NT_TIB64}, {"_STRING64", _STRING64}, {"_MM_PAGE_ACCESS_INFO", _MM_PAGE_ACCESS_INFO}, {"_HBASE_BLOCK", _HBASE_BLOCK}, {"_KTRANSACTION", _KTRANSACTION}, {"_OBJECT_DIRECTORY_ENTRY", _OBJECT_DIRECTORY_ENTRY}, {"_WHEA_ERROR_STATUS", _WHEA_ERROR_STATUS}, {"_BLOB_TYPE", _BLOB_TYPE}, {"_MI_SECTION_IMAGE_INFORMATION", _MI_SECTION_IMAGE_INFORMATION}, {"_TP_TASK_CALLBACKS", _TP_TASK_CALLBACKS}, {"_CACHE_UNINITIALIZE_EVENT", _CACHE_UNINITIALIZE_EVENT}, {"_WORK_QUEUE_ITEM", _WORK_QUEUE_ITEM}, {"_u", _u}, {"__unnamed_14be", __unnamed_14be}, {"_CM_RESOURCE_LIST", _CM_RESOURCE_LIST}, {"_VF_TARGET_VERIFIED_DRIVER_DATA", _VF_TARGET_VERIFIED_DRIVER_DATA}, {"_KALPC_RESERVE", _KALPC_RESERVE}, {"POWER_ACTION_POLICY", POWER_ACTION_POLICY}, {"_HANDLE_TABLE_ENTRY_INFO", _HANDLE_TABLE_ENTRY_INFO}, {"_DBGKD_WRITE_MEMORY32", _DBGKD_WRITE_MEMORY32}, {"_KTIMER", _KTIMER}, {"_MM_SESSION_SPACE", _MM_SESSION_SPACE}, {"_WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_FLAGS", _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_FLAGS}, {"_WMI_TRACE_PACKET", _WMI_TRACE_PACKET}, {"_MI_EXTRA_IMAGE_INFORMATION", _MI_EXTRA_IMAGE_INFORMATION}, {"_CM_INDEX_HINT_BLOCK", _CM_INDEX_HINT_BLOCK}, {"_CM_KEY_REFERENCE", _CM_KEY_REFERENCE}, {"_VF_SUSPECT_DRIVER_ENTRY", _VF_SUSPECT_DRIVER_ENTRY}, {"_KRESOURCEMANAGER_COMPLETION_BINDING", _KRESOURCEMANAGER_COMPLETION_BINDING}, {"_POP_SYSTEM_IDLE", _POP_SYSTEM_IDLE}, {"_IO_PRIORITY_INFO", _IO_PRIORITY_INFO}, {"_MI_SPECIAL_POOL_PTE_LIST", _MI_SPECIAL_POOL_PTE_LIST}, {"_GUID", _GUID}, {"_PPM_PERF_STATE", _PPM_PERF_STATE}, {"_MM_STORE_KEY", _MM_STORE_KEY}, {"_DBGKD_MANIPULATE_STATE64", _DBGKD_MANIPULATE_STATE64}, {"_MEMORY_ALLOCATION_DESCRIPTOR", _MEMORY_ALLOCATION_DESCRIPTOR}, {"_KGDTENTRY", _KGDTENTRY}, {"PO_MEMORY_IMAGE", PO_MEMORY_IMAGE}, {"_ETW_SESSION_PERF_COUNTERS", _ETW_SESSION_PERF_COUNTERS}, {"_PS_CLIENT_SECURITY_CONTEXT", _PS_CLIENT_SECURITY_CONTEXT}, {"_MMWSLE", _MMWSLE}, {"_KWAIT_STATUS_REGISTER", _KWAIT_STATUS_REGISTER}, {"_HEAP_ENTRY_EXTRA", _HEAP_ENTRY_EXTRA}, {"PROCESSOR_IDLESTATE_INFO", PROCESSOR_IDLESTATE_INFO}, {"_DBGKD_READ_MEMORY32", _DBGKD_READ_MEMORY32}, {"_MAPPED_FILE_SEGMENT", _MAPPED_FILE_SEGMENT}, {"_ERESOURCE", _ERESOURCE}, {"_IMAGE_SECURITY_CONTEXT", _IMAGE_SECURITY_CONTEXT}, {"__unnamed_105e", __unnamed_105e}, {"_HEAP_VIRTUAL_ALLOC_ENTRY", _HEAP_VIRTUAL_ALLOC_ENTRY}, {"_RTL_DYNAMIC_HASH_TABLE_ENUMERATOR", _RTL_DYNAMIC_HASH_TABLE_ENUMERATOR}, {"_IA64_DBGKD_CONTROL_SET", _IA64_DBGKD_CONTROL_SET}, {"_CLIENT_ID", _CLIENT_ID}, {"_MI_SPECIAL_POOL", _MI_SPECIAL_POOL}, {"_DBGKD_GET_CONTEXT", _DBGKD_GET_CONTEXT}, {"_CM_TRANS", _CM_TRANS}, {"_ACL", _ACL}, {"_PNP_DEVICE_COMPLETION_REQUEST", _PNP_DEVICE_COMPLETION_REQUEST}, {"_GROUP_AFFINITY", _GROUP_AFFINITY}, {"_POWER_SEQUENCE", _POWER_SEQUENCE}, {"_HEAP_SEGMENT", _HEAP_SEGMENT}, {"_TOKEN", _TOKEN}, {"_LUID_AND_ATTRIBUTES", _LUID_AND_ATTRIBUTES}, {"_NETWORK_LOADER_BLOCK", _NETWORK_LOADER_BLOCK}, {"_FAST_MUTEX", _FAST_MUTEX}, {"__unnamed_152b", __unnamed_152b}, {"_OBJECT_HANDLE_INFORMATION", _OBJECT_HANDLE_INFORMATION}, {"__unnamed_1980", __unnamed_1980}, {"__unnamed_218f", __unnamed_218f}, {"_IOV_FORCED_PENDING_TRACE", _IOV_FORCED_PENDING_TRACE}, {"_OBJECT_HEADER_NAME_INFO", _OBJECT_HEADER_NAME_INFO}, {"_LPCP_PORT_OBJECT", _LPCP_PORT_OBJECT}, {"_FAST_IO_DISPATCH", _FAST_IO_DISPATCH}, {"_PCW_PROCESSOR_INFO", _PCW_PROCESSOR_INFO}, {"_SECURITY_DESCRIPTOR_RELATIVE", _SECURITY_DESCRIPTOR_RELATIVE}, {"_IMAGE_FILE_HEADER", _IMAGE_FILE_HEADER}, {"_MMADDRESS_NODE", _MMADDRESS_NODE}, {"_NAMED_PIPE_CREATE_PARAMETERS", _NAMED_PIPE_CREATE_PARAMETERS}, {"_KENLISTMENT", _KENLISTMENT}, {"_PO_DEVICE_NOTIFY_ORDER", _PO_DEVICE_NOTIFY_ORDER}, {"_POP_SHUTDOWN_BUG_CHECK", _POP_SHUTDOWN_BUG_CHECK}, {"__unnamed_162b", __unnamed_162b}, {"_KALPC_MESSAGE", _KALPC_MESSAGE}, {"__unnamed_162e", __unnamed_162e}, {"__unnamed_19da", __unnamed_19da}, {"__unnamed_19dc", __unnamed_19dc}, {"_CALL_HASH_ENTRY", _CALL_HASH_ENTRY}, {"_I386_LOADER_BLOCK", _I386_LOADER_BLOCK}, {"_ARBITER_ORDERING", _ARBITER_ORDERING}, {"_SECTION_OBJECT_POINTERS", _SECTION_OBJECT_POINTERS}, {"_LOOKASIDE_LIST_EX", _LOOKASIDE_LIST_EX}, {"_SEGMENT_OBJECT", _SEGMENT_OBJECT}, {"_FLOATING_SAVE_AREA", _FLOATING_SAVE_AREA}, {"_SID_AND_ATTRIBUTES", _SID_AND_ATTRIBUTES}, {"_MMPTE_SOFTWARE", _MMPTE_SOFTWARE}, {"_VF_TRACKER", _VF_TRACKER}, {"_DBGKD_READ_WRITE_IO32", _DBGKD_READ_WRITE_IO32}, {"_OBP_LOOKUP_CONTEXT", _OBP_LOOKUP_CONTEXT}, {"_POP_ACTION_TRIGGER", _POP_ACTION_TRIGGER}, {"__unnamed_1c45", __unnamed_1c45}, {"_MDL", _MDL}, {"_CMHIVE", _CMHIVE}, {"_ULARGE_INTEGER", _ULARGE_INTEGER}, {"_KRESOURCEMANAGER", _KRESOURCEMANAGER}, {"__unnamed_12a0", __unnamed_12a0}, {"__unnamed_12a5", __unnamed_12a5}, {"__unnamed_12a7", __unnamed_12a7}, {"_PCAT_FIRMWARE_INFORMATION", _PCAT_FIRMWARE_INFORMATION}, {"_KMUTANT", _KMUTANT}, {"_PO_IRP_MANAGER", _PO_IRP_MANAGER}, {"_PF_KERNEL_GLOBALS", _PF_KERNEL_GLOBALS}, {"_MMSECTION_FLAGS", _MMSECTION_FLAGS}, {"__unnamed_204b", __unnamed_204b}, {"__unnamed_204d", __unnamed_204d}, {"_DBGKD_FILL_MEMORY", _DBGKD_FILL_MEMORY}, {"_WHEA_ERROR_PACKET_V2", _WHEA_ERROR_PACKET_V2}, {"_VF_AVL_TABLE", _VF_AVL_TABLE}, {"_DBGKD_GET_VERSION32", _DBGKD_GET_VERSION32}, {"_KWAIT_BLOCK", _KWAIT_BLOCK}, {"_VIRTUAL_EFI_RUNTIME_SERVICES", _VIRTUAL_EFI_RUNTIME_SERVICES}, {"_WMI_LOGGER_CONTEXT", _WMI_LOGGER_CONTEXT}, {"_HEAP_FREE_ENTRY_EXTRA", _HEAP_FREE_ENTRY_EXTRA}, {"_MMWSLE_HASH", _MMWSLE_HASH}, {"_ALPC_COMPLETION_PACKET_LOOKASIDE", _ALPC_COMPLETION_PACKET_LOOKASIDE}, {"_GDI_TEB_BATCH32", _GDI_TEB_BATCH32}, {"_ALPC_HANDLE_ENTRY", _ALPC_HANDLE_ENTRY}, {"_DBGKD_SWITCH_PARTITION", _DBGKD_SWITCH_PARTITION}, {"_ARBITER_PARAMETERS", _ARBITER_PARAMETERS}, {"_LOADER_PERFORMANCE_DATA", _LOADER_PERFORMANCE_DATA}, {"_THERMAL_INFORMATION_EX", _THERMAL_INFORMATION_EX}, {"_RTL_ACTIVATION_CONTEXT_STACK_FRAME", _RTL_ACTIVATION_CONTEXT_STACK_FRAME}, {"_RTL_RANGE_LIST", _RTL_RANGE_LIST}, {"__unnamed_1888", __unnamed_1888}, {"_ALPC_MESSAGE_ZONE", _ALPC_MESSAGE_ZONE}, {"_KSYSTEM_TIME", _KSYSTEM_TIME}, {"_PCW_MASK_INFORMATION", _PCW_MASK_INFORMATION}, {"_KiIoAccessMap", _KiIoAccessMap}, {"_TOKEN_AUDIT_POLICY", _TOKEN_AUDIT_POLICY}, {"_MMPTE_TIMESTAMP", _MMPTE_TIMESTAMP}, {"_CM_NAME_HASH", _CM_NAME_HASH}, {"_PNP_DEVICE_COMPLETION_QUEUE", _PNP_DEVICE_COMPLETION_QUEUE}, {"_LOADER_PARAMETER_EXTENSION", _LOADER_PARAMETER_EXTENSION}, {"__unnamed_1ef2", __unnamed_1ef2}, {"_IO_SECURITY_CONTEXT", _IO_SECURITY_CONTEXT}, {"_EVENT_FILTER_HEADER", _EVENT_FILTER_HEADER}, {"_KALPC_SECTION", _KALPC_SECTION}, {"__unnamed_1e43", __unnamed_1e43}, {"__unnamed_1e45", __unnamed_1e45}, {"__unnamed_1e47", __unnamed_1e47}, {"__unnamed_1e49", __unnamed_1e49}, {"_HIVE_LOAD_FAILURE", _HIVE_LOAD_FAILURE}, {"_FIRMWARE_INFORMATION_LOADER_BLOCK", _FIRMWARE_INFORMATION_LOADER_BLOCK}, {"_KERNEL_STACK_CONTROL", _KERNEL_STACK_CONTROL}, {"DOCK_INTERFACE", DOCK_INTERFACE}, {"_BITMAP_RANGE", _BITMAP_RANGE}, {"_TP_CALLBACK_ENVIRON_V3", _TP_CALLBACK_ENVIRON_V3}, {"_CONFIGURATION_COMPONENT", _CONFIGURATION_COMPONENT}, {"_BUS_EXTENSION_LIST", _BUS_EXTENSION_LIST}, {"__unnamed_1ea6", __unnamed_1ea6}, {"__unnamed_1dc5", __unnamed_1dc5}, {"__unnamed_1ea2", __unnamed_1ea2}, {"_IO_RESOURCE_DESCRIPTOR", _IO_RESOURCE_DESCRIPTOR}, {"__unnamed_1ea0", __unnamed_1ea0}, {"_DBGKD_SET_INTERNAL_BREAKPOINT64", _DBGKD_SET_INTERNAL_BREAKPOINT64}, {"_KGUARDED_MUTEX", _KGUARDED_MUTEX}, {"_LPCP_PORT_QUEUE", _LPCP_PORT_QUEUE}, {"_HEAP_SUBSEGMENT", _HEAP_SUBSEGMENT}, {"_PENDING_RELATIONS_LIST_ENTRY", _PENDING_RELATIONS_LIST_ENTRY}, {"_DBGKD_GET_SET_BUS_DATA", _DBGKD_GET_SET_BUS_DATA}, {"__unnamed_1e4b", __unnamed_1e4b}, {"_PROCESSOR_POWER_STATE", _PROCESSOR_POWER_STATE}, {"_IO_CLIENT_EXTENSION", _IO_CLIENT_EXTENSION}, {"__unnamed_1c1d", __unnamed_1c1d}, {"_CM_KEY_INDEX", _CM_KEY_INDEX}, {"__unnamed_1c1b", __unnamed_1c1b}, {"_EX_PUSH_LOCK_CACHE_AWARE", _EX_PUSH_LOCK_CACHE_AWARE}, {"_SEP_TOKEN_PRIVILEGES", _SEP_TOKEN_PRIVILEGES}, {"__unnamed_132a", __unnamed_132a}, {"__unnamed_1742", __unnamed_1742}, {"__unnamed_1740", __unnamed_1740}, {"__unnamed_1746", __unnamed_1746}, {"_HANDLE_TRACE_DB_ENTRY", _HANDLE_TRACE_DB_ENTRY}, {"_PO_IRP_QUEUE", _PO_IRP_QUEUE}, {"_IOP_FILE_OBJECT_EXTENSION", _IOP_FILE_OBJECT_EXTENSION}, {"_DBGKD_QUERY_MEMORY", _DBGKD_QUERY_MEMORY}, {"__unnamed_163e", __unnamed_163e}, {"__unnamed_163c", __unnamed_163c}, {"_PEB", _PEB}, {"_WHEA_ERROR_RECORD", _WHEA_ERROR_RECORD}, {"_TPM_BOOT_ENTROPY_LDR_RESULT", _TPM_BOOT_ENTROPY_LDR_RESULT}, {"_PROC_IDLE_ACCOUNTING", _PROC_IDLE_ACCOUNTING}, {"_PROC_PERF_DOMAIN", _PROC_PERF_DOMAIN}, {"_EXCEPTION_REGISTRATION_RECORD", _EXCEPTION_REGISTRATION_RECORD}, {"_MM_SUBSECTION_AVL_TABLE", _MM_SUBSECTION_AVL_TABLE}, {"_FILE_STANDARD_INFORMATION", _FILE_STANDARD_INFORMATION}, {"_DBGKM_EXCEPTION32", _DBGKM_EXCEPTION32}, {"_ACCESS_REASONS", _ACCESS_REASONS}, {"__unnamed_1638", __unnamed_1638}, {"_KPCR", _KPCR}, {"_KTRANSACTION_HISTORY", _KTRANSACTION_HISTORY}, {"__unnamed_1634", __unnamed_1634}, {"__unnamed_1632", __unnamed_1632}, {"_POOL_TRACKER_TABLE", _POOL_TRACKER_TABLE}, {"__unnamed_1630", __unnamed_1630}, {"__unnamed_1320", __unnamed_1320}, {"_IO_STACK_LOCATION", _IO_STACK_LOCATION}, {"__unnamed_1324", __unnamed_1324}, {"__unnamed_1326", __unnamed_1326}, {"__unnamed_1328", __unnamed_1328}, {"_MMWSLE_NONDIRECT_HASH", _MMWSLE_NONDIRECT_HASH}, {"_EXCEPTION_RECORD64", _EXCEPTION_RECORD64}, {"_ETW_PROVIDER_TABLE_ENTRY", _ETW_PROVIDER_TABLE_ENTRY}, {"_EX_RUNDOWN_REF", _EX_RUNDOWN_REF}, {"_HBIN", _HBIN}, {"_PI_RESOURCE_ARBITER_ENTRY", _PI_RESOURCE_ARBITER_ENTRY}, {"_EX_PUSH_LOCK_WAIT_BLOCK", _EX_PUSH_LOCK_WAIT_BLOCK}, {"__unnamed_12bf", __unnamed_12bf}, {"__unnamed_12bb", __unnamed_12bb}, {"_CLIENT_ID64", _CLIENT_ID64}, {"_MM_PAGE_ACCESS_INFO_FLAGS", _MM_PAGE_ACCESS_INFO_FLAGS}, {"__unnamed_1884", __unnamed_1884}, {"__unnamed_2215", __unnamed_2215}, {"__unnamed_1886", __unnamed_1886}, {"__unnamed_2193", __unnamed_2193}, {"_DIAGNOSTIC_BUFFER", _DIAGNOSTIC_BUFFER}, {"_IO_MINI_COMPLETION_PACKET_USER", _IO_MINI_COMPLETION_PACKET_USER}, {"_IRP", _IRP}, {"_CM_KEY_HASH_TABLE_ENTRY", _CM_KEY_HASH_TABLE_ENTRY}, {"_iobuf", _iobuf}, {"_PHYSICAL_MEMORY_DESCRIPTOR", _PHYSICAL_MEMORY_DESCRIPTOR}, {"_ETW_WMITRACE_WORK", _ETW_WMITRACE_WORK}, {"_CURDIR", _CURDIR}, {"__unnamed_195e", __unnamed_195e}, {"__unnamed_195c", __unnamed_195c}, {"_CM_PARTIAL_RESOURCE_LIST", _CM_PARTIAL_RESOURCE_LIST}, {"_VI_DEADLOCK_THREAD", _VI_DEADLOCK_THREAD}, {"__unnamed_188a", __unnamed_188a}, {"__unnamed_188c", __unnamed_188c}, {"_DBGKD_READ_WRITE_IO_EXTENDED64", _DBGKD_READ_WRITE_IO_EXTENDED64}, {"__unnamed_219c", __unnamed_219c}, {"__unnamed_219e", __unnamed_219e}, {"_DBGKD_CONTINUE", _DBGKD_CONTINUE}, {"_STRING", _STRING}, {"__unnamed_12b4", __unnamed_12b4}, {"_MMSUPPORT", _MMSUPPORT}, {"__unnamed_12b2", __unnamed_12b2}, {"__unnamed_2285", __unnamed_2285}, {"_ARBITER_CONFLICT_INFO", _ARBITER_CONFLICT_INFO}, {"_POOL_HEADER", _POOL_HEADER}, {"_VF_POOL_TRACE", _VF_POOL_TRACE}, {"_KUSER_SHARED_DATA", _KUSER_SHARED_DATA}, {"_WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_VALIDBITS", _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_VALIDBITS}, {"_ETW_BUFFER_HANDLE", _ETW_BUFFER_HANDLE}, {"_IMAGE_DOS_HEADER", _IMAGE_DOS_HEADER}, {"_ALPC_COMPLETION_LIST_HEADER", _ALPC_COMPLETION_LIST_HEADER}, {"_AUTHZBASEP_SECURITY_ATTRIBUTES_INFORMATION", _AUTHZBASEP_SECURITY_ATTRIBUTES_INFORMATION}, {"_TEB_ACTIVE_FRAME_CONTEXT", _TEB_ACTIVE_FRAME_CONTEXT}, {"_HHIVE", _HHIVE}, {"_DUMP_STACK_CONTEXT", _DUMP_STACK_CONTEXT}, {"_KQUEUE", _KQUEUE}, {"_EVENT_DESCRIPTOR", _EVENT_DESCRIPTOR}, {"_THREAD_PERFORMANCE_DATA", _THREAD_PERFORMANCE_DATA}, {"_DEVOBJ_EXTENSION", _DEVOBJ_EXTENSION}, {"_CACHED_CHILD_LIST", _CACHED_CHILD_LIST}, {"_MI_PAGEFILE_TRACES", _MI_PAGEFILE_TRACES}, {"__unnamed_1f63", __unnamed_1f63}, {"_SECTION_OBJECT", _SECTION_OBJECT}, {"_HEADLESS_LOADER_BLOCK", _HEADLESS_LOADER_BLOCK}, {"_KTIMER_TABLE", _KTIMER_TABLE}, {"_VOLUME_CACHE_MAP", _VOLUME_CACHE_MAP}, {"_PROC_PERF_LOAD", _PROC_PERF_LOAD}, {"_RTL_DRIVE_LETTER_CURDIR", _RTL_DRIVE_LETTER_CURDIR}, {"_KTMOBJECT_NAMESPACE_LINK", _KTMOBJECT_NAMESPACE_LINK}, {"_WHEA_ERROR_PACKET_FLAGS", _WHEA_ERROR_PACKET_FLAGS}, {"LIST_ENTRY64", LIST_ENTRY64}, {"_CACHE_DESCRIPTOR", _CACHE_DESCRIPTOR}, {"_PPM_FFH_THROTTLE_STATE_INFO", _PPM_FFH_THROTTLE_STATE_INFO}, {"_MI_SYSTEM_PTE_TYPE", _MI_SYSTEM_PTE_TYPE}, {"_ALIGNED_AFFINITY_SUMMARY", _ALIGNED_AFFINITY_SUMMARY}, {"__unnamed_1f5b", __unnamed_1f5b}, {"__unnamed_1f5d", __unnamed_1f5d}, {"__unnamed_1f5f", __unnamed_1f5f}, {"_HMAP_ENTRY", _HMAP_ENTRY}, {"_PHYSICAL_MEMORY_RUN", _PHYSICAL_MEMORY_RUN}, {"_PTE_TRACKER", _PTE_TRACKER}, {"__unnamed_1c70", __unnamed_1c70}, {"_IO_DRIVER_CREATE_CONTEXT", _IO_DRIVER_CREATE_CONTEXT}, {"_VF_TARGET_ALL_SHARED_EXPORT_THUNKS", _VF_TARGET_ALL_SHARED_EXPORT_THUNKS}, {"_IO_STATUS_BLOCK", _IO_STATUS_BLOCK}, {"_CM_RM", _CM_RM}, {"_GENERAL_LOOKASIDE", _GENERAL_LOOKASIDE}, {"_MMPTE_SUBSECTION", _MMPTE_SUBSECTION}, {"_ARBITER_INTERFACE", _ARBITER_INTERFACE}, {"_PNP_ASSIGN_RESOURCES_CONTEXT", _PNP_ASSIGN_RESOURCES_CONTEXT}, {"_RELATION_LIST_ENTRY", _RELATION_LIST_ENTRY}, {"_POWER_STATE", _POWER_STATE}, {"_VF_WATCHDOG_IRP", _VF_WATCHDOG_IRP}, {"__unnamed_1f53", __unnamed_1f53}, {"__unnamed_1f55", __unnamed_1f55}, {"__unnamed_1f57", __unnamed_1f57}, {"_TRACE_ENABLE_CONTEXT_EX", _TRACE_ENABLE_CONTEXT_EX}, {"_KSPECIAL_REGISTERS", _KSPECIAL_REGISTERS}, {"_PO_HIBER_PERF", _PO_HIBER_PERF}, {"_OBJECT_REF_STACK_INFO", _OBJECT_REF_STACK_INFO}, {"_HEAP_DEBUGGING_INFORMATION", _HEAP_DEBUGGING_INFORMATION}, {"_ETIMER", _ETIMER}, {"_REMOTE_PORT_VIEW", _REMOTE_PORT_VIEW}, {"_POP_HIBER_CONTEXT", _POP_HIBER_CONTEXT}, {"_MMPFNENTRY", _MMPFNENTRY}, {"_KSEMAPHORE", _KSEMAPHORE}, {"_PORT_MESSAGE", _PORT_MESSAGE}, {"_FILE_OBJECT", _FILE_OBJECT}, {"_XSTATE_FEATURE", _XSTATE_FEATURE}, {"_KPROCESSOR_STATE", _KPROCESSOR_STATE}, {"_DBGKD_READ_MEMORY64", _DBGKD_READ_MEMORY64}, {"_PPM_IDLE_STATE", _PPM_IDLE_STATE}, {"_ALPC_COMPLETION_LIST", _ALPC_COMPLETION_LIST}, {"SYSTEM_POWER_CAPABILITIES", SYSTEM_POWER_CAPABILITIES}, {"_RTL_BITMAP", _RTL_BITMAP}, {"_KTRAP_FRAME", _KTRAP_FRAME}, {"_POP_CPU_INFO", _POP_CPU_INFO}, {"_OBJECT_HEADER_CREATOR_INFO", _OBJECT_HEADER_CREATOR_INFO}, {"_SYSTEM_POWER_POLICY", _SYSTEM_POWER_POLICY}, {"_SHARED_CACHE_MAP", _SHARED_CACHE_MAP}, {"__unnamed_216f", __unnamed_216f}, {"__unnamed_1318", __unnamed_1318}, {"__unnamed_1314", __unnamed_1314}, {"_KTM", _KTM}, {"__unnamed_1310", __unnamed_1310}, {"_HEAP_LOCK", _HEAP_LOCK}, {"_XSAVE_AREA_HEADER", _XSAVE_AREA_HEADER}, {"_KTMOBJECT_NAMESPACE", _KTMOBJECT_NAMESPACE}, {"_GENERAL_LOOKASIDE_POOL", _GENERAL_LOOKASIDE_POOL}, {"_KSPIN_LOCK_QUEUE", _KSPIN_LOCK_QUEUE}, {"_ALPC_MESSAGE_ATTRIBUTES", _ALPC_MESSAGE_ATTRIBUTES}, {"_ETHREAD", _ETHREAD}, {"_KPRCB", _KPRCB}, {"_SYSTEM_TRACE_HEADER", _SYSTEM_TRACE_HEADER}, {"__unnamed_1544", __unnamed_1544}, {"__unnamed_1546", __unnamed_1546}, {"_RTL_BALANCED_LINKS", _RTL_BALANCED_LINKS}, {"_HANDLE_TRACE_DEBUG_INFO", _HANDLE_TRACE_DEBUG_INFO}, {"_STACK_TABLE", _STACK_TABLE}, {"_PROC_PERF_CONSTRAINT", _PROC_PERF_CONSTRAINT}, {"_CM_CELL_REMAP_BLOCK", _CM_CELL_REMAP_BLOCK}, {"_MMMOD_WRITER_MDL_ENTRY", _MMMOD_WRITER_MDL_ENTRY}, {"_IMAGE_OPTIONAL_HEADER", _IMAGE_OPTIONAL_HEADER}, {"_SID_AND_ATTRIBUTES_HASH", _SID_AND_ATTRIBUTES_HASH}, {"__unnamed_12c9", __unnamed_12c9}, {"__unnamed_12c3", __unnamed_12c3}, {"_ETW_REG_ENTRY", _ETW_REG_ENTRY}, {"__unnamed_12c5", __unnamed_12c5}, {"_NT_TIB32", _NT_TIB32}, {"BATTERY_REPORTING_SCALE", BATTERY_REPORTING_SCALE}, {"__unnamed_1866", __unnamed_1866}, {"_IMAGE_SECTION_HEADER", _IMAGE_SECTION_HEADER}, {"_HEAP_TUNING_PARAMETERS", _HEAP_TUNING_PARAMETERS}, {"_ALPC_PROCESS_CONTEXT", _ALPC_PROCESS_CONTEXT}, {"_VI_POOL_PAGE_HEADER", _VI_POOL_PAGE_HEADER}, {"_KGATE", _KGATE}, {"__unnamed_12de", __unnamed_12de}, {"__unnamed_12dc", __unnamed_12dc}, {"_HEAP_ENTRY", _HEAP_ENTRY}, {"_POOL_BLOCK_HEAD", _POOL_BLOCK_HEAD}, {"_OBJECT_HANDLE_COUNT_ENTRY", _OBJECT_HANDLE_COUNT_ENTRY}, {"_SINGLE_LIST_ENTRY", _SINGLE_LIST_ENTRY}, {"__unnamed_12cb", __unnamed_12cb}, {"_OBJECT_TYPE_INITIALIZER", _OBJECT_TYPE_INITIALIZER}, {"__unnamed_12cf", __unnamed_12cf}, {"_ARBITER_ALTERNATIVE", _ARBITER_ALTERNATIVE}, {"__unnamed_12cd", __unnamed_12cd}, {"_DESCRIPTOR", _DESCRIPTOR}, {"__unnamed_19c2", __unnamed_19c2}, {"_KERNEL_STACK_SEGMENT", _KERNEL_STACK_SEGMENT}, {"__unnamed_12d9", __unnamed_12d9}, {"__unnamed_12d7", __unnamed_12d7}, {"__unnamed_12d3", __unnamed_12d3}, {"__unnamed_12d1", __unnamed_12d1}, {"_DBGKD_LOAD_SYMBOLS32", _DBGKD_LOAD_SYMBOLS32}, {"_ETW_BUFFER_CONTEXT", _ETW_BUFFER_CONTEXT}, {"_RTLP_RANGE_LIST_ENTRY", _RTLP_RANGE_LIST_ENTRY}, {"_OBJECT_REF_INFO", _OBJECT_REF_INFO}, {"_PROC_HISTORY_ENTRY", _PROC_HISTORY_ENTRY}, {"_TXN_PARAMETER_BLOCK", _TXN_PARAMETER_BLOCK}, {"_DBGKD_CONTINUE2", _DBGKD_CONTINUE2}, {"__unnamed_14f6", __unnamed_14f6}, {"_MMSESSION", _MMSESSION}, {"__unnamed_14f4", __unnamed_14f4}, {"_XSAVE_FORMAT", _XSAVE_FORMAT}, {"__unnamed_14f1", __unnamed_14f1}, {"_MMPFN", _MMPFN}, {"_POP_THERMAL_ZONE", _POP_THERMAL_ZONE}, {"_PLUGPLAY_EVENT_BLOCK", _PLUGPLAY_EVENT_BLOCK}, {"_MMVIEW", _MMVIEW}, {"_DEVICE_NODE", _DEVICE_NODE}, {"_CHILD_LIST", _CHILD_LIST}, {"_MMPTE_PROTOTYPE", _MMPTE_PROTOTYPE}, {"_DBGKD_SET_CONTEXT", _DBGKD_SET_CONTEXT}, {"_GDI_TEB_BATCH64", _GDI_TEB_BATCH64}, {"_XSAVE_AREA", _XSAVE_AREA}, {"_SEGMENT", _SEGMENT}, {"_BLOB", _BLOB}, {"_SECTION_IMAGE_INFORMATION", _SECTION_IMAGE_INFORMATION}, {"_FS_FILTER_CALLBACKS", _FS_FILTER_CALLBACKS}, {"_SE_AUDIT_PROCESS_CREATION_INFO", _SE_AUDIT_PROCESS_CREATION_INFO}, {"__unnamed_14fb", __unnamed_14fb}, {"_HEAP_FREE_ENTRY", _HEAP_FREE_ENTRY}, {"_DBGKD_WRITE_MEMORY64", _DBGKD_WRITE_MEMORY64}, {"_IO_COMPLETION_CONTEXT", _IO_COMPLETION_CONTEXT}, {"__unnamed_14ad", __unnamed_14ad}, {"__unnamed_20df", __unnamed_20df}, {"_IMAGE_DEBUG_DIRECTORY", _IMAGE_DEBUG_DIRECTORY}, {"__unnamed_1c68", __unnamed_1c68}, {"_IMAGE_ROM_OPTIONAL_HEADER", _IMAGE_ROM_OPTIONAL_HEADER}, {"_WAIT_CONTEXT_BLOCK", _WAIT_CONTEXT_BLOCK}, {"_MMVAD_FLAGS3", _MMVAD_FLAGS3}, {"_MMVAD_FLAGS2", _MMVAD_FLAGS2}, {"__unnamed_1f8a", __unnamed_1f8a}, {"_VI_TRACK_IRQL", _VI_TRACK_IRQL}, {"_ARBITER_ORDERING_LIST", _ARBITER_ORDERING_LIST}, {"__unnamed_1e1e", __unnamed_1e1e}, {"_PNP_RESOURCE_REQUEST", _PNP_RESOURCE_REQUEST}, {"_MMSUBSECTION_FLAGS", _MMSUBSECTION_FLAGS}, {"__unnamed_1f65", __unnamed_1f65}, {"__unnamed_1f67", __unnamed_1f67}, {"_RTL_DYNAMIC_HASH_TABLE_ENTRY", _RTL_DYNAMIC_HASH_TABLE_ENTRY}, {"_LPCP_MESSAGE", _LPCP_MESSAGE}, {"__unnamed_1ec1", __unnamed_1ec1}, {"_CM_KEY_CONTROL_BLOCK", _CM_KEY_CONTROL_BLOCK}, {"_RTL_CRITICAL_SECTION", _RTL_CRITICAL_SECTION}, {"_ARBITER_QUERY_CONFLICT_PARAMETERS", _ARBITER_QUERY_CONFLICT_PARAMETERS}, {"_SECURITY_DESCRIPTOR", _SECURITY_DESCRIPTOR}, {"_PS_CPU_QUOTA_BLOCK", _PS_CPU_QUOTA_BLOCK}, {"_PROCESSOR_NUMBER", _PROCESSOR_NUMBER}, {"_EX_FAST_REF", _EX_FAST_REF}, {"_HEAP_COUNTERS", _HEAP_COUNTERS}, {"_TP_TASK", _TP_TASK}, {"__unnamed_1f88", __unnamed_1f88}, {"__unnamed_18dd", __unnamed_18dd}, {"_PPC_DBGKD_CONTROL_SET", _PPC_DBGKD_CONTROL_SET}, {"__unnamed_1f80", __unnamed_1f80}, {"_OBJECT_HEADER_HANDLE_INFO", _OBJECT_HEADER_HANDLE_INFO}, {"__unnamed_1f6c", __unnamed_1f6c}, {"_VACB", _VACB}, {"_OWNER_ENTRY", _OWNER_ENTRY}, {"_RELATIVE_SYMLINK_INFO", _RELATIVE_SYMLINK_INFO}, {"_VACB_LEVEL_REFERENCE", _VACB_LEVEL_REFERENCE}, {"_KEXECUTE_OPTIONS", _KEXECUTE_OPTIONS}, {"_IMAGE_DATA_DIRECTORY", _IMAGE_DATA_DIRECTORY}, {"_KAPC_STATE", _KAPC_STATE}, {"_DBGKD_GET_INTERNAL_BREAKPOINT32", _DBGKD_GET_INTERNAL_BREAKPOINT32}, {"_VPB", _VPB}, {"__unnamed_130c", __unnamed_130c}, {"_RTL_DYNAMIC_HASH_TABLE_CONTEXT", _RTL_DYNAMIC_HASH_TABLE_CONTEXT}, {"_KAFFINITY_ENUMERATION_CONTEXT", _KAFFINITY_ENUMERATION_CONTEXT}, {"_SUBSECTION", _SUBSECTION}, {"_HEAP_UCR_DESCRIPTOR", _HEAP_UCR_DESCRIPTOR}, {"_MM_SESSION_SPACE_FLAGS", _MM_SESSION_SPACE_FLAGS}, {"_CM_KEY_VALUE", _CM_KEY_VALUE}, {"_DBGKD_SET_SPECIAL_CALL64", _DBGKD_SET_SPECIAL_CALL64}, {"_XSTATE_CONFIGURATION", _XSTATE_CONFIGURATION}, {"__unnamed_1f61", __unnamed_1f61}, {"_DBGKD_WRITE_BREAKPOINT64", _DBGKD_WRITE_BREAKPOINT64}, {"__unnamed_1308", __unnamed_1308}, {"_INITIAL_PRIVILEGE_SET", _INITIAL_PRIVILEGE_SET}, {"__unnamed_1302", __unnamed_1302}, {"_ALPC_HANDLE_TABLE", _ALPC_HANDLE_TABLE}, {"__unnamed_1304", __unnamed_1304}, {"__unnamed_19a2", __unnamed_19a2}, {"__unnamed_19a4", __unnamed_19a4}, {"_OPEN_PACKET", _OPEN_PACKET}, {"__unnamed_1e9c", __unnamed_1e9c}, {"_PNP_DEVICE_ACTION_ENTRY", _PNP_DEVICE_ACTION_ENTRY}, {"_WORK_QUEUE_ENTRY", _WORK_QUEUE_ENTRY}, {"_WHEA_PERSISTENCE_INFO", _WHEA_PERSISTENCE_INFO}, {"_KDEVICE_QUEUE_ENTRY", _KDEVICE_QUEUE_ENTRY}, {"__unnamed_230f", __unnamed_230f}, {"__unnamed_230b", __unnamed_230b}, {"__unnamed_2272", __unnamed_2272}, {"__unnamed_2270", __unnamed_2270}, {"__unnamed_2171", __unnamed_2171}, {"__unnamed_2179", __unnamed_2179}, {"_KTHREAD_COUNTERS", _KTHREAD_COUNTERS}, {"VACB_LEVEL_ALLOCATION_LIST", VACB_LEVEL_ALLOCATION_LIST}, {"_PEB_LDR_DATA", _PEB_LDR_DATA}, {"_MMVAD_LONG", _MMVAD_LONG}, {"_ETW_REPLY_QUEUE", _ETW_REPLY_QUEUE}, {"__unnamed_197e", __unnamed_197e}, {"_PROFILE_PARAMETER_BLOCK", _PROFILE_PARAMETER_BLOCK}, {"_RTL_HANDLE_TABLE", _RTL_HANDLE_TABLE}, {"_DBGKD_QUERY_SPECIAL_CALLS", _DBGKD_QUERY_SPECIAL_CALLS}, {"_ETW_GUID_ENTRY", _ETW_GUID_ENTRY}, {"_EPROCESS", _EPROCESS}, {"_KALPC_VIEW", _KALPC_VIEW}, {"_HANDLE_TABLE", _HANDLE_TABLE}, {"_MMPTE_HARDWARE", _MMPTE_HARDWARE}, {"_DEVICE_MAP", _DEVICE_MAP}, {"_VACB_ARRAY_HEADER", _VACB_ARRAY_HEADER}, {"_CM_VIEW_OF_FILE", _CM_VIEW_OF_FILE}, {"_MAILSLOT_CREATE_PARAMETERS", _MAILSLOT_CREATE_PARAMETERS}, {"_HEAP_LIST_LOOKUP", _HEAP_LIST_LOOKUP}, {"_HIVE_LIST_ENTRY", _HIVE_LIST_ENTRY}, {"_DBGKD_READ_WRITE_IO_EXTENDED32", _DBGKD_READ_WRITE_IO_EXTENDED32}, {"_X86_DBGKD_CONTROL_SET", _X86_DBGKD_CONTROL_SET}, {"__unnamed_1c6e", __unnamed_1c6e}, {"__unnamed_2008", __unnamed_2008}, {"_DRIVER_EXTENSION", _DRIVER_EXTENSION}, {"_WHEA_ERROR_RECORD_HEADER_VALIDBITS", _WHEA_ERROR_RECORD_HEADER_VALIDBITS}, {"_ARBITER_BOOT_ALLOCATION_PARAMETERS", _ARBITER_BOOT_ALLOCATION_PARAMETERS}, {"_ARM_DBGKD_CONTROL_SET", _ARM_DBGKD_CONTROL_SET}, {"_ETW_LAST_ENABLE_INFO", _ETW_LAST_ENABLE_INFO}, {"_KSTACK_COUNT", _KSTACK_COUNT}, {"__unnamed_12e6", __unnamed_12e6}, {"__unnamed_12e0", __unnamed_12e0}, {"__unnamed_12e2", __unnamed_12e2}, {"_STRING32", _STRING32}, {"_OBJECT_HEADER_PROCESS_INFO", _OBJECT_HEADER_PROCESS_INFO}, {"_EVENT_DATA_DESCRIPTOR", _EVENT_DATA_DESCRIPTOR}, {"_HEAP_STOP_ON_TAG", _HEAP_STOP_ON_TAG}, {"_MM_PAGED_POOL_INFO", _MM_PAGED_POOL_INFO}, {"_PNP_DEVICE_EVENT_LIST", _PNP_DEVICE_EVENT_LIST}, {"_POP_DEVICE_SYS_STATE", _POP_DEVICE_SYS_STATE}, {"_WHEA_REVISION", _WHEA_REVISION}, {"_COMPRESSED_DATA_INFO", _COMPRESSED_DATA_INFO}, {"_PNP_DEVICE_EVENT_ENTRY", _PNP_DEVICE_EVENT_ENTRY}, {"_XSTATE_CONTEXT", _XSTATE_CONTEXT}, {"_ETW_REALTIME_CONSUMER", _ETW_REALTIME_CONSUMER}, {"_POP_TRIGGER_WAIT", _POP_TRIGGER_WAIT}, {"PROCESSOR_IDLESTATE_POLICY", PROCESSOR_IDLESTATE_POLICY}, {"__unnamed_12ee", __unnamed_12ee}, {"__unnamed_12ea", __unnamed_12ea}, {"_KTIMER_TABLE_ENTRY", _KTIMER_TABLE_ENTRY}, {"_VF_BTS_DATA_MANAGEMENT_AREA", _VF_BTS_DATA_MANAGEMENT_AREA}, {"__unnamed_1c5f", __unnamed_1c5f}, {"_MMADDRESS_LIST", _MMADDRESS_LIST}, {"_FILE_BASIC_INFORMATION", _FILE_BASIC_INFORMATION}, {"_ARBITER_ALLOCATION_STATE", _ARBITER_ALLOCATION_STATE}, {"__unnamed_1c56", __unnamed_1c56}, {"_MMWSL", _MMWSL}, {"CMP_OFFSET_ARRAY", CMP_OFFSET_ARRAY}, {"_PAGED_LOOKASIDE_LIST", _PAGED_LOOKASIDE_LIST}, {"LIST_ENTRY32", LIST_ENTRY32}, {"_LIST_ENTRY", _LIST_ENTRY}, {"_LARGE_INTEGER", _LARGE_INTEGER}, {"__unnamed_22e5", __unnamed_22e5}, {"__unnamed_22e7", __unnamed_22e7}, {"_GDI_TEB_BATCH", _GDI_TEB_BATCH}, {"__unnamed_22e1", __unnamed_22e1}, {"_WHEA_MEMORY_ERROR_SECTION_VALIDBITS", _WHEA_MEMORY_ERROR_SECTION_VALIDBITS}, {"_DUMMY_FILE_OBJECT", _DUMMY_FILE_OBJECT}, {"_POOL_DESCRIPTOR", _POOL_DESCRIPTOR}, {"_HARDWARE_PTE", _HARDWARE_PTE}, {"_ALPC_COMPLETION_PACKET_LOOKASIDE_ENTRY", _ALPC_COMPLETION_PACKET_LOOKASIDE_ENTRY}, {"_TERMINATION_PORT", _TERMINATION_PORT}, {"_HMAP_TABLE", _HMAP_TABLE}, {"_CACHED_KSTACK_LIST", _CACHED_KSTACK_LIST}, {"_OB_DUPLICATE_OBJECT_STATE", _OB_DUPLICATE_OBJECT_STATE}, {"_LAZY_WRITER", _LAZY_WRITER}, {"_OBJECT_DIRECTORY", _OBJECT_DIRECTORY}, {"__unnamed_1e96", __unnamed_1e96}, {"__unnamed_1e94", __unnamed_1e94}, {"__unnamed_1e92", __unnamed_1e92}, {"_VI_DEADLOCK_NODE", _VI_DEADLOCK_NODE}, {"__unnamed_1e98", __unnamed_1e98}, {"_INTERLOCK_SEQ", _INTERLOCK_SEQ}, {"_KDPC_DATA", _KDPC_DATA}, {"_TEB64", _TEB64}, {"_HEAP_LOOKASIDE", _HEAP_LOOKASIDE}, {"_DBGKD_SEARCH_MEMORY", _DBGKD_SEARCH_MEMORY}, {"_VF_TRACKER_STAMP", _VF_TRACKER_STAMP}, {"__unnamed_1e9e", __unnamed_1e9e}, {"_EX_WORK_QUEUE", _EX_WORK_QUEUE}, {"__unnamed_1e9a", __unnamed_1e9a}, {"_EXCEPTION_POINTERS", _EXCEPTION_POINTERS}, {"_KTHREAD", _KTHREAD}, {"__unnamed_17f6", __unnamed_17f6}, {"_DEVICE_CAPABILITIES", _DEVICE_CAPABILITIES}, {"_HEAP_USERDATA_HEADER", _HEAP_USERDATA_HEADER}, {"_KIDTENTRY", _KIDTENTRY}, {"_RTL_ATOM_TABLE_ENTRY", _RTL_ATOM_TABLE_ENTRY}, {"_MM_DRIVER_VERIFIER_DATA", _MM_DRIVER_VERIFIER_DATA}, {"__unnamed_1f59", __unnamed_1f59}, {"_DEVICE_RELATIONS", _DEVICE_RELATIONS}, {"_VF_TARGET_DRIVER", _VF_TARGET_DRIVER}, {"_VF_KE_CRITICAL_REGION_TRACE", _VF_KE_CRITICAL_REGION_TRACE}, {"__unnamed_1060", __unnamed_1060}, {"_HMAP_DIRECTORY", _HMAP_DIRECTORY}, {"_VI_DEADLOCK_GLOBALS", _VI_DEADLOCK_GLOBALS}, {"_RTL_RANGE", _RTL_RANGE}, {"_HEAP_PSEUDO_TAG_ENTRY", _HEAP_PSEUDO_TAG_ENTRY}, {"_INTERFACE", _INTERFACE}, {"_SECURITY_QUALITY_OF_SERVICE", _SECURITY_QUALITY_OF_SERVICE}, {"_ARBITER_INSTANCE", _ARBITER_INSTANCE}, {"_MM_AVL_TABLE", _MM_AVL_TABLE}, {"_OBJECT_SYMBOLIC_LINK", _OBJECT_SYMBOLIC_LINK}, {"_CELL_DATA", _CELL_DATA}, {"_PCW_CALLBACK_INFORMATION", _PCW_CALLBACK_INFORMATION}, {"_LDR_DATA_TABLE_ENTRY", _LDR_DATA_TABLE_ENTRY}, {"_MMSUBSECTION_NODE", _MMSUBSECTION_NODE}, {"_OBJECT_CREATE_INFORMATION", _OBJECT_CREATE_INFORMATION}, {"_EX_PUSH_LOCK", _EX_PUSH_LOCK}, {"_CM_KEY_SECURITY_CACHE", _CM_KEY_SECURITY_CACHE}, {"_KALPC_HANDLE_DATA", _KALPC_HANDLE_DATA}, {"__unnamed_1962", __unnamed_1962}, {"__unnamed_1960", __unnamed_1960}, {"_OBJECT_TYPE", _OBJECT_TYPE}, {"_PCW_DATA", _PCW_DATA}, {"__unnamed_12fc", __unnamed_12fc}, {"_DRIVER_OBJECT", _DRIVER_OBJECT}, {"_UNICODE_STRING", _UNICODE_STRING}, {"_OBJECT_NAME_INFORMATION", _OBJECT_NAME_INFORMATION}, {"_MMWSLE_FREE_ENTRY", _MMWSLE_FREE_ENTRY}, {"__unnamed_12f8", __unnamed_12f8}, {"_AMD64_DBGKD_CONTROL_SET", _AMD64_DBGKD_CONTROL_SET}, {"__unnamed_12f2", __unnamed_12f2}, {"_KEVENT", _KEVENT}, {"_SEGMENT_FLAGS", _SEGMENT_FLAGS}, {"_NBQUEUE_BLOCK", _NBQUEUE_BLOCK}, {"_CM_NOTIFY_BLOCK", _CM_NOTIFY_BLOCK}, {"_DBGKD_READ_WRITE_IO64", _DBGKD_READ_WRITE_IO64}, {"_TP_NBQ_GUARD", _TP_NBQ_GUARD}, {"_ETW_REF_CLOCK", _ETW_REF_CLOCK}, {"_ARBITER_TEST_ALLOCATION_PARAMETERS", _ARBITER_TEST_ALLOCATION_PARAMETERS}, {"_VF_AVL_TREE_NODE", _VF_AVL_TREE_NODE}, {"_CONFIGURATION_COMPONENT_DATA", _CONFIGURATION_COMPONENT_DATA}, {"_SYSPTES_HEADER", _SYSPTES_HEADER}, {"_DBGKD_GET_VERSION64", _DBGKD_GET_VERSION64}, {"_DUAL", _DUAL}, {"_MI_VERIFIER_POOL_HEADER", _MI_VERIFIER_POOL_HEADER}, {"_DBGKD_LOAD_SYMBOLS64", _DBGKD_LOAD_SYMBOLS64}, {"_DBGKM_EXCEPTION64", _DBGKM_EXCEPTION64}, {"_KAFFINITY_EX", _KAFFINITY_EX}, {"_SHARED_CACHE_MAP_LIST_CURSOR", _SHARED_CACHE_MAP_LIST_CURSOR}, {"_MBCB", _MBCB}, {"_ETW_SYSTEMTIME", _ETW_SYSTEMTIME}, {"_KLOCK_QUEUE_HANDLE", _KLOCK_QUEUE_HANDLE}, {"__unnamed_1300", __unnamed_1300}, {"_POOL_TRACKER_BIG_PAGES", _POOL_TRACKER_BIG_PAGES}, {"_RTL_DYNAMIC_HASH_TABLE", _RTL_DYNAMIC_HASH_TABLE}, {"_TEB_ACTIVE_FRAME", _TEB_ACTIVE_FRAME}, {"_PRIVATE_CACHE_MAP_FLAGS", _PRIVATE_CACHE_MAP_FLAGS}, {"_MMSECURE_FLAGS", _MMSECURE_FLAGS}, {"_CONTEXT", _CONTEXT}, {"_ARC_DISK_INFORMATION", _ARC_DISK_INFORMATION}, {"_CONTROL_AREA", _CONTROL_AREA}, {"_WHEA_ERROR_RECORD_SECTION_DESCRIPTOR", _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR}, {"_CM_KCB_UOW", _CM_KCB_UOW}, {"__unnamed_1e41", __unnamed_1e41}, {"_KALPC_SECURITY_DATA", _KALPC_SECURITY_DATA}, {"_RTL_CRITICAL_SECTION_DEBUG", _RTL_CRITICAL_SECTION_DEBUG}, {"_MMVAD", _MMVAD}, {"_RELATION_LIST", _RELATION_LIST}, {"__unnamed_1e3b", __unnamed_1e3b}, {"__unnamed_1e3d", __unnamed_1e3d}, {"_MMSUPPORT_FLAGS", _MMSUPPORT_FLAGS}, {"__unnamed_1e3f", __unnamed_1e3f}, {"_ARBITER_LIST_ENTRY", _ARBITER_LIST_ENTRY}, {"__unnamed_1e8a", __unnamed_1e8a}, {"_KTSS", _KTSS}, {"_IO_TIMER", _IO_TIMER}, {"_MI_SECTION_CREATION_GATE", _MI_SECTION_CREATION_GATE}, {"_VI_POOL_ENTRY_INUSE", _VI_POOL_ENTRY_INUSE}, {"_NPAGED_LOOKASIDE_LIST", _NPAGED_LOOKASIDE_LIST}, {"_FS_FILTER_PARAMETERS", _FS_FILTER_PARAMETERS}, {"_PPM_IDLE_STATES", _PPM_IDLE_STATES}, {"_PCW_REGISTRATION_INFORMATION", _PCW_REGISTRATION_INFORMATION}, {"__unnamed_1e37", __unnamed_1e37}, {"_CM_KEY_SECURITY", _CM_KEY_SECURITY}, {"__unnamed_22db", __unnamed_22db}, {"_PRIVILEGE_SET", _PRIVILEGE_SET}, {"_PSP_CPU_SHARE_CAPTURED_WEIGHT_DATA", _PSP_CPU_SHARE_CAPTURED_WEIGHT_DATA}, {"__unnamed_22dd", __unnamed_22dd}, {"_RTL_HANDLE_TABLE_ENTRY", _RTL_HANDLE_TABLE_ENTRY}, {"_OBJECT_REF_TRACE", _OBJECT_REF_TRACE}, {"__unnamed_1e88", __unnamed_1e88}, {"_CALL_PERFORMANCE_DATA", _CALL_PERFORMANCE_DATA}, {"_VF_AVL_TREE", _VF_AVL_TREE}, {"_PRIVATE_CACHE_MAP", _PRIVATE_CACHE_MAP}, {"_FS_FILTER_CALLBACK_DATA", _FS_FILTER_CALLBACK_DATA}, {"_MMBANKED_SECTION", _MMBANKED_SECTION}, {"_DBGKD_SET_INTERNAL_BREAKPOINT32", _DBGKD_SET_INTERNAL_BREAKPOINT32}, {"__unnamed_1f76", __unnamed_1f76}, {"_MMPTE_TRANSITION", _MMPTE_TRANSITION}, {"_CM_KEY_BODY", _CM_KEY_BODY}, {"_SEP_LOGON_SESSION_REFERENCES", _SEP_LOGON_SESSION_REFERENCES}, {"_MI_IMAGE_SECURITY_REFERENCE", _MI_IMAGE_SECURITY_REFERENCE}, {"_THERMAL_INFORMATION", _THERMAL_INFORMATION}, {"_COUNTER_READING", _COUNTER_READING}, {"_HANDLE_TABLE_ENTRY", _HANDLE_TABLE_ENTRY}, {"_DBGKD_GET_INTERNAL_BREAKPOINT64", _DBGKD_GET_INTERNAL_BREAKPOINT64}, {"_CACHE_MANAGER_CALLBACKS", _CACHE_MANAGER_CALLBACKS}, {"__unnamed_19c0", __unnamed_19c0}, {"_ACCESS_STATE", _ACCESS_STATE}, {"_VI_VERIFIER_ISSUE", _VI_VERIFIER_ISSUE}, {"_CM_BIG_DATA", _CM_BIG_DATA}, {"_PERFINFO_GROUPMASK", _PERFINFO_GROUPMASK}, {"_EJOB", _EJOB}, {"__unnamed_17ef", __unnamed_17ef}, {"_CM_PARTIAL_RESOURCE_DESCRIPTOR", _CM_PARTIAL_RESOURCE_DESCRIPTOR}, {"_DISPATCHER_HEADER", _DISPATCHER_HEADER}, {"_ARBITER_ADD_RESERVED_PARAMETERS", _ARBITER_ADD_RESERVED_PARAMETERS}, {"_GENERIC_MAPPING", _GENERIC_MAPPING}, {"_ARBITER_RETEST_ALLOCATION_PARAMETERS", _ARBITER_RETEST_ALLOCATION_PARAMETERS}, {"__unnamed_1593", __unnamed_1593}, {"_DBGKD_WRITE_BREAKPOINT32", _DBGKD_WRITE_BREAKPOINT32}, {"_IO_RESOURCE_LIST", _IO_RESOURCE_LIST}, {"_TRACE_ENABLE_CONTEXT", _TRACE_ENABLE_CONTEXT}, {"_SYSTEM_POWER_STATE_CONTEXT", _SYSTEM_POWER_STATE_CONTEXT}, {"_MMEXTEND_INFO", _MMEXTEND_INFO}, {"_RTL_USER_PROCESS_PARAMETERS", _RTL_USER_PROCESS_PARAMETERS}, {"_PROC_IDLE_SNAP", _PROC_IDLE_SNAP}, {"_ECP_LIST", _ECP_LIST}, {"_TRACE_ENABLE_INFO", _TRACE_ENABLE_INFO}, {"_EXCEPTION_RECORD32", _EXCEPTION_RECORD32}, {"_WMI_BUFFER_HEADER", _WMI_BUFFER_HEADER}, {"_DBGKD_ANY_CONTROL_SET", _DBGKD_ANY_CONTROL_SET}, {"_KDEVICE_QUEUE", _KDEVICE_QUEUE}, {"_CM_WORKITEM", _CM_WORKITEM}, {"_FILE_GET_QUOTA_INFORMATION", _FILE_GET_QUOTA_INFORMATION}, {"_CM_FULL_RESOURCE_DESCRIPTOR", _CM_FULL_RESOURCE_DESCRIPTOR}, {"_KSTACK_AREA", _KSTACK_AREA}, {"__unnamed_159e", __unnamed_159e}, {"_FSRTL_ADVANCED_FCB_HEADER", _FSRTL_ADVANCED_FCB_HEADER}, {"__unnamed_1ea4", __unnamed_1ea4}, {"_EFI_FIRMWARE_INFORMATION", _EFI_FIRMWARE_INFORMATION}, {"_FNSAVE_FORMAT", _FNSAVE_FORMAT}, {"_CM_CACHED_VALUE_INDEX", _CM_CACHED_VALUE_INDEX}, {"_VI_POOL_ENTRY", _VI_POOL_ENTRY}, {"_ALPC_COMMUNICATION_INFO", _ALPC_COMMUNICATION_INFO}, {"_SID_IDENTIFIER_AUTHORITY", _SID_IDENTIFIER_AUTHORITY}, {"_PO_DIAG_STACK_RECORD", _PO_DIAG_STACK_RECORD}, {"_POOL_HACKER", _POOL_HACKER}, {"_LOADER_PARAMETER_BLOCK", _LOADER_PARAMETER_BLOCK}, {"_ETW_LOGGER_HANDLE", _ETW_LOGGER_HANDLE}, {"_DBGKD_BREAKPOINTEX", _DBGKD_BREAKPOINTEX}, {"_CM_INTENT_LOCK", _CM_INTENT_LOCK}, {"_M128A", _M128A}, {"_SEP_AUDIT_POLICY", _SEP_AUDIT_POLICY}, {"_MI_COLOR_BASE", _MI_COLOR_BASE}, {"_HCELL", _HCELL}, {"_POP_THERMAL_ZONE_METRICS", _POP_THERMAL_ZONE_METRICS}, {"EX_QUEUE_WORKER_INFO", EX_QUEUE_WORKER_INFO}, {"_CLS_LSN", _CLS_LSN}, {"_EXCEPTION_RECORD", _EXCEPTION_RECORD}, {"_KPROCESS", _KPROCESS}, {"_CM_KEY_SECURITY_CACHE_ENTRY", _CM_KEY_SECURITY_CACHE_ENTRY}, {"_DEVICE_FLAGS", _DEVICE_FLAGS}, {"_CM_KEY_HASH", _CM_KEY_HASH}, {"_RTL_ATOM_TABLE", _RTL_ATOM_TABLE}, {"_KNODE", _KNODE}, {"_KAPC", _KAPC}, {"_RTL_SRWLOCK", _RTL_SRWLOCK}, {"_PROC_IDLE_STATE_ACCOUNTING", _PROC_IDLE_STATE_ACCOUNTING}, {"_VF_BTS_RECORD", _VF_BTS_RECORD}, {"_OBJECT_HEADER_QUOTA_INFO", _OBJECT_HEADER_QUOTA_INFO}, }; static std::map<std::string, std::map<long, std::string>> ENUM = {{ "ObTypeIndexTable", { {2, "Type"}, {3, "Directory"}, {4, "SymbolicLink"}, {5, "Token"}, {6, "Job"}, {7, "Process"}, {8, "Thread"}, {9, "UserApcReserve"}, {10, "IoCompletionReserve"}, {11, "DebugObject"}, {12, "Event"}, {13, "EventPair"}, {14, "Mutant"}, {15, "Callback"}, {16, "Semaphore"}, {17, "Timer"}, {18, "Profile"}, {19, "KeyedEvent"}, {20, "WindowStation"}, {21, "Desktop"}, {22, "TpWorkerFactory"}, {23, "Adapter"}, {24, "Controller"}, {25, "Device"}, {26, "Driver"}, {27, "IoCompletion"}, {28, "File"}, {29, "TmTm"}, {30, "TmTx"}, {31, "TmRm"}, {32, "TmEn"}, {33, "Section"}, {34, "Session"}, {35, "Key"}, {36, "ALPCPort"}, {37, "PowerRequest"}, {38, "WmiGuid"}, {39, "EtwRegistration"}, {40, "EtwConsumer"}, {41, "FilterConnectionPort"}, {42, "FilterCommunicationPort"}, {43, "PcwObject"}, }, }}; uint64_t translate_type(const char* tname) { const std::string tname_str(tname); auto search = TRANSLATE.find(tname_str); if (search != TRANSLATE.end()) { return search->second; } return INVALID_TYPE; } uint64_t offset_of_member(uint64_t tid, const char* mname) { if (tid >= sizeof OFFSET) { return INVALID_OFFSET; } const auto& type_offsets = OFFSET[tid]; const std::string mname_str(mname); auto search = type_offsets.find(mname_str); if (search != type_offsets.end()) { return search->second.first; } return INVALID_OFFSET; } uint64_t type_of_member(uint64_t tid, const char* mname) { if (tid >= sizeof OFFSET) { return INVALID_OFFSET; } const auto& type_offsets = OFFSET[tid]; const std::string mname_str(mname); auto search = type_offsets.find(mname_str); if (search != type_offsets.end()) { return search->second.second; } return INVALID_OFFSET; } std::string translate_enum(const char* ename, long idx) { auto search = ENUM.find(std::string(ename)); if (search != ENUM.end()) { auto name = search->second.find(idx); if (name != search->second.end()) { return name->second; } } return "unknown"; } } // namespace windows_7sp0_x86
37.146122
90
0.570563
MarkMankins
9f1cb3ee3332a123f48ac49129aba3253e793b6c
3,057
cc
C++
puzzles/day_22/part2.cc
craig-chasseur/aoc2020
0174c04ba593d6bbc7b4e9bf57e31f46f76d8f06
[ "MIT" ]
2
2020-12-14T16:18:09.000Z
2020-12-17T10:42:17.000Z
puzzles/day_22/part2.cc
craig-chasseur/aoc2020
0174c04ba593d6bbc7b4e9bf57e31f46f76d8f06
[ "MIT" ]
null
null
null
puzzles/day_22/part2.cc
craig-chasseur/aoc2020
0174c04ba593d6bbc7b4e9bf57e31f46f76d8f06
[ "MIT" ]
1
2021-05-04T09:05:25.000Z
2021-05-04T09:05:25.000Z
#include <deque> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_set.h" #include "absl/strings/numbers.h" #include "absl/strings/string_view.h" #include "util/check.h" #include "util/io.h" namespace { enum class Player { kPlayer1, kPlayer2 }; struct Winner { Player player; std::deque<int> deck; }; Winner RunGame(std::deque<int> player1_deck, std::deque<int> player2_deck) { absl::flat_hash_set<std::pair<std::deque<int>, std::deque<int>>> seen_configurations; while (!(player1_deck.empty() || player2_deck.empty())) { if (!seen_configurations.emplace(player1_deck, player2_deck).second) { return Winner{.player = Player::kPlayer1, .deck = player1_deck}; } const int player1_card = player1_deck.front(); player1_deck.pop_front(); const int player2_card = player2_deck.front(); player2_deck.pop_front(); Player round_winner; if (player1_card <= player1_deck.size() && player2_card <= player2_deck.size()) { std::deque<int> player1_subdeck(player1_deck.begin(), player1_deck.begin() + player1_card); std::deque<int> player2_subdeck(player2_deck.begin(), player2_deck.begin() + player2_card); round_winner = RunGame(std::move(player1_subdeck), std::move(player2_subdeck)) .player; } else if (player1_card < player2_card) { round_winner = Player::kPlayer2; } else { round_winner = Player::kPlayer1; } if (round_winner == Player::kPlayer1) { player1_deck.push_back(player1_card); player1_deck.push_back(player2_card); } else { player2_deck.push_back(player2_card); player2_deck.push_back(player1_card); } } return player1_deck.empty() ? Winner{.player = Player::kPlayer2, .deck = player2_deck} : Winner{.player = Player::kPlayer1, .deck = player1_deck}; } std::deque<int> ParseDeck(const std::vector<std::string>& strs) { std::deque<int> deck; for (auto iter = strs.begin() + 1; iter != strs.end(); ++iter) { int card = 0; CHECK(absl::SimpleAtoi(*iter, &card)); deck.push_back(card); } return deck; } int Score(const std::deque<int>& deck) { int mul = 1; int sum = 0; for (auto iter = deck.rbegin(); iter != deck.rend(); ++iter) { sum += *iter * (mul++); } return sum; } } // namespace int main(int argc, char** argv) { CHECK(2 == argc); std::vector<std::string> lines = aoc2020::ReadLinesFromFile(argv[1]); std::vector<std::vector<std::string>> decks = aoc2020::SplitByEmptyStrings(std::move(lines)); CHECK(2 == decks.size()); CHECK(decks.front().front() == "Player 1:"); std::deque<int> player1_deck = ParseDeck(decks.front()); CHECK(decks.back().front() == "Player 2:"); std::deque<int> player2_deck = ParseDeck(decks.back()); const Winner winner = RunGame(std::move(player1_deck), std::move(player2_deck)); std::cout << Score(winner.deck) << "\n"; return 0; }
29.114286
76
0.636899
craig-chasseur
9f1cf4573f1c73746ffff6d73afa16e6954b39d5
576
cpp
C++
7.Functions/7.14.topfive.cpp
HuangStomach/Cpp-primer-plus
c8b2b90f10057e72da3ab570da7cc39220c88f70
[ "MIT" ]
1
2019-09-18T01:48:06.000Z
2019-09-18T01:48:06.000Z
7.Functions/7.14.topfive.cpp
HuangStomach/Cpp-primer-plus
c8b2b90f10057e72da3ab570da7cc39220c88f70
[ "MIT" ]
1
2019-09-18T11:31:31.000Z
2019-09-22T04:47:31.000Z
7.Functions/7.14.topfive.cpp
HuangStomach/Cpp-primer-plus
c8b2b90f10057e72da3ab570da7cc39220c88f70
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; const int SIZE = 5; void display(const string sa[], int n); int main(int argc, char const *argv[]) { string list[SIZE]; cout << "Enter your " << SIZE << " favourite astronomical sights:\n"; for (int i = 0; i < SIZE; i++) { cout << i + 1 << ": "; getline(cin, list[i]); } cout << "Your: " << endl; display(list, SIZE); return 0; } void display(const string sa[], int n) { for (int i = 0; i < SIZE; i++) { cout << i + 1 << ": " << sa[i] << endl; } }
21.333333
73
0.513889
HuangStomach
9f1cfdb1635c51b1f9dbb450001d84e99270af38
9,122
cpp
C++
Sources/Elastos/Frameworks/Droid/WebView/Chromium/src/elastos/droid/webview/chromium/native/ui/base/Clipboard.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/Elastos/Frameworks/Droid/WebView/Chromium/src/elastos/droid/webview/chromium/native/ui/base/Clipboard.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/Frameworks/Droid/WebView/Chromium/src/elastos/droid/webview/chromium/native/ui/base/Clipboard.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. //========================================================================= #include "Elastos.Droid.Content.h" #include "elastos/droid/webkit/webview/chromium/native/base/ApiCompatibilityUtils.h" #include "elastos/droid/webkit/webview/chromium/native/ui/base/Clipboard.h" #include "elastos/droid/webkit/webview/chromium/native/ui/api/Clipboard_dec.h" #include <elastos/utility/logging/Logger.h> using Elastos::Droid::Content::CClipDataHelper; using Elastos::Droid::Content::IClipDataHelper; using Elastos::Droid::Content::IClipDataItem; using Elastos::Droid::Webkit::Webview::Chromium::Base::ApiCompatibilityUtils; using Elastos::Core::CString; using Elastos::Core::ICharSequence; using Elastos::Utility::Logging::Logger; namespace Elastos { namespace Droid { namespace Webkit { namespace Webview { namespace Chromium { namespace Ui { namespace Base { //===================================================================== // Clipboard //===================================================================== Clipboard::Clipboard( /* [in] */ IContext* context) : mContext(context) { // ==================before translated====================== // mContext = context; // mClipboardManager = (ClipboardManager) // context.getSystemService(Context.CLIPBOARD_SERVICE); AutoPtr<IInterface> tmp; context->GetSystemService(IContext::CLIPBOARD_SERVICE, (IInterface**)&tmp); mClipboardManager = IClipboardManager::Probe(tmp); } ECode Clipboard::SetText( /* [in] */ const String& label, /* [in] */ const String& text) { // ==================before translated====================== // setPrimaryClipNoException(ClipData.newPlainText(label, text)); AutoPtr<IClipDataHelper> helper; CClipDataHelper::AcquireSingleton((IClipDataHelper**)&helper); AutoPtr<ICharSequence> labelCharSequence; CString::New(label, (ICharSequence**)&labelCharSequence); AutoPtr<ICharSequence> textCharSequence; CString::New(text, (ICharSequence**)&textCharSequence); AutoPtr<IClipData> clipData; helper->NewPlainText(labelCharSequence, textCharSequence, (IClipData**)&clipData); SetPrimaryClipNoException(clipData); return NOERROR; } ECode Clipboard::SetText( /* [in] */ const String& text) { // ==================before translated====================== // setText(null, text); SetText(String(""), text); return NOERROR; } ECode Clipboard::SetHTMLText( /* [in] */ const String& html, /* [in] */ const String& label, /* [in] */ const String& text) { // ==================before translated====================== // if (isHTMLClipboardSupported()) { // setPrimaryClipNoException(ClipData.newHtmlText(label, text, html)); // } if (IsHTMLClipboardSupported()) { AutoPtr<IClipDataHelper> helper; CClipDataHelper::AcquireSingleton((IClipDataHelper**)&helper); AutoPtr<ICharSequence> labelCharSequence; CString::New(label, (ICharSequence**)&labelCharSequence); AutoPtr<ICharSequence> textCharSequence; CString::New(text, (ICharSequence**)&textCharSequence); AutoPtr<IClipData> clipData; helper->NewHtmlText(labelCharSequence, textCharSequence, html, (IClipData**)&clipData); SetPrimaryClipNoException(clipData); } return NOERROR; } ECode Clipboard::SetHTMLText( /* [in] */ const String& html, /* [in] */ const String& text) { // ==================before translated====================== // setHTMLText(html, null, text); SetHTMLText(html, String(""), text); return NOERROR; } AutoPtr<Clipboard> Clipboard::Create( /* [in] */ IContext* context) { // ==================before translated====================== // return new Clipboard(context); AutoPtr<Clipboard> result = new Clipboard(context); return result; } String Clipboard::GetCoercedText() { // ==================before translated====================== // final ClipData clip = mClipboardManager.getPrimaryClip(); // if (clip != null && clip.getItemCount() > 0) { // final CharSequence sequence = clip.getItemAt(0).coerceToText(mContext); // if (sequence != null) { // return sequence.toString(); // } // } // return null; AutoPtr<IClipData> clip; mClipboardManager->GetPrimaryClip((IClipData**)&clip); Int32 itemCount = 0; clip->GetItemCount(&itemCount); if (clip != NULL && itemCount > 0) { AutoPtr<IClipDataItem> clipDataItem; clip->GetItemAt(0, (IClipDataItem**)&clipDataItem); AutoPtr<ICharSequence> sequence; clipDataItem->CoerceToText(mContext, (ICharSequence**)&sequence); if (sequence != NULL) { String result; sequence->ToString(&result); return result; } } return String(""); } String Clipboard::GetHTMLText() { // ==================before translated====================== // if (isHTMLClipboardSupported()) { // final ClipData clip = mClipboardManager.getPrimaryClip(); // if (clip != null && clip.getItemCount() > 0) { // return clip.getItemAt(0).getHtmlText(); // } // } // return null; if (IsHTMLClipboardSupported()) { AutoPtr<IClipData> clip; mClipboardManager->GetPrimaryClip((IClipData**)&clip); Int32 itemCount; clip->GetItemCount(&itemCount); if (clip != NULL && itemCount > 0) { AutoPtr<IClipDataItem> clipDataItem; clip->GetItemAt(0, (IClipDataItem**)&clipDataItem); String result; clipDataItem->GetHtmlText(&result); return result; } } return String(""); } Boolean Clipboard::IsHTMLClipboardSupported() { // ==================before translated====================== // return ApiCompatibilityUtils.isHTMLClipboardSupported(); return ApiCompatibilityUtils::IsHTMLClipboardSupported(); } ECode Clipboard::SetPrimaryClipNoException( /* [in] */ IClipData* clip) { VALIDATE_NOT_NULL(clip); // ==================before translated====================== // try { // mClipboardManager.setPrimaryClip(clip); // } catch (Exception ex) { // // Ignore any exceptions here as certain devices have bugs and will fail. // String text = mContext.getString(R.string.copy_to_clipboard_failure_message); // Toast.makeText(mContext, text, Toast.LENGTH_SHORT).show(); // } //try { mClipboardManager->SetPrimaryClip(clip); //} catch (Exception ex) { // Ignore any exceptions here as certain devices have bugs and will fail. // String text = mContext.getString(R.string.copy_to_clipboard_failure_message); // Toast.makeText(mContext, text, Toast.LENGTH_SHORT).show(); //} return NOERROR; } AutoPtr<IInterface> Clipboard::Create( /* [in] */ IInterface* context) { IContext* c = IContext::Probe(context); return TO_IINTERFACE(Create(c)); } String Clipboard::GetCoercedText( /* [in] */ IInterface* obj) { Clipboard* mObj = (Clipboard*)(IObject::Probe(obj)); if (NULL == mObj) { Logger::E("Clipboard", "Clipboard::GetCoercedText, mObj is NULL"); return String(NULL); } return mObj->GetCoercedText(); } String Clipboard::GetHTMLText( /* [in] */ IInterface* obj) { Clipboard* mObj = (Clipboard*)(IObject::Probe(obj)); if (NULL == mObj) { Logger::E("Clipboard", "Clipboard::GetHTMLText, mObj is NULL"); return String(NULL); } return mObj->GetHTMLText(); } void Clipboard::SetText( /* [in] */ IInterface* obj, /* [in] */ const String& text) { Clipboard* mObj = (Clipboard*)(IObject::Probe(obj)); if (NULL == mObj) { Logger::E("Clipboard", "Clipboard::SetText, mObj is NULL"); return; } mObj->SetText(text); } void Clipboard::SetHTMLText( /* [in] */ IInterface* obj, /* [in] */ const String& html, /* [in] */ const String& text) { Clipboard* mObj = (Clipboard*)(IObject::Probe(obj)); if (NULL == mObj) { Logger::E("Clipboard", "Clipboard::SetHTMLText, mObj is NULL"); return; } mObj->SetHTMLText(html, text); } } // namespace Base } // namespace Ui } // namespace Chromium } // namespace Webview } // namespace Webkit } // namespace Droid } // namespace Elastos
31.564014
95
0.604144
jingcao80
9f1de8cbaaf6cb7b22aad742bc9f0bdb9e08fd06
1,286
hpp
C++
include/WgUtils/camera.hpp
TheVaffel/Wingine
17d5bf19a9c56a0e3ae6a84df2332319d82e9493
[ "MIT" ]
2
2020-12-01T15:13:08.000Z
2021-11-11T16:10:10.000Z
include/WgUtils/camera.hpp
TheVaffel/Wingine
17d5bf19a9c56a0e3ae6a84df2332319d82e9493
[ "MIT" ]
null
null
null
include/WgUtils/camera.hpp
TheVaffel/Wingine
17d5bf19a9c56a0e3ae6a84df2332319d82e9493
[ "MIT" ]
null
null
null
#ifndef WGUT_CAMERA_HPP #define WGUT_CAMERA_HPP #include <FlatAlg.hpp> namespace wgut { class Camera{ const falg::Mat4 clip = {1.f, 0.f, 0.f, 0.f, 0.f, -1.f, 0.f, 0.f, 0.f, 0.f, 0.5f, 0.5f, 0.f, 0.f, 0.0f, 1.f}; falg::Mat4 projection, view, total; float aspect_ratio; float fov_x; bool altered; public: Camera(float horizontalFOVRadians = 45.f/180.f*F_PI, float invAspect = 9.0f/16.0f, float near = 0.1f, float far = 100.0f); void setPosition(const falg::Vec3& v); void setLookAt(const falg::Vec3& pos, const falg::Vec3& target, const falg::Vec3& up); void setLookDirection(float rightAngle, float upAngle, const falg::Vec3& up); falg::Mat4 getRenderMatrix(); falg::Mat4 getTransformMatrix(); falg::Mat4 getViewMatrix(); falg::Vec3 getForwardVector() const; falg::Vec3 getRightVector() const; falg::Vec3 getUpVector() const; falg::Vec3 getPosition() const; float getFovX() const; float getAspectRatio() const; }; }; #endif // WGUT_CAMERA_HPP
28.577778
130
0.531104
TheVaffel
9f21a8214d428f2e6b81e4587ac90618eb62c19e
470
cc
C++
jax/training/21-05/21-05-30-weekly/c_caesar_cipher.cc
JaxVanYang/acm
ee41f1cbf692b7b1463a9467401bb6e7d38aecce
[ "MIT" ]
2
2022-01-01T16:55:02.000Z
2022-03-16T14:47:29.000Z
jax/training/21-05/21-05-30-weekly/c_caesar_cipher.cc
JaxVanYang/acm
ee41f1cbf692b7b1463a9467401bb6e7d38aecce
[ "MIT" ]
null
null
null
jax/training/21-05/21-05-30-weekly/c_caesar_cipher.cc
JaxVanYang/acm
ee41f1cbf692b7b1463a9467401bb6e7d38aecce
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; const int maxn = 55; char s[3][maxn]; void solve() { int n, m; scanf("%d%d", &n, &m); for (int i = 0; i < 3; ++i) scanf("%s", s + i); int shift = (s[0][0] - s[1][0] + 26) % 26; for (int i = 0; i < m; ++i) s[2][i] = 'A' + (s[2][i] - 'A' + shift) % 26; puts(s[2]); } int main() { int t; scanf("%d", &t); for (int i = 1; i <= t; ++i) { printf("Case #%d: ", i); solve(); } }
20.434783
77
0.412766
JaxVanYang
9f253590aba3761bf8ce36cbc91226192ca096be
1,207
cc
C++
code30/cpp/20190816/bo_thread/Thread.cc
stdbilly/CS_Note
a8a87e135a525d53c283a4c70fb942c9ca59a758
[ "MIT" ]
2
2020-12-09T09:55:51.000Z
2021-01-08T11:38:22.000Z
mycode/cpp/0820/networklib/v4/Thread.cc
stdbilly/CS_Note
a8a87e135a525d53c283a4c70fb942c9ca59a758
[ "MIT" ]
null
null
null
mycode/cpp/0820/networklib/v4/Thread.cc
stdbilly/CS_Note
a8a87e135a525d53c283a4c70fb942c9ca59a758
[ "MIT" ]
null
null
null
/// /// @file Thread.cc /// @author lemon(haohb13@gmail.com) /// @date 2019-08-15 09:41:33 /// #include "Thread.h" #include <iostream> using std::cout; using std::endl; namespace wd { namespace current_thread { __thread const char * threadName = "wd thread"; } //end of namespace current_thread using ThreadCallback = std::function<void()>; struct ThreadData { ThreadData(const string name, ThreadCallback && cb) : _name(name) , _cb(cb) {} //子线程中执行 void runInThread() { current_thread::threadName = (_name==string()?"wd thread" : _name.c_str()); if(_cb) { _cb(); } } string _name; ThreadCallback _cb; }; Thread::~Thread() { if(_isRunning) { pthread_detach(_pthid); } cout << "~Thread()" << endl; } void Thread::start() { ThreadData * pdata = new ThreadData(_name, std::move(_cb)); pthread_create(&_pthid, nullptr, threadFunc, pdata); _isRunning = true; } void Thread::join() { if(_isRunning) { pthread_join(_pthid, nullptr); _isRunning = false; } } void * Thread::threadFunc(void * arg) { ThreadData * pdata = static_cast<ThreadData *>(arg); if(pdata) pdata->runInThread();//执行任务 delete pdata; return nullptr; } }//end of namespace wd
15.278481
77
0.656172
stdbilly
9f26daa7777bdcc0e95b682b3283246113ebf5fe
740
hpp
C++
include/libembeddedhal/input_pin/pin_resistors.hpp
MaliaLabor/libembeddedhal
9f40affd438602df7ad818a1573c51347fd753bd
[ "Apache-2.0" ]
1
2022-02-10T20:25:00.000Z
2022-02-10T20:25:00.000Z
include/libembeddedhal/input_pin/pin_resistors.hpp
MaliaLabor/libembeddedhal
9f40affd438602df7ad818a1573c51347fd753bd
[ "Apache-2.0" ]
null
null
null
include/libembeddedhal/input_pin/pin_resistors.hpp
MaliaLabor/libembeddedhal
9f40affd438602df7ad818a1573c51347fd753bd
[ "Apache-2.0" ]
null
null
null
#pragma once namespace embed { /** * @brief Set of possible pin mode resistor settings. * * See each enumeration to get more details about when and how these should be * used. * */ enum class pin_resistor { /// No pull up. This will cause the pin to float. This may be desirable if the /// pin has an external resistor attached or if the signal is sensitive to /// external devices like resistors. none = 0, /// Pull the pin down to devices GND. This will ensure that the voltage read /// by the pin when there is no signal on the pin is LOW (or false). pull_down, /// See pull down explanation, but in this case the pin is pulled up to VCC, /// also called VDD on some systems. pull_up, }; } // namespace embed
29.6
80
0.698649
MaliaLabor
9f2c414843dbe63a59b011a0fcde085232126728
459
cpp
C++
GUI.cpp
OUDON/etumble
bc522eaa75b861460a0a781bcd0c6b1cd6325c17
[ "MIT" ]
6
2018-07-11T07:11:24.000Z
2021-11-03T16:14:22.000Z
GUI.cpp
OUDON/etumble
bc522eaa75b861460a0a781bcd0c6b1cd6325c17
[ "MIT" ]
1
2019-02-28T14:55:49.000Z
2019-02-28T14:55:49.000Z
GUI.cpp
OUDON/etumble
bc522eaa75b861460a0a781bcd0c6b1cd6325c17
[ "MIT" ]
null
null
null
#include "GUI.hpp" #include "common.hpp" #include <QPushButton> GUI::GUI() : app(nullptr) {} int GUI::start(int *argcp, char *argv[]) { if (app != nullptr) { std::cerr << "This application is already started." << std::endl; return -1; } app = new QApplication(*argcp, argv); main_window = new MainWindow; main_window->show(); return app->exec(); } GUI& GUI::get_instance() { static GUI gui; return gui; }
17
73
0.592593
OUDON
9f330f70555bb8bbaa236f8dd8554c47ac9050cc
1,914
hpp
C++
Math/Include/Quaternion.hpp
jordanlittlefair/Foundation
ab737b933ea5bbe2be76133ed78c8e882f072fd0
[ "BSL-1.0" ]
null
null
null
Math/Include/Quaternion.hpp
jordanlittlefair/Foundation
ab737b933ea5bbe2be76133ed78c8e882f072fd0
[ "BSL-1.0" ]
null
null
null
Math/Include/Quaternion.hpp
jordanlittlefair/Foundation
ab737b933ea5bbe2be76133ed78c8e882f072fd0
[ "BSL-1.0" ]
null
null
null
#pragma once #ifndef _MATH_QUATERNION_HPP_ #define _MATH_QUATERNION_HPP_ #include <cmath> #include "Vector3.hpp" namespace Fnd { namespace Math { struct Quaternion { float x; float y; float z; float w; inline Quaternion() { } inline Quaternion( float x_, float y_, float z_, float w_ ): x(x_), y(y_), z(z_), w(w_) { } inline Quaternion( const Vector3& axis, float angle ): x( axis.x * sin( angle * 0.5f ) ), y( axis.y * sin( angle * 0.5f ) ), z( axis.z * sin( angle * 0.5f ) ), w( cos( angle * 0.5f ) ) { } inline float GetMagnitude() const { return sqrt( x*x + y*y + z*z + w*w ); } inline Quaternion GetNormalised() const { float magnitude = GetMagnitude(); return Quaternion( x/magnitude, y/magnitude, z/magnitude, w/magnitude ); } inline void Normalise() { *this = GetNormalised(); } /* http://nic-gamedev.blogspot.co.uk/2011/11/quaternion-math-getting-local-axis.html */ inline Vector3 GetXAxis() const { return Vector3( 1 - 2 * ( y * y + z * z ), 2 * ( x * y + w * z ), 2 * ( x * z - w * y ) ); } inline Vector3 GetYAxis() const { return Vector3( 2 * ( x * y - w * z ), 1 - 2 * ( x * x + z * z ), 2 * ( y * z + w * x ) ); } inline Vector3 GetZAxis() const { return Vector3( 2 * ( x * z + w * y ), 2 * ( y * z - w * x ), 1 - 2 * ( x * x + y * y ) ); } }; inline Quaternion operator *( const Quaternion& q1, const Quaternion& q2 ) { return Quaternion( q1.w * q2.x + q1.x * q2.w + q1.y * q2.z - q1.z * q2.y, q1.w * q2.y - q1.x * q2.z + q1.y * q2.w + q1.z * q2.x, q1.w * q2.z + q1.x * q2.y - q1.y * q2.x + q1.z * q2.w, q1.w * q2.w - q1.x * q2.x - q1.y * q2.y - q1.z * q2.z ); } inline Quaternion& operator *= ( Quaternion& q1, const Quaternion& q2 ) { return q1 = ( q1 * q2 ); } } } #endif
18.403846
84
0.524556
jordanlittlefair
9f3d842872eb863f20a98efd033a334c6db9ba4f
3,293
cpp
C++
ChaosNodeDirectory/ChaosNodeDirectory.cpp
fast01/chaosframework
28194bcca5f976fd5cf61448ca84ce545e94d822
[ "Apache-2.0" ]
2
2020-04-16T13:20:57.000Z
2021-06-24T02:05:25.000Z
ChaosNodeDirectory/ChaosNodeDirectory.cpp
fast01/chaosframework
28194bcca5f976fd5cf61448ca84ce545e94d822
[ "Apache-2.0" ]
null
null
null
ChaosNodeDirectory/ChaosNodeDirectory.cpp
fast01/chaosframework
28194bcca5f976fd5cf61448ca84ce545e94d822
[ "Apache-2.0" ]
null
null
null
/* * ChaosNodeDirectory.cpp * !CHOAS * Created by Bisegni Claudio. * * Copyright 2012 INFN, National Institute of Nuclear Physics * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "ChaosNodeDirectory.h" #include <csignal> #include <chaos/common/exception/CException.h> using namespace std; using namespace chaos; using namespace chaos::nd; using boost::shared_ptr; WaitSemaphore ChaosNodeDirectory::waitCloseSemaphore; #define LCND_ LAPP_ << "[ChaosNodeDirectory]- " //! C and C++ attribute parser /*! Specialized option for startup c and cpp program main options parameter */ void ChaosNodeDirectory::init(int argc, char* argv[]) throw (CException) { ChaosCommon<ChaosNodeDirectory>::init(argc, argv); } //!stringbuffer parser /* specialized option for string stream buffer with boost semantics */ void ChaosNodeDirectory::init(istringstream &initStringStream) throw (CException) { ChaosCommon<ChaosNodeDirectory>::init(initStringStream); } /* * */ void ChaosNodeDirectory::init(void *init_data) throw(CException) { try { LCND_ << "Initializing"; ChaosCommon<ChaosNodeDirectory>::init(init_data); if (signal((int) SIGINT, ChaosNodeDirectory::signalHanlder) == SIG_ERR) { throw CException(0, "Error registering SIGINT signal", "ChaosNodeDirectory::init"); } if (signal((int) SIGQUIT, ChaosNodeDirectory::signalHanlder) == SIG_ERR) { throw CException(0, "Error registering SIG_ERR signal", "ChaosNodeDirectory::init"); } } catch (CException& ex) { DECODE_CHAOS_EXCEPTION(ex) exit(1); } //start data manager } /* * */ void ChaosNodeDirectory::start() throw(CException) { //lock o monitor for waith the end try { LCND_ << "Starting"; LCND_ << "Started"; //at this point i must with for end signal waitCloseSemaphore.wait(); } catch (CException& ex) { DECODE_CHAOS_EXCEPTION(ex) exit(1); } //execute the deinitialization of CU stop(); deinit(); } /* Stop the toolkit execution */ void ChaosNodeDirectory::stop() throw(CException) { //lock lk(monitor); //unlock the condition for end start method //endWaithCondition.notify_one(); waitCloseSemaphore.unlock(); } /* Deiniti all the manager */ void ChaosNodeDirectory::deinit() throw(CException) { LCND_ << "Stopping"; //start Control Manager LCND_ << "Stopped"; } /* * */ void ChaosNodeDirectory::signalHanlder(int signalNumber) { //lock lk(monitor); //unlock the condition for end start method //endWaithCondition.notify_one(); waitCloseSemaphore.unlock(); }
26.991803
96
0.668387
fast01
9f3dd9e7dc58aa88167112f45b111e72d4469cdc
3,490
hpp
C++
Source/Utility/Calendar/kCalendarToString.hpp
KingKiller100/kLibrary
37971acd3c54f9ea0decdf78b13e47c935d4bbf0
[ "Apache-2.0" ]
null
null
null
Source/Utility/Calendar/kCalendarToString.hpp
KingKiller100/kLibrary
37971acd3c54f9ea0decdf78b13e47c935d4bbf0
[ "Apache-2.0" ]
null
null
null
Source/Utility/Calendar/kCalendarToString.hpp
KingKiller100/kLibrary
37971acd3c54f9ea0decdf78b13e47c935d4bbf0
[ "Apache-2.0" ]
null
null
null
#pragma once #include "Date/kDate.hpp" #include "Time/kTime.hpp" #include "../String/kToString.hpp" namespace klib::kString::stringify { using namespace klib::kCalendar; ///////////////////////////////////////////////////////////////////////////////////////////////// // Date Components ////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////// template<typename Char_t> class Identity<Char_t, Day> { public: using Type = Day; USE_RESULT static decltype(auto) MakeStr(const Type& hour, StringWriter<Char_t>& specifier) { const auto count = TryStrTo(specifier, 1); const auto format = std::string(count, Type::FormatToken); const auto str = hour.ToString(format); return Convert<Char_t>(str); } }; template<typename Char_t> class Identity<Char_t, Month> { public: using Type = Month; USE_RESULT static decltype(auto) MakeStr(const Type& hour, StringWriter<Char_t>& specifier) { const auto count = TryStrTo(specifier, 1); const auto format = std::string(count, Type::FormatToken); const auto str = hour.ToString(format); return Convert<Char_t>(str); } }; template<typename Char_t> class Identity<Char_t, Year> { public: using Type = Year; USE_RESULT static decltype(auto) MakeStr(const Type& hour, StringWriter<Char_t>& specifier) { const auto count = TryStrTo(specifier, 1); const auto format = std::string(count, Type::FormatToken); const auto str = hour.ToString(format); return Convert<Char_t>(str); } }; ///////////////////////////////////////////////////////////////////////////////////////////////// // Time Components ////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////// template<typename Char_t> class Identity<Char_t, Hour> { public: using Type = Hour; USE_RESULT static decltype(auto) MakeStr(const Type& hour, StringWriter<Char_t>& specifier) { const auto count = TryStrTo(specifier, 1); const auto format = std::string(count, Type::FormatToken); const auto str = hour.ToString(format); return Convert<Char_t>(str); } }; template<typename Char_t> class Identity<Char_t, Minute> { public: using Type = Minute; USE_RESULT static decltype(auto) MakeStr(const Type& minute, StringWriter<Char_t>& specifier) { const auto count = TryStrTo(specifier, 1); const auto format = std::string(count, Type::FormatToken); const auto str = minute.ToString(format); return Convert<Char_t>(str); } }; template<typename Char_t> class Identity<Char_t, Second> { public: using Type = Second; USE_RESULT static decltype(auto) MakeStr(const Type& second, StringWriter<Char_t>& specifier) { const auto count = TryStrTo(specifier, 1); const auto format = std::string(count, Type::FormatToken); const auto str = second.ToString(format); return Convert<Char_t>(str); } }; template<typename Char_t> class Identity<Char_t, Millisecond> { public: using Type = Millisecond; USE_RESULT static decltype(auto) MakeStr(const Type& milli, StringWriter<Char_t>& specifier) { const auto count = TryStrTo(specifier, 1); const auto format = std::string(count, Type::FormatToken); const auto str = milli.ToString(format); return Convert<Char_t>(str); } }; }
26.439394
98
0.589685
KingKiller100
9f3e3b5270eb8ecbbdf4862ecdcfafdc6caef1bd
1,753
hpp
C++
AudioKit/AudioKitCore/Synth/VoiceBase.hpp
AudioKit/AudioKitNet
a6a367cb3fd2b0daac967a9d8c2f9807aa1184ed
[ "MIT" ]
28
2018-05-25T17:30:18.000Z
2020-08-05T01:56:57.000Z
AudioKit/AudioKitCore/Synth/VoiceBase.hpp
AudioKit/AudioKit-net
a6a367cb3fd2b0daac967a9d8c2f9807aa1184ed
[ "MIT" ]
2
2018-10-05T05:27:44.000Z
2020-03-20T17:05:44.000Z
AudioKit/AudioKitCore/Synth/VoiceBase.hpp
AudioKit/AudioKit-net
a6a367cb3fd2b0daac967a9d8c2f9807aa1184ed
[ "MIT" ]
2
2018-09-12T06:06:41.000Z
2020-05-20T15:12:09.000Z
// // VoiceBase.hpp // AudioKit Core // // Created by Shane Dunne, revision history on Github. // Copyright © 2018 AudioKit. All rights reserved. // #pragma once #include "VoiceBase.hpp" namespace AudioKitCore { struct VoiceBase { void* pTimbreParams; // pointer to a block of shared parameters void* pModParams; // pointer to a block of modulation values unsigned event; // last "event number" associated with this voice int noteNumber; // MIDI note number, or -1 if not playing any note float noteHz; // note frequency in Hz float noteVol; // fraction 0.0 - 1.0, based on MIDI velocity // temporary holding variables int newNoteNumber; // holds new note number while damping note before restarting int newVelocity; // same for new velocity float newNoteVol; // same for new note volume float tempGain; // product of global volume, note volume, and amp EG VoiceBase() : pTimbreParams(0), pModParams(0), event(0), noteNumber(-1) {} void init(double sampleRate, void* pTimbreParameters, void* pModParameters); virtual void start(unsigned evt, unsigned noteNum, unsigned velocity, float freqHz, float volume); virtual void restart(unsigned evt, unsigned noteNum, unsigned noteVel, float freqHz, float volume); virtual void release(unsigned evt); virtual bool isReleasing(void) = 0; virtual void stop(unsigned evt); // both of these return true if amp envelope is finished virtual bool doModulation(void) = 0; virtual bool getSamples(int nSamples, float* pOutLeft, float* pOutRight) = 0; }; }
38.108696
107
0.648032
AudioKit
9f3e68502b062b5c6be0cad399f716c0e4217f01
2,555
cpp
C++
GrannyViewer/iris/granny/grnbones.cpp
zerodowned/Iris1_DeveloperTools
0b5510bb46824d8939846f73c7e63ed7eecf827d
[ "DOC" ]
1
2019-02-08T18:03:28.000Z
2019-02-08T18:03:28.000Z
GrannyViewer/iris/granny/grnbones.cpp
SiENcE/Iris1_DeveloperTools
0b5510bb46824d8939846f73c7e63ed7eecf827d
[ "DOC" ]
null
null
null
GrannyViewer/iris/granny/grnbones.cpp
SiENcE/Iris1_DeveloperTools
0b5510bb46824d8939846f73c7e63ed7eecf827d
[ "DOC" ]
7
2015-03-11T22:06:23.000Z
2019-12-21T09:49:57.000Z
/***** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *****/ #include "stdafx.h" #include "granny/grntype.h" #include "granny/grnbones.h" #include "Debug.h" #include <stdlib.h> #include <iostream> #include <cassert> using namespace std; #ifdef _DEBUG #define new DEBUG_NEW #endif Bone::Bone() : nameid(0) { } Bone::~Bone() { } Bones::Bones() { } Bones::~Bones() { for_each(bones.begin(),bones.end(),my_delete<Bone*>); bones.clear(); } void Bones::load(cGrannyStream * file,dword boneOffset,dword baseOffset,dword peers) { assert(file); int x; union { dword d; float f; } fd; dword oldPos; Bone *bone=NULL; for (unsigned int i=0;i<peers;) { dword chunk=file->readDword(); dword offset=file->readDword(); dword children=file->readDword(); switch (chunk) { case 0xCA5E0505: //skeleton load(file,offset,baseOffset,children); break; case 0xCA5E0506: //bone oldPos=file->tellg(); file->seekg(offset+baseOffset); bone=new Bone(); bone->parent=file->readDword(); bone->id=bones.size(); for (x=0;x<3;x++) { fd.d=file->readDword(); //if (fd.f > 10.0f) fd.f /= 10.0f; //else if (fd.f < -10.0f) fd.f /= 10.0f; bone->translate.points[x]=fd.f; }; for (x=0;x<4;x++) { fd.d=file->readDword(); //if (abs(fd.f) > 10.0f) fd.f *= 0.1f; bone->quaternion.points[x]=fd.f; }; // there's 9 floats left.. we don't know what they are bones.push_back(bone); if (bone->parent!=bone->id) //endless loop otherwise bones[bone->parent]->children.push_back(bone); file->seekg(oldPos); break; case 0xCA5E0508: //bonelist load(file,offset,baseOffset,children); break; default: { pDebug.Log(LEVEL_ERROR, "Unknown Bones Chunk: 0x%x", chunk); //assert(!"Unknown Bones Chunk"); return; } } i+=children+1; } }
22.8125
84
0.64227
zerodowned
9f4595290ef9342321ad8e9674156ecaa640962f
10,317
cpp
C++
ThirdParty/bullet-2.75/Demos/MiniCL_VectorAdd/MiniCL.cpp
CarysT/medusa
8e79f7738534d8cf60577ec42ed86621533ac269
[ "MIT" ]
32
2016-05-22T23:09:19.000Z
2022-03-13T03:32:27.000Z
ThirdParty/bullet-2.75/Demos/MiniCL_VectorAdd/MiniCL.cpp
CarysT/medusa
8e79f7738534d8cf60577ec42ed86621533ac269
[ "MIT" ]
2
2016-05-30T19:45:58.000Z
2018-01-24T22:29:51.000Z
ThirdParty/bullet-2.75/Demos/MiniCL_VectorAdd/MiniCL.cpp
CarysT/medusa
8e79f7738534d8cf60577ec42ed86621533ac269
[ "MIT" ]
17
2016-05-27T11:01:42.000Z
2022-03-13T03:32:30.000Z
#include <MiniCL/cl.h> #define __PHYSICS_COMMON_H__ 1 #ifdef WIN32 #include "BulletMultiThreaded/Win32ThreadSupport.h" #else #include "BulletMultiThreaded/SequentialThreadSupport.h" #endif #include "BulletMultiThreaded/MiniCLTaskScheduler.h" #include "BulletMultiThreaded/MiniCLTask/MiniCLTask.h" #include "LinearMath/btMinMax.h" /* m_threadSupportCollision = new Win32ThreadSupport(Win32ThreadSupport::Win32ThreadConstructionInfo( "collision", processCollisionTask, createCollisionLocalStoreMemory, maxNumOutstandingTasks)); if (!m_spuCollisionTaskProcess) m_spuCollisionTaskProcess = new SpuCollisionTaskProcess(m_threadInterface,m_maxNumOutstandingTasks); m_spuCollisionTaskProcess->initialize2(dispatchInfo.m_useEpa); m_spuCollisionTaskProcess->addWorkToTask(pairPtr,i,endIndex); //make sure all SPU work is done m_spuCollisionTaskProcess->flush2(); */ CL_API_ENTRY cl_int CL_API_CALL clGetDeviceInfo( cl_device_id device , cl_device_info param_name , size_t param_value_size , void * param_value , size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0 { switch (param_name) { case CL_DEVICE_NAME: { char deviceName[] = "CPU"; int nameLen = strlen(deviceName)+1; assert(param_value_size>strlen(deviceName)); if (nameLen < param_value_size) { sprintf((char*)param_value,"CPU"); } else { printf("error: param_value_size should be at least %d, but it is %d\n",nameLen,param_value_size); } break; } case CL_DEVICE_TYPE: { if (param_value_size>=sizeof(cl_device_type)) { cl_device_type* deviceType = (cl_device_type*)param_value; *deviceType = CL_DEVICE_TYPE_CPU; } else { printf("error: param_value_size should be at least %d\n",sizeof(cl_device_type)); } break; } case CL_DEVICE_MAX_COMPUTE_UNITS: { if (param_value_size>=sizeof(cl_uint)) { cl_uint* numUnits = (cl_uint*)param_value; *numUnits= 4; } else { printf("error: param_value_size should be at least %d\n",sizeof(cl_uint)); } break; } case CL_DEVICE_MAX_WORK_ITEM_SIZES: { size_t workitem_size[3]; if (param_value_size>=sizeof(workitem_size)) { size_t* workItemSize = (size_t*)param_value; workItemSize[0] = 64; workItemSize[1] = 24; workItemSize[2] = 16; } else { printf("error: param_value_size should be at least %d\n",sizeof(cl_uint)); } break; } default: { printf("error: unsupported param_name:%d\n",param_name); } } return 0; } CL_API_ENTRY cl_int CL_API_CALL clReleaseMemObject(cl_mem /* memobj */) CL_API_SUFFIX__VERSION_1_0 { return 0; } CL_API_ENTRY cl_int CL_API_CALL clReleaseCommandQueue(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0 { return 0; } CL_API_ENTRY cl_int CL_API_CALL clReleaseProgram(cl_program /* program */) CL_API_SUFFIX__VERSION_1_0 { return 0; } CL_API_ENTRY cl_int CL_API_CALL clReleaseKernel(cl_kernel /* kernel */) CL_API_SUFFIX__VERSION_1_0 { return 0; } // Enqueued Commands APIs CL_API_ENTRY cl_int CL_API_CALL clEnqueueReadBuffer(cl_command_queue command_queue , cl_mem buffer , cl_bool /* blocking_read */, size_t /* offset */, size_t cb , void * ptr , cl_uint /* num_events_in_wait_list */, const cl_event * /* event_wait_list */, cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0 { MiniCLTaskScheduler* scheduler = (MiniCLTaskScheduler*) command_queue; ///wait for all work items to be completed scheduler->flush(); memcpy(ptr,buffer,cb); return 0; } CL_API_ENTRY cl_int CL_API_CALL clEnqueueNDRangeKernel(cl_command_queue /* command_queue */, cl_kernel clKernel , cl_uint work_dim , const size_t * /* global_work_offset */, const size_t * global_work_size , const size_t * /* local_work_size */, cl_uint /* num_events_in_wait_list */, const cl_event * /* event_wait_list */, cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0 { MiniCLKernel* kernel = (MiniCLKernel*) clKernel; for (int ii=0;ii<work_dim;ii++) { int maxTask = kernel->m_scheduler->getMaxNumOutstandingTasks(); int numWorkItems = global_work_size[ii]; //at minimum 64 work items per task int numWorkItemsPerTask = btMax(64,numWorkItems / maxTask); for (int t=0;t<numWorkItems;) { //Performance Hint: tweak this number during benchmarking int endIndex = (t+numWorkItemsPerTask) < numWorkItems ? t+numWorkItemsPerTask : numWorkItems; kernel->m_scheduler->issueTask(t,endIndex,kernel->m_kernelProgramCommandId,(char*)&kernel->m_argData[0][0],kernel->m_argSizes); t = endIndex; } } /* void* bla = 0; scheduler->issueTask(bla,2,3); scheduler->flush(); */ return 0; } CL_API_ENTRY cl_int CL_API_CALL clSetKernelArg(cl_kernel clKernel , cl_uint arg_index , size_t arg_size , const void * arg_value ) CL_API_SUFFIX__VERSION_1_0 { MiniCLKernel* kernel = (MiniCLKernel* ) clKernel; assert(arg_size < MINICL_MAX_ARGLENGTH); if (arg_index>MINI_CL_MAX_ARG) { printf("error: clSetKernelArg arg_index (%d) exceeds %d\n",arg_index,MINI_CL_MAX_ARG); } else { if (arg_size>=MINICL_MAX_ARGLENGTH) { printf("error: clSetKernelArg argdata too large: %d (maximum is %d)\n",arg_size,MINICL_MAX_ARGLENGTH); } else { memcpy( kernel->m_argData[arg_index],arg_value,arg_size); kernel->m_argSizes[arg_index] = arg_size; } } return 0; } // Kernel Object APIs CL_API_ENTRY cl_kernel CL_API_CALL clCreateKernel(cl_program program , const char * kernel_name , cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0 { MiniCLTaskScheduler* scheduler = (MiniCLTaskScheduler*) program; MiniCLKernel* kernel = new MiniCLKernel(); kernel->m_kernelProgramCommandId = scheduler->findProgramCommandIdByName(kernel_name); kernel->m_scheduler = scheduler; return (cl_kernel)kernel; } CL_API_ENTRY cl_int CL_API_CALL clBuildProgram(cl_program /* program */, cl_uint /* num_devices */, const cl_device_id * /* device_list */, const char * /* options */, void (*pfn_notify)(cl_program /* program */, void * /* user_data */), void * /* user_data */) CL_API_SUFFIX__VERSION_1_0 { return 0; } CL_API_ENTRY cl_program CL_API_CALL clCreateProgramWithBinary(cl_context context , cl_uint /* num_devices */, const cl_device_id * /* device_list */, const size_t * /* lengths */, const unsigned char ** /* binaries */, cl_int * /* binary_status */, cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0 { return (cl_program)context; } // Memory Object APIs CL_API_ENTRY cl_mem CL_API_CALL clCreateBuffer(cl_context /* context */, cl_mem_flags flags , size_t size, void * host_ptr , cl_int * errcode_ret ) CL_API_SUFFIX__VERSION_1_0 { cl_mem buf = (cl_mem)malloc(size); if ((flags&CL_MEM_COPY_HOST_PTR) && host_ptr) { memcpy(buf,host_ptr,size); } return buf; } // Command Queue APIs CL_API_ENTRY cl_command_queue CL_API_CALL clCreateCommandQueue(cl_context context , cl_device_id /* device */, cl_command_queue_properties /* properties */, cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0 { return (cl_command_queue) context; } extern CL_API_ENTRY cl_int CL_API_CALL clGetContextInfo(cl_context /* context */, cl_context_info param_name , size_t param_value_size , void * param_value, size_t * param_value_size_ret ) CL_API_SUFFIX__VERSION_1_0 { switch (param_name) { case CL_CONTEXT_DEVICES: { if (!param_value_size) { *param_value_size_ret = 13; } else { sprintf((char*)param_value,"MiniCL_Test."); } break; }; default: { printf("unsupported\n"); } } return 0; } CL_API_ENTRY cl_context CL_API_CALL clCreateContextFromType(cl_context_properties * /* properties */, cl_device_type /* device_type */, void (*pfn_notify)(const char *, const void *, size_t, void *) /* pfn_notify */, void * /* user_data */, cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0 { int maxNumOutstandingTasks = 4; #ifdef WIN32 Win32ThreadSupport* threadSupport = new Win32ThreadSupport(Win32ThreadSupport::Win32ThreadConstructionInfo( "MiniCL", processMiniCLTask, //processCollisionTask, createMiniCLLocalStoreMemory,//createCollisionLocalStoreMemory, maxNumOutstandingTasks)); #else SequentialThreadSupport::SequentialThreadConstructionInfo stc("MiniCL",processMiniCLTask,createMiniCLLocalStoreMemory); SequentialThreadSupport* threadSupport = new SequentialThreadSupport(stc); #endif MiniCLTaskScheduler* scheduler = new MiniCLTaskScheduler(threadSupport,maxNumOutstandingTasks); return (cl_context)scheduler; } CL_API_ENTRY cl_int CL_API_CALL clReleaseContext(cl_context context ) CL_API_SUFFIX__VERSION_1_0 { MiniCLTaskScheduler* scheduler = (MiniCLTaskScheduler*) context; btThreadSupportInterface* threadSupport = scheduler->getThreadSupportInterface(); delete scheduler; delete threadSupport; return 0; }
29.731988
130
0.635941
CarysT
9f473dbad1378b3eb01efb03fde9cb41369df537
588
cpp
C++
Matrici/linia_k.cpp
rusucosmin/Cplusplus
0e95cd01d20b22404aa4166c71d5a9e834a5a21b
[ "MIT" ]
11
2015-08-29T13:41:22.000Z
2020-01-08T20:34:06.000Z
Matrici/linia_k.cpp
rusucosmin/Cplusplus
0e95cd01d20b22404aa4166c71d5a9e834a5a21b
[ "MIT" ]
null
null
null
Matrici/linia_k.cpp
rusucosmin/Cplusplus
0e95cd01d20b22404aa4166c71d5a9e834a5a21b
[ "MIT" ]
5
2016-01-20T18:17:01.000Z
2019-10-30T11:57:15.000Z
#include <iostream> using namespace std; int main() { int a[100][100], i, j, n, m, k ; cout<<"Numarul de linii "; cin>>n; cout<<"Numarul de coloane "; cin>>m; for(i=1; i<=n; i++) { for(j=1; j<=m; j++) { cout<<"a["<<i<<"]["<<j<<"] = "; cin>>a[i][j]; }} cout<<"Afiseaza elemente de pe linia # "; cin>>k; cout<<"Pe linia # "<<k<<" se gasesc elemetele: " ; for(j=1; j<=m ; j++) cout<<a[k][j]<<" "; cout<<endl; system ("pause") ; return 0; }
24.5
67
0.394558
rusucosmin
9f490601e6b3c5b143013344f59aaa4079a66c3b
13,215
cpp
C++
src/config.cpp
hrandib/pc_fancontrol
74fd5e38a7910144bfcf5fe690ad4b22c7356c91
[ "MIT" ]
null
null
null
src/config.cpp
hrandib/pc_fancontrol
74fd5e38a7910144bfcf5fe690ad4b22c7356c91
[ "MIT" ]
4
2020-12-22T17:48:49.000Z
2021-02-20T21:48:24.000Z
src/config.cpp
hrandib/pc_fancontrol
74fd5e38a7910144bfcf5fe690ad4b22c7356c91
[ "MIT" ]
null
null
null
/* * Copyright (c) 2020 Dmytro Shestakov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include "config.h" #include "shell/sensor_impl.h" #include <iostream> using std::cout, std::endl; using PollConf = ConfigEntry::PollConf; using SetMode = ConfigEntry::SetMode; using ModeConf = ConfigEntry::ModeConf; using StringVector = std::vector<std::string>; static inline std::string to_string(StringVector& vec) { std::string result = "\'"; for(auto& el : vec) { result += el; result += " "; } *result.rbegin() = '\''; return result; } struct SensorNode { std::string name; std::string type; std::string bind; }; static void operator>>(const YAML::Node& node, SensorNode& sensNode) { for(auto it = node.begin(); it != node.end(); ++it) { sensNode.name = it->first.as<std::string>(); for(auto it2 = it->second.begin(); it2 != it->second.end(); ++it2) { auto key = it2->first.as<std::string>(); if(key == "type") { sensNode.type = it2->second.as<std::string>(); } else if(key == "bind") { sensNode.bind = it2->second.as<std::string>(); } } } } struct PwmNode { std::string name; std::string type; std::string bind; int minpwm, maxpwm; Pwm::Mode mode{Pwm::Mode::NoChange}; int fanStopHyst; }; static void operator>>(const YAML::Node& node, PwmNode& pwmNode) { pwmNode.fanStopHyst = FANSTOP_DISABLE; for(auto it = node.begin(); it != node.end(); ++it) { pwmNode.name = it->first.as<std::string>(); for(auto it2 = it->second.begin(); it2 != it->second.end(); ++it2) { auto key = it2->first.as<std::string>(); if(key == "type") { pwmNode.type = it2->second.as<std::string>(); } else if(key == "bind") { pwmNode.bind = it2->second.as<std::string>(); } else if(key == "mode") { auto rawMode = it2->second.as<std::string>(); if(rawMode == "dc") { pwmNode.mode = Pwm::Mode::Dc; } else if(rawMode == "pwm") { pwmNode.mode = Pwm::Mode::Pwm; } else { cout << "Incompatible PWM mode, no change: " + rawMode << "\n"; } } else if(key == "minpwm") { pwmNode.minpwm = it2->second.as<int>(); } else if(key == "maxpwm") { pwmNode.maxpwm = it2->second.as<int>(); } else if(key == "fan_stop") { pwmNode.fanStopHyst = it2->second.as<bool>() ? FANSTOP_DEFAULT_HYSTERESIS : FANSTOP_DISABLE; } else if(key == "fan_stop_hysteresis") { pwmNode.fanStopHyst = static_cast<int>(it2->second.as<uint32_t>()); } else { cout << "unknown attribute:" << key << "\n"; } } } } struct ControllerNode { std::string name; StringVector sensor; StringVector pwm; SetMode mode; PollConf pollConfig; ModeConf modeConfig; }; static inline int parseTime(const YAML::Node& poll) { auto stringValue = poll.as<std::string>(); int result; try { result = std::stoi(stringValue); } catch(std::exception&) { throw std::invalid_argument("Error parsing poll time: " + stringValue); } if(stringValue.find("ms") == std::string::npos) { // used field units - secs, convert to ms result *= 1000; } return result; } static inline PollConf parsePollConfig(const YAML::Node& poll) { PollConf result; result.samplesCount = 1; if(poll.IsScalar()) { result.mode = PollConf::PollSimple; result.timeMsecs = parseTime(poll); } else { result.samplesCount = 1; for(auto it = poll.begin(); it != poll.end(); ++it) { auto key = it->first.as<std::string>(); if(key == "time") { result.timeMsecs = parseTime(it->second); } else if(key == "ma_samples") { result.samplesCount = it->second.as<int>(); result.mode = PollConf::PollMovingAverage; } } } return result; } static inline StringVector parseSensorsPwms(const YAML::Node& node) { StringVector result; if(node.IsMap()) { for(auto it = node.begin(); it != node.end(); ++it) { result.emplace_back(it->first.as<std::string>()); } } else { result.emplace_back(node.as<std::string>()); } return result; } static inline ModeConf parseModeConfig(SetMode mode, const YAML::Node& node) { ModeConf result; switch(mode) { case ConfigEntry::SETMODE_TWO_POINT: { ConfigEntry::TwoPointConfMode confMode; for(auto it = node.begin(); it != node.end(); ++it) { auto key = it->first.as<std::string>(); if(key == "a") { confMode.temp_a = it->second.as<int>(); } else if(key == "b") { confMode.temp_b = it->second.as<int>(); } else { throw std::invalid_argument("unrecognized attribute: " + key); } } result = confMode; } break; case ConfigEntry::SETMODE_MULTI_POINT: { ConfigEntry::MultiPointConfMode confMode; for(auto it = node.begin(); it != node.end(); ++it) { auto key = it->first.begin()->first.as<int>(); auto val = it->first.begin()->second.as<int>(); confMode.pointVec.emplace_back(key, val); } result = confMode; } break; case ConfigEntry::SETMODE_PI: { ConfigEntry::PiConfMode confMode; for(auto it = node.begin(); it != node.end(); ++it) { auto key = it->first.as<std::string>(); if(key == "t") { confMode.temp = it->second.as<double>(); } else if(key == "kp") { confMode.kp = it->second.as<double>(); } else if(key == "ki") { confMode.ki = it->second.as<double>(); } else if(key == "max_i") { int max_i = it->second.as<int>(); if(max_i > 0 && max_i <= 100) { confMode.max_i = max_i; } } else { throw std::invalid_argument("unrecognized attribute: " + key); } } result = confMode; } break; } return result; } static void operator>>(const YAML::Node& node, ControllerNode& controllerNode) { controllerNode.pollConfig.mode = PollConf::PollSimple; controllerNode.pollConfig.samplesCount = 1; controllerNode.pollConfig.timeMsecs = 1000; for(auto it = node.begin(); it != node.end(); ++it) { controllerNode.name = it->first.as<std::string>(); for(auto it2 = it->second.begin(); it2 != it->second.end(); ++it2) { auto key = it2->first.as<std::string>(); if(key == "sensor") { controllerNode.sensor = parseSensorsPwms(it2->second); } else if(key == "pwm") { controllerNode.pwm = parseSensorsPwms(it2->second); } else if(key == "mode") { auto rawMode = it2->second.as<std::string>(); if(rawMode == "two_point") { controllerNode.mode = ConfigEntry::SETMODE_TWO_POINT; } else if(rawMode == "multi_point") { controllerNode.mode = ConfigEntry::SETMODE_MULTI_POINT; } else if(rawMode == "pi") { controllerNode.mode = ConfigEntry::SETMODE_PI; } else { cout << "Incompatible controller mode, entry will be skipped: " + rawMode << "\n"; break; } } else if(key == "poll") { controllerNode.pollConfig = parsePollConfig(it2->second); } else if(key == "set") { controllerNode.modeConfig = parseModeConfig(controllerNode.mode, it2->second); } else { cout << "unknown attribute:" << key << "\n"; } } } } Config::Config(const string& configPath) { rootNode_ = YAML::LoadFile(configPath); if(!rootNode_) { throw std::invalid_argument("Config loading failed: " + configPath); } createHwmons(); createSensors(); createPwms(); createControllers(); } void Config::run() { for(auto& c : controllers_) { c->run(); } } void Config::createHwmons() { auto hwmonList = getNode("hwmon").as<std::vector<string>>(); for(auto& hwmon : hwmonList) { std::cout << hwmon << ": "; hwmonMap_.emplace(hwmon, hwmon); } std::cout << "\n"; } void Config::createSensors() { auto sensors = getNode("sensors"); for(const auto& sensor : sensors) { SensorNode node; sensor >> node; cout << node.name << " " << node.type << " " << node.bind << "\n"; if(node.type == "shell_cmd") { sensorMap_[node.name] = make_sensor<ShellSensor>(node.bind); } else if(hwmonMap_.contains(node.type)) { sensorMap_[node.name] = hwmonMap_[node.type].getSensor(node.bind); sensorMap_[node.name]->open(); } else { throw std::invalid_argument("Wrong sensor type: " + node.type); } } cout << endl; } void Config::createPwms() { auto pwms = getNode("pwms"); for(const auto& pwm : pwms) { PwmNode node; pwm >> node; cout << node.name << " " << node.type << " " << node.bind << " " << static_cast<uint32_t>(node.mode) << " " << node.minpwm << " " << node.maxpwm << "\n"; if(hwmonMap_.contains(node.type)) { auto pwmObj = hwmonMap_[node.type].getPwm(node.bind); pwmObj->setMode(node.mode); pwmObj->setMin(node.minpwm); pwmObj->setMax(node.maxpwm); pwmObj->setFanStopHysteresis(node.fanStopHyst); pwmMap_[node.name] = pwmObj; pwmObj->open(); } else { throw std::invalid_argument("Wrong pwm type: " + node.type); } } cout << endl; } void Config::createControllers() { auto controllers = getNode("controllers"); controllers_.reserve(controllers.size()); for(const auto& controller : controllers) { ControllerNode node; controller >> node; ConfigEntry configEntry{}; configEntry.setModeConfig(node.modeConfig).setPollConfig(node.pollConfig); for(auto& pwm : node.pwm) { if(pwmMap_.contains(pwm)) { configEntry.addPwm(pwmMap_[pwm]); } else { throw std::invalid_argument("Selected PWM is not defined: " + pwm); } } for(auto& sensor : node.sensor) { if(sensorMap_.contains(sensor)) { configEntry.addSensor(sensorMap_[sensor]); } else { throw std::invalid_argument("Selected Sensor is not defined: " + sensor); } } controllers_.push_back(std::make_shared<Controller>(node.name, configEntry)); } } YAML::Node Config::getNode(const string& nodeName) const { Node result; try { result = rootNode_[nodeName]; if(!result.IsDefined()) { throw std::invalid_argument("Config node is not defined: " + nodeName); } } catch(const YAML::InvalidNode&) { throw std::invalid_argument("Config node not found: " + nodeName); } return result; }
32.389706
115
0.530685
hrandib
9f4cc1cd00d9043fcd67b630a410bfdc9ccb9a35
771
cpp
C++
206.reverse-linked-list.cpp
lurenhaothu/Leetcode
a4aac47ff822deb861d6f6d9122d964090847d96
[ "MIT" ]
null
null
null
206.reverse-linked-list.cpp
lurenhaothu/Leetcode
a4aac47ff822deb861d6f6d9122d964090847d96
[ "MIT" ]
null
null
null
206.reverse-linked-list.cpp
lurenhaothu/Leetcode
a4aac47ff822deb861d6f6d9122d964090847d96
[ "MIT" ]
null
null
null
/* * @lc app=leetcode id=206 lang=cpp * * [206] Reverse Linked List */ // @lc code=start /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: ListNode* reverseList(ListNode* head) { if(!head) return nullptr; else if(!head->next) return head; ListNode *p1 = nullptr, *p2 = head, *p3 = head->next; while(1){ p2->next = p1; p1 = p2; p2 = p3; if(p3) p3 = p3->next; else break; } return p1; } }; // @lc code=end
21.416667
62
0.50454
lurenhaothu
9f4dbb4dbc951452414d6b7c162d89560f673d8d
1,460
cpp
C++
C++/0786-K-th-Smallest-Prime-Fraction/soln-1.cpp
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
C++/0786-K-th-Smallest-Prime-Fraction/soln-1.cpp
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
C++/0786-K-th-Smallest-Prime-Fraction/soln-1.cpp
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution { public: vector<int> kthSmallestPrimeFraction(vector<int>& A, int K) { // binary search double lo = 0.0, hi = 1.0; sort(A.begin(), A.end()); int n = A.size(); int a = 0, b = 0; while (lo < hi) { double mid = (lo + hi) / 2.0; // want to count number of fractions while is less than or equal to mid int cnt = 0; a = 0, b = 0; for(int i = 0; i < n; ++i) { int nume = A[i]; int min_deno = ceil(nume / mid); int idx = lower_bound(A.begin(), A.end(), min_deno) - A.begin(); // cout << nume << " " << idx << endl; // if (idx < n) cout << nume << " " << A[idx] << endl; if (idx < n) { if(a == 0) { a = nume; b = A[idx]; } else { if (static_cast<double>(nume) / A[idx] > static_cast<double>(a) / b) { a = nume; b = A[idx]; } } } cnt += n - idx; } if (cnt < K) { lo = mid; } else if (cnt == K) { return {a, b}; } else { hi = mid; } } return {0, 0}; } };
33.181818
94
0.318493
wyaadarsh
9f4ee22bf3b076769425001d41005526fdc38834
1,512
cpp
C++
cpp/ast/LILVarName.cpp
veosotano/lil
da2d0774615827d521362ffb731e8abfa3887507
[ "MIT" ]
6
2021-01-02T16:36:28.000Z
2022-01-23T21:50:29.000Z
cpp/ast/LILVarName.cpp
veosotano/lil
27ef338e7e21403acf2b0202f7db8ef662425d44
[ "MIT" ]
null
null
null
cpp/ast/LILVarName.cpp
veosotano/lil
27ef338e7e21403acf2b0202f7db8ef662425d44
[ "MIT" ]
null
null
null
/******************************************************************** * * LIL Is a Language * * AUTHORS: Miro Keller * * COPYRIGHT: ©2020-today: All Rights Reserved * * LICENSE: see LICENSE file * * This file encapsulates the name of a property * ********************************************************************/ #include "LILVarName.h" #include "LILVarNode.h" using namespace LIL; LILVarName::LILVarName() : LILTypedNode(NodeTypeVarName) { } LILVarName::LILVarName(const LILVarName &other) : LILTypedNode(other) { this->_name = other._name; } std::shared_ptr<LILVarName> LILVarName::clone() const { return std::static_pointer_cast<LILVarName> (this->cloneImpl()); } std::shared_ptr<LILClonable> LILVarName::cloneImpl() const { std::shared_ptr<LILVarName> clone(new LILVarName(*this)); //clone LILTypedNode if (this->_type) { clone->setType(this->_type->clone()); } return clone; } LILVarName::~LILVarName() { } void LILVarName::receiveNodeData(const LIL::LILString &data) { this->setName(data); } bool LILVarName::equalTo(std::shared_ptr<LILNode> otherNode) { if ( ! LILNode::equalTo(otherNode)) return false; auto castedNode = std::static_pointer_cast<LILVarName>(otherNode); if ( this->_name != castedNode->_name) return false; return true; } void LILVarName::setName(LILString newName) { this->_name = newName; } const LILString LILVarName::getName() const { return this->_name; }
20.432432
70
0.615079
veosotano
9f4f361258bc74463142207f6a7c9e03a5290791
549
hpp
C++
telnetpp/include/telnetpp/detail/subnegotiation_router.hpp
CalielOfSeptem/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
1
2017-03-30T14:31:33.000Z
2017-03-30T14:31:33.000Z
telnetpp/include/telnetpp/detail/subnegotiation_router.hpp
HoraceWeebler/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
null
null
null
telnetpp/include/telnetpp/detail/subnegotiation_router.hpp
HoraceWeebler/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
null
null
null
#pragma once #include "telnetpp/detail/router.hpp" #include "telnetpp/subnegotiation.hpp" #include "telnetpp/element.hpp" #include <vector> namespace telnetpp { namespace detail { struct subnegotiation_router_key_from_message_policy { static telnetpp::u8 key_from_message(subnegotiation const &sub) { return sub.option(); } }; class subnegotiation_router : public router< u8, subnegotiation, std::vector<telnetpp::token>, detail::subnegotiation_router_key_from_message_policy > { }; }}
18.931034
67
0.708561
CalielOfSeptem
9f506f6cad187b349c6b766f8524df0dd96d2763
1,554
cc
C++
tests/test_transport.cc
phisixersai/ppapi
a4d4a5a249d3f369903be3e1fa1a1dfd16de82e0
[ "BSD-3-Clause" ]
1
2015-07-03T13:18:34.000Z
2015-07-03T13:18:34.000Z
tests/test_transport.cc
rise-worlds/ppapi
a4d4a5a249d3f369903be3e1fa1a1dfd16de82e0
[ "BSD-3-Clause" ]
null
null
null
tests/test_transport.cc
rise-worlds/ppapi
a4d4a5a249d3f369903be3e1fa1a1dfd16de82e0
[ "BSD-3-Clause" ]
1
2020-01-16T01:46:31.000Z
2020-01-16T01:46:31.000Z
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/tests/test_transport.h" #include <string.h> #include <string> #include "ppapi/c/dev/ppb_testing_dev.h" #include "ppapi/c/dev/ppb_transport_dev.h" #include "ppapi/c/pp_errors.h" #include "ppapi/cpp/completion_callback.h" #include "ppapi/cpp/instance.h" #include "ppapi/cpp/module.h" #include "ppapi/tests/testing_instance.h" REGISTER_TEST_CASE(Transport); bool TestTransport::Init() { transport_interface_ = reinterpret_cast<PPB_Transport_Dev const*>( pp::Module::Get()->GetBrowserInterface(PPB_TRANSPORT_DEV_INTERFACE)); testing_interface_ = reinterpret_cast<PPB_Testing_Dev const*>( pp::Module::Get()->GetBrowserInterface(PPB_TESTING_DEV_INTERFACE)); if (!testing_interface_) { // Give a more helpful error message for the testing interface being gone // since that needs special enabling in Chrome. instance_->AppendError("This test needs the testing interface, which is " "not currently available. In Chrome, use --enable-pepper-testing when " "launching."); } return transport_interface_ && testing_interface_; } void TestTransport::RunTest() { RUN_TEST(FirstTransport); // TODO(juberti): more Transport tests here... } void TestTransport::QuitMessageLoop() { testing_interface_->QuitMessageLoop(); } std::string TestTransport::TestFirstTransport() { // TODO(juberti): actual test return ""; }
30.470588
79
0.743243
phisixersai
9f5141850f36a231c98af5f6e7f119d467c66d9c
3,200
cpp
C++
skye/ut_mock_template_function.cpp
coryan/Skye
cf02c2a37a3aa73bd0474f1068737b764f0a0c56
[ "Apache-2.0" ]
1
2017-07-17T12:36:34.000Z
2017-07-17T12:36:34.000Z
skye/ut_mock_template_function.cpp
coryan/Skye
cf02c2a37a3aa73bd0474f1068737b764f0a0c56
[ "Apache-2.0" ]
2
2016-10-30T13:46:59.000Z
2017-06-15T12:18:21.000Z
skye/ut_mock_template_function.cpp
coryan/Skye
cf02c2a37a3aa73bd0474f1068737b764f0a0c56
[ "Apache-2.0" ]
null
null
null
#include <skye/mock_template_function.hpp> #include <boost/test/unit_test.hpp> #include <sstream> /** * Define helper types for the tests. */ namespace { /// A non-copyable class struct test_no_copy { test_no_copy() : value(42) {} explicit test_no_copy(int x) : value(x) {} test_no_copy(test_no_copy const &) = delete; test_no_copy & operator=(test_no_copy const &) = delete; int value; }; } // anonymous namespace using namespace skye; /** * @test Verify that template functions returning void can be mocked. */ BOOST_AUTO_TEST_CASE( mock_template_function_void ) { mock_template_function<void> function; BOOST_CHECK(not function.has_calls()); BOOST_CHECK_EQUAL(function.call_count(), 0); int a = 0; int b_value = 3; int const & b = b_value; std::string c("abc"); std::string d_value("dce"); std::string const & d = c; function(a, b); function(a, b, c); function(a, b, c, d); BOOST_REQUIRE_EQUAL(function.call_count(), 3); } /** * @test Verify that template functions returning a value can be mocked. */ BOOST_AUTO_TEST_CASE( mock_template_function_with_value ) { mock_template_function<std::string> function; BOOST_CHECK(not function.has_calls()); BOOST_CHECK_EQUAL(function.call_count(), 0); int a = 0; int b_value = 3; int const & b = b_value; std::string c("abc"); std::string d_value("dce"); std::string const & d = c; BOOST_CHECK_THROW(function(a, b), std::runtime_error); function.returns( std::string("42") ); function(a, b, c); function(a, b, c, d); BOOST_REQUIRE_EQUAL(function.call_count(), 3); } /** * @test Verify that template functions receiving non-copy * constructible objects can be mocked. */ BOOST_AUTO_TEST_CASE( mock_template_function_void_no_copy ) { mock_template_function<void> function; BOOST_CHECK(not function.has_calls()); BOOST_CHECK_EQUAL(function.call_count(), 0); int a = 0; test_no_copy b_value(42); test_no_copy const & b = b_value; function(a); function(a, b); BOOST_REQUIRE_EQUAL(function.call_count(), 2); } /** * @test Verify we can make simple assertions about template member * functions. */ BOOST_AUTO_TEST_CASE( mock_template_function_check_no_calls ) { mock_template_function<void> function; function.check_called().never(); function(42); function.check_called().once(); } /** * @test Verify that assertions of mock_template_function work as expected. */ BOOST_AUTO_TEST_CASE( mock_template_function_asserts ) { mock_template_function<int> function; function.returns( 7 ); function(42, std::string("foo")); function(42, std::string("foo")); function(42, std::string("foo")); function(42, std::string("foo"), 3, 1); function(std::string("foo"), std::string("bar")); function.check_called(); function.check_called().at_least( 2 ); function.check_called().at_least( 2 ).at_most( 30 ); function.check_called().between( 3, 30 ); function.check_called().exactly( 5 ); function.check_called().never().with( 7, std::string("bar")); function.check_called().at_least( 3 ).with( 42, std::string("foo")); function.check_called().once().with( std::string("foo"), std::string("bar")); }
23.529412
79
0.695313
coryan
9f52b781a7f5879c533c8a1408b524cf4890d8dc
2,026
cpp
C++
src/common/option.cpp
jdillenkofer/klong
b5aa9b5960f1d5398890f6fba0de6296ce405322
[ "MIT" ]
4
2018-10-11T19:59:07.000Z
2020-04-30T04:06:57.000Z
src/common/option.cpp
jdillenkofer/klong
b5aa9b5960f1d5398890f6fba0de6296ce405322
[ "MIT" ]
44
2018-10-09T16:21:14.000Z
2019-07-26T14:51:26.000Z
src/common/option.cpp
jdillenkofer/klong
b5aa9b5960f1d5398890f6fba0de6296ce405322
[ "MIT" ]
null
null
null
#include "common/option.h" namespace klong { Result<Option, std::string> parseOptions(int argc, char* argv[]) { Result<Option, std::string> optionResult; Option option; int c; while ((c = getopt(argc, argv, "hvcgdso:b:ip")) != -1) { switch (c) { case 'v': option.verbose = true; break; case 'c': option.disableLinking = true; break; case 'g': option.emitDebugInfo = true; break; case 'd': option.emitDwarf = false; break; case 's': option.emitAssemblyFile = true; option.disableLinking = true; break; case 'o': option.useCustomOutputPath = true; option.customOutputPath = std::string(optarg); break; case 'b': option.isCustomTarget = true; option.customTarget = std::string(optarg); break; case 'i': option.printIR = true; break; case 'p': option.emitDotFile = true; break; case 'h': default: option.help = true; break; } } // if there is no help option set, we need to check if (!option.help) { // if there is another argument if (optind > (argc - 1)) { optionResult.setError("No input file!"); return optionResult; } // add the argument as target file to the options option.filepath = std::string(argv[optind]); optind++; if (optind != argc) { optionResult.setError("Invalid argument after target file."); return optionResult; } } optionResult.setSuccess(std::move(option)); return optionResult; } }
31.169231
70
0.459033
jdillenkofer
9f53c90f4b696d3007baee608c7f42749eab17ea
4,444
cpp
C++
src/visionaray/gl/debug_callback.cpp
tjachmann/visionaray
5f181268c8da28c7d9b397300cc9759cec2bf7b3
[ "MIT" ]
416
2015-02-01T22:19:30.000Z
2022-03-29T10:48:00.000Z
src/visionaray/gl/debug_callback.cpp
tjachmann/visionaray
5f181268c8da28c7d9b397300cc9759cec2bf7b3
[ "MIT" ]
24
2015-06-26T17:48:08.000Z
2021-11-06T00:20:58.000Z
src/visionaray/gl/debug_callback.cpp
tjachmann/visionaray
5f181268c8da28c7d9b397300cc9759cec2bf7b3
[ "MIT" ]
39
2015-02-02T11:47:21.000Z
2022-03-29T10:44:43.000Z
// This file is distributed under the MIT license. // See the LICENSE file for details. #include <iostream> #include <ostream> #include <sstream> #include <stdexcept> #include <string> #include <visionaray/detail/platform.h> #if defined(VSNRAY_OS_DARWIN) || defined(VSNRAY_OS_LINUX) #include <execinfo.h> #include <signal.h> #endif #ifdef VSNRAY_OS_WIN32 #include <windows.h> #endif #include <visionaray/config.h> #if VSNRAY_HAVE_GLEW #include <GL/glew.h> #endif #include <visionaray/gl/debug_callback.h> namespace visionaray { namespace gl { //------------------------------------------------------------------------------------------------- // Helpers // static std::string backtrace() { #if defined(VSNRAY_OS_DARWIN) || defined(VSNRAY_OS_LINUX) static const int max_frames = 16; void* buffer[max_frames] = { 0 }; int cnt = ::backtrace(buffer, max_frames); char** symbols = backtrace_symbols(buffer, cnt); if (symbols) { std::stringstream str; for (int n = 1; n < cnt; ++n) // skip the 1st entry (address of this function) { str << symbols[n] << '\n'; } free(symbols); return str.str(); } return ""; #else return "not implemented"; #endif } #if defined(GL_KHR_debug) static char const* get_debug_type_string(GLenum type) { switch (type) { case GL_DEBUG_TYPE_ERROR: return "error"; case GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR: return "deprecated behavior detected"; case GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR: return "undefined behavior detected"; case GL_DEBUG_TYPE_PORTABILITY: return "portablility warning"; case GL_DEBUG_TYPE_PERFORMANCE: return "performance warning"; case GL_DEBUG_TYPE_OTHER: return "other"; case GL_DEBUG_TYPE_MARKER: return "marker"; } return "{unknown type}"; } //------------------------------------------------------------------------------------------------- // The actual callback function // static void debug_callback_func( GLenum /*source*/, GLenum type, GLuint /*id*/, GLenum severity, GLsizei /*length*/, const GLchar* message, GLvoid* user_param ) { debug_params params = *static_cast<debug_params*>(user_param); if ( // severity ( severity == GL_DEBUG_SEVERITY_NOTIFICATION && params.level <= debug_level::Notification ) || ( severity == GL_DEBUG_SEVERITY_LOW && params.level <= debug_level::Low ) || ( severity == GL_DEBUG_SEVERITY_MEDIUM && params.level <= debug_level::Medium ) || ( severity == GL_DEBUG_SEVERITY_HIGH && params.level <= debug_level::High ) || // whitelisted message types, override level param ( type == GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR && (params.types & debug_type::DeprecatedBehavior) ) || ( type == GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR && (params.types & debug_type::UndefinedBehavior) ) || ( type == GL_DEBUG_TYPE_PORTABILITY && (params.types & debug_type::Portability) ) || ( type == GL_DEBUG_TYPE_PERFORMANCE && (params.types & debug_type::Performance) ) || ( type == GL_DEBUG_TYPE_OTHER && (params.types & debug_type::Other) ) ) { std::cerr << "GL " << get_debug_type_string(type) << " " << message << '\n'; } if (type == GL_DEBUG_TYPE_ERROR) { #ifdef _WIN32 if (IsDebuggerPresent()) { DebugBreak(); } #else std::cerr << gl::backtrace() << '\n'; raise(SIGINT); #endif } } #endif // GL_KHR_debug //------------------------------------------------------------------------------------------------- // Implementation // bool debug_callback::activate(debug_params params) { params_ = params; #if defined(GL_KHR_debug) if (GLEW_KHR_debug) { glEnable(GL_DEBUG_OUTPUT); glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS); glDebugMessageCallback((GLDEBUGPROC)debug_callback_func, (GLvoid*)&params_); return true; } #elif defined(GL_ARB_debug_output) if (GLEW_ARB_debug_output) { return false; // TODO } #endif return false; } } // gl } // visionaray
25.837209
111
0.564131
tjachmann
9f53d7d339f4508c9640959cb2f8cbcdc2df1d51
2,066
cpp
C++
libraries/chain/webassembly/mos-vm-oc.cpp
moschain/moschain-master
418531f281a8a1fb58621bb7f38ad3202edce46f
[ "MIT" ]
null
null
null
libraries/chain/webassembly/mos-vm-oc.cpp
moschain/moschain-master
418531f281a8a1fb58621bb7f38ad3202edce46f
[ "MIT" ]
null
null
null
libraries/chain/webassembly/mos-vm-oc.cpp
moschain/moschain-master
418531f281a8a1fb58621bb7f38ad3202edce46f
[ "MIT" ]
null
null
null
#include <mos/chain/webassembly/mos-vm-oc.hpp> #include <mos/chain/wasm_mos_constraints.hpp> #include <mos/chain/wasm_mos_injection.hpp> #include <mos/chain/apply_context.hpp> #include <mos/chain/exceptions.hpp> #include <vector> #include <iterator> namespace mos { namespace chain { namespace webassembly { namespace mosvmoc { class mosvmoc_instantiated_module : public wasm_instantiated_module_interface { public: mosvmoc_instantiated_module(const digest_type& code_hash, const uint8_t& vm_version, mosvmoc_runtime& wr) : _code_hash(code_hash), _vm_version(vm_version), _mosvmoc_runtime(wr) { } ~mosvmoc_instantiated_module() { _mosvmoc_runtime.cc.free_code(_code_hash, _vm_version); } void apply(apply_context& context) override { const code_descriptor* const cd = _mosvmoc_runtime.cc.get_descriptor_for_code_sync(_code_hash, _vm_version); MOS_ASSERT(cd, wasm_execution_error, "MOS VM OC instantiation failed"); _mosvmoc_runtime.exec.execute(*cd, _mosvmoc_runtime.mem, context); } const digest_type _code_hash; const uint8_t _vm_version; mosvmoc_runtime& _mosvmoc_runtime; }; mosvmoc_runtime::mosvmoc_runtime(const boost::filesystem::path data_dir, const mosvmoc::config& mosvmoc_config, const chainbase::database& db) : cc(data_dir, mosvmoc_config, db), exec(cc) { } mosvmoc_runtime::~mosvmoc_runtime() { } std::unique_ptr<wasm_instantiated_module_interface> mosvmoc_runtime::instantiate_module(const char* code_bytes, size_t code_size, std::vector<uint8_t> initial_memory, const digest_type& code_hash, const uint8_t& vm_type, const uint8_t& vm_version) { return std::make_unique<mosvmoc_instantiated_module>(code_hash, vm_type, *this); } //never called. MOS VM OC overrides eosio_exit to its own implementation void mosvmoc_runtime::immediately_exit_currently_running_module() {} }}}}
37.563636
167
0.707164
moschain
9f5627660d1ac41bcdd6b017984e6a090b0a579c
1,178
hpp
C++
include/argot/conc/expand/expansion_operator.hpp
mattcalabrese/argot
97349baaf27659c9dc4d67cf8963b2e871eaedae
[ "BSL-1.0" ]
49
2018-05-09T23:17:45.000Z
2021-07-21T10:05:19.000Z
include/argot/conc/expand/expansion_operator.hpp
mattcalabrese/argot
97349baaf27659c9dc4d67cf8963b2e871eaedae
[ "BSL-1.0" ]
null
null
null
include/argot/conc/expand/expansion_operator.hpp
mattcalabrese/argot
97349baaf27659c9dc4d67cf8963b2e871eaedae
[ "BSL-1.0" ]
2
2019-08-04T03:51:36.000Z
2020-12-28T06:53:29.000Z
/*============================================================================== Copyright (c) 2018 Matt Calabrese Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #ifndef ARGOT_CONC_EXPAND_EXPANSION_OPERATOR_HPP_ #define ARGOT_CONC_EXPAND_EXPANSION_OPERATOR_HPP_ #include <argot/concepts/concurrent_expandable.hpp> #include <argot/detail/forward.hpp> #include <argot/gen/access_raw_concept_map.hpp> #include <argot/gen/requires.hpp> namespace argot { namespace concurrent_expansion_operator { template< class Exp , ARGOT_REQUIRES( ConcurrentExpandable< Exp&& > )() > [[nodiscard]] constexpr auto operator ~( Exp&& exp ) { return access_raw_concept_map< ConcurrentExpandable< Exp&& > > ::expand( ARGOT_FORWARD( Exp )( exp ) ); } } // namespace argot(::concurrent_expansion_operator) namespace operators { using concurrent_expansion_operator::operator ~; } // namespace argot(::operators) } // namespace argot #endif // ARGOT_CONC_EXPAND_EXPANSION_OPERATOR_HPP_
30.205128
80
0.662139
mattcalabrese
9f56818db0dda76c839b0c53a9b7698665ac279c
82
cpp
C++
_WinMain/GameObject.cpp
SinJunghyeon/Battle-City
6e1427f6ea939e48ef3da65789d40372c005a8fb
[ "MIT" ]
null
null
null
_WinMain/GameObject.cpp
SinJunghyeon/Battle-City
6e1427f6ea939e48ef3da65789d40372c005a8fb
[ "MIT" ]
null
null
null
_WinMain/GameObject.cpp
SinJunghyeon/Battle-City
6e1427f6ea939e48ef3da65789d40372c005a8fb
[ "MIT" ]
null
null
null
#include "GameObject.h" void GameObject::Move() { } GameObject::GameObject() { }
9.111111
24
0.682927
SinJunghyeon
9f56f0487f8ab67087ec4f1436670af39c32c34c
5,466
cpp
C++
RVAF-GUI/teechart/gaugepointerrange.cpp
YangQun1/RVAF-GUI
f187e2325fc8fdbac84a63515b7dd67c09e2fc72
[ "BSD-2-Clause" ]
4
2018-03-31T10:45:19.000Z
2021-10-09T02:57:13.000Z
RVAF-GUI/teechart/gaugepointerrange.cpp
P-Chao/RVAF-GUI
3bbeed7d2ffa400f754f095e7c08400f701813d4
[ "BSD-2-Clause" ]
1
2018-04-22T05:12:36.000Z
2018-04-22T05:12:36.000Z
RVAF-GUI/teechart/gaugepointerrange.cpp
YangQun1/RVAF-GUI
f187e2325fc8fdbac84a63515b7dd67c09e2fc72
[ "BSD-2-Clause" ]
5
2018-01-13T15:57:14.000Z
2019-11-12T03:23:18.000Z
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ // NOTE: Do not modify the contents of this file. If this class is regenerated by // Microsoft Visual C++, your modifications will be overwritten. #include "stdafx.h" #include "gaugepointerrange.h" // Dispatch interfaces referenced by this interface #include "brush.h" #include "pen.h" #include "gradient.h" #include "teeshadow.h" ///////////////////////////////////////////////////////////////////////////// // CGaugePointerRange properties ///////////////////////////////////////////////////////////////////////////// // CGaugePointerRange operations CBrush1 CGaugePointerRange::GetBrush() { LPDISPATCH pDispatch; InvokeHelper(0x60020000, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL); return CBrush1(pDispatch); } BOOL CGaugePointerRange::GetDraw3D() { BOOL result; InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); return result; } void CGaugePointerRange::SetDraw3D(BOOL bNewValue) { static BYTE parms[] = VTS_BOOL; InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, bNewValue); } long CGaugePointerRange::GetHorizontalSize() { long result; InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); return result; } void CGaugePointerRange::SetHorizontalSize(long nNewValue) { static BYTE parms[] = VTS_I4; InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, nNewValue); } long CGaugePointerRange::GetVerticalSize() { long result; InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); return result; } void CGaugePointerRange::SetVerticalSize(long nNewValue) { static BYTE parms[] = VTS_I4; InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, nNewValue); } BOOL CGaugePointerRange::GetInflateMargins() { BOOL result; InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); return result; } void CGaugePointerRange::SetInflateMargins(BOOL bNewValue) { static BYTE parms[] = VTS_BOOL; InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, bNewValue); } CPen1 CGaugePointerRange::GetPen() { LPDISPATCH pDispatch; InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL); return CPen1(pDispatch); } long CGaugePointerRange::GetStyle() { long result; InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); return result; } void CGaugePointerRange::SetStyle(long nNewValue) { static BYTE parms[] = VTS_I4; InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, nNewValue); } BOOL CGaugePointerRange::GetVisible() { BOOL result; InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); return result; } void CGaugePointerRange::SetVisible(BOOL bNewValue) { static BYTE parms[] = VTS_BOOL; InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, bNewValue); } BOOL CGaugePointerRange::GetDark3D() { BOOL result; InvokeHelper(0x49, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); return result; } void CGaugePointerRange::SetDark3D(BOOL bNewValue) { static BYTE parms[] = VTS_BOOL; InvokeHelper(0x49, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, bNewValue); } void CGaugePointerRange::DrawPointer(long DC, BOOL Is3D, long px, long py, long tmpHoriz, long tmpVert, unsigned long AColor, long AStyle) { static BYTE parms[] = VTS_I4 VTS_BOOL VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4; InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, parms, DC, Is3D, px, py, tmpHoriz, tmpVert, AColor, AStyle); } CGradient CGaugePointerRange::GetGradient() { LPDISPATCH pDispatch; InvokeHelper(0x835, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL); return CGradient(pDispatch); } long CGaugePointerRange::GetTransparency() { long result; InvokeHelper(0x231e, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); return result; } void CGaugePointerRange::SetTransparency(long nNewValue) { static BYTE parms[] = VTS_I4; InvokeHelper(0x231e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, nNewValue); } CTeeShadow CGaugePointerRange::GetShadow() { LPDISPATCH pDispatch; InvokeHelper(0x270f, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL); return CTeeShadow(pDispatch); } long CGaugePointerRange::GetGaugeStyle() { long result; InvokeHelper(0x12d, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); return result; } void CGaugePointerRange::SetGaugeStyle(long nNewValue) { static BYTE parms[] = VTS_I4; InvokeHelper(0x12d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, nNewValue); } double CGaugePointerRange::GetEndValue() { double result; InvokeHelper(0xc9, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL); return result; } void CGaugePointerRange::SetEndValue(double newValue) { static BYTE parms[] = VTS_R8; InvokeHelper(0xc9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); } double CGaugePointerRange::GetStartValue() { double result; InvokeHelper(0xca, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL); return result; } void CGaugePointerRange::SetStartValue(double newValue) { static BYTE parms[] = VTS_R8; InvokeHelper(0xca, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); }
24.511211
139
0.709294
YangQun1
9f5f1cb969f3b4ad35874559a61e2fa45120f3d5
935
cpp
C++
tu/game_1.cpp
eoserv/mainclone-eoserv
e18e87f169140b6c0da80b9d866f672e8f6dced5
[ "Zlib" ]
2
2020-01-14T10:44:21.000Z
2020-01-15T08:01:55.000Z
tu/game_1.cpp
eoserv/mainclone-eoserv
e18e87f169140b6c0da80b9d866f672e8f6dced5
[ "Zlib" ]
null
null
null
tu/game_1.cpp
eoserv/mainclone-eoserv
e18e87f169140b6c0da80b9d866f672e8f6dced5
[ "Zlib" ]
null
null
null
/* $Id$ * EOSERV is released under the zlib license. * See LICENSE.txt for more info. */ #include "../src/character.cpp" #include "../src/command_source.cpp" #include "../src/map.cpp" #include "../src/npc.cpp" #include "../src/npc_ai.cpp" #include "../src/npc_data.cpp" #include "../src/party.cpp" #include "../src/player.cpp" #include "../src/world.cpp" #include "../src/npc_ai/npc_ai_magic.cpp" #include "../src/npc_ai/npc_ai_ranged.cpp" #include "../src/npc_ai/npc_ai_hw2016_apozen.cpp" #include "../src/npc_ai/npc_ai_hw2016_apozenskull.cpp" #include "../src/npc_ai/npc_ai_hw2016_banshee.cpp" #include "../src/npc_ai/npc_ai_hw2016_crane.cpp" #include "../src/npc_ai/npc_ai_hw2016_cursed_mask.cpp" #include "../src/npc_ai/npc_ai_hw2016_dark_magician.cpp" #include "../src/npc_ai/npc_ai_hw2016_inferno_grenade.cpp" #include "../src/npc_ai/npc_ai_hw2016_skeleton_warlock.cpp" #include "../src/npc_ai/npc_ai_hw2016_tentacle.cpp"
32.241379
59
0.736898
eoserv
9f5f4594f6690ae362084dd9f79407db90b8933b
3,441
cc
C++
src/connectivity/openthread/third_party/openthread/platform/alarm.cc
dahlia-os/fuchsia-pine64-pinephone
57aace6f0b0bd75306426c98ab9eb3ff4524a61d
[ "BSD-3-Clause" ]
10
2020-12-28T17:04:44.000Z
2022-03-12T03:20:43.000Z
src/connectivity/openthread/third_party/openthread/platform/alarm.cc
oshunter/fuchsia
2196fc8c176d01969466b97bba3f31ec55f7767b
[ "BSD-3-Clause" ]
1
2022-01-14T23:38:40.000Z
2022-01-14T23:38:40.000Z
src/connectivity/openthread/third_party/openthread/platform/alarm.cc
oshunter/fuchsia
2196fc8c176d01969466b97bba3f31ec55f7767b
[ "BSD-3-Clause" ]
4
2020-12-28T17:04:45.000Z
2022-03-12T03:20:44.000Z
/* * Copyright (c) 2016, The OpenThread Authors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the copyright holder nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include <assert.h> #include <lib/zx/time.h> #include <openthread/platform/alarm-micro.h> #include <openthread/platform/alarm-milli.h> #include <openthread/platform/diag.h> #include "fuchsia_platform_alarm.h" static FuchsiaPlatformAlarm alarm; void platformAlarmInit(uint32_t speed_up_factor) { alarm.SetSpeedUpFactor(speed_up_factor); } extern "C" uint32_t otPlatAlarmMilliGetNow(void) { return alarm.GetNowMilliSec(); } extern "C" void otPlatAlarmMilliStartAt(otInstance *instance, uint32_t t0, uint32_t dt) { OT_UNUSED_VARIABLE(instance); alarm.SetMilliSecAlarm(t0 + dt); } extern "C" void otPlatAlarmMilliStop(otInstance *instance) { OT_UNUSED_VARIABLE(instance); alarm.ClearMilliSecAlarm(); } #if OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE extern "C" uint32_t otPlatAlarmMicroGetNow(void) { return alarm.GetNowMicroSec(); } extern "C" void otPlatAlarmMicroStartAt(otInstance *instance, uint32_t t0, uint32_t dt) { OT_UNUSED_VARIABLE(instance); alarm.SetMicroSecAlarm(t0 + dt); } extern "C" void otPlatAlarmMicroStop(otInstance *instance) { OT_UNUSED_VARIABLE(instance); alarm.ClearMicroSecAlarm(); } #endif // OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE void platformAlarmUpdateTimeout(zx_time_t *timeout) { assert(timeout != NULL); *timeout = static_cast<zx_time_t>(alarm.GetRemainingTimeMicroSec()); } void platformAlarmProcess(otInstance *instance) { if (alarm.MilliSecAlarmFired()) { #if OPENTHREAD_CONFIG_DIAG_ENABLE if (otPlatDiagModeGet()) { otPlatDiagAlarmFired(instance); } else #endif // OPENTHREAD_CONFIG_DIAG_ENABLE { otPlatAlarmMilliFired(instance); } } #if OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE if (alarm.MicroSecAlarmFired()) { otPlatAlarmMicroFired(instance); } #endif // OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE }
35.84375
93
0.768381
dahlia-os
9f61b4015d2b5d53db52124b775dc5ef2b6f1102
8,947
cpp
C++
libs/besiq/correct.cpp
hoehleatsu/besiq
94959e2819251805e19311ce377919e6bccb7bf9
[ "BSD-3-Clause" ]
1
2015-10-21T14:22:12.000Z
2015-10-21T14:22:12.000Z
libs/besiq/correct.cpp
hoehleatsu/besiq
94959e2819251805e19311ce377919e6bccb7bf9
[ "BSD-3-Clause" ]
2
2019-05-26T20:52:31.000Z
2019-05-28T16:19:49.000Z
libs/besiq/correct.cpp
hoehleatsu/besiq
94959e2819251805e19311ce377919e6bccb7bf9
[ "BSD-3-Clause" ]
2
2016-11-06T14:58:37.000Z
2019-05-26T14:03:13.000Z
#include <algorithm> #include <iostream> #include <glm/models/binomial.hpp> #include <besiq/io/resultfile.hpp> #include <besiq/io/metaresult.hpp> #include <besiq/method/scaleinv_method.hpp> #include <besiq/correct.hpp> struct heap_result { std::pair<std::string, std::string> variant_pair; float pvalue; bool operator<(const heap_result &other) const { return other.pvalue > pvalue; } }; void run_top(metaresultfile *result, float alpha, uint64_t num_top, size_t column, const std::string &output_path) { std::ostream &output = std::cout; std::vector<std::string> header = result->get_header( ); output << "snp1 snp2\tP\n"; std::vector<heap_result> heap; std::make_heap( heap.begin( ), heap.end( ) ); std::pair<std::string, std::string> pair; float *values = new float[ header.size( ) ]; float cur_min = FLT_MAX; while( result->read( &pair, values ) ) { heap_result res; res.pvalue = values[ column ]; if( res.pvalue == result_get_missing( ) || res.pvalue > cur_min ) { continue; } res.variant_pair = pair; heap.push_back( res ); std::push_heap( heap.begin( ), heap.end( ) ); if( heap.size( ) > num_top ) { std::pop_heap( heap.begin( ), heap.end( ) ); float new_min = heap.back( ).pvalue; heap.pop_back( ); cur_min = std::min( cur_min, new_min ); } } std::sort_heap( heap.begin( ), heap.end( ) ); for(int i = 0; i < heap.size( ); i++) { output << heap[ i ].variant_pair.first << " " << heap[ i ].variant_pair.second; output << "\t" << heap[ i ].pvalue << "\n"; } } void run_bonferroni(metaresultfile *result, float alpha, uint64_t num_tests, size_t column, const std::string &output_path) { if( num_tests == 0 ) { num_tests = result->num_pairs( ); } std::ostream &output = std::cout; std::vector<std::string> header = result->get_header( ); output << "snp1 snp2"; for(int i = 0; i < header.size( ); i++) { output << "\t" << header[ i ]; } output << "\tP_adjusted\n"; std::pair<std::string, std::string> pair; float *values = new float[ header.size( ) ]; while( result->read( &pair, values ) ) { float p = values[ column ]; if( p == result_get_missing( ) ) { continue; } float adjusted_p = std::min( p * num_tests, 1.0f ); if( adjusted_p <= alpha ) { output << pair.first << " " << pair.second; for(int i = 0; i < header.size( ); i++) { output << "\t" << values[ i ]; } output << "\t" << adjusted_p << "\n"; } } } resultfile * do_common_stages(metaresultfile *result, const std::vector<std::string> &snp_names, const correction_options &options, const std::string &output_path) { float *values = new float[ result->get_header( ).size( ) ]; char const *levels[] = { "1", "2", "3", "4" }; std::string filename = output_path + std::string( ".level" ) + levels[ 0 ]; bresultfile *stage_file = new bresultfile( filename, snp_names ); if( stage_file == NULL || !stage_file->open( ) ) { return NULL; } stage_file->set_header( result->get_header( ) ); std::vector<uint64_t> num_tests( options.num_tests ); if( num_tests[ 0 ] == 0 ) { num_tests[ 0 ] = result->num_pairs( ); } std::pair<std::string, std::string> pair; while( result->read( &pair, values ) ) { if( values[ 0 ] == result_get_missing( ) ) { continue; } float adjusted = std::min( 1.0f, values[ 0 ] * num_tests[ 0 ] / options.weight[ 0 ] ); if( adjusted <= options.alpha ) { values[ 0 ] = adjusted; stage_file->write( pair, values ); } } delete stage_file; for(int i = 1; i < 3; i++) { bresultfile *prev_file = new bresultfile( filename ); if( prev_file == NULL || !prev_file->open( ) ) { return NULL; } filename = output_path + std::string( ".level" ) + levels[ i ]; stage_file = new bresultfile( filename, snp_names ); if( stage_file == NULL || !stage_file->open( ) ) { return NULL; } stage_file->set_header( result->get_header( ) ); if( num_tests[ i ] == 0 ) { num_tests[ i ] = prev_file->num_pairs( ); } while( prev_file->read( &pair, values ) ) { if( values[ i ] == result_get_missing( ) ) { continue; } float adjusted = std::min( values[ i ] * num_tests[ i ] / options.weight[ i ], 1.0f ); if( adjusted <= options.alpha ) { values[ i ] = adjusted; stage_file->write( pair, values ); } } delete stage_file; delete prev_file; } delete values; bresultfile *last_stage = new bresultfile( filename ); if( last_stage != NULL && last_stage->open( ) ) { return last_stage; } else { return NULL; } } void do_last_stage(resultfile *last_stage, const correction_options &options, genotype_matrix_ptr genotypes, method_data_ptr data, const std::string &output_path) { std::ostream &output = std::cout; std::vector<std::string> header = last_stage->get_header( ); model_matrix *model_matrix = new factor_matrix( data->covariate_matrix, data->phenotype.n_elem ); scaleinv_method method( data, *model_matrix, options.model == "normal" ); std::vector<std::string> method_header = method.init( ); output << "snp1 snp2"; for(int i = 0; i < method_header.size( ); i++) { output << "\tP_" << method_header[ i ]; } output << "\tP_combined\n"; uint64_t num_tests = options.num_tests[ 3 ]; if( num_tests == 0 ) { num_tests = last_stage->num_pairs( ); } std::pair<std::string, std::string> pair; float *values = new float[ header.size( ) ]; float *method_values = new float[ method_header.size( ) ]; while( last_stage->read( &pair, values ) ) { std::fill( method_values, method_values + method_header.size( ), result_get_missing( ) ); /* Skip N and last p-value */ float pre_p = *std::max_element( values, values + header.size( ) - 2 ); float min_p = 1.0; float max_p = 0.0; snp_row const *snp1 = genotypes->get_row( pair.first ); snp_row const *snp2 = genotypes->get_row( pair.second ); method.run( *snp1, *snp2, method_values ); std::vector<float> p_values; for(int i = 0; i < method_header.size( ); i++) { float adjusted_p = result_get_missing( ); if( method_values[ i ] != result_get_missing( ) ) { adjusted_p = std::min( std::max( method_values[ i ] * num_tests / options.weight[ header.size( ) - 2 ], pre_p ), 1.0f ); min_p = std::min( min_p, adjusted_p ); max_p = std::max( max_p, adjusted_p ); } p_values.push_back( adjusted_p ); } if( min_p > options.alpha ) { continue; } output << pair.first << " " << pair.second; bool any_missing = false; for(int i = 0; i < p_values.size( ); i++) { if( p_values[ i ] != result_get_missing( ) ) { output << "\t" << p_values[ i ]; } else { any_missing = true; output << "\tNA"; } } if( !any_missing ) { output << "\t" << max_p << "\n"; } else { output << "\tNA\n"; } } delete model_matrix; delete[] values; delete[] method_values; } void run_static(metaresultfile *result, genotype_matrix_ptr genotypes, method_data_ptr data, const correction_options &options, const std::string &output_path) { resultfile *last_stage = do_common_stages( result, genotypes->get_snp_names( ), options, output_path ); if( last_stage == NULL ) { return; } do_last_stage( last_stage, options, genotypes, data, output_path ); delete last_stage; } void run_adaptive(metaresultfile *result, genotype_matrix_ptr genotypes, method_data_ptr data, const correction_options &options, const std::string &output_path) { correction_options adaptive_options( options ); for(int i = 0; i < adaptive_options.num_tests.size( ); i++) { adaptive_options.num_tests[ i ] = 0; } run_static( result, genotypes, data, adaptive_options, output_path ); }
29.048701
157
0.545546
hoehleatsu
9f6234d21ffab4221c1e830e8761c577a4ff324d
1,762
cpp
C++
cpp/opendnp3/src/opendnp3/gen/ControlCode.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
null
null
null
cpp/opendnp3/src/opendnp3/gen/ControlCode.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
null
null
null
cpp/opendnp3/src/opendnp3/gen/ControlCode.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
3
2016-07-13T18:54:13.000Z
2021-04-12T13:30:39.000Z
// // _ _ ______ _ _ _ _ _ _ _ // | \ | | | ____| | (_) | (_) | | | | // | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | | // | . ` |/ _ \ | __| / _` | | __| | '_ \ / _` | | | | // | |\ | (_) | | |___| (_| | | |_| | | | | (_| |_|_|_| // |_| \_|\___/ |______\__,_|_|\__|_|_| |_|\__, (_|_|_) // __/ | // |___/ // Copyright 2013 Automatak LLC // // Automatak LLC (www.automatak.com) licenses this file // to you under the the Apache License Version 2.0 (the "License"): // // http://www.apache.org/licenses/LICENSE-2.0.html // #include "ControlCode.h" namespace opendnp3 { uint8_t ControlCodeToType(ControlCode arg) { return static_cast<uint8_t>(arg); } ControlCode ControlCodeFromType(uint8_t arg) { switch(arg) { case(0x0): return ControlCode::NUL; case(0x1): return ControlCode::PULSE; case(0x3): return ControlCode::LATCH_ON; case(0x4): return ControlCode::LATCH_OFF; case(0x41): return ControlCode::PULSE_CLOSE; case(0x81): return ControlCode::PULSE_TRIP; case(0xFF): return ControlCode::UNDEFINED; } return ControlCode::UNDEFINED; } char const* ControlCodeToString(ControlCode arg) { switch(arg) { case(ControlCode::NUL): return "NUL"; case(ControlCode::PULSE): return "PULSE"; case(ControlCode::LATCH_ON): return "LATCH_ON"; case(ControlCode::LATCH_OFF): return "LATCH_OFF"; case(ControlCode::PULSE_CLOSE): return "PULSE_CLOSE"; case(ControlCode::PULSE_TRIP): return "PULSE_TRIP"; case(ControlCode::UNDEFINED): return "UNDEFINED"; } return "UNDEFINED"; } }
25.171429
67
0.546538
tarm
9f62e3b68cf61d15204f5a94461f72a8bf4bfaab
9,863
cpp
C++
threepp/renderers/gl/SpriteRenderer.cpp
Graphics-Physics-Libraries/three.cpp-imported
788b4202e15fa245a4b60e2da0b91f7d4d0592e1
[ "MIT" ]
76
2017-12-20T05:09:04.000Z
2022-01-24T10:20:15.000Z
threepp/renderers/gl/SpriteRenderer.cpp
melMass/three.cpp
5a328b40036e359598baec8b3fcddae4f33e410a
[ "MIT" ]
5
2018-06-06T15:41:01.000Z
2019-11-30T15:10:25.000Z
threepp/renderers/gl/SpriteRenderer.cpp
melMass/three.cpp
5a328b40036e359598baec8b3fcddae4f33e410a
[ "MIT" ]
23
2017-10-12T16:46:33.000Z
2022-03-16T06:16:03.000Z
// // Created by byter on 22.10.17. // #include "SpriteRenderer.h" #include <algorithm> #include <array> #include <sstream> #include "Renderer_impl.h" namespace three { namespace gl { using namespace std; struct SpriteRendererData { GLint position_att; GLint uv_att; GLint projectionMatrix; GLint map; GLint opacity; GLint color; GLint scale; GLint rotation; GLint uvOffset; GLint uvScale; GLint modelViewMatrix; GLint fogType, fogDensity, fogNear, fogFar, fogColor, fogDepth; GLint alphaTest; SpriteRendererData(QOpenGLFunctions *f, GLuint program) { position_att = f->glGetAttribLocation(program, "position"); uv_att = f->glGetAttribLocation(program, "uv"); uvOffset = f->glGetUniformLocation(program, "uvOffset"); uvScale = f->glGetUniformLocation(program, "uvScale"); rotation = f->glGetUniformLocation(program, "rotation"); scale = f->glGetUniformLocation(program, "scale"); color = f->glGetUniformLocation(program, "color"); map = f->glGetUniformLocation(program, "map"); opacity = f->glGetUniformLocation(program, "opacity"); modelViewMatrix = f->glGetUniformLocation(program, "modelViewMatrix"); projectionMatrix = f->glGetUniformLocation(program, "projectionMatrix"); fogType = f->glGetUniformLocation(program, "fogType"); fogDensity = f->glGetUniformLocation(program, "fogDensity"); fogNear = f->glGetUniformLocation(program, "fogNear"); fogFar = f->glGetUniformLocation(program, "fogFar"); fogColor = f->glGetUniformLocation(program, "fogColor"); fogDepth = f->glGetUniformLocation(program, "fogDepth"); alphaTest = f->glGetUniformLocation(program, "alphaTest"); } }; SpriteRenderer::~SpriteRenderer() { if(_data) delete _data; } void SpriteRenderer::init() { array<float, 16> vertices = { -0.5f, -0.5f, 0, 0, 0.5f, -0.5f, 1, 0, 0.5f, 0.5f, 1, 1, -0.5f, 0.5f, 0, 1 }; array<uint16_t, 6> faces = { 0, 1, 2, 0, 2, 3 }; _r.glGenBuffers(1, &_vertexBuffer); _r.glGenBuffers(1, &_elementBuffer); _r.glBindBuffer( GL_ARRAY_BUFFER, _vertexBuffer ); _r.glBufferData( GL_ARRAY_BUFFER, 16 * sizeof(float), vertices.data(), GL_STATIC_DRAW ); _r.glBindBuffer( GL_ELEMENT_ARRAY_BUFFER, _elementBuffer ); _r.glBufferData( GL_ELEMENT_ARRAY_BUFFER, 12, faces.data(), GL_STATIC_DRAW ); GLuint vshader = _r.glCreateShader( GL_VERTEX_SHADER ); GLuint fshader = _r.glCreateShader( GL_FRAGMENT_SHADER ); static const char * vertexShader = "#define SHADER_NAME SpriteMaterial" "uniform mat4 modelViewMatrix;" "uniform mat4 projectionMatrix;" "uniform float rotation;" "uniform vec2 scale;" "uniform vec2 uvOffset;" "uniform vec2 uvScale;" "in vec2 position;" "in vec2 uv;" "out vec2 vUV;" "out float fogDepth;" "void main() {" " vUV = uvOffset + uv * uvScale;" " vec2 alignedPosition = position * scale;" " vec2 rotatedPosition;" " rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;" " rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;" " vec4 mvPosition;" " mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );" " mvPosition.xy += rotatedPosition;" " gl_Position = projectionMatrix * mvPosition;" " fogDepth = - mvPosition.z;" "}"; stringstream ss; ss << "precision " << _capabilities.precisionS() << " float;" << endl << vertexShader; const char *vsource = ss.str().data(); _r.glShaderSource(vshader, 1, &vsource, nullptr); static const char * fragmentShader = "#define SHADER_NAME SpriteMaterial" "uniform vec3 color;" "uniform sampler2D map;" "uniform float opacity;" "uniform int fogType;" "uniform vec3 fogColor;" "uniform float fogDensity;" "uniform float fogNear;" "uniform float fogFar;" "uniform float alphaTest;" "in vec2 vUV;" "in float fogDepth;" "out vec4 fragColor;" "void main() {" " vec4 texture = texture( map, vUV );" " fragColor = vec4( color * texture.xyz, texture.a * opacity );" " if ( fragColor.a < alphaTest ) discard;" " if ( fogType > 0 ) {" " float fogFactor = 0.0;" " if ( fogType == 1 ) {" " fogFactor = smoothstep( fogNear, fogFar, fogDepth );" " } else {" " const float LOG2 = 1.442695;" " fogFactor = exp2( - fogDensity * fogDensity * fogDepth * fogDepth * LOG2 );" " fogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );" " }" " fragColor.rgb = mix( fragColor.rgb, fogColor, fogFactor );" " }" "}"; ss.clear(); ss << "precision " << _capabilities.precisionS() << " float;" << endl << fragmentShader; const char *fsource = ss.str().data(); _r.glShaderSource(fshader, 1, &fsource, nullptr); _r.glCompileShader(vshader); _r.glCompileShader(fshader); _r.glAttachShader( _program, vshader ); _r.glAttachShader( _program, fshader ); _r.glLinkProgram( _program ); /*var canvas = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' ); canvas.width = 8; canvas.height = 8; var context = canvas.getContext( '2d' ); context.fillStyle = 'white'; context.fillRect( 0, 0, 8, 8 ); texture = new CanvasTexture( canvas );*/ } void SpriteRenderer::render(vector<Sprite::Ptr> &sprites, Scene::Ptr scene, Camera::Ptr camera) { if (sprites.empty()) return; // setup gl if (!_linked) { init(); _linked = true; } _state.useProgram(_program); _state.initAttributes(); _state.enableAttribute( _data->position_att ); _state.enableAttribute( _data->uv_att ); _state.disableUnusedAttributes(); _state.disable( GL_CULL_FACE ); _state.enable( GL_BLEND ); _r.glBindBuffer( GL_ARRAY_BUFFER, _vertexBuffer ); _r.glVertexAttribPointer( _data->position_att, 2, GL_FLOAT, GL_FALSE, 2 * 8, (const void *)0 ); _r.glVertexAttribPointer( _data->uv_att, 2, GL_FLOAT, GL_FALSE, 2 * 8, (const void *)8 ); _r.glBindBuffer( GL_ELEMENT_ARRAY_BUFFER, _elementBuffer ); _r.glUniformMatrix4fv(_data->projectionMatrix, sizeof(camera->projectionMatrix()), GL_FALSE, camera->projectionMatrix().elements()); _state.activeTexture( GL_TEXTURE0 ); _r.glUniform1i( _data->map, 0 ); GLint oldFogType = 0; GLint sceneFogType = 0; Fog::Ptr fog = scene->fog(); if ( fog ) { _r.glUniform3f( _data->fogColor, fog->color().r, fog->color().g, fog->color().b ); if(CAST(fog, f, DefaultFog)) { _r.glUniform1f( _data->fogNear, f->near() ); _r.glUniform1f( _data->fogFar, f->far() ); _r.glUniform1i( _data->fogType, 1 ); oldFogType = 1; sceneFogType = 1; } else if(CAST(fog, f, FogExp2)) { _r.glUniform1f( _data->fogDensity, f->density() ); _r.glUniform1i( _data->fogType, 2 ); oldFogType = 2; sceneFogType = 2; } } else { _r.glUniform1i( _data->fogType, 0 ); oldFogType = 0; sceneFogType = 0; } // update positions and sort for (const Sprite::Ptr sprite : sprites) { sprite->modelViewMatrix.multiply(camera->matrixWorldInverse(), sprite->matrixWorld()); //sprite->z() = - sprite.modelViewMatrix.elements[ 14 ]; } sort(sprites.begin(), sprites.end(), [] (const Sprite::Ptr &a, const Sprite::Ptr &b) -> bool { if ( a->renderOrder() != b->renderOrder()) { return a->renderOrder() < b->renderOrder(); } else { float za = a->modelViewMatrix.elements()[ 14 ]; float zb = b->modelViewMatrix.elements()[ 14 ]; if (za != zb) return zb < za; else return b->id() < a->id(); } }); // render all sprites float scale[2]; for (Sprite::Ptr sprite : sprites) { SpriteMaterial *material = sprite->material()->typer; if (!material->visible) continue; sprite->onBeforeRender.emitSignal(_r, scene, camera, *sprite, nullptr); _r.glUniform1f( _data->alphaTest, material->alphaTest ); _r.glUniformMatrix4fv(_data->modelViewMatrix, 1, GL_FALSE, sprite->modelViewMatrix.elements() ); sprite->matrixWorld().decompose( _spritePosition, _spriteRotation, _spriteScale ); scale[ 0 ] = _spriteScale.x(); scale[ 1 ] = _spriteScale.y(); GLint fogType = scene->fog() && material->fog ? sceneFogType : 0; if ( oldFogType != fogType ) { _r.glUniform1i( _data->fogType, fogType ); oldFogType = fogType; } if (material->map) { _r.glUniform2f( _data->uvOffset, material->map->offset().x(), material->map->offset().y()); _r.glUniform2f( _data->uvScale, material->map->repeat().x(), material->map->repeat().y()); } else { _r.glUniform2f( _data->uvOffset, 0, 0 ); _r.glUniform2f( _data->uvScale, 1, 1 ); } _r.glUniform1f( _data->opacity, material->opacity); _r.glUniform3f( _data->color, material->color.r, material->color.g, material->color.b ); _r.glUniform1f( _data->rotation, material->rotation ); _r.glUniform2fv(_data->scale, 1, scale); _state.setBlending( material->blending, material->blendEquation, material->blendSrc, material->blendDst, material->blendEquationAlpha, material->blendSrcAlpha, material->blendDstAlpha, material->premultipliedAlpha ); _state.depthBuffer.setTest( material->depthTest ); _state.depthBuffer.setMask( material->depthWrite ); _state.colorBuffer.setMask( material->colorWrite ); if(material->map) _textures.setTexture2D(material->map, 0); else if(_texture) _textures.setTexture2D( _texture, 0 ); _r.glDrawElements( GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, 0 ); sprite->onAfterRender.emitSignal( _r, scene, camera, *sprite, nullptr ); } // restore gl _state.enable( GL_CULL_FACE ); _state.reset(); } } }
27.021918
108
0.648484
Graphics-Physics-Libraries
9f6489be8a18135a225e571b433c0bcc38753a3b
7,936
cpp
C++
editor/gui/src/materialexplorer.cpp
lizardkinger/blacksun
0119948726d2a057c13d208044c7664a8348a1ea
[ "Linux-OpenIB" ]
null
null
null
editor/gui/src/materialexplorer.cpp
lizardkinger/blacksun
0119948726d2a057c13d208044c7664a8348a1ea
[ "Linux-OpenIB" ]
null
null
null
editor/gui/src/materialexplorer.cpp
lizardkinger/blacksun
0119948726d2a057c13d208044c7664a8348a1ea
[ "Linux-OpenIB" ]
null
null
null
/*************************************************************************** * Copyright (C) 2006 by The Hunter * * hunter@localhost * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "./include/materialexplorer.h" namespace BSGui { const unsigned long MaterialExplorer::materialEditorMagic = 112186UL; MaterialExplorer::MaterialExplorer(QWidget* parent) : QListWidget(parent) { materialManager = BSRenderer::MaterialManager::getInstance(); sceneManager = BSScene::SceneManager::getInstance(); connect(materialManager, SIGNAL(materialAdded(int)), this, SLOT(addMaterial(int))); connect(materialManager, SIGNAL(materialRemoved(int)), this, SLOT(removeMaterial(int))); connect(materialManager, SIGNAL(materialChanged(int)), this, SLOT(updateMaterial(int))); connect(this, SIGNAL(itemChanged(QListWidgetItem*)), this, SLOT(setMaterialName(QListWidgetItem*))); int materialNumber = materialManager->getStandardMaterialID(); actionRenameCurrentItem = new QAction(tr("Rename"), this); actionDeleteCurrentItem = new QAction(tr("Delete"), this); actionEditCurrentItem = new QAction(tr("Edit"), this); actionApplyCurrentItem = new QAction(tr("Apply"), this); QListWidgetItem* itemToAdd = new QListWidgetItem; itemToAdd->setText(QString::fromStdString(materialManager->getMaterial(materialNumber)->getName())); itemToAdd->setData(Qt::UserRole, materialNumber); itemToAdd->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable); addItem(itemToAdd); connect(actionDeleteCurrentItem, SIGNAL(triggered()), this, SLOT(deleteCurrentItem())); connect(actionRenameCurrentItem, SIGNAL(triggered()), this, SLOT(renameCurrentItem())); connect(actionEditCurrentItem, SIGNAL(triggered()), this, SLOT(editCurrentItem())); connect(actionApplyCurrentItem, SIGNAL(triggered()), this, SLOT(applyCurrentItem())); connect(&sceneManager->getSelBuffer(), SIGNAL(selectionChanged()), this, SLOT(setSelectedMaterial())); //connect(sceneManager, SIGNAL(sceneChanged()), this, SLOT(setSelectedMaterial())); } void MaterialExplorer::renameCurrentItem() { editItem(currentItem()); } void MaterialExplorer::deleteCurrentItem() { QListWidgetItem* item = currentItem(); int materialNumber = item->data(Qt::UserRole).toInt(); materialManager->removeMaterial(materialNumber); } void MaterialExplorer::applyCurrentItem() { QListWidgetItem* item = currentItem(); BSScene::SelectionBuffer* selectionBuffer = &BSScene::SceneManager::getInstance()->getSelBuffer(); selectionBuffer->setMaterial(item->data(Qt::UserRole).toInt()); setSelectedMaterial(); } void MaterialExplorer::editCurrentItem() { QObject* materialEditor = getMaterialEditorPlugin(); if(materialEditor != NULL) { QMetaObject::invokeMethod(materialEditor, "execute"); } } void MaterialExplorer::contextMenuEvent(QContextMenuEvent* event) { QObject* materialEditor = getMaterialEditorPlugin(); QListWidgetItem* item = itemAt(event->pos()); if(item != NULL) { QMenu* menu = new QMenu(this); menu->addAction(actionApplyCurrentItem); if(item->data(Qt::UserRole).toInt() != materialManager->getStandardMaterialID()) { menu->addAction(actionRenameCurrentItem); menu->addAction(actionDeleteCurrentItem); if(materialEditor != NULL) { menu->addAction(actionEditCurrentItem); } } menu->exec(event->globalPos()); } } void MaterialExplorer::addMaterial(int materialNumber) { for(int i = 0 ; i < count() ; i++) { if(item(i)->data(Qt::UserRole).toInt() == materialNumber) { return; } } QListWidgetItem* itemToAdd = new QListWidgetItem; itemToAdd->setText(QString::fromStdString(materialManager->getMaterial(materialNumber)->getName())); itemToAdd->setData(Qt::UserRole, materialNumber); itemToAdd->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable); addItem(itemToAdd); } void MaterialExplorer::removeMaterial(int materialNumber) { delete findMaterial(materialNumber); } void MaterialExplorer::updateMaterial(int materialNumber) { QListWidgetItem* itemToUpdate = findMaterial(materialNumber); if(itemToUpdate != NULL) { findMaterial(materialNumber)->setText(QString::fromStdString(materialManager->getMaterial(materialNumber)->getName())); } } QListWidgetItem* MaterialExplorer::findMaterial(int materialNumber) { QListWidgetItem* itemToFind = NULL; for(int i = 0 ; i < count() ; i++) { itemToFind = item(i); if(itemToFind->data(Qt::UserRole).toInt() == materialNumber) { return itemToFind; } } return itemToFind; } void MaterialExplorer::setSelectedMaterial() { for(int i = 0 ; i < count() ; i++) { item(i)->setData(Qt::ForegroundRole, Qt::black); } BSScene::SelectionBuffer* selectionBuffer = &BSScene::SceneManager::getInstance()->getSelBuffer(); std::list<BSScene::SceneObject*> objectList = selectionBuffer->getSelectedObjects(); for(std::list<BSScene::SceneObject*>::iterator i = objectList.begin() ; i != objectList.end() ; ++i) { int currentId = (*i)->getMaterialID(); qDebug() << currentId; for(int i = 0 ; i < count() ; i++) { QListWidgetItem* current = item(i); if(current->data(Qt::UserRole).toInt() == currentId) { current->setData(Qt::ForegroundRole, Qt::blue); break; } } } } QObject* MaterialExplorer::getMaterialEditorPlugin() { QObject* materialManager = NULL; PlgInt* interface = BSPlgMgr::PlgMgr::getInstance()->getPlgInstance(materialEditorMagic,Version(1,0,0)); if(interface != NULL) { if(BSPlgMgr::PlgMgr::getInstance()->getStatus(materialEditorMagic)) { materialManager = dynamic_cast<QObject*>(interface); if(materialManager != NULL) { const QMetaObject* materialManagerMeta = materialManager->metaObject(); if(materialManagerMeta->indexOfMethod(QMetaObject::normalizedSignature("execute()")) > -1 ) { return materialManager; } } } } return NULL; } void MaterialExplorer::setMaterialName(QListWidgetItem* item) { int materialNumber = item->data(Qt::UserRole).toInt(); Material* materialToEdit = materialManager->getMaterial(materialNumber); materialToEdit->setName(item->data(Qt::DisplayRole).toString().toStdString()); } }
37.971292
127
0.62563
lizardkinger
9f6bdce4b3b3b81e2ebe0fd64559aaf297459a8e
5,587
cpp
C++
deps/OpenTSTOOL/mex-dev/NN/takens_estimator.cpp
andrestc/thesis
afe3a71a83394682d68f9fbe0fe13747506757ec
[ "MIT" ]
3
2020-08-24T07:11:26.000Z
2021-06-10T03:05:14.000Z
deps/OpenTSTOOL/mex-dev/NN/takens_estimator.cpp
andrestc/thesis
afe3a71a83394682d68f9fbe0fe13747506757ec
[ "MIT" ]
null
null
null
deps/OpenTSTOOL/mex-dev/NN/takens_estimator.cpp
andrestc/thesis
afe3a71a83394682d68f9fbe0fe13747506757ec
[ "MIT" ]
2
2020-05-24T09:31:29.000Z
2021-03-01T13:40:25.000Z
// takens estimator for the correlation dimension (D_2) // // cmerk DPI Goettingen 1998 #include "mextools/mextools.h" // this includes the code for the nearest neighbor searcher and the prediction routines #include "NNSearcher/point_set.h" #include "include.mex" template<class METRIC> void compute(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[], const int atria_preprocessing_given, METRIC dummy) { long i,j,n,k; /* loop variables */ /* handle matrix I/O */ const long N = mxGetM(prhs[0]); const long dim = mxGetN(prhs[0]); const double* p = (double *)mxGetPr(prhs[0]); const long R = max(mxGetM(prhs[1]), mxGetN(prhs[1])); const double* ref = (double *)mxGetPr(prhs[1]); const double relative_range = (double) *((double *)mxGetPr(prhs[2])); const long past = (long) *((double *)mxGetPr(prhs[3])); if (N < 1) { mexErrMsgTxt("Data set must consist of at least two points (row vectors)"); return; } if (dim < 2) { mexErrMsgTxt("Data points must be at least of dimension two"); return; } if ((mxGetN(prhs[1]) == 0) || (mxGetM(prhs[1]) == 0)) { mexErrMsgTxt("Wrong reference indices given"); return; } if (R < 1) { mexErrMsgTxt("At least one reference index or point must be given"); return; } for (i=0; i < R; i++) { if ((ref[i] < 1) || (ref[i]>N)) { mexErrMsgTxt("Reference indices out of range"); return; } } point_set<METRIC> points(N,dim, p); ATRIA< point_set<METRIC> >* searcher = 0; #ifdef MATLAB_MEX_FILE if (atria_preprocessing_given) { searcher = new ATRIA< point_set<METRIC> >(points, prhs[-1]); // this constructor used the data from the preprocessing if (searcher->geterr()) { delete searcher; searcher = 0; } } #endif if (searcher == 0) { searcher = new ATRIA< point_set<METRIC> >(points); } if (searcher->geterr()) { mexErrMsgTxt("Error preparing searcher"); return; } double range; if (relative_range > 0) range = relative_range * searcher->data_set_radius(); // compute the maximal search radius using information about attractor size else range = fabs(relative_range); // if relative_range is negativ, use it's value (without sign) as maximal search radius mexPrintf("Number of reference points : %d\n", R); mexPrintf("Upper bound for attractor size : %f\n", 2 * searcher->data_set_radius()); mexPrintf("Maximal search radius : %f\n", range); plhs[0] = mxCreateDoubleMatrix(1, 1, mxREAL); double* out = (double *) mxGetPr(plhs[0]); unsigned long counter = 0; double sum = 0; for (n=0; n < R; n++) { /* iterate over all reference points */ const long actual = (long) ref[n]-1; /* Matlab to C means indices change from 1 to 0, 2 to 1, 3 to 2 ...*/ if (actual > past) { vector<neighbor> v; searcher->search_range(v, range, points.point_begin(actual), actual-past, N); // don't search points from [actual-past .. N-1] //overall_points += (actual-past); // count the total number of points pairs that were at least theoretically tested if (v.size() > 0) { vector<neighbor>::iterator i; for (i = v.begin(); i < v.end(); i++) { // v is unsorted const double dist = (*i).dist(); if (dist > 0) { sum += log(dist/range); counter++; } } } } } if (counter > 0) *out = -((double)counter)/sum; else *out = 0; delete searcher; } void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { int atria_preprocessing_given = 0; // flag wheter preprocessing is already given on command line // try to see if the first parameter given is an atria structure // If this is true, the order of input parameters is shifted by one // try to see if the first parameter given is an atria structure // If this is true, the order of input parameters is shifted by one if ((nrhs) && (mxIsStruct(prhs[0]))) { atria_preprocessing_given = 1; prhs++; // these two lines enable us to use the old argument parsing block without changing it nrhs--; } /* check input args */ if (nrhs < 4) { mexErrMsgTxt("Takens estimator : Data set of points (row vectors), reference indices, relative range (relative to attractor diameter) and past must be given"); return; } if (atria_preprocessing_given) { #ifdef MATLAB_MEX_FILE char* metric = 0; if (mxIsChar(mxGetField(prhs[-1], 0, "optional"))) { long buflen = (mxGetM(mxGetField(prhs[-1], 0, "optional")) * mxGetN(mxGetField(prhs[-1], 0, "optional"))) + 1; metric = (char*) mxMalloc(buflen); mxGetString(mxGetField(prhs[-1], 0, "optional"), metric, buflen); } if ((metric == 0) || (!strncmp("euclidian", metric, strlen(metric)))) { euclidian_distance dummy; mexPrintf("Using euclidian metric to calculated distances\n"); compute(nlhs, plhs, nrhs, prhs, 1, dummy); } else if ((!strncmp("maximum", metric, strlen(metric)))) { maximum_distance dummy; mexPrintf("Using maximum metric to calculated distances\n"); compute(nlhs, plhs, nrhs, prhs, 1, dummy); } else printf("ATRIA preprocessing structure was not created using a supported metric; doing preprocessing again\n"); mxFree(metric); #endif } else { euclidian_distance dummy; mexPrintf("Using euclidian metric to calculated distances\n"); compute(nlhs, plhs, nrhs, prhs, 0, dummy); } }
31.564972
162
0.629318
andrestc
9f6c95e21ec191d53dce4ce07a912fc811df04cc
25,502
cpp
C++
test/custom_types_Test.cpp
mbeckh/llamalog
0441f3c6ce8871a343186f5c9ca35e8df4e8d542
[ "Apache-2.0" ]
null
null
null
test/custom_types_Test.cpp
mbeckh/llamalog
0441f3c6ce8871a343186f5c9ca35e8df4e8d542
[ "Apache-2.0" ]
15
2020-06-11T22:43:54.000Z
2020-10-25T11:49:17.000Z
test/custom_types_Test.cpp
mbeckh/llamalog
0441f3c6ce8871a343186f5c9ca35e8df4e8d542
[ "Apache-2.0" ]
null
null
null
/* Copyright 2019 Michael Beckh Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #include "llamalog/custom_types.h" #include "llamalog/LogLine.h" #include <fmt/format.h> #include <gtest/gtest.h> #include <string> #include <type_traits> namespace llamalog::test { namespace t = testing; namespace { thread_local int g_instancesCreated; thread_local int g_destructorCalled; thread_local int g_copyConstructorCalled; thread_local int g_moveConstructorCalled; class custom_types_Test : public t::Test { protected: void SetUp() override { g_instancesCreated = 0; g_destructorCalled = 0; g_copyConstructorCalled = 0; g_moveConstructorCalled = 0; } }; class TriviallyCopyable final { public: explicit TriviallyCopyable(int value) : m_value(value) { // empty } TriviallyCopyable(const TriviallyCopyable&) = default; TriviallyCopyable(TriviallyCopyable&&) = default; ~TriviallyCopyable() = default; public: TriviallyCopyable& operator=(const TriviallyCopyable&) = default; TriviallyCopyable& operator=(TriviallyCopyable&&) = default; public: int GetInstanceNo() const { return m_instanceNo; } int GetValue() const { return m_value; } private: int m_instanceNo = ++g_instancesCreated; int m_value; }; static_assert(std::is_trivially_copyable_v<TriviallyCopyable>); class MoveConstructible final { public: explicit MoveConstructible(int value) : m_value(value) { // empty } MoveConstructible(const MoveConstructible& other) noexcept : m_value(other.m_value) { ++g_copyConstructorCalled; } MoveConstructible(MoveConstructible&& other) noexcept : m_value(other.m_value) { ++g_moveConstructorCalled; } ~MoveConstructible() { ++g_destructorCalled; } public: MoveConstructible& operator=(const MoveConstructible&) = delete; MoveConstructible& operator=(MoveConstructible&&) = delete; public: int GetInstanceNo() const { return m_instanceNo; } int GetValue() const { return m_value; } private: const int m_instanceNo = ++g_instancesCreated; int m_value; }; static_assert(!std::is_trivially_copyable_v<MoveConstructible>); static_assert(std::is_nothrow_move_constructible_v<MoveConstructible>); class CopyConstructible final { public: explicit CopyConstructible(int value) : m_value(value) { // empty } CopyConstructible(const CopyConstructible& other) noexcept : m_value(other.m_value) { ++g_copyConstructorCalled; } CopyConstructible(CopyConstructible&& other) = delete; ~CopyConstructible() { ++g_destructorCalled; } public: CopyConstructible& operator=(const CopyConstructible&) = delete; CopyConstructible& operator=(CopyConstructible&&) = delete; public: int GetInstanceNo() const { return m_instanceNo; } int GetValue() const { return m_value; } private: const int m_instanceNo = ++g_instancesCreated; int m_value; }; static_assert(!std::is_trivially_copyable_v<CopyConstructible>); static_assert(!std::is_nothrow_move_constructible_v<CopyConstructible>); static_assert(std::is_nothrow_copy_constructible_v<CopyConstructible>); } // namespace } // namespace llamalog::test template <> struct fmt::formatter<llamalog::test::TriviallyCopyable> { public: template <typename ParseContext> constexpr auto parse(ParseContext& ctx) { return ctx.begin(); } template <typename FormatContext> auto format(const llamalog::test::TriviallyCopyable& arg, FormatContext& ctx) { return format_to(ctx.out(), "T_{}_{}", arg.GetInstanceNo(), arg.GetValue()); } }; llamalog::LogLine& operator<<(llamalog::LogLine& logLine, const llamalog::test::TriviallyCopyable& arg) { return logLine.AddCustomArgument(arg); } llamalog::LogLine& operator<<(llamalog::LogLine& logLine, const llamalog::test::TriviallyCopyable* const arg) { return logLine.AddCustomArgument(arg); } template <> struct fmt::formatter<llamalog::test::MoveConstructible> { public: template <typename ParseContext> constexpr auto parse(ParseContext& ctx) { return ctx.begin(); } template <typename FormatContext> auto format(const llamalog::test::MoveConstructible& arg, FormatContext& ctx) { return format_to(ctx.out(), "M_{}_{}", arg.GetInstanceNo(), arg.GetValue()); } }; llamalog::LogLine& operator<<(llamalog::LogLine& logLine, const llamalog::test::MoveConstructible& arg) { return logLine.AddCustomArgument(arg); } llamalog::LogLine& operator<<(llamalog::LogLine& logLine, const llamalog::test::MoveConstructible* const arg) { return logLine.AddCustomArgument(arg); } template <> struct fmt::formatter<llamalog::test::CopyConstructible> { public: template <typename ParseContext> constexpr auto parse(ParseContext& ctx) { return ctx.begin(); } template <typename FormatContext> auto format(const llamalog::test::CopyConstructible& arg, FormatContext& ctx) { return format_to(ctx.out(), "C_{}_{}", arg.GetInstanceNo(), arg.GetValue()); } }; llamalog::LogLine& operator<<(llamalog::LogLine& logLine, const llamalog::test::CopyConstructible& arg) { return logLine.AddCustomArgument(arg); } llamalog::LogLine& operator<<(llamalog::LogLine& logLine, const llamalog::test::CopyConstructible* const arg) { return logLine.AddCustomArgument(arg); } namespace llamalog::test { namespace { LogLine GetLogLine(const char* const pattern = "{}") { return LogLine(Priority::kDebug, "file.cpp", 99, "myfunction()", pattern); } } // namespace // // TriviallyCopyable // TEST_F(custom_types_Test, TriviallyCopyable_IsValue_PrintValue) { { LogLine logLine = GetLogLine(); { const TriviallyCopyable arg(7); ASSERT_EQ(1, arg.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); logLine << arg; EXPECT_EQ(1, g_instancesCreated); } EXPECT_EQ(1, g_instancesCreated); const std::string str = logLine.GetLogMessage(); // everything is just copied as raw binary data EXPECT_EQ("T_1_7", str); EXPECT_EQ(1, g_instancesCreated); } EXPECT_EQ(1, g_instancesCreated); } TEST_F(custom_types_Test, TriviallyCopyable_IsValueWithCustomFormat_ThrowError) { { LogLine logLine = GetLogLine("{:?nullptr}"); { const TriviallyCopyable arg(7); ASSERT_EQ(1, arg.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); logLine << arg; EXPECT_EQ(1, g_instancesCreated); } EXPECT_EQ(1, g_instancesCreated); #pragma warning(suppress : 4834) EXPECT_THROW(logLine.GetLogMessage(), fmt::format_error); EXPECT_EQ(1, g_instancesCreated); } EXPECT_EQ(1, g_instancesCreated); } TEST_F(custom_types_Test, TriviallyCopyable_IsPointer_PrintValue) { { LogLine logLine = GetLogLine(); { const TriviallyCopyable value(7); const TriviallyCopyable* const arg = &value; ASSERT_EQ(1, value.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); logLine << arg; EXPECT_EQ(1, g_instancesCreated); } EXPECT_EQ(1, g_instancesCreated); const std::string str = logLine.GetLogMessage(); // everything is just copied as raw binary data EXPECT_EQ("T_1_7", str); EXPECT_EQ(1, g_instancesCreated); } EXPECT_EQ(1, g_instancesCreated); } TEST_F(custom_types_Test, TriviallyCopyable_IsPointerWithCustomFormat_PrintValue) { { LogLine logLine = GetLogLine("{:?nullptr}"); { const TriviallyCopyable value(7); const TriviallyCopyable* const arg = &value; ASSERT_EQ(1, value.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); logLine << arg; EXPECT_EQ(1, g_instancesCreated); } EXPECT_EQ(1, g_instancesCreated); const std::string str = logLine.GetLogMessage(); // everything is just copied as raw binary data EXPECT_EQ("T_1_7", str); EXPECT_EQ(1, g_instancesCreated); } EXPECT_EQ(1, g_instancesCreated); } TEST_F(custom_types_Test, TriviallyCopyable_IsNullptr_PrintNull) { { LogLine logLine = GetLogLine(); { const TriviallyCopyable* const arg = nullptr; ASSERT_EQ(0, g_instancesCreated); logLine << arg; EXPECT_EQ(0, g_instancesCreated); } EXPECT_EQ(0, g_instancesCreated); const std::string str = logLine.GetLogMessage(); // everything is just copied as raw binary data EXPECT_EQ("(null)", str); EXPECT_EQ(0, g_instancesCreated); } EXPECT_EQ(0, g_instancesCreated); } TEST_F(custom_types_Test, TriviallyCopyable_IsNullptrWithCustomFormat_PrintNull) { { LogLine logLine = GetLogLine("{:?nullptr}"); { const TriviallyCopyable* const arg = nullptr; ASSERT_EQ(0, g_instancesCreated); logLine << arg; EXPECT_EQ(0, g_instancesCreated); } EXPECT_EQ(0, g_instancesCreated); const std::string str = logLine.GetLogMessage(); // everything is just copied as raw binary data EXPECT_EQ("nullptr", str); EXPECT_EQ(0, g_instancesCreated); } EXPECT_EQ(0, g_instancesCreated); } // // MoveConstructible // TEST_F(custom_types_Test, MoveConstructible_IsValue_PrintValue) { { LogLine logLine = GetLogLine(); { const MoveConstructible arg(7); ASSERT_EQ(1, arg.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(2, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(1, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); const std::string str = logLine.GetLogMessage(); EXPECT_EQ("M_3_7", str); // no need to print string of x'es EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(3, g_destructorCalled); } TEST_F(custom_types_Test, MoveConstructible_IsValueWithCustomFormat_ThrowError) { { LogLine logLine = GetLogLine("{:?nullptr}"); { const MoveConstructible arg(7); ASSERT_EQ(1, arg.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(2, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(1, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); #pragma warning(suppress : 4834) EXPECT_THROW(logLine.GetLogMessage(), fmt::format_error); EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(3, g_destructorCalled); } TEST_F(custom_types_Test, MoveConstructible_IsPointer_PrintValue) { { LogLine logLine = GetLogLine(); { const MoveConstructible value(7); const MoveConstructible* const arg = &value; ASSERT_EQ(1, value.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(2, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(1, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); const std::string str = logLine.GetLogMessage(); EXPECT_EQ("M_3_7", str); // no need to print string of x'es EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(3, g_destructorCalled); } TEST_F(custom_types_Test, MoveConstructible_IsPointerWithCustomFormat_PrintValue) { { LogLine logLine = GetLogLine("{:?nullptr}"); { const MoveConstructible value(7); const MoveConstructible* const arg = &value; ASSERT_EQ(1, value.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(2, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(1, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); const std::string str = logLine.GetLogMessage(); EXPECT_EQ("M_3_7", str); // no need to print string of x'es EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(1, g_moveConstructorCalled); EXPECT_EQ(3, g_destructorCalled); } TEST_F(custom_types_Test, MoveConstructible_IsNullptr_PrintNull) { { LogLine logLine = GetLogLine(); { const MoveConstructible* const arg = nullptr; ASSERT_EQ(0, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); const std::string str = logLine.GetLogMessage(); EXPECT_EQ("(null)", str); // no need to print string of x'es EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } TEST_F(custom_types_Test, MoveConstructible_IsNullptrWithCustomFormat_PrintNull) { { LogLine logLine = GetLogLine("{:?nullptr}"); { const MoveConstructible* const arg = nullptr; ASSERT_EQ(0, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); const std::string str = logLine.GetLogMessage(); EXPECT_EQ("nullptr", str); // no need to print string of x'es EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } // // CopyConstructible // TEST_F(custom_types_Test, CopyConstructible_IsValue_PrintValue) { { LogLine logLine = GetLogLine(); { const CopyConstructible arg(7); ASSERT_EQ(1, arg.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(2, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(1, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); const std::string str = logLine.GetLogMessage(); EXPECT_EQ("C_3_7", str); // no need to print string of x'es EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(3, g_destructorCalled); } TEST_F(custom_types_Test, CopyConstructible_IsValueWithCustomFormat_ThrowError) { { LogLine logLine = GetLogLine("{:?nullptr}"); { const CopyConstructible arg(7); ASSERT_EQ(1, arg.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(2, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(1, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); #pragma warning(suppress : 4834) EXPECT_THROW(logLine.GetLogMessage(), fmt::format_error); EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(3, g_destructorCalled); } TEST_F(custom_types_Test, CopyConstructible_IsPointer_PrintValue) { { LogLine logLine = GetLogLine(); { const CopyConstructible value(7); const CopyConstructible* const arg = &value; ASSERT_EQ(1, value.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(2, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(1, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); const std::string str = logLine.GetLogMessage(); EXPECT_EQ("C_3_7", str); // no need to print string of x'es EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(3, g_destructorCalled); } TEST_F(custom_types_Test, CopyConstructible_IsPointerWithCustomFormat_PrintValue) { { LogLine logLine = GetLogLine("{:?nullptr}"); { const CopyConstructible value(7); const CopyConstructible* const arg = &value; ASSERT_EQ(1, value.GetInstanceNo()); ASSERT_EQ(1, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(2, g_instancesCreated); EXPECT_EQ(1, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(1, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); const std::string str = logLine.GetLogMessage(); EXPECT_EQ("C_3_7", str); // no need to print string of x'es EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(2, g_destructorCalled); } EXPECT_EQ(3, g_instancesCreated); EXPECT_EQ(2, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(3, g_destructorCalled); } TEST_F(custom_types_Test, CopyConstructible_IsNullptr_PrintNull) { { LogLine logLine = GetLogLine(); { const CopyConstructible* arg = nullptr; ASSERT_EQ(0, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); const std::string str = logLine.GetLogMessage(); EXPECT_EQ("(null)", str); // no need to print string of x'es EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } TEST_F(custom_types_Test, CopyConstructible_IsNullptrWithCustomFormat_PrintNull) { { LogLine logLine = GetLogLine("{:?nullptr}"); { const CopyConstructible* arg = nullptr; ASSERT_EQ(0, g_instancesCreated); ASSERT_EQ(0, g_copyConstructorCalled); ASSERT_EQ(0, g_moveConstructorCalled); ASSERT_EQ(0, g_destructorCalled); logLine << arg; EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); // force an internal buffer re-allocation logLine << std::string(256, 'x'); EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); const std::string str = logLine.GetLogMessage(); EXPECT_EQ("nullptr", str); // no need to print string of x'es EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } EXPECT_EQ(0, g_instancesCreated); EXPECT_EQ(0, g_copyConstructorCalled); EXPECT_EQ(0, g_moveConstructorCalled); EXPECT_EQ(0, g_destructorCalled); } } // namespace llamalog::test
29.078677
111
0.751549
mbeckh
9f6ef8242a0a780ac9eba841cb7f4307d495fcf5
826
cpp
C++
landscaper/src/physics.cpp
llGuy/landscaper
7b9874c73bd7f5f07a340b9043fdeace032b6c49
[ "MIT" ]
null
null
null
landscaper/src/physics.cpp
llGuy/landscaper
7b9874c73bd7f5f07a340b9043fdeace032b6c49
[ "MIT" ]
null
null
null
landscaper/src/physics.cpp
llGuy/landscaper
7b9874c73bd7f5f07a340b9043fdeace032b6c49
[ "MIT" ]
null
null
null
#include "physics.h" #include "detail.h" physics_handler::physics_handler(void) : gravity_at_sea(-10.5f) { } //auto physics_handler::move(entity & ent, action a, f32 td) -> void //{ /*using detail::up; ent.momentum = glm::vec3(0.0f); glm::vec3 lateral_dir = { ent.direction.x, 0, ent.direction.z }; switch (a) { case action::forward: { ent.momentum = glm::normalize(lateral_dir); break; } case action::back: { ent.momentum = glm::normalize(-lateral_dir); break; } case action::up: { ent.momentum = up; break; } case action::down: { ent.momentum = -up; break; } case action::left: { ent.momentum = glm::normalize(-glm::cross(lateral_dir, up)); break; } case action::right: { ent.momentum = glm::normalize(glm::cross(lateral_dir, up)); break; } } ent.position += ent.momentum * ent.speed * 20.0f * td;*/ //}
28.482759
91
0.664649
llGuy
9f7158aa0fcab43d6d2482e15e7f841fc5ebbafc
619
cpp
C++
src/scene/encounter/encounter.cpp
selcia-eremeev/chen
96a2f4fbe444b26668983fb4c3f360d1a22cd2f7
[ "MIT" ]
1
2021-03-22T16:03:24.000Z
2021-03-22T16:03:24.000Z
src/scene/encounter/encounter.cpp
selcia-eremeev/chen
96a2f4fbe444b26668983fb4c3f360d1a22cd2f7
[ "MIT" ]
9
2021-03-23T20:08:51.000Z
2021-03-27T20:44:09.000Z
src/scene/encounter/encounter.cpp
selcia-eremeev/chen
96a2f4fbe444b26668983fb4c3f360d1a22cd2f7
[ "MIT" ]
null
null
null
#include "scene/encounter/encounter.hpp" int Encounter::Initialize(void) { RESOURCES->LoadGraph("encounter", "resources\\movies\\encounter.mp4"); DxLib::PlayMovieToGraph(RESOURCES->graphics["encounter"]); return 0; } int Encounter::Update(void) { if (!DxLib::GetMovieStateToGraph(RESOURCES->graphics["encounter"])) { DxLib::SetDrawBright(0, 0, 0); SCENEMGR->scene.push(std::make_shared<Battle>()); SCENEMGR->scene.top()->Initialize(); } return 0; } int Encounter::Render(void) { DxLib::DrawGraph(0, 0, RESOURCES->graphics["encounter"], FALSE); return 0; } int Encounter::Terminate(void) { return 0; }
24.76
71
0.712439
selcia-eremeev
9f723d70c30d7ace2c3e0b32212f2912f333c314
14,865
cpp
C++
qt-creator-opensource-src-4.6.1/src/plugins/debugger/debuggerkitinformation.cpp
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
5
2018-12-22T14:49:13.000Z
2022-01-13T07:21:46.000Z
qt-creator-opensource-src-4.6.1/src/plugins/debugger/debuggerkitinformation.cpp
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
null
null
null
qt-creator-opensource-src-4.6.1/src/plugins/debugger/debuggerkitinformation.cpp
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
8
2018-07-17T03:55:48.000Z
2021-12-22T06:37:53.000Z
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3 as published by the Free Software ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** ****************************************************************************/ #include "debuggerkitinformation.h" #include "debuggeritemmanager.h" #include "debuggeritem.h" #include "debuggerkitconfigwidget.h" #include <projectexplorer/toolchain.h> #include <projectexplorer/projectexplorerconstants.h> #include <utils/environment.h> #include <utils/fileutils.h> #include <utils/macroexpander.h> #include <utils/qtcassert.h> #include <QFileInfo> #include <utility> using namespace ProjectExplorer; using namespace Utils; namespace Debugger { // -------------------------------------------------------------------------- // DebuggerKitInformation // -------------------------------------------------------------------------- DebuggerKitInformation::DebuggerKitInformation() { setObjectName(QLatin1String("DebuggerKitInformation")); setId(DebuggerKitInformation::id()); setPriority(28000); } QVariant DebuggerKitInformation::defaultValue(const Kit *k) const { const Abi toolChainAbi = ToolChainKitInformation::targetAbi(k); const Utils::FileNameList paths = Environment::systemEnvironment().path(); QVariant nextBestFit; foreach (const DebuggerItem &item, DebuggerItemManager::debuggers()) { foreach (const Abi targetAbi, item.abis()) { if (targetAbi.isCompatibleWith(toolChainAbi)) { if (paths.contains(item.command())) return item.id(); // prefer debuggers found in PATH over those found elsewhere if (nextBestFit.isNull()) nextBestFit = item.id(); } } } return nextBestFit; } void DebuggerKitInformation::setup(Kit *k) { QTC_ASSERT(k, return); // This can be anything (Id, binary path, "auto") // With 3.0 we have: // <value type="QString" key="Debugger.Information">{75ecf347-f221-44c3-b613-ea1d29929cd4}</value> // Before we had: // <valuemap type="QVariantMap" key="Debugger.Information"> // <value type="QString" key="Binary">/data/dev/debugger/gdb-git/gdb/gdb</value> // <value type="int" key="EngineType">1</value> // </valuemap> // Or for force auto-detected CDB // <valuemap type="QVariantMap" key="Debugger.Information"> // <value type="QString" key="Binary">auto</value> // <value type="int" key="EngineType">4</value> // </valuemap> const QVariant rawId = k->value(DebuggerKitInformation::id()); const Abi tcAbi = ToolChainKitInformation::targetAbi(k); // Get the best of the available debugger matching the kit's toolchain. // The general idea is to find an item that exactly matches what // is stored in the kit information, but also accept item based // on toolchain matching as fallback with a lower priority. DebuggerItem bestItem; DebuggerItem::MatchLevel bestLevel = DebuggerItem::DoesNotMatch; const Environment systemEnvironment = Environment::systemEnvironment(); foreach (const DebuggerItem &item, DebuggerItemManager::debuggers()) { DebuggerItem::MatchLevel level = DebuggerItem::DoesNotMatch; if (rawId.isNull()) { // Initial setup of a kit. level = item.matchTarget(tcAbi); // Hack to prefer a debugger from PATH (e.g. autodetected) over other matches. // This improves the situation a bit if a cross-compilation tool chain has the // same ABI as the host. if (level == DebuggerItem::MatchesPerfectly && systemEnvironment.path().contains(item.command().parentDir())) { level = DebuggerItem::MatchesPerfectlyInPath; } } else if (rawId.type() == QVariant::String) { // New structure. if (item.id() == rawId) { // Detected by ID. level = DebuggerItem::MatchesPerfectly; } else { // This item does not match by ID, and is an unlikely candidate. // However, consider using it as fallback if the tool chain fits. level = std::min(item.matchTarget(tcAbi), DebuggerItem::MatchesSomewhat); } } else { // Old structure. const QMap<QString, QVariant> map = rawId.toMap(); QString binary = map.value(QLatin1String("Binary")).toString(); if (binary == QLatin1String("auto")) { // This is close to the "new kit" case, except that we know // an engine type. DebuggerEngineType autoEngine = DebuggerEngineType(map.value(QLatin1String("EngineType")).toInt()); if (item.engineType() == autoEngine) { // Use item if host toolchain fits, but only as fallback. level = std::min(item.matchTarget(tcAbi), DebuggerItem::MatchesSomewhat); } } else { // We have an executable path. FileName fileName = FileName::fromUserInput(binary); if (item.command() == fileName) { // And it's is the path of this item. level = std::min(item.matchTarget(tcAbi), DebuggerItem::MatchesSomewhat); } else { // This item does not match by filename, and is an unlikely candidate. // However, consider using it as fallback if the tool chain fits. level = std::min(item.matchTarget(tcAbi), DebuggerItem::MatchesSomewhat); } } } if (level > bestLevel) { bestLevel = level; bestItem = item; } } // Use the best id we found, or an invalid one. k->setValue(DebuggerKitInformation::id(), bestLevel != DebuggerItem::DoesNotMatch ? bestItem.id() : QVariant()); } // This handles the upgrade path from 2.8 to 3.0 void DebuggerKitInformation::fix(Kit *k) { QTC_ASSERT(k, return); // This can be Id, binary path, but not "auto" anymore. const QVariant rawId = k->value(DebuggerKitInformation::id()); if (rawId.isNull()) // No debugger set, that is fine. return; if (rawId.type() == QVariant::String) { if (!DebuggerItemManager::findById(rawId)) { qWarning("Unknown debugger id %s in kit %s", qPrintable(rawId.toString()), qPrintable(k->displayName())); k->setValue(DebuggerKitInformation::id(), QVariant()); } return; // All fine (now). } QMap<QString, QVariant> map = rawId.toMap(); QString binary = map.value(QLatin1String("Binary")).toString(); if (binary == QLatin1String("auto")) { // This should not happen as "auto" is handled by setup() already. QTC_CHECK(false); k->setValue(DebuggerKitInformation::id(), QVariant()); return; } FileName fileName = FileName::fromUserInput(binary); const DebuggerItem *item = DebuggerItemManager::findByCommand(fileName); if (!item) { qWarning("Debugger command %s invalid in kit %s", qPrintable(binary), qPrintable(k->displayName())); k->setValue(DebuggerKitInformation::id(), QVariant()); return; } k->setValue(DebuggerKitInformation::id(), item->id()); } // Check the configuration errors and return a flag mask. Provide a quick check and // a verbose one with a list of errors. DebuggerKitInformation::ConfigurationErrors DebuggerKitInformation::configurationErrors(const Kit *k) { QTC_ASSERT(k, return NoDebugger); const DebuggerItem *item = DebuggerKitInformation::debugger(k); if (!item) return NoDebugger; if (item->command().isEmpty()) return NoDebugger; ConfigurationErrors result = NoConfigurationError; const QFileInfo fi = item->command().toFileInfo(); if (!fi.exists() || fi.isDir()) result |= DebuggerNotFound; else if (!fi.isExecutable()) result |= DebuggerNotExecutable; const Abi tcAbi = ToolChainKitInformation::targetAbi(k); if (item->matchTarget(tcAbi) == DebuggerItem::DoesNotMatch) { // currently restricting the check to desktop devices, may be extended to all device types const IDevice::ConstPtr device = DeviceKitInformation::device(k); if (device && device->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE) result |= DebuggerDoesNotMatch; } if (!fi.exists() || fi.isDir()) { if (item->engineType() == NoEngineType) return NoDebugger; // We need an absolute path to be able to locate Python on Windows. if (item->engineType() == GdbEngineType) { if (tcAbi.os() == Abi::WindowsOS && !fi.isAbsolute()) result |= DebuggerNeedsAbsolutePath; } } return result; } const DebuggerItem *DebuggerKitInformation::debugger(const Kit *kit) { QTC_ASSERT(kit, return nullptr); const QVariant id = kit->value(DebuggerKitInformation::id()); return DebuggerItemManager::findById(id); } StandardRunnable DebuggerKitInformation::runnable(const Kit *kit) { StandardRunnable runnable; if (const DebuggerItem *item = debugger(kit)) { runnable.executable = item->command().toString(); runnable.workingDirectory = item->workingDirectory().toString(); runnable.environment = Utils::Environment::systemEnvironment(); runnable.environment.set("LC_NUMERIC", "C"); } return runnable; } QList<Task> DebuggerKitInformation::validateDebugger(const Kit *k) { QList<Task> result; const ConfigurationErrors errors = configurationErrors(k); if (errors == NoConfigurationError) return result; QString path; if (const DebuggerItem *item = debugger(k)) path = item->command().toUserOutput(); const Core::Id id = ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM; if (errors & NoDebugger) result << Task(Task::Warning, tr("No debugger set up."), FileName(), -1, id); if (errors & DebuggerNotFound) result << Task(Task::Error, tr("Debugger \"%1\" not found.").arg(path), FileName(), -1, id); if (errors & DebuggerNotExecutable) result << Task(Task::Error, tr("Debugger \"%1\" not executable.").arg(path), FileName(), -1, id); if (errors & DebuggerNeedsAbsolutePath) { const QString message = tr("The debugger location must be given as an " "absolute path (%1).").arg(path); result << Task(Task::Error, message, FileName(), -1, id); } if (errors & DebuggerDoesNotMatch) { const QString message = tr("The ABI of the selected debugger does not " "match the toolchain ABI."); result << Task(Task::Warning, message, FileName(), -1, id); } return result; } KitConfigWidget *DebuggerKitInformation::createConfigWidget(Kit *k) const { return new Internal::DebuggerKitConfigWidget(k, this); } void DebuggerKitInformation::addToMacroExpander(Kit *kit, MacroExpander *expander) const { QTC_ASSERT(kit, return); expander->registerVariable("Debugger:Name", tr("Name of Debugger"), [kit]() -> QString { const DebuggerItem *item = debugger(kit); return item ? item->displayName() : tr("Unknown debugger"); }); expander->registerVariable("Debugger:Type", tr("Type of Debugger Backend"), [kit]() -> QString { const DebuggerItem *item = debugger(kit); return item ? item->engineTypeName() : tr("Unknown debugger type"); }); expander->registerVariable("Debugger:Version", tr("Debugger"), [kit]() -> QString { const DebuggerItem *item = debugger(kit); return item && !item->version().isEmpty() ? item->version() : tr("Unknown debugger version"); }); expander->registerVariable("Debugger:Abi", tr("Debugger"), [kit]() -> QString { const DebuggerItem *item = debugger(kit); return item && !item->abis().isEmpty() ? item->abiNames().join(QLatin1Char(' ')) : tr("Unknown debugger ABI"); }); } KitInformation::ItemList DebuggerKitInformation::toUserOutput(const Kit *k) const { return ItemList() << qMakePair(tr("Debugger"), displayString(k)); } DebuggerEngineType DebuggerKitInformation::engineType(const Kit *k) { const DebuggerItem *item = debugger(k); QTC_ASSERT(item, return NoEngineType); return item->engineType(); } QString DebuggerKitInformation::displayString(const Kit *k) { const DebuggerItem *item = debugger(k); if (!item) return tr("No Debugger"); QString binary = item->command().toUserOutput(); QString name = tr("%1 Engine").arg(item->engineTypeName()); return binary.isEmpty() ? tr("%1 <None>").arg(name) : tr("%1 using \"%2\"").arg(name, binary); } void DebuggerKitInformation::setDebugger(Kit *k, const QVariant &id) { // Only register reasonably complete debuggers. QTC_ASSERT(DebuggerItemManager::findById(id), return); QTC_ASSERT(k, return); k->setValue(DebuggerKitInformation::id(), id); } Core::Id DebuggerKitInformation::id() { return "Debugger.Information"; } } // namespace Debugger
39.325397
116
0.606054
kevinlq
9f7a0f5775fb937a8d1625bd2c3a6644c4f2aa28
9,343
cpp
C++
src/craft/interfaces/WorldInterface.cpp
dkoeplin/Craft
87fda0d7c072820f40ffea379986f0adf421849f
[ "MIT" ]
null
null
null
src/craft/interfaces/WorldInterface.cpp
dkoeplin/Craft
87fda0d7c072820f40ffea379986f0adf421849f
[ "MIT" ]
null
null
null
src/craft/interfaces/WorldInterface.cpp
dkoeplin/Craft
87fda0d7c072820f40ffea379986f0adf421849f
[ "MIT" ]
null
null
null
#include "WorldInterface.h" #include <cmath> #include "GL/glew.h" #include "GLFW/glfw3.h" #include "craft/draw/Crosshairs.h" #include "craft/draw/Render.h" #include "craft/draw/Text.h" #include "craft/interfaces/DebugInterface.h" #include "craft/items/Item.h" #include "craft/physics/Physics.h" #include "craft/player/Player.h" #include "craft/session/Session.h" #include "craft/session/Window.h" #include "craft/util/Logging.h" #include "craft/world/World.h" WorldInterface::WorldInterface(Session *session, World *world, Player *player) : Interface(session), world(world), player(player) { REQUIRE(player, "[WorldInterface] Player was null"); REQUIRE(world, "[WorldInterface] World was null"); REQUIRE(session, "[WorldInterface] Session was null"); } bool WorldInterface::on_mouse_button(MouseButton button, MouseAction action, ButtonMods mods) { if (action != MouseAction::Press) { return true; } bool control = mods.control() || mods.super(); switch (button) { case MouseButton::Left: { if (control) on_right_click(); else on_left_click(); return true; } case MouseButton::Right: { if (control) on_light(); else on_right_click(); return true; } case MouseButton::Middle: { on_middle_click(); return true; } } } bool WorldInterface::on_scroll(double dx, double dy) { static double ypos = 0; ypos += dy; if (ypos < -SCROLL_THRESHOLD) { player->item_index = (player->item_index + 1) % item_count; ypos = 0; } if (ypos > SCROLL_THRESHOLD) { player->item_index = (player->item_index == 0) ? item_count - 1 : player->item_index - 1; ypos = 0; } return true; } bool WorldInterface::on_key_press(Key key, int scancode, ButtonMods mods) { bool control = mods.control() || mods.super(); if (key == Key::Escape) { session->window()->defocus(); return true; } else if (key == player->keys.Debug) { session->get_or_open_interface<DebugInterface>(); return true; } else if (key == player->keys.Chat) { session->suppress_next_char(); session->show_chat(/*cmd*/ false); return true; } else if (key == player->keys.Command) { session->suppress_next_char(); session->show_chat(/*cmd*/ true); return true; } else if (key == player->keys.Sign) { // TODO: sign window /*if (BlockFace block = world->hit_test_face(player->state)) { session->set_sign(block.x, block.y, block.z, block.face, typing_buffer + 1); }*/ return true; } else if (key == Key::Enter) { if (control) { on_right_click(); } else { on_left_click(); } return true; } else if (key == player->keys.Ortho) { player->ortho = (player->ortho != 0) ? 0 : 64; } else if (key == player->keys.Zoom) { player->fov = (player->fov <= 15) ? 75 : player->fov - 30; } else if (key == player->keys.Fly) { player->flying = !player->flying; return true; } else if (key.value >= '1' && key.value <= '9') { player->item_index = key.value - '1'; return true; } else if (key == Key::Key0) { player->item_index = 9; return true; } else if (key == player->keys.Next) { player->item_index = (player->item_index + 1) % item_count; return true; } else if (key == player->keys.Prev) { player->item_index = (player->item_index == 0) ? item_count - 1 : player->item_index - 1; return true; } else if (key == player->keys.Observe) { observe1 = world->next_player(observe1); return true; } else if (key == player->keys.Inset) { observe2 = world->next_player(observe2); return true; } return false; } bool WorldInterface::mouse_movement(double x, double y, double dx, double dy, double dt) { State &s = player->state; s.rx += dx * MOVE_SENSITIVITY; if (INVERT_MOUSE) { s.ry += dy * MOVE_SENSITIVITY; } else { s.ry -= dy * MOVE_SENSITIVITY; } if (s.rx < 0) { s.rx += RADIANS(360); } if (s.rx >= RADIANS(360)) { s.rx -= RADIANS(360); } s.ry = MAX(s.ry, -RADIANS(90)); s.ry = MIN(s.ry, RADIANS(90)); return true; } bool WorldInterface::held_keys(double dt) { int sz = 0; int sx = 0; float m = dt * KEY_SENSITIVITY; State &state = player->state; if (is_key_pressed(player->keys.Forward)) sz--; if (is_key_pressed(player->keys.Backward)) sz++; if (is_key_pressed(player->keys.Left)) sx--; if (is_key_pressed(player->keys.Right)) sx++; if (is_key_pressed(Key::Left)) state.rx -= m; if (is_key_pressed(Key::Right)) state.rx += m; if (is_key_pressed(Key::Up)) state.ry += m; if (is_key_pressed(Key::Down)) state.ry -= m; FVec3 vec = get_motion_vector(player->flying, sz, sx, state.rx, state.ry); float accel = player->flying ? FLYING_SPEED*FLYING_SPEED : WALKING_SPEED*WALKING_SPEED; float max_speed = player->flying ? FLYING_SPEED : WALKING_SPEED; float current_speed = player->velocity.len(); if ((sx != 0 || sz != 0) && current_speed < max_speed) { player->accel = vec * accel; } else if (sx == 0 && sz == 0 && current_speed > 0) { auto a = player->velocity / current_speed; player->accel = a * -accel; } else { player->accel = {}; } if (is_key_pressed(player->keys.Jump)) { if (player->flying) { player->accel.y = max_speed; } else if (player->velocity.y == 0) { player->accel.y = 8; } else { player->accel.y = 0; } } return true; } void WorldInterface::on_light() { Block block = world->hit_test(player->state); if (block.y > 0 && block.y < 256 && is_destructable(block.w)) { session->toggle_light(block); } } void WorldInterface::on_left_click() { Block block = world->hit_test(player->state); if (block.y > 0 && block.y < 256 && is_destructable(block.w)) { session->set_block({block.loc(), 0}); if (is_plant(world->get_block_material(block))) { session->set_block({block.loc(), 0}); } } } void WorldInterface::on_right_click() { Block block = world->hit_test(player->state); if (block.y > 0 && block.y < 256 && is_obstacle(block.w)) { if (!player_intersects_block(2, player->state, block)) { session->set_block({block, items[player->item_index]}); } } } void WorldInterface::on_middle_click() { Block block = world->hit_test(player->state); for (int i = 0; i < item_count; i++) { if (items[i] == block.w) { player->item_index = i; break; } } } bool WorldInterface::render(bool top) { int height = window->height(); int width = window->width(); int scale = window->scale(); float ts = 0.0f; // RENDER 3-D SCENE // Player *target = observe1 ? observe1 : player; glClear(GL_COLOR_BUFFER_BIT); glClear(GL_DEPTH_BUFFER_BIT); session->render_sky(Render::sky(), target, width, height); glClear(GL_DEPTH_BUFFER_BIT); session->render_chunks(Render::block(), target, width, height); session->render_signs(Render::text(), target, width, height); session->render_players(Render::text(), target, width, height); if (SHOW_WIREFRAME) { session->render_wireframe(Render::line(), target, width, height); } glClear(GL_DEPTH_BUFFER_BIT); // RENDER HUD // if (SHOW_CROSSHAIRS) { render_crosshairs(window, Render::line()); } if (SHOW_ITEM) { render_item(Render::block(), world, target); } if (SHOW_PLAYER_NAMES) { if (target != player) { render_text(window, Render::text(), Justify::Center, width / 2.0f, ts, ts, target->name); } if (auto *other = world->closest_player_in_view(target)) { render_text(window, Render::text(), Justify::Center, width / 2, height / 2 - ts - 24, ts, other->name); } } // RENDER PICTURE IN PICTURE // if (observe2 && observe2 != player) { float pw = 256 * scale; float ph = 256 * scale; int offset = 32 * scale; int pad = 3 * scale; int sw = pw + pad * 2; int sh = ph + pad * 2; glEnable(GL_SCISSOR_TEST); glScissor(width - sw - offset + pad, offset - pad, sw, sh); glClear(GL_COLOR_BUFFER_BIT); glDisable(GL_SCISSOR_TEST); glClear(GL_DEPTH_BUFFER_BIT); glViewport(width - pw - offset, offset, pw, ph); session->render_sky(Render::sky(), observe2, pw, ph); glClear(GL_DEPTH_BUFFER_BIT); session->render_chunks(Render::block(), observe2, pw, ph); session->render_signs(Render::text(), observe2, pw, ph); session->render_players(Render::block(), observe2, pw, ph); glClear(GL_DEPTH_BUFFER_BIT); if (SHOW_PLAYER_NAMES) { render_text(window, Render::text(), Justify::Center, pw / 2, ts, ts, observe2->name); } } return false; }
31.887372
115
0.582361
dkoeplin
9f7ca4bc381d80d3d88b2cc91ff8935038e8ee96
17,531
cpp
C++
Peridigm/Code/Energy_damage_criterion/src/damage/Peridigm_EnergyReleaseDamageModel.cpp
oldninja/PeriDoX
f31bccc7b8ea60cd814d00732aebdbbe876a2ac7
[ "BSD-3-Clause" ]
null
null
null
Peridigm/Code/Energy_damage_criterion/src/damage/Peridigm_EnergyReleaseDamageModel.cpp
oldninja/PeriDoX
f31bccc7b8ea60cd814d00732aebdbbe876a2ac7
[ "BSD-3-Clause" ]
null
null
null
Peridigm/Code/Energy_damage_criterion/src/damage/Peridigm_EnergyReleaseDamageModel.cpp
oldninja/PeriDoX
f31bccc7b8ea60cd814d00732aebdbbe876a2ac7
[ "BSD-3-Clause" ]
null
null
null
/*! \file Peridigm_EnergyReleaseDamageModel.cpp */ //@HEADER // ************************************************************************ // // Peridigm // Copyright (2011) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retains certain rights in this software. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // 3. Neither the name of the Corporation nor the names of the // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // Questions? // David J. Littlewood djlittl@sandia.gov // John A. Mitchell jamitch@sandia.gov // Michael L. Parks mlparks@sandia.gov // Stewart A. Silling sasilli@sandia.gov // // ************************************************************************ ////////////////////////////////////////////////////////////////////////////////////// // Routine developed for Peridigm by // DLR Composite Structures and Adaptive Systems // __/|__ // /_/_/_/ // www.dlr.de/fa/en |/ DLR ////////////////////////////////////////////////////////////////////////////////////// // Questions? // Christian Willberg christian.willberg@dlr.de // Martin Raedel martin.raedel@dlr.de ////////////////////////////////////////////////////////////////////////////////////// //@HEADER #include "Peridigm_EnergyReleaseDamageModel.hpp" #include "Peridigm_Field.hpp" #include "material_utilities.h" #include <thread> #include <Teuchos_Assert.hpp> #include <Epetra_SerialComm.h> #include <Sacado.hpp> #include <boost/math/special_functions/fpclassify.hpp> using namespace std; PeridigmNS::EnergyReleaseDamageModel::EnergyReleaseDamageModel(const Teuchos::ParameterList& params) : DamageModel(params), m_applyThermalStrains(false), m_modelCoordinatesFieldId(-1), m_coordinatesFieldId(-1), m_damageFieldId(-1), m_bondDamageFieldId(-1), m_deltaTemperatureFieldId(-1), m_dilatationFieldId(-1), m_weightedVolumeFieldId(-1), m_horizonFieldId(-1), m_damageModelFieldId(-1), m_OMEGA(PeridigmNS::InfluenceFunction::self().getInfluenceFunction()) { if (params.isParameter("Critical Energy")) { m_criticalEnergyTension = params.get<double>("Critical Energy Tension"); m_criticalEnergyCompression = params.get<double>("Critical Energy Compression"); m_criticalEnergyShear = params.get<double>("Critical Energy Shear"); } else { if (params.isParameter("Critical Energy Tension")) m_criticalEnergyTension = params.get<double>("Critical Energy Tension"); else m_criticalEnergyTension = -1.0; if (params.isParameter("Critical Energy Compression")) m_criticalEnergyCompression = params.get<double>("Critical Energy Compression"); else m_criticalEnergyCompression = -1.0; if (params.isParameter("Critical Energy Shear")) m_criticalEnergyShear = params.get<double>("Critical Energy Shear"); else m_criticalEnergyShear = -1.0; m_type = 1; if (params.isType<string>("Energy Criterion")) m_type = 1; if (params.isType<string>("Power Law")) m_type = 2; if (params.isType<string>("Separated")) m_type = 3; } m_pi = 3.14159; if (params.isParameter("Thermal Expansion Coefficient")) { m_alpha = params.get<double>("Thermal Expansion Coefficient"); m_applyThermalStrains = true; } PeridigmNS::FieldManager& fieldManager = PeridigmNS::FieldManager::self(); m_modelCoordinatesFieldId = fieldManager.getFieldId("Model_Coordinates"); m_coordinatesFieldId = fieldManager.getFieldId("Coordinates"); m_volumeFieldId = fieldManager.getFieldId(PeridigmNS::PeridigmField::ELEMENT, PeridigmField::SCALAR, PeridigmField::CONSTANT, "Volume"); m_weightedVolumeFieldId = fieldManager.getFieldId(PeridigmField::ELEMENT, PeridigmField::SCALAR, PeridigmField::CONSTANT, "Weighted_Volume"); m_dilatationFieldId = fieldManager.getFieldId(PeridigmField::ELEMENT, PeridigmField::SCALAR, PeridigmField::TWO_STEP, "Dilatation"); m_damageFieldId = fieldManager.getFieldId(PeridigmNS::PeridigmField::ELEMENT, PeridigmNS::PeridigmField::SCALAR, PeridigmNS::PeridigmField::TWO_STEP, "Damage"); m_bondDamageFieldId = fieldManager.getFieldId(PeridigmNS::PeridigmField::BOND, PeridigmNS::PeridigmField::SCALAR, PeridigmNS::PeridigmField::TWO_STEP, "Bond_Damage"); m_horizonFieldId = fieldManager.getFieldId(PeridigmNS::PeridigmField::ELEMENT, PeridigmNS::PeridigmField::SCALAR, PeridigmNS::PeridigmField::CONSTANT, "Horizon"); m_damageModelFieldId = fieldManager.getFieldId(PeridigmNS::PeridigmField::NODE, PeridigmNS::PeridigmField::VECTOR, PeridigmNS::PeridigmField::TWO_STEP, "Damage_Model_Data"); m_fieldIds.push_back(m_volumeFieldId); m_fieldIds.push_back(m_modelCoordinatesFieldId); m_fieldIds.push_back(m_coordinatesFieldId); m_fieldIds.push_back(m_weightedVolumeFieldId); m_fieldIds.push_back(m_dilatationFieldId); m_fieldIds.push_back(m_volumeFieldId); m_fieldIds.push_back(m_damageFieldId); m_fieldIds.push_back(m_damageModelFieldId); m_fieldIds.push_back(m_bondDamageFieldId); m_fieldIds.push_back(m_horizonFieldId); } PeridigmNS::EnergyReleaseDamageModel::~EnergyReleaseDamageModel() { } void PeridigmNS::EnergyReleaseDamageModel::initialize(const double dt, const int numOwnedPoints, const int* ownedIDs, const int* neighborhoodList, PeridigmNS::DataManager& dataManager) const { double *damage, *bondDamage; dataManager.getData(m_damageFieldId, PeridigmField::STEP_NP1)->ExtractView(&damage); dataManager.getData(m_bondDamageFieldId, PeridigmField::STEP_NP1)->ExtractView(&bondDamage); // Initialize damage to zero int neighborhoodListIndex(0); int bondIndex(0); int nodeId, numNeighbors; int iID, iNID; for (iID = 0; iID < numOwnedPoints; ++iID) { nodeId = ownedIDs[iID]; damage[nodeId] = 0.0; numNeighbors = neighborhoodList[neighborhoodListIndex++]; neighborhoodListIndex += numNeighbors; for (iNID = 0; iNID < numNeighbors; ++iNID) { bondDamage[bondIndex] = 0.0; bondIndex += 1; } } } void PeridigmNS::EnergyReleaseDamageModel::computeDamage(const double dt, const int numOwnedPoints, const int* ownedIDs, const int* neighborhoodList, PeridigmNS::DataManager& dataManager) const { double *x, *y, *damage, *bondDamageNP1, *horizon; double *cellVolume, *weightedVolume, *damageModel; double criticalEnergyTension(-1.0), criticalEnergyCompression(-1.0), criticalEnergyShear(-1.0); // for temperature dependencies easy to extent double *deltaTemperature = NULL; double m_alpha = 0; dataManager.getData(m_damageFieldId, PeridigmField::STEP_NP1)->ExtractView(&damage); dataManager.getData(m_modelCoordinatesFieldId, PeridigmField::STEP_NONE)->ExtractView(&x); dataManager.getData(m_coordinatesFieldId, PeridigmField::STEP_NP1)->ExtractView(&y); dataManager.getData(m_weightedVolumeFieldId, PeridigmField::STEP_NONE)->ExtractView(&weightedVolume); dataManager.getData(m_volumeFieldId, PeridigmField::STEP_NONE)->ExtractView(&cellVolume); ////////////////////////////////////////////////////////////// // transfer of data is done in ComputeDilation --> PeridigmMaterial.cpp ////////////////////////////////////////////////////////////// dataManager.getData(m_damageModelFieldId, PeridigmField::STEP_NP1)->ExtractView(&damageModel); dataManager.getData(m_horizonFieldId, PeridigmField::STEP_NONE)->ExtractView(&horizon); //////////////////////////////////// //////////////////////////////////// // transfer of data is done in ComputeDilation --> PeridigmMaterial.cpp dataManager.getData(m_bondDamageFieldId, PeridigmField::STEP_NP1)->ExtractView(&bondDamageNP1); //////////////////////////////////////////////////// double trialDamage(0.0); int neighborhoodListIndex(0), bondIndex(0); int nodeId, numNeighbors, neighborID, iID, iNID; double totalDamage; double alphaP1, alphaP2; double nodeInitialX[3], nodeCurrentX[3], relativeExtension(0.0); double bondEnergyIsotropic(0.0), bondEnergyDeviatoric(0.0); double omegaP1, omegaP2; double critDev, critIso, critComp; double BulkMod1, BulkMod2; double degradationFactor = 1.0; // Optional parameter if bond should be degradated and not fully destroyed instantaneously double avgHorizon, quadhorizon; //--------------------------- // INITIALIZE PROCESS STEP t //--------------------------- if (m_criticalEnergyTension > 0.0) criticalEnergyTension = m_criticalEnergyTension; if (m_criticalEnergyCompression > 0.0) criticalEnergyCompression = m_criticalEnergyCompression; if (m_criticalEnergyShear > 0.0) criticalEnergyShear = m_criticalEnergyShear; // Update the bond damage // Break bonds if the bond energy potential is greater than the critical bond energy potential //--------------------------- // DAMAGE ANALYSIS //--------------------------- bondIndex = 0; for (iID = 0; iID < numOwnedPoints; ++iID) { numNeighbors = neighborhoodList[neighborhoodListIndex++]; nodeId = ownedIDs[iID]; nodeInitialX[0] = x[nodeId*3]; nodeInitialX[1] = x[nodeId*3+1]; nodeInitialX[2] = x[nodeId*3+2]; nodeCurrentX[0] = y[nodeId*3]; nodeCurrentX[1] = y[nodeId*3+1]; nodeCurrentX[2] = y[nodeId*3+2]; double dilatationP1 = damageModel[3*nodeId]; alphaP1 = 15.0 * damageModel[3*nodeId+2]; // weightedVolume is already included in --> Perdigm_Material.cpp; for (iNID = 0; iNID < numNeighbors; ++iNID) { trialDamage = 0.0; neighborID = neighborhoodList[neighborhoodListIndex++]; double zeta = distance(nodeInitialX[0], nodeInitialX[1], nodeInitialX[2], x[neighborID*3], x[neighborID*3+1], x[neighborID*3+2]); double dY = distance(nodeCurrentX[0], nodeCurrentX[1], nodeCurrentX[2], y[neighborID*3], y[neighborID*3+1], y[neighborID*3+2]); relativeExtension = (dY - zeta)/zeta; // the direction switches between both bonds. This results in a switch of the forces // as well. Therefore, all forces and bond deformations are normalized. double eP = dY - zeta; //double normZeta = sqrt(zeta*zeta); alphaP2 = 15.0 * damageModel[3*neighborID+2]; // weightedVolume is already included in --> Perdigm_Material.cpp; BulkMod1 = damageModel[3*nodeId+1]; // weightedVolume is already included in the variable --> Perdigm_Material.cpp; BulkMod2 = damageModel[3*neighborID+1]; // weightedVolume is already included in the variable --> Perdigm_Material.cpp; double dilatationP2 = damageModel[3*neighborID]; omegaP1 = MATERIAL_EVALUATION::scalarInfluenceFunction(zeta, horizon[nodeId]); omegaP2 = MATERIAL_EVALUATION::scalarInfluenceFunction(zeta, horizon[neighborID]); double eiP1 = dilatationP1 * zeta / 3.0; double eiP2 = dilatationP2 * zeta / 3.0; double tiP1 = 3*BulkMod1*omegaP1*dilatationP1*zeta; double tiP2 = 3*BulkMod2*omegaP2*dilatationP2*zeta; double edP1 = eP - sqrt(eiP1*eiP1); double edP2 = eP - sqrt(eiP2*eiP2); double tdP1 = omegaP1*alphaP1*edP1; double tdP2 = omegaP2*alphaP2*edP2; // absolute values of energy, because it is positive and coordinate errors are avoided. bondEnergyIsotropic = (1.0 - bondDamageNP1[bondIndex])*(sqrt(tiP1*eiP1*tiP1*eiP1) + sqrt(tiP2*eiP2*tiP2*eiP2)); bondEnergyDeviatoric = (1.0 - bondDamageNP1[bondIndex])*(sqrt(tdP1*edP1*tdP2*edP2) + sqrt(tdP2*edP2*tdP2*edP2)); // the average horizon is taken, if multiple horizons are used avgHorizon = 0.5*(horizon[nodeId]+horizon[neighborID]); // geometrical part of the energy value quadhorizon = 16.0 /( m_pi * avgHorizon * avgHorizon * avgHorizon * avgHorizon ); // the factor 16 can be split in three parts: // 4 comes from the integration from Foster et al. (2009) Journal for Multiscale Computational Engineering; // 2 comes from the force split motivated by the bond based formulation Bobaru et al. (2017) "Handbook of Peridynamik Modeling", page 48 ; // 2 comes from the energy formulation itself critIso = 0.0; if (relativeExtension>0&&criticalEnergyTension != -1.0){ critIso = (bondEnergyIsotropic/(criticalEnergyTension*quadhorizon)); } critDev = 0.0; if (criticalEnergyShear != -1.0){ critDev = (bondEnergyDeviatoric/(criticalEnergyShear*quadhorizon)); } critComp = 0.0; if (relativeExtension < 0.0 && criticalEnergyCompression != -1.0){ critComp = (bondEnergyIsotropic/(criticalEnergyCompression*quadhorizon)); critIso = 0.0; } if (m_type == 1){ // Energy Criterion by Foster et al.(2009) Journal for Multiscale Computational Engineering; double bondEnergy = sqrt((tdP1+tiP1)*(tdP1+tiP1)*eP*eP) + sqrt((tdP2 + tiP2)*(tdP2 + tiP2)*eP*eP); critIso = bondEnergy/(criticalEnergyTension*quadhorizon); if (m_criticalEnergyTension > 0.0 && critIso > 1.0 ) { trialDamage = bondDamageNP1[bondIndex] + degradationFactor; } } if (m_type == 2){// Power Law if (m_criticalEnergyTension > 0.0 &&critIso*critIso + critDev*critDev + critComp*critComp > 1.0) { trialDamage = bondDamageNP1[bondIndex] + degradationFactor; } } if (m_type == 3){ // Separated if (m_criticalEnergyTension > 0.0 &&critIso > 1.0) { trialDamage = bondDamageNP1[bondIndex] + degradationFactor; } if (m_criticalEnergyTension > 0.0 && critDev > 1.0) { trialDamage = bondDamageNP1[bondIndex] + degradationFactor; } if (m_criticalEnergyCompression > 0.0 && critComp > 1.0) { trialDamage = bondDamageNP1[bondIndex] + degradationFactor; } } if (trialDamage > bondDamageNP1[bondIndex]) { if (trialDamage>1)trialDamage = 1; bondDamageNP1[bondIndex] = trialDamage; } bondIndex += 1; } } // Update the element damage (percent of bonds broken) neighborhoodListIndex = 0; bondIndex = 0; for (iID = 0; iID < numOwnedPoints; ++iID) { nodeId = ownedIDs[iID]; numNeighbors = neighborhoodList[neighborhoodListIndex++]; //neighborhoodListIndex += numNeighbors; damageModel[3*nodeId] = 0.0; damageModel[3*nodeId+1] = 0.0; damageModel[3*nodeId+2] = 0.0; totalDamage = 0.0; for (iNID = 0; iNID < numNeighbors; ++iNID) { neighborID = neighborhoodList[neighborhoodListIndex++]; // must be zero to avoid synchronization errors damageModel[3*neighborID] = 0.0; damageModel[3*neighborID+1] = 0.0; damageModel[3*neighborID+2] = 0.0; totalDamage += bondDamageNP1[bondIndex]; bondIndex += 1; } if (numNeighbors > 0) totalDamage /= numNeighbors; else totalDamage = 0.0; damage[nodeId] = totalDamage; } }
44.951282
177
0.630825
oldninja
9f7cb6fbc5ccfadc1b4bcbd36dd33ee91a8f0976
2,166
cpp
C++
src/llri-vk/detail/queue.cpp
Rythe-Interactive/Rythe-LLRI
0bf9ff71c41b39f7189cbc5ebbf4a74420cedc05
[ "MIT" ]
2
2022-02-08T07:11:32.000Z
2022-02-08T08:10:31.000Z
src/llri-vk/detail/queue.cpp
Rythe-Interactive/Rythe-LLRI
0bf9ff71c41b39f7189cbc5ebbf4a74420cedc05
[ "MIT" ]
1
2022-02-14T18:26:31.000Z
2022-02-14T18:26:31.000Z
src/llri-vk/detail/queue.cpp
Rythe-Interactive/Rythe-LLRI
0bf9ff71c41b39f7189cbc5ebbf4a74420cedc05
[ "MIT" ]
null
null
null
/** * @file queue.cpp * Copyright (c) 2021 Leon Brands, Rythe Interactive * SPDX-License-Identifier: MIT */ #include <llri/llri.hpp> #include <llri-vk/utils.hpp> namespace llri { result Queue::impl_submit(const submit_desc& desc) { std::vector<VkCommandBuffer> buffers(desc.numCommandLists); for (size_t i = 0; i < desc.numCommandLists; i++) buffers[i] = static_cast<VkCommandBuffer>(desc.commandLists[i]->m_ptr); std::vector<VkSemaphore> waitSemaphores(desc.numWaitSemaphores); std::vector<VkPipelineStageFlags> waitSemaphoreStages(desc.numWaitSemaphores, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT); for (size_t i = 0; i < desc.numWaitSemaphores; i++) waitSemaphores[i] = static_cast<VkSemaphore>(desc.waitSemaphores[i]->m_ptr); std::vector<VkSemaphore> signalSemaphores(desc.numSignalSemaphores); for (size_t i = 0; i < desc.numSignalSemaphores; i++) signalSemaphores[i] = static_cast<VkSemaphore>(desc.signalSemaphores[i]->m_ptr); VkSubmitInfo info; info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; info.pNext = nullptr; info.commandBufferCount = desc.numCommandLists; info.pCommandBuffers = buffers.data(); info.waitSemaphoreCount = desc.numWaitSemaphores; info.pWaitSemaphores = waitSemaphores.data(); info.signalSemaphoreCount = desc.numSignalSemaphores; info.pSignalSemaphores = signalSemaphores.data(); info.pWaitDstStageMask = waitSemaphoreStages.data(); VkFence fence = VK_NULL_HANDLE; if (desc.fence != nullptr) { fence = static_cast<VkFence>(desc.fence->m_ptr); desc.fence->m_signaled = true; } const auto r = static_cast<VolkDeviceTable*>(m_device->m_functionTable)-> vkQueueSubmit(static_cast<VkQueue>(m_ptrs[0]), 1, &info, fence); return detail::mapVkResult(r); } result Queue::impl_waitIdle() { const auto r = static_cast<VolkDeviceTable*>(m_device->m_functionTable)->vkQueueWaitIdle(static_cast<VkQueue>(m_ptrs[0])); return detail::mapVkResult(r); } }
38
130
0.672207
Rythe-Interactive
9f7e230260567e66234d10c595f5c713381cb914
983
cpp
C++
compiler-rt/test/asan/TestCases/Windows/sse_misalignment.cpp
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
compiler-rt/test/asan/TestCases/Windows/sse_misalignment.cpp
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
compiler-rt/test/asan/TestCases/Windows/sse_misalignment.cpp
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %env_asan_opts=handle_sigfpe=1 not %run %t 2>&1 | FileCheck %s // Test the error output from misaligned SSE2 memory access. This is a READ // memory access. Windows appears to always provide an address of -1 for these // types of faults, and there doesn't seem to be a way to distinguish them from // other types of access violations without disassembling. #include <emmintrin.h> #include <stdio.h> __m128i test() { char buffer[17] = {}; __m128i a = _mm_load_si128((__m128i *)buffer); __m128i b = _mm_load_si128((__m128i *)(&buffer[0] + 1)); return _mm_or_si128(a, b); } int main() { puts("before alignment fault"); fflush(stdout); volatile __m128i v = test(); return 0; } // CHECK: before alignment fault // CHECK: ERROR: AddressSanitizer: access-violation on unknown address {{0x[fF]*}} // CHECK-NEXT: The signal is caused by a READ memory access. // CHECK-NEXT: #0 {{.*}} in test(void) {{.*}}misalignment.cpp:{{.*}}
33.896552
82
0.69176
mkinsner
9f832ae2273e729e3fbf602bf420672d3e860c45
13,036
hpp
C++
xercesc/xerces-c1_7_0-linux7.2/include/xercesc/validators/DTD/DTDScanner.hpp
anjingbin/starccm
70db48004aa20bbb82cc24de80802b40c7024eff
[ "BSD-3-Clause" ]
2
2020-01-06T07:43:30.000Z
2020-07-11T20:53:53.000Z
xercesc/xerces-c1_7_0-linux7.2/include/xercesc/validators/DTD/DTDScanner.hpp
anjingbin/starccm
70db48004aa20bbb82cc24de80802b40c7024eff
[ "BSD-3-Clause" ]
null
null
null
xercesc/xerces-c1_7_0-linux7.2/include/xercesc/validators/DTD/DTDScanner.hpp
anjingbin/starccm
70db48004aa20bbb82cc24de80802b40c7024eff
[ "BSD-3-Clause" ]
null
null
null
/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2001 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact apache\@apache.org. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation, and was * originally based on software copyright (c) 1999, International * Business Machines, Inc., http://www.ibm.com . For more information * on the Apache Software Foundation, please see * <http://www.apache.org/>. */ /* * $Log: DTDScanner.hpp,v $ * Revision 1.1 2003/11/12 01:57:57 AnJingBin * *** empty log message *** * * Revision 1.1 2003/10/23 20:57:50 AnJingBin * *** empty log message *** * * Revision 1.1.1.1 2002/02/01 22:22:44 peiyongz * sane_include * * Revision 1.4 2001/06/21 14:25:56 knoaman * Fix for bug 1946 * * Revision 1.3 2001/05/11 13:27:10 tng * Copyright update. * * Revision 1.2 2001/04/19 18:17:22 tng * Schema: SchemaValidator update, and use QName in Content Model * * Revision 1.1 2001/03/21 21:56:20 tng * Schema: Add Schema Grammar, Schema Validator, and split the DTDValidator into DTDValidator, DTDScanner, and DTDGrammar. * */ #if !defined(DTDSCANNER_HPP) #define DTDSCANNER_HPP #include <xercesc/validators/DTD/DTDGrammar.hpp> #include <xercesc/validators/DTD/DTDEntityDecl.hpp> /* * Default implementation of an XML DTD scanner. */ class DocTypeHandler; class VALIDATORS_EXPORT DTDScanner { public: // ----------------------------------------------------------------------- // Class specific types // // NOTE: This should really be private, but some of the compilers we // have to support cannot understand that. // // EntityExpRes // Returned from scanEntityRef() to indicate how the expanded text // was treated. // ----------------------------------------------------------------------- enum EntityExpRes { EntityExp_Failed , EntityExp_Pushed , EntityExp_Returned }; // ----------------------------------------------------------------------- // Constructors and Destructor // ----------------------------------------------------------------------- DTDScanner(DTDGrammar* dtdGrammar, NameIdPool<DTDEntityDecl>* entityDeclPool, DocTypeHandler* const docTypeHandler); virtual ~DTDScanner(); // ----------------------------------------------------------------------- // Getter methods // ----------------------------------------------------------------------- DocTypeHandler* getDocTypeHandler(); const DocTypeHandler* getDocTypeHandler() const; // ----------------------------------------------------------------------- // Setter methods // // setScannerInfo() is called by the scanner to tell the DTDScanner // about the stuff it needs to have access to. // ----------------------------------------------------------------------- void setScannerInfo ( XMLScanner* const owningScanner , ReaderMgr* const readerMgr , XMLBufferMgr* const bufMgr ); void setDocTypeHandler ( DocTypeHandler* const handlerToSet ); void scanDocTypeDecl(const bool reuseGrammar); private: // ----------------------------------------------------------------------- // Private class types // ----------------------------------------------------------------------- enum IDTypes { IDType_Public , IDType_External , IDType_Either }; // ----------------------------------------------------------------------- // Private DTD scanning methods. These are all in XMLValidator2.cpp // ----------------------------------------------------------------------- bool checkForPERef ( const bool spaceRequired , const bool inLiteral , const bool inMarkup , const bool throwEndOfExt = false ); bool expandPERef ( const bool scanExternal , const bool inLiteral , const bool inMarkup , const bool throwEndOfExt = false ); bool getQuotedString(XMLBuffer& toFill); XMLAttDef* scanAttDef(DTDElementDecl& elemDecl, XMLBuffer& bufToUse); bool scanAttValue ( const XMLCh* const attrName , XMLBuffer& toFill , const XMLAttDef::AttTypes type ); void scanAttListDecl(); ContentSpecNode* scanChildren ( const DTDElementDecl& elemDecl , XMLBuffer& bufToUse ); bool scanCharRef(XMLCh& toFill, XMLCh& second); void scanComment(); bool scanContentSpec(DTDElementDecl& toFill); void scanDefaultDecl(DTDAttDef& toFill); void scanElementDecl(); void scanEntityDecl(); bool scanEntityDef(); bool scanEntityLiteral(XMLBuffer& toFill, const bool isPE); bool scanEntityDef(DTDEntityDecl& decl, const bool isPEDecl); EntityExpRes scanEntityRef(XMLCh& firstCh, XMLCh& secondCh, bool& escaped); bool scanEnumeration ( const DTDAttDef& attDef , XMLBuffer& toFill , const bool notation ); bool scanEq(); void scanExtSubsetDecl(const bool inIncludeSect); bool scanId ( XMLBuffer& pubIdToFill , XMLBuffer& sysIdToFill , const IDTypes whatKind ); void scanIgnoredSection(); bool scanInternalSubset(); void scanMarkupDecl(const bool parseTextDecl); bool scanMixed(DTDElementDecl& toFill); void scanNotationDecl(); void scanPI(); bool scanPublicLiteral(XMLBuffer& toFill); bool scanSystemLiteral(XMLBuffer& toFill); void scanTextDecl(); bool isReadingExternalEntity(); // ----------------------------------------------------------------------- // Private data members // // fDocTypeHandler // This holds the optional doc type handler that can be installed // and used to call back for all markup events. It is DTD specific. // // fDumAttDef // fDumElemDecl // fDumEntityDecl // These are dummy objects into which mark decls are parsed when // they are just overrides of previously declared markup decls. In // such situations, the first one wins but we need to have somewhere // to parse them into. So these are lazily created and used as needed // when such markup decls are seen. // // fInternalSubset // This is used to track whether we are in the internal subset or not, // in which case we are in the external subset. // // fNextAttrId // Since att defs are per-element, we don't have a validator wide // attribute def pool. So we use a simpler data structure in each // element decl to store its att defs, and we use this simple counter // to apply a unique id to each new attribute. // // fDTDGrammar // The DTD information we scanned like element decl, attribute decl // are stored in this Grammar. // // fBufMgr // This is the buffer manager of the scanner. This is provided as a // convenience so that the DTDScanner doesn't have to create its own // buffer manager during the parse process. // // fReaderMgr // This is a pointer to the reader manager that is being used by the scanner. // // fScanner // The pointer to the scanner to which this DTDScanner belongs // // fPEntityDeclPool // This is a pool of EntityDecl objects, which contains all of the // parameter entities that are declared in the DTD subsets. // // fEntityDeclPool // This is a pool of EntityDecl objects, which contains all of the // general entities that are declared in the DTD subsets. It is // owned by the Scanner as Schema Grammar may also need access to // this pool for entity reference. // // fEmptyNamespaceId // The uri for all DTD decls // // fDocTypeReaderId // The original reader in the fReaderMgr - to be compared against the // current reader to decide whether we are processing an external/internal // declaration // ----------------------------------------------------------------------- DocTypeHandler* fDocTypeHandler; DTDAttDef* fDumAttDef; DTDElementDecl* fDumElemDecl; DTDEntityDecl* fDumEntityDecl; bool fInternalSubset; unsigned int fNextAttrId; DTDGrammar* fDTDGrammar; XMLBufferMgr* fBufMgr; ReaderMgr* fReaderMgr; XMLScanner* fScanner; NameIdPool<DTDEntityDecl>* fPEntityDeclPool; NameIdPool<DTDEntityDecl>* fEntityDeclPool; unsigned int fEmptyNamespaceId; unsigned int fDocTypeReaderId; }; // --------------------------------------------------------------------------- // DTDScanner: Getter methods // --------------------------------------------------------------------------- inline DocTypeHandler* DTDScanner::getDocTypeHandler() { return fDocTypeHandler; } inline const DocTypeHandler* DTDScanner::getDocTypeHandler() const { return fDocTypeHandler; } // --------------------------------------------------------------------------- // DTDScanner: Setter methods // --------------------------------------------------------------------------- inline void DTDScanner::setDocTypeHandler(DocTypeHandler* const handlerToSet) { fDocTypeHandler = handlerToSet; } // ----------------------------------------------------------------------- // Setter methods // ----------------------------------------------------------------------- inline void DTDScanner::setScannerInfo(XMLScanner* const owningScanner , ReaderMgr* const readerMgr , XMLBufferMgr* const bufMgr) { // We don't own any of these, we just reference them fScanner = owningScanner; fReaderMgr = readerMgr; fBufMgr = bufMgr; if (fScanner->getDoNamespaces()) fEmptyNamespaceId = fScanner->getEmptyNamespaceId(); else fEmptyNamespaceId = 0; fDocTypeReaderId = fReaderMgr->getCurrentReaderNum(); } // ----------------------------------------------------------------------- // Helper methods // ----------------------------------------------------------------------- inline bool DTDScanner::isReadingExternalEntity() { return (fDocTypeReaderId != fReaderMgr->getCurrentReaderNum()); } #endif
36.929178
123
0.56927
anjingbin
9f834ead9a3f6b4ad3f1596ed7a399762fad2161
13,750
hpp
C++
src/arduino/drivers/ssd1306.hpp
ZigmundRat/gfx_demo
48afdb20d5ae655b7f7fdc86175b9abb63465190
[ "MIT" ]
null
null
null
src/arduino/drivers/ssd1306.hpp
ZigmundRat/gfx_demo
48afdb20d5ae655b7f7fdc86175b9abb63465190
[ "MIT" ]
null
null
null
src/arduino/drivers/ssd1306.hpp
ZigmundRat/gfx_demo
48afdb20d5ae655b7f7fdc86175b9abb63465190
[ "MIT" ]
null
null
null
#include "common/tft_driver.hpp" #include "gfx_pixel.hpp" #include "gfx_positioning.hpp" namespace arduino { template<uint16_t Width, uint16_t Height, typename Bus, uint8_t Address = 0x3C, bool Vdc3_3=true, uint32_t WriteSpeedPercent=400, int8_t PinDC=-1, int8_t PinRst=-1, bool ResetBeforeInit=false> struct ssd1306 final { constexpr static const uint16_t width=Width; constexpr static const uint16_t height=Height; constexpr static const uint8_t address = Address; constexpr static const bool vdc_3_3 = Vdc3_3; constexpr static const float write_speed_multiplier = (WriteSpeedPercent/100.0); constexpr static const int8_t pin_rst = PinRst; constexpr static const bool reset_before_init = ResetBeforeInit; private: using bus = Bus; using driver = tft_driver<PinDC,PinRst,-1,Bus,-1,0x3C,0x00,0x40>; unsigned int m_initialized; unsigned int m_suspend_x1; unsigned int m_suspend_y1; unsigned int m_suspend_x2; unsigned int m_suspend_y2; unsigned int m_suspend_count; unsigned int m_suspend_first; struct rect { unsigned int x1; unsigned int y1; unsigned int x2; unsigned int y2; }; uint8_t m_contrast; uint8_t m_frame_buffer[width*height/8]; inline void write_bytes(const uint8_t* data,size_t size,bool is_data) { if(is_data) { driver::send_data(data,size); } else { driver::send_command(data,size); } } inline void write_pgm_bytes(const uint8_t* data,size_t size,bool is_data) { if(is_data) { driver::send_data_pgm(data,size); } else { driver::send_command_pgm(data,size); } } static bool normalize_values(rect& r,bool check_bounds=true) { // normalize values uint16_t tmp; if(r.x1>r.x2) { tmp=r.x1; r.x1=r.x2; r.x2=tmp; } if(r.y1>r.y2) { tmp=r.y1; r.y1=r.y2; r.y2=tmp; } if(check_bounds) { if(r.x1>=width||r.y1>=height) return false; if(r.x2>=width) r.x2=width-1; if(r.y2>height) r.y2=height-1; } return true; } void buffer_fill(const rect& bounds, bool color) { rect r = bounds; if(!normalize_values(r)) return; if(0!=m_suspend_count) { if(0!=m_suspend_first) { m_suspend_first = 0; m_suspend_x1 = r.x1; m_suspend_y1 = r.y1; m_suspend_x2 = r.x2; m_suspend_y2 = r.y2; } else { // if we're suspended update the suspended extents if(m_suspend_x1>r.x1) m_suspend_x1=r.x1; if(m_suspend_y1>r.y1) m_suspend_y1=r.y1; if(m_suspend_x2<r.x2) m_suspend_x2=r.x2; if(m_suspend_y2<r.y2) m_suspend_y2=r.y2; } } int y=r.y1; int m=y%8; // special case when bottom and top are the same bank: if(r.y1/8==r.y2/8) { const uint8_t on_mask = uint8_t(uint8_t(0xFF<<((r.y1%8))) & uint8_t(0xFF>>(7-(r.y2%8)))); const uint8_t set_mask = uint8_t(~on_mask); const uint8_t value_mask = uint8_t(on_mask*color); for(unsigned int x=r.x1;x<=r.x2;++x) { uint8_t* p = m_frame_buffer+(y/8*width)+x; *p&=set_mask; *p|=value_mask; } return; } // first handle the top { const uint8_t on_mask = uint8_t(uint8_t(0xFF<<((r.y1%8)))); const uint8_t set_mask = uint8_t(~on_mask); const uint8_t value_mask = uint8_t(on_mask*color); for(unsigned int x=r.x1;x<=r.x2;++x) { uint8_t* p = m_frame_buffer+(y/8*width)+x; *p&=set_mask; *p|=value_mask; } y=r.y1+(8-m); } unsigned int be = r.y2/8; unsigned int b = y/8; while(b<be) { // we can do a faster fill for this part const int w = r.x2-r.x1+1; uint8_t* p = m_frame_buffer+(b*width)+r.x1; memset(p,0xFF*color,w); ++b; } // now do the trailing rows if(b*8<r.y2) { m=r.y2%8; y=r.y2; const uint8_t on_mask = uint8_t(0xFF>>(7-(r.y2%8))); const uint8_t set_mask = uint8_t(~on_mask); const uint8_t value_mask = uint8_t(on_mask*color); uint8_t* p = m_frame_buffer+(y/8*width)+r.x1; for(unsigned int x=r.x1;x<=r.x2;++x) { *p&=set_mask; *p|=value_mask; ++p; } } } void display_update(const rect& bounds) { rect b = bounds; if(!normalize_values(b)) return; initialize(); // don't draw if we're suspended if(0==m_suspend_count) { uint8_t dlist1[] = { 0x22, uint8_t(b.y1/8), // Page start address uint8_t(0xFF), // Page end (not really, but works here) 0x21, uint8_t(b.x1)};// Column start address write_bytes(dlist1, sizeof(dlist1),false); uint8_t cmd = b.x2; write_bytes(&cmd,1,false); // Column end address if(b.x1==0&&b.y1==0&&b.x2==width-1&&b.y2==height-1) { // special case for whole screen return write_bytes(m_frame_buffer,width*height/8,true); } const int be = (b.y2+8)/8; const int w = b.x2-b.x1+1; for(int bb=b.y1/8;bb<be;++bb) { uint8_t* p = m_frame_buffer+(bb*width)+b.x1; write_bytes(p,w,true); } } } bool pixel_read(uint16_t x,uint16_t y,bool* out_color) const { if(nullptr==out_color) return false; if(x>=width || y>=height) { *out_color = false; return true; } const uint8_t* p = m_frame_buffer+(y/8*width)+x; *out_color = 0!=(*p & (1<<(y&7))); return true; } bool frame_fill(const rect& bounds,bool color) { if(!initialize()) { return false; } buffer_fill(bounds,color); display_update(bounds); return true; } bool frame_suspend() { m_suspend_first=(m_suspend_count==0); ++m_suspend_count; return true; } bool frame_resume(bool force=false) { if(0!=m_suspend_count) { --m_suspend_count; if(force) m_suspend_count = 0; if(0==m_suspend_count) { display_update({m_suspend_x1,m_suspend_y1,m_suspend_x2,m_suspend_y2}); } } return true; } public: ssd1306() : m_initialized(false), m_suspend_count(0), m_suspend_first(0) { } inline bool initialized() const { return m_initialized; } void reset() { if(pin_rst>=0) { digitalWrite(pin_rst,HIGH); delay(1); digitalWrite(pin_rst,LOW); delay(10); digitalWrite(pin_rst,HIGH); } } bool initialize() { if(!m_initialized) { if(!driver::initialize()) { return false; } bus::set_speed_multiplier(write_speed_multiplier); if(reset_before_init) { reset(); } bus::begin_initialization(); bus::begin_write(); uint8_t cmd; // Init sequence static const uint8_t init1[] PROGMEM = {0xAE, 0xD5, 0x80, // the suggested ratio 0x80 0xA8}; write_pgm_bytes(init1, sizeof(init1),false); cmd=height-1; write_bytes(&cmd,1,false); static const uint8_t init2[] PROGMEM = {0xD3, 0x00, // no offset 0x40 | 0x00, // line #0 0x8D}; write_pgm_bytes(init2, sizeof(init2),false); cmd=!vdc_3_3 ? 0x10 : 0x14; write_bytes(&cmd,1,false); static const uint8_t init3[] PROGMEM = { 0x20, 0x00, // 0x0 act like ks0108 0xA0 | 0x1, 0xC8}; write_pgm_bytes(init3, sizeof(init3),false); uint8_t com_pins = 0x02; m_contrast = 0x8F; if ((width == 128) && (height == 32)) { com_pins = 0x02; m_contrast = 0x8F; } else if ((width == 128) && (height == 64)) { com_pins = 0x12; m_contrast = !vdc_3_3 ? 0x9F:0xCF; } else if ((width == 96) && (height == 16)) { com_pins = 0x2; // ada x12 m_contrast = !vdc_3_3 ? 0x10:0xAF; } else return false; cmd=0xDA; write_bytes(&cmd,1,false); write_bytes(&com_pins,1,false); cmd=0x81; write_bytes(&cmd,1,false); write_bytes(&m_contrast,1,false); cmd=0xD9; write_bytes(&cmd,1,false); cmd=!vdc_3_3 ? 0x22:0xF1; write_bytes(&cmd,1,false); static const uint8_t init5[] PROGMEM = { 0xDB, 0x40, 0xA4, 0xA6, 0x2E, 0xAF}; // Main screen turn on write_pgm_bytes(init5, sizeof(init5),false); bus::end_write(); bus::end_initialization(); m_initialized = true; } return true; } const uint8_t* frame_buffer() const { return m_frame_buffer; } // GFX Bindings using type = ssd1306; using pixel_type = gfx::gsc_pixel<1>; using caps = gfx::gfx_caps<false,false,false,false,true,true,false>; constexpr inline gfx::size16 dimensions() const {return gfx::size16(width,height);} constexpr inline gfx::rect16 bounds() const { return dimensions().bounds(); } // gets a point gfx::gfx_result point(gfx::point16 location,pixel_type* out_color) const { bool col=false; if(!pixel_read(location.x,location.y,&col)) { return gfx::gfx_result::io_error; } pixel_type p(!!col); *out_color=p; return gfx::gfx_result::success; } // sets a point to the specified pixel inline gfx::gfx_result point(gfx::point16 location,pixel_type color) { if(!frame_fill({location.x,location.y,location.x,location.y},color.native_value!=0)) { return gfx::gfx_result::io_error; } return gfx::gfx_result::success; } inline gfx::gfx_result fill(const gfx::rect16& rect,pixel_type color) { if(!frame_fill({rect.x1,rect.y1,rect.x2,rect.y2},color.native_value!=0)) { return gfx::gfx_result::io_error; } return gfx::gfx_result::success; } // clears the specified rectangle inline gfx::gfx_result clear(const gfx::rect16& rect) { pixel_type p; return fill(rect,p); } inline gfx::gfx_result suspend() { if(!frame_suspend()) { return gfx::gfx_result::io_error; } return gfx::gfx_result::success; } inline gfx::gfx_result resume(bool force=false) { if(!frame_resume(force)) { return gfx::gfx_result::io_error; } return gfx::gfx_result::success; } }; }
37.568306
105
0.444509
ZigmundRat
9f83c781f6f9f2412965c6508633963c0a2ed4a1
983
cc
C++
content/public/common/page_state_ios.cc
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-05-03T06:33:56.000Z
2021-11-14T18:39:42.000Z
content/public/common/page_state_ios.cc
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/public/common/page_state_ios.cc
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/public/common/page_state.h" #include "base/files/file_path.h" #include "base/logging.h" namespace content { // static PageState PageState::CreateFromURL(const GURL& url) { NOTIMPLEMENTED(); return PageState(); } // static PageState PageState::CreateForTesting( const GURL& url, bool body_contains_password_data, const char* optional_body_data, const base::FilePath* optional_body_file_path) { NOTIMPLEMENTED(); return PageState(); } std::vector<base::FilePath> PageState::GetReferencedFiles() const { NOTIMPLEMENTED(); return std::vector<base::FilePath>(); } PageState PageState::RemovePasswordData() const { NOTIMPLEMENTED(); return *this; } PageState PageState::RemoveScrollOffset() const { NOTIMPLEMENTED(); return *this; } } // namespace content
22.340909
73
0.733469
pozdnyakov
9f883e0a57c86ef1fd04f25a1215f843662d4b5a
10,227
cpp
C++
test/Mutex.cpp
kubasejdak/osal
6e43ba761572444b2f56b529e501f40c00d4e718
[ "BSD-2-Clause" ]
1
2021-09-12T21:05:45.000Z
2021-09-12T21:05:45.000Z
test/Mutex.cpp
kubasejdak/osal
6e43ba761572444b2f56b529e501f40c00d4e718
[ "BSD-2-Clause" ]
2
2020-01-24T18:00:15.000Z
2020-02-03T21:15:54.000Z
test/Mutex.cpp
kubasejdak/osal
6e43ba761572444b2f56b529e501f40c00d4e718
[ "BSD-2-Clause" ]
2
2020-06-15T16:27:58.000Z
2021-09-12T21:05:49.000Z
///////////////////////////////////////////////////////////////////////////////////// /// /// @file /// @author Kuba Sejdak /// @copyright BSD 2-Clause License /// /// Copyright (c) 2020-2021, Kuba Sejdak <kuba.sejdak@gmail.com> /// All rights reserved. /// /// Redistribution and use in source and binary forms, with or without /// modification, are permitted provided that the following conditions are met: /// /// 1. Redistributions of source code must retain the above copyright notice, this /// list of conditions and the following disclaimer. /// /// 2. Redistributions in binary form must reproduce the above copyright notice, /// this list of conditions and the following disclaimer in the documentation /// and/or other materials provided with the distribution. /// /// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" /// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE /// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE /// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE /// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL /// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR /// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER /// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, /// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE /// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /// ///////////////////////////////////////////////////////////////////////////////////// #include <osal/Mutex.h> #include <osal/Thread.hpp> #include <osal/sleep.hpp> #include <osal/timestamp.hpp> #include <catch2/catch.hpp> TEST_CASE("Mutex creation and destruction", "[unit][c][mutex]") { OsalMutexType type{}; SECTION("Non recursive mutex") { type = OsalMutexType::eNonRecursive; } SECTION("Recursive mutex") { type = OsalMutexType::eRecursive; } SECTION("Default mutex") { type = cOsalMutexDefaultType; } OsalMutex mutex{}; auto error = osalMutexCreate(&mutex, type); REQUIRE(error == OsalError::eOk); error = osalMutexDestroy(&mutex); REQUIRE(error == OsalError::eOk); error = osalMutexDestroy(&mutex); REQUIRE(error == OsalError::eInvalidArgument); } TEST_CASE("Invalid parameters to mutex creation and destruction functions", "[unit][c][mutex]") { OsalMutexType type{}; SECTION("Non recursive mutex") { type = OsalMutexType::eNonRecursive; } SECTION("Recursive mutex") { type = OsalMutexType::eRecursive; } SECTION("Default mutex") { type = cOsalMutexDefaultType; } auto error = osalMutexCreate(nullptr, type); REQUIRE(error == OsalError::eInvalidArgument); error = osalMutexDestroy(nullptr); REQUIRE(error == OsalError::eInvalidArgument); } TEST_CASE("Lock and unlock from one thread", "[unit][c][mutex]") { OsalMutexType type{}; SECTION("Non recursive mutex") { type = OsalMutexType::eNonRecursive; } SECTION("Recursive mutex") { type = OsalMutexType::eRecursive; } SECTION("Default mutex") { type = cOsalMutexDefaultType; } OsalMutex mutex{}; auto error = osalMutexCreate(&mutex, type); REQUIRE(error == OsalError::eOk); error = osalMutexLock(&mutex); REQUIRE(error == OsalError::eOk); error = osalMutexUnlock(&mutex); REQUIRE(error == OsalError::eOk); error = osalMutexDestroy(&mutex); REQUIRE(error == OsalError::eOk); } TEST_CASE("Invalid arguments passed to mutex functions in one thread", "[unit][c][mutex]") { auto error = osalMutexLock(nullptr); REQUIRE(error == OsalError::eInvalidArgument); error = osalMutexTryLock(nullptr); REQUIRE(error == OsalError::eInvalidArgument); error = osalMutexTryLockIsr(nullptr); REQUIRE(error == OsalError::eInvalidArgument); error = osalMutexTimedLock(nullptr, 3); REQUIRE(error == OsalError::eInvalidArgument); error = osalMutexUnlock(nullptr); REQUIRE(error == OsalError::eInvalidArgument); error = osalMutexUnlockIsr(nullptr); REQUIRE(error == OsalError::eInvalidArgument); } TEST_CASE("Lock called from two threads", "[unit][c][mutex]") { OsalMutexType type{}; SECTION("Non recursive mutex") { type = OsalMutexType::eNonRecursive; } SECTION("Recursive mutex") { type = OsalMutexType::eRecursive; } SECTION("Default mutex") { type = cOsalMutexDefaultType; } OsalMutex mutex{}; auto error = osalMutexCreate(&mutex, type); REQUIRE(error == OsalError::eOk); error = osalMutexLock(&mutex); REQUIRE(error == OsalError::eOk); auto func = [&mutex] { auto start = osal::timestamp(); auto error = osalMutexLock(&mutex); if (error != OsalError::eOk) REQUIRE(error == OsalError::eOk); auto end = osal::timestamp(); if ((end - start) < 100ms) REQUIRE((end - start) >= 100ms); error = osalMutexUnlock(&mutex); if (error != OsalError::eOk) REQUIRE(error == OsalError::eOk); }; osal::Thread thread(func); osal::sleep(120ms); error = osalMutexUnlock(&mutex); REQUIRE(error == OsalError::eOk); thread.join(); error = osalMutexDestroy(&mutex); REQUIRE(error == OsalError::eOk); } TEST_CASE("TryLock called from second thread", "[unit][c][mutex]") { OsalMutexType type{}; SECTION("Non recursive mutex") { type = OsalMutexType::eNonRecursive; } SECTION("Recursive mutex") { type = OsalMutexType::eRecursive; } SECTION("Default mutex") { type = cOsalMutexDefaultType; } OsalMutex mutex{}; auto error = osalMutexCreate(&mutex, type); REQUIRE(error == OsalError::eOk); error = osalMutexLock(&mutex); REQUIRE(error == OsalError::eOk); auto func = [&mutex] { auto start = osal::timestamp(); while (osalMutexTryLock(&mutex) != OsalError::eOk) osal::sleep(10ms); auto end = osal::timestamp(); if ((end - start) < 100ms) REQUIRE((end - start) >= 100ms); auto error = osalMutexUnlock(&mutex); if (error != OsalError::eOk) REQUIRE(error == OsalError::eOk); }; osal::Thread thread(func); osal::sleep(120ms); error = osalMutexUnlock(&mutex); REQUIRE(error == OsalError::eOk); thread.join(); error = osalMutexDestroy(&mutex); REQUIRE(error == OsalError::eOk); } TEST_CASE("TryLock and unlock called from ISR", "[unit][c][mutex]") { OsalMutexType type{}; SECTION("Non recursive mutex") { type = OsalMutexType::eNonRecursive; } SECTION("Default mutex") { type = cOsalMutexDefaultType; } OsalMutex mutex{}; auto error = osalMutexCreate(&mutex, type); REQUIRE(error == OsalError::eOk); error = osalMutexTryLockIsr(&mutex); REQUIRE(error == OsalError::eOk); auto func = [&mutex] { auto start = osal::timestamp(); while (osalMutexTryLockIsr(&mutex) != OsalError::eOk) osal::sleep(10ms); auto end = osal::timestamp(); if ((end - start) < 100ms) REQUIRE((end - start) >= 100ms); auto error = osalMutexUnlock(&mutex); if (error != OsalError::eOk) REQUIRE(error == OsalError::eOk); }; osal::Thread thread(func); osal::sleep(120ms); error = osalMutexUnlockIsr(&mutex); REQUIRE(error == OsalError::eOk); thread.join(); error = osalMutexDestroy(&mutex); REQUIRE(error == OsalError::eOk); } TEST_CASE("Recursive tryLock called from ISR", "[unit][c][mutex]") { OsalMutex mutex{}; auto error = osalMutexCreate(&mutex, OsalMutexType::eRecursive); REQUIRE(error == OsalError::eOk); error = osalMutexTryLockIsr(&mutex); REQUIRE(error == OsalError::eInvalidArgument); error = osalMutexDestroy(&mutex); REQUIRE(error == OsalError::eOk); } TEST_CASE("TimedLock called from second thread, timeout", "[unit][c][mutex]") { OsalMutexType type{}; SECTION("Non recursive mutex") { type = OsalMutexType::eNonRecursive; } SECTION("Recursive mutex") { type = OsalMutexType::eRecursive; } SECTION("Default mutex") { type = cOsalMutexDefaultType; } OsalMutex mutex{}; auto error = osalMutexCreate(&mutex, type); REQUIRE(error == OsalError::eOk); error = osalMutexLock(&mutex); REQUIRE(error == OsalError::eOk); auto func = [&mutex] { auto start = osal::timestamp(); constexpr std::uint32_t cTimeoutMs = 100; auto error = osalMutexTimedLock(&mutex, cTimeoutMs); if (error != OsalError::eTimeout) REQUIRE(error == OsalError::eTimeout); auto end = osal::timestamp(); if ((end - start) < 100ms) REQUIRE((end - start) >= 100ms); }; osal::Thread thread(func); thread.join(); error = osalMutexUnlock(&mutex); REQUIRE(error == OsalError::eOk); error = osalMutexDestroy(&mutex); REQUIRE(error == OsalError::eOk); } TEST_CASE("TimedLock called from second thread, success", "[unit][c][mutex]") { OsalMutexType type{}; SECTION("Non recursive mutex") { type = OsalMutexType::eNonRecursive; } SECTION("Recursive mutex") { type = OsalMutexType::eRecursive; } SECTION("Default mutex") { type = cOsalMutexDefaultType; } OsalMutex mutex{}; auto error = osalMutexCreate(&mutex, type); REQUIRE(error == OsalError::eOk); error = osalMutexLock(&mutex); REQUIRE(error == OsalError::eOk); auto func = [&mutex] { auto start = osal::timestamp(); constexpr std::uint32_t cTimeoutMs = 100; if (auto error = osalMutexTimedLock(&mutex, cTimeoutMs)) REQUIRE(!error); auto end = osal::timestamp(); if ((end - start) > 100ms) REQUIRE((end - start) <= 100ms); if (auto error = osalMutexUnlock(&mutex)) REQUIRE(!error); }; osal::Thread thread(func); osal::sleep(50ms); error = osalMutexUnlock(&mutex); REQUIRE(error == OsalError::eOk); thread.join(); error = osalMutexDestroy(&mutex); REQUIRE(error == OsalError::eOk); }
29.22
95
0.640364
kubasejdak
9f8a4536c7ee1d2574bfcfc3a8efaa3560c94136
4,310
cpp
C++
Sources/PSApplication.cpp
Slin/ProjectSteve
3e94c61e3d114fb4c15f9bcc72b1508d185f7a9c
[ "MIT" ]
null
null
null
Sources/PSApplication.cpp
Slin/ProjectSteve
3e94c61e3d114fb4c15f9bcc72b1508d185f7a9c
[ "MIT" ]
null
null
null
Sources/PSApplication.cpp
Slin/ProjectSteve
3e94c61e3d114fb4c15f9bcc72b1508d185f7a9c
[ "MIT" ]
null
null
null
// // PSApplication.cpp // ProjectSteve // // Copyright 2018 by SlinDev. All rights reserved. // Unauthorized use is punishable by torture, mutilation, and vivisection. // #include "PSApplication.h" #include "PSWorld.h" #if RN_PLATFORM_ANDROID #include "RNOculusMobileWindow.h" #elif RN_PLATFORM_WINDOWS #ifdef BUILD_FOR_OCULUS #include "RNOculusWindow.h" #else #include "RNOculusWindow.h" #include "RNOpenVRWindow.h" #endif #else #include "RNOpenVRWindow.h" #endif namespace PS { Application::Application() : _vrWindow(nullptr) { } Application::~Application() { SafeRelease(_vrWindow); } void Application::SetupVR() { if (_vrWindow) return; #if RN_PLATFORM_ANDROID _vrWindow = new RN::OculusMobileWindow(); #else bool wantsOpenVR = RN::Kernel::GetSharedInstance()->GetArguments().HasArgument("openvr", 0); #if RN_PLATFORM_WINDOWS bool wantsOculus = RN::Kernel::GetSharedInstance()->GetArguments().HasArgument("oculusvr", 0); #ifndef BUILD_FOR_OCULUS if(!wantsOpenVR && (!RN::OpenVRWindow::IsSteamVRRunning() || wantsOculus)) #endif { if(RN::OculusWindow::GetAvailability() == RN::VRWindow::HMD || wantsOculus) { _vrWindow = new RN::OculusWindow(); return; } } #endif #ifndef BUILD_FOR_OCULUS if(RN::OpenVRWindow::GetAvailability() == RN::VRWindow::HMD || wantsOpenVR) { _vrWindow = new RN::OpenVRWindow(); return; } #endif #endif } RN::RendererDescriptor *Application::GetPreferredRenderer() const { if(!_vrWindow) return RN::Application::GetPreferredRenderer(); RN::Array *instanceExtensions = _vrWindow->GetRequiredVulkanInstanceExtensions(); RN::Dictionary *parameters = nullptr; if(instanceExtensions) { parameters = new RN::Dictionary(); parameters->SetObjectForKey(instanceExtensions, RNCSTR("instanceextensions")); } RN::RendererDescriptor *descriptor = RN::RendererDescriptor::GetPreferredRenderer(parameters); return descriptor; } RN::RenderingDevice *Application::GetPreferredRenderingDevice(RN::RendererDescriptor *descriptor, const RN::Array *devices) const { if(!_vrWindow) return RN::Application::GetPreferredRenderingDevice(descriptor, devices); RN::RenderingDevice *preferred = nullptr; RN::RenderingDevice *vrDevice = _vrWindow->GetOutputDevice(descriptor); if(vrDevice) { devices->Enumerate<RN::RenderingDevice>([&](RN::RenderingDevice *device, size_t index, bool &stop) { if(vrDevice->IsEqual(device)) { preferred = device; stop = true; } }); } if(!preferred) preferred = RN::Application::GetPreferredRenderingDevice(descriptor, devices); RN::Array *deviceExtensions = _vrWindow->GetRequiredVulkanDeviceExtensions(descriptor, preferred); preferred->SetExtensions(deviceExtensions); return preferred; } void Application::WillFinishLaunching(RN::Kernel *kernel) { bool isPancake = false; if(RN::Kernel::GetSharedInstance()->GetArguments().HasArgument("pancake", '2d')) { isPancake = true; } if(!isPancake) { SetupVR(); } RN::Application::WillFinishLaunching(kernel); #if RN_PLATFORM_ANDROID RN::Shader::Sampler::SetDefaultAnisotropy(2); #else RN::Shader::Sampler::SetDefaultAnisotropy(16); #endif } void Application::DidFinishLaunching(RN::Kernel *kernel) { if(_vrWindow) { RN::Renderer *renderer = RN::Renderer::GetActiveRenderer(); renderer->SetMainWindow(_vrWindow); RN::Window::SwapChainDescriptor swapChainDescriptor; #if RN_PLATFORM_WINDOWS if(_vrWindow->IsKindOfClass(RN::OculusWindow::GetMetaClass())) { swapChainDescriptor.depthStencilFormat = RN::Texture::Format::Depth_32F; } #endif _vrWindow->StartRendering(swapChainDescriptor); } RN::Application::DidFinishLaunching(kernel); bool wantsPreview = false; if(RN::Kernel::GetSharedInstance()->GetArguments().HasArgument("preview", 'p')) { wantsPreview = true; } #if RN_PLATFORM_MAC_OS World *world = new World(_vrWindow, 0, wantsPreview, false); #elif RN_PLATFORM_ANDROID World *world = new World(_vrWindow, 4, false, (_vrWindow == nullptr)); #elif RN_PLATFORM_LINUX World *world = new World(_vrWindow, 8, false, false); #else World *world = new World(_vrWindow, 8, true, false); #endif RN::SceneManager::GetSharedInstance()->AddScene(world); } }
24.488636
130
0.721346
Slin
9f8a5c913bc22e3bb31414f77cb356d62a46fc6d
820
hpp
C++
humble-crap/commandline-interface.hpp
lukesalisbury/humble-crap
814c551cfdfa2687d531b50d350a0d2a6f5cf832
[ "Unlicense" ]
2
2015-02-02T23:40:03.000Z
2016-02-17T17:58:18.000Z
humble-crap/commandline-interface.hpp
lukesalisbury/humble-crap
814c551cfdfa2687d531b50d350a0d2a6f5cf832
[ "Unlicense" ]
null
null
null
humble-crap/commandline-interface.hpp
lukesalisbury/humble-crap
814c551cfdfa2687d531b50d350a0d2a6f5cf832
[ "Unlicense" ]
null
null
null
#ifndef CLI_INTERFACE_HPP #define CLI_INTERFACE_HPP #include <QObject> #include <QCoreApplication> class CommandLineTask { }; class CommandLineInterface : public QObject { Q_OBJECT public: CommandLineInterface(QCoreApplication * a, QObject * parent = nullptr); ~CommandLineInterface(); signals: void taskCompleted(); void taskFailed(); public slots: void downloadTaskSuccess(int downloadID); void downloadTaskFailure(int downloadID); void taskSuccess(QString key, QString text); void taskFailure(QString key, QString text); void exitSuccessfully(); void exitWithFailure(); void orderSuccess(); void orderFailure(); void mainTask(); private: QCoreApplication * app; int task = 0; void downloadOrder(QString key); void checkForExit(); }; #endif // CLI_INTERFACE_HPP
16.4
73
0.740244
lukesalisbury
9f8a93ac56f39e2e5538bc2d0dbc39b854615437
1,192
cpp
C++
Shoot/src/GraphicExtensionHandler.cpp
franticsoftware/starports
d723404b20383949874868c251c60cfa06120fde
[ "MIT" ]
5
2016-11-13T08:13:57.000Z
2019-03-31T10:22:38.000Z
Shoot/src/GraphicExtensionHandler.cpp
franticsoftware/starports
d723404b20383949874868c251c60cfa06120fde
[ "MIT" ]
null
null
null
Shoot/src/GraphicExtensionHandler.cpp
franticsoftware/starports
d723404b20383949874868c251c60cfa06120fde
[ "MIT" ]
1
2016-12-23T11:25:35.000Z
2016-12-23T11:25:35.000Z
/* Amine Rehioui Created: July 6th 2013 */ #include "Shoot.h" #include "GraphicExtensionHandler.h" #if SHOOT_PLATFORM == SHOOT_PLATFORM_IOS || SHOOT_PLATFORM == SHOOT_PLATFORM_ANDROID #include "OpenGLExtensionHandlerES2.h" #elif !defined(DX11) #include "OpenGLExtensionHandlerWin32.h" #endif namespace shoot { //! static variables initialization GraphicExtensionHandler* GraphicExtensionHandler::m_spInstance = NULL; //! CreateInstance void GraphicExtensionHandler::CreateInstance() { if(m_spInstance) { #ifndef SHOOT_EDITOR SHOOT_ASSERT(false, "Multiple GraphicExtensionHandler instances detected"); #endif // SHOOT_EDITOR return; } #if defined(DX11) m_spInstance = snew GraphicExtensionHandler(); #elif SHOOT_PLATFORM == SHOOT_PLATFORM_IOS || SHOOT_PLATFORM == SHOOT_PLATFORM_ANDROID m_spInstance = snew OpenGLExtensionHandlerES2(); #else m_spInstance = snew OpenGLExtensionHandlerWin32(); #endif } //! destroys the driver void GraphicExtensionHandler::DestroyInstance() { sdelete(m_spInstance); } //! Constructor GraphicExtensionHandler::GraphicExtensionHandler() { for(int i=0; i<E_Count; ++i) { m_bHasExtension[i] = false; } } }
20.20339
86
0.756711
franticsoftware
9f8b7c4c0f4ea80ad820a7f26a9e5126be0ef742
22,003
cc
C++
iocore/net/unit_tests/test_ProxyProtocol.cc
cmcfarlen/trafficserver
2aa1d3106398eb082e5a454212b0273c63d5f69d
[ "Apache-2.0" ]
1,351
2015-01-03T08:25:40.000Z
2022-03-31T09:14:08.000Z
iocore/net/unit_tests/test_ProxyProtocol.cc
cmcfarlen/trafficserver
2aa1d3106398eb082e5a454212b0273c63d5f69d
[ "Apache-2.0" ]
7,009
2015-01-14T16:22:45.000Z
2022-03-31T17:18:04.000Z
iocore/net/unit_tests/test_ProxyProtocol.cc
cmcfarlen/trafficserver
2aa1d3106398eb082e5a454212b0273c63d5f69d
[ "Apache-2.0" ]
901
2015-01-11T19:21:08.000Z
2022-03-18T18:21:33.000Z
/** @file Catch based unit tests for PROXY Protocol @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #define CATCH_CONFIG_MAIN #include "catch.hpp" #include "ProxyProtocol.h" using namespace std::literals; TEST_CASE("PROXY Protocol v1 Parser", "[ProxyProtocol][ProxyProtocolv1]") { IpEndpoint src_addr; IpEndpoint dst_addr; SECTION("TCP over IPv4") { ts::TextView raw_data = "PROXY TCP4 192.0.2.1 198.51.100.1 50000 443\r\n"sv; ProxyProtocol pp_info; REQUIRE(proxy_protocol_parse(&pp_info, raw_data) == raw_data.size()); REQUIRE(ats_ip_pton("192.0.2.1:50000", src_addr) == 0); REQUIRE(ats_ip_pton("198.51.100.1:443", dst_addr) == 0); CHECK(pp_info.version == ProxyProtocolVersion::V1); CHECK(pp_info.ip_family == AF_INET); CHECK(pp_info.src_addr == src_addr); CHECK(pp_info.dst_addr == dst_addr); } SECTION("TCP over IPv6") { ts::TextView raw_data = "PROXY TCP6 2001:0DB8:0:0:0:0:0:1 2001:0DB8:0:0:0:0:0:2 50000 443\r\n"sv; ProxyProtocol pp_info; REQUIRE(proxy_protocol_parse(&pp_info, raw_data) == raw_data.size()); REQUIRE(ats_ip_pton("[2001:0DB8:0:0:0:0:0:1]:50000", src_addr) == 0); REQUIRE(ats_ip_pton("[2001:0DB8:0:0:0:0:0:2]:443", dst_addr) == 0); CHECK(pp_info.version == ProxyProtocolVersion::V1); CHECK(pp_info.ip_family == AF_INET6); CHECK(pp_info.src_addr == src_addr); CHECK(pp_info.dst_addr == dst_addr); } SECTION("UNKNOWN connection (short form)") { ts::TextView raw_data = "PROXY UNKNOWN\r\n"sv; ProxyProtocol pp_info; REQUIRE(proxy_protocol_parse(&pp_info, raw_data) == raw_data.size()); CHECK(pp_info.version == ProxyProtocolVersion::V1); CHECK(pp_info.ip_family == AF_UNSPEC); } SECTION("UNKNOWN connection (worst case)") { ts::TextView raw_data = "PROXY UNKNOWN ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 65535 65535\r\n"sv; ProxyProtocol pp_info; REQUIRE(proxy_protocol_parse(&pp_info, raw_data) == raw_data.size()); CHECK(pp_info.version == ProxyProtocolVersion::V1); CHECK(pp_info.ip_family == AF_UNSPEC); } SECTION("Malformed Headers") { ProxyProtocol pp_info; // lack of some fields CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1\r\n"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1\r\n"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1 50000 \r\n"sv) == 0); // invalid preface CHECK(proxy_protocol_parse(&pp_info, "PROX TCP4 192.0.2.1 198.51.100.1 50000 443\r\n"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXZ TCP4 192.0.2.1 198.51.100.1 50000 443\r\n"sv) == 0); // invalid transport protocol & address family CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP1 192.0.2.1 198.51.100.1 50000 443\r\n"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY UDP4 192.0.2.1 198.51.100.1 50000 443\r\n"sv) == 0); // extra space CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1 50000 443\r\n"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1 50000 443\r\n"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1 50000 443\r\n"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1 50000 443\r\n"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1 50000 443\r\n"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1 50000 443 \r\n"sv) == 0); // invalid CRLF CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1 50000 443"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1 50000 443\n"sv) == 0); CHECK(proxy_protocol_parse(&pp_info, "PROXY TCP4 192.0.2.1 198.51.100.1 50000 443\r"sv) == 0); } } TEST_CASE("PROXY Protocol v2 Parser", "[ProxyProtocol][ProxyProtocolv2]") { IpEndpoint src_addr; IpEndpoint dst_addr; SECTION("TCP over IPv4 without TLVs") { uint8_t raw_data[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< preface 0x55, 0x49, 0x54, 0x0A, ///< 0x21, ///< version & command 0x11, ///< protocol & family 0x00, 0x0C, ///< len 0xC0, 0x00, 0x02, 0x01, ///< src_addr 0xC6, 0x33, 0x64, 0x01, ///< dst_addr 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); ProxyProtocol pp_info; REQUIRE(proxy_protocol_parse(&pp_info, tv) == tv.size()); REQUIRE(ats_ip_pton("192.0.2.1:50000", src_addr) == 0); REQUIRE(ats_ip_pton("198.51.100.1:443", dst_addr) == 0); CHECK(pp_info.version == ProxyProtocolVersion::V2); CHECK(pp_info.ip_family == AF_INET); CHECK(pp_info.src_addr == src_addr); CHECK(pp_info.dst_addr == dst_addr); } SECTION("TCP over IPv6 without TLVs") { uint8_t raw_data[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< preface 0x55, 0x49, 0x54, 0x0A, ///< 0x21, ///< version & command 0x21, ///< protocol & family 0x00, 0x24, ///< len 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x01, ///< src_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x02, ///< dst_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); ProxyProtocol pp_info; REQUIRE(proxy_protocol_parse(&pp_info, tv) == tv.size()); REQUIRE(ats_ip_pton("[2001:db8:0:1::]:50000", src_addr) == 0); REQUIRE(ats_ip_pton("[2001:db8:0:2::]:443", dst_addr) == 0); CHECK(pp_info.version == ProxyProtocolVersion::V2); CHECK(pp_info.ip_family == AF_INET6); CHECK(pp_info.src_addr == src_addr); CHECK(pp_info.dst_addr == dst_addr); } SECTION("LOCAL command - health check") { uint8_t raw_data[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< preface 0x55, 0x49, 0x54, 0x0A, ///< 0x20, ///< version & command 0x00, ///< protocol & family 0x00, 0x24, ///< len 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x01, ///< src_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x02, ///< dst_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); ProxyProtocol pp_info; REQUIRE(proxy_protocol_parse(&pp_info, tv) == tv.size()); CHECK(pp_info.version == ProxyProtocolVersion::V2); CHECK(pp_info.ip_family == AF_UNSPEC); } SECTION("UNSPEC - unknownun/specified/unsupported transport protocol & address family") { uint8_t raw_data[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< preface 0x55, 0x49, 0x54, 0x0A, ///< 0x21, ///< version & command 0x00, ///< protocol & family 0x00, 0x24, ///< len 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x01, ///< src_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x02, ///< dst_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); ProxyProtocol pp_info; REQUIRE(proxy_protocol_parse(&pp_info, tv) == 0); CHECK(pp_info.version == ProxyProtocolVersion::UNDEFINED); CHECK(pp_info.ip_family == AF_UNSPEC); } // TLVs are not supported yet. Checking TLVs are skipped as expected for now. SECTION("TLVs") { uint8_t raw_data[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< preface 0x55, 0x49, 0x54, 0x0A, ///< 0x21, ///< version & command 0x11, ///< protocol & family 0x00, 0x11, ///< len 0xC0, 0x00, 0x02, 0x01, ///< src_addr 0xC6, 0x33, 0x64, 0x01, ///< dst_addr 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port 0x01, 0x00, 0x02, 0x68, 0x32, /// PP2_TYPE_ALPN (h2) }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); ProxyProtocol pp_info; REQUIRE(proxy_protocol_parse(&pp_info, tv) == tv.size()); REQUIRE(ats_ip_pton("192.0.2.1:50000", src_addr) == 0); REQUIRE(ats_ip_pton("198.51.100.1:443", dst_addr) == 0); CHECK(pp_info.version == ProxyProtocolVersion::V2); CHECK(pp_info.ip_family == AF_INET); CHECK(pp_info.src_addr == src_addr); CHECK(pp_info.dst_addr == dst_addr); } SECTION("Malformed Headers") { ProxyProtocol pp_info; SECTION("invalid preface") { uint8_t raw_data[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xDE, 0xAD, 0xBE, 0xEF, ///< preface 0xDE, 0xAD, 0xBE, 0xEF, ///< 0x21, ///< version & command 0x21, ///< protocol & family 0x00, 0x24, ///< len 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x01, ///< src_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x02, ///< dst_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); CHECK(proxy_protocol_parse(&pp_info, tv) == 0); CHECK(pp_info.version == ProxyProtocolVersion::UNDEFINED); CHECK(pp_info.ip_family == AF_UNSPEC); } SECTION("unsupported version & command") { uint8_t raw_data[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< preface 0x55, 0x49, 0x54, 0x0A, ///< 0xFF, ///< version & command 0x21, ///< protocol & family 0x00, 0x24, ///< len 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x01, ///< src_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x02, ///< dst_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); CHECK(proxy_protocol_parse(&pp_info, tv) == 0); CHECK(pp_info.version == ProxyProtocolVersion::UNDEFINED); CHECK(pp_info.ip_family == AF_UNSPEC); } SECTION("unsupported protocol & family") { uint8_t raw_data[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< preface 0x55, 0x49, 0x54, 0x0A, ///< 0x21, ///< version & command 0xFF, ///< protocol & family 0x00, 0x24, ///< len 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x01, ///< src_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x02, ///< dst_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); CHECK(proxy_protocol_parse(&pp_info, tv) == 0); CHECK(pp_info.version == ProxyProtocolVersion::UNDEFINED); CHECK(pp_info.ip_family == AF_UNSPEC); } SECTION("invalid len value - too long") { uint8_t raw_data[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< preface 0x55, 0x49, 0x54, 0x0A, ///< 0x21, ///< version & command 0x21, ///< protocol & family 0x00, 0x25, ///< len 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x01, ///< src_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x02, ///< dst_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); CHECK(proxy_protocol_parse(&pp_info, tv) == 0); CHECK(pp_info.version == ProxyProtocolVersion::UNDEFINED); CHECK(pp_info.ip_family == AF_UNSPEC); } SECTION("invalid len - actual buffer is shorter than the value") { uint8_t raw_data[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< preface 0x55, 0x49, 0x54, 0x0A, ///< 0x21, ///< version & command 0x21, ///< protocol & family 0x00, 0x24, ///< len 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x01, ///< src_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x02, ///< dst_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0xC3, 0x50, ///< src_port 0x01, ///< dst_port }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); CHECK(proxy_protocol_parse(&pp_info, tv) == 0); CHECK(pp_info.version == ProxyProtocolVersion::UNDEFINED); CHECK(pp_info.ip_family == AF_UNSPEC); } SECTION("invalid len - too short for INET") { uint8_t raw_data[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< preface 0x55, 0x49, 0x54, 0x0A, ///< 0x21, ///< version & command 0x11, ///< protocol & family 0x00, 0x0C, ///< len 0xC0, 0x00, ///< src_addr 0xC6, 0x33, ///< dst_addr 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); CHECK(proxy_protocol_parse(&pp_info, tv) == 0); CHECK(pp_info.version == ProxyProtocolVersion::UNDEFINED); CHECK(pp_info.ip_family == AF_UNSPEC); } SECTION("invalid len - too short for INET6") { uint8_t raw_data[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< preface 0x55, 0x49, 0x54, 0x0A, ///< 0x21, ///< version & command 0x21, ///< protocol & family 0x00, 0x24, ///< len 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x01, ///< src_addr 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x02, ///< dst_addr 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; ts::TextView tv(reinterpret_cast<char *>(raw_data), sizeof(raw_data)); CHECK(proxy_protocol_parse(&pp_info, tv) == 0); CHECK(pp_info.version == ProxyProtocolVersion::UNDEFINED); CHECK(pp_info.ip_family == AF_UNSPEC); } } } TEST_CASE("ProxyProtocol v1 Builder", "[ProxyProtocol][ProxyProtocolv1]") { SECTION("TCP over IPv4") { uint8_t buf[PPv1_CONNECTION_HEADER_LEN_MAX] = {0}; ProxyProtocol pp_info; pp_info.version = ProxyProtocolVersion::V1; pp_info.ip_family = AF_INET; ats_ip_pton("192.0.2.1:50000", pp_info.src_addr); ats_ip_pton("198.51.100.1:443", pp_info.dst_addr); size_t len = proxy_protocol_build(buf, sizeof(buf), pp_info); std::string_view expected = "PROXY TCP4 192.0.2.1 198.51.100.1 50000 443\r\n"sv; CHECK(len == expected.size()); CHECK(memcmp(buf, expected.data(), expected.size()) == 0); } SECTION("TCP over IPv6") { uint8_t buf[PPv1_CONNECTION_HEADER_LEN_MAX] = {0}; ProxyProtocol pp_info; pp_info.version = ProxyProtocolVersion::V1; pp_info.ip_family = AF_INET6; ats_ip_pton("[2001:db8:0:1::]:50000", pp_info.src_addr); ats_ip_pton("[2001:db8:0:2::]:443", pp_info.dst_addr); size_t len = proxy_protocol_build(buf, sizeof(buf), pp_info); std::string_view expected = "PROXY TCP6 2001:db8:0:1:: 2001:db8:0:2:: 50000 443\r\n"sv; CHECK(len == expected.size()); CHECK(memcmp(buf, expected.data(), expected.size()) == 0); } } TEST_CASE("ProxyProtocol v2 Builder", "[ProxyProtocol][ProxyProtocolv2]") { SECTION("TCP over IPv4 / no TLV") { uint8_t buf[1024] = {0}; ProxyProtocol pp_info; pp_info.version = ProxyProtocolVersion::V2; pp_info.ip_family = AF_INET; ats_ip_pton("192.0.2.1:50000", pp_info.src_addr); ats_ip_pton("198.51.100.1:443", pp_info.dst_addr); size_t len = proxy_protocol_build(buf, sizeof(buf), pp_info); uint8_t expected[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< sig 0x55, 0x49, 0x54, 0x0A, ///< 0x21, ///< ver_vmd 0x11, ///< fam 0x00, 0x0C, ///< len 0xC0, 0x00, 0x02, 0x01, ///< src_addr 0xC6, 0x33, 0x64, 0x01, ///< dst_addr 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; CHECK(len == sizeof(expected)); CHECK(memcmp(expected, buf, len) == 0); } SECTION("TCP over IPv6 / no TLV") { uint8_t buf[1024] = {0}; ProxyProtocol pp_info; pp_info.version = ProxyProtocolVersion::V2; pp_info.ip_family = AF_INET6; ats_ip_pton("[2001:db8:0:1::]:50000", pp_info.src_addr); ats_ip_pton("[2001:db8:0:2::]:443", pp_info.dst_addr); size_t len = proxy_protocol_build(buf, sizeof(buf), pp_info); uint8_t expected[] = { 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, 0x0A, 0x51, ///< sig 0x55, 0x49, 0x54, 0x0A, ///< 0x21, ///< ver_vmd 0x21, ///< fam 0x00, 0x24, ///< len 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x01, ///< src_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x02, ///< dst_addr 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ///< 0xC3, 0x50, ///< src_port 0x01, 0xBB, ///< dst_port }; CHECK(len == sizeof(expected)); CHECK(memcmp(expected, buf, len) == 0); } }
41.515094
120
0.525247
cmcfarlen
9f915c4603e8f83b4352c452f8072cb37d48dc1e
4,790
cpp
C++
src/Systems/DX9RenderSystem/DX9RenderErrorHelper.cpp
irov/Mengine
b76e9f8037325dd826d4f2f17893ac2b236edad8
[ "MIT" ]
39
2016-04-21T03:25:26.000Z
2022-01-19T14:16:38.000Z
src/Systems/DX9RenderSystem/DX9RenderErrorHelper.cpp
irov/Mengine
b76e9f8037325dd826d4f2f17893ac2b236edad8
[ "MIT" ]
23
2016-06-28T13:03:17.000Z
2022-02-02T10:11:54.000Z
src/Systems/DX9RenderSystem/DX9RenderErrorHelper.cpp
irov/Mengine
b76e9f8037325dd826d4f2f17893ac2b236edad8
[ "MIT" ]
14
2016-06-22T20:45:37.000Z
2021-07-05T12:25:19.000Z
#include "DX9RenderErrorHelper.h" #include "Kernel/Logger.h" #include "Config/Utils.h" namespace Mengine { namespace Helper { const Char * getDX9ErrorMessage( HRESULT _hr ) { switch( _hr ) { #if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP) MENGINE_MESSAGE_CASE( D3D_OK, "Ok" ); MENGINE_MESSAGE_CASE( D3DERR_WRONGTEXTUREFORMAT, "Wrong texture format" ); MENGINE_MESSAGE_CASE( D3DERR_UNSUPPORTEDCOLOROPERATION, "Unsupported color operation" ); MENGINE_MESSAGE_CASE( D3DERR_UNSUPPORTEDCOLORARG, "Unsupported color arg" ); MENGINE_MESSAGE_CASE( D3DERR_UNSUPPORTEDALPHAOPERATION, "Unsupported alpha operation" ); MENGINE_MESSAGE_CASE( D3DERR_UNSUPPORTEDALPHAARG, "Unsupported alpha arg" ); MENGINE_MESSAGE_CASE( D3DERR_TOOMANYOPERATIONS, "Too many operations" ); MENGINE_MESSAGE_CASE( D3DERR_CONFLICTINGTEXTUREFILTER, "Conflicting texture filter" ); MENGINE_MESSAGE_CASE( D3DERR_UNSUPPORTEDFACTORVALUE, "Unsupported factor value" ); MENGINE_MESSAGE_CASE( D3DERR_CONFLICTINGRENDERSTATE, "Conflicting render state" ); MENGINE_MESSAGE_CASE( D3DERR_UNSUPPORTEDTEXTUREFILTER, "Unsupported texture filter" ); MENGINE_MESSAGE_CASE( D3DERR_CONFLICTINGTEXTUREPALETTE, "Conflicting texture palette" ); MENGINE_MESSAGE_CASE( D3DERR_DRIVERINTERNALERROR, "Driver internal error" ); MENGINE_MESSAGE_CASE( D3DERR_NOTFOUND, "Not found" ); MENGINE_MESSAGE_CASE( D3DERR_MOREDATA, "More data" ); MENGINE_MESSAGE_CASE( D3DERR_DEVICELOST, "Device lost" ); MENGINE_MESSAGE_CASE( D3DERR_DEVICENOTRESET, "Device not reset" ); MENGINE_MESSAGE_CASE( D3DERR_NOTAVAILABLE, "Not available" ); MENGINE_MESSAGE_CASE( D3DERR_OUTOFVIDEOMEMORY, "Out of video memory" ); MENGINE_MESSAGE_CASE( D3DERR_INVALIDDEVICE, "Invalid device" ); MENGINE_MESSAGE_CASE( D3DERR_INVALIDCALL, "Invalid call" ); MENGINE_MESSAGE_CASE( D3DERR_DRIVERINVALIDCALL, "Driver invalid call" ); MENGINE_MESSAGE_CASE( D3DERR_WASSTILLDRAWING, "Was Still Drawing" ); MENGINE_MESSAGE_CASE( D3DOK_NOAUTOGEN, "The call succeeded but there won't be any mipmaps generated" ); MENGINE_MESSAGE_CASE( D3DERR_DEVICEREMOVED, "Hardware device was removed" ); MENGINE_MESSAGE_CASE( S_NOT_RESIDENT, "Resource not resident in memory" ); MENGINE_MESSAGE_CASE( S_RESIDENT_IN_SHARED_MEMORY, "Resource resident in shared memory" ); MENGINE_MESSAGE_CASE( S_PRESENT_MODE_CHANGED, "Desktop display mode has changed" ); MENGINE_MESSAGE_CASE( S_PRESENT_OCCLUDED, "Client window is occluded (minimized or other fullscreen)" ); MENGINE_MESSAGE_CASE( D3DERR_DEVICEHUNG, "Hardware adapter reset by OS" ); MENGINE_MESSAGE_CASE( D3DERR_UNSUPPORTEDOVERLAY, "Overlay is not supported" ); MENGINE_MESSAGE_CASE( D3DERR_UNSUPPORTEDOVERLAYFORMAT, "Overlay format is not supported" ); MENGINE_MESSAGE_CASE( D3DERR_CANNOTPROTECTCONTENT, "Contect protection not available" ); MENGINE_MESSAGE_CASE( D3DERR_UNSUPPORTEDCRYPTO, "Unsupported cryptographic system" ); MENGINE_MESSAGE_CASE( D3DERR_PRESENT_STATISTICS_DISJOINT, "Presentation statistics are disjoint" ); #endif default: return "Unknown error."; } } } ////////////////////////////////////////////////////////////////////////// DX9ErrorHelper::DX9ErrorHelper( const Char * _file, uint32_t _line, const Char * _method ) : m_file( _file ) , m_line( _line ) , m_method( _method ) { } ////////////////////////////////////////////////////////////////////////// DX9ErrorHelper::~DX9ErrorHelper() { } ////////////////////////////////////////////////////////////////////////// bool DX9ErrorHelper::operator == ( HRESULT _hr ) const { if( _hr == S_OK ) { return false; } const Char * message = Helper::getDX9ErrorMessage( _hr ); LOGGER_VERBOSE_LEVEL( ConstString::none(), LM_ERROR, LCOLOR_RED, nullptr, 0 )("[DX9] file '%s' line %u call '%s' get error: %s (hr:%x)" , m_file , m_line , m_method , message , (uint32_t)_hr ); return true; } ////////////////////////////////////////////////////////////////////////// }
51.505376
143
0.602296
irov