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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7ae81b78415046d120da9add591a41dd5c23c326 | 463 | hpp | C++ | src/renderpass.hpp | nicokoch/vkBasalt | 39cec21d26e096f0dd4d0c3d446f82e20841d365 | [
"Zlib"
] | null | null | null | src/renderpass.hpp | nicokoch/vkBasalt | 39cec21d26e096f0dd4d0c3d446f82e20841d365 | [
"Zlib"
] | null | null | null | src/renderpass.hpp | nicokoch/vkBasalt | 39cec21d26e096f0dd4d0c3d446f82e20841d365 | [
"Zlib"
] | null | null | null | #ifndef RENDERPASS_HPP_INCLUDED
#define RENDERPASS_HPP_INCLUDED
#include <vector>
#include <fstream>
#include <string>
#include <iostream>
#include <vector>
#include "vulkan/vulkan.h"
#include "vulkan/vk_layer.h"
#include "vulkan/vk_layer_dispatch_table.h"
namespace vkBasalt
{
void createRenderPass(const VkDevice& device, const VkLayerDispatchTable& dispatchTable, const VkFormat& format, VkRenderPass& renderPass);
}
#endif // RENDERPASS_HPP_INCLUDED
| 22.047619 | 143 | 0.794816 | nicokoch |
7aeacb01491a4f23aa39b4ba127bef6c872744eb | 14,682 | hh | C++ | net.ssa/xrLC/OpenMesh/Core/Mesh/Kernels/Common/AttribKernelT.hh | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | xrLC/OpenMesh/Core/Mesh/Kernels/Common/AttribKernelT.hh | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | xrLC/OpenMesh/Core/Mesh/Kernels/Common/AttribKernelT.hh | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | /*===========================================================================*\
* *
* OpenMesh *
* Copyright (C) 2001-2003 by Computer Graphics Group, RWTH Aachen *
* www.openmesh.org *
* *
*---------------------------------------------------------------------------*
* *
* License *
* *
* This library is free software; you can redistribute it and/or modify it *
* under the terms of the GNU Library General Public License as published *
* by the Free Software Foundation, version 2. *
* *
* This library 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 *
* Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
* *
\*===========================================================================*/
#ifndef OPENMESH_ATTRIBKERNEL_HH
#define OPENMESH_ATTRIBKERNEL_HH
//== INCLUDES =================================================================
#include <OpenMesh/Core/Attributes/Attributes.hh>
#include <OpenMesh/Core/Mesh/Kernels/Common/BaseKernel.hh>
#include <OpenMesh/Core/Utils/GenProg.hh>
#include <OpenMesh/Core/Utils/vector_traits.hh>
#include <vector>
//== NAMESPACES ===============================================================
namespace OpenMesh {
//== CLASS DEFINITION =========================================================
/// This class adds the standard properties to the mesh type.
///
/// The attribute kernel adds all standard properties to the kernel. Therefore
/// the functions/types defined here provide a subset of the kernel
/// interface as described in Concepts::KernelT.
///
/// \see Concepts::KernelT
template <class MeshItems>
class AttribKernelT : public BaseKernel
{
public:
//---------------------------------------------------------------- item types
typedef typename MeshItems::Vertex Vertex;
typedef typename MeshItems::Halfedge Halfedge;
typedef typename MeshItems::Edge Edge;
typedef typename MeshItems::Face Face;
typedef typename MeshItems::Point Point;
typedef typename MeshItems::Normal Normal;
typedef typename MeshItems::Color Color;
typedef typename MeshItems::TexCoord TexCoord;
typedef typename MeshItems::Scalar Scalar;
typedef Attributes::StatusInfo StatusInfo;
enum Attribs {
VAttribs = MeshItems::VAttribs,
HAttribs = MeshItems::HAttribs,
EAttribs = MeshItems::EAttribs,
FAttribs = MeshItems::FAttribs,
};
typedef GenProg::Bool2Type<(bool)(HAttribs & Attributes::PrevHalfedge)>
HasPrevHalfedge;
//-------------------------------------------------- constructor / destructor
AttribKernelT() :
refcount_vnormals_(0),
refcount_vcolors_(0),
refcount_vtexcoords_(0),
refcount_vstatus_(0),
refcount_hstatus_(0),
refcount_estatus_(0),
refcount_fnormals_(0),
refcount_fcolors_(0),
refcount_fstatus_(0)
{
add_property( points_, "v:points" );
if (VAttribs & Attributes::Normal)
request_vertex_normals();
if (VAttribs & Attributes::Color)
request_vertex_colors();
if (VAttribs & Attributes::TexCoord)
request_vertex_texcoords();
if (VAttribs & Attributes::Status)
request_vertex_status();
if (HAttribs & Attributes::Status)
request_halfedge_status();
if (EAttribs & Attributes::Status)
request_edge_status();
if (FAttribs & Attributes::Normal)
request_face_normals();
if (FAttribs & Attributes::Color)
request_face_colors();
if (FAttribs & Attributes::Status)
request_face_status();
}
~AttribKernelT()
{
// should remove properties, but this will be done in
// BaseKernel's destructor anyway...
}
// -------------------------------------------------------- copy & assignment
AttribKernelT(const AttribKernelT& _rhs)
: BaseKernel(_rhs)
{ operator=(_rhs); }
AttribKernelT& operator=(const AttribKernelT& _rhs)
{
// remove old properties
remove_property(points_);
remove_property(vertex_normals_);
remove_property(vertex_colors_);
remove_property(vertex_texcoords_);
remove_property(vertex_status_);
remove_property(halfedge_status_);
remove_property(edge_status_);
remove_property(face_normals_);
remove_property(face_colors_);
remove_property(face_status_);
// parent deep-copies properties
BaseKernel::operator=(_rhs);
// copy property handles
points_ = _rhs.points_;
vertex_normals_ = _rhs.vertex_normals_;
vertex_colors_ = _rhs.vertex_colors_;
vertex_texcoords_ = _rhs.vertex_texcoords_;
vertex_status_ = _rhs.vertex_status_;
halfedge_status_ = _rhs.halfedge_status_;
edge_status_ = _rhs.edge_status_;
face_normals_ = _rhs.face_normals_;
face_colors_ = _rhs.face_colors_;
face_status_ = _rhs.face_status_;
// copy ref-counts
refcount_vnormals_ = _rhs.refcount_vnormals_;
refcount_vcolors_ = _rhs.refcount_vcolors_;
refcount_vtexcoords_ = _rhs.refcount_vtexcoords_;
refcount_vstatus_ = _rhs.refcount_vstatus_;
refcount_hstatus_ = _rhs.refcount_hstatus_;
refcount_estatus_ = _rhs.refcount_estatus_;
refcount_fnormals_ = _rhs.refcount_fnormals_;
refcount_fcolors_ = _rhs.refcount_fcolors_;
refcount_fstatus_ = _rhs.refcount_fstatus_;
return *this;
}
//-------------------------------------------------------------------- points
const Point* points() const {
return property(points_).data();
}
const Point& point(VertexHandle _vh) const {
return property(points_, _vh);
}
Point& point(VertexHandle _vh) {
return property(points_, _vh);
}
void set_point(VertexHandle _vh, const Point& _p) {
property(points_, _vh) = _p;
}
//------------------------------------------------------------ vertex normals
const Normal* vertex_normals() const {
return property(vertex_normals_).data();
}
const Normal& normal(VertexHandle _vh) const {
return property(vertex_normals_, _vh);
}
void set_normal(VertexHandle _vh, const Normal& _n) {
property(vertex_normals_, _vh) = _n;
}
//------------------------------------------------------------- vertex colors
const Color* vertex_colors() const {
return property(vertex_colors_).data();
}
const Color& color(VertexHandle _vh) const {
return property(vertex_colors_, _vh);
}
void set_color(VertexHandle _vh, const Color& _c) {
property(vertex_colors_, _vh) = _c;
}
//---------------------------------------------------------- vertex texcoords
const TexCoord* texcoords() const {
return property(vertex_texcoords_).data();
}
const TexCoord& texcoord(VertexHandle _vh) const {
return property(vertex_texcoords_, _vh);
}
void set_texcoord(VertexHandle _vh, const TexCoord& _t) {
property(vertex_texcoords_, _vh) = _t;
}
//------------------------------------------------------------ vertex status
const StatusInfo& status(VertexHandle _vh) const {
return property(vertex_status_, _vh);
}
StatusInfo& status(VertexHandle _vh) {
return property(vertex_status_, _vh);
}
//----------------------------------------------------------- halfedge status
const StatusInfo& status(HalfedgeHandle _hh) const {
return property(halfedge_status_, _hh);
}
StatusInfo& status(HalfedgeHandle _hh) {
return property(halfedge_status_, _hh);
}
//--------------------------------------------------------------- edge status
const StatusInfo& status(EdgeHandle _eh) const {
return property(edge_status_, _eh);
}
StatusInfo& status(EdgeHandle _eh) {
return property(edge_status_, _eh);
}
//--------------------------------------------------------------- face status
const StatusInfo& status(FaceHandle _fh) const {
return property(face_status_, _fh);
}
StatusInfo& status(FaceHandle _fh) {
return property(face_status_, _fh);
}
//-------------------------------------------------------------- face normals
const Normal& normal(FaceHandle _fh) const {
return property(face_normals_, _fh);
}
void set_normal(FaceHandle _fh, const Normal& _n) {
property(face_normals_, _fh) = _n;
}
//--------------------------------------------------------------- face colors
const Color& color(FaceHandle _fh) const {
return property(face_colors_, _fh);
}
void set_color(FaceHandle _fh, const Color& _c) {
property(face_colors_, _fh) = _c;
}
//------------------------------------------------ request / alloc properties
void request_vertex_normals() {
if (!refcount_vnormals_++)
add_property( vertex_normals_, "v:normals" );
}
void request_vertex_colors() {
if (!refcount_vcolors_++)
add_property( vertex_colors_, "v:colors" );
}
void request_vertex_texcoords() {
if (!refcount_vtexcoords_++)
add_property( vertex_texcoords_, "v:texcoords" );
}
void request_vertex_status() {
if (!refcount_vstatus_++)
add_property( vertex_status_, "v:status" );
}
void request_halfedge_status() {
if (!refcount_hstatus_++)
add_property( halfedge_status_, "h:status" );
}
void request_edge_status() {
if (!refcount_estatus_++)
add_property( edge_status_, "e:status" );
}
void request_face_normals() {
if (!refcount_fnormals_++)
add_property( face_normals_, "f:normals" );
}
void request_face_colors() {
if (!refcount_fcolors_++)
add_property( face_colors_, "f:colors" );
}
void request_face_status() {
if (!refcount_fstatus_++)
add_property( face_status_, "f:status" );
}
//------------------------------------------------- release / free properties
void release_vertex_normals() {
if ((refcount_vnormals_ > 0) && (! --refcount_vnormals_))
remove_property(vertex_normals_);
}
void release_vertex_colors() {
if ((refcount_vcolors_ > 0) && (! --refcount_vcolors_))
remove_property(vertex_colors_);
}
void release_vertex_texcoords() {
if ((refcount_vtexcoords_ > 0) && (! --refcount_vtexcoords_))
remove_property(vertex_texcoords_);
}
void release_vertex_status() {
if ((refcount_vstatus_ > 0) && (! --refcount_vstatus_))
remove_property(vertex_status_);
}
void release_halfedge_status() {
if ((refcount_hstatus_ > 0) && (! --refcount_hstatus_))
remove_property(halfedge_status_);
}
void release_edge_status() {
if ((refcount_estatus_ > 0) && (! --refcount_estatus_))
remove_property(edge_status_);
}
void release_face_normals() {
if ((refcount_fnormals_ > 0) && (! --refcount_fnormals_))
remove_property(face_normals_);
}
void release_face_colors() {
if ((refcount_fcolors_ > 0) && (! --refcount_fcolors_))
remove_property(face_colors_);
}
void release_face_status() {
if ((refcount_fstatus_ > 0) && (! --refcount_fstatus_))
remove_property(face_status_);
}
//---------------------------------------------- dynamic check for properties
bool has_vertex_normals() const { return vertex_normals_.is_valid(); }
bool has_vertex_colors() const { return vertex_colors_.is_valid(); }
bool has_vertex_texcoords() const { return vertex_texcoords_.is_valid(); }
bool has_vertex_status() const { return vertex_status_.is_valid(); }
bool has_halfedge_status() const { return halfedge_status_.is_valid(); }
bool has_edge_status() const { return edge_status_.is_valid(); }
bool has_face_normals() const { return face_normals_.is_valid(); }
bool has_face_colors() const { return face_colors_.is_valid(); }
bool has_face_status() const { return face_status_.is_valid(); }
static bool has_prev_halfedge() {
return (HAttribs & Attributes::PrevHalfedge);
}
protected:
VPropHandleT<Point> points_;
VPropHandleT<Normal> vertex_normals_;
VPropHandleT<Color> vertex_colors_;
VPropHandleT<TexCoord> vertex_texcoords_;
VPropHandleT<StatusInfo> vertex_status_;
HPropHandleT<StatusInfo> halfedge_status_;
EPropHandleT<StatusInfo> edge_status_;
FPropHandleT<Normal> face_normals_;
FPropHandleT<Color> face_colors_;
FPropHandleT<StatusInfo> face_status_;
unsigned int refcount_vnormals_;
unsigned int refcount_vcolors_;
unsigned int refcount_vtexcoords_;
unsigned int refcount_vstatus_;
unsigned int refcount_hstatus_;
unsigned int refcount_estatus_;
unsigned int refcount_fnormals_;
unsigned int refcount_fcolors_;
unsigned int refcount_fstatus_;
};
//=============================================================================
} // namespace OpenMesh
//=============================================================================
#endif // OPENMESH_ATTRIBKERNEL_HH defined
//=============================================================================
| 31.040169 | 80 | 0.551424 | ixray-team |
7aec20a3863be1448d380a37dd1ff7381a4ef18e | 1,141 | cpp | C++ | test/0005_specifers.pp.cpp | WCIofQMandRA/global-variable | 62e6b3f6e2f714f6e0de06027b2d48716635d109 | [
"FSFAP"
] | 4 | 2021-02-03T03:28:21.000Z | 2021-12-08T05:39:53.000Z | test/0005_specifers.pp.cpp | WCIofQMandRA/global-variable | 62e6b3f6e2f714f6e0de06027b2d48716635d109 | [
"FSFAP"
] | null | null | null | test/0005_specifers.pp.cpp | WCIofQMandRA/global-variable | 62e6b3f6e2f714f6e0de06027b2d48716635d109 | [
"FSFAP"
] | null | null | null | //Author: 张子辰
//This file is in public domain.
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <random>
using namespace std;
int main()
{
vector<string> spec={"extern","static","const","volatile","thread_local"};
mt19937_64 rand64;
rand64.seed(random_device()());
ofstream test("0005.pp.cpp",ios_base::binary),ans("0005.pp.ans",ios_base::binary);
test<<R"(//This file is generated by 0005_specifers.pp.gen.cpp.
#define ____SGV_SHOW_PP_RESULT
#include <global_variable.hpp>
____SGV_PP_CHECK_BEGIN)"<<endl;
for(uint32_t i=0;i<32;++i)
{
vector<string> s;
ans<<"____SGV_GV";
for(int j=0;j<5;++j)
{
if(i&1<<j)
{
s.emplace_back(spec[j]);
ans<<'1';
}
else ans<<'0';
}
shuffle(s.begin(),s.end(),rand64);
test<<"global_variable(";
if(s.size())
{
test<<s[0];
for(auto j=s.begin()+1;j!=s.end();++j)
test<<(rand64()%2?" ":"\t")<<*j;
test<<",";
}
if(rand64()%2)
{
test<<"int,a)\n";
ans<<"_ARG2(int,a)\n";
}
else
{
test<<"int,a,1)\n";
ans<<"_ARG3(int,a,1)\n";
}
}
test<<"____SGV_PP_CHECK_END"<<endl;
test.close();
ans.close();
} | 20.017544 | 83 | 0.606486 | WCIofQMandRA |
7aeeff2f924b6bb37decd3dab1920be1b084cf55 | 401 | hpp | C++ | include/amy/detail/mariadb_types.hpp | finito/amy | 58d97d443a0dd3165da42e02b1608a52b874afa0 | [
"MIT"
] | null | null | null | include/amy/detail/mariadb_types.hpp | finito/amy | 58d97d443a0dd3165da42e02b1608a52b874afa0 | [
"MIT"
] | null | null | null | include/amy/detail/mariadb_types.hpp | finito/amy | 58d97d443a0dd3165da42e02b1608a52b874afa0 | [
"MIT"
] | null | null | null | #ifndef __AMY_DETAIL_MARIADB_TYPES_HPP__
#define __AMY_DETAIL_MARIADB_TYPES_HPP__
#include <amy/detail/mysql_types.hpp>
namespace amy {
namespace detail {
const int progress_callback = MYSQL_PROGRESS_CALLBACK;
const int nonblock = MYSQL_OPT_NONBLOCK;
} // namespace detail
} // namespace amy
#endif // __AMY_DETAIL_MARIADB_TYPES_HPP__
// vim:ft=cpp sw=4 ts=4 tw=80 et
| 22.277778 | 63 | 0.745636 | finito |
7af045997ffc90272d7bb2c725cd29db3b211da8 | 760 | cpp | C++ | qt_course/examples/01_trivial/05_string/main.cpp | matus-chochlik/various | 2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b | [
"MIT"
] | 1 | 2020-10-25T12:28:50.000Z | 2020-10-25T12:28:50.000Z | qt_course/examples/01_trivial/05_string/main.cpp | matus-chochlik/various | 2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b | [
"MIT"
] | null | null | null | qt_course/examples/01_trivial/05_string/main.cpp | matus-chochlik/various | 2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b | [
"MIT"
] | null | null | null | #include <QString>
#include <QDebug>
int main(void)
{
QString str("ABCDEFGHIJKL");
qDebug() << str;
qDebug() << str.size();
qDebug() << str.capacity();
qDebug() << str.contains("XYZ");
qDebug() << str.contains("DEF");
qDebug() << str.indexOf("DEF");
qDebug() << str.indexOf("DEF", 4);
qDebug() << str.startsWith("ABC");
qDebug() << str.endsWith("IJK");
qDebug() << str.left(3);
qDebug() << str.mid(5, 3);
qDebug() << str.right(3);
str.chop(9);
for(int i=0, n=str.length(); i<n; ++i)
{
qDebug() << str[i];
}
str.append('X');
foreach(QChar c, str)
{
qDebug() << c;
}
QString format("Iteration %1 of %2 - %3 %");
for(int i=0, n=10; i<=n; ++i)
{
qDebug() << format.arg(i, 2).arg(n, 2).arg(100*float(i)/n, 3);
}
return 0;
}
| 17.674419 | 64 | 0.551316 | matus-chochlik |
7af3e09b74f907712fbd78a40a5af788bf75162b | 31,478 | hpp | C++ | include/sdsl/csa_alphabet_strategy.hpp | wolfee001/sdsl-lite | 3061a0b64f75f070bb8f4a1f91e570fcfc7ebe75 | [
"BSD-3-Clause"
] | 54 | 2017-03-23T23:10:40.000Z | 2022-03-22T14:25:11.000Z | include/sdsl/csa_alphabet_strategy.hpp | wolfee001/sdsl-lite | 3061a0b64f75f070bb8f4a1f91e570fcfc7ebe75 | [
"BSD-3-Clause"
] | 65 | 2017-05-09T05:28:43.000Z | 2021-12-16T13:02:25.000Z | include/sdsl/csa_alphabet_strategy.hpp | wolfee001/sdsl-lite | 3061a0b64f75f070bb8f4a1f91e570fcfc7ebe75 | [
"BSD-3-Clause"
] | 23 | 2017-03-23T23:11:44.000Z | 2022-02-20T22:36:33.000Z | // Copyright (c) 2016, the SDSL Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
/*!\file csa_alphabet_strategy.hpp
* \brief csa_alphabet_strategy.hpp includes different strategy classes for representing an alphabet of a CSA.
* \author Simon Gog
*/
#ifndef INCLUDED_CSA_ALPHABET_STRATEGY
#define INCLUDED_CSA_ALPHABET_STRATEGY
// TODO: Strategy with 1-to-1 mapping and C_array type as template parameter
// This can be also used for a integer based CSA.
/* A alphabet strategy provides the following features:
* * Member `sigma` which contains the size (=number of unique symbols) of the alphabet.
* * Container `char2comp` which maps a symbol to a number [0..sigma-1]. The alphabetic
* order is preserved.
* * Container `comp2char` which is the inverse mapping of char2comp.
* * Container `C` contains the cumulative counts of occurrences. C[i] is the cumulative
* count of occurrences of symbols `comp2char[0]` to `comp2char[i-1]` in the text.
* C is of size `sigma+1`.
* * Typedefs for the four above members:
* * char2comp_type
* * comp2char_type
* * C_type
* * sigma_type
* * Constructor. Takes a int_vector_buffer<8> for byte-alphabets
* and int_vector_buffer<0> for integer-alphabets.
*
* \par Note
* sigma_type has to be large enough to represent the alphabet size 2*sigma,
* since there is code which will perform a binary search on array `C`.
*/
#include <string>
#include <sdsl/config.hpp>
#include <sdsl/int_vector.hpp>
#include <sdsl/rank_support.hpp>
#include <sdsl/sd_vector.hpp>
#include <sdsl/sdsl_concepts.hpp>
#include <sdsl/select_support.hpp>
namespace sdsl
{
// forward declarations
class byte_alphabet;
template <class bit_vector_type = bit_vector,
class rank_support_type = rank_support_scan<>,
class select_support_type = select_support_scan<>,
class C_array_type = int_vector<>>
class succinct_byte_alphabet;
template <class bit_vector_type = sd_vector<>,
class rank_support_type = typename bit_vector_type::rank_1_type,
class select_support_type = typename bit_vector_type::select_1_type,
class C_array_type = int_vector<>>
class int_alphabet;
template <uint8_t int_width>
constexpr const char * key_text()
{
return conf::KEY_TEXT_INT;
}
template <uint8_t int_width>
constexpr const char * key_bwt()
{
return conf::KEY_BWT_INT;
}
template <>
inline constexpr const char * key_text<8>()
{
return conf::KEY_TEXT;
}
template <>
inline constexpr const char * key_bwt<8>()
{
return conf::KEY_BWT;
}
template <class t_alphabet_strategy>
struct alphabet_trait
{
typedef byte_alphabet type;
};
template <>
struct alphabet_trait<int_alphabet_tag>
{
typedef int_alphabet<> type;
};
// see
// http://stackoverflow.com/questions/13514587/c-check-for-nested-typedef-of-a-template-parameter-to-get-its-scalar-base-type
// for the next three functions
template <class t_wt, class t_enable = void>
struct wt_alphabet_trait
{
typedef t_enable type;
};
template <class t_wt>
struct wt_alphabet_trait<t_wt, typename enable_if_type<typename t_wt::alphabet_category>::type>
{
using type = typename alphabet_trait<typename t_wt::alphabet_category>::type;
};
//! A simple space greedy representation for byte alphabets.
/*!
* \par Space consumption:
* At least: 2.5 kB
* Details: char2comp + comp2char take 2*256 + 2*8 bytes
* m_C takes 257*8 bytes
* m_sigma takes 2 bytes
*/
class byte_alphabet
{
public:
typedef int_vector<>::size_type size_type;
typedef int_vector<8> char2comp_type;
typedef int_vector<8> comp2char_type;
typedef int_vector<64> C_type;
typedef uint16_t sigma_type;
typedef uint8_t char_type;
typedef uint8_t comp_char_type;
typedef std::string string_type;
enum
{
int_width = 8
};
typedef byte_alphabet_tag alphabet_category;
const char2comp_type & char2comp;
const comp2char_type & comp2char;
const C_type & C;
const sigma_type & sigma;
private:
char2comp_type m_char2comp; // Mapping from a character into the compact alphabet.
comp2char_type m_comp2char; // Inverse mapping of m_char2comp.
C_type m_C; // Cumulative counts for the compact alphabet [0..sigma].
sigma_type m_sigma; // Effective size of the alphabet.
public:
//! Default constructor
byte_alphabet()
: char2comp(m_char2comp)
, comp2char(m_comp2char)
, C(m_C)
, sigma(m_sigma)
, m_sigma(0)
{}
//! Construct from a byte-stream
/*!
* \param text_buf Byte stream.
* \param len Length of the byte stream.
*/
byte_alphabet(int_vector_buffer<8> & text_buf, int_vector_size_type len)
: char2comp(m_char2comp)
, comp2char(m_comp2char)
, C(m_C)
, sigma(m_sigma)
{
m_sigma = 0;
if (0 == len or 0 == text_buf.size()) return;
assert(len <= text_buf.size());
// initialize vectors
m_C = int_vector<64>(257, 0);
m_char2comp = int_vector<8>(256, 0);
m_comp2char = int_vector<8>(256, 0);
// count occurrences of each symbol
for (size_type i = 0; i < len; ++i) { ++m_C[text_buf[i]]; }
assert(1 == m_C[0]); // null-byte should occur exactly once
m_sigma = 0;
for (int i = 0; i < 256; ++i)
if (m_C[i])
{
m_char2comp[i] = m_sigma;
m_comp2char[sigma] = i;
m_C[m_sigma] = m_C[i];
++m_sigma;
}
m_comp2char.resize(m_sigma);
m_C.resize(m_sigma + 1);
for (int i = (int)m_sigma; i > 0; --i) m_C[i] = m_C[i - 1];
m_C[0] = 0;
for (int i = 1; i <= (int)m_sigma; ++i) m_C[i] += m_C[i - 1];
assert(C[sigma] == len);
}
byte_alphabet(const byte_alphabet & bas)
: char2comp(m_char2comp)
, comp2char(m_comp2char)
, C(m_C)
, sigma(m_sigma)
, m_char2comp(bas.m_char2comp)
, m_comp2char(bas.m_comp2char)
, m_C(bas.m_C)
, m_sigma(bas.m_sigma)
{}
byte_alphabet(byte_alphabet && bas)
: char2comp(m_char2comp)
, comp2char(m_comp2char)
, C(m_C)
, sigma(m_sigma)
, m_char2comp(std::move(bas.m_char2comp))
, m_comp2char(std::move(bas.m_comp2char))
, m_C(std::move(bas.m_C))
, m_sigma(bas.m_sigma)
{}
byte_alphabet & operator=(const byte_alphabet & bas)
{
if (this != &bas)
{
byte_alphabet tmp(bas);
*this = std::move(tmp);
}
return *this;
}
byte_alphabet & operator=(byte_alphabet && bas)
{
if (this != &bas)
{
m_char2comp = std::move(bas.m_char2comp);
m_comp2char = std::move(bas.m_comp2char);
m_C = std::move(bas.m_C);
m_sigma = std::move(bas.m_sigma);
}
return *this;
}
size_type serialize(std::ostream & out, structure_tree_node * v, std::string name = "") const
{
structure_tree_node * child = structure_tree::add_child(v, name, util::class_name(*this));
size_type written_bytes = 0;
written_bytes += m_char2comp.serialize(out, child, "m_char2comp");
written_bytes += m_comp2char.serialize(out, child, "m_comp2char");
written_bytes += m_C.serialize(out, child, "m_C");
written_bytes += write_member(m_sigma, out, child, "m_sigma");
structure_tree::add_size(child, written_bytes);
return written_bytes;
}
void load(std::istream & in)
{
m_char2comp.load(in);
m_comp2char.load(in);
m_C.load(in);
read_member(m_sigma, in);
}
//! Equality operator.
bool operator==(byte_alphabet const & other) const noexcept
{
return (m_char2comp == other.m_char2comp) && (m_comp2char == other.m_comp2char) && (m_C == other.m_C) &&
(m_sigma == other.m_sigma);
}
//! Inequality operator.
bool operator!=(byte_alphabet const & other) const noexcept { return !(*this == other); }
template <typename archive_t>
void CEREAL_SAVE_FUNCTION_NAME(archive_t & ar) const
{
ar(CEREAL_NVP(m_char2comp));
ar(CEREAL_NVP(m_comp2char));
ar(CEREAL_NVP(m_C));
ar(CEREAL_NVP(m_sigma));
}
template <typename archive_t>
void CEREAL_LOAD_FUNCTION_NAME(archive_t & ar)
{
ar(CEREAL_NVP(m_char2comp));
ar(CEREAL_NVP(m_comp2char));
ar(CEREAL_NVP(m_C));
ar(CEREAL_NVP(m_sigma));
}
};
//! A space-efficient representation for byte alphabets.
/*!
* The mapping `char2comp` and its inverse `comp2char` is realized internally
* by a bitvector of size 256 bits and a rank and a select structure. The rank
* structure is used to calculate `char2comp`; the select structure is used to
* calculate `comp2char`. Array `C` is represented by a bit-compressed
* `int_vector` and `sigma` by a uint16_t.
* The types to represent `char2comp`, `comp2char`, and `C` can be specified
* by template parameters.
*/
template <class bit_vector_type, class rank_support_type, class select_support_type, class C_array_type>
class succinct_byte_alphabet
{
public:
class char2comp_wrapper;
class comp2char_wrapper;
friend class char2comp_wrapper;
friend class comp2char_wrapper;
typedef int_vector<>::size_type size_type;
typedef char2comp_wrapper char2comp_type;
typedef comp2char_wrapper comp2char_type;
typedef C_array_type C_type;
typedef uint16_t sigma_type;
typedef uint8_t char_type;
typedef uint8_t comp_char_type;
typedef std::string string_type;
typedef byte_alphabet_tag alphabet_category;
enum
{
int_width = 8
};
//! Helper class for the char2comp mapping
class char2comp_wrapper
{
private:
const succinct_byte_alphabet * m_strat;
public:
char2comp_wrapper(const succinct_byte_alphabet * strat)
: m_strat(strat)
{}
comp_char_type operator[](char_type c) const
{
if (c >= m_strat->m_char.size() or !m_strat->m_char[c]) return (comp_char_type)0;
return (comp_char_type)m_strat->m_char_rank((size_type)c);
}
};
//! Helper class for the comp2char mapping
class comp2char_wrapper
{
private:
const succinct_byte_alphabet * m_strat;
public:
comp2char_wrapper(const succinct_byte_alphabet * strat)
: m_strat(strat)
{}
char_type operator[](comp_char_type c) const { return (char_type)m_strat->m_char_select(((size_type)c) + 1); }
};
const char2comp_type char2comp;
const comp2char_type comp2char;
const C_type & C;
const sigma_type & sigma;
private:
bit_vector_type m_char; // `m_char[i]` indicates if character with code i is present or not
rank_support_type m_char_rank; // rank data structure for `m_char` to answer char2comp
select_support_type m_char_select; // select data structure for `m_char` to answer comp2char
C_type m_C; // cumulative counts for the compact alphabet [0..sigma]
sigma_type m_sigma; // effective size of the alphabet
public:
//! Default constructor
succinct_byte_alphabet()
: char2comp(this)
, comp2char(this)
, C(m_C)
, sigma(m_sigma)
, m_sigma(0)
{}
//! Construct from a byte-stream
/*!
* \param text_buf Byte stream.
* \param len Length of the byte stream.
*/
succinct_byte_alphabet(int_vector_buffer<8> & text_buf, int_vector_size_type len)
: char2comp(this)
, comp2char(this)
, C(m_C)
, sigma(m_sigma)
{
m_sigma = 0;
if (0 == len or 0 == text_buf.size()) return;
assert(len <= text_buf.size());
// initialize vectors
int_vector<64> D(257, 0);
bit_vector tmp_char(256, 0);
// count occurrences of each symbol
for (size_type i = 0; i < len; ++i) { ++D[text_buf[i]]; }
assert(1 == D[0]); // null-byte should occur exactly once
m_sigma = 0;
for (int i = 0; i < 256; ++i)
if (D[i])
{
tmp_char[i] = 1; // mark occurring character
D[m_sigma] = D[i]; // compactify m_C
++m_sigma;
}
// resize to sigma+1, since CSAs also need the sum of all elements
m_C = C_type(m_sigma + 1, 0, bits::hi(len) + 1);
for (int i = (int)m_sigma; i > 0; --i) m_C[i] = D[i - 1];
m_C[0] = 0;
for (int i = 1; i <= (int)m_sigma; ++i) m_C[i] = m_C[i] + m_C[i - 1];
assert(m_C[sigma] == len);
m_char = tmp_char;
util::init_support(m_char_rank, &m_char);
util::init_support(m_char_select, &m_char);
}
//! Copy constructor
succinct_byte_alphabet(const succinct_byte_alphabet & strat)
: char2comp(this)
, comp2char(this)
, C(m_C)
, sigma(m_sigma)
, m_char(strat.m_char)
, m_char_rank(strat.m_char_rank)
, m_char_select(strat.m_char_select)
, m_C(strat.m_C)
, m_sigma(strat.m_sigma)
{
m_char_rank.set_vector(&m_char);
m_char_select.set_vector(&m_char);
}
//! Move constructor
succinct_byte_alphabet(succinct_byte_alphabet && strat)
: char2comp(this)
, comp2char(this)
, C(m_C)
, sigma(m_sigma)
, m_char(std::move(strat.m_char))
, m_char_rank(std::move(strat.m_char_rank))
, m_char_select(std::move(strat.m_char_select))
, m_C(std::move(strat.m_C))
, m_sigma(std::move(strat.m_sigma))
{
m_char_rank.set_vector(&m_char);
m_char_select.set_vector(&m_char);
}
succinct_byte_alphabet & operator=(const succinct_byte_alphabet & strat)
{
if (this != &strat)
{
succinct_byte_alphabet tmp(strat);
*this = std::move(tmp);
}
return *this;
}
succinct_byte_alphabet & operator=(succinct_byte_alphabet && strat)
{
if (this != &strat)
{
m_char = std::move(strat.m_char);
m_char_rank = std::move(strat.m_char_rank);
m_char_rank.set_vector(&m_char);
m_char_select = std::move(strat.m_char_select);
m_char_select.set_vector(&m_char);
m_C = std::move(strat.m_C);
m_sigma = std::move(strat.m_sigma);
}
return *this;
}
//! Serialize method
size_type serialize(std::ostream & out, structure_tree_node * v = nullptr, std::string name = "") const
{
structure_tree_node * child = structure_tree::add_child(v, name, util::class_name(*this));
size_type written_bytes = 0;
written_bytes += m_char.serialize(out, child, "m_char");
written_bytes += m_char_rank.serialize(out, child, "m_char_rank");
written_bytes += m_char_select.serialize(out, child, "m_char_select");
written_bytes += m_C.serialize(out, child, "m_C");
written_bytes += write_member(m_sigma, out, child, "m_sigma");
structure_tree::add_size(child, written_bytes);
return written_bytes;
}
//! Load method
void load(std::istream & in)
{
m_char.load(in);
m_char_rank.load(in);
m_char_rank.set_vector(&m_char);
m_char_select.load(in);
m_char_select.set_vector(&m_char);
m_C.load(in);
read_member(m_sigma, in);
}
//! Equality operator.
bool operator==(succinct_byte_alphabet const & other) const noexcept
{
return (m_char == other.m_char) && (m_char_rank == other.m_char_rank) &&
(m_char_select == other.m_char_select) && (m_C == other.m_C) && (m_sigma == other.m_sigma);
}
//! Inequality operator.
bool operator!=(succinct_byte_alphabet const & other) const noexcept { return !(*this == other); }
template <typename archive_t>
void CEREAL_SAVE_FUNCTION_NAME(archive_t & ar) const
{
ar(CEREAL_NVP(m_char));
ar(CEREAL_NVP(m_char_rank));
ar(CEREAL_NVP(m_char_select));
ar(CEREAL_NVP(m_C));
ar(CEREAL_NVP(m_sigma));
}
template <typename archive_t>
void CEREAL_LOAD_FUNCTION_NAME(archive_t & ar)
{
ar(CEREAL_NVP(m_char));
ar(CEREAL_NVP(m_char_rank));
m_char_rank.set_vector(&m_char);
ar(CEREAL_NVP(m_char_select));
m_char_select.set_vector(&m_char);
ar(CEREAL_NVP(m_C));
ar(CEREAL_NVP(m_sigma));
}
};
template <typename bit_vector_type, typename size_type>
void init_char_bitvector(bit_vector_type & char_bv, const std::map<size_type, size_type> & D)
{
// note: the alphabet has at least size 1, so the following is safe:
auto largest_symbol = (--D.end())->first;
bit_vector tmp_char(largest_symbol + 1, 0);
for (const auto & x : D) { tmp_char[x.first] = 1; }
char_bv = tmp_char;
}
template <typename t_hi_bit_vector, typename t_select_1, typename t_select_0, typename size_type>
void init_char_bitvector(sd_vector<t_hi_bit_vector, t_select_1, t_select_0> & char_bv,
const std::map<size_type, size_type> & D)
{
auto largest_symbol = (--D.end())->first;
sd_vector_builder builder(largest_symbol + 1, D.size());
for (const auto & x : D) { builder.set(x.first); }
char_bv = std::move(sd_vector<t_hi_bit_vector, t_select_1, t_select_0>(builder));
}
/*!\brief Provides an alphabet mapping that implements an identity map (i.e. each character is mapped to its rank).
* \details This mapping is faster for FM indices and should always be used for ranges containing all characters of the
* underlying alphabet type. Indices based on a text not containing all characters of its alphabet type will
* have a much higher memory footprint using this alphabet mapping.
*/
class plain_byte_alphabet
{
public:
//! Helper class for the char2comp and comp2char mapping.
class mapping_wrapper;
typedef int_vector<>::size_type size_type;
typedef mapping_wrapper char2comp_type;
typedef mapping_wrapper comp2char_type;
typedef int_vector<64> C_type;
typedef uint16_t sigma_type;
typedef uint8_t char_type;
typedef uint8_t comp_char_type;
typedef std::string string_type;
typedef byte_alphabet_tag alphabet_category;
enum
{
int_width = 8
};
//! Helper class for the char2comp and comp2char mapping.
class mapping_wrapper
{
public:
//! Default constructor.
mapping_wrapper() = default;
//! Random access operator.
constexpr char_type operator[](char_type const c) const noexcept { return c; }
};
const char2comp_type char2comp{};
const comp2char_type comp2char{};
const C_type & C;
const sigma_type & sigma;
private:
C_type m_C; // Cumulative counts for the compact alphabet [0..sigma].
sigma_type m_sigma; // Effective size of the alphabet.
public:
//! Default constructor.
plain_byte_alphabet()
: C(m_C)
, sigma(m_sigma)
, m_sigma(0)
{}
/*! Construct from a byte-stream.
* \param text_buf Byte stream.
* \param len Length of the byte stream.
*/
plain_byte_alphabet(int_vector_buffer<8> & text_buf, int_vector_size_type len)
: C(m_C)
, sigma(m_sigma)
{
m_sigma = 0;
if (0 == len || 0 == text_buf.size()) return;
assert(len <= text_buf.size());
// initialize vectors
m_C = int_vector<64>(257, 0);
// count occurrences of each symbol
for (size_type i = 0; i < len; ++i) ++m_C[text_buf[i]];
assert(1 == m_C[0]); // null-byte should occur exactly once
m_sigma = 255;
for (int i = 0; i < 256; ++i)
{
if (m_C[i])
{
m_sigma = i + 1;
// m_C[m_sigma] = m_C[i];
// ++m_sigma;
}
}
// m_C.resize(m_sigma + 1);
for (int i = (int)256; i > 0; --i) m_C[i] = m_C[i - 1];
m_C[0] = 0;
for (int i = 1; i <= (int)256; ++i) m_C[i] += m_C[i - 1];
assert(C[sigma] == len);
}
//! Copy constructor.
plain_byte_alphabet(plain_byte_alphabet const & strat)
: C(m_C)
, sigma(m_sigma)
, m_C(strat.m_C)
, m_sigma(strat.m_sigma)
{}
//! Move constructor.
plain_byte_alphabet(plain_byte_alphabet && strat) noexcept
: C(m_C)
, sigma(m_sigma)
, m_C(std::move(strat.m_C))
, m_sigma(strat.m_sigma)
{}
//! Copy assignment.
plain_byte_alphabet & operator=(plain_byte_alphabet const & strat)
{
if (this != &strat)
{
plain_byte_alphabet tmp(strat);
*this = std::move(tmp);
}
return *this;
}
//! Move assignment.
plain_byte_alphabet & operator=(plain_byte_alphabet && strat) noexcept
{
if (this != &strat)
{
m_C = std::move(strat.m_C);
m_sigma = strat.m_sigma;
}
return *this;
}
//!\cond
size_type serialize(std::ostream & out, structure_tree_node * v, std::string const & name = "") const
{
structure_tree_node * child = structure_tree::add_child(v, name, util::class_name(*this));
size_type written_bytes = 0;
written_bytes += m_C.serialize(out, child, "m_C");
written_bytes += write_member(m_sigma, out, child, "m_sigma");
structure_tree::add_size(child, written_bytes);
return written_bytes;
}
void load(std::istream & in)
{
m_C.load(in);
read_member(m_sigma, in);
}
template <typename archive_t>
void CEREAL_SAVE_FUNCTION_NAME(archive_t & ar) const
{
ar(CEREAL_NVP(m_C));
ar(CEREAL_NVP(m_sigma));
}
template <typename archive_t>
void CEREAL_LOAD_FUNCTION_NAME(archive_t & ar)
{
ar(CEREAL_NVP(m_C));
ar(CEREAL_NVP(m_sigma));
}
bool operator==(plain_byte_alphabet const & other) const noexcept
{
return (m_C == other.m_C) && (m_sigma == other.m_sigma);
}
bool operator!=(plain_byte_alphabet const & other) const noexcept { return !(*this == other); }
//!\endcond
};
//! A space-efficient representation for byte alphabets.
/*!
* The mapping `char2comp` and its inverse `comp2char` is realized internally
* by a bitvector of size sigma bits and a rank and a select structure, if the
* alphabet contains not all symbols in the range [0..sigma-1]. If it contains
* all symbols, i.e. the alphabet is continuous, then we map the symbols
* directly and no extra space is used.
*
* The types to represent `char2comp`, `comp2char`, and `C` can be specified
* by template parameters.
*/
template <class bit_vector_type, class rank_support_type, class select_support_type, class C_array_type>
class int_alphabet
{
public:
class char2comp_wrapper;
class comp2char_wrapper;
friend class char2comp_wrapper;
friend class comp2char_wrapper;
typedef int_vector<>::size_type size_type;
typedef char2comp_wrapper char2comp_type;
typedef comp2char_wrapper comp2char_type;
typedef C_array_type C_type;
typedef uint64_t sigma_type;
typedef uint64_t char_type;
typedef uint64_t comp_char_type;
typedef std::vector<char_type> string_type;
typedef int_alphabet_tag alphabet_category;
enum
{
int_width = 0
};
//! Helper class for the char2comp mapping
class char2comp_wrapper
{
private:
const int_alphabet * m_strat;
public:
char2comp_wrapper(const int_alphabet * strat)
: m_strat(strat)
{}
comp_char_type operator[](char_type c) const
{
if (m_strat->m_char.size() > 0)
{ // if alphabet is not continuous
if (c >= m_strat->m_char.size() or !m_strat->m_char[c]) return (comp_char_type)0;
return (comp_char_type)m_strat->m_char_rank((size_type)c);
}
else
{ // direct map if it is continuous
if (c >= m_strat->m_sigma) return 0;
return (comp_char_type)c;
}
return 0;
}
};
//! Helper class for the comp2char mapping
class comp2char_wrapper
{
private:
const int_alphabet * m_strat;
public:
comp2char_wrapper(const int_alphabet * strat)
: m_strat(strat)
{}
char_type operator[](comp_char_type c) const
{
if (m_strat->m_char.size() > 0)
{ // if alphabet is not continuous
return (char_type)m_strat->m_char_select(((size_type)c) + 1);
}
else
{ // direct map if it is continuous
return (char_type)c;
}
}
};
const char2comp_type char2comp;
const comp2char_type comp2char;
const C_type & C;
const sigma_type & sigma;
private:
bit_vector_type m_char; // `m_char[i]` indicates if character with code i is present or not
rank_support_type m_char_rank; // rank data structure for `m_char` to answer char2comp
select_support_type m_char_select; // select data structure for `m_char` to answer comp2char
C_type m_C; // cumulative counts for the compact alphabet [0..sigma]
sigma_type m_sigma; // effective size of the alphabet
//! Check if the alphabet is continuous.
bool is_continuous_alphabet(std::map<size_type, size_type> & D)
{
if (D.size() == 0)
{ // an empty alphabet is continuous
return true;
}
else
{
// max key + 1 == size of map
return ((--D.end())->first + 1) == D.size();
}
}
public:
//! Default constructor
int_alphabet()
: char2comp(this)
, comp2char(this)
, C(m_C)
, sigma(m_sigma)
, m_sigma(0)
{}
//! Construct from a byte-stream
/*!
* \param text_buf Byte stream.
* \param len Length of the byte stream.
*/
int_alphabet(int_vector_buffer<0> & text_buf, int_vector_size_type len)
: char2comp(this)
, comp2char(this)
, C(m_C)
, sigma(m_sigma)
{
m_sigma = 0;
if (0 == len or 0 == text_buf.size()) return;
assert(len <= text_buf.size());
// initialize vectors
std::map<size_type, size_type> D;
// count occurrences of each symbol
for (size_type i = 0; i < len; ++i) { D[text_buf[i]]++; }
m_sigma = D.size();
if (is_continuous_alphabet(D))
{
// do not initialize m_char, m_char_rank and m_char_select since we can map directly
}
else
{
init_char_bitvector(m_char, D);
}
assert(D.find(0) != D.end() and 1 == D[0]); // null-byte should occur exactly once
// resize to sigma+1, since CSAs also need the sum of all elements
m_C = C_type(m_sigma + 1, 0, bits::hi(len) + 1);
size_type sum = 0, idx = 0;
for (std::map<size_type, size_type>::const_iterator it = D.begin(), end = D.end(); it != end; ++it)
{
m_C[idx++] = sum;
sum += it->second;
}
m_C[idx] = sum; // insert sum of all elements
}
//! Copy constructor
int_alphabet(const int_alphabet & strat)
: char2comp(this)
, comp2char(this)
, C(m_C)
, sigma(m_sigma)
, m_char(strat.m_char)
, m_char_rank(strat.m_char_rank)
, m_char_select(strat.m_char_select)
, m_C(strat.m_C)
, m_sigma(strat.m_sigma)
{
m_char_rank.set_vector(&m_char);
m_char_select.set_vector(&m_char);
}
//! Copy constructor
int_alphabet(int_alphabet && strat)
: char2comp(this)
, comp2char(this)
, C(m_C)
, sigma(m_sigma)
, m_char(std::move(strat.m_char))
, m_char_rank(std::move(strat.m_char_rank))
, m_char_select(std::move(strat.m_char_select))
, m_C(std::move(strat.m_C))
, m_sigma(std::move(strat.m_sigma))
{
m_char_rank.set_vector(&m_char);
m_char_select.set_vector(&m_char);
}
int_alphabet & operator=(const int_alphabet & strat)
{
if (this != &strat)
{
int_alphabet tmp(strat);
*this = std::move(tmp);
}
return *this;
}
int_alphabet & operator=(int_alphabet && strat)
{
if (this != &strat)
{
m_char = std::move(strat.m_char);
m_char_rank = std::move(strat.m_char_rank);
m_char_rank.set_vector(&m_char);
m_char_select = std::move(strat.m_char_select);
m_char_select.set_vector(&m_char);
m_C = std::move(strat.m_C);
m_sigma = std::move(strat.m_sigma);
}
return *this;
}
//! Serialize method
size_type serialize(std::ostream & out, structure_tree_node * v = nullptr, std::string name = "") const
{
structure_tree_node * child = structure_tree::add_child(v, name, util::class_name(*this));
size_type written_bytes = 0;
written_bytes += m_char.serialize(out, child, "m_char");
written_bytes += m_char_rank.serialize(out, child, "m_char_rank");
written_bytes += m_char_select.serialize(out, child, "m_char_select");
written_bytes += m_C.serialize(out, child, "m_C");
written_bytes += write_member(m_sigma, out, child, "m_sigma");
structure_tree::add_size(child, written_bytes);
return written_bytes;
}
//! Load method
void load(std::istream & in)
{
m_char.load(in);
m_char_rank.load(in);
m_char_rank.set_vector(&m_char);
m_char_select.load(in);
m_char_select.set_vector(&m_char);
m_C.load(in);
read_member(m_sigma, in);
}
//! Equality operator.
bool operator==(int_alphabet const & other) const noexcept
{
return (m_char == other.m_char) && (m_char_rank == other.m_char_rank) &&
(m_char_select == other.m_char_select) && (m_C == other.m_C) && (m_sigma == other.m_sigma);
}
//! Inequality operator.
bool operator!=(int_alphabet const & other) const noexcept { return !(*this == other); }
template <typename archive_t>
void CEREAL_SAVE_FUNCTION_NAME(archive_t & ar) const
{
ar(CEREAL_NVP(m_char));
ar(CEREAL_NVP(m_char_rank));
ar(CEREAL_NVP(m_char_select));
ar(CEREAL_NVP(m_C));
ar(CEREAL_NVP(m_sigma));
}
template <typename archive_t>
void CEREAL_LOAD_FUNCTION_NAME(archive_t & ar)
{
ar(CEREAL_NVP(m_char));
ar(CEREAL_NVP(m_char_rank));
m_char_rank.set_vector(&m_char);
ar(CEREAL_NVP(m_char_select));
m_char_select.set_vector(&m_char);
ar(CEREAL_NVP(m_C));
ar(CEREAL_NVP(m_sigma));
}
};
} // end namespace sdsl
#endif
| 31.446553 | 125 | 0.612904 | wolfee001 |
7af466f9820e60fd0c05d3e29504c9955c7c9f57 | 1,947 | hpp | C++ | gui/include/windows/PokerWin.hpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | 1 | 2021-12-10T06:27:47.000Z | 2021-12-10T06:27:47.000Z | gui/include/windows/PokerWin.hpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | null | null | null | gui/include/windows/PokerWin.hpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include "IWindow.hpp"
#include "Mapping.hpp"
#include "LayoutConfig.hpp"
#include "GuiPokerInterface.hpp"
#include "PlaceBetWin.hpp"
#include "WhoWonWin.hpp"
#include "NextRoundWin.hpp"
namespace gui {
/** \ingroup gui
* @class PokerWin
* @author Julian Massing ([email protected])
* @brief Window showing information concerning the poker game.
*
* @version 1.0
* @date 2020-11-21
*
* @copyright Copyright (c) 2020
*
*/
class PokerWin: public IWindow
{
private:
Mapping mapping_;
LayoutConfig& layout_settings_;
std::shared_ptr<GuiPokerInterface>& poker_if_;
PlaceBetWin place_bet_win_;
WhoWonWin who_won_win_;
NextRoundWin next_round_win_;
bool show_place_bet_win_;
bool show_who_won_win_;
bool show_next_round_win_;
public:
void draw() override;
PokerWin(
const std::string& name,
bool& show,
LayoutConfig& layout_settings,
std::shared_ptr<GuiPokerInterface>& poker_if,
const int& flag = 0
):
IWindow(name, show, flag),
mapping_{},
layout_settings_{layout_settings},
poker_if_(poker_if),
show_place_bet_win_(false),
show_who_won_win_(false),
show_next_round_win_(false),
place_bet_win_("", this->show_place_bet_win_, poker_if, ImGuiWindowFlags_::ImGuiWindowFlags_AlwaysAutoResize),
who_won_win_("", this->show_who_won_win_, poker_if, ImGuiWindowFlags_::ImGuiWindowFlags_AlwaysAutoResize),
next_round_win_("", this->show_next_round_win_, poker_if, ImGuiWindowFlags_::ImGuiWindowFlags_AlwaysAutoResize)
{};
virtual ~PokerWin() {};
// Using default copy and move constructors.
PokerWin(const PokerWin& other) = default;
PokerWin& operator=(const PokerWin& other) = default;
PokerWin(PokerWin&& other) noexcept = default;
PokerWin& operator=(PokerWin&& other) noexcept = default;
};
} // namespace gui | 27.422535 | 118 | 0.70416 | JMassing |
7af8fa1daa6a3d5140a6a87d1af39c6c630dd43b | 18,881 | cpp | C++ | Server/Source/Worker.cpp | ppenguin/audiogridder | 4b83a99618f35d7421cd3be36454fe397a5babd3 | [
"MIT"
] | null | null | null | Server/Source/Worker.cpp | ppenguin/audiogridder | 4b83a99618f35d7421cd3be36454fe397a5babd3 | [
"MIT"
] | null | null | null | Server/Source/Worker.cpp | ppenguin/audiogridder | 4b83a99618f35d7421cd3be36454fe397a5babd3 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Andreas Pohl
*/
#include "Worker.hpp"
#include "KeyAndMouse.hpp"
#include "Defaults.hpp"
#include "NumberConversion.hpp"
#include "App.hpp"
#include "CPUInfo.hpp"
#ifdef JUCE_MAC
#include <sys/socket.h>
#endif
namespace e47 {
std::atomic_uint32_t Worker::count{0};
std::atomic_uint32_t Worker::runCount{0};
Worker::Worker(StreamingSocket* clnt)
: Thread("Worker"),
LogTag("worker"),
m_client(clnt),
m_audio(std::make_shared<AudioWorker>(this)),
m_screen(std::make_shared<ScreenWorker>(this)),
m_msgFactory(this) {
traceScope();
initAsyncFunctors();
count++;
}
Worker::~Worker() {
traceScope();
stopAsyncFunctors();
if (nullptr != m_client && m_client->isConnected()) {
m_client->close();
}
waitForThreadAndLog(this, this);
count--;
}
void Worker::run() {
traceScope();
runCount++;
Handshake cfg;
std::unique_ptr<StreamingSocket> sock;
int len;
len = m_client->read(&cfg, sizeof(cfg), true);
if (len > 0) {
setLogTagExtra("client:" + String::toHexString(cfg.clientId));
logln(" version = " << cfg.version);
logln(" clientId = " << String::toHexString(cfg.clientId));
logln(" clientPort = " << cfg.clientPort);
logln(" channelsIn = " << cfg.channelsIn);
logln(" channelsOut = " << cfg.channelsOut);
logln(" rate = " << cfg.rate);
logln(" samplesPerBlock = " << cfg.samplesPerBlock);
logln(" doublePrecission = " << static_cast<int>(cfg.doublePrecission));
// start audio processing
sock = std::make_unique<StreamingSocket>();
#ifdef JUCE_MAC
setsockopt(sock->getRawSocketHandle(), SOL_SOCKET, SO_NOSIGPIPE, nullptr, 0);
#endif
if (sock->connect(m_client->getHostName(), cfg.clientPort)) {
m_audio->init(std::move(sock), cfg.channelsIn, cfg.channelsOut, cfg.rate, cfg.samplesPerBlock,
cfg.doublePrecission);
m_audio->startThread(Thread::realtimeAudioPriority);
} else {
logln("failed to establish audio connection to " << m_client->getHostName() << ":" << cfg.clientPort);
}
// start screen capturing
sock = std::make_unique<StreamingSocket>();
#ifdef JUCE_MAC
setsockopt(sock->getRawSocketHandle(), SOL_SOCKET, SO_NOSIGPIPE, nullptr, 0);
#endif
if (sock->connect(m_client->getHostName(), cfg.clientPort)) {
m_screen->init(std::move(sock));
m_screen->startThread();
} else {
logln("failed to establish screen connection to " << m_client->getHostName() << ":" << cfg.clientPort);
}
// send list of plugins
auto& pluginList = getApp()->getPluginList();
String list;
for (auto& plugin : pluginList.getTypes()) {
bool inputMatch = false;
// exact match is fine
inputMatch = (cfg.channelsIn == plugin.numInputChannels) || inputMatch;
// hide plugins with no inputs if we have inputs
inputMatch = (cfg.channelsIn > 0 && plugin.numInputChannels > 0) || inputMatch;
// for instruments (no inputs) allow any plugin with the isInstrument flag
inputMatch = (cfg.channelsIn == 0 && plugin.isInstrument) || inputMatch;
if (inputMatch) {
list += AGProcessor::createString(plugin) + "\n";
}
}
Message<PluginList> msgPL(this);
PLD(msgPL).setString(list);
if (!msgPL.send(m_client.get())) {
logln("failed to send plugin list");
m_client->close();
signalThreadShouldExit();
}
// enter message loop
logln("command processor started");
while (!currentThreadShouldExit() && nullptr != m_client && m_client->isConnected() &&
m_audio->isThreadRunning() && m_screen->isThreadRunning()) {
MessageHelper::Error e;
auto msg = m_msgFactory.getNextMessage(m_client.get(), &e);
if (nullptr != msg) {
switch (msg->getType()) {
case Quit::Type:
handleMessage(Message<Any>::convert<Quit>(msg));
break;
case AddPlugin::Type:
handleMessage(Message<Any>::convert<AddPlugin>(msg));
break;
case DelPlugin::Type:
handleMessage(Message<Any>::convert<DelPlugin>(msg));
break;
case EditPlugin::Type:
handleMessage(Message<Any>::convert<EditPlugin>(msg));
break;
case HidePlugin::Type:
handleMessage(Message<Any>::convert<HidePlugin>(msg));
break;
case Mouse::Type:
handleMessage(Message<Any>::convert<Mouse>(msg));
break;
case Key::Type:
handleMessage(Message<Any>::convert<Key>(msg));
break;
case GetPluginSettings::Type:
handleMessage(Message<Any>::convert<GetPluginSettings>(msg));
break;
case SetPluginSettings::Type:
handleMessage(Message<Any>::convert<SetPluginSettings>(msg));
break;
case BypassPlugin::Type:
handleMessage(Message<Any>::convert<BypassPlugin>(msg));
break;
case UnbypassPlugin::Type:
handleMessage(Message<Any>::convert<UnbypassPlugin>(msg));
break;
case ExchangePlugins::Type:
handleMessage(Message<Any>::convert<ExchangePlugins>(msg));
break;
case RecentsList::Type:
handleMessage(Message<Any>::convert<RecentsList>(msg));
break;
case Preset::Type:
handleMessage(Message<Any>::convert<Preset>(msg));
break;
case ParameterValue::Type:
handleMessage(Message<Any>::convert<ParameterValue>(msg));
break;
case GetParameterValue::Type:
handleMessage(Message<Any>::convert<GetParameterValue>(msg));
break;
case GetAllParameterValues::Type:
handleMessage(Message<Any>::convert<GetAllParameterValues>(msg));
break;
case UpdateScreenCaptureArea::Type:
handleMessage(Message<Any>::convert<UpdateScreenCaptureArea>(msg));
break;
case Rescan::Type:
handleMessage(Message<Any>::convert<Rescan>(msg));
break;
case Restart::Type:
handleMessage(Message<Any>::convert<Restart>(msg));
break;
case CPULoad::Type:
handleMessage(Message<Any>::convert<CPULoad>(msg));
break;
default:
logln("unknown message type " << msg->getType());
}
} else if (e.code != MessageHelper::E_TIMEOUT) {
logln("failed to get next message: " << e.toString());
break;
}
}
} else {
logln("handshake error with client " << m_client->getHostName());
}
shutdown();
m_audio->waitForThreadToExit(-1);
m_audio.reset();
m_screen->waitForThreadToExit(-1);
m_screen.reset();
logln("command processor terminated");
runCount--;
}
void Worker::shutdown() {
traceScope();
if (m_shutdown) {
return;
}
m_shutdown = true;
if (m_shouldHideEditor) {
m_screen->hideEditor();
}
if (nullptr != m_audio) {
m_audio->shutdown();
}
if (nullptr != m_screen) {
m_screen->shutdown();
}
signalThreadShouldExit();
}
void Worker::handleMessage(std::shared_ptr<Message<Quit>> /* msg */) {
traceScope();
shutdown();
}
void Worker::handleMessage(std::shared_ptr<Message<AddPlugin>> msg) {
traceScope();
auto id = pPLD(msg).getString();
logln("adding plugin " << id << "...");
String err;
bool success = m_audio->addPlugin(id, err);
logln("..." << (success ? "ok" : "failed"));
if (!success) {
m_msgFactory.sendResult(m_client.get(), -1, err);
return;
}
// send new updated latency samples back
if (!m_msgFactory.sendResult(m_client.get(), m_audio->getLatencySamples())) {
logln("failed to send result");
m_client->close();
return;
}
logln("sending presets...");
auto proc = m_audio->getProcessor(m_audio->getSize() - 1)->getPlugin();
String presets;
bool first = true;
for (int i = 0; i < proc->getNumPrograms(); i++) {
if (first) {
first = false;
} else {
presets << "|";
}
presets << proc->getProgramName(i);
}
Message<Presets> msgPresets;
msgPresets.payload.setString(presets);
if (!msgPresets.send(m_client.get())) {
logln("failed to send Presets message");
m_client->close();
return;
}
logln("...ok");
logln("sending parameters...");
json jparams = json::array();
for (auto& param : proc->getParameters()) {
json jparam = {{"idx", param->getParameterIndex()},
{"name", param->getName(32).toStdString()},
{"defaultValue", param->getDefaultValue()},
{"currentValue", param->getValue()},
{"category", param->getCategory()},
{"label", param->getLabel().toStdString()},
{"numSteps", param->getNumSteps()},
{"isBoolean", param->isBoolean()},
{"isDiscrete", param->isDiscrete()},
{"isMeta", param->isMetaParameter()},
{"isOrientInv", param->isOrientationInverted()},
{"minValue", param->getText(0.0f, 20).toStdString()},
{"maxValue", param->getText(1.0f, 20).toStdString()}};
jparam["allValues"] = json::array();
for (auto& val : param->getAllValueStrings()) {
jparam["allValues"].push_back(val.toStdString());
}
if (jparam["allValues"].size() == 0 && param->isDiscrete() && param->getNumSteps() < 64) {
// try filling values manually
float step = 1.0f / (param->getNumSteps() - 1);
for (int i = 0; i < param->getNumSteps(); i++) {
auto val = param->getText(step * i, 32);
if (val.isEmpty()) {
break;
}
jparam["allValues"].push_back(val.toStdString());
}
}
jparams.push_back(jparam);
}
Message<Parameters> msgParams(this);
msgParams.payload.setJson(jparams);
if (!msgParams.send(m_client.get())) {
logln("failed to send Parameters message");
m_client->close();
return;
}
logln("...ok");
logln("reading plugin settings...");
Message<PluginSettings> msgSettings(this);
MessageHelper::Error e;
if (!msgSettings.read(m_client.get(), &e, 10000)) {
logln("failed to read PluginSettings message:" << e.toString());
m_client->close();
return;
}
if (*msgSettings.payload.size > 0) {
MemoryBlock block;
block.append(msgSettings.payload.data, as<size_t>(*msgSettings.payload.size));
proc->setStateInformation(block.getData(), static_cast<int>(block.getSize()));
}
logln("...ok");
m_audio->addToRecentsList(id, m_client->getHostName());
}
void Worker::handleMessage(std::shared_ptr<Message<DelPlugin>> msg) {
traceScope();
m_audio->delPlugin(pPLD(msg).getNumber());
// send new updated latency samples back
m_msgFactory.sendResult(m_client.get(), m_audio->getLatencySamples());
}
void Worker::handleMessage(std::shared_ptr<Message<EditPlugin>> msg) {
traceScope();
auto proc = m_audio->getProcessor(pPLD(msg).getNumber());
if (nullptr != proc) {
m_screen->showEditor(proc);
m_shouldHideEditor = true;
}
}
void Worker::handleMessage(std::shared_ptr<Message<HidePlugin>> /* msg */) {
traceScope();
m_screen->hideEditor();
m_shouldHideEditor = false;
}
void Worker::handleMessage(std::shared_ptr<Message<Mouse>> msg) {
traceScope();
auto ev = *pDATA(msg);
runOnMsgThreadAsync([this, ev] {
traceScope();
auto point = getApp()->localPointToGlobal(Point<float>(ev.x, ev.y));
if (ev.type == MouseEvType::WHEEL) {
mouseScrollEvent(point.x, point.y, ev.deltaX, ev.deltaY, ev.isSmooth);
} else {
uint64_t flags = 0;
if (ev.isShiftDown) {
setShiftKey(flags);
}
if (ev.isCtrlDown) {
setControlKey(flags);
}
if (ev.isAltDown) {
setAltKey(flags);
}
mouseEvent(ev.type, point.x, point.y, flags);
}
});
}
void Worker::handleMessage(std::shared_ptr<Message<Key>> msg) {
traceScope();
runOnMsgThreadAsync([this, msg] {
traceScope();
auto* codes = pPLD(msg).getKeyCodes();
auto num = pPLD(msg).getKeyCount();
uint16_t key = 0;
uint64_t flags = 0;
for (int i = 0; i < num; i++) {
if (isShiftKey(codes[i])) {
setShiftKey(flags);
} else if (isControlKey(codes[i])) {
setControlKey(flags);
} else if (isAltKey(codes[i])) {
setAltKey(flags);
} else {
key = codes[i];
}
}
keyEventDown(key, flags);
keyEventUp(key, flags);
});
}
void Worker::handleMessage(std::shared_ptr<Message<GetPluginSettings>> msg) {
traceScope();
auto proc = m_audio->getProcessor(pPLD(msg).getNumber());
if (nullptr != proc) {
MemoryBlock block;
proc->getStateInformation(block);
Message<PluginSettings> ret(this);
ret.payload.setData(block.begin(), static_cast<int>(block.getSize()));
ret.send(m_client.get());
}
}
void Worker::handleMessage(std::shared_ptr<Message<SetPluginSettings>> msg) {
traceScope();
auto proc = m_audio->getProcessor(pPLD(msg).getNumber());
if (nullptr != proc) {
Message<PluginSettings> msgSettings(this);
if (!msgSettings.read(m_client.get())) {
logln("failed to read PluginSettings message");
m_client->close();
return;
}
if (*msgSettings.payload.size > 0) {
MemoryBlock block;
block.append(msgSettings.payload.data, as<size_t>(*msgSettings.payload.size));
proc->setStateInformation(block.getData(), static_cast<int>(block.getSize()));
}
}
}
void Worker::handleMessage(std::shared_ptr<Message<BypassPlugin>> msg) {
traceScope();
auto proc = m_audio->getProcessor(pPLD(msg).getNumber());
if (nullptr != proc) {
proc->suspendProcessing(true);
}
}
void Worker::handleMessage(std::shared_ptr<Message<UnbypassPlugin>> msg) {
traceScope();
auto proc = m_audio->getProcessor(pPLD(msg).getNumber());
if (nullptr != proc) {
proc->suspendProcessing(false);
}
}
void Worker::handleMessage(std::shared_ptr<Message<ExchangePlugins>> msg) {
traceScope();
m_audio->exchangePlugins(pDATA(msg)->idxA, pDATA(msg)->idxB);
}
void Worker::handleMessage(std::shared_ptr<Message<RecentsList>> msg) {
traceScope();
auto list = m_audio->getRecentsList(m_client->getHostName());
pPLD(msg).setString(list);
msg->send(m_client.get());
}
void Worker::handleMessage(std::shared_ptr<Message<Preset>> msg) {
traceScope();
auto p = m_audio->getProcessor(pDATA(msg)->idx)->getPlugin();
if (nullptr != p) {
p->setCurrentProgram(pDATA(msg)->preset);
}
}
void Worker::handleMessage(std::shared_ptr<Message<ParameterValue>> msg) {
traceScope();
auto p = m_audio->getProcessor(pDATA(msg)->idx)->getPlugin();
if (nullptr != p) {
for (auto* param : p->getParameters()) {
if (pDATA(msg)->paramIdx == param->getParameterIndex()) {
param->setValue(pDATA(msg)->value);
return;
}
}
}
}
void Worker::handleMessage(std::shared_ptr<Message<GetParameterValue>> msg) {
traceScope();
Message<ParameterValue> ret(this);
DATA(ret)->idx = pDATA(msg)->idx;
DATA(ret)->paramIdx = pDATA(msg)->paramIdx;
DATA(ret)->value = m_audio->getParameterValue(pDATA(msg)->idx, pDATA(msg)->paramIdx);
ret.send(m_client.get());
}
void Worker::handleMessage(std::shared_ptr<Message<GetAllParameterValues>> msg) {
traceScope();
auto p = m_audio->getProcessor(pPLD(msg).getNumber())->getPlugin();
if (nullptr != p) {
for (auto* param : p->getParameters()) {
Message<ParameterValue> ret(this);
DATA(ret)->idx = pPLD(msg).getNumber();
DATA(ret)->paramIdx = param->getParameterIndex();
DATA(ret)->value = param->getValue();
ret.send(m_client.get());
}
}
}
void Worker::handleMessage(std::shared_ptr<Message<UpdateScreenCaptureArea>> msg) {
traceScope();
getApp()->updateScreenCaptureArea(pPLD(msg).getNumber());
}
void Worker::handleMessage(std::shared_ptr<Message<Rescan>> msg) {
traceScope();
bool wipe = pPLD(msg).getNumber() == 1;
runOnMsgThreadAsync([this, wipe] {
traceScope();
if (wipe) {
getApp()->getServer().getPluginList().clear();
getApp()->getServer().saveKnownPluginList();
}
getApp()->restartServer(true);
});
}
void Worker::handleMessage(std::shared_ptr<Message<Restart>> /*msg*/) {
traceScope();
runOnMsgThreadAsync([this] {
traceScope();
getApp()->prepareShutdown(App::EXIT_RESTART);
});
}
void Worker::handleMessage(std::shared_ptr<Message<CPULoad>> msg) {
traceScope();
pPLD(msg).setFloat(CPUInfo::getUsage());
msg->send(m_client.get());
}
} // namespace e47
| 35.827324 | 115 | 0.554949 | ppenguin |
bb03e1887066a1960615a1707d8aeed136896f60 | 245 | hpp | C++ | Sources/Dynamics/py_dynamics.hpp | tvieijra/netket | ef3ff32b242f25b6a6ae0f08db1aada85775a2ea | [
"Apache-2.0"
] | 10 | 2019-11-29T02:51:53.000Z | 2021-08-14T18:52:33.000Z | Sources/Dynamics/py_dynamics.hpp | tvieijra/netket | ef3ff32b242f25b6a6ae0f08db1aada85775a2ea | [
"Apache-2.0"
] | 2 | 2018-11-04T14:38:01.000Z | 2018-11-08T16:56:10.000Z | Sources/Dynamics/py_dynamics.hpp | tvieijra/netket | ef3ff32b242f25b6a6ae0f08db1aada85775a2ea | [
"Apache-2.0"
] | 6 | 2019-12-02T07:29:01.000Z | 2021-04-04T21:55:21.000Z | #ifndef NETKET_DYNAMICS_PY_DYNAMICS_HPP
#define NETKET_DYNAMICS_PY_DYNAMICS_HPP
#include <pybind11/pybind11.h>
namespace netket {
void AddDynamicsModule(pybind11::module m);
} // namespace netket
#endif // NETKET_DYNAMICS_PY_DYNAMICS_HPP
| 18.846154 | 43 | 0.816327 | tvieijra |
bb058adb6b8b268f2c74b06fa0dc1e3069839fc0 | 704 | hpp | C++ | pycppad/adfun.hpp | utke1/pycppad | 0713cd0fbbce5f4475934adc55a42eac56e4fbb6 | [
"Unlicense"
] | 15 | 2015-09-09T04:50:57.000Z | 2022-01-18T00:54:33.000Z | pycppad/adfun.hpp | utke1/pycppad | 0713cd0fbbce5f4475934adc55a42eac56e4fbb6 | [
"Unlicense"
] | 1 | 2016-11-21T03:36:05.000Z | 2016-11-23T14:10:46.000Z | pycppad/adfun.hpp | utke1/pycppad | 0713cd0fbbce5f4475934adc55a42eac56e4fbb6 | [
"Unlicense"
] | 7 | 2016-11-13T02:43:59.000Z | 2021-01-11T16:31:04.000Z | # ifndef PYCPPAD_ADFUN_INCLUDED
# define PYCPPAD_ADFUN_INCLUDED
# include "environment.hpp"
namespace pycppad {
// -------------------------------------------------------------
// class ADFun<Base>
template <class Base>
class ADFun{
private:
CppAD::ADFun<Base> f_;
public:
// python constructor call
ADFun(array& x_array, array& y_array);
// member functions
int Domain(void);
int Range(void);
array Forward(int p, array& xp);
int CompareChange(void);
array Reverse(int p, array& w);
array Jacobian(array& x);
array Hessian(array& x, array& w);
void optimize(void);
};
typedef ADFun<double> ADFun_double;
typedef ADFun<AD_double> ADFun_AD_double;
}
# endif
| 22 | 65 | 0.636364 | utke1 |
bb079fa2509fe771a068f58806656df9f279ad0c | 2,387 | hpp | C++ | exa/internal/exa/detail/io_task.hpp | chronos38/exa | 96092b34eebecf55d3fe8280a86fbe63bf546af3 | [
"MIT"
] | null | null | null | exa/internal/exa/detail/io_task.hpp | chronos38/exa | 96092b34eebecf55d3fe8280a86fbe63bf546af3 | [
"MIT"
] | null | null | null | exa/internal/exa/detail/io_task.hpp | chronos38/exa | 96092b34eebecf55d3fe8280a86fbe63bf546af3 | [
"MIT"
] | null | null | null | #pragma once
#include <exa/task.hpp>
#include <exa/enum_flag.hpp>
#include <future>
#include <any>
#include <tuple>
namespace exa
{
namespace detail
{
class io_task
{
public:
template <class Result, class Function, class = std::enable_if_t<!std::is_void_v<Result>>>
static std::future<Result> run(Function&& callback)
{
static_assert(std::is_invocable_v<Function>);
auto promise = std::make_shared<std::promise<Result>>();
task::push(std::bind(&io_task::run_internal, [callback, promise] {
bool done = false;
std::any result;
try
{
std::tie(done, result) = callback();
if (done)
{
promise->set_value(std::any_cast<Result>(result));
return true;
}
}
catch (...)
{
promise->set_exception(std::current_exception());
return true;
}
return false;
}));
return promise->get_future();
}
template <class Result, class Function, class = std::enable_if_t<std::is_void_v<Result>>>
static std::future<void> run(Function&& callback)
{
static_assert(std::is_invocable_v<Function>);
auto promise = std::make_shared<std::promise<void>>();
task::push(std::bind(&io_task::run_internal, [callback, promise] {
try
{
if (callback())
{
promise->set_value();
return true;
}
}
catch (...)
{
promise->set_exception(std::current_exception());
return true;
}
return false;
}));
return promise->get_future();
}
private:
static void run_internal(std::function<bool()> callback);
};
}
}
| 28.759036 | 102 | 0.408463 | chronos38 |
bb0b6025e027ae40999759fb880597e0c98f416a | 15,325 | cpp | C++ | D&D Wrath of Silumgar/Motor2D/ctSettings.cpp | Wilhelman/DD-Shadow-over-Mystara | d4303ad87cc442414c0facb71ce9cd5564b51039 | [
"MIT"
] | 3 | 2019-06-21T04:40:16.000Z | 2020-07-07T13:09:53.000Z | D&D Wrath of Silumgar/Motor2D/ctSettings.cpp | Wilhelman/DD-Shadow-over-Mystara | d4303ad87cc442414c0facb71ce9cd5564b51039 | [
"MIT"
] | 56 | 2018-05-07T10:30:08.000Z | 2018-05-15T08:27:06.000Z | D&D Wrath of Silumgar/Motor2D/ctSettings.cpp | Wilhelman/DD-Shadow-over-Mystara | d4303ad87cc442414c0facb71ce9cd5564b51039 | [
"MIT"
] | 3 | 2019-01-03T17:24:57.000Z | 2019-05-04T08:49:12.000Z | #include "ctDefs.h"
#include "ctLog.h"
#include "ctApp.h"
#include "ctInput.h"
#include "ctTextures.h"
#include "ctAudio.h"
#include "ctRender.h"
#include "ctWindow.h"
#include "ctEntities.h"
#include "ctSettings.h"
#include "ctFadeToBlack.h"
#include "ctMainMenu.h"
ctSettings::ctSettings() : ctModule()
{
name = "settings";
}
// Destructor
ctSettings::~ctSettings()
{}
// Called before render is available
bool ctSettings::Awake()
{
LOG("Loading Main Menu");
bool ret = true;
return ret;
}
// Called before the first frame
bool ctSettings::Start()
{
bool ret = true;
uint music_num = NumberToPercentage(music_volume_value, max_volume);
char music_volume_char[(((sizeof music_num) * CHAR_BIT) + 2) / 3 + 2];
sprintf_s(music_volume_char, "%d", music_num);
uint fx_num = NumberToPercentage(fx_volume_value, max_volume);
char fx_volume_char[(((sizeof fx_num) * CHAR_BIT) + 2) / 3 + 2];
sprintf_s(fx_volume_char, "%d", fx_num);
background = App->gui->AddUIImage(0, 0, { 337, 479, 800, 450 }, this);
labels_bg = App->gui->AddUIImage(15, -1, { 314, 1046, 160, 135 }, this);
music_volume_label = App->gui->AddUILabel(35, 10, "Music Volume", { 255,255,255,255 }, 25, this);
music_volume = App->gui->AddUILabel(150, 10, music_volume_char, { 255,255,255,255 }, 25, this);
fx_volume_label = App->gui->AddUILabel(35, 30, "Fx Volume", { 255,255,255,255 }, 25, this);
fx_volume = App->gui->AddUILabel(150, 30, fx_volume_char, { 255,255,255,255 }, 25, this);
controls_label = App->gui->AddUILabel(35, 50, "Controls:", { 255,255,255,255 }, 25, this);
select_button_label = App->gui->AddUILabel(55, 70, "Select ", { 255,255,255,255 }, 25, this);
select_button_image = App->gui->AddUIImage(125, 70, { 1360, 224, 17, 17 }, this);
back_button_label = App->gui->AddUILabel(55, 90, "Back ", { 255,255,255,255 }, 25, this);
back_button_image = App->gui->AddUIImage(125, 90, { 1342, 242, 17, 17 }, this);
back_label = App->gui->AddUILabel(35, 110, "Back to Menu", { 255,255,255,255 }, 25, this);
arrow = App->gui->AddUIImage(-10, 0, { 1333, 272, 7, 14 }, this);
music_volume_label->current_state = STATE_FOCUSED;
arrow->SetParent(music_volume_label);
labels.push_back(music_volume_label);
labels.push_back(fx_volume_label);
labels.push_back(select_button_label);
labels.push_back(back_button_label);
labels.push_back(back_label);
if(App->main_menu->key_select == 0)
select_button_image = App->gui->AddUIImage(125, 70, { 1360, 224, 17, 17 }, this);
else if(App->main_menu->key_select == 1)
select_button_image = App->gui->AddUIImage(125, 70, { 1342, 242, 17, 17 }, this);
else if (App->main_menu->key_select == 2)
select_button_image = App->gui->AddUIImage(125, 70, { 1324, 224, 17, 17 }, this);
else if (App->main_menu->key_select == 3)
select_button_image = App->gui->AddUIImage(125, 70, { 1342, 206, 17, 17 }, this);
if (App->main_menu->key_back == 0)
back_button_image = App->gui->AddUIImage(125, 90, { 1360, 224, 17, 17 }, this);
else if (App->main_menu->key_back == 1)
back_button_image = App->gui->AddUIImage(125, 90, { 1342, 242, 17, 17 }, this);
else if (App->main_menu->key_back == 2)
back_button_image = App->gui->AddUIImage(125, 90, { 1324, 224, 17, 17 }, this);
else if (App->main_menu->key_back == 3)
back_button_image = App->gui->AddUIImage(125, 90, { 1342, 206, 17, 17 }, this);
if (!App->audio->PlayMusic(App->audio->SettingsBSO.c_str(), 1)) {
LOG("Error playing music in ctMainMenu Start");
}
return ret;
}
// Called each loop iteration
bool ctSettings::PreUpdate()
{
return true;
}
// Called each loop iteration
bool ctSettings::Update(float dt)
{
//Go down
if (App->input->GetKey(SDL_SCANCODE_DOWN) == KEY_DOWN || App->input->gamepad.CROSS_DOWN == GAMEPAD_STATE::PAD_BUTTON_DOWN || App->input->gamepad.JOYSTICK_DOWN == GAMEPAD_STATE::PAD_BUTTON_DOWN) {
App->audio->PlayFx(App->audio->mm_movement_fx);
NavigateDown(labels);
}
//Go up
if (App->input->GetKey(SDL_SCANCODE_UP) == KEY_DOWN || App->input->gamepad.CROSS_UP == GAMEPAD_STATE::PAD_BUTTON_DOWN || App->input->gamepad.JOYSTICK_UP == GAMEPAD_STATE::PAD_BUTTON_DOWN) {
App->audio->PlayFx(App->audio->mm_movement_fx);
NavigateUp(labels);
}
//Execute
if (App->input->GetKey(SDL_SCANCODE_RETURN) == KEY_DOWN || App->input->GetGamepadButton(App->main_menu->key_select) == GAMEPAD_STATE::PAD_BUTTON_DOWN) {
/*App->audio->PlayFx(menu_select_fx);*/
if ((*select_button_label).current_state == STATE_NORMAL && (*back_button_label).current_state == STATE_NORMAL) {
ExecuteComand(labels);
}
}
//Change Controlls
if (App->input->gamepad.A == GAMEPAD_STATE::PAD_BUTTON_DOWN) {
if ((*select_button_label).current_state == STATE_FOCUSED) {
App->main_menu->key_select = 0;
ChangeControlImages(select_button_image);
if (App->main_menu->key_select == App->main_menu->key_back) {
App->main_menu->key_back = 1;
ChangeControlImages(back_button_image);
}
}
else if ((*back_button_label).current_state == STATE_FOCUSED) {
App->main_menu->key_back = 0;
ChangeControlImages(back_button_image);
if (App->main_menu->key_select == App->main_menu->key_back) {
App->main_menu->key_select = 1;
ChangeControlImages(select_button_image);
}
}
}
if (App->input->gamepad.B == GAMEPAD_STATE::PAD_BUTTON_DOWN) {
if ((*select_button_label).current_state == STATE_FOCUSED) {
App->main_menu->key_select = 1;
ChangeControlImages(select_button_image);
if (App->main_menu->key_select == App->main_menu->key_back) {
App->main_menu->key_back = 0;
ChangeControlImages(back_button_image);
}
}
else if ((*back_button_label).current_state == STATE_FOCUSED) {
App->main_menu->key_back = 1;
ChangeControlImages(back_button_image);
if (App->main_menu->key_select == App->main_menu->key_back) {
App->main_menu->key_select = 0;
ChangeControlImages(select_button_image);
}
}
}
if (App->input->gamepad.X == GAMEPAD_STATE::PAD_BUTTON_DOWN) {
if ((*select_button_label).current_state == STATE_FOCUSED) {
App->main_menu->key_select = 3;
ChangeControlImages(select_button_image);
if (App->main_menu->key_select == App->main_menu->key_back) {
App->main_menu->key_back = 1;
ChangeControlImages(back_button_image);
}
}
else if ((*back_button_label).current_state == STATE_FOCUSED) {
App->main_menu->key_back = 3;
ChangeControlImages(back_button_image);
if (App->main_menu->key_select == App->main_menu->key_back) {
App->main_menu->key_select = 0;
ChangeControlImages(select_button_image);
}
}
}
if (App->input->gamepad.Y == GAMEPAD_STATE::PAD_BUTTON_DOWN) {
if ((*select_button_label).current_state == STATE_FOCUSED) {
App->main_menu->key_select = 2;
ChangeControlImages(select_button_image);
if (App->main_menu->key_select == App->main_menu->key_back) {
App->main_menu->key_back = 1;
ChangeControlImages(back_button_image);
}
}
else if ((*back_button_label).current_state == STATE_FOCUSED) {
App->main_menu->key_back = 2;
ChangeControlImages(back_button_image);
if (App->main_menu->key_select == App->main_menu->key_back) {
App->main_menu->key_select = 0;
ChangeControlImages(select_button_image);
}
}
}
//TurnUp volume
if (App->input->GetKey(SDL_SCANCODE_RIGHT) == KEY_REPEAT || App->input->gamepad.CROSS_RIGHT == GAMEPAD_STATE::PAD_BUTTON_REPEAT || App->input->gamepad.JOYSTICK_RIGHT == GAMEPAD_STATE::PAD_BUTTON_REPEAT) {
//App->audio->PlayFx(App->audio->mm_movement_fx);
TurnUp(labels);
}
//TurnDownVolume
if (App->input->GetKey(SDL_SCANCODE_LEFT) == KEY_REPEAT || App->input->gamepad.CROSS_LEFT == GAMEPAD_STATE::PAD_BUTTON_REPEAT || App->input->gamepad.JOYSTICK_LEFT == GAMEPAD_STATE::PAD_BUTTON_REPEAT) {
//App->audio->PlayFx(App->audio->mm_movement_fx);
TurnDown(labels);
}
if (App->input->GetKey(SDL_SCANCODE_BACKSPACE) == KEY_DOWN /*|| App->input->gamepad.B == GAMEPAD_STATE::PAD_BUTTON_DOWN*/) {
fx_volume_label->current_state = STATE_NORMAL;
back_label->current_state = STATE_EXECUTED;
ExecuteComand(labels);
}
return true;
}
// Called each loop iteration
bool ctSettings::PostUpdate()
{
bool ret = true;
if (quit_pressed || App->input->GetKey(SDL_SCANCODE_ESCAPE) == KEY_DOWN)
ret = false;
return ret;
}
// Called before quitting
bool ctSettings::CleanUp()
{
LOG("Freeing main_menu");
App->audio->PauseMusic();
App->gui->DeleteUIElement(*background);
background = nullptr;
App->gui->DeleteUIElement(*music_volume_label);
music_volume_label = nullptr;
App->gui->DeleteUIElement(*fx_volume_label);
fx_volume_label = nullptr;
App->gui->DeleteUIElement(*back_label);
back_label = nullptr;
App->gui->DeleteUIElement(*music_volume);
music_volume = nullptr;
App->gui->DeleteUIElement(*fx_volume);
fx_volume = nullptr;
App->gui->DeleteUIElement(*arrow);
arrow = nullptr;
App->gui->DeleteUIElement(*controls_label);
controls_label = nullptr;
App->gui->DeleteUIElement(*select_button_image);
select_button_image = nullptr;
App->gui->DeleteUIElement(*back_button_image);
back_button_image = nullptr;
App->gui->DeleteUIElement(*labels_bg);
labels_bg = nullptr;
for (int i = 0; i < labels.size(); i++)
{
App->gui->DeleteUIElement(*labels[i]);
}
labels.clear();
App->gui->DeleteAllUIElements();
return true;
}
bool ctSettings::Load(pugi::xml_node& load)
{
bool ret = true;
return ret;
}
bool ctSettings::Save(pugi::xml_node& save) const
{
bool ret = true;
return ret;
}
void ctSettings::OnUITrigger(UIElement* elementTriggered, UI_State ui_state)
{
}
void ctSettings::NavigateDown(std::vector<UIElement*> ¤t_vector) {
std::vector<UIElement*>::const_iterator it_vector = current_vector.begin();
while (it_vector != current_vector.end()) {
if ((*it_vector)->current_state == STATE_FOCUSED) {
if ((*it_vector) != current_vector.back()) {
(*it_vector)->current_state = STATE_NORMAL;
it_vector++;
(*it_vector)->current_state = STATE_FOCUSED;
arrow->SetParent((*it_vector));
break;
}
else
{
(*it_vector)->current_state = STATE_NORMAL;
it_vector = current_vector.begin();
(*it_vector)->current_state = STATE_FOCUSED;
arrow->SetParent((*it_vector));
}
}
it_vector++;
}
}
void ctSettings::NavigateUp(std::vector<UIElement*> ¤t_vector) {
std::vector<UIElement*>::const_iterator it_vector = current_vector.begin();
while (it_vector != current_vector.end()) {
if ((*it_vector)->current_state == STATE_FOCUSED) {
if ((*it_vector) != current_vector.front()) {
(*it_vector)->current_state = STATE_NORMAL;
it_vector--;
(*it_vector)->current_state = STATE_FOCUSED;
arrow->SetParent((*it_vector));
break;
}
else
{
(*it_vector)->current_state = STATE_NORMAL;
it_vector = current_vector.end() - 1;
(*it_vector)->current_state = STATE_FOCUSED;
arrow->SetParent((*it_vector));
}
}
it_vector++;
}
}
void ctSettings::ExecuteComand(std::vector<UIElement*> ¤t_vector) {
for (int i = 0; i < current_vector.size(); i++) {
if (current_vector.at(i)->current_state == STATE_FOCUSED) {
current_vector.at(i)->current_state = STATE_EXECUTED;
}
}
if (music_volume_label->current_state == STATE_EXECUTED) {
LOG("music_volume_label pressed");
music_volume_label->current_state = STATE_FOCUSED;
}
if (fx_volume_label->current_state == STATE_EXECUTED) {
LOG("fx_volume_label pressed");
fx_volume_label->current_state = STATE_FOCUSED;
}
if (back_label->current_state == STATE_EXECUTED) {
LOG("back_label pressed");
App->audio->PlayFx(App->audio->mm_select_fx);
if(App->fadeToBlack->FadeIsOver())
App->fadeToBlack->FadeToBlackBetweenModules(this, App->main_menu, 1.0f);
}
}
void ctSettings::TurnUp(std::vector<UIElement*> ¤t_vector) {
if (music_volume_label->current_state == STATE_FOCUSED) {
if (music_volume_value <= 127) {
music_volume_value += 1;
uint music_num = NumberToPercentage(music_volume_value, max_volume);
char music_volume_char[(((sizeof music_num) * CHAR_BIT) + 2) / 3 + 2];
sprintf_s(music_volume_char, "%d", music_num);
App->gui->DeleteUIElement(*music_volume);
music_volume = App->gui->AddUILabel(150, 10, music_volume_char, { 255,255,255,255 }, 25, this);
}
Mix_VolumeMusic(music_volume_value);
}
else if (fx_volume_label->current_state == STATE_FOCUSED) {
if (fx_volume_value <= 127) {
fx_volume_value += 1;
uint fx_num = NumberToPercentage(fx_volume_value, max_volume);
char fx_volume_char[(((sizeof fx_num) * CHAR_BIT) + 2) / 3 + 2];
sprintf_s(fx_volume_char, "%d", fx_num);
App->gui->DeleteUIElement(*fx_volume);
fx_volume = App->gui->AddUILabel(150, 30, fx_volume_char, { 255,255,255,255 }, 25, this);
}
Mix_Volume(-1, fx_volume_value);
}
}
void ctSettings::TurnDown(std::vector<UIElement*> ¤t_vector) {
if (music_volume_label->current_state == STATE_FOCUSED) {
if (music_volume_value >= 1) {
music_volume_value -= 1;
uint music_num = NumberToPercentage(music_volume_value, max_volume);
char music_volume_char[(((sizeof music_num) * CHAR_BIT) + 2) / 3 + 2];
sprintf_s(music_volume_char, "%d", music_num);
App->gui->DeleteUIElement(*music_volume);
music_volume = App->gui->AddUILabel(150, 10, music_volume_char, { 255,255,255,255 }, 25, this);
}
Mix_VolumeMusic(music_volume_value);
}
else if (fx_volume_label->current_state == STATE_FOCUSED) {
if (fx_volume_value >= 1) {
fx_volume_value -= 1;
uint fx_num = NumberToPercentage(fx_volume_value, max_volume);
char fx_volume_char[(((sizeof fx_num) * CHAR_BIT) + 2) / 3 + 2];
sprintf_s(fx_volume_char, "%d", fx_num);
App->gui->DeleteUIElement(*fx_volume);
fx_volume = App->gui->AddUILabel(150, 30, fx_volume_char, { 255,255,255,255 }, 25, this);
}
Mix_Volume(-1, fx_volume_value);
}
}
uint ctSettings::NumberToPercentage(uint num, uint max_num) {
uint percentage;
percentage = (num * 100) / max_num;
return percentage;
}
void ctSettings::ChangeControlImages(UIElement* control) {
if (control == select_button_image) {
if (select_button_image != nullptr) {
App->gui->DeleteUIElement(*select_button_image);
}
if (App->main_menu->key_select == 0) {
select_button_image = App->gui->AddUIImage(125, 70, { 1360, 224, 17, 17 }, this);
}
else if (App->main_menu->key_select == 1) {
select_button_image = App->gui->AddUIImage(125, 70, { 1342, 242, 17, 17 }, this);
}
else if (App->main_menu->key_select == 2) {
select_button_image = App->gui->AddUIImage(125, 70, { 1324, 224, 17, 17 }, this);
}
else if (App->main_menu->key_select == 3) {
select_button_image = App->gui->AddUIImage(125, 70, { 1342, 206, 17, 17 }, this);
}
}
else if (control == back_button_image) {
if (back_button_image != nullptr) {
App->gui->DeleteUIElement(*back_button_image);
}
if (App->main_menu->key_back == 0) {
back_button_image = App->gui->AddUIImage(125, 90, { 1360, 224, 17, 17 }, this);
}
else if (App->main_menu->key_back == 1) {
back_button_image = App->gui->AddUIImage(125, 90, { 1342, 242, 17, 17 }, this);
}
else if (App->main_menu->key_back == 2) {
back_button_image = App->gui->AddUIImage(125, 90, { 1324, 224, 17, 17 }, this);
}
else if (App->main_menu->key_back == 3) {
back_button_image = App->gui->AddUIImage(125, 90, { 1342, 206, 17, 17 }, this);
}
}
} | 33.904867 | 205 | 0.697292 | Wilhelman |
bb119acc860c8087b6c7dfb2c2a44e333452c2a5 | 5,039 | hpp | C++ | Array/Array.hpp | PrathameshThorat008/Advance-ADT | d89ccc777624bf8cfcb7144980c14efce919084f | [
"MIT"
] | null | null | null | Array/Array.hpp | PrathameshThorat008/Advance-ADT | d89ccc777624bf8cfcb7144980c14efce919084f | [
"MIT"
] | 1 | 2022-01-23T06:53:08.000Z | 2022-03-18T06:41:02.000Z | Array/Array.hpp | PrathameshThorat008/Advance-ADT | d89ccc777624bf8cfcb7144980c14efce919084f | [
"MIT"
] | null | null | null | #pragma once
#include <stdlib.h>
#include <algorithm>
#include <iostream>
using namespace std;
template <class T>
class Array
{
private:
T *arr;
public:
int length;
Array() : length(0), arr((T *)malloc(sizeof(T) * length)){};
Array(Array<T> *arr2)
: length(0), arr((T *)malloc(sizeof(T) * length))
{
for (int i = 0; i < arr2->length; i++)
this->add(arr2->operator[](i));
};
void add(T el)
{
length++;
arr = (T *)realloc(arr, sizeof(T) * length);
arr[length - 1] = el;
}
void add(T el, int index)
{
length++;
arr = (T *)realloc(arr, sizeof(T) * length);
for (int i = length - 1; i > index; i--)
{
arr[i] = arr[i - 1];
}
arr[index] = el;
}
void operator<<(T el)
{
add(el);
}
void remove()
{
length--;
arr = (T *)realloc(arr, sizeof(T) * length);
}
void remove(int index)
{
length--;
for (int i = index; i < length; i++)
{
arr[i] = arr[i + 1];
}
arr = (T *)realloc(arr, sizeof(T) * length);
}
void update(T el, int index)
{
arr[index] = el;
}
int linearSearch(T el)
{
int index = -1;
for (int i = 0; i < length; i++)
{
if (arr[i] == el)
{
index = i;
break;
}
}
return index;
}
int binarySearch(T el)
{
int index = -1;
int s = 0, e = length;
while (1)
{
int mid = (s + e) / 2;
if (arr[mid] == el)
{
index = mid;
break;
}
else if (arr[s] == el)
{
index = s;
break;
}
else if (arr[e] == el)
{
index = e;
break;
}
else if (arr[mid] < el)
s = mid + 1;
else if (arr[mid] > el)
e = mid - 1;
}
return index;
}
void rotate(int noOfElements)
{
noOfElements %= length;
int gcd = __gcd(length, noOfElements);
for (int i = 0; i < gcd; i++)
{
T temp = arr[i];
int j = i;
while (1)
{
int k = j + noOfElements;
if (k >= length)
k = k - length;
if (k == i)
break;
arr[j] = arr[k];
j = k;
}
arr[j] = temp;
}
}
void sort()
{
for (int i = 0; i < length; i++)
{
for (int j = i; j < length; j++)
{
if (arr[j] < arr[i])
{
T temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
}
}
}
T &get(int index)
{
return arr[index];
}
T &operator[](int index)
{
return arr[index];
}
string join(string connector)
{
string str;
for (int i = 0; i < length; i++)
{
if (i < length - 1)
str += to_string(arr[i]) + connector;
else
str += to_string(arr[i]);
}
return str;
}
Array<T> operator+(Array<T> arr2)
{
Array<T> x(this);
for (int i = 0; i < arr2.length; i++)
x.add(arr2[i]);
return x;
}
void operator+=(Array<T> arr2)
{
for (int i = 0; i < arr2.length; i++)
add(arr2[i]);
}
Array<T> map(T (*callback)(T))
{
Array<T> newArr;
for (int i = 0; i < this->length; i++)
{
T data = callback(arr[i]);
newArr.add(data);
}
return newArr;
}
Array<T> map(T (*callback)(T, int))
{
Array<T> newArr;
for (int i = 0; i < this->length; i++)
{
T data = callback(arr[i], i);
newArr.add(data);
}
return newArr;
}
Array<T> map(T (*callback)(T, int, Array<T> *))
{
Array<T> newArr;
for (int i = 0; i < this->length; i++)
{
T data = callback(arr[i], i, this);
newArr.add(data);
}
return newArr;
}
~Array()
{
free(arr);
}
};
template <>
string Array<char>::join(string connector)
{
string str;
for (int i = 0; i < length; i++)
{
if (i < length - 1)
str += arr[i] + connector;
else
str += arr[i];
}
return str;
}
template <>
string Array<string>::join(string connector)
{
string str;
for (int i = 0; i < length; i++)
{
if (i < length - 1)
str += arr[i] + connector;
else
str += arr[i];
}
return str;
} | 18.732342 | 64 | 0.372495 | PrathameshThorat008 |
bb144a48837ce3d7314a9db645fa243a4980301d | 1,721 | cpp | C++ | test/local_search/2_local_search/2_local_search_test.cpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | test/local_search/2_local_search/2_local_search_test.cpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | test/local_search/2_local_search/2_local_search_test.cpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | 1 | 2021-02-24T06:23:56.000Z | 2021-02-24T06:23:56.000Z | //=======================================================================
// Copyright (c)
//
// 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)
//=======================================================================
/**
* @file 2_local_search_test.cpp
* @brief
* @author Piotr Wygocki
* @version 1.0
* @date 2013-09-20
*/
#include "test_utils/sample_graph.hpp"
#include "test_utils/logger.hpp"
#include "test_utils/2_local_search_logger.hpp"
#include "paal/local_search/2_local_search/2_local_search.hpp"
#include "paal/data_structures/cycle/simple_cycle.hpp"
#include <boost/test/unit_test.hpp>
#include <vector>
#include <string>
using std::string;
using std::vector;
using namespace paal::local_search;
using namespace paal;
BOOST_AUTO_TEST_CASE(two_local_search_test) {
//! [Two Local Search Example]
// sample data
typedef sample_graphs_metrics SGM;
auto gm = SGM::get_graph_metric_small();
const int size = gm.size();
std::vector<int> v(size);
std::iota(v.begin(), v.end(), 0);
// create random solution
std::random_shuffle(v.begin(), v.end());
typedef data_structures::simple_cycle<int> Cycle;
Cycle cycle(v.begin(), v.end());
// creating local search components
auto lsc = get_default_two_local_components(gm);
// printing
LOGLN("Length \t" << get_cycle_length(gm, cycle));
// setting logger
auto logger = utils::make_two_ls_logger(gm, 100);
// search
two_local_search(cycle, local_search::first_improving_strategy{}, logger,
utils::always_false(), lsc);
//! [Two Local Search Example]
}
| 28.683333 | 77 | 0.63742 | Kommeren |
bb1a1c710bace271469ed546b4ceb4e039e0539e | 2,487 | cpp | C++ | framework/src/manager/TReadoutBoard.cpp | AudreyFrancisco/MultiLadderOperation | fd6fefd616d73487835c31bc9916bbd8490d1864 | [
"BSD-4-Clause"
] | null | null | null | framework/src/manager/TReadoutBoard.cpp | AudreyFrancisco/MultiLadderOperation | fd6fefd616d73487835c31bc9916bbd8490d1864 | [
"BSD-4-Clause"
] | null | null | null | framework/src/manager/TReadoutBoard.cpp | AudreyFrancisco/MultiLadderOperation | fd6fefd616d73487835c31bc9916bbd8490d1864 | [
"BSD-4-Clause"
] | null | null | null | #include <exception>
#include <stdexcept>
#include "TChipConfig.h"
#include "TBoardConfig.h"
#include "TReadoutBoard.h"
using namespace std;
//___________________________________________________________________
TReadoutBoard::TReadoutBoard() : TVerbosity()
{ }
//___________________________________________________________________
TReadoutBoard::TReadoutBoard( shared_ptr<TBoardConfig> config )
{
if ( !config ) {
throw runtime_error( "TReadoutBoard::TReadoutBoard() - board config. is a nullptr !" );
}
}
//___________________________________________________________________
TReadoutBoard::~TReadoutBoard()
{
fChipPositions.clear();
}
//___________________________________________________________________
void TReadoutBoard::AddChipConfig( shared_ptr<TChipConfig> newChipConfig )
{
if ( !newChipConfig ) {
throw invalid_argument( "TReadoutBoard::AddChipConfig() - null pointer");
}
for ( unsigned int ii = 0; ii < fChipPositions.size() ; ii++ ) {
shared_ptr<TChipConfig> sp_chip = (fChipPositions.at(ii)).lock();
if ( newChipConfig->GetChipId() == sp_chip->GetChipId() ) {
throw invalid_argument( "TReadoutBoard::AddChipConfig() - duplicate chip id" );
}
}
fChipPositions.push_back( newChipConfig );
}
//___________________________________________________________________
int TReadoutBoard::GetControlInterface( const uint8_t chipId ) const
{
int chip = GetChipById( chipId );
shared_ptr<TChipConfig> sp_chip = (fChipPositions.at(chip)).lock();
return sp_chip->GetControlInterface();
}
//___________________________________________________________________
int TReadoutBoard::GetChipById( const uint8_t chipId ) const
{
bool found = false;
int position = TChipConfigData::kInitValue;
for ( unsigned int i = 0; i < fChipPositions.size(); i++ ) {
shared_ptr<TChipConfig> sp_chip = (fChipPositions.at(i)).lock();
if ( sp_chip->GetChipId() == chipId ) {
position = i;
found = true;
break;
}
}
if ( !found ) {
throw invalid_argument( "TReadoutBoard::GetChipById() - non existing chip" );
}
return position;
}
//___________________________________________________________________
int TReadoutBoard::GetReceiver( const uint8_t chipId ) const
{
int chip = GetChipById( chipId );
shared_ptr<TChipConfig> sp_chip = (fChipPositions.at(chip)).lock();
return sp_chip->GetReceiver();
}
| 31.481013 | 95 | 0.71532 | AudreyFrancisco |
bb1d10516e634fb98b369a62d7b4a3ed741e5018 | 40,219 | cpp | C++ | source/Library/System/Environment.cpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | source/Library/System/Environment.cpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | source/Library/System/Environment.cpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------------------------------------------
#include "Library/System/Environment.hpp"
// ------------------------------------------------------------------------------------------------
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
// ------------------------------------------------------------------------------------------------
#ifdef SQMOD_OS_WINDOWS
#include <windows.h>
#include <shlobj.h>
#else
#include <linux/limits.h>
#include <sys/utsname.h>
#include <unistd.h>
#include <pwd.h>
#endif
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
#ifdef SQMOD_OS_WINDOWS
// Maximum path size in characters
#define SQMOD_MAX_PATH (sizeof(TCHAR) * MAX_PATH)
// Character to be used when working with path
typedef TCHAR PChar;
#else
// Maximum path size in characters
#define SQMOD_MAX_PATH (PATH_MAX)
// Character to be used when working with path
typedef CharT PChar;
#endif // SQMOD_OS_WINDOWS
// ------------------------------------------------------------------------------------------------
void SysEnv::Get(Buffer & b, CCStr name, CCStr fallback)
{
// Make sure the requested variable name is valid
if (name && *name != 0)
{
// Is there a buffer to work with?
if (!b)
{
// Acquire a moderately sized buffer
b = Buffer(128);
}
#ifdef SQMOD_OS_WINDOWS
// Retrieve the variable contents into the buffer that we have
DWORD len = GetEnvironmentVariableA(name, &b.Cursor(), b.Remaining());
// If the returned length is 0 then the variable doesn't exist
if (!len)
{
// Write the fall-back value into the buffer instead
len = b.WriteS(b.Position(), fallback);
}
// Did we have enough space left in the buffer?
else if (len > b.Remaining())
{
// Acquire a new buffer with a more appropriate capacity this time
b.Grow(len - b.Remaining() + 2);
// Attempt to retrieve the variable contents one more time
len = GetEnvironmentVariableA(name, &b.Cursor(), b.Remaining());
}
// Move the edit cursor to the end of the appended data
b.Advance(len);
#else
// Retrieve the pointer to the variable contents
CSStr val = getenv(name);
// If the returned pointer is null then the variable doesn't exist
if (!val)
{
// Write the fall-back value into the buffer instead
b.AppendS(fallback);
}
else
{
// Write the variable contents to the buffer
b.AppendS(val);
}
#endif
}
// Make sure that whatever string is in the buffer is null terminated
b.Cursor() = '\0';
}
// ------------------------------------------------------------------------------------------------
bool SysEnv::Has(CCStr name)
{
#ifdef SQMOD_OS_WINDOWS
return (GetEnvironmentVariableA(name, nullptr, 0) > 0);
#else
return (getenv(name) != 0);
#endif
}
// ------------------------------------------------------------------------------------------------
bool SysEnv::Has(const String & name)
{
#ifdef SQMOD_OS_WINDOWS
return (GetEnvironmentVariableA(name.c_str(), nullptr, 0) > 0);
#else
return (getenv(name.c_str()) != 0);
#endif
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::Get(CCStr name, CCStr fallback)
{
// Allocate a moderately sized buffer
Buffer b(128);
// Forward the call to the shared function
Get(b, name, fallback);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
bool SysEnv::Set(CCStr name, CCStr value)
{
#ifdef SQMOD_OS_WINDOWS
// Set the specified environment variable and return the result
return (SetEnvironmentVariableA(name, value) != 0);
#else
// Allocated a moderately sized buffer
Buffer b(256);
// Generate the necessary set command
b.WriteF(0, "%s=%s", name, value);
// Set the resulted environment variable and return the result
return (putenv(b.Data()) == 0);
#endif
}
// ------------------------------------------------------------------------------------------------
bool SysEnv::Set(const String & name, const String & value)
{
#ifdef SQMOD_OS_WINDOWS
// Set the specified environment variable and return the result
return (SetEnvironmentVariableA(name.c_str(), value.c_str()) != 0);
#else
// Obtain a temporary buffer capable of holding the set command
Buffer b(name.size() + value.size() + 2);
// Generate the necessary set command
b.WriteF(0, "%s=%s", name.c_str(), value.c_str());
// Set the resulted environment variable and return the result
return (putenv(b.Data()) == 0);
#endif
}
// ------------------------------------------------------------------------------------------------
String SysEnv::OSName()
{
#ifdef SQMOD_OS_WINDOWS
// Prepare the structure in which the OS information is retrieved
OSVERSIONINFO vi;
// Specify the size of the structure
vi.dwOSVersionInfoSize = sizeof(vi);
// Attempt to populate the previously created structure with information
if (GetVersionEx(&vi) == 0)
{
return "Unknown Windows";
}
// Identify the platform from the obtained information
switch (vi.dwPlatformId)
{
case VER_PLATFORM_WIN32s:
return "Windows 3.x";
case VER_PLATFORM_WIN32_WINDOWS:
return vi.dwMinorVersion == 0 ? "Windows 95" : "Windows 98";
case VER_PLATFORM_WIN32_NT:
return "Windows NT";
default:
return "Windows [Unknown]";
}
#else
// Prepare the structure in which the OS information is retrieved
struct utsname uts;
// Attempt to populate the previously created structure with information
if (uname(&uts) < 0)
{
return String("Unknown Unix");
}
// Return the requested information
return uts.sysname;
#endif
}
// ------------------------------------------------------------------------------------------------
String SysEnv::OSDisplayName()
{
#ifdef SQMOD_OS_WINDOWS
// Prepare the structure in which the OS information is retrieved
OSVERSIONINFO vi;
// Specify the size of the structure
vi.dwOSVersionInfoSize = sizeof(vi);
// Attempt to populate the previously created structure with information
if (GetVersionEx(&vi) == 0)
{
return "Unknown Windows";
}
// Identify the platform from the obtained information
switch(vi.dwMajorVersion)
{
case 6:
switch (vi.dwMinorVersion)
{
case 0: return "Windows Vista/Server 2008";
case 1: return "Windows 7/Server 2008 R2";
case 2: return "Windows 8/Server 2012";
default: return "Windows 6.x [Unknown]";
}
case 5:
switch (vi.dwMinorVersion)
{
case 0: return "Windows 2000";
case 1: return "Windows XP";
case 2: return "Windows Server 2003/Windows Server 2003 R2";
default: return "Windows 5.x [Unknown]";
}
case 4:
switch (vi.dwMinorVersion)
{
case 0: return "Windows 95/Windows NT 4.0";
case 10: return "Windows 98";
case 90: return "Windows ME";
default: return "Windows 4.x [Unknown]";
}
default: return "Windows [Unknown]";
}
#else
// Use the same same output from OSName
return OSName();
#endif
}
// ------------------------------------------------------------------------------------------------
String SysEnv::OSVersion()
{
#ifdef SQMOD_OS_WINDOWS
// Prepare the structure in which the OS information is retrieved
OSVERSIONINFO vi;
// Specify the size of the structure
vi.dwOSVersionInfoSize = sizeof(vi);
// Attempt to populate the previously created structure with information
if (GetVersionEx(&vi) == 0)
{
String("Unknown");
}
// Obtain a temporary buffer capable of holding the version string
Buffer b(128);
// The amount of data written to the buffer
Uint32 sz = 0;
// Generate the version string with the received information
if (vi.szCSDVersion[0])
{
sz = b.WriteF(0, "%lu.%lu (Build %lu : %s)",
vi.dwMajorVersion, vi.dwMinorVersion, vi.dwBuildNumber, vi.szCSDVersion);
}
else
{
sz = b.WriteF(0, "%lu.%lu (Build %lu)", vi.dwMajorVersion, vi.dwMinorVersion, vi.dwBuildNumber);
}
// Return a string with the buffer contents and leave the buffer clean after itself
return String(b.Get< String::value_type >(), sz);
#else
// Prepare the structure in which the OS information is retrieved
struct utsname uts;
// Attempt to populate the previously created structure with information
if (uname(&uts) < 0)
{
return String("Unknown");
}
// Return the requested information
return uts.release;
#endif
}
// ------------------------------------------------------------------------------------------------
String SysEnv::OSArchitecture()
{
#ifdef SQMOD_OS_WINDOWS
// Prepare the structure in which the system information is retrieved
SYSTEM_INFO si;
// Attempt to populate the previously created structure with information
GetSystemInfo(&si);
// Identify the architecture from the obtained information
switch (si.wProcessorArchitecture)
{
case PROCESSOR_ARCHITECTURE_INTEL: return "IA32";
case PROCESSOR_ARCHITECTURE_MIPS: return "MIPS";
case PROCESSOR_ARCHITECTURE_ALPHA: return "ALPHA";
case PROCESSOR_ARCHITECTURE_PPC: return "PPC";
case PROCESSOR_ARCHITECTURE_IA64: return "IA64";
#ifdef PROCESSOR_ARCHITECTURE_IA32_ON_WIN64
case PROCESSOR_ARCHITECTURE_IA32_ON_WIN64: return "IA64/32";
#endif
#ifdef PROCESSOR_ARCHITECTURE_AMD64
case PROCESSOR_ARCHITECTURE_AMD64: return "AMD64";
#endif
default: return "Unknown";
}
#else
// Prepare the structure in which the OS information is retrieved
struct utsname uts;
// Attempt to populate the previously created structure with information
if (uname(&uts) < 0)
{
return String("Unknown");
}
// Return the requested information
return uts.machine;
#endif
}
// ------------------------------------------------------------------------------------------------
String SysEnv::NodeName()
{
#ifdef SQMOD_OS_WINDOWS
// Obtain a temporary buffer capable of holding the node name string
Buffer b(MAX_COMPUTERNAME_LENGTH + 1);
// Used to tell the size of our buffer and the size of data written to it
DWORD size = b.Size< TCHAR >();
// Attempt to obtain the requested information
if (GetComputerNameA(b.Data(), &size) == 0)
{
return String();
}
// Return a string with the buffer contents and leave the buffer clean after itself
return String(b.Get< String::value_type >(), size);
#else
// Prepare the structure in which the OS information is retrieved
struct utsname uts;
// Attempt to populate the previously created structure with information
if (uname(&uts) < 0)
{
return String("Unknown");
}
// Return the requested information
return uts.nodename;
#endif
}
// ------------------------------------------------------------------------------------------------
Uint32 SysEnv::ProcessorCount()
{
#ifdef SQMOD_OS_WINDOWS
// Prepare the structure in which the system information is retrieved
SYSTEM_INFO si;
// Attempt to populate the previously created structure with information
GetSystemInfo(&si);
// Return the requested information
return si.dwNumberOfProcessors;
#elif defined(_SC_NPROCESSORS_ONLN)
// Attempt to obtain the number of processors available on the system
const Int32 count = sysconf(_SC_NPROCESSORS_ONLN);
// Validate the result and return the appropriate value
return (count < 0) ? 1 : static_cast< Uint32 >(count);
#else
// Obviously at least one processor should be available
return 1;
#endif
}
// ------------------------------------------------------------------------------------------------
void SysEnv::TerminatePath(Buffer & b)
{
// Is there any path to terminate?
if (!b)
{
return;
}
// Make sure that the path contains a trailing slash if necessary
else if (b.Cursor() == 0 && b.Before() != SQMOD_DIRSEP_CHAR)
{
b.Push(SQMOD_DIRSEP_CHAR);
}
// Make sure that whatever string is in the buffer, if any, is null terminated
b.Cursor() = '\0';
}
// ------------------------------------------------------------------------------------------------
void SysEnv::ExpandVars(Buffer & b, CCStr pos, CCStr end)
{
// Let's have a string to store the extracted variable name and value
String var;
// Extract the remaining directories from the specified path
while (pos != end)
{
// Should we start looking for a variable name?
if (*pos == '$')
{
// Clear previous name, if any
var.clear();
// Where the name of the variable starts and where it ends
CCStr start = ++pos, stop = pos;
// Is this variable name enclosed within curly braces?
if (*start == '{')
{
// Find the closing brace
stop = strchr(start, '}');
// Was there a closing brace?
if (!stop)
{
// Append the rest of the string to the buffer
b.AppendS(pos - 1, end - pos + 1);
// Stop parsing here
break;
}
// Is there anything between the brace?
else if ((stop - start) >= 1)
{
// Slice the variable name
var.assign(start + 1, stop - start - 1);
// Skip the ending brace
++stop;
}
}
// Is the dollar character followed by a character allowed in variable names?
else if (isalnum(*start) != 0 || *start == '_')
{
// Find the first character that isn't allowed in variable names
while (stop != end && (isalnum(*stop) != 0 || *stop == '_'))
{
++stop;
}
// Have we found anything?
if (start != stop)
{
// Slice the variable name
var.assign(start, stop - start);
}
}
else
{
// Just add the character to the buffer as is
b.Push('$');
// Skip to the next character
continue;
}
// Update the position
pos = stop;
// Do we have a valid variable name and does it exist?
if (!var.empty() && Has(var))
{
// Append the variable contents to our buffer
Get(b, var.c_str(), nullptr);
}
}
// Just add the character to the buffer as is
else
{
b.Push(*(pos++));
}
}
// Make sure the string in the buffer is null terminated
b.Cursor() = '\0';
}
// ------------------------------------------------------------------------------------------------
void SysEnv::ExpandPath(Buffer & b, CCStr pos, CCStr end)
{
// Does the path even contain something to be expanded?
if (pos == end || *pos == '\0')
{
return; // Nothing to expand!
}
// If the path starts with the tilde character then the home directory was requested
else if (*pos == '~')
{
// To be expanded, the tilde character must be followed by a slash
if (*(++pos) == SQMOD_DIRSEP_CHAR)
{
// Let's expand this tilde to the home directory
HomeDir(b);
// Let's skip the slash as well
++pos;
}
// Go back to the previous character and use it literally
else
{
--pos;
}
}
// The remaining string can be expanded normally
ExpandVars(b, pos, end);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::ExpandVars(Buffer & b, CCStr str)
{
// Do we have anything to expand?
if (!str || *str == '\0')
{
// Make sure the string in the specified buffer, if any, is null terminated
if (b)
{
b.Cursor() = '\0';
}
// Nothing to expand!
return;
}
// Calculate the size of the specified string
const Uint32 len = strlen(str);
// Forward the call to the internal function
ExpandVars(b, str, str + len);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::ExpandVars(Buffer & b, const String & str)
{
// Do we have anything to expand?
if (str.empty())
{
// Make sure the string in the specified buffer, if any, is null terminated
if (b)
{
b.Cursor() = '\0';
}
// Nothing to expand!
return;
}
// Forward the call to the internal function
ExpandVars(b, str.c_str(), str.c_str() + str.size());
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::ExpandVars(CCStr str)
{
// Do we have anything to expand?
if (!str || *str == '\0')
{
return Buffer(); // Nothing to expand!
}
// Calculate the size of the specified string
const Uint32 len = strlen(str);
// Allocate a moderately sized buffer
Buffer b(len + 128);
// Forward the call to the internal function
ExpandVars(b, str, str + len);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::ExpandVars(const String & str)
{
// Do we have anything to expand?
if (str.empty())
{
return Buffer(); // Nothing to expand!
}
// Allocate a moderately sized buffer
Buffer b(str.size() + 128);
// Forward the call to the internal function
ExpandVars(b, str.c_str(), str.c_str() + str.size());
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::ExpandPath(Buffer & b, CCStr path)
{
// Do we have anything to expand?
if (!path || *path == '\0')
{
// Make sure the string in the specified buffer, if any, is null terminated
if (b)
{
b.Cursor() = '\0';
}
// Nothing to expand!
return;
}
// Calculate the size of the specified string
const Uint32 len = strlen(path);
// Forward the call to the internal function
ExpandPath(b, path, path + len);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::ExpandPath(Buffer & b, const String & path)
{
// Do we have anything to expand?
if (path.empty())
{
// Make sure the string in the specified buffer, if any, is null terminated
if (b)
{
b.Cursor() = '\0';
}
// Nothing to expand!
return;
}
// Forward the call to the internal function
ExpandPath(b, path.c_str(), path.c_str() + path.size());
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::ExpandPath(CCStr path)
{
// Do we have anything to expand?
if (!path || *path == '\0')
{
return Buffer(); // Nothing to expand!
}
// Calculate the size of the specified string
const Uint32 len = strlen(path);
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Forward the call to the internal function
ExpandPath(b, path, path + len);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::ExpandPath(const String & path)
{
// Do we have anything to expand?
if (path.empty())
{
return Buffer(); // Nothing to expand!
}
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Forward the call to the internal function
ExpandPath(b, path.c_str(), path.c_str() + path.size());
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::WorkingDir(Buffer & b)
{
#ifdef SQMOD_OS_WINDOWS
// Is there a buffer to work with?
if (!b)
{
// Allocate buffer capable of storing a full path
b = Buffer(SQMOD_MAX_PATH);
}
// Retrieve the current directory for the current process
DWORD len = GetCurrentDirectoryA(b.Remaining(), &b.Cursor());
// Did we have enough space left in the buffer?
if (len > b.Remaining())
{
// Acquire a new buffer with a more appropriate capacity this time
b.Grow(len - b.Remaining() + 2);
// Attempt to retrieve the working directory one more time
len = GetCurrentDirectoryA(b.Remaining(), &b.Cursor());
// ^ On failure the null terminator is included in the length
}
// Move the edit cursor to the end of the appended data
b.Advance(len);
#else
// Do we have enough space to store a full path?
if (b.Remaining() < SQMOD_MAX_PATH)
{
b.Grow(SQMOD_MAX_PATH - b.Remaining() + 2);
}
// Attempt to retrieve the current working directory and validate result
if (getcwd(&b.Cursor(), b.Remaining()))
{
// Move the edit cursor to the end of the appended data
b.Advance(strlen(&b.Cursor()));
}
#endif // SQMOD_OS_WINDOWS
// Make sure that the path is properly terminated
TerminatePath(b);
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::WorkingDir()
{
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Forward the call to the regular function
WorkingDir(b);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::HomeDir(Buffer & b)
{
#ifdef SQMOD_OS_WINDOWS
// Do we have enough space to store a full path?
if (b.Remaining() < SQMOD_MAX_PATH)
{
b.Grow(SQMOD_MAX_PATH - b.Remaining() + 2);
}
// Try the primary method of retrieving the home directory
if (SUCCEEDED(SHGetFolderPathA(NULL, CSIDL_PROFILE, nullptr, 0, &b.Cursor())))
{
// Move the edit cursor to the end of the appended data
b.Advance(strlen(&b.Cursor()));
}
// Try the secondary method of retrieving the home directory
else if (Has("USERPROFILE"))
{
// Append the contents of the USERPROFILE environment variable
Get(b, "USERPROFILE", nullptr);
}
else if (Has("HOMEDRIVE") && Has("HOMEPATH"))
{
// Append the contents of the HOMEDRIVE environment variable
Get(b, "HOMEDRIVE", nullptr);
// Append the contents of the HOMEPATH environment variable
Get(b, "HOMEPATH", nullptr);
}
#else
// Try the primary method of retrieving the home directory
struct passwd * pwd = getpwuid(getuid());
// Validate the success of the previous operation
if (pwd)
{
// Append the path to our buffer
b.AppendS(pwd->pw_dir);
}
else
{
// Try the secondary method of retrieving the home directory
pwd = getpwuid(geteuid());
// Validate the success of the previous operation
if (pwd)
{
// Write the path to our buffer and store the size
b.AppendS(pwd->pw_dir);
}
// Fall back to the system environment variables
else if (Has("HOME"))
{
// Append the contents of the HOME environment variable
Get(b, "HOME", nullptr);
}
}
#endif // SQMOD_OS_WINDOWS
// Make sure that the path is properly terminated
TerminatePath(b);
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::HomeDir()
{
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Forward the call to the regular function
HomeDir(b);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::ConfigHomeDir(Buffer & b)
{
#ifdef SQMOD_OS_WINDOWS
// Is there a buffer to work with?
if (!b)
{
// Allocate buffer capable of storing a full path
b = Buffer(SQMOD_MAX_PATH);
}
// Does the APPDATA environment variable exist?
if (Has("APPDATA"))
{
// Obtain the contents of the APPDATA environment variable
Get(b, "APPDATA", nullptr);
}
else
{
// Default to the home directory
HomeDir(b);
}
#else
// Obtain the home directory path (should contain a trailing slash)
HomeDir(b);
// Use the home directory and append the ".config" sub folder
b.AppendS(".config");
#endif // SQMOD_OS_WINDOWS
// Make sure that the path is properly terminated
TerminatePath(b);
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::ConfigHomeDir()
{
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Forward the call to the regular function
ConfigHomeDir(b);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::DataHomeDir(Buffer & b)
{
#ifdef SQMOD_OS_WINDOWS
// Is there a buffer to work with?
if (!b)
{
// Allocate buffer capable of storing a full path
b = Buffer(SQMOD_MAX_PATH);
}
// Does the LOCALAPPDATA environment variable exist?
if (Has("LOCALAPPDATA"))
{
// Obtain the contents of the LOCALAPPDATA environment variable
return Get(b, "LOCALAPPDATA", nullptr);
}
// Default to the home config directory
return ConfigHomeDir(b);
#else
// Obtain the home directory path (should contain a trailing slash)
HomeDir(b);
// Use the home directory and append the ".local/share" sub folder
b.AppendS(".config/share");
#endif // SQMOD_OS_WINDOWS
// Make sure that the path is properly terminated
TerminatePath(b);
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::DataHomeDir()
{
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Forward the call to the regular function
DataHomeDir(b);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::TempHomeDir(Buffer & b)
{
#ifdef SQMOD_OS_WINDOWS
// Use the regular temp directory
TempDir(b);
#else
// Obtain the home directory path (should contain a trailing slash)
HomeDir(b);
// Use the home directory and append the ".local/tmp" folder
b.AppendS(".local/tmp");
// Make sure that the path is properly terminated
TerminatePath(b);
#endif // SQMOD_OS_WINDOWS
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::TempHomeDir()
{
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Forward the call to the regular function
TempHomeDir(b);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::CacheHomeDir(Buffer & b)
{
#ifdef SQMOD_OS_WINDOWS
// Use the regular temp directory
TempDir(b);
#else
// Obtain the home directory path (should contain a trailing slash)
HomeDir(b);
// Use the home directory and append the ".cache" folder
b.AppendS(".cache");
// Make sure that the path is properly terminated
TerminatePath(b);
#endif // SQMOD_OS_WINDOWS
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::CacheHomeDir()
{
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Forward the call to the regular function
CacheHomeDir(b);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::TempDir(Buffer & b)
{
#ifdef SQMOD_OS_WINDOWS
// Is there a buffer to work with?
if (!b)
{
// Allocate buffer capable of storing a full path
b = Buffer(SQMOD_MAX_PATH);
}
// Retrieve the path of the directory designated for temporary files
DWORD len = GetTempPathA(b.Remaining(), &b.Cursor());
// Did we failed to retrieve the path?
if (len == 0)
{
return; // Unable to retrieve the path!
}
// Did we have enough space left in the buffer?
else if (len > b.Remaining())
{
// Acquire a new buffer with a more appropriate capacity this time
b.Grow(len - b.Remaining() + 2);
// Attempt to retrieve the temporary directory one more time
len = GetTempPathA(b.Remaining(), &b.Cursor());
// ^ On failure the null terminator is included in the length
}
// Convert the acquired path to its long form
len = GetLongPathNameA(&b.Cursor(), &b.Cursor(), b.Remaining());
// Did we failed to convert the path?
if (len == 0)
{
return; // Unable to convert the path!
}
// Did we have enough space left in the buffer?
else if (len > b.Remaining())
{
// Acquire a new buffer with a more appropriate capacity this time
b.Grow(len - b.Remaining() + 2);
// Attempt to retrieve the temporary directory again because we reused the buffer
GetTempPathA(b.Remaining(), &b.Cursor());
// Attempt to convert the acquired path to its long form one more time
len = GetLongPathNameA(&b.Cursor(), &b.Cursor(), b.Remaining());
// ^ On failure the null terminator is included in the length
}
// Move the edit cursor to the end of the appended data
b.Advance(len);
#else
// Does the TMPDIR environment variable exist?
if (SysEnv::Has("TMPDIR"))
{
// Obtain the contents of the TMPDIR environment variable
Get(b, "TMPDIR", nullptr);
}
else
{
// Default to the "/tmp" directory
b.AppendS("/tmp/");
}
#endif // SQMOD_OS_WINDOWS
// Make sure that the path is properly terminated
TerminatePath(b);
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::TempDir()
{
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Forward the call to the regular function
TempDir(b);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::ConfigDir(Buffer & b)
{
#ifdef SQMOD_OS_WINDOWS
// Is there a buffer to work with?
if (!b)
{
// Allocate buffer capable of storing a full path
b = Buffer(SQMOD_MAX_PATH);
}
// Does the PROGRAMDATA environment variable exist?
if (Has("PROGRAMDATA"))
{
// Obtain the contents of the PROGRAMDATA environment variable
Get(b, "PROGRAMDATA", nullptr);
}
else
{
// Make sure that whatever string is in the buffer, if any, is null terminated
b.Cursor() = '\0';
// Unable to retrieve the path!
return;
}
#else
// Default to "/etc" directory
b.AppendS("/etc/");
#endif // SQMOD_OS_WINDOWS
// Make sure that the path is properly terminated
TerminatePath(b);
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::ConfigDir()
{
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Forward the call to the regular function
ConfigDir(b);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::SystemDir(Buffer & b)
{
#ifdef SQMOD_OS_WINDOWS
// Is there a buffer to work with?
if (!b)
{
// Allocate buffer capable of storing a full path
b = Buffer(SQMOD_MAX_PATH);
}
// Retrieve the path of the system directory
DWORD len = GetSystemDirectoryA(&b.Cursor(), b.Remaining());
// Did we failed to retrieve the path?
if (len == 0)
{
return; // Unable to retrieve the path!
}
// Did we have enough space left in the buffer?
else if (len > b.Remaining())
{
// Acquire a new buffer with a more appropriate capacity this time
b.Grow(len - b.Remaining() + 2);
// Attempt to retrieve the path of the system directory one more time
len = GetSystemDirectoryA(&b.Cursor(), b.Remaining());
// ^ On failure the null terminator is included in the length
}
// Move the edit cursor to the end of the appended data
b.Advance(len);
#else
// Use a dummy directory for now
b.AppendS("/sys/");
#endif // SQMOD_OS_WINDOWS
// Make sure that the path is properly terminated
TerminatePath(b);
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::SystemDir()
{
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Forward the call to the regular function
SystemDir(b);
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
void SysEnv::NullDir(Buffer & b)
{
#ifdef SQMOD_OS_WINDOWS
b.AppendS("NUL:");
#else
b.AppendS("/dev/null/");
#endif // SQMOD_OS_WINDOWS
// Make sure that whatever string is in the buffer, if any, is null terminated
b.Cursor() = '\0';
}
// ------------------------------------------------------------------------------------------------
Buffer SysEnv::NullDir()
{
// Allocate buffer capable of storing a full path
Buffer b(SQMOD_MAX_PATH);
// Append the null path
#ifdef SQMOD_OS_WINDOWS
b.AppendS("NUL:");
#else
b.AppendS("/dev/null/");
#endif // SQMOD_OS_WINDOWS
// Make sure that whatever string is in the buffer, if any, is null terminated
b.Cursor() = '\0';
// Return ownership of the buffer
return std::move(b);
}
// ------------------------------------------------------------------------------------------------
static bool SqEnv_Has(CCStr name)
{
return SysEnv::Has(name);
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_Get(CCStr name)
{
return BufferToStrObj(SysEnv::Get(name, nullptr));
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_GetOr(CCStr name, CCStr fallback)
{
return BufferToStrObj(SysEnv::Get(name, fallback));
}
// ------------------------------------------------------------------------------------------------
static void SqEnv_Set(CCStr name, CCStr value)
{
SysEnv::Set(name, value);
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_ExpandVars(CCStr str)
{
return BufferToStrObj(SysEnv::ExpandVars(str));
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_ExpandPath(CCStr path)
{
return BufferToStrObj(SysEnv::ExpandPath(path));
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_WorkingDir()
{
return BufferToStrObj(SysEnv::WorkingDir());
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_HomeDir()
{
return BufferToStrObj(SysEnv::HomeDir());
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_ConfigHomeDir()
{
return BufferToStrObj(SysEnv::ConfigHomeDir());
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_DataHomeDir()
{
return BufferToStrObj(SysEnv::DataHomeDir());
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_TempHomeDir()
{
return BufferToStrObj(SysEnv::TempHomeDir());
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_CacheHomeDir()
{
return BufferToStrObj(SysEnv::CacheHomeDir());
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_TempDir()
{
return BufferToStrObj(SysEnv::TempDir());
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_ConfigDir()
{
return BufferToStrObj(SysEnv::ConfigDir());
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_SystemDir()
{
return BufferToStrObj(SysEnv::SystemDir());
}
// ------------------------------------------------------------------------------------------------
static Object SqEnv_NullDir()
{
return BufferToStrObj(SysEnv::NullDir());
}
// ================================================================================================
void Register_SysEnv(HSQUIRRELVM vm)
{
Table sens(vm);
sens.Func(_SC("Has"), &SqEnv_Has);
sens.Func(_SC("Get"), &SqEnv_Get);
sens.Func(_SC("GetOr"), &SqEnv_GetOr);
sens.Func(_SC("Set"), &SqEnv_Set);
sens.Func(_SC("OSName"), &SysEnv::OSName);
sens.Func(_SC("OSDisplayName"), &SysEnv::OSDisplayName);
sens.Func(_SC("OSVersion"), &SysEnv::OSVersion);
sens.Func(_SC("OSArchitecture"), &SysEnv::OSArchitecture);
sens.Func(_SC("NodeName"), &SysEnv::NodeName);
sens.Func(_SC("ProcessorCount"), &SysEnv::ProcessorCount);
sens.Func(_SC("ExpandVars"), &SqEnv_ExpandVars);
sens.Func(_SC("ExpandPath"), &SqEnv_ExpandPath);
sens.Func(_SC("WorkingDir"), &SqEnv_WorkingDir);
sens.Func(_SC("HomeDir"), &SqEnv_HomeDir);
sens.Func(_SC("ConfigHomeDir"), &SqEnv_ConfigHomeDir);
sens.Func(_SC("DataHomeDir"), &SqEnv_DataHomeDir);
sens.Func(_SC("TempHomeDir"), &SqEnv_TempHomeDir);
sens.Func(_SC("CacheHomeDir"), &SqEnv_CacheHomeDir);
sens.Func(_SC("TempDir"), &SqEnv_TempDir);
sens.Func(_SC("ConfigDir"), &SqEnv_ConfigDir);
sens.Func(_SC("SystemDir"), &SqEnv_SystemDir);
sens.Func(_SC("NullDir"), &SqEnv_NullDir);
RootTable(vm).Bind(_SC("SqSysEnv"), sens);
}
} // Namespace:: SqMod
| 33.266336 | 104 | 0.520823 | dracc |
bb32644997946e6a4025f9719b3aa0c385636be7 | 5,265 | cpp | C++ | source/GeomUtils.cpp | sindney/nest3d-cpp | 033575364c14a48499ddbb0cbf489b7e72b0d9b7 | [
"MIT"
] | 2 | 2018-01-11T13:00:14.000Z | 2018-01-12T02:02:16.000Z | source/GeomUtils.cpp | sindney/nest3d-cpp | 033575364c14a48499ddbb0cbf489b7e72b0d9b7 | [
"MIT"
] | null | null | null | source/GeomUtils.cpp | sindney/nest3d-cpp | 033575364c14a48499ddbb0cbf489b7e72b0d9b7 | [
"MIT"
] | null | null | null | #include "GeomUtils.h"
namespace nest
{
using namespace std;
bool GeomUtils::BSBS(Vector4 ¢er0, float radius0, Vector4 ¢er1, float radius1)
{
float x = center0.x - center1.x;
float y = center0.y - center1.y;
float z = center0.z - center1.z;
return (x * x + y * y + z * z) <= (radius0 + radius1) * (radius0 + radius1);
}
bool GeomUtils::AABBBS(Vector4 &max, Vector4 &min, Vector4 ¢er, float radius)
{
float x = center.x;
float y = center.y;
float z = center.z;
if(x < min.x)
x = min.x;
else if(x > max.x)
x = max.x;
if(y < min.y)
y = min.y;
else if(y > max.y)
y = max.y;
if(z < min.z)
z = min.z;
else if(z > max.z)
z = max.z;
x -= center.x;
y -= center.y;
z -= center.z;
return (x * x + y * y + z * z) <= (radius * radius);
}
bool GeomUtils::AABBAABB(Vector4 &max0, Vector4 &min0, Vector4 &max1, Vector4 &min1)
{
if(min0.x > max1.x) return false;
if(max0.x < min1.x) return false;
if(min0.y > max1.y) return false;
if(max0.y < min1.y) return false;
if(min0.z > max1.z) return false;
if(max0.z < min1.z) return false;
return true;
}
bool GeomUtils::rayBS(Vector4 &result, Vector4 &orgion, Vector4 &delta, Vector4 ¢er, float radius)
{
Vector4 e = center - orgion;
float lens = delta.x * delta.x + delta.y * delta.y + delta.z * delta.z;
float len = sqrt(lens);
float a = e * delta / len;
float f = radius * radius - lens + a * a;
if(f < 0)
return false;
f = a - sqrt(f);
if(f > len || f < 0)
return false;
result = delta * f + orgion;
return true;
}
bool GeomUtils::rayAABB(Vector4 &result, Vector4 &orgion, Vector4 &delta, Vector4 &max, Vector4 &min)
{
bool inside = true;
float xt, xn;
if(orgion.x < min.x)
{
xt = min.x - orgion.x;
if(xt > delta.x) return false;
xt /= delta.x;
inside = false;
xn = -1;
}
else if(orgion.x > max.x)
{
xt = max.x - orgion.x;
if(xt < delta.x) return false;
xt /= delta.x;
inside = false;
xn = 1;
}
else
{
xt = -1;
}
float yt, yn;
if(orgion.y < min.y)
{
yt = min.y - orgion.y;
if(yt > delta.y) return false;
yt /= delta.y;
inside = false;
yn = -1;
}
else if(orgion.y > max.y)
{
yt = max.y - orgion.y;
if(yt < delta.y) return false;
yt /= delta.y;
inside = false;
yn = 1;
}
else
{
yt = -1;
}
float zt, zn;
if(orgion.z < min.z)
{
zt = min.z - orgion.z;
if(zt > delta.z) return false;
zt /= delta.z;
inside = false;
zn = -1;
}
else if(orgion.z > max.z)
{
zt = max.z - orgion.z;
if(zt < delta.z) return false;
zt /= delta.z;
inside = false;
zn = 1;
}
else
{
zt = -1;
}
if(inside) return false;
int which = 0;
float t = xt;
if(yt > t)
{
which = 1;
t = yt;
}
if(zt > t)
{
which = 2;
t = zt;
}
float x, y, z;
switch(which)
{
case 0:
// yz
y = orgion.y + delta.y * t;
if (y < min.y || y > max.y) return false;
z = orgion.z + delta.z * t;
if (z < min.z || z > max.z) return false;
break;
case 1:
// xz
x = orgion.x + delta.x * t;
if (x < min.x || x > max.x) return false;
z = orgion.z + delta.z * t;
if (z < min.z || z > max.z) return false;
break;
case 2:
// xy
x = orgion.x + delta.x * t;
if (x < min.x || x > max.x) return false;
y = orgion.y + delta.y * t;
if (y < min.y || y > max.y) return false;
break;
}
result = delta * t + orgion;
return true;
}
bool GeomUtils::rayTri(float* t, float* u, float* v, Vector4 &orgion, Vector4 &delta, Vector4 &p0, Vector4 &p1, Vector4 &p2)
{
Vector4 e1 = p1 - p0;
Vector4 e2 = p2 - p0;
Vector4 p = Vector4::crossProduct(delta, e2);
float det = e1 * p;
if(det < 0.0001f) return false;
Vector4 t0 = orgion - p0;
Vector4 q = Vector4::crossProduct(t0, e1);
float ivt = 1.0f / det;
*t = e2 * q;
*t *= ivt;
if(u != NULL)
{
*u = t0 * p;
if(*u < 0.0f || *u > det) return false;
*v = delta * q;
if(*v < 0.0f || *u + *v > det) return false;
*u *= ivt;
*v *= ivt;
}
return true;
}
bool GeomUtils::rayGeom(vector<RayGeomResult> *results, RayGeomResult *result, bool uv, Vector4 &orgion, Vector4 &delta, Geometry &geom)
{
Vector4 vt1;
if(!rayAABB(vt1, orgion, delta, geom.bound.max, geom.bound.min)) return false;
bool flag = result != NULL;
RayGeomResult current;
Vector4 p0, p1, p2;
float t, u, v;
int i, j, k;
for(i = 0; i < geom.numTris; i++)
{
j = i * 3;
k = geom.indexData[j] * 3;
p0.x = geom.vertexData[k];
p0.y = geom.vertexData[k + 1];
p0.z = geom.vertexData[k + 2];
k = geom.indexData[j + 1] * 3;
p1.x = geom.vertexData[k];
p1.y = geom.vertexData[k + 1];
p1.z = geom.vertexData[k + 2];
k = geom.indexData[j + 2] * 3;
p2.x = geom.vertexData[k];
p2.y = geom.vertexData[k + 1];
p2.z = geom.vertexData[k + 2];
if(rayTri(&t, uv ? &u : NULL, uv ? &v : NULL, orgion, delta, p0, p1, p2))
{
current.t = t;
current.index = geom.indexData[j];
if(uv)
{
current.u = u;
current.v = v;
}
if(flag)
{
*result = current;
return true;
}
else
results->push_back(current);
}
}
return flag ? false : results->size() > 0;
}
} | 21.577869 | 137 | 0.545109 | sindney |
bb3489a82893551a049dea1fc46cea0e9af79823 | 123 | hpp | C++ | addons/qstore/configs/CfgWeapons.hpp | SOCOMD/SOCOMD-MODS-2021 | 834cd5f99831bd456179a1f55f5a91398c29bf57 | [
"MIT"
] | null | null | null | addons/qstore/configs/CfgWeapons.hpp | SOCOMD/SOCOMD-MODS-2021 | 834cd5f99831bd456179a1f55f5a91398c29bf57 | [
"MIT"
] | null | null | null | addons/qstore/configs/CfgWeapons.hpp | SOCOMD/SOCOMD-MODS-2021 | 834cd5f99831bd456179a1f55f5a91398c29bf57 | [
"MIT"
] | null | null | null | class CfgWeapons {
class Default;
#include "weapons/ExtrasOptions.hpp"
#include "weapons/GrenadeOptions.hpp"
}; | 24.6 | 41 | 0.715447 | SOCOMD |
7d68c52fc885cd20e77dda22f02e1852a0bfd277 | 34 | hpp | C++ | src/boost_timer_config.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_timer_config.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_timer_config.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/timer/config.hpp>
| 17 | 33 | 0.764706 | miathedev |
7d6a10c32b20c50b10da41e4826aa291fdccfe00 | 1,833 | cpp | C++ | Real-Time Corruptor/BizHawk_RTC/waterbox/pcfx/input/gamepad.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 45 | 2017-07-24T05:31:06.000Z | 2019-03-29T12:23:57.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/pcfx/input/gamepad.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 7 | 2019-01-14T14:46:46.000Z | 2019-01-25T20:57:05.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/pcfx/input/gamepad.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 10 | 2017-07-24T02:11:43.000Z | 2018-12-27T20:49:37.000Z | /******************************************************************************/
/* Mednafen NEC PC-FX Emulation Module */
/******************************************************************************/
/* gamepad.cpp:
** Copyright (C) 2006-2016 Mednafen Team
**
** 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.,
** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "../pcfx.h"
#include "../input.h"
#include "gamepad.h"
namespace MDFN_IEN_PCFX
{
class PCFX_Input_Gamepad : public PCFX_Input_Device
{
public:
PCFX_Input_Gamepad()
{
buttons = 0;
}
virtual ~PCFX_Input_Gamepad() override
{
}
virtual uint32 ReadTransferTime(void) override
{
return 1536;
}
virtual uint32 WriteTransferTime(void) override
{
return 1536;
}
virtual uint32 Read(void) override
{
return buttons | FX_SIG_PAD << 28;
}
virtual void Write(uint32 data) override
{
}
virtual void Power(void) override
{
buttons = 0;
}
virtual void Frame(uint32_t data) override
{
buttons = data;
}
private:
// 5....098 7......0
// m mldru rs654321
uint16 buttons;
};
PCFX_Input_Device *PCFXINPUT_MakeGamepad(void)
{
return new PCFX_Input_Gamepad();
}
}
| 22.62963 | 80 | 0.637752 | redscientistlabs |
7d74521ae7f4718efcf775474f825c935ebbec25 | 5,312 | cpp | C++ | test/encoding/encoding_test.cpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 5 | 2016-04-07T19:49:39.000Z | 2021-08-03T05:24:11.000Z | test/encoding/encoding_test.cpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | null | null | null | test/encoding/encoding_test.cpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 1 | 2020-12-27T11:47:31.000Z | 2020-12-27T11:47:31.000Z | /*
* buffers_test.cpp
*
* Created on: Dec 14, 2015
* Author: zmij
*/
#include <gtest/gtest.h>
#include <wire/encoding/buffers.hpp>
#include <wire/encoding/detail/fixed_size_io.hpp>
#include <vector>
#include <type_traits>
namespace wire {
namespace encoding {
namespace test {
template< typename T >
class buffer_io_test : public ::testing::TestWithParam< T > {
protected:
typedef std::vector<uint8_t> buffer_type;
typedef buffer_type::const_iterator input_iterator;
typedef std::back_insert_iterator<buffer_type> output_iterator;
typedef detail::writer< T > writer_type;
typedef detail::reader< T > reader_type;
buffer_type buffer;
};
#define BUFFER_IO_TEST(the_type, generator) \
typedef buffer_io_test< the_type > the_type##_io_test; \
TEST_P(the_type##_io_test, IOTest) \
{ \
ParamType v = GetParam(); \
ParamType e; \
\
writer_type::output(std::back_inserter(buffer), v); \
std::cerr << "Value " << v << " Buffer size " << buffer.size() << "\n"; \
auto begin = buffer.begin(); \
reader_type::input(begin, buffer.end(), e); \
EXPECT_EQ(v, e); \
EXPECT_EQ(begin, buffer.end()); \
} \
INSTANTIATE_TEST_CASE_P(BufferIO, the_type##_io_test, generator)
//@{
/** @name Varint io */
BUFFER_IO_TEST(uint16_t,
::testing::Values(0, 1, 2, 4, 8, 16, 100, 1024, 4096,
std::numeric_limits<uint16_t>::max())
);
BUFFER_IO_TEST(int16_t,
::testing::Values(-1, -5, -1800, 0, 1, 2, 16, 100, 4096,
std::numeric_limits<int16_t>::max(), std::numeric_limits<int16_t>::min())
);
BUFFER_IO_TEST(uint32_t,
::testing::Values(0, 1, 2, 4, 8, 16, 100, 1024, 4096,
std::numeric_limits<uint32_t>::max()));
BUFFER_IO_TEST(int32_t,
::testing::Values(0, 1, 2, -1, -5, 16, 100, -1800, 4096,
std::numeric_limits<int32_t>::max(), std::numeric_limits<int32_t>::min()));
BUFFER_IO_TEST(uint64_t,
::testing::Values(0, 1, 2, 4, 8, 16, 100, 1024, 4096,
std::numeric_limits<uint32_t>::max(),
std::numeric_limits<uint64_t>::max()));
BUFFER_IO_TEST(int64_t,
::testing::Values(0, 1, 2, -1, -5, 16, 100, -1800, 4096,
std::numeric_limits<int32_t>::max(), std::numeric_limits<int32_t>::min(),
std::numeric_limits<int64_t>::max(), std::numeric_limits<int64_t>::min()));
typedef detail::wire_types wire_types_enum;
BUFFER_IO_TEST(wire_types_enum,
::testing::Values(
detail::SCALAR_VARINT, detail::SCALAR_FIXED)
);
enum class test_enumeration {
val0, val2 = 2, val3
};
std::ostream&
operator << (std::ostream& os, test_enumeration val)
{
std::ostream::sentry s(os);
if (s) {
os << static_cast<std::underlying_type<test_enumeration>::type>(val);
}
return os;
}
BUFFER_IO_TEST(test_enumeration,
::testing::Values(
test_enumeration::val0, test_enumeration::val2, test_enumeration::val3)
);
//@}
//@{
/** @name Fixed size values */
BUFFER_IO_TEST(bool, ::testing::Values(true, false));
BUFFER_IO_TEST(char, ::testing::Values(0, '0', 'a', 'B', '=', '*'));
typedef unsigned char uchar;
BUFFER_IO_TEST(uchar, ::testing::Values(0, '0', 'a', 'B', '=', '*'));
BUFFER_IO_TEST(uint8_t, ::testing::Values(0, '0', 'a', 'B', '=', '*'));
BUFFER_IO_TEST(int8_t, ::testing::Values(0, '0', 'a', 'B', '=', '*'));
BUFFER_IO_TEST(float, ::testing::Values(0, 1, -3.14,
std::numeric_limits<float>::min(), std::numeric_limits<float>::max(),
std::numeric_limits<float>::epsilon(), std::numeric_limits<float>::lowest()));
BUFFER_IO_TEST(double, ::testing::Values(0, 1, -3.14,
std::numeric_limits<float>::min(), std::numeric_limits<float>::max(),
std::numeric_limits<float>::epsilon(), std::numeric_limits<float>::lowest(),
std::numeric_limits<double>::min(), std::numeric_limits<double>::max(),
std::numeric_limits<double>::epsilon(), std::numeric_limits<double>::lowest()));
typedef long double long_double;
BUFFER_IO_TEST(long_double, ::testing::Values(0, 1, -3.14,
std::numeric_limits<float>::min(), std::numeric_limits<float>::max(),
std::numeric_limits<float>::epsilon(), std::numeric_limits<float>::lowest(),
std::numeric_limits<double>::min(), std::numeric_limits<double>::max(),
std::numeric_limits<double>::epsilon(), std::numeric_limits<double>::lowest(),
std::numeric_limits<long double>::min(), std::numeric_limits<long double>::max(),
std::numeric_limits<long double>::epsilon(), std::numeric_limits<long double>::lowest()));
BUFFER_IO_TEST(uint32_fixed_t,
::testing::Values(0, 1, 2, 4, 8, 16, 100, 1024, 4096,
std::numeric_limits<uint32_t>::max()));
BUFFER_IO_TEST(int32_fixed_t,
::testing::Values(0, 1, 2, -1, -5, 16, 100, -1800, 4096,
std::numeric_limits<int32_t>::max(), std::numeric_limits<int32_t>::min()));
BUFFER_IO_TEST(uint64_fixed_t,
::testing::Values(0, 1, 2, 4, 8, 16, 100, 1024, 4096,
std::numeric_limits<uint32_t>::max(),
std::numeric_limits<uint64_t>::max()));
BUFFER_IO_TEST(int64_fixed_t,
::testing::Values(0, 1, 2, -1, -5, 16, 100, -1800, 4096,
std::numeric_limits<int32_t>::max(), std::numeric_limits<int32_t>::min(),
std::numeric_limits<int64_t>::max(), std::numeric_limits<int64_t>::min()));
//@}
//@{
/** @name string io */
typedef std::string std_string;
BUFFER_IO_TEST(std_string,
::testing::Values(
"", " ", "abcdABCD", "+-!@#%^&", "абвгАБВГ",
"こんにちはテスト", "メッセージ", "안녕하세요 테스트", "你好测试",
"Waſſerschloſʒ", "Wasserschloß"
)
);
//@}
} // namespace test
} // namespace encoding
} // namespace wire
| 32.193939 | 92 | 0.677711 | zmij |
7d7f3382877a0bc88ce686c957f828082adf235f | 4,088 | cpp | C++ | engine/src/core/window.cpp | JackiBackiBoy/ox3d | a96e41b8a6886b0e8fa811e500718b6e457b162d | [
"Apache-2.0"
] | 1 | 2022-02-24T21:19:25.000Z | 2022-02-24T21:19:25.000Z | engine/src/core/window.cpp | JackiBackiBoy/ox3d | a96e41b8a6886b0e8fa811e500718b6e457b162d | [
"Apache-2.0"
] | null | null | null | engine/src/core/window.cpp | JackiBackiBoy/ox3d | a96e41b8a6886b0e8fa811e500718b6e457b162d | [
"Apache-2.0"
] | null | null | null | #include "window.h"
#include <iostream>
#include <vector>
#include "rendering/model.h"
#include "input/keyboard.h"
#include "input/mouse.h"
#include "ui/uiFont.h"
using namespace ox;
Window::Window(const uint32_t& width, const uint32_t& height, const std::string& title)
: m_Width(width), m_Height(height), m_Title(title) {
createWindow();
m_GraphicsManager = new GraphicsManager();
}
void Window::createWindow() {
glfwInit(); // initialize glfw
// set GLFW options
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
m_RawWindow = glfwCreateWindow(m_Width, m_Height, m_Title.c_str(), nullptr, nullptr);
glfwSetWindowUserPointer(m_RawWindow, &m_GraphicsManager);
glfwSetFramebufferSizeCallback(m_RawWindow, m_GraphicsManager->onResize);
glfwSetInputMode(m_RawWindow, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
glfwSwapInterval(1);
glfwSetCursorPosCallback(m_RawWindow, Mouse::onMouseMove);
glfwSetScrollCallback(m_RawWindow, Mouse::onMouseScroll);
}
void Window::onStart() {
// Shaders
m_Shader.loadVertexShader("assets/shaders/lightingShader.vert.spv");
m_Shader.loadFragmentShader("assets/shaders/lightingShader.frag.spv");
m_GraphicsManager->addShader(&m_Shader);
// Models
Model waterbottle;
waterbottle.loadFromFile("assets/models/waterbottle/WaterBottle.gltf");
m_GraphicsManager->submitModel(waterbottle);
m_GraphicsManager->m_Vertices = waterbottle.getVertices();
m_GraphicsManager->m_Indices = waterbottle.getIndices();
// Camera
m_Camera = Camera();
m_Camera.setPosition({ 0.0f, 0.0f, 2.0f });
m_Camera.setYaw(90.0f);
m_Camera.setFOV(60.0f);
// User Interface
UIFont font;
font.loadFromFile("assets/fonts/segoeui.ttf", 12);
}
void Window::onUpdate(const float& deltaTime) {
// ------ Rotation with mouse ------
glm::vec2 mousePos = Mouse::getPosition();
// Fix for preventing violent camera rotation before
// or during the initial movement with the mouse
if (!Mouse::hasMoved || Mouse::firstMove) {
lastMousePos = mousePos;
}
glm::vec2 deltaMousePos = mousePos - lastMousePos;
m_Camera.setYaw(m_Camera.getYaw() + 0.05f * deltaMousePos.x);
m_Camera.setPitch(m_Camera.getPitch() + 0.05f * deltaMousePos.y);
glm::vec3 camPos = m_Camera.getPosition();
glm::vec3 camRight = m_Camera.getRight();
glm::vec3 camUp = m_Camera.getUp();
glm::vec3 camForward = m_Camera.getForward();
// ------ Mouse scrolling ------
float scrollDir = Mouse::getVerticalScroll();
if (scrollDir != 0.0f) {
m_Camera.setFOV(m_Camera.getFOV() - scrollDir);
}
// ------ Keyboard movement ------
// Move forwards
if (Keyboard::isKeyDown(KeyCode::W)) {
m_Camera.setPosition(camPos + camForward * deltaTime * 3.0f);
}
// Move horizontally to the left
if (Keyboard::isKeyDown(KeyCode::A)) {
m_Camera.setPosition(camPos - camRight * deltaTime * 3.0f);
}
// Move backwards
if (Keyboard::isKeyDown(KeyCode::S)) {
m_Camera.setPosition(camPos - camForward * deltaTime * 3.0f);
}
// Move horizontally to the right
if (Keyboard::isKeyDown(KeyCode::D)) {
m_Camera.setPosition(camPos + camRight * deltaTime * 3.0f);
}
// Move upwards
if (Keyboard::isKeyDown(KeyCode::Space)) {
m_Camera.setPosition({ camPos.x, camPos.y + deltaTime * 3.0f, camPos.z });
}
// Move downwards
if (Keyboard::isKeyDown(KeyCode::LeftControl)) {
m_Camera.setPosition({ camPos.x, camPos.y - deltaTime * 3.0f, camPos.z });
}
m_Camera.update();
lastMousePos = mousePos;
}
void Window::onRender() {
}
void Window::run() {
Window::onStart();
onStart();
m_GraphicsManager->loadVulkan();
// Rendering loop
float deltaTime = 0.0f;
while (!glfwWindowShouldClose(m_RawWindow)) {
float t0 = static_cast<float>(glfwGetTime());
glfwPollEvents();
m_GraphicsManager->renderFrame();
Window::onUpdate(deltaTime);
onUpdate(deltaTime);
deltaTime = static_cast<float>(glfwGetTime()) - t0;
}
// onExit
m_GraphicsManager->destroyVulkan();
glfwDestroyWindow(m_RawWindow);
glfwTerminate();
}
Window* Window::currentWindow = nullptr;
| 27.436242 | 87 | 0.705724 | JackiBackiBoy |
7d817da41723ebe764e2e9a007dd8fc31afdceae | 834 | hpp | C++ | matrix/linear-equation.hpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 69 | 2020-11-06T05:21:42.000Z | 2022-03-29T03:38:35.000Z | matrix/linear-equation.hpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 21 | 2020-07-25T04:47:12.000Z | 2022-02-01T14:39:29.000Z | matrix/linear-equation.hpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 9 | 2020-11-06T11:55:10.000Z | 2022-03-20T04:45:31.000Z | #pragma once
#include "gauss-elimination.hpp"
template <typename mint>
vector<vector<mint>> LinearEquation(vector<vector<mint>> a, vector<mint> b) {
int H = a.size(), W = a[0].size();
for (int i = 0; i < H; i++) a[i].push_back(b[i]);
auto p = GaussElimination(a, W, true);
int rank = p.first;
for (int i = rank; i < H; ++i) {
if (a[i][W] != 0) return vector<vector<mint>>{};
}
vector<vector<mint>> res(1, vector<mint>(W));
vector<int> pivot(W, -1);
for (int i = 0, j = 0; i < rank; ++i) {
while (a[i][j] == 0) ++j;
res[0][j] = a[i][W], pivot[j] = i;
}
for (int j = 0; j < W; ++j) {
if (pivot[j] == -1) {
vector<mint> x(W);
x[j] = 1;
for (int k = 0; k < j; ++k) {
if (pivot[k] != -1) x[k] = -a[pivot[k]][j];
}
res.push_back(x);
}
}
return res;
}
| 23.828571 | 77 | 0.492806 | NachiaVivias |
7d8289ffc393b5fbc3922f08f321372494bf5cd6 | 1,808 | cpp | C++ | breath/meta/test/is_2s_complement_test.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/meta/test/is_2s_complement_test.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/meta/test/is_2s_complement_test.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | // ===========================================================================
// This is an open source non-commercial project.
// Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java:
// http://www.viva64.com
// ===========================================================================
// Copyright 2020 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3-Clause>.)
// ___________________________________________________________________________
#include "breath/meta/is_2s_complement.hpp"
#include "breath/testing/testing.hpp"
int test_is_2s_complement() ;
using breath::meta::is_2s_complement ;
namespace {
// This is actually a compile-time test. But we turn it into a
// runtime test, at least for now, so that we get a report.
// ---------------------------------------------------------------------------
void
do_test()
{
using breath::meta::is_2s_complement ;
static_assert( ! is_2s_complement< bool >(), "" ) ;
static_assert( is_2s_complement< signed char >(), "" ) ;
static_assert( ! is_2s_complement< unsigned char >(), "" ) ;
static_assert( is_2s_complement< int >(), "" ) ;
static_assert( ! is_2s_complement< unsigned int >(), "" ) ;
}
}
int
test_is_2s_complement()
{
using namespace breath ;
return test_runner::instance().run(
"is_2s_complement()",
{ do_test } ) ;
}
// Local Variables:
// mode: c++
// indent-tabs-mode: nil
// c-basic-offset: 4
// End:
// vim: set ft=cpp et sts=4 sw=4:
| 31.719298 | 78 | 0.522677 | erez-o |
7d82d7de9c6fd605a2ded04360c69ac156858fee | 6,507 | tcc | C++ | flens/blas/closures/level2/mvswitch.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 98 | 2015-01-26T20:31:37.000Z | 2021-09-09T15:51:37.000Z | flens/blas/closures/level2/mvswitch.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 16 | 2015-01-21T07:43:45.000Z | 2021-12-06T12:08:36.000Z | flens/blas/closures/level2/mvswitch.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 31 | 2015-01-05T08:06:45.000Z | 2022-01-26T20:12:00.000Z | /*
* Copyright (c) 2012, Michael Lehn
*
* 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 FLENS development group 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
* OWNER 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.
*/
#ifndef FLENS_BLAS_CLOSURES_LEVEL2_MVSWITCH_TCC
#define FLENS_BLAS_CLOSURES_LEVEL2_MVSWITCH_TCC 1
#include <flens/auxiliary/auxiliary.h>
#include <flens/blas/closures/closures.h>
#include <flens/blas/level1/level1.h>
#include <flens/blas/level2/level2.h>
#include <flens/blas/level3/level3.h>
#include <flens/typedefs.h>
#ifdef FLENS_DEBUG_CLOSURES
# include <flens/blas/blaslogon.h>
#else
# include <flens/blas/blaslogoff.h>
#endif
namespace flens { namespace blas {
//
// This switch evaluates closures of the form
//
// y = beta*y + A*x
//
// If x is a closure then it gets evaluated and a temporary gets created to
// store the result. For matrix A we distinguish between three cases:
// case 1: A is no closure
// case 2: A is a scaling closure (i.e. scale*A)
// case 3: A is some other closure
//
// Entry point for mvSwitch
//
template <typename ALPHA, typename MA, typename VX, typename BETA, typename VY>
typename RestrictTo<IsSame<MA, typename MA::Impl>::value &&
IsSame<VX, typename VX::Impl>::value &&
IsSame<VY, typename VY::Impl>::value,
void>::Type
mvSwitch(Transpose trans, const ALPHA &alpha, const MA &A, const VX &x,
const BETA &beta, VY &y)
{
ASSERT(alpha==ALPHA(1) || alpha==ALPHA(-1));
//
// If A is a closure then prune arbitrary many OpTrans/OpConj
//
typedef typename PruneConjTrans<MA>::Remainder RMA;
trans = Transpose(trans^PruneConjTrans<MA>::trans);
const RMA &A_ = PruneConjTrans<MA>::remainder(A);
//
// If x is a closure it gets evaluated. In this case a temporary gets
// created. Otherwise we only keep a reference
//
FLENS_BLASLOG_TMP_TRON;
const typename Result<VX>::Type &x_ = x;
FLENS_BLASLOG_TMP_TROFF;
//
// Call mv implementation
//
mvCase(trans, alpha, A_, x_, beta, y);
//
// If a temporary was created and registered before we now unregister it
//
# ifdef FLENS_DEBUG_CLOSURES
if (!IsSame<VX, typename Result<VX>::Type>::value) {
FLENS_BLASLOG_TMP_REMOVE(x_, x);
}
# else
const bool check = IsSame<VX, typename Result<VX>::Type>::value;
if (!check) {
std::cerr << "ERROR: Temporary required." << std::endl;
}
ASSERT(check);
# endif
}
//
// case 1: A is no closure
//
template <typename ALPHA, typename MA, typename VX, typename BETA, typename VY>
typename RestrictTo<!IsClosure<MA>::value,
void>::Type
mvCase(Transpose trans, const ALPHA &alpha, const MA &A, const VX &x,
const BETA &beta, VY &y)
{
mv(trans, alpha, A, x, beta, y);
}
//
// case 2: A is closure of type scale*A
//
template <typename ALPHA, typename T, typename MA, typename VX, typename BETA,
typename VY>
void
mvCase(Transpose trans, const ALPHA &alpha,
const MatrixClosure<OpMult, ScalarValue<T>, MA> &scale_A,
const VX &x, const BETA &beta, VY &y)
{
//
// If A is a closure then prune arbitrary many OpTrans/OpConj
//
typedef typename PruneConjTrans<MA>::Remainder MA_;
typedef typename Result<MA_>::Type RMA;
Transpose trans_ = Transpose(trans^PruneConjTrans<MA>::trans);
//
// If the remaining A is a closure it gets evaluated. In this case
// a temporary gets created. Otherwise we only keep a reference
//
FLENS_BLASLOG_TMP_TRON;
const MA_ &A_ = PruneConjTrans<MA>::remainder(scale_A.right());
const RMA &A = A_;
FLENS_BLASLOG_TMP_TROFF;
mv(trans_, alpha*scale_A.left().value(), A, x, beta, y);
//
// If a temporary was created and registered before we now unregister it
//
# ifdef FLENS_DEBUG_CLOSURES
if (!IsSame<MA_, RMA>::value) {
FLENS_BLASLOG_TMP_REMOVE(A, A_);
}
# else
const bool check = IsSame<MA_, RMA>::value;
if (!check) {
std::cerr << "ERROR: Temporary required." << std::endl;
}
ASSERT(check);
# endif
}
//
// case 3: A is some other closure
//
template <typename ALPHA, typename Op, typename L, typename R, typename VX,
typename BETA, typename VY>
void
mvCase(Transpose trans, const ALPHA &alpha, const MatrixClosure<Op, L, R> &A,
const VX &x, const BETA &beta, VY &y)
{
typedef MatrixClosure<Op, L, R> MC;
//
// Create (most certainly) temporary for the result of A
//
FLENS_BLASLOG_TMP_TRON;
typedef typename Result<MC>::Type MA;
const MA &A_ = A;
FLENS_BLASLOG_TMP_TROFF;
mv(trans, alpha, A_, x, beta, y);
//
// If a temporary was created and registered before we now unregister it
//
# ifdef FLENS_DEBUG_CLOSURES
if (!IsSame<MC, MA>::value) {
FLENS_BLASLOG_TMP_REMOVE(A_, A);
}
# else
const bool check = IsSame<MC, MA>::value;
if (!check) {
std::cerr << "ERROR: Temporary required." << std::endl;
}
ASSERT(check);
# endif
}
} } // namespace blas, flens
#endif // FLENS_BLAS_CLOSURES_LEVEL2_MVSWITCH_TCC
| 31.897059 | 79 | 0.681113 | stip |
7d8416cc564537ada66cc5cd7a9ffb15664d331e | 1,117 | cpp | C++ | 108.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | 1 | 2018-03-19T05:18:49.000Z | 2018-03-19T05:18:49.000Z | 108.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | null | null | null | 108.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | null | null | null | //2012/03/22
//108.cpp
//Run time: 0.008
#include <stdio.h>
#define INF -2147483647
int sum[105][105];
int N;
int Kadane(int *array){
static int i, max, sum;
max = INF;
for(sum=i=0; i<N; ++i){
sum += array[i];
if(sum < 0) sum = 0;
else if(sum > max) max = sum;
}
return max;
}
int KadaneM(int *array, int *up){
static int i, max, sum;
max = INF;
for(sum=i=0; i<N; ++i){
sum += (array[i] - up[i]);
if(sum < 0) sum = 0;
else if(sum > max) max = sum;
}
return max;
}
int main(){
#ifndef ONLINE_JUDGE
freopen("108.in", "r", stdin);
freopen("108.out", "w", stdout);
#endif
int i, j, temp, MAX;
int dp[105];
while(scanf("%d", &N) == 1){
for(j=0; j<N; ++j)
scanf("%d", &sum[0][j]);
MAX = Kadane(sum[0]);
for(i=1; i<N; ++i){
for(j=0; j<N; ++j){
scanf("%d", &temp);
sum[i][j] = temp + sum[i-1][j];
}
temp = Kadane(sum[i]);
if(temp > MAX) MAX = temp;
for(j=0; j<i; ++j){
temp = KadaneM(sum[i], sum[j]);
if(temp > MAX) MAX = temp;
}
}
printf("%d\n", MAX);
}
return 0;
}
| 16.426471 | 36 | 0.482543 | abraxaslee |
7d88a0fd2e1c42b149dbca54a32cda90d253b8ef | 6,971 | hpp | C++ | sources/SoundSystem/spSoundEffect.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 14 | 2015-08-16T21:05:20.000Z | 2019-08-21T17:22:01.000Z | sources/SoundSystem/spSoundEffect.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | null | null | null | sources/SoundSystem/spSoundEffect.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 3 | 2020-02-15T09:17:41.000Z | 2020-05-21T14:10:40.000Z | /*
* Sound effect interface header
*
* This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns)
* See "SoftPixelEngine.hpp" for license information.
*/
#ifndef __SP_AUDIO_SOUNDEFFECT_H__
#define __SP_AUDIO_SOUNDEFFECT_H__
#include "Base/spStandard.hpp"
namespace sp
{
namespace audio
{
//! Sound effect types.
enum ESoundEffectTypes
{
SOUNDEFFECT_REVERBERATION = 0, //!< Reverberation sound effect. Used for sound reflections.
SOUNDEFFECT_CHORUS, //!< Not yet supported.
SOUNDEFFECT_DISTORTION, //!< Not yet supported.
SOUNDEFFECT_ECHO, //!< Not yet supported.
SOUNDEFFECT_FLANGER, //!< Not yet supported.
SOUNDEFFECT_FREQUENCY_SHIFTER, //!< Not yet supported.
SOUNDEFFECT_VOCAL_MORPHER, //!< Not yet supported.
SOUNDEFFECT_PITCH_SHIFTER, //!< Not yet supported.
SOUNDEFFECT_RING_MODULATOR, //!< Not yet supported.
SOUNDEFFECT_AUTOWAH, //!< Not yet supported.
SOUNDEFFECT_COMPRESSOR, //!< Not yet supported.
SOUNDEFFECT_EQUALIZER, //!< Not yet supported.
};
/**
Sound effect presets.
\note All these presets have been taken from the "EFX-Util.h" file which is part of the "OpenAL EFX" extension.
*/
enum ESoundEffectPresets
{
/* Reverberation default presets: */
SFXPRESET_REVERB_GENERIC = 0,
SFXPRESET_REVERB_PADDEDCELL,
SFXPRESET_REVERB_ROOM,
SFXPRESET_REVERB_BATHROOM,
SFXPRESET_REVERB_LIVINGROOM,
SFXPRESET_REVERB_STONEROOM,
SFXPRESET_REVERB_AUDITORIUM,
SFXPRESET_REVERB_CONCERTHALL,
SFXPRESET_REVERB_CAVE,
SFXPRESET_REVERB_ARENA,
SFXPRESET_REVERB_HANGAR,
SFXPRESET_REVERB_CARPETTEDHALLWAY,
SFXPRESET_REVERB_HALLWAY,
SFXPRESET_REVERB_STONECORRIDOR,
SFXPRESET_REVERB_ALLEY,
SFXPRESET_REVERB_FOREST,
SFXPRESET_REVERB_CITY,
SFXPRESET_REVERB_MOUNTAINS,
SFXPRESET_REVERB_QUARRY,
SFXPRESET_REVERB_PLAIN,
SFXPRESET_REVERB_PARKINGLOT,
SFXPRESET_REVERB_SEWERPIPE,
SFXPRESET_REVERB_UNDERWATER,
SFXPRESET_REVERB_DRUGGED,
SFXPRESET_REVERB_DIZZY,
SFXPRESET_REVERB_PSYCHOTIC,
/* Reverberation castle presets: */
SFXPRESET_REVERB_CASTLE_SMALLROOM,
SFXPRESET_REVERB_CASTLE_SHORTPASSAGE,
SFXPRESET_REVERB_CASTLE_MEDIUMROOM,
SFXPRESET_REVERB_CASTLE_LONGPASSAGE,
SFXPRESET_REVERB_CASTLE_LARGEROOM,
SFXPRESET_REVERB_CASTLE_HALL,
SFXPRESET_REVERB_CASTLE_CUPBOARD,
SFXPRESET_REVERB_CASTLE_COURTYARD,
SFXPRESET_REVERB_CASTLE_ALCOVE,
/* Reverberation factory presets: */
SFXPRESET_REVERB_FACTORY_ALCOVE,
SFXPRESET_REVERB_FACTORY_SHORTPASSAGE,
SFXPRESET_REVERB_FACTORY_MEDIUMROOM,
SFXPRESET_REVERB_FACTORY_LONGPASSAGE,
SFXPRESET_REVERB_FACTORY_LARGEROOM,
SFXPRESET_REVERB_FACTORY_HALL,
SFXPRESET_REVERB_FACTORY_CUPBOARD,
SFXPRESET_REVERB_FACTORY_COURTYARD,
SFXPRESET_REVERB_FACTORY_SMALLROOM,
/* Reverberation icepalace presets: */
SFXPRESET_REVERB_ICEPALACE_ALCOVE,
SFXPRESET_REVERB_ICEPALACE_SHORTPASSAGE,
SFXPRESET_REVERB_ICEPALACE_MEDIUMROOM,
SFXPRESET_REVERB_ICEPALACE_LONGPASSAGE,
SFXPRESET_REVERB_ICEPALACE_LARGEROOM,
SFXPRESET_REVERB_ICEPALACE_HALL,
SFXPRESET_REVERB_ICEPALACE_CUPBOARD,
SFXPRESET_REVERB_ICEPALACE_COURTYARD,
SFXPRESET_REVERB_ICEPALACE_SMALLROOM,
/* Reverberation spacestation presets: */
SFXPRESET_REVERB_SPACESTATION_ALCOVE,
SFXPRESET_REVERB_SPACESTATION_MEDIUMROOM,
SFXPRESET_REVERB_SPACESTATION_SHORTPASSAGE,
SFXPRESET_REVERB_SPACESTATION_LONGPASSAGE,
SFXPRESET_REVERB_SPACESTATION_LARGEROOM,
SFXPRESET_REVERB_SPACESTATION_HALL,
SFXPRESET_REVERB_SPACESTATION_CUPBOARD,
SFXPRESET_REVERB_SPACESTATION_SMALLROOM,
/* Reverberation wooden presets: */
SFXPRESET_REVERB_WOODEN_ALCOVE,
SFXPRESET_REVERB_WOODEN_SHORTPASSAGE,
SFXPRESET_REVERB_WOODEN_MEDIUMROOM,
SFXPRESET_REVERB_WOODEN_LONGPASSAGE,
SFXPRESET_REVERB_WOODEN_LARGEROOM,
SFXPRESET_REVERB_WOODEN_HALL,
SFXPRESET_REVERB_WOODEN_CUPBOARD,
SFXPRESET_REVERB_WOODEN_SMALLROOM,
SFXPRESET_REVERB_WOODEN_COURTYARD,
/* Reverberation sport presets: */
SFXPRESET_REVERB_SPORT_EMPTYSTADIUM,
SFXPRESET_REVERB_SPORT_SQUASHCOURT,
SFXPRESET_REVERB_SPORT_SMALLSWIMMINGPOOL,
SFXPRESET_REVERB_SPORT_LARGESWIMMINGPOOL,
SFXPRESET_REVERB_SPORT_GYMNASIUM,
SFXPRESET_REVERB_SPORT_FULLSTADIUM,
SFXPRESET_REVERB_SPORT_STADIUMTANNOY,
/* Reverberation prefab presets: */
SFXPRESET_REVERB_PREFAB_WORKSHOP,
SFXPRESET_REVERB_PREFAB_SCHOOLROOM,
SFXPRESET_REVERB_PREFAB_PRACTISEROOM,
SFXPRESET_REVERB_PREFAB_OUTHOUSE,
SFXPRESET_REVERB_PREFAB_CARAVAN,
/* Reverberation dome- and pipe presets: */
SFXPRESET_REVERB_DOME_TOMB,
SFXPRESET_REVERB_PIPE_SMALL,
SFXPRESET_REVERB_DOME_SAINTPAULS,
SFXPRESET_REVERB_PIPE_LONGTHIN,
SFXPRESET_REVERB_PIPE_LARGE,
SFXPRESET_REVERB_PIPE_RESONANT,
/* Reverberation outdoor presets: */
SFXPRESET_REVERB_OUTDOORS_BACKYARD,
SFXPRESET_REVERB_OUTDOORS_ROLLINGPLAINS,
SFXPRESET_REVERB_OUTDOORS_DEEPCANYON,
SFXPRESET_REVERB_OUTDOORS_CREEK,
SFXPRESET_REVERB_OUTDOORS_VALLEY,
/* Reverberation mood presets: */
SFXPRESET_REVERB_MOOD_HEAVEN,
SFXPRESET_REVERB_MOOD_HELL,
SFXPRESET_REVERB_MOOD_MEMORY,
/* Reverberation driving presets: */
SFXPRESET_REVERB_DRIVING_COMMENTATOR,
SFXPRESET_REVERB_DRIVING_PITGARAGE,
SFXPRESET_REVERB_DRIVING_INCAR_RACER,
SFXPRESET_REVERB_DRIVING_INCAR_SPORTS,
SFXPRESET_REVERB_DRIVING_INCAR_LUXURY,
SFXPRESET_REVERB_DRIVING_FULLGRANDSTAND,
SFXPRESET_REVERB_DRIVING_EMPTYGRANDSTAND,
SFXPRESET_REVERB_DRIVING_TUNNEL,
/* Reverberation city presets: */
SFXPRESET_REVERB_CITY_STREETS,
SFXPRESET_REVERB_CITY_SUBWAY,
SFXPRESET_REVERB_CITY_MUSEUM,
SFXPRESET_REVERB_CITY_LIBRARY,
SFXPRESET_REVERB_CITY_UNDERPASS,
SFXPRESET_REVERB_CITY_ABANDONED,
/* Reverberation other presets: */
SFXPRESET_REVERB_DUSTYROOM,
SFXPRESET_REVERB_CHAPEL,
SFXPRESET_REVERB_SMALLWATERROOM,
};
/**
Sound effect base class.
\note Currently only supported for OpenAL.
\ingroup group_audio
*/
class SP_EXPORT SoundEffect
{
public:
SoundEffect();
virtual ~SoundEffect();
/* Functions */
virtual void setType(const ESoundEffectTypes Type);
virtual void setupEffectPreset(const ESoundEffectPresets Preset);
/* Inline functions */
inline ESoundEffectTypes getType() const
{
return Type_;
}
protected:
/* Members */
ESoundEffectTypes Type_;
};
} // /namespace audio
} // /namespace sp
#endif
// ================================================================================
| 30.047414 | 111 | 0.744943 | rontrek |
7d88fb0477e803fc74bdf7a279d3d388c4238830 | 2,097 | cc | C++ | code/qttoolkit/qtaddons/attributecontrollerwidget/code/stringcontroller.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/qttoolkit/qtaddons/attributecontrollerwidget/code/stringcontroller.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/qttoolkit/qtaddons/attributecontrollerwidget/code/stringcontroller.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// stringcontroller.cc
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "stringcontroller.h"
#include "game/entity.h"
#include "db/valuetable.h"
#include "ui_stringcontroller.h"
#include "basegamefeature/basegameprotocol.h"
using namespace Util;
namespace QtAttributeControllerAddon
{
//------------------------------------------------------------------------------
/**
*/
StringController::StringController(QWidget* parent, const Ptr<Game::Entity>& _entity, const Attr::AttrId& _attrId, Util::Variant::Type _attrType):
BaseAttributeController(parent, _entity, _attrId, _attrType)
{
// setup ui
this->ui = new Ui::StringController();
this->ui->setupUi(this);
this->ui->lineEdit->installEventFilter(this);
Ptr<BaseGameFeature::GetAttribute> msg = BaseGameFeature::GetAttribute::Create();
msg->SetAttributeId(this->attributeId);
_entity->SendSync(msg.cast<Messaging::Message>());
this->ui->lineEdit->setText(msg->GetAttr().GetString().AsCharPtr());
bool connected = false;
connected = connect(this->ui->lineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(OnTextChanged(const QString &)));
n_assert(connected);
}
//------------------------------------------------------------------------------
/**
*/
StringController::~StringController()
{
this->entity = 0;
}
//------------------------------------------------------------------------------
/**
*/
void
StringController::OnTextChanged(const QString &string)
{
BaseAttributeController::OnValueChanged();
}
//------------------------------------------------------------------------------
/**
*/
Util::Variant
StringController::GetValue() const
{
Util::String value = this->ui->lineEdit->text().toUtf8().constData();
return Util::Variant(value);
}
//------------------------------------------------------------------------------
/**
*/
void
StringController::Lock()
{
this->ui->lineEdit->setEnabled(false);
}
} | 27.592105 | 146 | 0.533619 | gscept |
7d8ae07cf9e3aa1686166fff377d61f1fc10dfb5 | 5,000 | cpp | C++ | src/detail/LuaPbIntfImpl.cpp | zhuyadong/LuaPbIntf | 94b99ffececb455cc6483cfe897f3601d7bcf479 | [
"MIT"
] | null | null | null | src/detail/LuaPbIntfImpl.cpp | zhuyadong/LuaPbIntf | 94b99ffececb455cc6483cfe897f3601d7bcf479 | [
"MIT"
] | null | null | null | src/detail/LuaPbIntfImpl.cpp | zhuyadong/LuaPbIntf | 94b99ffececb455cc6483cfe897f3601d7bcf479 | [
"MIT"
] | 1 | 2018-09-10T10:26:38.000Z | 2018-09-10T10:26:38.000Z | #include "LuaPbIntfImpl.h"
#include "MessageSetter.h"
#include "MsgToTbl.h"
// for LuaException
#include <LuaIntf/LuaIntf.h>
#include <LuaIntf/LuaState.h>
#include <google/protobuf/compiler/importer.h> // for DiskSourceTree
#include <google/protobuf/descriptor.h> // for Descriptor
#include <google/protobuf/dynamic_message.h> // for GetPrototype()
#include <google/protobuf/message.h> // for Message
#include <sstream> // for ostringstream
using namespace LuaIntf;
using namespace googlex::protobuf;
// See protobuf CommandLineInterface::Run().
class ErrorCollector : public compiler::MultiFileErrorCollector
{
public:
void Clear() { m_sError.clear(); }
const std::string& GetError() const { return m_sError; }
// Only record the last error.
void AddError(const std::string & filename,
int line, int column, const std::string & message) override
{
std::ostringstream oss;
oss << filename << ":" << line << ": " << message;
m_sError = oss.str();
}
private:
std::string m_sError;
};
LuaPbIntfImpl::LuaPbIntfImpl()
: m_pDiskSourceTree(new DiskSourceTree), // unique_ptr
m_pErrorCollector(new ErrorCollector), // unique_ptr
m_pImporter(new Importer(m_pDiskSourceTree.get(), // unique_ptr
m_pErrorCollector.get())),
m_pMsgFactory(new MsgFactory) // unique_ptr
{
// The current dir is the default proto path.
AddProtoPath("");
}
LuaPbIntfImpl::~LuaPbIntfImpl()
{
}
// e.g. AddProtoPath("proto")
// e.g. AddProtoPath("d:/proto")
void LuaPbIntfImpl::AddProtoPath(const string& sProtoPath)
{
MapPath("", sProtoPath);
}
void LuaPbIntfImpl::MapPath(
const string& sVirtualPath,
const string& sDiskPath)
{
m_pDiskSourceTree->MapPath(sVirtualPath, sDiskPath);
}
// e.g. ImportProtoFile("bar/foo.proto")
void LuaPbIntfImpl::ImportProtoFile(const string& sProtoFile)
{
m_pErrorCollector->Clear();
const FileDescriptor* pDesc = m_pImporter->Import(sProtoFile);
if (pDesc) return;
throw LuaException("Failed to import: " + m_pErrorCollector->GetError());
}
MessageSptr LuaPbIntfImpl::MakeSharedMessage(const string& sTypeName) const
{
const Descriptor* pDesc = m_pImporter->pool()->
FindMessageTypeByName(sTypeName);
if (!pDesc) throw LuaException("No message type: " + sTypeName);
const Message* pProtoType = m_pMsgFactory->GetPrototype(pDesc);
if (!pProtoType) throw LuaException("No prototype for " + sTypeName);
return MessageSptr(pProtoType->New());
}
std::string LuaPbIntfImpl::Encode(const string& sMsgTypeName,
const LuaRef& luaTable) const
{
luaTable.checkTable(); // Bad argument #-1 to 'encode' (table expected, got number)
MessageSptr pMsg = MakeSharedMessage(sMsgTypeName);
assert(pMsg);
MessageSetter(*pMsg).SetMsg(luaTable);
return pMsg->SerializeAsString();
} // Encode()
LuaRef LuaPbIntfImpl::Decode(lua_State* L, const string& sMsgTypeName,
const string& sData) const
{
assert(L);
MessageSptr pMsg = MakeSharedMessage(sMsgTypeName);
assert(pMsg);
if (pMsg->ParseFromString(sData))
return MsgToTbl(*L, *pMsg).ToTbl();
return LuaRef(L, nullptr);
}
LuaRef LuaPbIntfImpl::GetServiceDescriptorTbl(lua_State* L,
const string& sServiceName) const
{
assert(L);
const googlex::protobuf::ServiceDescriptor* pDesc
= GetServiceDescriptor(sServiceName);
if (!pDesc)
throw LuaIntf::LuaException("No such service: " + sServiceName);
googlex::protobuf::ServiceDescriptorProto msg;
pDesc->CopyTo(&msg);
return MsgToTbl(*L, msg).ToTbl();
}
std::string LuaPbIntfImpl::GetRpcInputName(const string& sServiceName,
const string& sMethodName) const
{
return FindRpcMethod(sServiceName, sMethodName).input_type()->full_name();
}
std::string LuaPbIntfImpl::GetRpcOutputName(const string& sServiceName,
const string& sMethodName) const
{
return FindRpcMethod(sServiceName, sMethodName).output_type()->full_name();
}
bool LuaPbIntfImpl::IsRpcClientStreaming(const string& sServiceName,
const string& sMethodName) const
{
return FindRpcMethod(sServiceName, sMethodName).client_streaming();
}
bool LuaPbIntfImpl::IsRpcServerStreaming(const string& sServiceName,
const string& sMethodName) const
{
return FindRpcMethod(sServiceName, sMethodName).server_streaming();
}
const googlex::protobuf::ServiceDescriptor*
LuaPbIntfImpl::GetServiceDescriptor(const string& sServiceName) const
{
return m_pImporter->pool()->FindServiceByName(sServiceName);
}
const MethodDescriptor& LuaPbIntfImpl::FindRpcMethod(
const string& sServiceName, const string& sMethodName) const
{
const ServiceDescriptor* pDesc = GetServiceDescriptor(sServiceName);
if (!pDesc) throw LuaException("No such service: " + sServiceName);
const MethodDescriptor* pMethod = pDesc->FindMethodByName(sMethodName);
if (pMethod) return *pMethod;
throw LuaException("No such method: " + sServiceName + "." + sMethodName);
}
| 30.674847 | 88 | 0.7212 | zhuyadong |
7d94b5c0e7b53664a967b5e0c84d8e9f59921dbe | 737 | cpp | C++ | source/debugging_main.cpp | Arpit-Rulania/cpp_word_ladder | afa53979c53b6450a245b34fd32d3da41c332dbe | [
"Apache-2.0"
] | null | null | null | source/debugging_main.cpp | Arpit-Rulania/cpp_word_ladder | afa53979c53b6450a245b34fd32d3da41c332dbe | [
"Apache-2.0"
] | null | null | null | source/debugging_main.cpp | Arpit-Rulania/cpp_word_ladder | afa53979c53b6450a245b34fd32d3da41c332dbe | [
"Apache-2.0"
] | null | null | null | #include "comp6771/word_ladder.hpp"
#include <iostream>
// Please note: it's not good practice to test your code via a main function that does
// printing. Instead, you should be using your test folder. This file should only really
// be used for more "primitive" debugging as we know that playing solely with test
// frameplays might be overwhelming for some.
auto main() -> int {
auto const english_lexicon = word_ladder::read_lexicon("./test/word_ladder/english.txt");
auto const ladders = word_ladder::generate("snack", "packs", english_lexicon);
for (auto i = 0u; i < ladders.size(); i++) {
for (auto j = 0u; j < ladders[i].size(); j++) {
std::cout << ladders[i][j] << " ";
}
std::cout << '\n';
}
// debug here
}
| 36.85 | 90 | 0.68114 | Arpit-Rulania |
7d96a801fdd861b7c68010bb53e59bc22b9d908b | 2,539 | cpp | C++ | src/presentation/models/movedatamodel.cpp | karagog/GKChess | cda731f5a130255f00002ed9489cd8524ac3d863 | [
"Apache-2.0"
] | null | null | null | src/presentation/models/movedatamodel.cpp | karagog/GKChess | cda731f5a130255f00002ed9489cd8524ac3d863 | [
"Apache-2.0"
] | null | null | null | src/presentation/models/movedatamodel.cpp | karagog/GKChess | cda731f5a130255f00002ed9489cd8524ac3d863 | [
"Apache-2.0"
] | null | null | null | /*Copyright 2014 George Karagoulis
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 "movedatamodel.h"
USING_NAMESPACE_GUTIL;
NAMESPACE_GKCHESS1(UI);
MoveDataModel::MoveDataModel(QObject *parent)
:QAbstractItemModel(parent)
{}
void MoveDataModel::InitFromPGN(const QList<PGN_MoveData> &)
{
throw NotImplementedException<>();
}
int MoveDataModel::rowCount(const QModelIndex &i) const
{
return _get_container_from_index(i)->Moves.size();
}
int MoveDataModel::columnCount(const QModelIndex &) const
{
return 1;
}
QVariant MoveDataModel::data(const QModelIndex &i, int role) const
{
QVariant ret;
MoveDataCache *md = _get_data_from_index(i);
if(md)
{
switch((::Qt::ItemDataRole)role)
{
case ::Qt::DisplayRole:
//ret = md->Data.Text;
break;
default:
break;
}
}
return ret;
}
QModelIndex MoveDataModel::index(int r, int c, const QModelIndex &i) const
{
return createIndex(r, c, _get_container_from_index(i)->Moves[r]);
}
QModelIndex MoveDataModel::parent(const QModelIndex &i) const
{
QModelIndex ret;
MoveDataCache *mc = _get_data_from_index(i);
if(mc){
if(mc->Parent){
MoveDataCache *grandparent = mc->Parent->Parent;
int row = mc->Parent->Data.PlyNumber - 1;
if(grandparent)
row -= grandparent->Data.PlyNumber;
ret = createIndex(row, 0, mc->Parent);
}
}
return ret;
}
MoveDataModel::MoveDataContainer *MoveDataModel::_get_container_from_index(const QModelIndex &i)
{
return i.isValid() ? _get_data_from_index(i) : &m_rootContainer;
}
MoveDataModel::MoveDataContainer const *MoveDataModel::_get_container_from_index(const QModelIndex &i) const
{
return i.isValid() ? _get_data_from_index(i) : &m_rootContainer;
}
MoveDataModel::MoveDataCache *MoveDataModel::_get_data_from_index(const QModelIndex &i)
{
return i.isValid() ? reinterpret_cast<MoveDataCache *>(i.internalPointer()) : 0;
}
END_NAMESPACE_GKCHESS1;
| 26.447917 | 108 | 0.701063 | karagog |
7d99abc7f77057dcb7962a5203a13f669c0a0764 | 2,434 | cpp | C++ | auv_guidance/src/min_jerk_trajectory.cpp | osu-uwrt/auv_gnc | 40dbe4bda0c00fd41ed714cc2ea82f0c319e5e46 | [
"BSD-2-Clause"
] | 31 | 2019-08-07T08:04:51.000Z | 2022-03-19T10:03:42.000Z | auv_guidance/src/min_jerk_trajectory.cpp | Chandler-Xu/auv_gnc | 9e9efb49fd2a88a76b97c2381bb6138ec7513520 | [
"BSD-2-Clause"
] | null | null | null | auv_guidance/src/min_jerk_trajectory.cpp | Chandler-Xu/auv_gnc | 9e9efb49fd2a88a76b97c2381bb6138ec7513520 | [
"BSD-2-Clause"
] | 11 | 2019-09-17T14:01:01.000Z | 2022-03-16T11:45:33.000Z | #include "auv_guidance/min_jerk_trajectory.hpp"
#include <iostream>
namespace auv_guidance
{
/**
* @param start Initial conditions of position, velocity, and acceleration.
* @param end Final conditions of position, velocity, and acceleration
* @param duration Duration for which trajectory will occur
*/
MinJerkTrajectory::MinJerkTrajectory(const Eigen::Ref<const Eigen::Vector3d> &start, const Eigen::Ref<const Eigen::Vector3d> &end, double duration)
{
x0_ = start(0), v0_ = start(1), a0_ = start(2);
xf_ = end(0), vf_ = end(1), af_ = end(2);
t0_ = 0;
tf_ = duration;
dt = tf_ - t0_;
dt2 = dt * dt;
c0_ = 0, c1_ = 0, c2_ = 0, c3_ = 0, c4_ = 0, c5_ = 0;
MinJerkTrajectory::computeCoeffs();
}
/**
* Compute the needed coefficients for the min jerk trajectory
*/
void MinJerkTrajectory::computeCoeffs()
{
c0_ = x0_;
c1_ = v0_ * dt;
c2_ = 0.5 * a0_ * dt2;
c3_ = -10.0 * x0_ - 6.0 * v0_ * dt - 1.5 * a0_ * dt2 + 10.0 * xf_ - 4.0 * vf_ * dt + 0.5 * af_ * dt2;
c4_ = 15.0 * x0_ + 8.0 * v0_ * dt + 1.5 * a0_ * dt2 - 15.0 * xf_ + 7.0 * vf_ * dt - af_ * dt2;
c5_ = -6.0 * x0_ - 3.0 * v0_ * dt - 0.5 * a0_ * dt2 + 6.0 * xf_ - 3.0 * vf_ * dt + 0.5 * af_ * dt2;
}
/**
* @param time Time instance for which to compute the state of the trajectory
* Compute the state of the trajectory at specified time
*/
Eigen::Vector3d MinJerkTrajectory::computeState(double time)
{
Eigen::Vector3d state = Eigen::Vector3d::Zero();
if (time <= t0_)
{
state(0) = x0_; // Pos
state(1) = v0_; // Vel
state(2) = a0_; // Accel
return state;
}
else if (time >= tf_)
{
state(0) = xf_; // Pos
state(1) = vf_; // Vel
state(2) = af_; // Accel
return state;
}
double tau = (time - t0_) / (tf_ - t0_);
double tau2 = tau * tau;
double tau3 = tau * tau2;
double tau4 = tau * tau3;
double tau5 = tau * tau4;
state(0) = c0_ + c1_ * tau + c2_ * tau2 + c3_ * tau3 + c4_ * tau4 + c5_ * tau5;
state(1) = (c1_ + 2.0 * c2_ * tau + 3.0 * c3_ * tau2 + 4.0 * c4_ * tau3 + 5.0 * c5_ * tau4) / dt;
state(2) = (2.0 * c2_ + 6.0 * c3_ * tau + 12.0 * c4_ * tau2 + 20.0 * c5_ * tau3) / dt2;
return state;
}
double MinJerkTrajectory::getMiddleVelocity()
{
Eigen::Vector3d state = MinJerkTrajectory::computeState((tf_ - t0_) / 2.0);
return state(1);
}
} // namespace auv_guidance | 32.026316 | 147 | 0.576828 | osu-uwrt |
7d9b992cff65f8c1270b72673eb6b215169e04d7 | 21,873 | cc | C++ | arcane/ceapart/src/arcane/tests/AMRCartesianMeshTesterModule.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/ceapart/src/arcane/tests/AMRCartesianMeshTesterModule.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/ceapart/src/arcane/tests/AMRCartesianMeshTesterModule.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2021 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2.0
//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/
/* AMRCartesianMeshTesterModule.cc (C) 2000-2021 */
/* */
/* Module de test du gestionnaire de maillages cartésiens AMR. */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
#include "arcane/utils/CheckedConvert.h"
#include "arcane/utils/PlatformUtils.h"
#include "arcane/utils/Real2.h"
#include "arcane/utils/MD5HashAlgorithm.h"
#include "arcane/MeshUtils.h"
#include "arcane/Directory.h"
#include "arcane/ITimeLoopMng.h"
#include "arcane/ITimeLoopService.h"
#include "arcane/ITimeLoop.h"
#include "arcane/TimeLoopEntryPointInfo.h"
#include "arcane/IMesh.h"
#include "arcane/IItemFamily.h"
#include "arcane/ItemPrinter.h"
#include "arcane/IParallelMng.h"
#include "arcane/IMesh.h"
#include "arcane/IItemFamily.h"
#include "arcane/IMeshModifier.h"
#include "arcane/IMeshUtilities.h"
#include "arcane/ServiceBuilder.h"
#include "arcane/ServiceFactory.h"
#include "arcane/MeshStats.h"
#include "arcane/IPostProcessorWriter.h"
#include "arcane/IVariableMng.h"
#include "arcane/SimpleSVGMeshExporter.h"
#include "arcane/cea/ICartesianMesh.h"
#include "arcane/cea/CellDirectionMng.h"
#include "arcane/cea/FaceDirectionMng.h"
#include "arcane/cea/NodeDirectionMng.h"
#include "arcane/cea/CartesianConnectivity.h"
#include "arcane/cea/CartesianMeshRenumberingInfo.h"
#include "arcane/cea/ICartesianMeshPatch.h"
#include "arcane/tests/ArcaneTestGlobal.h"
#include "arcane/tests/AMRCartesianMeshTester_axl.h"
#include "arcane/tests/CartesianMeshTestUtils.h"
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
namespace ArcaneTest
{
using namespace Arcane;
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*!
* \brief Module de test pour les infos sur les maillages cartésiens.
*/
class AMRCartesianMeshTesterModule
: public ArcaneAMRCartesianMeshTesterObject
{
public:
explicit AMRCartesianMeshTesterModule(const ModuleBuildInfo& mbi);
~AMRCartesianMeshTesterModule();
public:
static void staticInitialize(ISubDomain* sd);
public:
void buildInit() override;
void compute() override;
void init() override;
private:
VariableCellReal m_density;
VariableCellReal m_old_density;
VariableCellReal3 m_cell_center;
VariableFaceReal3 m_face_center;
VariableNodeReal m_node_density;
ICartesianMesh* m_cartesian_mesh;
Ref<CartesianMeshTestUtils> m_utils;
UniqueArray<VariableCellReal*> m_cell_patch_variables;
private:
void _compute1();
void _compute2();
void _initAMR();
void _computeSubCellDensity(Cell cell);
void _computeCenters();
void _processPatches();
void _writePostProcessing();
void _checkUniqueIds();
void _checkUniqueIds(IItemFamily* family,const String& expected_hash);
};
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
AMRCartesianMeshTesterModule::
AMRCartesianMeshTesterModule(const ModuleBuildInfo& mbi)
: ArcaneAMRCartesianMeshTesterObject(mbi)
, m_density(VariableBuildInfo(this,"Density"))
, m_old_density(VariableBuildInfo(this,"OldDensity"))
, m_cell_center(VariableBuildInfo(this,"CellCenter"))
, m_face_center(VariableBuildInfo(this,"FaceCenter"))
, m_node_density(VariableBuildInfo(this,"NodeDensity"))
, m_cartesian_mesh(nullptr)
{
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
AMRCartesianMeshTesterModule::
~AMRCartesianMeshTesterModule()
{
for (VariableCellReal* v : m_cell_patch_variables)
delete v;
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
staticInitialize(ISubDomain* sd)
{
String time_loop_name("AMRCartesianMeshTestLoop");
ITimeLoopMng* tlm = sd->timeLoopMng();
ITimeLoop* time_loop = tlm->createTimeLoop(time_loop_name);
{
List<TimeLoopEntryPointInfo> clist;
clist.add(TimeLoopEntryPointInfo("AMRCartesianMeshTester.buildInit"));
time_loop->setEntryPoints(ITimeLoop::WBuild,clist);
}
{
List<TimeLoopEntryPointInfo> clist;
clist.add(TimeLoopEntryPointInfo("AMRCartesianMeshTester.init"));
time_loop->setEntryPoints(ITimeLoop::WInit,clist);
}
{
List<TimeLoopEntryPointInfo> clist;
clist.add(TimeLoopEntryPointInfo("AMRCartesianMeshTester.compute"));
time_loop->setEntryPoints(ITimeLoop::WComputeLoop,clist);
}
{
StringList clist;
clist.add("AMRCartesianMeshTester");
time_loop->setRequiredModulesName(clist);
clist.clear();
clist.add("ArcanePostProcessing");
clist.add("ArcaneCheckpoint");
time_loop->setOptionalModulesName(clist);
}
tlm->registerTimeLoop(time_loop);
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
buildInit()
{
if (subDomain()->isContinue())
return;
m_global_deltat.assign(1.0);
IItemFamily* cell_family = defaultMesh()->cellFamily();
cell_family->createGroup("CELL0");
cell_family->createGroup("CELL1");
cell_family->createGroup("CELL2");
IItemFamily* face_family = defaultMesh()->faceFamily();
face_family->createGroup("FACE0");
face_family->createGroup("FACE1");
face_family->createGroup("FACE2");
face_family->createGroup("FACE3");
face_family->createGroup("FACE4");
face_family->createGroup("FACE5");
face_family->createGroup("AllFacesDirection0");
face_family->createGroup("AllFacesDirection1");
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
init()
{
info() << "AMR Init";
IMesh* mesh = defaultMesh();
IItemFamily* cell_family = mesh->cellFamily();
Int32UniqueArray ids(1);
ids[0] = 0;
cell_family->createGroup("CELL0",ids,true);
ids[0] = 1;
cell_family->createGroup("CELL1",ids,true);
ids[0] = 2;
cell_family->createGroup("CELL2",ids,true);
IItemFamily* face_family = defaultMesh()->faceFamily();
ids[0] = 0;
face_family->createGroup("FACE0",ids,true);
ids[0] = 1;
face_family->createGroup("FACE1",ids,true);
ids[0] = 2;
face_family->createGroup("FACE2",ids,true);
ids[0] = 3;
face_family->createGroup("FACE3",ids,true);
ids[0] = 4;
face_family->createGroup("FACE4",ids,true);
ids[0] = 5;
face_family->createGroup("FACE5",ids,true);
m_cartesian_mesh = ICartesianMesh::getReference(mesh);
m_utils = makeRef(new CartesianMeshTestUtils(m_cartesian_mesh));
if (!subDomain()->isContinue())
_initAMR();
_computeCenters();
if (subDomain()->isContinue())
m_cartesian_mesh->recreateFromDump();
else{
m_cartesian_mesh->computeDirections();
CartesianMeshRenumberingInfo renumbering_info;
renumbering_info.setRenumberPatchMethod(1);
renumbering_info.setSortAfterRenumbering(true);
m_cartesian_mesh->renumberItemsUniqueId(renumbering_info);
_checkUniqueIds();
_processPatches();
}
// Initialise la densité.
// On met une densité de 1.0 à l'intérieur
// et on ajoute une densité de 5.0 pour chaque direction dans les
// mailles de bord.
m_density.fill(1.0);
Integer nb_dir = defaultMesh()->dimension();
for( Integer idir=0; idir<nb_dir; ++idir){
CellDirectionMng cdm(m_cartesian_mesh->cellDirection(idir));
Integer nb_boundary1 = 0;
Integer nb_boundary2 = 0;
ENUMERATE_CELL(icell,cdm.innerCells()){
DirCell cc(cdm.cell(*icell));
Cell next = cc.next();
Cell prev = cc.previous();
if (next.null() || prev.null()){
// Maille au bord. J'ajoute de la densité.
// Ne devrait pas arriver car on est sur les innerCells()
++nb_boundary1;
m_density[icell] += 5.0;
}
}
// Parcours les mailles frontières pour la direction
ENUMERATE_CELL(icell,cdm.outerCells()){
DirCell cc(cdm[icell]);
//info() << "CELL: cell=" << ItemPrinter(*icell);
// Maille au bord. J'ajoute de la densité.
++nb_boundary2;
m_density[icell] += 5.0;
}
info() << "NB_BOUNDARY1=" << nb_boundary1 << " NB_BOUNDARY2=" << nb_boundary2;
}
m_utils->testAll();
_writePostProcessing();
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
_checkUniqueIds(IItemFamily* family,const String& expected_hash)
{
// Vérifie que toutes les entités ont le bon uniqueId();
MD5HashAlgorithm hash_algo;
IMesh* mesh = m_cartesian_mesh->mesh();
IParallelMng* pm = mesh->parallelMng();
UniqueArray<Int64> own_items_uid;
ENUMERATE_(Item,iitem,family->allItems().own()){
Item item{*iitem};
own_items_uid.add(item.uniqueId());
}
UniqueArray<Int64> global_items_uid;
pm->allGatherVariable(own_items_uid,global_items_uid);
std::sort(global_items_uid.begin(),global_items_uid.end());
UniqueArray<Byte> hash_result;
hash_algo.computeHash64(asBytes(global_items_uid.constSpan()),hash_result);
String hash_str = Convert::toHexaString(hash_result);
info() << "HASH_RESULT family=" << family->name()
<< " v=" << hash_str << " expected=" << expected_hash;
if (hash_str!=expected_hash)
ARCANE_FATAL("Bad hash for uniqueId() for family '{0}'",family->fullName());
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
_checkUniqueIds()
{
IMesh* mesh = m_cartesian_mesh->mesh();
_checkUniqueIds(mesh->nodeFamily(),options()->nodesUidHash());
_checkUniqueIds(mesh->faceFamily(),options()->facesUidHash());
_checkUniqueIds(mesh->cellFamily(),options()->cellsUidHash());
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
_processPatches()
{
// Vérifie qu'il y a autant de patchs que d'options raffinement dans
// le jeu de données (en comptant le patch 0 qui es le maillage cartésien).
// Cela permet de vérifier que les appels successifs
// à computeDirections() n'ajoutent pas de patchs.
Integer nb_expected_patch = 1 + options()->refinement().size();
Integer nb_patch = m_cartesian_mesh->nbPatch();
if (nb_expected_patch!=nb_patch)
ARCANE_FATAL("Bad number of patchs expected={0} value={1}",nb_expected_patch,nb_patch);
IParallelMng* pm = parallelMng();
Int32 comm_rank = pm->commRank();
Int32 comm_size = pm->commSize();
UniqueArray<Int32> nb_cells_expected(options()->expectedNumberOfCellsInPatchs);
if (nb_cells_expected.size()!=nb_patch)
ARCANE_FATAL("Bad size for option '{0}'",options()->expectedNumberOfCellsInPatchs.name());
// Affiche les informations sur les patchs
for( Integer i=0; i<nb_patch; ++i ){
ICartesianMeshPatch* p = m_cartesian_mesh->patch(i);
CellGroup patch_cells(p->cells());
info() << "Patch cell_group=" << patch_cells.name() << " nb_cell=" << patch_cells.size();
VariableCellReal* cellv = new VariableCellReal(VariableBuildInfo(defaultMesh(),String("CellPatch")+i));
m_cell_patch_variables.add(cellv);
cellv->fill(0.0);
ENUMERATE_CELL(icell,patch_cells){
(*cellv)[icell] = 2.0;
}
CellGroup patch_own_cell = patch_cells.own();
UniqueArray<Int64> own_cells_uid;
ENUMERATE_(Cell,icell,patch_own_cell){
Cell cell{*icell};
info() << "Patch i=" << i << " cell=" << ItemPrinter(*icell);
own_cells_uid.add(cell.uniqueId());
}
// Affiche la liste globales des uniqueId() des mailles.
{
UniqueArray<Int64> global_cells_uid;
pm->allGatherVariable(own_cells_uid,global_cells_uid);
std::sort(global_cells_uid.begin(),global_cells_uid.end());
Integer nb_global_uid = global_cells_uid.size();
info() << "GlobalUids Patch=" << i << " NB=" << nb_global_uid
<< " expected=" << nb_cells_expected[i];
// Vérifie que le nombre de mailles par patch est le bon.
if (nb_cells_expected[i]!=nb_global_uid)
ARCANE_FATAL("Bad number of cells for patch I={0} N={1} expected={2}",
i,nb_cells_expected[i],nb_global_uid);
for( Integer c=0; c<nb_global_uid; ++c )
info() << "GlobalUid Patch=" << i << " I=" << c << " cell_uid=" << global_cells_uid[c];
}
// Exporte le patch au format SVG
{
String filename = String::format("Patch{0}-{1}-{2}.svg",i,comm_rank,comm_size);
Directory directory = subDomain()->exportDirectory();
String full_filename = directory.file(filename);
ofstream ofile(full_filename.localstr());
SimpleSVGMeshExporter exporter(ofile);
exporter.write(patch_own_cell);
}
}
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
_computeCenters()
{
IMesh* mesh = defaultMesh();
// Calcule le centre des mailles
{
VariableNodeReal3& nodes_coord = mesh->nodesCoordinates();
ENUMERATE_CELL(icell,allCells()){
Cell cell = *icell;
Real3 center;
for( NodeEnumerator inode(cell.nodes()); inode.hasNext(); ++inode )
center += nodes_coord[inode];
center /= cell.nbNode();
m_cell_center[icell] = center;
}
}
// Calcule le centre des faces
{
VariableNodeReal3& nodes_coord = mesh->nodesCoordinates();
ENUMERATE_FACE(iface,allFaces()){
Face face = *iface;
Real3 center;
for( NodeEnumerator inode(face.nodes()); inode.hasNext(); ++inode )
center += nodes_coord[inode];
center /= face.nbNode();
m_face_center[iface] = center;
}
}
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
_initAMR()
{
// Parcours les mailles actives et ajoute dans la liste des mailles
// à raffiner celles qui sont contenues dans le boîte englobante
// spécifiée dans le jeu de données.
for( auto& x : options()->refinement() ){
m_cartesian_mesh->refinePatch2D(x->position(),x->length());
m_cartesian_mesh->computeDirections();
}
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
compute()
{
_compute1();
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*!
* \brief Calcule la densité d'une maille AMR.
*/
void AMRCartesianMeshTesterModule::
_computeSubCellDensity(Cell cell)
{
Int32 nb_children = cell.nbHChildren();
if (nb_children==0)
return;
// Pour les mailles AMR, la densité est la moyenne des noeuds qui la compose.
for( Int32 j=0; j<nb_children; ++j ) {
Real sub_density = 0.0;
Cell sub_cell = cell.hChild(j);
Integer sub_cell_nb_node = sub_cell.nbNode();
for( Integer k=0; k<sub_cell_nb_node; ++k )
sub_density += m_node_density[sub_cell.node(k)];
sub_density /= (Real)sub_cell_nb_node;
m_density[sub_cell] =sub_density;
_computeSubCellDensity(sub_cell);
}
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
_compute1()
{
// Pour test, on parcours les N directions
// et pour chaque maille, on modifie sa densité
// par la formule new_density = (density+density_next+density_prev) / 3.0.
// Effectue l'operation en deux fois. Une premiere sur les
// mailles internes, et une deuxieme sur les mailles externes.
// Du coup, il faut passer par une variable intermediaire (m_old_density)
// mais on evite un test dans la boucle principale
IMesh* mesh = defaultMesh();
Integer nb_dir = mesh->dimension();
for( Integer idir=0; idir<nb_dir; ++idir){
m_old_density.copy(m_density);
CellDirectionMng cdm(m_cartesian_mesh->cellDirection(idir));
// Travail sur les mailles internes
info() << "Direction=" << idir << " cells=" << cdm.innerCells().name()
<< " n=" << cdm.innerCells().size();
ENUMERATE_CELL(icell,cdm.innerCells()){
Cell cell = *icell;
DirCell cc(cdm.cell(cell));
Cell next = cc.next();
Cell prev = cc.previous();
Real d = m_old_density[icell] + m_old_density[next] + m_old_density[prev];
m_density[icell] = d / 3.0;
_computeSubCellDensity(cell);
}
// Travail sur les mailles externes
// Test si la maille avant ou apres est nulle.
ENUMERATE_CELL(icell,cdm.outerCells()){
Cell cell = *icell;
DirCell cc(cdm[icell]);
Cell next = cc.next();
Cell prev = cc.previous();
Real d = m_old_density[icell];
Integer n = 1;
if (!next.null()){
d += m_old_density[next];
++n;
}
if (!prev.null()){
d += m_old_density[prev];
++n;
}
m_density[icell] = d / n;
_computeSubCellDensity(cell);
}
}
// Modifie la densité aux noeuds.
// Elle sera égale à la moyenne des densités des mailles entourant ce noeud
ENUMERATE_NODE(inode,mesh->allNodes()){
Node node = *inode;
Integer nb_cell = node.nbCell();
Real density = 0.0;
for( Integer i=0; i<nb_cell; ++i )
density += m_density[node.cell(i)];
density /= (Real)nb_cell;
m_node_density[inode] = density;
}
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
_compute2()
{
// Pour test, on parcours les N directions
// et pour chaque maille, on modifie sa densité
// par la formule new_density = (density+density_next+density_prev) / 3.0.
// A noter que cette methode ne donne pas le meme comportement que
// _compute1() car les mailles de bord et internes sont mises à jour
// dans un ordre différent.
Integer nb_dir = defaultMesh()->dimension();
for( Integer idir=0; idir<nb_dir; ++idir){
CellDirectionMng cdm(m_cartesian_mesh->cellDirection(idir));
// Travail sur toutes les mailles
ENUMERATE_CELL(icell,cdm.allCells()){
DirCell cc(cdm[icell]);
Cell next = cc.next();
Cell prev = cc.previous();
Real d = m_density[icell];
Integer n = 1;
if (!next.null()){
d += m_density[next];
++n;
}
if (!prev.null()){
d += m_density[prev];
++n;
}
m_density[icell] = d / n;
}
}
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void AMRCartesianMeshTesterModule::
_writePostProcessing()
{
info() << "Post-process AMR";
IPostProcessorWriter* post_processor = options()->postProcessor();
Directory output_directory = Directory(subDomain()->exportDirectory(),"amrtestpost1");
output_directory.createDirectory();
info() << "Creating output dir '" << output_directory.path() << "' for export";
UniqueArray<Real> times;
times.add(m_global_time());
post_processor->setTimes(times);
post_processor->setMesh(defaultMesh());
post_processor->setBaseDirectoryName(output_directory.path());
VariableList variables;
//variables.add(m_density.variable());
//variables.add(m_node_density.variable());
for( VariableCellReal* v : m_cell_patch_variables )
variables.add(v->variable());
post_processor->setVariables(variables);
ItemGroupList groups;
groups.add(allCells());
{
Integer nb_patch = m_cartesian_mesh->nbPatch();
for( Integer i=0; i<nb_patch; ++i ){
ICartesianMeshPatch* p = m_cartesian_mesh->patch(i);
groups.add(p->cells());
}
}
post_processor->setGroups(groups);
IVariableMng* vm = subDomain()->variableMng();
vm->writePostProcessing(post_processor);
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
ARCANE_REGISTER_MODULE_AMRCARTESIANMESHTESTER(AMRCartesianMeshTesterModule);
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
} // End namespace ArcaneTest
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
| 34.445669 | 107 | 0.579756 | JeromeDuboisPro |
7da3965752d36faf440c4d8a7e04af250c85ecdd | 5,217 | cc | C++ | rrd/src/factory.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 40 | 2015-03-10T07:55:39.000Z | 2021-06-11T10:13:56.000Z | rrd/src/factory.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 297 | 2015-04-30T10:02:04.000Z | 2022-03-09T13:31:54.000Z | rrd/src/factory.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 29 | 2015-08-03T10:04:15.000Z | 2021-11-25T12:21:00.000Z | /*
** Copyright 2011-2015 Centreon
**
** 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.
**
** For more information : [email protected]
*/
#include "com/centreon/broker/rrd/factory.hh"
#include <memory>
#include "com/centreon/broker/config/parser.hh"
#include "com/centreon/broker/rrd/connector.hh"
#include "com/centreon/exceptions/msg_fmt.hh"
using namespace com::centreon::exceptions;
using namespace com::centreon::broker;
using namespace com::centreon::broker::rrd;
/**************************************
* *
* Local Objects *
* *
**************************************/
/**
* Search for a property value.
*
* @param[in] cfg Configuration object.
* @param[in] key Key to get.
* @param[in] thrw Should throw if value is not found.
* @param[in] def Default value.
*/
static std::string find_param(config::endpoint const& cfg,
std::string const& key,
bool thrw = true,
std::string const& def = "") {
std::map<std::string, std::string>::const_iterator it{cfg.params.find(key)};
if (cfg.params.end() == it) {
if (thrw)
throw msg_fmt(
"RRD: no '{}' defined "
" for endpoint '{}'",
key, cfg.name);
else
return def;
}
return it->second;
}
/**
* Check if a configuration match the RRD layer.
*
* @param[in] cfg Endpoint configuration.
*
* @return True if the configuration matches the RRD layer.
*/
bool factory::has_endpoint(config::endpoint& cfg, io::extension* ext) {
if (ext)
*ext = io::extension("RRD", false, false);
return cfg.type == "rrd";
}
/**
* Build a RRD endpoint from a configuration.
*
* @param[in] cfg Endpoint configuration.
* @param[out] is_acceptor Will be set to false.
* @param[in] cache Unused.
*
* @return Endpoint matching the given configuration.
*/
io::endpoint* factory::new_endpoint(
config::endpoint& cfg,
bool& is_acceptor,
std::shared_ptr<persistent_cache> cache) const {
(void)cache;
// Local socket path.
std::string path{find_param(cfg, "path", false)};
// Network connection.
unsigned short port{0};
{
try {
port = static_cast<uint16_t>(
std::stoul(find_param(cfg, "port", false, "0")));
} catch (...) {
throw msg_fmt(
"RRD: bad port"
" defined "
" for endpoint '{}'",
cfg.name);
}
}
// Get rrd creator cache size.
uint32_t cache_size(16);
{
std::map<std::string, std::string>::const_iterator it{
cfg.params.find("cache_size")};
if (it != cfg.params.end())
try {
cache_size = std::stoul(it->second);
} catch (std::exception const& e) {
throw msg_fmt(
"RRD: bad port"
" defined "
" for endpoint '{}'",
cfg.name);
}
}
// Should metrics be written ?
bool write_metrics;
{
std::map<std::string, std::string>::const_iterator it(
cfg.params.find("write_metrics"));
if (it != cfg.params.end())
write_metrics = config::parser::parse_boolean(it->second);
else
write_metrics = true;
}
// Should status be written ?
bool write_status;
{
std::map<std::string, std::string>::const_iterator it{
cfg.params.find("write_status")};
if (it != cfg.params.end())
write_status = config::parser::parse_boolean(it->second);
else
write_status = true;
}
// Get metrics RRD path.
std::string metrics_path{write_metrics ? find_param(cfg, "metrics_path")
: ""};
// Get status RRD path.
std::string status_path{write_status ? find_param(cfg, "status_path") : ""};
// Ignore update errors (2.4.0-compatible behavior).
bool ignore_update_errors;
{
std::map<std::string, std::string>::const_iterator it{
cfg.params.find("ignore_update_errors")};
if (it != cfg.params.end())
ignore_update_errors = config::parser::parse_boolean(it->second);
else
ignore_update_errors = true;
}
// Create endpoint.
std::unique_ptr<rrd::connector> endp{new rrd::connector};
if (write_metrics)
endp->set_metrics_path(metrics_path);
if (write_status)
endp->set_status_path(status_path);
if (!path.empty())
endp->set_cached_local(path);
else if (port)
endp->set_cached_net(port);
endp->set_cache_size(cache_size);
endp->set_write_metrics(write_metrics);
endp->set_write_status(write_status);
endp->set_ignore_update_errors(ignore_update_errors);
is_acceptor = false;
return endp.release();
}
| 28.664835 | 78 | 0.607437 | centreon-lab |
7da503332eb9c01fe8a27c3e8922159a23d89e29 | 752 | cpp | C++ | baekjoon/11727.cpp | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/11727.cpp | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/11727.cpp | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | /*
11727 : 2×n 타일링 2
URL : https://www.acmicpc.net/problem/11727
Input #1 :
2
Output #1 :
3
Input #2 :
8
Output #2 :
171
Input #3 :
12
Output #3 :
2731
*/
#include <iostream>
#include <cstring>
#define MAX_N 1001
#define MOD 10007
using namespace std;
int cache[MAX_N];
int tiling(int width)
{
int &ret = cache[width];
if (width <= 1)
{
return 1;
}
if (ret != -1)
{
return ret;
}
ret = (tiling(width - 1) + (2 * tiling(width - 2))) % MOD;
return ret;
}
int main(int argc, char const *argv[])
{
int n;
memset(&(cache[0]), -1, sizeof(int) * MAX_N);
cin >> n;
cout << tiling(n);
return 0;
}
| 13.192982 | 62 | 0.486702 | GihwanKim |
7da5cf270a212137dd4cf4cd4675ec43c6c03dec | 10,982 | hpp | C++ | viennagrid/algorithm/geometry.hpp | viennagrid/viennagrid-dev | 6e47c8d098a0b691d6b9988f2444cd11d440f4c2 | [
"MIT"
] | 7 | 2015-09-13T03:50:58.000Z | 2019-06-27T14:24:49.000Z | viennagrid/algorithm/geometry.hpp | viennagrid/viennagrid-dev | 6e47c8d098a0b691d6b9988f2444cd11d440f4c2 | [
"MIT"
] | null | null | null | viennagrid/algorithm/geometry.hpp | viennagrid/viennagrid-dev | 6e47c8d098a0b691d6b9988f2444cd11d440f4c2 | [
"MIT"
] | 5 | 2015-07-03T07:14:15.000Z | 2021-05-20T00:51:58.000Z | #ifndef VIENNAGRID_ALGORITHM_GEOMETRY_HPP
#define VIENNAGRID_ALGORITHM_GEOMETRY_HPP
/* =======================================================================
Copyright (c) 2011-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
-----------------
ViennaGrid - The Vienna Grid Library
-----------------
License: MIT (X11), see file LICENSE in the base directory
======================================================================= */
#include <limits>
#include "viennagrid/mesh/mesh.hpp"
#include "viennagrid/topology/quadrilateral.hpp"
#include "viennagrid/algorithm/inner_prod.hpp"
#include "viennagrid/algorithm/norm.hpp"
#include "viennagrid/algorithm/cross_prod.hpp"
#include "viennagrid/algorithm/detail/numeric.hpp"
/** @file viennagrid/algorithm/geometry.hpp
@brief Contains various functions for computing geometric quantities
*/
namespace viennagrid
{
namespace detail
{
/** @brief Implementation for calculating a normal vector of a vertex in 1D */
template<typename PointAccessorT, typename ElementT>
typename PointAccessorT::value_type normal_vector_impl(
PointAccessorT const point_accessor,
ElementT const & element,
viennagrid::vertex_tag,
viennagrid::dimension_tag<1>)
{
typedef typename PointAccessorT::value_type PointType;
(void)point_accessor; (void)element;
return PointType(1.0);
}
/** @brief Implementation for calculating a normal vector of a line in 2D */
template<typename PointAccessorT, typename ElementT>
typename PointAccessorT::value_type normal_vector_impl(
PointAccessorT const point_accessor,
ElementT const & element,
viennagrid::line_tag,
viennagrid::dimension_tag<2>)
{
typedef typename PointAccessorT::value_type PointType;
PointType const & p0 = point_accessor( viennagrid::vertices(element)[0] );
PointType const & p1 = point_accessor( viennagrid::vertices(element)[1] );
PointType line = p1-p0;
std::swap(line[0], line[1]);
line[0] = -line[0];
return line;
}
/** @brief Implementation for calculating a normal vector of a triangle in 3D */
template<typename PointAccessorT, typename ElementT>
typename PointAccessorT::value_type normal_vector_impl(
PointAccessorT const point_accessor,
ElementT const & element,
viennagrid::triangle_tag,
viennagrid::dimension_tag<3>)
{
typedef typename PointAccessorT::value_type PointType;
PointType const & p0 = point_accessor( viennagrid::vertices(element)[0] );
PointType const & p1 = point_accessor( viennagrid::vertices(element)[1] );
PointType const & p2 = point_accessor( viennagrid::vertices(element)[2] );
return viennagrid::cross_prod( p1-p0, p2-p0 );
}
/** @brief Implementation for calculating a normal vector of a quadrilateral in 3D.
*
* Reuses the implementation for a triangle.
*/
template<typename PointAccessorT, typename ElementT>
typename PointAccessorT::value_type normal_vector_impl(
PointAccessorT const point_accessor,
ElementT const & element,
viennagrid::quadrilateral_tag,
viennagrid::dimension_tag<3>)
{
return normal_vector_impl(point_accessor, element, viennagrid::triangle_tag(), viennagrid::dimension_tag<3>());
}
}
/** @brief Calculates the normal vector of an element
*
* @param point_accessor Point accessor for input points
* @param element The input element
*/
template<typename PointAccessorT, typename ElementT>
typename PointAccessorT::value_type normal_vector(
PointAccessorT const point_accessor,
ElementT const & element )
{
typedef typename viennagrid::result_of::element_tag<ElementT>::type ElementTag;
typedef typename PointAccessorT::value_type PointType;
typedef viennagrid::dimension_tag< result_of::static_size<PointType>::value > DimensionTag;
return detail::normal_vector_impl( point_accessor, element, ElementTag(), DimensionTag() );
}
/** @brief Calculates the normal vector of an element
*
* @param element The input element
*/
template<typename ElementT>
typename viennagrid::result_of::point<ElementT>::type normal_vector( ElementT const & element )
{
return normal_vector( default_point_accessor(element), element );
}
/** @brief Calculates the determinant of a 1x1 matrix with the columns provided as 1D-points
*
* @param p0 The first column/point
*/
template<typename PointT>
typename viennagrid::result_of::coord<PointT>::type determinant( PointT const & p0)
{
return p0[0];
}
/** @brief Calculates the determinant of a 2x2 matrix with the columns provided as 2D-points
*
* @param p0 The first column
* @param p1 The second column
*/
template<typename PointT>
typename viennagrid::result_of::coord<PointT>::type determinant( PointT const & p0, PointT const & p1 )
{
return p0[0]*p1[1] - p0[1]*p1[0];
}
/** @brief Calculates the determinant of a 3x3 matrix with the columns provided as 3D-points
*
* @param p0 The first column
* @param p1 The second column
* @param p2 The third column
*/
template<typename PointT>
typename viennagrid::result_of::coord<PointT>::type determinant( PointT const & p0, PointT const & p1, PointT const & p2 )
{
return p0[0]*p1[1]*p2[2] + p1[0]*p2[1]*p0[2] + p2[0]*p0[1]*p1[2] - p0[2]*p1[1]*p2[0] - p1[2]*p2[1]*p0[0] - p2[2]*p0[1]*p1[0];
}
/** @brief Calculates the bounding box of a point iterator range. A pair of points is return, where the first represents the coordinate-wise minimum and the second represents the coordinate-wise maximum.
*
* @param it The start point iterator
* @param it_end The end point iterator
*/
template<typename PointIteratorT>
std::pair<
typename std::iterator_traits<PointIteratorT>::value_type,
typename std::iterator_traits<PointIteratorT>::value_type
> bounding_box( PointIteratorT it, PointIteratorT const & it_end )
{
typedef typename std::iterator_traits<PointIteratorT>::value_type PointType;
typedef typename viennagrid::result_of::coord<PointType>::type NumericType;
PointType lower_left;
PointType upper_right;
std::fill( lower_left.begin(), lower_left.end(), std::numeric_limits<NumericType>::max() );
std::fill( upper_right.begin(), upper_right.end(), - std::numeric_limits<NumericType>::max() );
//std::fill( upper_right.begin(), upper_right.end(), std::numeric_limits<NumericType>::lowest() ); C++11
for (; it != it_end; ++it )
{
lower_left = viennagrid::min( lower_left, *it );
upper_right = viennagrid::max( upper_right, *it );
}
return std::make_pair( lower_left, upper_right );
}
/** @brief Calculates the bounding box a mesh. A pair of points is return, where the first represents the coordinate-wise minimum and the second represents the coordinate-wise maximum.
*
* @param mesh The input mesh
*/
template<typename MeshT>
std::pair<
typename viennagrid::result_of::point<MeshT>::type,
typename viennagrid::result_of::point<MeshT>::type
> bounding_box( MeshT const & mesh )
{
typedef typename viennagrid::result_of::point<MeshT>::type PointType;
typedef typename viennagrid::result_of::coord<MeshT>::type NumericType;
PointType lower_left;
PointType upper_right;
std::fill( lower_left.begin(), lower_left.end(), std::numeric_limits<NumericType>::max() );
std::fill( upper_right.begin(), upper_right.end(), - std::numeric_limits<NumericType>::max() );
//std::fill( upper_right.begin(), upper_right.end(), std::numeric_limits<NumericType>::lowest() ); C++11
typedef typename viennagrid::result_of::const_vertex_range<MeshT>::type ConstVertexRangeType;
typedef typename viennagrid::result_of::iterator<ConstVertexRangeType>::type ConstVertexIteratorType;
ConstVertexRangeType vertices(mesh);
for (ConstVertexIteratorType vit = vertices.begin(); vit != vertices.end(); ++vit)
{
lower_left = viennagrid::min( lower_left, viennagrid::point(*vit) );
upper_right = viennagrid::max( upper_right, viennagrid::point(*vit) );
}
return std::make_pair( lower_left, upper_right );
}
/** @brief Calculates the size of a mesh: ||bounding_box.min - bounding_box.max||
*
* @param mesh The input mesh
*/
template<typename MeshT>
typename viennagrid::result_of::coord<MeshT>::type mesh_size( MeshT const & mesh )
{
std::pair<
typename viennagrid::result_of::point<MeshT>::type,
typename viennagrid::result_of::point<MeshT>::type
> bb = bounding_box(mesh);
return viennagrid::norm_2(bb.second - bb.first);
}
/** @brief Makes a vector orthogonal to a set of linearly independent orthogonal vectors (Gram–Schmidt process step)
*
* @param it The begin vector iterator of the linearly independent orthogonal vector set
* @param end The end vector iterator of the linearly independent orthogonal vector set
* @param vec The vector to orthogonalize
*/
template<typename VectorIteratorT, typename VectorT>
VectorT orthogonalize_vector( VectorIteratorT it, VectorIteratorT const & end, VectorT vec )
{
for (; it != end; ++it)
vec -= viennagrid::inner_prod( vec, *it ) / viennagrid::inner_prod( *it, *it ) * (*it);
return vec;
}
/** @brief Makes a set of vectors orthogonal (Gram–Schmidt process step).
*
* If linearly dependent vectors are encountered, they are moved/swapped to the end of the sequence.
*
* @param start The begin vector iterator of the vector set to orthogonalize
* @param end The end vector iterator of the vector set to orthogonalize
* @param nc Numeric config
*
* @return Number of linearly independent vectors found during the process
*/
template<typename IteratorT, typename NumericConfigT>
std::size_t orthogonalize( IteratorT start, IteratorT end, NumericConfigT nc )
{
typedef typename std::iterator_traits<IteratorT>::value_type vector_type;
typedef typename viennagrid::result_of::coord<vector_type>::type coord_type;
std::size_t count = 0;
for (IteratorT n = start; n != end;)
{
*n = orthogonalize_vector(start, n, *n);
if ( viennagrid::norm_1(*n) < detail::absolute_tolerance<coord_type>(nc) )
{
--end;
std::swap(*n, *end);
}
else
{
++n;
++count;
}
}
return count;
}
}
#endif
| 36.364238 | 205 | 0.664087 | viennagrid |
7da76807c52c0d703a05f4f77c3cb7c33747c03d | 393 | cpp | C++ | Uva-494 - Kindergarten Counting Game.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | 1 | 2020-11-02T22:18:22.000Z | 2020-11-02T22:18:22.000Z | Uva-494 - Kindergarten Counting Game.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | null | null | null | Uva-494 - Kindergarten Counting Game.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
int count = 0,k=0;
string str;
while (getline(cin, str))
{
for (int i = 0; i<str.length(); i++)
{
if ((str[i]>='a' && str[i]<='z') || (str[i]>='A' && str[i]<='Z'))
{
k = 1;
}
else
{
count += k;
k = 0;
}
}
cout << count << endl;
count = 0;
}
}
| 14.035714 | 68 | 0.486005 | Samim-Arefin |
7da86fdc3a6b20c376e6cc5be514261b4b395669 | 2,448 | cpp | C++ | src/main.cpp | zhitko/speech-rate-meter | 6414215f15c4c21bb5afe4bf16dcdbc4164d8f57 | [
"MIT"
] | 4 | 2021-03-14T09:47:58.000Z | 2021-08-05T10:15:15.000Z | src/main.cpp | zhitko/speech-rate-meter | 6414215f15c4c21bb5afe4bf16dcdbc4164d8f57 | [
"MIT"
] | 3 | 2021-05-21T09:39:16.000Z | 2022-03-28T13:17:31.000Z | src/main.cpp | zhitko/speech-rate-meter | 6414215f15c4c21bb5afe4bf16dcdbc4164d8f57 | [
"MIT"
] | 1 | 2021-05-05T21:07:32.000Z | 2021-05-05T21:07:32.000Z | #include <QtWidgets/QApplication>
#include <QQmlApplicationEngine>
#include <QFileInfo>
#include <QStringList>
#include <QDirIterator>
#include <QDir>
#include <QDateTime>
#include <QTextCodec>
#include "backend.h"
#include "settings.h"
#include "applicationconfig.h"
#include "qml/qmlfileinfo.h"
#include "qml/qmlpoint.h"
#include "3party/RadialBar/radialbar.h"
void cleanDataDir();
static const QtMessageHandler QT_DEFAULT_MESSAGE_HANDLER = qInstallMessageHandler(0);
void logToFile(const QString message)
{
QFile file("logs.txt");
if (file.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append)) {
QTextStream stream(&file);
stream << message << endl;
}
}
void messageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{
QByteArray localMsg = msg.toLocal8Bit();
QString message = QString("%1: %2").arg(
QDateTime::currentDateTime().toString("dd.MM.yyyy hh:mm:ss:zzz "),
QString(localMsg.constData())
);
logToFile(message);
(*QT_DEFAULT_MESSAGE_HANDLER)(type, context, message);
}
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#ifndef ANDROID
qputenv("QT_SCALE_FACTOR", "0.75");
#endif
qInstallMessageHandler(messageOutput);
QApplication app(argc, argv);
qmlRegisterType<RadialBar>("RadialBar", 1, 0, "RadialBar");
qmlRegisterType<Backend>("intondemo.backend", 1, 0, "Backend");
qmlRegisterType<Settings>("intondemo.settings", 1, 0, "Settings");
qRegisterMetaType<QmlFileInfo>("FileInfo");
qRegisterMetaType<QmlPoint>("Point");
QQmlApplicationEngine engine;
Settings::getInstance(&app);
const QUrl url(QStringLiteral("qrc:/main.qml"));
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
&app, [url](QObject *obj, const QUrl &objUrl) {
if (!obj && url == objUrl)
QCoreApplication::exit(-1);
}, Qt::QueuedConnection);
engine.load(url);
auto result = QApplication::exec();
#ifdef ANDROID
cleanDataDir();
#endif
return result;
}
void cleanDataDir()
{
QDir dataDir(ApplicationConfig::GetFullDataPath());
QStringList allFiles = dataDir.entryList(ApplicationConfig::WaveFileFilter, QDir::NoDotAndDotDot | QDir::Files);
foreach(auto file, allFiles)
{
QDir dir;
dir.remove(dataDir.absoluteFilePath(file));
}
}
| 26.608696 | 116 | 0.688725 | zhitko |
7dad3646cc4818631270df897879dca9c9f89008 | 288 | cpp | C++ | Core/Surface.cpp | zgub4/op3d | 2a9a01b3b7666f4ef1afcb279530c57126e3baa8 | [
"Apache-2.0"
] | 2 | 2017-03-02T15:40:58.000Z | 2017-05-19T07:58:05.000Z | Core/Surface.cpp | zgub4/op3d | 2a9a01b3b7666f4ef1afcb279530c57126e3baa8 | [
"Apache-2.0"
] | 2 | 2017-04-05T01:50:36.000Z | 2017-04-06T09:20:12.000Z | Core/Surface.cpp | zgub4/op3d | 2a9a01b3b7666f4ef1afcb279530c57126e3baa8 | [
"Apache-2.0"
] | null | null | null | #include "Surface.h"
#include <stdexcept>
void op3d::Surface::create(const VkInstance& instance, GLFWwindow* window)
{
if (glfwCreateWindowSurface(instance, window, nullptr, replace()) != VK_SUCCESS)
{
throw std::runtime_error("Failed to create VkSurfaceKHR!");
}
}
| 24 | 84 | 0.697917 | zgub4 |
7dafe8bed18d89d649b3d442050edc5458882964 | 3,276 | cpp | C++ | lab01/LoadedDie.cpp | jrgoldfinemiddleton/cs162 | dea72d9219e748e15a5796177a6b018bcab7816e | [
"BSD-2-Clause"
] | 3 | 2016-11-04T20:18:46.000Z | 2019-04-22T05:00:03.000Z | lab01/LoadedDie.cpp | jrgoldfinemiddleton/cs162 | dea72d9219e748e15a5796177a6b018bcab7816e | [
"BSD-2-Clause"
] | 1 | 2016-11-04T20:23:25.000Z | 2016-11-04T20:23:45.000Z | lab01/LoadedDie.cpp | jrgoldfinemiddleton/cs162 | dea72d9219e748e15a5796177a6b018bcab7816e | [
"BSD-2-Clause"
] | 6 | 2015-12-25T16:14:46.000Z | 2019-04-22T05:00:04.000Z | /*********************************************************************
** Program Filename: LoadedDie.cpp
** Author: Jason Goldfine-Middleton
** Date: 09/26/15
** Description: The LoadedDie class implementation file.
** Input: N/A
** Output: N/A
*********************************************************************/
#include "LoadedDie.hpp"
#include <cstdlib> // for rand()
/*********************************************************************
** Function: LoadedDie()
** Description: Constructs a LoadedDie.
** Parameters: sides - the number of sides
** Pre-Conditions: sides must be positive
** Post-Conditions: distributionArr will point to an array on the
** heap; the array will be filled with values equal
** to those of the sides of the LoadedDie, with
** greater values occurring more frequently
*********************************************************************/
LoadedDie::LoadedDie(int sides)
{
numSides = sides;
// map a random value to a side of a loaded die
distributionArr = new int[sumSides()];
// where to start putting the next die value
int startIndex = 0;
// fill up the distribution array such that the higher the side
// of the die is, the more random values (indices) will match it
for (int sideValue = 1; sideValue <= numSides; ++sideValue)
{
int endIndex = startIndex + sideValue;
for (int index = startIndex; index < endIndex; ++index)
{
distributionArr[index] = sideValue;
}
startIndex = endIndex;
}
}
/*********************************************************************
** Function: ~LoadedDie()
** Description: The destructor for LoadedDie.
** Parameters: N/A
** Pre-Conditions: distributionArr is not deallocated
** Post-Conditions: distributionArr is deallocated
*********************************************************************/
LoadedDie::~LoadedDie()
{
delete distributionArr;
}
/*********************************************************************
** Function: getRoll()
** Description: Rolls the LoadedDie, returning a value between 1 and
** the number of sides.
** Parameters: none
** Pre-Conditions: srand() must have already been run; distributionArr
** must contain sumSides() elements ranging in value
** from 1 to numSides
** Post-Conditions: an integer value between 1 and the number of sides
** is returned
*********************************************************************/
int LoadedDie::getRoll()
{
int distributionIndex = rand() % sumSides();
int roll = distributionArr[distributionIndex];
return roll;
}
/*********************************************************************
** Function: sumSides()
** Description: Returns the sum of all values on the sides of the
** LoadedDie.
** Parameters: none
** Pre-Conditions: none
** Post-Conditions: the sum of all sides is returned
*********************************************************************/
int LoadedDie::sumSides()
{
int sum = 0;
for (int sideValue = 1; sideValue <= numSides; ++sideValue)
{
sum += sideValue;
}
return sum;
}
| 30.90566 | 71 | 0.502137 | jrgoldfinemiddleton |
7db68987b9886e429db35e11547376b8bfd58222 | 6,683 | cpp | C++ | plugins/src/amxinfo.cpp | SL-RP/PawnPlus | be9c7bf801d4338516f930817d295f2a51754bdc | [
"MIT"
] | 79 | 2018-03-07T22:49:20.000Z | 2022-03-31T04:55:30.000Z | plugins/src/amxinfo.cpp | SL-RP/PawnPlus | be9c7bf801d4338516f930817d295f2a51754bdc | [
"MIT"
] | 45 | 2018-07-13T20:57:40.000Z | 2022-02-01T17:55:34.000Z | plugins/src/amxinfo.cpp | SL-RP/PawnPlus | be9c7bf801d4338516f930817d295f2a51754bdc | [
"MIT"
] | 29 | 2018-03-23T08:22:02.000Z | 2022-02-13T22:59:50.000Z | #include "amxinfo.h"
#include "natives.h"
#include "modules/tags.h"
#include "modules/amxutils.h"
#include <unordered_map>
#include "subhook/subhook.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#include <signal.h>
#include <setjmp.h>
#endif
struct natives_extra : public amx::extra
{
natives_extra(AMX *amx) : extra(amx)
{
}
natives_extra(AMX *amx, const std::unordered_map<std::string, AMX_NATIVE> &natives) : extra(amx), natives(natives)
{
}
std::unordered_map<std::string, AMX_NATIVE> natives;
virtual std::unique_ptr<extra> clone() override
{
return std::unique_ptr<extra>(new natives_extra(_amx, natives));
}
};
static std::unordered_map<AMX*, std::shared_ptr<amx::instance>> amx_map;
bool amx::valid(AMX *amx)
{
return amx_map.find(amx) != amx_map.end();
}
void amx::call_all(void(*func)(void *cookie, AMX *amx), void *cookie)
{
for(const auto &pair : amx_map)
{
if(pair.second->valid())
{
func(cookie, pair.first);
}
}
}
// Nothing should be loaded from the AMX here, since it may not even be initialized yet
const amx::object &amx::load_lock(AMX *amx)
{
auto it = amx_map.find(amx);
if(it != amx_map.end())
{
return it->second;
}
return amx_map.emplace(amx, std::make_shared<instance>(amx)).first->second;
}
const amx::object &amx::clone_lock(AMX *amx, AMX *new_amx)
{
const auto &obj = load_lock(amx);
return amx_map.emplace(new_amx, std::make_shared<instance>(*obj, new_amx)).first->second;
}
bool amx::unload(AMX *amx)
{
auto it = amx_map.find(amx);
if(it != amx_map.end())
{
amx_map.erase(it);
return true;
}
return false;
}
bool amx::invalidate(AMX *amx)
{
auto it = amx_map.find(amx);
if(it != amx_map.end())
{
it->second->invalidate();
return true;
}
return false;
}
void amx::register_natives(AMX *amx, const AMX_NATIVE_INFO *nativelist, int number)
{
const auto &obj = load_lock(amx);
auto &natives = obj->get_extra<natives_extra>().natives;
for(int i = 0; (i < number || number == -1) && nativelist[i].name != nullptr; i++)
{
natives.insert(std::make_pair(nativelist[i].name, nativelist[i].func));
}
obj->run_initializers();
}
AMX_NATIVE amx::try_decode_native(const char *str)
{
if(str[0] == 0x1C)
{
auto name = reinterpret_cast<const unsigned char *>(str + 1);
ucell value;
if(amx_decode_value(name, value))
{
return reinterpret_cast<AMX_NATIVE>(value);
}
}
return nullptr;
}
AMX_NATIVE amx::find_native(AMX *amx, const char *name)
{
auto decoded = try_decode_native(name);
if(decoded != nullptr)
{
return decoded;
}
return amx::find_native(amx, std::string(name));
}
AMX_NATIVE amx::find_native(AMX *amx, const std::string &name)
{
auto decoded = try_decode_native(name.c_str());
if(decoded != nullptr)
{
return decoded;
}
const auto &obj = load_lock(amx);
auto &natives = obj->get_extra<natives_extra>().natives;
auto it = natives.find(name);
if(it != natives.end())
{
return it->second;
}
int index;
if(!amx_FindNative(amx, name.c_str(), &index))
{
auto amxhdr = (AMX_HEADER*)amx->base;
auto func = (AMX_FUNCSTUB*)((unsigned char*)amxhdr+ amxhdr->natives + index* amxhdr->defsize);
auto f = reinterpret_cast<AMX_NATIVE>(func->address);
natives.insert(std::make_pair(name, f));
return f;
}
return nullptr;
}
size_t amx::num_natives(AMX *amx)
{
const auto &obj = load_lock(amx);
auto &natives = obj->get_extra<natives_extra>().natives;
return natives.size();
}
#ifdef _WIN32
bool filter_exception(DWORD code)
{
switch(code)
{
case EXCEPTION_ACCESS_VIOLATION:
case EXCEPTION_INT_DIVIDE_BY_ZERO:
return true;
default:
return false;
}
}
#else
sigjmp_buf jmp;
void signal_handler(int signal)
{
siglongjmp(jmp, signal);
}
#endif
cell call_external_native(AMX *amx, AMX_NATIVE native, cell *params)
{
#ifdef _DEBUG
return native(amx, params);
#elif defined _WIN32
DWORD error;
__try{
return native(amx, params);
}__except(filter_exception(error = GetExceptionCode()) ? EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH)
{
amx_LogicError(errors::unhandled_system_exception, error);
}
#else
int error = sigsetjmp(jmp, true);
if(error)
{
amx_LogicError(errors::unhandled_system_exception, error);
}
struct sigaction act, oldact;
memset(&act, 0, sizeof(act));
act.sa_handler = signal_handler;
act.sa_flags = SA_RESETHAND;
sigaction(SIGSEGV, &act, &oldact);
cell result = native(amx, params);
sigaction(SIGSEGV, &oldact, nullptr);
return result;
#endif
}
cell amx::dynamic_call(AMX *amx, AMX_NATIVE native, cell *params, tag_ptr &out_tag)
{
cell result;
amx->error = AMX_ERR_NONE;
native_return_tag = nullptr;
auto it = impl::runtime_native_map().find(native);
if(it != impl::runtime_native_map().end() && subhook_read_dst(reinterpret_cast<void*>(native)) == nullptr)
{
const auto &info = it->second;
try{
if(params[0] < info.arg_count * static_cast<cell>(sizeof(cell)))
{
amx_FormalError(errors::not_enough_args, info.arg_count, params[0] / static_cast<cell>(sizeof(cell)));
}
result = info.inner(amx, params);
if(info.tag_uid != tags::tag_unknown)
{
native_return_tag = tags::find_tag(info.tag_uid);
}
}catch(const errors::end_of_arguments_error &err)
{
amx_FormalError(errors::not_enough_args, err.argbase - params - 1 + err.required, params[0] / static_cast<cell>(sizeof(cell)));
}
#ifndef _DEBUG
catch(const std::exception &err)
{
amx_LogicError(errors::unhandled_exception, err.what());
}
#endif
}else{
result = call_external_native(amx, native, params);
}
out_tag = native_return_tag;
if(amx->error != AMX_ERR_NONE)
{
int code = amx->error;
amx->error = AMX_ERR_NONE;
throw errors::amx_error(code);
}
return result;
}
void amx::instance::run_initializers()
{
if(_amx && loaded && !initialized && (_amx->flags & AMX_FLAG_NTVREG))
{
int num;
if(amx_NumPublics(_amx, &num) == AMX_ERR_NONE)
{
char *funcname = amx_NameBuffer(_amx);
cell ret;
for(int i = 0; i < num; i++)
{
if(amx_GetPublic(_amx, i, funcname) == AMX_ERR_NONE)
{
funcname[12] = '\0';
if(!std::strcmp(funcname, "_pp@on_init@"))
{
amx_Exec(_amx, &ret, i);
}
}
}
initialized = true;
}
}
}
void amx::instance::run_finalizers()
{
if(_amx && initialized && (_amx->flags & AMX_FLAG_NTVREG))
{
int num;
if(amx_NumPublics(_amx, &num) == AMX_ERR_NONE)
{
char *funcname = amx_NameBuffer(_amx);
cell ret;
for(int i = num - 1; i >= 0; i--)
{
if(amx_GetPublic(_amx, i, funcname) == AMX_ERR_NONE)
{
funcname[12] = '\0';
if(!std::strcmp(funcname, "_pp@on_exit@"))
{
amx_Exec(_amx, &ret, i);
}
}
}
}
}
}
| 21.983553 | 130 | 0.679635 | SL-RP |
7dbc6963058fa5fddf6d30ec2fbcd352cf7c7db9 | 655 | cpp | C++ | qt-mvvm/source/libmvvm_model/mvvm/model/datarole.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | 6 | 2021-12-08T03:09:47.000Z | 2022-02-24T03:51:14.000Z | qt-mvvm/source/libmvvm_model/mvvm/model/datarole.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | null | null | null | qt-mvvm/source/libmvvm_model/mvvm/model/datarole.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | null | null | null | // ************************************************************************** //
//
// Model-view-view-model framework for large GUI applications
//
//! @license GNU General Public License v3 or higher (see COPYING)
//! @authors see AUTHORS
//
// ************************************************************************** //
#include "mvvm/model/datarole.h"
#include "mvvm/model/customvariants.h"
using namespace ModelView;
DataRole::DataRole(Variant data, int role) : m_data(std::move(data)), m_role(role) {}
bool DataRole::operator==(const DataRole& other) const
{
return m_role == other.m_role && Utils::IsTheSame(m_data, other.m_data);
}
| 31.190476 | 85 | 0.540458 | seaCheng |
7dbe880049933ad81ebb8398d21d1dd1d6bf12ef | 486 | cpp | C++ | Game/Source/GargoyleBattle_Dungeon_3.cpp | aNnAm2606/PROJECT-II-BAKARA-SAN | 84bbc8cc9f7ea9f5b1b3ece4ea4053c74e7ece7f | [
"MIT"
] | null | null | null | Game/Source/GargoyleBattle_Dungeon_3.cpp | aNnAm2606/PROJECT-II-BAKARA-SAN | 84bbc8cc9f7ea9f5b1b3ece4ea4053c74e7ece7f | [
"MIT"
] | 7 | 2022-03-19T21:14:34.000Z | 2022-03-19T21:53:13.000Z | Game/Source/GargoyleBattle_Dungeon_3.cpp | aNnAm2606/PROJECT-II-BAKARA-SAN | 84bbc8cc9f7ea9f5b1b3ece4ea4053c74e7ece7f | [
"MIT"
] | 1 | 2022-03-08T12:25:02.000Z | 2022-03-08T12:25:02.000Z | #include "GargoyleBattle_Dungeon_3.h"
#include "App.h"
#include "BattleScene.h"
#include "TownScene.h"
GargoyleBattle_Dungeon_3::GargoyleBattle_Dungeon_3()
{
}
GargoyleBattle_Dungeon_3::~GargoyleBattle_Dungeon_3()
{
}
void GargoyleBattle_Dungeon_3::SetBattlefield()
{
app->battleScene->SetNextScene(m_OriginScene);
app->battleScene->AddEnemy(Character::ECharacterType::ECHARACTER_GARGOYLE, 0, 0);
app->battleScene->AddEnemy(Character::ECharacterType::ECHARACTER_GARGOYLE, 0, 1);
} | 25.578947 | 82 | 0.798354 | aNnAm2606 |
7dc4808bd90cc71a1087549443b89edad2c30a9d | 6,563 | cpp | C++ | Developments/solidity-develop/test/libsolidity/JSONCompiler.cpp | jansenbarabona/NFT-Game-Development | 49bf6593925123f0212dac13badd609be3866561 | [
"MIT"
] | null | null | null | Developments/solidity-develop/test/libsolidity/JSONCompiler.cpp | jansenbarabona/NFT-Game-Development | 49bf6593925123f0212dac13badd609be3866561 | [
"MIT"
] | null | null | null | Developments/solidity-develop/test/libsolidity/JSONCompiler.cpp | jansenbarabona/NFT-Game-Development | 49bf6593925123f0212dac13badd609be3866561 | [
"MIT"
] | null | null | null | /*
This file is part of solidity.
solidity 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 3 of the License, or
(at your option) any later version.
solidity 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 solidity. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @date 2017
* Unit tests for solc/jsonCompiler.cpp.
*/
#include <string>
#include <boost/test/unit_test.hpp>
#include <libdevcore/JSON.h>
#include <libsolidity/interface/Version.h>
#include <solc/jsonCompiler.h>
#include "../Metadata.h"
#include "../TestHelper.h"
using namespace std;
namespace dev
{
namespace solidity
{
namespace test
{
namespace
{
Json::Value compileSingle(string const& _input)
{
string output(compileJSON(_input.c_str(), dev::test::Options::get().optimize));
Json::Value ret;
BOOST_REQUIRE(Json::Reader().parse(output, ret, false));
return ret;
}
Json::Value compileMulti(string const& _input, bool _callback)
{
string output(
_callback ?
compileJSONCallback(_input.c_str(), dev::test::Options::get().optimize, NULL) :
compileJSONMulti(_input.c_str(), dev::test::Options::get().optimize)
);
Json::Value ret;
BOOST_REQUIRE(Json::Reader().parse(output, ret, false));
return ret;
}
Json::Value compile(string const& _input)
{
string output(compileStandard(_input.c_str(), NULL));
Json::Value ret;
BOOST_REQUIRE(Json::Reader().parse(output, ret, false));
return ret;
}
} // end anonymous namespace
BOOST_AUTO_TEST_SUITE(JSONCompiler)
BOOST_AUTO_TEST_CASE(read_version)
{
string output(version());
BOOST_CHECK(output.find(VersionString) == 0);
}
BOOST_AUTO_TEST_CASE(read_license)
{
string output(license());
BOOST_CHECK(output.find("GNU GENERAL PUBLIC LICENSE") != string::npos);
}
BOOST_AUTO_TEST_CASE(basic_compilation)
{
char const* input = R"(
{
"sources": {
"fileA": "contract A { }"
}
}
)";
Json::Value result = compileMulti(input, false);
BOOST_CHECK(result.isObject());
// Compare with compileJSONCallback
BOOST_CHECK_EQUAL(
dev::jsonCompactPrint(result),
dev::jsonCompactPrint(compileMulti(input, true))
);
BOOST_CHECK(result["contracts"].isObject());
BOOST_CHECK(result["contracts"]["fileA:A"].isObject());
Json::Value contract = result["contracts"]["fileA:A"];
BOOST_CHECK(contract.isObject());
BOOST_CHECK(contract["interface"].isString());
BOOST_CHECK_EQUAL(contract["interface"].asString(), "[]");
BOOST_CHECK(contract["bytecode"].isString());
BOOST_CHECK_EQUAL(
dev::test::bytecodeSansMetadata(contract["bytecode"].asString()),
"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00"
);
BOOST_CHECK(contract["runtimeBytecode"].isString());
BOOST_CHECK_EQUAL(
dev::test::bytecodeSansMetadata(contract["runtimeBytecode"].asString()),
"6060604052600080fd00"
);
BOOST_CHECK(contract["functionHashes"].isObject());
BOOST_CHECK(contract["gasEstimates"].isObject());
BOOST_CHECK_EQUAL(
dev::jsonCompactPrint(contract["gasEstimates"]),
"{\"creation\":[61,10600],\"external\":{},\"internal\":{}}"
);
BOOST_CHECK(contract["metadata"].isString());
BOOST_CHECK(dev::test::isValidMetadata(contract["metadata"].asString()));
BOOST_CHECK(result["sources"].isObject());
BOOST_CHECK(result["sources"]["fileA"].isObject());
BOOST_CHECK(result["sources"]["fileA"]["AST"].isObject());
BOOST_CHECK_EQUAL(
dev::jsonCompactPrint(result["sources"]["fileA"]["AST"]),
"{\"attributes\":{\"absolutePath\":\"fileA\",\"exportedSymbols\":{\"A\":[1]}},"
"\"children\":[{\"attributes\":{\"baseContracts\":[null],\"contractDependencies\":[null],"
"\"contractKind\":\"contract\",\"documentation\":null,\"fullyImplemented\":true,\"linearizedBaseContracts\":[1],"
"\"name\":\"A\",\"nodes\":[null],\"scope\":2},\"id\":1,\"name\":\"ContractDefinition\","
"\"src\":\"0:14:0\"}],\"id\":2,\"name\":\"SourceUnit\",\"src\":\"0:14:0\"}"
);
}
BOOST_AUTO_TEST_CASE(single_compilation)
{
Json::Value result = compileSingle("contract A { }");
BOOST_CHECK(result.isObject());
BOOST_CHECK(result["contracts"].isObject());
BOOST_CHECK(result["contracts"][":A"].isObject());
Json::Value contract = result["contracts"][":A"];
BOOST_CHECK(contract.isObject());
BOOST_CHECK(contract["interface"].isString());
BOOST_CHECK_EQUAL(contract["interface"].asString(), "[]");
BOOST_CHECK(contract["bytecode"].isString());
BOOST_CHECK_EQUAL(
dev::test::bytecodeSansMetadata(contract["bytecode"].asString()),
"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00"
);
BOOST_CHECK(contract["runtimeBytecode"].isString());
BOOST_CHECK_EQUAL(
dev::test::bytecodeSansMetadata(contract["runtimeBytecode"].asString()),
"6060604052600080fd00"
);
BOOST_CHECK(contract["functionHashes"].isObject());
BOOST_CHECK(contract["gasEstimates"].isObject());
BOOST_CHECK_EQUAL(
dev::jsonCompactPrint(contract["gasEstimates"]),
"{\"creation\":[61,10600],\"external\":{},\"internal\":{}}"
);
BOOST_CHECK(contract["metadata"].isString());
BOOST_CHECK(dev::test::isValidMetadata(contract["metadata"].asString()));
BOOST_CHECK(result["sources"].isObject());
BOOST_CHECK(result["sources"][""].isObject());
BOOST_CHECK(result["sources"][""]["AST"].isObject());
BOOST_CHECK_EQUAL(
dev::jsonCompactPrint(result["sources"][""]["AST"]),
"{\"attributes\":{\"absolutePath\":\"\",\"exportedSymbols\":{\"A\":[1]}},"
"\"children\":[{\"attributes\":{\"baseContracts\":[null],\"contractDependencies\":[null],"
"\"contractKind\":\"contract\",\"documentation\":null,\"fullyImplemented\":true,\"linearizedBaseContracts\":[1],"
"\"name\":\"A\",\"nodes\":[null],\"scope\":2},\"id\":1,\"name\":\"ContractDefinition\","
"\"src\":\"0:14:0\"}],\"id\":2,\"name\":\"SourceUnit\",\"src\":\"0:14:0\"}"
);
}
BOOST_AUTO_TEST_CASE(standard_compilation)
{
char const* input = R"(
{
"language": "Solidity",
"sources": {
"fileA": {
"content": "contract A { }"
}
}
}
)";
Json::Value result = compile(input);
BOOST_CHECK(result.isObject());
// Only tests some assumptions. The StandardCompiler is tested properly in another suite.
BOOST_CHECK(result.isMember("sources"));
BOOST_CHECK(result.isMember("contracts"));
}
BOOST_AUTO_TEST_SUITE_END()
}
}
} // end namespaces
| 31.401914 | 115 | 0.705622 | jansenbarabona |
7dc6130c25cc81c91c2ab47777fdc7ae10dee10c | 308 | cpp | C++ | src/functions.cpp | fangzhou-xie/decimal | 9439bffda0cc8bad18f0be971788516ff1f5520c | [
"MIT"
] | null | null | null | src/functions.cpp | fangzhou-xie/decimal | 9439bffda0cc8bad18f0be971788516ff1f5520c | [
"MIT"
] | null | null | null | src/functions.cpp | fangzhou-xie/decimal | 9439bffda0cc8bad18f0be971788516ff1f5520c | [
"MIT"
] | null | null | null | // define some functions
#include <Rcpp.h>
using namespace Rcpp;
#include "utils.h"
// [[Rcpp::export]]
std::string sum_decimal_cpp(std::vector<std::string> s) {
decimal<10> out;
for (size_t i = 0; i < s.size(); i++) {
auto t = read_decimal(s[i]);
out += t;
}
return toString(out);
} | 17.111111 | 57 | 0.600649 | fangzhou-xie |
7dcd354881ba4f97eca8ca38363310105ce736b8 | 572 | cpp | C++ | string-algorithms/hashing/basic_string_hashing.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | string-algorithms/hashing/basic_string_hashing.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | string-algorithms/hashing/basic_string_hashing.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*** source :->
*
* https://cp-algorithms.com/string/string-hashing.html
*
*
***/
long long computer_hash(string str)
{
const int increase = 31;
const int m = 1e9 + 9;
long long hash_value = 0;
long long p = 1;
for (int i = 0; i < str.length(); i++)
{
int dist = str[i] - 'a' + 1;
hash_value = (hash_value + (p * dist)) % m;
p = (p * increase) % m;
}
return hash_value;
}
int main()
{
string str = "coding";
cout << computer_hash(str);
return 0;
} | 17.333333 | 56 | 0.534965 | dushimsam |
7dd2919f15af955fbc9110ac596633082ae5fa40 | 360 | cpp | C++ | utils/printVector.cpp | juangl/random-algorithms | 0d5a934e8a3d23c410f6e72fb57ad5cb67d519da | [
"MIT"
] | 1 | 2019-01-12T23:58:23.000Z | 2019-01-12T23:58:23.000Z | utils/printVector.cpp | juangl/random-algorithms | 0d5a934e8a3d23c410f6e72fb57ad5cb67d519da | [
"MIT"
] | null | null | null | utils/printVector.cpp | juangl/random-algorithms | 0d5a934e8a3d23c410f6e72fb57ad5cb67d519da | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
template <class T>
void printVector(const T& vec) {
for (int i = 0; i < vec.size(); i++) {
cout << vec[i];
if (i != vec.size() - 1) {
cout << ", ";
}
}
cout << endl;
}
template <class T>
void printIter(const T& vec) {
for (const auto& e : vec) {
cout << e << " ";
}
cout << endl;
}
| 15.652174 | 40 | 0.508333 | juangl |
7dd54c8d9c7f6ef4156ffc7006c10936f187e60a | 328 | cpp | C++ | source/Item22_11/main.cpp | hakobyankhachatur/Scott-Meyers-Effective-Modern-C- | 41e78619b9622ef7f01746fdebadb5e1da005157 | [
"MIT"
] | null | null | null | source/Item22_11/main.cpp | hakobyankhachatur/Scott-Meyers-Effective-Modern-C- | 41e78619b9622ef7f01746fdebadb5e1da005157 | [
"MIT"
] | null | null | null | source/Item22_11/main.cpp | hakobyankhachatur/Scott-Meyers-Effective-Modern-C- | 41e78619b9622ef7f01746fdebadb5e1da005157 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Widget.h"
int main() {
std::cout << "Hello, World!" << std::endl;
std::shared_ptr<Widget> p1(new Widget);
std::cout<<p1.use_count()<<std::endl;
std::shared_ptr<Widget> p2(p1);
std::cout<<p1.use_count()<<std::endl;
std::cout<<p2.use_count()<<std::endl;
return 0;
}
| 18.222222 | 46 | 0.594512 | hakobyankhachatur |
7dd8063423dfb331deaeb05626cca1af90f76db3 | 1,058 | cc | C++ | geometry/visualization/visualize_nullspace_demo.cc | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 1 | 2019-04-14T11:40:28.000Z | 2019-04-14T11:40:28.000Z | geometry/visualization/visualize_nullspace_demo.cc | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | 5 | 2018-04-18T13:54:29.000Z | 2019-08-22T20:04:17.000Z | geometry/visualization/visualize_nullspace_demo.cc | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | 1 | 2018-12-24T03:45:47.000Z | 2018-12-24T03:45:47.000Z | #include "eigen.hh"
#include "geometry/visualization/visualize_nullspace.hh"
#include "viewer/primitives/simple_geometry.hh"
#include "viewer/window_3d.hh"
namespace geometry {
namespace visualization {
using Vec3 = Eigen::Vector3d;
void go() {
const auto view = viewer::get_window3d("Mr. Demo");
view->set_target_from_world(
SE3(SO3::exp(Eigen::Vector3d(-3.1415 * 0.5, 0.0, 0.0)), Eigen::Vector3d::Zero()));
const auto geo = view->add_primitive<viewer::SimpleGeometry>();
view->set_continue_time_ms(20);
const double level_set = 5.0;
const auto func = [level_set](const Eigen::VectorXd& x) {
Eigen::Matrix2d H = Eigen::Matrix2d::Identity();
H(1, 1) = 2.0;
return x.dot(H * x) - level_set;
// return x.dot(Eigen::Vector2d(std::sin(x(0)), 0.0)) - 1.0;
// return std::sin(x(0)) + (x(1) * x(1)) - 3.0;
};
visualize_nullspace(*geo, func, Eigen::VectorXd::Ones(2));
geo->flip();
view->spin_until_step();
}
} // namespace visualization
} // namespace geometry
int main() {
geometry::visualization::go();
} | 27.128205 | 88 | 0.660681 | jpanikulam |
7ddbfacb89354b289ede7f6dd88e02e9cdcf382a | 2,043 | hpp | C++ | include/locic/AST/PredicateDecl.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 80 | 2015-02-19T21:38:57.000Z | 2016-05-25T06:53:12.000Z | include/locic/AST/PredicateDecl.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 8 | 2015-02-20T09:47:20.000Z | 2015-11-13T07:49:17.000Z | include/locic/AST/PredicateDecl.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 6 | 2015-02-20T11:26:19.000Z | 2016-04-13T14:30:39.000Z | #ifndef LOCIC_AST_PREDICATEDECL_HPP
#define LOCIC_AST_PREDICATEDECL_HPP
#include <string>
#include <locic/AST/Node.hpp>
#include <locic/AST/Symbol.hpp>
#include <locic/Support/String.hpp>
namespace locic {
namespace AST {
struct TypeDecl;
class PredicateDecl {
public:
enum Kind {
TRUE,
FALSE,
SELFCONST,
BRACKET,
TYPESPEC,
SYMBOL,
AND,
OR
};
static PredicateDecl* True();
static PredicateDecl* False();
static PredicateDecl* SelfConst();
static PredicateDecl* Bracket(Node<PredicateDecl> expr);
static PredicateDecl* TypeSpec(Node<TypeDecl> type, Node<TypeDecl> requireType);
static PredicateDecl* Symbol(Node<AST::Symbol> symbol);
static PredicateDecl* And(Node<PredicateDecl> left, Node<PredicateDecl> right);
static PredicateDecl* Or(Node<PredicateDecl> left, Node<PredicateDecl> right);
PredicateDecl(const PredicateDecl&) = default;
~PredicateDecl();
Kind kind() const;
const Node<PredicateDecl>& bracketExpr() const;
Node<TypeDecl>& typeSpecType();
const Node<TypeDecl>& typeSpecType() const;
Node<TypeDecl>& typeSpecRequireType();
const Node<TypeDecl>& typeSpecRequireType() const;
const Node<AST::Symbol>& symbol() const;
const Node<PredicateDecl>& andLeft() const;
const Node<PredicateDecl>& andRight() const;
const Node<PredicateDecl>& orLeft() const;
const Node<PredicateDecl>& orRight() const;
std::string toString() const;
private:
Kind kind_;
Node<AST::Symbol> symbol_;
struct {
Node<PredicateDecl> expr;
} bracket_;
struct {
Node<TypeDecl> type;
Node<TypeDecl> requireType;
} typeSpec_;
struct {
Node<PredicateDecl> left;
Node<PredicateDecl> right;
} and_;
struct {
Node<PredicateDecl> left;
Node<PredicateDecl> right;
} or_;
PredicateDecl(Kind pKind);
};
}
}
#endif
| 20.636364 | 84 | 0.639256 | scross99 |
7de09a8863662ed3a96921dc1216de15d6dd9b56 | 593 | cpp | C++ | src/SML.cpp | aceoyale/SML | 513d60be40f1e2629b4475cfdf1b4913c1a5154a | [
"MIT"
] | 1 | 2020-10-08T09:31:54.000Z | 2020-10-08T09:31:54.000Z | src/SML.cpp | aceoyale/SML | 513d60be40f1e2629b4475cfdf1b4913c1a5154a | [
"MIT"
] | null | null | null | src/SML.cpp | aceoyale/SML | 513d60be40f1e2629b4475cfdf1b4913c1a5154a | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
#include "SMLMath.h"
#include "SMLMat1x3.h"
#include "SMLMat3x1.h"
#include "SMLMat4x4.h"
#include "SMLDef.h"
#include "SMLFunc.h"
int main()
{
Vector a(1.345, 1.23, 3.556);
SML::Vector b(2.145, 7.089, 0.0000156);
SML::Vector result(a + b);
Vector subresult(a - b);
std::cout << result.x << " " << result.y << " " << result.z << std::endl;
std::cout << " . " << std::endl;
std::cout << subresult.x << " " << subresult.y << " " << subresult.z << std::endl;
std::cout << "Hello From This Side Of The SML Library!" << std::endl;
std::cin.get();
} | 25.782609 | 83 | 0.598651 | aceoyale |
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 |
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 |
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, ¶ms);
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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:[email protected]">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 |
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 |
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 <[email protected]>
*/
#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 |
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 |
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([email protected])
/// @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 |
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 |
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 |
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*)¶ms_);
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.