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
sequencelengths
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
sequencelengths
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
sequencelengths
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
b1ea0ac93e6cee3a423b96f1fed8299f0c013860
220
cc
C++
ch03/ex3_08.cc
meishaoming/cpp_primer_5th_answer
482d60e37e8bf69c0ae83e7e98d955f76dfbffe0
[ "MIT" ]
null
null
null
ch03/ex3_08.cc
meishaoming/cpp_primer_5th_answer
482d60e37e8bf69c0ae83e7e98d955f76dfbffe0
[ "MIT" ]
null
null
null
ch03/ex3_08.cc
meishaoming/cpp_primer_5th_answer
482d60e37e8bf69c0ae83e7e98d955f76dfbffe0
[ "MIT" ]
null
null
null
#include <iostream> #include <string> int main() { std::string str; std::cin >> str; for (std::string::size_type n = 0;n < str.size(); ++n) { str[n] = 'X'; } std::cout << str << std::endl; return 0; }
14.666667
58
0.531818
meishaoming
b1ecbe3935e3c377f10c93df50bbd520e1903e7e
2,854
cc
C++
lite/kernels/xpu/yolo_box_compute.cc
Danielmic/Paddle-Lite
8bf08425035cfae077754ac72629292fac7bb996
[ "Apache-2.0" ]
808
2018-04-17T17:43:12.000Z
2019-08-18T07:39:13.000Z
lite/kernels/xpu/yolo_box_compute.cc
Danielmic/Paddle-Lite
8bf08425035cfae077754ac72629292fac7bb996
[ "Apache-2.0" ]
728
2018-04-18T08:15:25.000Z
2019-08-16T07:14:43.000Z
lite/kernels/xpu/yolo_box_compute.cc
Danielmic/Paddle-Lite
8bf08425035cfae077754ac72629292fac7bb996
[ "Apache-2.0" ]
364
2018-04-18T17:05:02.000Z
2019-08-18T03:25:38.000Z
// Copyright (c) 2019 PaddlePaddle Authors. 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. // 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 "lite/kernels/xpu/yolo_box_compute.h" #include <vector> #include "lite/backends/xpu/xpu_header_sitter.h" #include "lite/core/op_registry.h" namespace paddle { namespace lite { namespace kernels { namespace xpu { void YoloBoxCompute::Run() { auto& param = this->Param<param_t>(); auto& ctx = this->ctx_->As<XPUContext>(); auto input_dims = param.X->dims(); std::vector<int> anchors = param.anchors; CHECK_LE(anchors.size(), 6UL); const int n = input_dims[0]; const int h = input_dims[2]; const int w = input_dims[3]; const int box_num = param.Boxes->dims()[1]; const int an_num = anchors.size() / 2; int downsample_ratio = param.downsample_ratio; int class_num = param.class_num; float scale_x_y = param.scale_x_y; float bias = -0.5 * (scale_x_y - 1.); CHECK_EQ(box_num, an_num * h * w); int r = xdnn::yolo_box<float>(ctx.GetRawContext(), param.X->data<float>(), param.ImgSize->data<int>(), param.Boxes->mutable_data<float>(TARGET(kXPU)), param.Scores->mutable_data<float>(TARGET(kXPU)), n, h, w, anchors, an_num, class_num, param.conf_thresh, downsample_ratio, scale_x_y, bias, false); CHECK_EQ(r, 0); } } // namespace xpu } // namespace kernels } // namespace lite } // namespace paddle REGISTER_LITE_KERNEL(yolo_box, kXPU, kFloat, kNCHW, paddle::lite::kernels::xpu::YoloBoxCompute, def) .BindInput("X", {LiteType::GetTensorTy(TARGET(kXPU))}) .BindInput("ImgSize", {LiteType::GetTensorTy(TARGET(kXPU), PRECISION(kInt32))}) .BindOutput("Boxes", {LiteType::GetTensorTy(TARGET(kXPU))}) .BindOutput("Scores", {LiteType::GetTensorTy(TARGET(kXPU))}) .Finalize();
36.589744
80
0.563069
Danielmic
b1f20967450e189ee6b02c5be2ac19b293c8502f
9,721
hpp
C++
externals/browser/externals/browser/externals/libimgproc/imgproc/texturing.hpp
HanochZhu/vts-browser-unity-plugin
32a22d41e21b95fb015326f95e401d87756d0374
[ "BSD-2-Clause" ]
1
2021-09-02T08:42:59.000Z
2021-09-02T08:42:59.000Z
externals/browser/externals/browser/externals/libimgproc/imgproc/texturing.hpp
HanochZhu/vts-browser-unity-plugin
32a22d41e21b95fb015326f95e401d87756d0374
[ "BSD-2-Clause" ]
null
null
null
externals/browser/externals/browser/externals/libimgproc/imgproc/texturing.hpp
HanochZhu/vts-browser-unity-plugin
32a22d41e21b95fb015326f95e401d87756d0374
[ "BSD-2-Clause" ]
null
null
null
/** * Copyright (c) 2017 Melown Technologies SE * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef imgproc_texturing_hpp_included_ #define imgproc_texturing_hpp_included_ #include <vector> #include "math/geometry_core.hpp" namespace imgproc { namespace tx { /** Uv patch. */ struct UvPatch : math::Extents2 { UvPatch() : math::Extents2(math::InvalidExtents{}) {} UvPatch(const math::Extents2 &e) : math::Extents2(e) {} void inflate(double size); void update(const UvPatch &other); void update(double x, double y); template <typename T> void update(const math::Point2_<T> &point); typedef std::vector<UvPatch> list; }; UvPatch inflate(const UvPatch &uvPatch, double size); /** Texture patch. Maps source region to destination region. */ class Patch { public: struct InplaceTag {}; static InplaceTag Inplace; typedef std::vector<Patch*> list; /** Construct default, unusable patch. */ Patch() = default; /** Creates patch for given texturing coordinates bounds. * * \param uvPatch source UV patch */ Patch(const UvPatch &uvPatch); /** Manual patch creation. */ Patch(int x, int y, int width, int height); /** Places patch at given location. */ void place(const math::Point2i &location); /** Maps source texturing coordinates to destination texturing coordinates. */ math::Point2d map(const math::Point2d &uv) const; /** Maps source texturing coordinates to destination texturing coordinates. * * In place version. */ void map(const InplaceTag&, math::Point2d &uv) const; /** Maps source texturing coordinates to destination texturing coordinates. * Modifies arguments in place. */ template <typename T> void map(T &x, T &y) const; math::Point2d imap(const math::Point2d &uv) const; /** Maps destination texturing coordinates to source texturing coordinates. * * In place version. */ void imap(const InplaceTag&, math::Point2d &uv) const; /** Maps destination texturing coordinates to source texturing coordinates. * Modifies arguments in place. */ template <typename T> void imap(T &x, T &y) const; /** Whole pixel rectangle circumscribed around subpixel patch. */ struct Rect { math::Point2i point; math::Size2i size; Rect() = default; Rect(const Rect&) = default; Rect(const UvPatch &uvPatch); /** Manual rectangle creation. */ Rect(int x, int y, int width, int height); typedef std::vector<Rect> list; }; const Rect& src() const { return src_; } const Rect& dst() const { return dst_; } const math::Size2& size() const { return src_.size; } int width() const { return src_.size.width; } int height() const { return src_.size.height; } /** Clips source rectangle to given limits and updates destination one * accordingly. */ Patch& srcClip(const math::Size2 &limits); /** Clips source rectangle to given limits and updates destination one * accordingly. */ Patch& srcClip(int width, int height); /** Returns patch for source rectangle clipped to given limits. */ Patch srcClipped(const math::Size2 &limits) const; /** Returns patch for source rectangle clipped to given limits. */ Patch srcClipped(int width, int height) const; private: /** Source rectangle. */ Rect src_; /** Destination rectangle. */ Rect dst_; /** Mapping between source and destination texturing coordinates. */ math::Point2 shift_; }; /** Packs texture patches. * Returns size of resulting texture. */ math::Size2 pack(Patch::list &patches); /** Packs texture patches. * Returns size of resulting texture. * * Const vector interface. */ math::Size2 pack(const Patch::list &patches); /** Generate container. * Function Patch* asPatch(*iterator) must exist. */ template <typename Iterator> math::Size2 pack(Iterator begin, Iterator end); /** Default implementaion of asPatch for, well, patch itself. */ Patch* asPatch(Patch &patch); // inlines /** * To cover all source pixels for bilinear interpolation we have to have all 4 * pixels aroud extreme patch edges, therefore we have to fix the extens as * follows: * * ll' = floor(ll - half pixel) * ur' = ceil(ur + half pixel) * * +1 is to get count of pixels between ll' (inclusive) and ur' (inclusive). */ inline Patch::Rect::Rect(const UvPatch &uvPatch) : point(int(std::floor(uvPatch.ll(0) - 0.5)) , int(std::floor(uvPatch.ll(1) - 0.5))) , size(int(std::ceil(uvPatch.ur(0) + 0.5) - point(0) + 1) , int(std::ceil(uvPatch.ur(1) + 0.5) - point(1) + 1)) {} inline Patch::Rect::Rect(int x, int y, int width, int height) : point(x, y), size(width, height) {} inline Patch::Patch(const UvPatch &uvPatch) : src_(uvPatch), dst_(src_) {} inline Patch::Patch(int x, int y, int width, int height) : src_(x, y, width, height), dst_(src_) {} inline void Patch::place(const math::Point2i &location) { dst_.point = location; shift_(0) = dst_.point(0) - src_.point(0); shift_(1) = dst_.point(1) - src_.point(1); } inline math::Point2d Patch::map(const math::Point2d &uv) const { return { uv(0) + shift_(0), uv(1) + shift_(1) }; } inline void Patch::map(const InplaceTag&, math::Point2d &uv) const { uv(0) += shift_(0); uv(1) += shift_(1); } template <typename T> void Patch::map(T &x, T &y) const { x += shift_(0); y += shift_(1); } inline math::Point2d Patch::imap(const math::Point2d &uv) const { return { uv(0) - shift_(0), uv(1) - shift_(1) }; } inline void Patch::imap(const InplaceTag&, math::Point2d &uv) const { uv(0) -= shift_(0); uv(1) -= shift_(1); } template <typename T> void Patch::imap(T &x, T &y) const { x -= shift_(0); y -= shift_(1); } inline void UvPatch::inflate(double size) { auto &self(static_cast<math::Extents2&>(*this)); self = self + size; } inline UvPatch inflate(const UvPatch &uvPatch, double size) { return static_cast<const math::Extents2&>(uvPatch) + size; } inline void UvPatch::update(double x, double y) { math::update(*this, double(x), double(y)); } inline void UvPatch::update(const UvPatch &other) { math::update(*this, other.ll); math::update(*this, other.ur); } template <typename T> void UvPatch::update(const math::Point2_<T> &point) { update(point(0), point(1)); } inline math::Size2 pack(const Patch::list &patches) { auto copy(patches); return pack(copy); } template <typename Iterator> math::Size2 pack(Iterator begin, Iterator end) { Patch::list patches; for (; begin != end; ++begin) { patches.push_back(asPatch(*begin)); } return pack(patches); } inline Patch* asPatch(Patch &patch) { return &patch; } inline Patch& Patch::srcClip(int width, int height) { auto &sp(src_.point); auto &ss(src_.size); auto &dp(dst_.point); auto &ds(dst_.size); // clip origin to zero, update destination accordingly if (sp(0) < 0) { ss.width += sp(0); ds.width += sp(0); dp(0) -= sp(0); sp(0) = 0; } if (sp(1) < 0) { ss.height += sp(1); ds.height += sp(1); dp(1) -= sp(1); sp(1) = 0; } // clip length // compute overflow in x and y const auto xo(sp(0) + ss.width - width); const auto yo(sp(1) + ss.height - height); // and apply to width if (xo > 0) { ss.width -= xo; ds.width -= xo; } if (yo > 0) { ss.height -= yo; ds.height -= yo; } return *this; } inline Patch& Patch::srcClip(const math::Size2 &limits) { return srcClip(limits.width, limits.height); } inline Patch Patch::srcClipped(int width, int height) const { return Patch(*this).srcClip(width, height); } inline Patch Patch::srcClipped(const math::Size2 &limits) const { return srcClipped(limits.width, limits.height); } template<typename CharT, typename Traits> inline std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits> &os, const Patch::Rect &r) { std::ios::fmtflags flags(os.flags()); os << r.size << std::showpos << r.point(0) << r.point(1); os.flags(flags); return os; } } } // namespace imgproc::tx #endif // imgproc_texturing_hpp_included_
25.785146
79
0.648596
HanochZhu
5901a00f4c8f434ae1e55975d204d108040cb80b
1,443
cpp
C++
Jacobi_vs_Gauss_Siedel/main.cpp
soumyasen1809/CFD_NPTEL_IITKGP
b747955650b37fbdb9a006f2292deb1b78fae6b9
[ "MIT" ]
2
2021-06-17T21:54:14.000Z
2021-07-06T02:18:10.000Z
Jacobi_vs_Gauss_Siedel/main.cpp
soumyasen1809/CFD_NPTEL_IITKGP
b747955650b37fbdb9a006f2292deb1b78fae6b9
[ "MIT" ]
null
null
null
Jacobi_vs_Gauss_Siedel/main.cpp
soumyasen1809/CFD_NPTEL_IITKGP
b747955650b37fbdb9a006f2292deb1b78fae6b9
[ "MIT" ]
null
null
null
//Equation to solve: 5x1 + x2 = 7 ; x1 + 5x2 = 11 #include <iostream> int main() { double x_1 = 0.01; // Initialize x1 = 0 double x_1_new = 0.0; double x_2 = 0.01; // Initialize x2 = 0 double x_2_new = 0.0; double eps = 1.0; // Tolerance limit epsilon, initialized to 1 int count_steps_jac = 0; // Jacobi iterative method while (eps > 0.01){ x_1_new = (7-x_2)/5.0; x_2_new = (11-x_1)/5.0; eps = x_1_new - x_1; x_1 = x_1_new; x_2 = x_2_new; count_steps_jac++; } std::cout << "X1 for Jacobi method: " << x_1 << std::endl; std::cout << "X2 for Jacobi method: " << x_2 << std::endl; std::cout << "Number of steps taken for Jacobi method: " << count_steps_jac << std::endl; // Gauss Siedel Iterative method eps = 1.0; // Tolerance limit reset int count_steps_gaus = 0; x_1 = 0.01; x_1_new = x_1; // Initialize x_1_new as x_1 x_2 = 0.01; x_2_new = x_2; // Initialize x_2_new as x_2 while (eps > 0.01){ x_1_new = (7-x_2_new)/5.0; x_2_new = (11-x_1_new)/5.0; eps = x_1_new - x_1; x_1 = x_1_new; x_2 = x_2_new; count_steps_gaus++; } std::cout << "X1 for Gauss Siedel method: " << x_1 << std::endl; std::cout << "X2 for Gauss Siedel method: " << x_2 << std::endl; std::cout << "Number of steps taken for Gauss Siedel method: " << count_steps_gaus << std::endl; }
23.655738
100
0.567568
soumyasen1809
5901d82d0a22a5068e980d0f5bb02a5223fcacad
9,176
cpp
C++
3D_Mathematics_Engine/3D_Mathematics_Engine/Matrix.cpp
ConfuzzledBovv/GameEngineDevelopment
ef8b1a370fd09ca3fff3582f766b1d723cdcd7f1
[ "Apache-2.0" ]
null
null
null
3D_Mathematics_Engine/3D_Mathematics_Engine/Matrix.cpp
ConfuzzledBovv/GameEngineDevelopment
ef8b1a370fd09ca3fff3582f766b1d723cdcd7f1
[ "Apache-2.0" ]
null
null
null
3D_Mathematics_Engine/3D_Mathematics_Engine/Matrix.cpp
ConfuzzledBovv/GameEngineDevelopment
ef8b1a370fd09ca3fff3582f766b1d723cdcd7f1
[ "Apache-2.0" ]
null
null
null
#include "Matrix.h" #include "iostream" namespace Maths { Matrix::Matrix() { // If no data is given then set as identity matrix for (int i = 0; i < 9; i++) { matrixData[i] = 0; } matrixData[0] = matrixData[4] = matrixData[8] = 1.0f; } Matrix::Matrix(float matrix0, float matrix3, float matrix6, float matrix1, float matrix4, float matrix7, float matrix2, float matrix5, float matrix8) { matrixData[0] = matrix0; matrixData[3] = matrix3; matrixData[6] = matrix6; matrixData[1] = matrix1; matrixData[4] = matrix4; matrixData[7] = matrix7; matrixData[2] = matrix2; matrixData[5] = matrix5; matrixData[8] = matrix8; } Matrix & Matrix::operator=(const Matrix & matrix) { for (int i = 0; i <= 8; i++) { matrixData[i] = matrix.matrixData[i]; } return *this; } Matrix::~Matrix() { } void Matrix::Show() { std::cout << matrixData[0] << ", " << matrixData[3] << ", " << matrixData[6] << std::endl; std::cout << matrixData[1] << ", " << matrixData[4] << ", " << matrixData[7] << std::endl; std::cout << matrixData[2] << ", " << matrixData[5] << ", " << matrixData[8] << std::endl; } Matrix Matrix::operator+(const Matrix & matrix) { return Matrix(matrixData[0] + matrix.matrixData[0], matrixData[3] + matrix.matrixData[3], matrixData[6] + matrix.matrixData[6], matrixData[1] + matrix.matrixData[1], matrixData[4] + matrix.matrixData[4], matrixData[7] + matrix.matrixData[7], matrixData[2] + matrix.matrixData[2], matrixData[5] + matrix.matrixData[5], matrixData[8] + matrix.matrixData[8]); } void Matrix::operator+=(const Matrix & matrix) { for (int i = 0; i <= 8; i++) { matrixData[i] += matrix.matrixData[i]; } } Matrix Matrix::operator-(const Matrix & matrix) { return Matrix(matrixData[0] - matrix.matrixData[0], matrixData[3] - matrix.matrixData[3], matrixData[6] - matrix.matrixData[6], matrixData[1] - matrix.matrixData[1], matrixData[4] - matrix.matrixData[4], matrixData[7] - matrix.matrixData[7], matrixData[2] - matrix.matrixData[2], matrixData[5] - matrix.matrixData[5], matrixData[8] - matrix.matrixData[8]); } void Matrix::operator-=(const Matrix & matrix) { for (int i = 0; i <= 8; i++) { matrixData[i] -= matrix.matrixData[i]; } } Matrix Matrix::operator*(const float Multiplication) { return Matrix(matrixData[0] * Multiplication, matrixData[3] * Multiplication, matrixData[6] * Multiplication, matrixData[1] * Multiplication, matrixData[4] * Multiplication, matrixData[7] * Multiplication, matrixData[2] * Multiplication, matrixData[5] * Multiplication, matrixData[8] * Multiplication); } void Matrix::operator*=(const float Multiplication) { for (int i = 0; i <= 8; i++) { matrixData[i] *= Multiplication; } } Matrix Matrix::operator/(const float Division) { return Matrix(matrixData[0] / Division, matrixData[3] / Division, matrixData[6] / Division, matrixData[1] / Division, matrixData[4] / Division, matrixData[7] / Division, matrixData[2] / Division, matrixData[5] / Division, matrixData[8] / Division); } void Matrix::operator/=(const float Division) { for (int i = 0; i <= 8; i++) { matrixData[i] /= Division; } } Matrix Matrix::operator*(const Matrix & matrix) { return Matrix(matrixData[0] * matrix.matrixData[0] + matrixData[3] * matrix.matrixData[1] + matrixData[6] * matrix.matrixData[2], matrixData[0] * matrix.matrixData[3] + matrixData[3] * matrix.matrixData[4] + matrixData[6] * matrix.matrixData[5], matrixData[0] * matrix.matrixData[6] + matrixData[3] * matrix.matrixData[7] + matrixData[6] * matrix.matrixData[8], matrixData[1] * matrix.matrixData[0] + matrixData[4] * matrix.matrixData[1] + matrixData[7] * matrix.matrixData[2], matrixData[1] * matrix.matrixData[3] + matrixData[4] * matrix.matrixData[4] + matrixData[7] * matrix.matrixData[5], matrixData[1] * matrix.matrixData[6] + matrixData[4] * matrix.matrixData[7] + matrixData[7] * matrix.matrixData[8], matrixData[2] * matrix.matrixData[0] + matrixData[5] * matrix.matrixData[1] + matrixData[8] * matrix.matrixData[2], matrixData[2] * matrix.matrixData[3] + matrixData[5] * matrix.matrixData[4] + matrixData[8] * matrix.matrixData[5], matrixData[2] * matrix.matrixData[6] + matrixData[5] * matrix.matrixData[7] + matrixData[8] * matrix.matrixData[8]); } void Matrix::operator*=(const Matrix & matrix) { matrixData[0] = matrixData[0] * matrix.matrixData[0] + matrixData[3] * matrix.matrixData[1] + matrixData[6] * matrix.matrixData[2]; matrixData[3] = matrixData[0] * matrix.matrixData[3] + matrixData[3] * matrix.matrixData[4] + matrixData[6] * matrix.matrixData[5]; matrixData[6] = matrixData[0] * matrix.matrixData[6] + matrixData[3] * matrix.matrixData[7] + matrixData[6] * matrix.matrixData[8]; matrixData[1] = matrixData[1] * matrix.matrixData[0] + matrixData[4] * matrix.matrixData[1] + matrixData[7] * matrix.matrixData[2]; matrixData[4] = matrixData[1] * matrix.matrixData[3] + matrixData[4] * matrix.matrixData[4] + matrixData[7] * matrix.matrixData[5]; matrixData[7] = matrixData[1] * matrix.matrixData[6] + matrixData[4] * matrix.matrixData[7] + matrixData[7] * matrix.matrixData[8]; matrixData[2] = matrixData[2] * matrix.matrixData[0] + matrixData[5] * matrix.matrixData[1] + matrixData[8] * matrix.matrixData[2]; matrixData[5] = matrixData[2] * matrix.matrixData[3] + matrixData[5] * matrix.matrixData[4] + matrixData[8] * matrix.matrixData[5]; matrixData[8] = matrixData[2] * matrix.matrixData[6] + matrixData[5] * matrix.matrixData[7] + matrixData[8] * matrix.matrixData[8]; } void Matrix::SetAsIdentityMatrix() { for (int i = 0; i <= 8; i++) { matrixData[i] = 0.0f; } matrixData[0] = matrixData[4] = matrixData[8] = 1.0f; } void Matrix::SetMatrixAsInverseOf(const Matrix & matrix) { float detCalc[6]; detCalc[0] = matrix.matrixData[0] * matrix.matrixData[4]; detCalc[1] = matrix.matrixData[0] * matrix.matrixData[7]; detCalc[2] = matrix.matrixData[3] * matrix.matrixData[1]; detCalc[3] = matrix.matrixData[6] * matrix.matrixData[1]; detCalc[4] = matrix.matrixData[3] * matrix.matrixData[2]; detCalc[5] = matrix.matrixData[6] * matrix.matrixData[2]; float determinant = (detCalc[0] * matrix.matrixData[8] - detCalc[1] * matrix.matrixData[5] - detCalc[2] * matrix.matrixData[8] + detCalc[3] * matrix.matrixData[5] + detCalc[4] * matrix.matrixData[7] - detCalc[5] * matrix.matrixData[4]); if (determinant == 0.0f) { return; } float invd = 1.0f / determinant; float inverseCalc[9]; inverseCalc[0] = (matrix.matrixData[4] * matrix.matrixData[8] - matrix.matrixData[7] * matrix.matrixData[5]) * invd; inverseCalc[3] =-(matrix.matrixData[3] * matrix.matrixData[8] - matrix.matrixData[6] * matrix.matrixData[5]) * invd; inverseCalc[6] = (matrix.matrixData[3] * matrix.matrixData[7] - matrix.matrixData[6] * matrix.matrixData[4]) * invd; inverseCalc[1] =-(matrix.matrixData[1] * matrix.matrixData[8] - matrix.matrixData[7] * matrix.matrixData[2]) * invd; inverseCalc[4] = (matrix.matrixData[0] * matrix.matrixData[8] - detCalc[5]) * invd; inverseCalc[7] =-(detCalc[1] - detCalc[3]) * invd; inverseCalc[2] = (matrix.matrixData[1] * matrix.matrixData[5] - matrix.matrixData[4] * matrix.matrixData[2]) * invd; inverseCalc[5] =-(matrix.matrixData[0] * matrix.matrixData[5] - detCalc[4]) * invd; inverseCalc[8] = (detCalc[0] - detCalc[2]) * invd; matrixData[0] = inverseCalc[0]; matrixData[3] = inverseCalc[3]; matrixData[6] = inverseCalc[6]; matrixData[1] = inverseCalc[1]; matrixData[4] = inverseCalc[4]; matrixData[7] = inverseCalc[7]; matrixData[2] = inverseCalc[2]; matrixData[5] = inverseCalc[5]; matrixData[8] = inverseCalc[8]; } const Matrix Matrix::GetInverseOfMatrix() { Matrix Result; Result.SetMatrixAsInverseOf(*this); return Result; } void Matrix::InvertMatrix() { SetMatrixAsInverseOf(*this); } void Matrix::SetTranspose(const Matrix & matrix) { matrixData[0] = matrix.matrixData[0]; matrixData[3] = matrix.matrixData[1]; matrixData[6] = matrix.matrixData[2]; matrixData[1] = matrix.matrixData[3]; matrixData[4] = matrix.matrixData[4]; matrixData[7] = matrix.matrixData[5]; matrixData[2] = matrix.matrixData[6]; matrixData[5] = matrix.matrixData[7]; matrixData[8] = matrix.matrixData[8]; } const Matrix Matrix::GetTranspose() { Matrix Result; Result.SetTranspose(*this); return Result; } Vector3D Matrix::operator*(const Vector3D & vector) { return Vector3D(matrixData[0] * vector.x + matrixData[3] * vector.y + matrixData[6] * vector.z, matrixData[1] * vector.x + matrixData[4] * vector.y + matrixData[7] * vector.z, matrixData[2] * vector.x + matrixData[5] * vector.y + matrixData[8] * vector.z); } Vector3D Matrix::TransformVectorByMatrix(const Vector3D & vector) { return(*this * vector); } }
39.551724
167
0.654425
ConfuzzledBovv
5902ed7a0dab756a28e36d2062017b05b0f8bd9b
23,154
cpp
C++
source/prt_lines_continuum.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
source/prt_lines_continuum.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
source/prt_lines_continuum.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
/* This file is part of Cloudy and is copyright (C)1978-2019 by Gary J. Ferland and * others. For conditions of distribution and use see copyright notice in license.txt */ /*lines_continuum put energetics, H, and He lines into line intensity stack */ #include "cddefines.h" #include "taulines.h" #include "iso.h" #include "geometry.h" #include "heavy.h" #include "dense.h" #include "prt.h" #include "opacity.h" #include "coolheavy.h" #include "phycon.h" #include "rfield.h" #include "predcont.h" #include "radius.h" #include "continuum.h" #include "lines.h" #include "freebound.h" #include "lines_service.h" void lines_continuum(void) { double f1, f2 , bac , flow; long i,nBand; DEBUG_ENTRY( "lines_continuum()" ); /* code has all local emissivities zeroed out with cryptic comment about being * situation dependent. Why? this is option to turn back on */ const bool KILL_CONT = false; i = StuffComment( "continua" ); linadd( 0., (realnum)i , "####", 'i', " start continua"); /* these entries only work correctly if the APERTURE command is not in effect */ if( geometry.iEmissPower == 2 ) { /*********************************************************************** * stuff in Bac ratio - continuum above the Balmer Jump * this is trick, zeroing out saved continuum integrated so far, * and adding the current version, so that the line array gives the * value in the final continuum * * reflected continuum is different from others since relative to inner * radius, others for for this radius *************************************************************************/ /** \todo 2 this block of lines should have nInu, InwT, InwC like main vector of continuum points */ /*************************************************************************** * "Bac " , 3646, this is residual continuum at peak of Balmer Jump * flux below - flux above ***************************************************************************/ /* >>chng 00 dec 02, remove opac.tmn */ /* >>chng 00 dec 19, remove / radius.GeoDil */ /* extrapolated continuum above head */ /* >>chng 01 jul 13, from ConInterOut to ConEmitOut */ f1 = (rfield.ConEmitOut[0][iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-1] + rfield.ConEmitReflec[0][iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-1]/radius.r1r0sq )/ rfield.widflx(iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-1); /* extrapolated continuum below head */ /* >>chng 00 dec 19, remove / radius.GeoDil */ f2 = (rfield.ConEmitOut[0][iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-2]+ rfield.ConEmitReflec[0][iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-2]/radius.r1r0sq )/ rfield.widflx(iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-2); /* convert to nuFnu units */ f1 = f1*0.250*0.250*EN1RYD*radius.r1r0sq; f2 = f2*0.250*0.250*EN1RYD*radius.r1r0sq; bac = (f1 - f2); /* memory not allocated until ipass >= 0 * clear summed intrinsic and emergent intensity of following * entry - following call to linadd will enter the total and * keep entering the total but is done for each zone hence need to * keep resetting to zero*/ if( LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum].SumLineZero(); } linadd(MAX2(0.,bac)/radius.dVeffAper,3646,"Bac ",'i', "residual flux at head of Balmer continuum, nuFnu "); /* >>chng 03 feb 06, set to zero */ /* emslin saves the per unit vol emissivity of a line, which is normally * what goes into linadd. We zero this unit emissivity which was set * FOR THE PREVIOUS LINE since it is so situation dependent */ if( KILL_CONT && LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum-1].emslinZero(); } /* memory not allocated until ipass >= 0 */ if( LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum].SumLineZero(); } linadd(f1/radius.dVeffAper,3645,"nFnu",'i', "total flux above head of Balmer continuum, nuFnu "); /* >>chng 03 feb 06, set to zero */ /* emslin saves the per unit vol emissivity of a line, which is normally * what goes into linadd. We zero this unit emissivity which was set * FOR THE PREVIOUS LINE since it is so situation dependent */ if( KILL_CONT && LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum-1].emslinZero(); } /* memory not allocated until ipass >= 0 */ if( LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum].SumLineZero(); } linadd(f2/radius.dVeffAper,3647,"nFnu",'i', "total flux above head of Balmer continuum, nuFnu "); /* >>chng 03 feb 06, set to zero */ /* emslin saves the per unit vol emissivity of a line, which is normally * what goes into linadd. We zero this unit emissivity which was set * FOR THE PREVIOUS LINE since it is so situation dependent */ if( KILL_CONT && LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum-1].emslinZero(); } /****************************************************************************** * "cout" , 3646, this is outward residual continuum at peak of Balmer Jump * * equal to total in spherical geometry, half in opt thin open geometry * ******************************************************************************/ /* >>chng 00 dec 02, remove opac.tmn */ /* >>chng 00 dec 19, remove / radius.GeoDil */ f1 = rfield.ConEmitOut[0][iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-1]/ rfield.widflx(iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-1); /* >>chng 00 dec 19, remove / radius.GeoDil */ f2 = rfield.ConEmitOut[0][iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-2]/ rfield.widflx(iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-2); /* net Balmer jump */ bac = (f1 - f2)*0.250*0.250*EN1RYD*radius.r1r0sq; /* memory not allocated until ipass >= 0 */ if( LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum].SumLineZero(); } linadd(MAX2(0.,bac)/radius.dVeffAper,3646,"cout",'i', "residual flux in Balmer continuum, nuFnu "); /* >>chng 03 feb 06, set to zero */ /* emslin saves the per unit vol emissivity of a line, which is normally * what goes into linadd. We zero this unit emissivity which was set * FOR THE PREVIOUS LINE since it is so situation dependent */ if( KILL_CONT && LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum-1].emslinZero(); } /********************************************************************* * "cref" , 3646, this is reflected continuum at peak of Balmer Jump* * equal to zero in spherical geometry, half of total in op thin opn * *********************************************************************/ /* >>chng 00 dec 02, remove opac.tmn */ /* >>chng 00 dec 19, remove / radius.GeoDil */ f1 = rfield.ConEmitReflec[0][iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-1]/ rfield.widflx(iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-1); f2 = rfield.ConEmitReflec[0][iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-2]/ rfield.widflx(iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-2); /* net Balmer jump */ bac = (f1 - f2)*0.250*0.250*EN1RYD; /* memory not allocated until ipass >= 0 */ if( LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum].SumLineZero(); } linadd(MAX2(0.,bac)/radius.dVeffAper,3646,"cref",'i', "residual flux in Balmer continuum, nuFnu "); /* >>chng 03 feb 06, set to zero */ /* emslin saves the per unit vol emissivity of a line, which is normally * what goes into linadd. We zero this unit emissivity which was set * FOR THE PREVIOUS LINE since it is so situation dependent */ if( KILL_CONT && LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum-1].emslinZero(); } /********************************************************************* * "thin" , 3646, tot optically thin continuum at peak of Balmer Jump*/ if( nzone > 0 ) { /* rfield.ConEmitLocal is not defined initially, only evaluate when into model */ f1 = rfield.ConEmitLocal[nzone][iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-1]/ rfield.widflx(iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-1); f2 = rfield.ConEmitLocal[nzone][iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-2]/ rfield.widflx(iso_sp[ipH_LIKE][ipHYDROGEN].fb[2].ipIsoLevNIonCon-2); } else { f1 = 0.; f2 = 0.; } bac = (f1 - f2)*0.250*0.250*EN1RYD; linadd(MAX2(0.,bac),3646,"thin",'i', "residual flux in Balmer continuum, nuFnu "); linadd(continuum.cn4861/radius.dVeffAper,4860,"Inci",'i', "incident continuum nu*f_nu at H-beta, at illuminated face of cloud "); linadd(continuum.cn1367/radius.dVeffAper,1367,"Inci",'i', "incident continuum nu*f_nu in FUV 1367A but out of Lya damping wings, at illuminated face of cloud"); linadd(continuum.cn2066/radius.dVeffAper,2066,"Inci",'i', "incident continuum nu*f_nu in FUV 2066A at illuminated face of cloud"); linadd(continuum.cn1216/radius.dVeffAper,1215,"Inci",'i', "incident continuum nu*f_nu near Ly-alpha, at illuminated face of cloud"); if( LineSave.ipass > 0 ) { continuum.cn4861 = 0.; continuum.cn1216 = 0.; continuum.cn1367 = 0.; continuum.cn2066 = 0.; } } flow = (iso_sp[ipH_LIKE][ipHYDROGEN].fb[ipH2p].RadRecomb[ipRecRad] + iso_sp[ipH_LIKE][ipHYDROGEN].fb[ipH2s].RadRecomb[ipRecRad])* iso_sp[ipH_LIKE][ipHYDROGEN].fb[ipH2p].RadRecomb[ipRecEsc]* dense.eden*dense.xIonDense[ipHYDROGEN][1]* 5.45e-12; linadd(flow,0,"Ba C",'i', "integrated Balmer continuum emission"); if( iso_sp[ipH_LIKE][ipHYDROGEN].n_HighestResolved_max >= 3 ) { flow = ( iso_sp[ipH_LIKE][ipHYDROGEN].fb[ipH3s].RadRecomb[ipRecRad]* iso_sp[ipH_LIKE][ipHYDROGEN].fb[ipH3s].RadRecomb[ipRecEsc] + iso_sp[ipH_LIKE][ipHYDROGEN].fb[ipH3p].RadRecomb[ipRecRad]* iso_sp[ipH_LIKE][ipHYDROGEN].fb[ipH3p].RadRecomb[ipRecEsc] + iso_sp[ipH_LIKE][ipHYDROGEN].fb[ipH3d].RadRecomb[ipRecRad]* iso_sp[ipH_LIKE][ipHYDROGEN].fb[ipH3d].RadRecomb[ipRecEsc] ) * dense.eden*dense.xIonDense[ipHYDROGEN][1]*3.53e-12; } else { flow = iso_sp[ipH_LIKE][ipHYDROGEN].fb[3].RadRecomb[ipRecRad]* iso_sp[ipH_LIKE][ipHYDROGEN].fb[3].RadRecomb[ipRecEsc]* dense.eden*dense.xIonDense[ipHYDROGEN][1]*3.53e-12; } linadd(flow,0,"PA C",'i', "Paschen continuum emission "); /* these are a series of continuum bands defined in the file * continuum_bands.ini - this makes it possible to enter any * integrated total emission into the emission-line stack */ /* these entries only work correctly if the APERTURE command is not in effect */ if( geometry.iEmissPower == 2 ) { for( nBand=0; nBand < continuum.nContBand; ++nBand ) { double EmergentContinuum = 0.; double DiffuseEmission = 0.; if( LineSave.ipass > 0 ) { /* find total emission over band - units will be erg cm-2 s-1 */ for( i=continuum.ipContBandLow[nBand]; i<=continuum.ipContBandHi[nBand]; ++i ) { // correction for fraction of low or hi cell // that lies within the band double EdgeCorrection = 1.; if( i==continuum.ipContBandLow[nBand] ) EdgeCorrection = continuum.BandEdgeCorrLow[nBand]; else if( i==continuum.ipContBandHi[nBand]) EdgeCorrection = continuum.BandEdgeCorrHi[nBand]; double xIntenOut = /* the attenuated incident continuum */ flux_correct_isotropic( 0, i-1 ) + // the outward emitted continuous radiation field (rfield.ConEmitOut[0][i-1] + /* outward emitted lines */ rfield.outlin[0][i-1])*geometry.covgeo; xIntenOut *= EdgeCorrection; /* div by opac.E2TauAbsFace[i] because ConEmitReflec has already * been corrected for this - emergent_line will introduce a * further correction so this will cancel the extra factor */ /* NB: Comparison to 1e-37 suppresses overflows when realnum * is double (FLT_IS_DBL). */ double xIntenIn = 0.; if( opac.E2TauAbsFace[i-1] > 1e-37 ) xIntenIn = (double)rfield.ConEmitReflec[0][i-1]/ (double)opac.E2TauAbsFace[i-1]*geometry.covgeo; /* outward emitted lines */ xIntenIn += rfield.reflin[0][i-1]*geometry.covgeo; xIntenIn *= EdgeCorrection; /* the fraction of this that gets out */ EmergentContinuum += rfield.anu(i-1) * emergent_line( xIntenIn , xIntenOut , i ) / SDIV(opac.tmn[i-1]); // diffuse local emission DiffuseEmission += (rfield.ConEmitLocal[nzone][i-1] + rfield.DiffuseLineEmission[i-1])*rfield.anu(i-1)* EdgeCorrection; } } /* we will call lindst with an energy half way between the two * ends of the band. This will make an extinction correction that * has already been applied above by multiplying by emergent_line. * Find this factor and remove it before the call */ double corr = emergent_line( 0.5 , 0.5 , (continuum.ipContBandLow[nBand]+continuum.ipContBandHi[nBand])/2 ); /* NB: Comparison to 1e-37 suppresses overflows when realnum * is double (FLT_IS_DBL). */ if( corr < 1e-37 ) EmergentContinuum = 0.; else EmergentContinuum /= corr; /* convert to physical units */ EmergentContinuum *= EN1RYD*radius.r1r0sq/radius.dVeffAper; DiffuseEmission *= EN1RYD; /* memory not allocated until ipass >= 0 */ if( LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum].SumLineZero(); } lindst( EmergentContinuum, // the negative wavelength is a sentinel that the wavelength // may be bogus - very often the "center" of the band, as defined // by observers, is far to the blue end of the range. use the // observed definition of the wavelength. This introduces an error // since the wavelength is used to determine the transfer of the // band against background opacities -continuum.ContBandWavelength[nBand], continuum.chContBandLabels[nBand].c_str(), (continuum.ipContBandLow[nBand]+continuum.ipContBandHi[nBand])/2, 't', false, "continuum bands defined in continuum_bands.ini"); // emissivity has no meaning for these bands - quantity is net // transmitted radiation field if( LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum-1].emslinSet(0,DiffuseEmission); LineSave.lines[LineSave.nsum-1].emslinThin(); } } } linadd(MAX2(0.,CoolHeavy.brems_cool_net),0,"HFFc",'c', "net free-free cooling, ALL species, free-free heating subtracted, so nearly cancels with cooling in LTE "); linadd(MAX2(0.,-CoolHeavy.brems_cool_net),0,"HFFh",'h', "net free-free heating, nearly cancels with cooling in LTE "); linadd(CoolHeavy.brems_cool_h,0,"H FF",'i', " H brems (free-free) cooling "); linadd(CoolHeavy.brems_heat_total,0,"FF H",'i', "total free-free heating "); linadd(CoolHeavy.brems_cool_he,0,"HeFF",'i', "He brems emission "); linadd(CoolHeavy.heavfb,0,"MeFB",'c', "heavy element recombination cooling "); linadd(CoolHeavy.brems_cool_metals,0,"MeFF",'i', "heavy elements (metals) brems cooling, heat not subtracted "); linadd(CoolHeavy.brems_cool_h+CoolHeavy.brems_cool_he+CoolHeavy.brems_cool_metals,0,"ToFF",'i', "total brems emission - total cooling but not minus heating "); linadd((CoolHeavy.brems_cool_h+CoolHeavy.brems_cool_he)*sexp(5.8e6/phycon.te),0,"FF X",'i', "part of H brems, in x-ray beyond 0.5KeV "); linadd(CoolHeavy.eebrm,0,"eeff",'c', "electron - electron brems "); linadd(CoolHeavy.colmet,0,"Mion",'c', " cooling due to collisional ionization of heavy elements" ); /* predict emitted continuum at series of continuum points */ /* class is located in predcont.h, * PredCont - contains vector of pair of Energy and ip where * we want to predict the continuum, * * the entry nFnu will only be printed if the command * print diffuse continuum * is entered - * * this code should be kept parallel with that in dopunch, where * save continuum is produced, since two must agree */ t_PredCont& PredCont = t_PredCont::Inst(); if( LineSave.ipass == 0 ) PredCont.set_offset(LineSave.nsum); /* these entries only work correctly if the APERTURE command is not in effect */ if( geometry.iEmissPower == 2 ) { for( i=0; i < long(PredCont.size()); i++ ) { double SourceTransmitted , Cont_nInu; double SourceReflected, DiffuseOutward, DiffuseInward; double renorm; /* put wavelength in Angstroms into dummy structure, so that we can use iWavLen * to get a proper wavelength with units, continuum energies are stored in PredCont */ (*TauDummy).WLAng() = (realnum)PredCont[i].Angstrom(); /*lambda = iWavLen(TauDummy , &chUnits , &chShift );*/ /* >>chng 00 dec 02, there were three occurrences of /opac.tmn which had the * effect of raising the summed continuum by the local opacity correction factor. * in the case of the Lyman continuum this raised the reported value by orders * of magnitude. There have been commented out in the following for now. */ /* reflected total continuum (diff+incident emitted inward direction) */ /* >>chng 00 dec 08, implement the "set nFnu [SOURCE_REFLECTED] ... command, PvH */ /* >>chng 00 dec 19, remove / radius.GeoDil */ renorm = rfield.anu2(PredCont[i].ip_C())*EN1RYD/rfield.widflx(PredCont[i].ip_C()); /* this is the reflected diffuse continuum */ if( prt.lgDiffuseInward ) { DiffuseInward = rfield.ConEmitReflec[0][PredCont[i].ip_C()]*renorm; } else { DiffuseInward = 0.; } /* the outward diffuse continuum */ if( prt.lgDiffuseOutward ) { DiffuseOutward = rfield.ConEmitOut[0][PredCont[i].ip_C()]*renorm*radius.r1r0sq; } else { DiffuseOutward = 0.; } /* reflected part of INCIDENT continuum (only incident, not diffuse, which was above) */ if( prt.lgSourceReflected ) { SourceReflected = rfield.ConRefIncid[0][PredCont[i].ip_C()]*renorm; } else { SourceReflected = 0.; } /* the attenuated incident continuum */ if( prt.lgSourceTransmitted ) { SourceTransmitted = rfield.flux[0][PredCont[i].ip_C()]*renorm*radius.r1r0sq; } else { SourceTransmitted = 0.; } /* memory has not been allocated until ipass >= 0, so must not access this element, * this element will be used to save the following quantity */ if( LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum].SumLineZero(); } linadd((DiffuseInward+SourceReflected+DiffuseOutward+SourceTransmitted)/radius.dVeffAper, (*TauDummy).WLAng(),"nFnu",'i', "total continuum at selected energy points " ); /* emslin saves the per unit vol emissivity of a line, which is normally * what goes into linadd. We zero this unit emissivity which was set * FOR THE PREVIOUS LINE since it is so situation dependent */ if( KILL_CONT && LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum-1].emslinZero(); } /* this is the normal set to zero to trick the NEXT line into going in properly */ if( LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum].SumLineZero(); } /* the nsum-1 -- emslin and nsum -- SumLine is not a bug, look above - they do * different things to different saves */ Cont_nInu = rfield.flux[0][PredCont[i].ip_C()]*renorm*radius.r1r0sq + rfield.ConRefIncid[0][PredCont[i].ip_C()]*renorm; # if 0 /* this code can be used to create assert statements for the continuum shape */ if( !i ) fprintf(ioQQQ,"\n"); string chWL; sprt_wl( chWL , (*TauDummy).WLAng() ); fprintf( ioQQQ,"assert line luminosity \"nInu\" %s %.3f\n", chWL.c_str(), log10(SDIV(Cont_nInu/radius.dVeffAper) * radius.Conv2PrtInten) ); # endif linadd( Cont_nInu/radius.dVeffAper,(*TauDummy).WLAng(),"nInu",'i', "transmitted and reflected incident continuum at selected energy points " ); /* emslin saves the per unit volume emissivity of a line, which is normally * what goes into linadd. We zero this unit emissivity since it is so situation dependent */ if( KILL_CONT && LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum-1].emslinZero(); } /* memory has not been allocated until ipass >= 0 */ if( LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum].SumLineZero(); } linadd( (DiffuseInward+SourceReflected)/radius.dVeffAper,(*TauDummy).WLAng(),"InwT",'i', "total reflected continuum, total inward emission plus reflected (diffuse) total continuum "); if( KILL_CONT && LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum-1].emslinZero(); } /* memory has not been allocated until ipass >= 0 */ if( LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum].SumLineZero(); } linadd(SourceReflected/radius.dVeffAper,(*TauDummy).WLAng(),"InwC",'i', "reflected incident continuum (only incident) "); if( KILL_CONT && LineSave.ipass > 0 ) { LineSave.lines[LineSave.nsum-1].emslinZero(); } } } i = StuffComment( "RRC" ); linadd( 0., (realnum)i , "####", 'i',"radiative recombination continua"); // radiative recombination continua, RRC, for iso sequences for( long ipISO=ipH_LIKE; ipISO<NISO; ++ipISO ) { for( long nelem=ipISO; nelem < LIMELM; nelem++ ) { if( nelem < 2 || dense.lgElmtOn[nelem] ) { for( long n=0; n < iso_sp[ipISO][nelem].numLevels_max; n++ ) { if( LineSave.ipass < 0 ) // this pass only counting lines linadd(0.,0.,"dumy",'i',"radiative recombination continuum"); else if( LineSave.ipass == 0 ) { // save wavelength and label /* chIonLbl generates a null terminated 4 char string, of form "C 2" * the result, chLable, is only used when ipass == 0, can be undefined otherwise */ realnum wl = (realnum)(RYDLAM / iso_sp[ipISO][nelem].fb[n].xIsoLevNIonRyd); wl /= (realnum)RefIndex( 1e8/wl ); linadd( 0. , wl ,chIonLbl(iso_sp[ipISO][nelem].trans(1,0)).c_str(),'i', "radiative recombination continuum"); } else { // save intensity linadd(iso_sp[ipISO][nelem].fb[n].RadRecCon,0,"dumy",'i', "radiative recombination continuum"); } } } } } // RRC for non iso sequence ions /* add recombination continua for elements heavier than those done with iso seq */ for( long nelem=NISO; nelem < LIMELM; nelem++ ) { /* do not include species with iso-sequence in following */ /* >>chng 03 sep 09, upper bound was wrong, did not include NISO */ for( long ion=0; ion < nelem-NISO+1; ion++ ) { if( dense.lgElmtOn[nelem] ) { if( LineSave.ipass < 0 ) // this pass only counting lines linadd(0.,0.,"dumy",'i',"radiative recombination continuum"); else if( LineSave.ipass == 0 ) { string chLabel = chIonLbl( nelem+1, ion+1 ); realnum wl = (realnum)(RYDLAM / Heavy.Valence_IP_Ryd[nelem][ion]); wl /= (realnum)RefIndex( 1e8/wl ); linadd( 0. , wl ,chLabel.c_str(),'i', "radiative recombination continuum"); } else { // save intensity linadd(Heavy.RadRecCon[nelem][ion],0,"dumy",'i', "radiative recombination continuum"); } } } } return; }
36.578199
111
0.652501
cloudy-astrophysics
59096f00721334d343b226b9c528f1098e159d6c
4,924
cpp
C++
source/Plugins/PostEffects/LightStreaksPostEffect/LightStreaksPostEffect.cpp
DragonJoker/Castor3D
ee0b02eeda70cd235a224be306539850e32195f6
[ "MIT" ]
245
2015-10-29T14:31:45.000Z
2022-03-31T13:04:45.000Z
source/Plugins/PostEffects/LightStreaksPostEffect/LightStreaksPostEffect.cpp
DragonJoker/Castor3D
ee0b02eeda70cd235a224be306539850e32195f6
[ "MIT" ]
64
2016-03-11T19:45:05.000Z
2022-03-31T23:58:33.000Z
source/Plugins/PostEffects/LightStreaksPostEffect/LightStreaksPostEffect.cpp
DragonJoker/Castor3D
ee0b02eeda70cd235a224be306539850e32195f6
[ "MIT" ]
11
2018-05-24T09:07:43.000Z
2022-03-21T21:05:20.000Z
#include "LightStreaksPostEffect/LightStreaksPostEffect.hpp" #include <Castor3D/Engine.hpp> #include <Castor3D/Buffer/GpuBuffer.hpp> #include <Castor3D/Model/Vertex.hpp> #include <Castor3D/Material/Texture/Sampler.hpp> #include <Castor3D/Material/Texture/TextureLayout.hpp> #include <Castor3D/Miscellaneous/Parameter.hpp> #include <Castor3D/Render/RenderSystem.hpp> #include <Castor3D/Render/RenderTarget.hpp> #include <Castor3D/Shader/Program.hpp> #include <Castor3D/Shader/Shaders/GlslUtils.hpp> #include <CastorUtils/Design/ResourceCache.hpp> #include <CastorUtils/Graphics/Image.hpp> #include <ashespp/Buffer/VertexBuffer.hpp> #include <ashespp/Image/Image.hpp> #include <ashespp/Image/ImageView.hpp> #include <ashespp/RenderPass/RenderPass.hpp> #include <ashespp/RenderPass/RenderPassCreateInfo.hpp> #include <ShaderWriter/Source.hpp> #include <RenderGraph/RunnablePasses/RenderQuad.hpp> #include <numeric> namespace light_streaks { castor::String const PostEffect::Type = cuT( "light_streaks" ); castor::String const PostEffect::Name = cuT( "LightStreaks PostEffect" ); PostEffect::PostEffect( castor3d::RenderTarget & renderTarget , castor3d::RenderSystem & renderSystem , castor3d::Parameters const & params ) : castor3d::PostEffect{ PostEffect::Type , PostEffect::Name , renderTarget , renderSystem , params , Count + 2u } , m_kawaseUbo{ renderSystem.getRenderDevice() } { } castor3d::PostEffectSPtr PostEffect::create( castor3d::RenderTarget & renderTarget , castor3d::RenderSystem & renderSystem , castor3d::Parameters const & params ) { return std::make_shared< PostEffect >( renderTarget , renderSystem , params ); } void PostEffect::accept( castor3d::PipelineVisitorBase & visitor ) { m_hiPass->accept( visitor ); m_kawasePass->accept( visitor ); m_combinePass->accept( visitor ); for ( auto & view : m_hiImage.subViewsId ) { visitor.visit( "PostFX: LS - Hi " + std::to_string( view.data->info.subresourceRange.baseArrayLayer ) , view , m_renderTarget.getGraph().getFinalLayout( view ).layout , castor3d::TextureFactors{}.invert( true ) ); } for ( auto & view : m_kawaseImage.subViewsId ) { visitor.visit( "PostFX: LS - Kawase " + std::to_string( view.data->info.subresourceRange.baseArrayLayer ) , view , m_renderTarget.getGraph().getFinalLayout( view ).layout , castor3d::TextureFactors{}.invert( true ) ); } } crg::ImageViewId const * PostEffect::doInitialise( castor3d::RenderDevice const & device , crg::FramePass const & previousPass ) { auto extent = castor3d::getSafeBandedExtent3D( m_renderTarget.getSize() ); auto & graph = m_renderTarget.getGraph(); auto size = castor3d::makeExtent2D( extent ); size.width >>= 2; size.height >>= 2; uint32_t index = 0u; static float constexpr factor = 0.2f; static std::array< castor::Point2f, Count > directions { { castor::Point2f{ factor, factor }, castor::Point2f{ -factor, -factor }, castor::Point2f{ -factor, factor }, castor::Point2f{ factor, -factor } } }; m_hiImage = { device , graph.getHandler() , "LSHi" , 0u , VkExtent3D{ size.width, size.height, 1u } , Count + 1u , 1u , m_target->data->info.format , ( VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT ) }; m_kawaseImage = { device , graph.getHandler() , "LSKaw" , 0u , VkExtent3D{ size.width, size.height, 1u } , Count , 1u , m_target->data->info.format , ( VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT ) }; for ( auto i = 0u; i < Count; ++i ) { for ( uint32_t j = 0u; j < 3u; ++j ) { m_kawaseUbo.update( index , size , directions[i] , j ); ++index; } } m_hiPass = std::make_unique< HiPass >( graph , previousPass , device , *m_target , m_hiImage.subViewsId , size , &isEnabled() ); m_kawasePass = std::make_unique< KawasePass >( graph , m_hiPass->getLastPass() , device , m_hiImage.subViewsId , m_kawaseImage.subViewsId , m_kawaseUbo , size , &isEnabled() ); m_combinePass = std::make_unique< CombinePass >( graph , m_kawasePass->getLastPass() , device , *m_target , m_kawaseImage.subViewsId , castor3d::makeExtent2D( extent ) , &isEnabled() ); m_pass = &m_combinePass->getPass(); m_hiImage.create(); m_kawaseImage.create(); return &m_combinePass->getResult(); } void PostEffect::doCleanup( castor3d::RenderDevice const & device ) { m_combinePass.reset(); m_kawasePass.reset(); m_hiPass.reset(); } bool PostEffect::doWriteInto( castor::StringStream & file, castor::String const & tabs ) { file << ( tabs + cuT( "postfx \"" ) + Type + cuT( "\"" ) ); return true; } }
27.662921
108
0.693745
DragonJoker
590abc5da91904c53ccf38e68a0cd9edf113d02f
854
cpp
C++
0400/00/408a.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
1
2020-07-03T15:55:52.000Z
2020-07-03T15:55:52.000Z
0400/00/408a.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
null
null
null
0400/00/408a.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
3
2020-10-01T14:55:28.000Z
2021-07-11T11:33:58.000Z
#include <iostream> #include <numeric> #include <vector> #include <climits> template <typename T> std::istream& operator >>(std::istream& input, std::vector<T>& v) { for (T& a : v) input >> a; return input; } void answer(unsigned v) { std::cout << v << '\n'; } void solve(const std::vector<std::vector<unsigned>>& m) { const size_t n = m.size(); unsigned min = INT_MAX; for (const auto& x : m) { const unsigned k = x.size(); min = std::min(min, k * 15 + std::accumulate(x.cbegin(), x.cend(), 0u) * 5); } answer(min); } int main() { size_t n; std::cin >> n; std::vector<size_t> k(n); std::cin >> k; std::vector<std::vector<unsigned>> m(n); for (size_t i = 0; i < n; ++i) { m[i].resize(k[i]); std::cin >> m[i]; } solve(m); return 0; }
16.113208
84
0.523419
actium
590b34e3e8449f330810b3275f24a2899f6ba3fe
535
cc
C++
data-structure/pb_ds.cc
ac-voyage/template
84d7db1db0e79f50d641d84d4aaa17442b0653f6
[ "MIT" ]
null
null
null
data-structure/pb_ds.cc
ac-voyage/template
84d7db1db0e79f50d641d84d4aaa17442b0653f6
[ "MIT" ]
null
null
null
data-structure/pb_ds.cc
ac-voyage/template
84d7db1db0e79f50d641d84d4aaa17442b0653f6
[ "MIT" ]
1
2017-04-20T09:47:09.000Z
2017-04-20T09:47:09.000Z
/* Red-Black tree via pb_ds. */ #include<bits/stdc++.h> #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; template <typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; int main(){ ordered_set<int> s; s.insert(1); s.insert(3); cout << s.order_of_key(2) << endl; // the number of elements in the s less than 2 cout << *s.find_by_order(0) << endl; // print the 0-th smallest number in s(0-based) }
31.470588
96
0.721495
ac-voyage
590da069353fcffec5b4f8c224cd7882911076ff
13,609
cpp
C++
extras/DemFiles/src/GridLib/ParseNumber.cpp
jebreimo/GridLib
a90a5299512eb01623881c62a1e5f73b9f2c2513
[ "BSD-2-Clause" ]
null
null
null
extras/DemFiles/src/GridLib/ParseNumber.cpp
jebreimo/GridLib
a90a5299512eb01623881c62a1e5f73b9f2c2513
[ "BSD-2-Clause" ]
null
null
null
extras/DemFiles/src/GridLib/ParseNumber.cpp
jebreimo/GridLib
a90a5299512eb01623881c62a1e5f73b9f2c2513
[ "BSD-2-Clause" ]
null
null
null
//**************************************************************************** // Copyright © 2017 Jan Erik Breimo. All rights reserved. // Created by Jan Erik Breimo on 23.02.2017. // // This file is distributed under the BSD License. // License text is included with the source distribution. //**************************************************************************** #include "ParseNumber.hpp" #include <cmath> #include <cstdint> #include <limits> #include <optional> #include <type_traits> namespace GridLib { namespace { template <typename IntT> IntT fromDigit(char c) { if ('0' <= c && c <= '9') return IntT(c - '0'); auto u = uint8_t(c); u &= 0xDFu; if ('A' <= u && u <= 'Z') return IntT(10 + u - 'A'); return std::numeric_limits<IntT>::max(); } template <typename T, T Base> constexpr T maxPrecedingValueNegative() { if constexpr (std::is_signed<T>::value) { using U = typename std::make_unsigned<T>::type; return T((U(1) << (sizeof(T) * 8 - 1)) / U(Base)); } else { return T(0); } } template <typename T, T Base> constexpr T maxFinalDigitNegative() { if constexpr (std::is_signed<T>::value) { using U = typename std::make_unsigned<T>::type; return T((U(1) << (sizeof(T) * 8 - 1)) % U(Base)); } else { return T(0); } } template <typename T, T Base> constexpr T maxPrecedingValuePositive() { if constexpr (std::is_signed<T>::value) { using U = typename std::make_unsigned<T>::type; return T(U(~(U(1) << (sizeof(T) * 8 - 1))) / U(Base)); } else { return T(~T(0)) / Base; } } template <typename T, T Base> constexpr T maxFinalDigitPositive() { if constexpr (std::is_signed<T>::value) { using U = typename std::make_unsigned<T>::type; return T(U(~(U(1) << (sizeof(T) * 8 - 1))) % U(Base)); } else { return T(~T(0)) % Base; } } template <typename IntT, IntT Base> std::optional<IntT> parsePositiveIntegerImpl(std::string_view str) { if (str.empty()) return {}; IntT value = fromDigit<IntT>(str[0]); if (value >= Base) return {}; for (size_t i = 1; i < str.size(); ++i) { auto digit = fromDigit<IntT>(str[i]); if (digit < Base && (value < maxPrecedingValuePositive<IntT, Base>() || (value == maxPrecedingValuePositive<IntT, Base>() && digit <= maxFinalDigitPositive<IntT, Base>()))) { value *= Base; value += digit; } else if (str[i] != '_' || i == str.size() - 1 || str[i - 1] == '_') { return {}; } } return value; } template <typename IntT, IntT Base> std::optional<IntT> parseNegativeIntegerImpl(std::string_view str) { if constexpr (std::is_signed<IntT>::value) { if (str.empty()) return {}; IntT value = fromDigit<IntT>(str[0]); if (value >= Base) return {}; for (size_t i = 1; i < str.size(); ++i) { auto digit = fromDigit<IntT>(str[i]); if (digit < Base && (value < maxPrecedingValueNegative<IntT, Base>() || (value == maxPrecedingValueNegative<IntT, Base>() && digit <= maxFinalDigitNegative<IntT, Base>()))) { value *= Base; value += digit; } else if (str[i] != '_' || i == str.size() - 1 || str[i - 1] == '_') { return {}; } } return IntT(-value); } else { if (str.empty()) return {}; for (char c : str) { auto digit = fromDigit<IntT>(c); if (digit > 0) return {}; } return IntT(0); } } template <typename IntT> std::optional<IntT> parseInteger(std::string_view str, bool detectBase) { static_assert(std::is_integral<IntT>()); if (str.empty()) return {}; bool positive = true; if (str[0] == '-') { positive = false; str = str.substr(1); } else if (str[0] == '+') { str = str.substr(1); } if (str.empty()) return {}; if (str[0] == '0' && str.size() >= 3 && detectBase) { auto str2 = str.substr(2); switch (uint8_t(str[1]) | 0x20u) { case 'b': return positive ? parsePositiveIntegerImpl<IntT, 2>(str2) : parseNegativeIntegerImpl<IntT, 2>(str2); case 'o': return positive ? parsePositiveIntegerImpl<IntT, 8>(str2) : parseNegativeIntegerImpl<IntT, 8>(str2); case 'x': return positive ? parsePositiveIntegerImpl<IntT, 16>(str2) : parseNegativeIntegerImpl<IntT, 16>(str2); default: break; } } if ('0' <= str[0] && str[0] <= '9') { return positive ? parsePositiveIntegerImpl<IntT, 10>(str) : parseNegativeIntegerImpl<IntT, 10>(str); } if (str == "false" || str == "null") return IntT(0); if (str == "true") return IntT(1); return {}; } template <typename T> bool parseImpl(std::string_view str, T& value, bool detectBase) { auto parsedValue = parseInteger<T>(str, detectBase); if (parsedValue) { value = *parsedValue; return true; } return false; } } bool parse(std::string_view str, char& value, bool detectBase) { return parseImpl(str, value, detectBase); } bool parse(std::string_view str, int8_t& value, bool detectBase) { return parseImpl(str, value, detectBase); } bool parse(std::string_view str, int16_t& value, bool detectBase) { return parseImpl(str, value, detectBase); } bool parse(std::string_view str, int32_t& value, bool detectBase) { return parseImpl(str, value, detectBase); } bool parse(std::string_view str, int64_t& value, bool detectBase) { return parseImpl(str, value, detectBase); } bool parse(std::string_view str, uint8_t& value, bool detectBase) { return parseImpl(str, value, detectBase); } bool parse(std::string_view str, uint16_t& value, bool detectBase) { return parseImpl(str, value, detectBase); } bool parse(std::string_view str, uint32_t& value, bool detectBase) { return parseImpl(str, value, detectBase); } bool parse(std::string_view str, uint64_t& value, bool detectBase) { return parseImpl(str, value, detectBase); } namespace { int getDigit(char c) { return int(uint8_t(c) ^ 0x30u); } template <typename T> std::optional<T> parseFloatingPoint(std::string_view str) { if (str.empty()) return {}; size_t i = 0; // Get the sign of the number bool negative = false; if (str[0] == '-') { negative = true; if (++i == str.size()) return {}; } else if (str[0] == '+') { if (++i == str.size()) return {}; } // Get the integer value auto value = T(getDigit(str[i])); if (value > 9) { if (str == "Infinity" || str == "null" || str == "+Infinity") return std::numeric_limits<T>::infinity(); if (str == "-Infinity") return -std::numeric_limits<T>::infinity(); if (str == "NaN") return std::numeric_limits<T>::quiet_NaN(); return {}; } bool underscore = false; for (++i; i < str.size(); ++i) { auto digit = getDigit(str[i]); if (digit <= 9) { value *= 10; value += digit; underscore = false; } else if (str[i] != '_' || underscore) { break; } else { underscore = true; } } if (underscore) return {}; if (i == str.size()) return !negative ? value : -value; // Get the fraction underscore = true; // Makes underscore after point illegal. int decimals = 0; T fraction = {}; if (str[i] == '.') { for (++i; i < str.size(); ++i) { auto digit = getDigit(str[i]); if (digit <= 9) { fraction *= 10; fraction += digit; underscore = false; ++decimals; } else if (str[i] != '_' || underscore) { break; } else { underscore = true; } } } // Get the exponent int exponent = 0; if (i != str.size()) { // Accept both e/E and d/D (FORTRAN) as exponent character. if ((uint8_t(str[i]) & 0xDEu) != 'D') return {}; if (++i == str.size()) return {}; bool negativeExponent = false; if (str[i] == '-') { negativeExponent = true; if (++i == str.size()) return {}; } else if (str[i] == '+') { if (++i == str.size()) return {}; } exponent += getDigit(str[i]); if (exponent > 9) return {}; for (++i; i != str.size(); ++i) { auto digit = getDigit(str[i]); if (digit <= 9) { exponent *= 10; exponent += digit; underscore = false; } else if (str[i] != '_' || underscore) { return {}; } else { underscore = true; } if (exponent > std::numeric_limits<T>::max_exponent10) return {}; } if (negativeExponent) exponent = -exponent; } if (exponent) value *= pow(T(10), exponent); if (fraction != 0) value += fraction * pow(T(10), exponent - decimals); // Add the sign if (negative) value = -value; return value; } template <typename T> bool parseImpl(std::string_view str, T& value) { if (auto parsedValue = parseFloatingPoint<T>(str)) { value = *parsedValue; return true; } return false; } } bool parse(std::string_view str, float& value) { return parseImpl(str, value); } bool parse(std::string_view str, double& value) { return parseImpl(str, value); } bool parse(std::string_view str, long double& value) { return parseImpl(str, value); } }
29.975771
82
0.384525
jebreimo
590fbbc29a6577b81fa544ca21977aed63372e58
8,862
cpp
C++
src/PermNetwork.cpp
patrick-schwarz/HElib
cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59
[ "Apache-2.0" ]
1
2020-12-01T07:18:47.000Z
2020-12-01T07:18:47.000Z
src/PermNetwork.cpp
wangjinglin0721/HElib
cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59
[ "Apache-2.0" ]
null
null
null
src/PermNetwork.cpp
wangjinglin0721/HElib
cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59
[ "Apache-2.0" ]
null
null
null
/* Copyright (C) 2012-2019 IBM Corp. * This program is 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. See accompanying LICENSE file. */ #include <NTL/ZZ.h> #include "FHEContext.h" #include "Ctxt.h" #include "permutations.h" #include "EncryptedArray.h" namespace helib { std::ostream& operator<< (std::ostream &s, const PermNetwork &net) { s << "["; for (long i=0; i< net.layers.length(); i++) { const PermNetLayer& lyr = net.layers[i]; s << "[" << lyr.genIdx << " " << lyr.e << " " << lyr.isID << " " << lyr.shifts << "]\n"; } return s << "]"; } // Compute one or more layers corresponding to one network of one leaf void PermNetwork::setLayers4Leaf(long lyrIdx, const ColPerm& p, const NTL::Vec<long>& benesLvls, long gIdx, const SubDimension& leafData, const Permut& map2cube) { #ifdef DEBUG_PRINTOUT std::cerr << "Layer "<<lyrIdx<<", column-permutation="<< p << std::endl; #endif // Compute the shift amounts for all the layers in this network NTL::Vec<bool> isID; NTL::Vec<Permut> shifts; if (benesLvls.length()==1) {// Special case for a "trivial" 1-layer network shifts.SetLength(1); isID.SetLength(1); isID[0] = !p.getShiftAmounts(shifts[0]); } else // The general case of a multi-layer Benes network p.getBenesShiftAmounts(shifts,isID,benesLvls); // Copy the shift amounts to the right place in the bigger network, // renaming the slots from a linear array to the hyper cube for (long i=0; i<benesLvls.length(); i++) { PermNetLayer& lyr = layers[lyrIdx+i]; lyr.genIdx = gIdx; lyr.isID = isID[i]; lyr.e = leafData.e; if (!lyr.isID) { #ifdef DEBUG_PRINTOUT std::cerr << "layer "<<lyrIdx+i<<": "<<shifts[i]<<std::endl; #endif if (leafData.good) // For good leaves, shift by -x is the same as size-x for (long k=0; k<shifts[i].length(); k++) if (shifts[i][k]<0) shifts[i][k] += leafData.size; applyPermToVec(lyr.shifts, shifts[i], map2cube); // do the renaming #ifdef DEBUG_PRINTOUT std::cerr << " : "<<lyr.shifts<<std::endl; #endif } // else std::cerr << "layer "<<lyrIdx+i<<"= identity\n"; } } // Build a full permutation network void PermNetwork::buildNetwork(const Permut& pi, const GeneratorTrees& trees) { if (trees.numTrees()==0) { // the identity permutation, nothing to do layers.SetLength(0); return; } NTL::Vec<long> dims; trees.getCubeSubDims(dims); // std::cerr << "pi = "<<pi<<std::endl; // std::cerr << "map2cube ="<<trees.mapToCube()<<std::endl; // std::cerr << "map2array="<<trees.mapToArray()<<std::endl; // Compute the permutation on the cube, rho = map2cube o pi o map2array Permut rho; applyPermsToVec(rho, trees.mapToCube(), pi, trees.mapToArray()); // std::cerr << "rho = "<<rho<<std::endl; // Break rho along the different dimensions CubeSignature sig(dims); // make a cube-signature object std::vector<ColPerm> perms; breakPermByDim(perms, rho, sig); // for (long i=0; i<(long)perms.size(); i++) { // debugging printouts // Permut tmp; // perms[i].makeExplicit(tmp); // std::cerr << " prems["<<i<<"]="<<tmp<<std::endl; // } layers.SetLength(trees.numLayers()); // allocate space // Go over the different permutations and build the corresponding layers long dimIdx =0; long frntLyr=0, backLyr=layers.length(); for (long g=0; g<trees.numTrees(); g++) { // go over all the generators/trees const OneGeneratorTree &T = trees[g]; // In each tree, go over all the leaves for (long leaf=T.firstLeaf(); leaf>=0; leaf=T.nextLeaf(leaf)) { const SubDimension& leafData = T[leaf].getData(); // This leaf determines layers frntLyer...frntLey+frst.length()-1, and // if it isn't the middle then also backLyr-scnd.length()...backLyr-1 // handle the first Benes network setLayers4Leaf(/*1st-layer-index=*/frntLyr, /*permutation =*/perms[dimIdx], /*Benes levels =*/leafData.frstBenes, /*generator index=*/T.getAuxKey(), /*(size,good,e) =*/leafData, /*hypercube renaming permutation=*/trees.mapToCube()); frntLyr += leafData.frstBenes.length(); // how many layers were used dimIdx++; if (leafData.scndBenes.length()>0) { // Also a second Benes network long dimIdx2 = perms.size() -dimIdx; // dimIdx was incremented above backLyr -= leafData.scndBenes.length(); setLayers4Leaf(/*1st-layer-index=*/backLyr, /*permutation =*/perms[dimIdx2], /*Benes levels =*/leafData.scndBenes, /*generator index=*/T.getAuxKey(), /*(size,good,e) =*/leafData, /*hypercube renaming permutation=*/trees.mapToCube()); } } } } // Apply a permutation network to a hypercube, used mostly for debugging void PermNetwork::applyToCube(HyperCube<long>& cube) const { if (layers.length()==0) return; long n = cube.getSize(); NTL::Vec<long> tmp(NTL::INIT_SIZE, n); // temporary vector // Apply the layers, one at a time for (long i=0; i<layers.length(); i++) { const PermNetLayer& lyr = layers[i]; if (lyr.isID) continue; // this layer is the identity permutation //OLD: assert(lyr.shifts.length()==n); helib::assertEq(lyr.shifts.length(), n, "layer has incorrect size"); // This layer shift elements along the dimension lyr.genIdx long dim = lyr.genIdx; // Move elements as dictated by this layer for (long j=0; j<n; j++) { long shamt = lyr.e * lyr.shifts[j]; // how much to shift this slot if (shamt<0) shamt += cube.getDim(dim); // addCoord expects shamt>=0 long j2 = cube.addCoord(j, dim, shamt); // new index for this slot tmp[j2] = cube[j]; } // Copy back to cube for (long j=0; j<n; j++) cube[j] = tmp[j]; #ifdef DEBUG_PRINTOUT std::cerr << " after layer "<< i << ", cube=" << cube.getData()<<std::endl; #endif } } void PermNetwork::applyToPtxt(NTL::ZZX& p, const EncryptedArray& ea) const { throw helib::LogicError("PermNetwork::applyToPtxt is not implemented"); } // Upon return, mask[i]=1 if haystack[i]=needle, 0 otherwise. // Also set to 0 all the entries in haystack where mask[i]=1. // Return the index of the first nonzero entry in haystack at the end // of the pass (-1 if they are all zero). Also return a flag saying if // any entries of the mask are nonzero. static std::pair<long,bool> makeMask(std::vector<long>& mask, NTL::Vec<long>& haystack, long needle) { long found = false; long fstNonZeroIdx = -1; for (long i=0; i<(long)mask.size(); i++) { if (haystack[i] == needle) { // found a needle found = true; mask[i]=1; haystack[i]=0; // remove this needle from haystack } else { // no needle here mask[i]=0; if (haystack[i]!=0 && fstNonZeroIdx<0) fstNonZeroIdx = i; // first nonzero entry in haystack } } return std::make_pair(fstNonZeroIdx,found); } // Apply a permutation network to a ciphertext void PermNetwork::applyToCtxt(Ctxt& c, const EncryptedArray& ea) const { const PAlgebra& al = ea.getPAlgebra(); // Apply the layers, one at a time for (long i=0; i<layers.length(); i++) { const PermNetLayer& lyr = layers[i]; if (lyr.isID) continue; // this layer is the identity permutation // This layer is shifted via powers of g^e mod m long g2e = NTL::PowerMod(al.ZmStarGen(lyr.genIdx), lyr.e, al.getM()); NTL::Vec<long> unused = lyr.shifts; // copy to a new vector std::vector<long> mask(lyr.shifts.length()); // buffer to hold masks Ctxt sum(c.getPubKey(), c.getPtxtSpace()); // an empty ciphertext long shamt = 0; bool frst = true; while (true) { std::pair<long,bool> ret=makeMask(mask, unused, shamt); // compute mask if (ret.second) { // non-empty mask Ctxt tmp = c; NTL::ZZX maskPoly; ea.encode(maskPoly, mask); // encode mask as polynomial tmp.multByConstant(maskPoly); // multiply by mask if (shamt!=0) // rotate if the shift amount is nonzero tmp.smartAutomorph(NTL::PowerMod(g2e, shamt, al.getM())); if (frst) { sum = tmp; frst = false; } else sum += tmp; } if (ret.first >= 0) shamt = unused[ret.first]; // next shift amount to use else break; // unused is all-zero, done with this layer } c = sum; // update the cipehrtext c before the next layer } } }
34.889764
79
0.64297
patrick-schwarz
591573ae2b4b07b82625256973d1a0a936730162
31,861
cpp
C++
MK4duo/src/lcd/menu/menu_advanced.cpp
DapDeveloper/MK4duo
385fdcd3cda94e73396dd12f23ff570c86d2eab5
[ "RSA-MD" ]
null
null
null
MK4duo/src/lcd/menu/menu_advanced.cpp
DapDeveloper/MK4duo
385fdcd3cda94e73396dd12f23ff570c86d2eab5
[ "RSA-MD" ]
null
null
null
MK4duo/src/lcd/menu/menu_advanced.cpp
DapDeveloper/MK4duo
385fdcd3cda94e73396dd12f23ff570c86d2eab5
[ "RSA-MD" ]
null
null
null
/** * MK4duo Firmware for 3D Printer, Laser and CNC * * Based on Marlin, Sprinter and grbl * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm * Copyright (C) 2019 Alberto Cotronei @MagoKimbra * * 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 3 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, see <http://www.gnu.org/licenses/>. * */ // // Advanced Settings Menus // #include "../../../MK4duo.h" #if HAS_LCD_MENU void menu_tmc(); #if ENABLED(WORKSPACE_OFFSETS) // // Set the home offset based on the current_position // void _lcd_set_home_offsets() { commands.enqueue_and_echo_P(PSTR("M428")); lcdui.return_to_status(); } #endif #if ENABLED(VOLUMETRIC_EXTRUSION) bool lcd_volumetric_enabled = printer.isVolumetric(); void lcd_set_volumetric() { printer.setVolumetric(lcd_volumetric_enabled); tools.calculate_volumetric_multipliers; } #endif #if ENABLED(VOLUMETRIC_EXTRUSION) || ENABLED(ADVANCED_PAUSE_FEATURE) // // Advanced Settings > Filament // void menu_advanced_filament() { START_MENU(); MENU_BACK(MSG_ADVANCED_SETTINGS); #if ENABLED(LIN_ADVANCE) MENU_ITEM_EDIT(float3, MSG_ADVANCE_K, &planner.extruder_advance_K, 0, 999); #endif #if ENABLED(VOLUMETRIC_EXTRUSION) lcd_volumetric_enabled = printer.isVolumetric(); MENU_ITEM_EDIT_CALLBACK(bool, MSG_VOLUMETRIC_ENABLED, &lcd_volumetric_enabled, lcd_set_volumetric); if (printer.isVolumetric()) { #if EXTRUDERS == 1 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM, &tools.filament_size[0], 1.5f, 3.5f, tools.calculate_volumetric_multipliers); #else // EXTRUDERS > 1 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM, &tools.filament_size[tools.active_extruder], 1.5f, 3.5f, tools.calculate_volumetric_multipliers); MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E1, &tools.filament_size[0], 1.5f, 3.5f, tools.calculate_volumetric_multipliers); MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E2, &tools.filament_size[1], 1.5f, 3.5f, tools.calculate_volumetric_multipliers); #if EXTRUDERS > 2 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E3, &tools.filament_size[2], 1.5f, 3.5f, tools.calculate_volumetric_multipliers); #if EXTRUDERS > 3 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E4, &tools.filament_size[3], 1.5f, 3.5f, tools.calculate_volumetric_multipliers); #if EXTRUDERS > 4 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E5, &tools.filament_size[4], 1.5f, 3.5f, tools.calculate_volumetric_multipliers); #if EXTRUDERS > 5 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E6, &tools.filament_size[5], 1.5f, 3.5f, tools.calculate_volumetric_multipliers); #endif // EXTRUDERS > 5 #endif // EXTRUDERS > 4 #endif // EXTRUDERS > 3 #endif // EXTRUDERS > 2 #endif // EXTRUDERS > 1 } #endif // ENABLED(VOLUMETRIC_EXTRUSION) #if ENABLED(ADVANCED_PAUSE_FEATURE) constexpr float extrude_maxlength = #if ENABLED(PREVENT_LENGTHY_EXTRUDE) EXTRUDE_MAXLENGTH #else 999 #endif ; #if EXTRUDERS == 1 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_UNLOAD, &advancedpause.data[0].unload_length, 0, extrude_maxlength); #else // EXTRUDERS > 1 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_UNLOAD, &advancedpause.data[tools.active_extruder].unload_length, 0, extrude_maxlength); MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_UNLOAD MSG_DIAM_E1, &advancedpause.data[0].unload_length, 0, extrude_maxlength); MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_UNLOAD MSG_DIAM_E2, &advancedpause.data[1].unload_length, 0, extrude_maxlength); #if EXTRUDERS > 2 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_UNLOAD MSG_DIAM_E3, &advancedpause.data[2].unload_length, 0, extrude_maxlength); #if EXTRUDERS > 3 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_UNLOAD MSG_DIAM_E4, &advancedpause.data[3].unload_length, 0, extrude_maxlength); #if EXTRUDERS > 4 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_UNLOAD MSG_DIAM_E5, &advancedpause.data[4].unload_length, 0, extrude_maxlength); #if EXTRUDERS > 5 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_UNLOAD MSG_DIAM_E6, &advancedpause.data[5].unload_length, 0, extrude_maxlength); #endif // EXTRUDERS > 5 #endif // EXTRUDERS > 4 #endif // EXTRUDERS > 3 #endif // EXTRUDERS > 2 #endif // EXTRUDERS > 1 #if EXTRUDERS == 1 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_LOAD, &advancedpause.data[0].load_length, 0, extrude_maxlength); #else // EXTRUDERS > 1 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_LOAD, &advancedpause.data[tools.active_extruder].load_length, 0, extrude_maxlength); MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_LOAD MSG_DIAM_E1, &advancedpause.data[0].load_length, 0, extrude_maxlength); MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_LOAD MSG_DIAM_E2, &advancedpause.data[1].load_length, 0, extrude_maxlength); #if EXTRUDERS > 2 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_LOAD MSG_DIAM_E3, &advancedpause.data[2].load_length, 0, extrude_maxlength); #if EXTRUDERS > 3 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_LOAD MSG_DIAM_E4, &advancedpause.data[3].load_length, 0, extrude_maxlength); #if EXTRUDERS > 4 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_LOAD MSG_DIAM_E5, &advancedpause.data[4].load_length, 0, extrude_maxlength); #if EXTRUDERS > 5 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_FILAMENT_LOAD MSG_DIAM_E6, &advancedpause.data[5].load_length, 0, extrude_maxlength); #endif // EXTRUDERS > 5 #endif // EXTRUDERS > 4 #endif // EXTRUDERS > 3 #endif // EXTRUDERS > 2 #endif // EXTRUDERS > 1 #endif END_MENU(); } #endif // ENABLED(VOLUMETRIC_EXTRUSION) || ENABLED(ADVANCED_PAUSE_FEATURE) // // Advanced Settings > Temperature helpers // #if ENABLED(PID_AUTOTUNE_MENU) #if HOTENDS > 0 int16_t autotune_temp[HOTENDS] = ARRAY_BY_HOTENDS(200); #endif #if BEDS > 0 int16_t autotune_temp_bed[BEDS] = ARRAY_BY_BEDS(60); #endif #if CHAMBERS > 0 int16_t autotune_temp_chambers[CHAMBERS] = ARRAY_BY_CHAMBERS(60); #endif #if HOTENDS > 0 void _lcd_autotune(const int8_t h) { char cmd[30]; sprintf_P(cmd, PSTR("M303 U1 H%i S%i"), h, autotune_temp[h]); lcd_enqueue_command(cmd); } #endif #if BEDS > 0 void _lcd_autotune_bed(const int8_t t) { char cmd[30]; sprintf_P(cmd, PSTR("M303 U1 H-1 T%i S%i"), t, autotune_temp_bed[t]); lcd_enqueue_command(cmd); } #endif #if CHAMBERS > 0 void _lcd_autotune_chamber(const int8_t t) { char cmd[30]; sprintf_P(cmd, PSTR("M303 U1 H-2 T%i S%i"), t, autotune_temp_chambers[t]); lcd_enqueue_command(cmd); } #endif #endif //PID_AUTOTUNE_MENU #define _DEFINE_PIDTEMP_BASE_FUNCS(N) void updatePID_H ## N() { hotends[N].pid.update(); } #define _DEFINE_BED_PIDTEMP_BASE_FUNCS(N) void updatePID_BED ## N() { beds[N].pid.update(); } #define _DEFINE_CHAMBER_PIDTEMP_BASE_FUNCS(N) void updatePID_CHAMBER ## N() { chambers[N].pid.update(); } #if ENABLED(PID_AUTOTUNE_MENU) #if HOTENDS > 0 #define DEFINE_PIDTEMP_FUNCS(N) \ _DEFINE_PIDTEMP_BASE_FUNCS(N); \ void lcd_autotune_callback_H ## N() { _lcd_autotune(N); } #endif #if BEDS > 0 #define DEFINE_PIDBED_FUNCS(N) \ _DEFINE_BED_PIDTEMP_BASE_FUNCS(N); \ void lcd_autotune_callback_BED ## N() { _lcd_autotune_bed(N); } #endif #if CHAMBERS > 0 #define DEFINE_PIDCHAMBER_FUNCS(N) \ _DEFINE_CHAMBER_PIDTEMP_BASE_FUNCS(N); \ void lcd_autotune_callback_CHAMBER ## N() { _lcd_autotune_chamber(N); } #endif #else #if HOTENDS > 0 #define DEFINE_PIDTEMP_FUNCS(N) _DEFINE_PIDTEMP_BASE_FUNCS(N) #endif #if BEDS > 0 #define DEFINE_PIDBED_FUNCS(N) _DEFINE_BED_PIDTEMP_BASE_FUNCS(N) #endif #if CHAMBERS > 0 #define DEFINE_PIDCHAMBER_FUNCS(N) _DEFINE_CHAMBER_PIDTEMP_BASE_FUNCS(N) #endif #endif #if HOTENDS > 0 DEFINE_PIDTEMP_FUNCS(0); #if HOTENDS > 1 DEFINE_PIDTEMP_FUNCS(1); #if HOTENDS > 2 DEFINE_PIDTEMP_FUNCS(2); #if HOTENDS > 3 DEFINE_PIDTEMP_FUNCS(3); #if HOTENDS > 4 DEFINE_PIDTEMP_FUNCS(4); #if HOTENDS > 5 DEFINE_PIDTEMP_FUNCS(5); #endif // HOTENDS > 5 #endif // HOTENDS > 4 #endif // HOTENDS > 3 #endif // HOTENDS > 2 #endif // HOTENDS > 1 #endif // HOTENDS > 0 #if BEDS > 0 DEFINE_PIDBED_FUNCS(0); #if BEDS > 1 DEFINE_PIDBED_FUNCS(1); #if BEDS > 2 DEFINE_PIDBED_FUNCS(2); #if BEDS > 3 DEFINE_PIDBED_FUNCS(3); #endif // BEDS > 3 #endif // BEDS > 2 #endif // BEDS > 1 #endif // BEDS > 0 #if CHAMBERS > 0 DEFINE_PIDCHAMBER_FUNCS(0); #if CHAMBERS > 1 DEFINE_PIDCHAMBER_FUNCS(1); #if CHAMBERS > 2 DEFINE_PIDCHAMBER_FUNCS(2); #if CHAMBERS > 3 DEFINE_PIDCHAMBER_FUNCS(3); #endif // CHAMBERS > 3 #endif // CHAMBERS > 2 #endif // CHAMBERS > 1 #endif // CHAMBERS > 0 // // Advanced Settings > Temperature // void menu_advanced_temperature() { START_MENU(); MENU_BACK(MSG_ADVANCED_SETTINGS); // // Autotemp, Min, Max, Fact // #if ENABLED(AUTOTEMP) && HAS_TEMP_HE0 MENU_ITEM_EDIT(bool, MSG_AUTOTEMP, &planner.autotemp_enabled); MENU_ITEM_EDIT(float3, MSG_MIN, &planner.autotemp_min, 0, hotends[0].data.maxtemp - 10); MENU_ITEM_EDIT(float3, MSG_MAX, &planner.autotemp_max, 0, hotends[0].data.maxtemp - 10); MENU_ITEM_EDIT(float52, MSG_FACTOR, &planner.autotemp_factor, 0, 1); #endif // // PID-P H0, PID-I H0, PID-D H0, PID-C H0, PID Autotune H0 // PID-P H1, PID-I H1, PID-D H1, PID-C H1, PID Autotune H1 // PID-P H2, PID-I H2, PID-D H2, PID-C H2, PID Autotune H2 // PID-P H3, PID-I H3, PID-D H3, PID-C H3, PID Autotune H3 // PID-P H4, PID-I H4, PID-D H4, PID-C H4, PID Autotune H4 // PID-P H5, PID-I H5, PID-D H5, PID-C H5, PID Autotune H5 // #define _PID_BASE_MENU_ITEMS(HLABEL, hindex) \ MENU_ITEM_EDIT(float52, MSG_PID_P HLABEL, &hotends[hindex].pid.Kp, 1, 9990); \ MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_I HLABEL, &hotends[hindex].pid.Ki, 0.01f, 9990, updatePID_H ## hindex); \ MENU_ITEM_EDIT(float52, MSG_PID_D HLABEL, &hotends[hindex].pid.Kd, 1, 9990) #define _PID_BED_BASE_MENU_ITEMS(HLABEL, hindex) \ MENU_ITEM_EDIT(float52, "Bed " MSG_PID_P HLABEL, &beds[hindex].pid.Kp, 1, 9990); \ MENU_ITEM_EDIT_CALLBACK(float52, "Bed " MSG_PID_I HLABEL, &beds[hindex].pid.Ki, 0.01f, 9990, updatePID_BED ## hindex); \ MENU_ITEM_EDIT(float52, "Bed " MSG_PID_D HLABEL, &beds[hindex].pid.Kd, 1, 9990) #define _PID_CHAMBER_BASE_MENU_ITEMS(HLABEL, hindex) \ MENU_ITEM_EDIT(float52, "Chamber " MSG_PID_P HLABEL, &chambers[hindex].pid.Kp, 1, 9990); \ MENU_ITEM_EDIT_CALLBACK(float52, "Chamber " MSG_PID_I HLABEL, &chambers[hindex].pid.Ki, 0.01f, 9990, updatePID_CHAMBER ## hindex); \ MENU_ITEM_EDIT(float52, "Chamber " MSG_PID_D HLABEL, &chambers[hindex].pid.Kd, 1, 9990) #if ENABLED(PID_ADD_EXTRUSION_RATE) #define _PID_MENU_ITEMS(HLABEL, hindex) \ _PID_BASE_MENU_ITEMS(HLABEL, hindex); \ MENU_ITEM_EDIT(float3, MSG_PID_C HLABEL, &hotends[hindex].pid.Kc, 1, 9990) #else #define _PID_MENU_ITEMS(HLABEL, hindex) _PID_BASE_MENU_ITEMS(HLABEL, hindex) #endif #if ENABLED(PID_AUTOTUNE_MENU) #define PID_MENU_ITEMS(HLABEL, hindex) \ _PID_MENU_ITEMS(HLABEL, hindex); \ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_PID_AUTOTUNE HLABEL, &autotune_temp[hindex], 150, hotends[hindex].data.maxtemp - 10, lcd_autotune_callback_H ## hindex) #if BEDS > 0 #define PID_BED_MENU_ITEMS(HLABEL, hindex) \ _PID_BED_BASE_MENU_ITEMS(HLABEL, hindex); \ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, "Bed " MSG_PID_AUTOTUNE HLABEL, &autotune_temp_bed[hindex], 30, beds[hindex].data.maxtemp - 10, lcd_autotune_callback_BED ## hindex) #endif #if CHAMBERS > 0 #define PID_CHAMBER_MENU_ITEMS(HLABEL, hindex) \ _PID_CHAMBER_BASE_MENU_ITEMS(HLABEL, hindex); \ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, "Chamber " MSG_PID_AUTOTUNE HLABEL, &autotune_temp_chamber[hindex], 30, chambers[hindex].data.maxtemp - 10, lcd_autotune_callback_CHAMBER ## hindex) #endif #else #define PID_MENU_ITEMS(HLABEL, hindex) _PID_MENU_ITEMS(HLABEL, hindex) #if BEDS > 0 #define PID_BED_MENU_ITEMS() _PID_BED_BASE_MENU_ITEMS(HLABEL, hindex) #endif #if CHAMBERS > 0 #define PID_CHAMBER_MENU_ITEMS() _PID_CHAMBER_BASE_MENU_ITEMS(HLABEL, hindex) #endif #endif #if HOTENDS > 0 if (hotends[0].isUsePid()) { PID_MENU_ITEMS(MSG_H0, 0); } #if HOTENDS > 1 if (hotends[1].isUsePid()) { PID_MENU_ITEMS(MSG_H1, 1); } #if HOTENDS > 2 if (hotends[2].isUsePid()) { PID_MENU_ITEMS(MSG_H2, 2); } #if HOTENDS > 3 if (hotends[3].isUsePid()) { PID_MENU_ITEMS(MSG_H3, 3); } #if HOTENDS > 4 if (hotends[4].isUsePid()) { PID_MENU_ITEMS(MSG_H4, 4); } #if HOTENDS > 5 if (hotends[5].isUsePid()) { PID_MENU_ITEMS(MSG_H5, 5); } #endif // HOTENDS > 5 #endif // HOTENDS > 4 #endif // HOTENDS > 3 #endif // HOTENDS > 2 #endif // HOTENDS > 1 #endif // HOTENDS > 0 #if BEDS > 0 if (beds[0].isUsePid()) { PID_BED_MENU_ITEMS("", 0); } #if BEDS > 1 if (beds[1].isUsePid()) { PID_BED_MENU_ITEMS(MSG_H1, 1); } #if BEDS > 2 if (beds[2].isUsePid()) { PID_BED_MENU_ITEMS(MSG_H2, 2); } #if BEDS > 3 if (beds[3].isUsePid()) { PID_BED_MENU_ITEMS(MSG_H3, 3); } #endif // BEDS > 3 #endif // BEDS > 2 #endif // BEDS > 1 #endif // BEDS > 0 #if CHAMBERS > 0 if (chambers[0].isUsePid()) { PID_CHAMBER_MENU_ITEMS("", 0); } #if CHAMBERS > 1 if (chambers[1].isUsePid()) { PID_CHAMBER_MENU_ITEMS(MSG_H1, 1); } #if CHAMBERS > 2 if (chambers[2].isUsePid()) { PID_CHAMBER_MENU_ITEMS(MSG_H2, 2); } #if CHAMBERS > 3 if (chambers[3].isUsePid()) { PID_CHAMBER_MENU_ITEMS(MSG_H3, 3); } #endif // CHAMBERS > 3 #endif // CHAMBERS > 2 #endif // CHAMBERS > 1 #endif // CHAMBERS > 0 END_MENU(); } #if DISABLED(SLIM_LCD_MENUS) void _reset_acceleration_rates() { #if MECH(DELTA) mechanics.data.max_acceleration_mm_per_s2[Y_AXIS] = mechanics.data.max_acceleration_mm_per_s2[Z_AXIS] = mechanics.data.max_acceleration_mm_per_s2[X_AXIS]; #endif planner.reset_acceleration_rates(); } #if EXTRUDERS > 1 void _reset_e_acceleration_rate(const uint8_t e) { if (e == tools.active_extruder) _reset_acceleration_rates(); } void _reset_e0_acceleration_rate() { _reset_e_acceleration_rate(0); } void _reset_e1_acceleration_rate() { _reset_e_acceleration_rate(1); } #if EXTRUDERS > 2 void _reset_e2_acceleration_rate() { _reset_e_acceleration_rate(2); } #if EXTRUDERS > 3 void _reset_e3_acceleration_rate() { _reset_e_acceleration_rate(3); } #if EXTRUDERS > 4 void _reset_e4_acceleration_rate() { _reset_e_acceleration_rate(4); } #if EXTRUDERS > 5 void _reset_e5_acceleration_rate() { _reset_e_acceleration_rate(5); } #endif // EXTRUDERS > 5 #endif // EXTRUDERS > 4 #endif // EXTRUDERS > 3 #endif // EXTRUDERS > 2 #endif // EXTRUDERS > 1 void _mechanics_refresh_positioning() { #if MECH(DELTA) mechanics.data.axis_steps_per_mm[Y_AXIS] = mechanics.data.axis_steps_per_mm[Z_AXIS] = mechanics.data.axis_steps_per_mm[X_AXIS]; #endif planner.refresh_positioning(); } #if EXTRUDERS > 1 void _mechanics_refresh_e_positioning(const uint8_t e) { if (e == tools.active_extruder) _mechanics_refresh_positioning(); else mechanics.steps_to_mm[E_AXIS + e] = RECIPROCAL(mechanics.data.axis_steps_per_mm[E_AXIS + e]); } void _mechanics_refresh_e0_positioning() { _mechanics_refresh_e_positioning(0); } void _mechanics_refresh_e1_positioning() { _mechanics_refresh_e_positioning(1); } #if EXTRUDERS > 2 void _mechanics_refresh_e2_positioning() { _mechanics_refresh_e_positioning(2); } #if EXTRUDERS > 3 void _mechanics_refresh_e3_positioning() { _mechanics_refresh_e_positioning(3); } #if EXTRUDERS > 4 void _mechanics_refresh_e4_positioning() { _mechanics_refresh_e_positioning(4); } #if EXTRUDERS > 5 void _mechanics_refresh_e5_positioning() { _mechanics_refresh_e_positioning(5); } #endif // EXTRUDERS > 5 #endif // EXTRUDERS > 4 #endif // EXTRUDERS > 3 #endif // EXTRUDERS > 2 #endif // EXTRUDERS > 1 #if MECH(DELTA) void _mechanics_set_feedrate() { mechanics.data.max_feedrate_mm_s[Y_AXIS] = mechanics.data.max_feedrate_mm_s[Z_AXIS] = mechanics.data.max_feedrate_mm_s[X_AXIS]; } #endif // M203 / M205 Velocity options void menu_advanced_velocity() { START_MENU(); MENU_BACK(MSG_ADVANCED_SETTINGS); // M203 Max Feedrate #if MECH(DELTA) MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float3, MSG_VMAX, &mechanics.data.max_feedrate_mm_s[X_AXIS], 1, 999, _mechanics_set_feedrate); #else MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMAX MSG_X, &mechanics.data.max_feedrate_mm_s[X_AXIS], 1, 999); MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMAX MSG_Y, &mechanics.data.max_feedrate_mm_s[Y_AXIS], 1, 999); MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMAX MSG_Z, &mechanics.data.max_feedrate_mm_s[Z_AXIS], 1, 999); #endif #if EXTRUDERS > 1 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMAX MSG_E, &mechanics.data.max_feedrate_mm_s[E_AXIS + tools.active_extruder], 1, 999); MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMAX MSG_E1, &mechanics.data.max_feedrate_mm_s[E_AXIS], 1, 999); MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMAX MSG_E2, &mechanics.data.max_feedrate_mm_s[E_AXIS + 1], 1, 999); #if EXTRUDERS > 2 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMAX MSG_E3, &mechanics.data.max_feedrate_mm_s[E_AXIS + 2], 1, 999); #if EXTRUDERS > 3 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMAX MSG_E4, &mechanics.data.max_feedrate_mm_s[E_AXIS + 3], 1, 999); #if EXTRUDERS > 4 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMAX MSG_E5, &mechanics.data.max_feedrate_mm_s[E_AXIS + 4], 1, 999); #if EXTRUDERS > 5 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMAX MSG_E6, &mechanics.data.max_feedrate_mm_s[E_AXIS + 5], 1, 999); #endif // EXTRUDERS > 5 #endif // EXTRUDERS > 4 #endif // EXTRUDERS > 3 #endif // EXTRUDERS > 2 #else MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMAX MSG_E, &mechanics.data.max_feedrate_mm_s[E_AXIS], 1, 999); #endif // M205 S Min Feedrate MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VMIN, &mechanics.data.min_feedrate_mm_s, 0, 999); // M205 T Min Travel Feedrate MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VTRAV_MIN, &mechanics.data.min_travel_feedrate_mm_s, 0, 999); END_MENU(); } // M201 / M204 Accelerations void menu_advanced_acceleration() { START_MENU(); MENU_BACK(MSG_ADVANCED_SETTINGS); // M204 P Acceleration MENU_MULTIPLIER_ITEM_EDIT(float5, MSG_ACC, &mechanics.data.acceleration, 10, 99000); // M204 R Retract Acceleration #if EXTRUDERS > 1 MENU_MULTIPLIER_ITEM_EDIT(float5, MSG_A_RETRACT MSG_E, &mechanics.data.retract_acceleration[tools.active_extruder], 100, 99000); MENU_MULTIPLIER_ITEM_EDIT(float5, MSG_A_RETRACT MSG_E1, &mechanics.data.retract_acceleration[0], 100, 99000); MENU_MULTIPLIER_ITEM_EDIT(float5, MSG_A_RETRACT MSG_E2, &mechanics.data.retract_acceleration[1], 100, 99000); #if EXTRUDERS > 2 MENU_MULTIPLIER_ITEM_EDIT(float5, MSG_A_RETRACT MSG_E3, &mechanics.data.retract_acceleration[2], 100, 99000); #if EXTRUDERS > 3 MENU_MULTIPLIER_ITEM_EDIT(float5, MSG_A_RETRACT MSG_E4, &mechanics.data.retract_acceleration[3], 100, 99000); #if EXTRUDERS > 4 MENU_MULTIPLIER_ITEM_EDIT(float5, MSG_A_RETRACT MSG_E5, &mechanics.data.retract_acceleration[4], 100, 99000); #if EXTRUDERS > 5 MENU_MULTIPLIER_ITEM_EDIT(float5, MSG_A_RETRACT MSG_E6, &mechanics.data.retract_acceleration[5], 100, 99000); #endif // EXTRUDERS > 5 #endif // EXTRUDERS > 4 #endif // EXTRUDERS > 3 #endif // EXTRUDERS > 2 #else MENU_MULTIPLIER_ITEM_EDIT(float5, MSG_A_RETRACT MSG_E, &mechanics.data.retract_acceleration[0], 100, 99000); #endif // M204 T Travel Acceleration MENU_MULTIPLIER_ITEM_EDIT(float5, MSG_A_TRAVEL, &mechanics.data.travel_acceleration, 100, 99000); // M201 settings #if MECH(DELTA) MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX, &mechanics.data.max_acceleration_mm_per_s2[X_AXIS], 100, 99000, _reset_acceleration_rates); #else MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_X, &mechanics.data.max_acceleration_mm_per_s2[X_AXIS], 100, 99000, _reset_acceleration_rates); MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_Y, &mechanics.data.max_acceleration_mm_per_s2[Y_AXIS], 100, 99000, _reset_acceleration_rates); MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_Z, &mechanics.data.max_acceleration_mm_per_s2[Z_AXIS], 10, 99000, _reset_acceleration_rates); #endif #if EXTRUDERS > 1 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_E, &mechanics.data.max_acceleration_mm_per_s2[E_AXIS + tools.active_extruder], 100, 99000, _reset_acceleration_rates); MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_E1, &mechanics.data.max_acceleration_mm_per_s2[E_AXIS], 100, 99000, _reset_e0_acceleration_rate); MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_E2, &mechanics.data.max_acceleration_mm_per_s2[E_AXIS + 1], 100, 99000, _reset_e1_acceleration_rate); #if EXTRUDERS > 2 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_E3, &mechanics.data.max_acceleration_mm_per_s2[E_AXIS + 2], 100, 99000, _reset_e2_acceleration_rate); #if EXTRUDERS > 3 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_E4, &mechanics.data.max_acceleration_mm_per_s2[E_AXIS + 3], 100, 99000, _reset_e3_acceleration_rate); #if EXTRUDERS > 4 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_E5, &mechanics.data.max_acceleration_mm_per_s2[E_AXIS + 4], 100, 99000, _reset_e4_acceleration_rate); #if EXTRUDERS > 5 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_E6, &mechanics.data.max_acceleration_mm_per_s2[E_AXIS + 5], 100, 99000, _reset_e5_acceleration_rate); #endif // EXTRUDERS > 5 #endif // EXTRUDERS > 4 #endif // EXTRUDERS > 3 #endif // EXTRUDERS > 2 #else MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_E, &mechanics.data.max_acceleration_mm_per_s2[E_AXIS], 100, 99000, _reset_acceleration_rates); #endif END_MENU(); } #if HAS_CLASSIC_JERK void _mechanics_set_jerk() { mechanics.data.max_jerk[Y_AXIS] = mechanics.data.max_jerk[Z_AXIS] = mechanics.data.max_jerk[X_AXIS]; } #endif // M205 Jerk void menu_advanced_jerk() { START_MENU(); MENU_BACK(MSG_MOTION); #if ENABLED(JUNCTION_DEVIATION) #if ENABLED(LIN_ADVANCE) MENU_ITEM_EDIT_CALLBACK(float43, MSG_JUNCTION_MM, &mechanics.data.junction_deviation_mm, 0.01f, 0.3f, mechanics.recalculate_max_e_jerk); #else MENU_ITEM_EDIT(float43, MSG_JUNCTION_MM, &mechanics.data.junction_deviation_mm, 0.01f, 0.3f); #endif #endif #if HAS_CLASSIC_JERK #if MECH(DELTA) MENU_ITEM_EDIT_CALLBACK(float3, MSG_JERK, &mechanics.data.max_jerk[X_AXIS], 1, 990, _mechanics_set_jerk); #else MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VA_JERK, &mechanics.data.max_jerk[X_AXIS], 1, 990); MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VB_JERK, &mechanics.data.max_jerk[Y_AXIS], 1, 990); MENU_MULTIPLIER_ITEM_EDIT(float52sign, MSG_VC_JERK, &mechanics.data.max_jerk[Z_AXIS], 0.1, 990); #endif #if DISABLED(JUNCTION_DEVIATION) || DISABLED(LIN_ADVANCE) #if EXTRUDERS > 1 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VE_JERK MSG_E, &mechanics.data.max_jerk[E_AXIS + tools.active_extruder], 1, 990); MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VE_JERK MSG_E1, &mechanics.data.max_jerk[E_AXIS], 1, 990); MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VE_JERK MSG_E2, &mechanics.data.max_jerk[E_AXIS + 1], 1, 990); #if EXTRUDERS > 2 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VE_JERK MSG_E3, &mechanics.data.max_jerk[E_AXIS + 2], 1, 990); #if EXTRUDERS > 3 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VE_JERK MSG_E4, &mechanics.data.max_jerk[E_AXIS + 3], 1, 990); #if EXTRUDERS > 4 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VE_JERK MSG_E5, &mechanics.data.max_jerk[E_AXIS + 4], 1, 990); #if EXTRUDERS > 5 MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VE_JERK MSG_E6, &mechanics.data.max_jerk[E_AXIS + 5], 1, 990); #endif // EXTRUDERS > 5 #endif // EXTRUDERS > 4 #endif // EXTRUDERS > 3 #endif // EXTRUDERS > 2 #else MENU_MULTIPLIER_ITEM_EDIT(float3, MSG_VE_JERK, &mechanics.data.max_jerk[E_AXIS], 1, 990); #endif #endif // DISABLED(JUNCTION_DEVIATION) || DISABLED(LIN_ADVANCE) #endif // AS_CLASSIC_JERK END_MENU(); } // M92 Steps-per-mm void menu_advanced_steps_per_mm() { START_MENU(); MENU_BACK(MSG_ADVANCED_SETTINGS); #if MECH(DELTA) MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_STEPS_PER_MM, &mechanics.data.axis_steps_per_mm[X_AXIS], 5, 9999, _mechanics_refresh_positioning); #else MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_ASTEPS, &mechanics.data.axis_steps_per_mm[X_AXIS], 5, 9999, _mechanics_refresh_positioning); MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_BSTEPS, &mechanics.data.axis_steps_per_mm[Y_AXIS], 5, 9999, _mechanics_refresh_positioning); MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_CSTEPS, &mechanics.data.axis_steps_per_mm[Z_AXIS], 5, 9999, _mechanics_refresh_positioning); #endif #if EXTRUDERS > 1 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_ESTEPS, &mechanics.data.axis_steps_per_mm[E_AXIS + tools.active_extruder], 5, 9999, _mechanics_refresh_positioning); MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_E1STEPS, &mechanics.data.axis_steps_per_mm[E_AXIS], 5, 9999, _mechanics_refresh_e0_positioning); MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_E2STEPS, &mechanics.data.axis_steps_per_mm[E_AXIS + 1], 5, 9999, _mechanics_refresh_e1_positioning); #if EXTRUDERS > 2 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_E3STEPS, &mechanics.data.axis_steps_per_mm[E_AXIS + 2], 5, 9999, _mechanics_refresh_e2_positioning); #if EXTRUDERS > 3 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_E4STEPS, &mechanics.data.axis_steps_per_mm[E_AXIS + 3], 5, 9999, _mechanics_refresh_e3_positioning); #if EXTRUDERS > 4 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_E5STEPS, &mechanics.data.axis_steps_per_mm[E_AXIS + 4], 5, 9999, _mechanics_refresh_e4_positioning); #if EXTRUDERS > 5 MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_E6STEPS, &mechanics.data.axis_steps_per_mm[E_AXIS + 5], 5, 9999, _mechanics_refresh_e4_positioning); #endif // EXTRUDERS > 5 #endif // EXTRUDERS > 4 #endif // EXTRUDERS > 3 #endif // EXTRUDERS > 2 #else MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float62, MSG_ESTEPS, &mechanics.data.axis_steps_per_mm[E_AXIS], 5, 9999, _mechanics_refresh_positioning); #endif END_MENU(); } #if ENABLED(EEPROM_SETTINGS) static void lcd_init_eeprom() { sound.feedback(eeprom.Init()); lcdui.goto_previous_screen(); } static void lcd_init_eeprom_confirm() { START_MENU(); MENU_BACK(MSG_ADVANCED_SETTINGS); MENU_ITEM(function, MSG_INIT_EEPROM, lcd_init_eeprom); END_MENU(); } #endif #endif // !SLIM_LCD_MENUS void menu_advanced_settings() { START_MENU(); MENU_BACK(MSG_CONFIGURATION); #if ENABLED(BABYSTEP_ZPROBE_OFFSET) MENU_ITEM(submenu, MSG_ZPROBE_ZOFFSET, lcd_babystep_zoffset); #elif HAS_BED_PROBE MENU_ITEM_EDIT(float52, MSG_ZPROBE_ZOFFSET, &probe.data.offset[Z_AXIS], Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX); #endif #if DISABLED(SLIM_LCD_MENUS) #if ENABLED(WORKSPACE_OFFSETS) // // Set Home Offsets // MENU_ITEM(function, MSG_SET_HOME_OFFSETS, _lcd_set_home_offsets); #endif // M203 / M205 - Feedrate items MENU_ITEM(submenu, MSG_VELOCITY, menu_advanced_velocity); // M201 - Acceleration items MENU_ITEM(submenu, MSG_ACCELERATION, menu_advanced_acceleration); // M205 - Junction Deviation or Max Jerk #if ENABLED(JUNCTION_DEVIATION) MENU_ITEM(submenu, MSG_JUNCTION_DEVIATION, menu_advanced_jerk); #else MENU_ITEM(submenu, MSG_JERK, menu_advanced_jerk); #endif if (!printer.isPrinting()) { // M92 - Steps Per mm MENU_ITEM(submenu, MSG_STEPS_PER_MM, menu_advanced_steps_per_mm); } #endif // !SLIM_LCD_MENUS #if HAS_TRINAMIC MENU_ITEM(submenu, MSG_TMC_DRIVERS, menu_tmc); #endif if (printer.mode == PRINTER_MODE_FFF) { MENU_ITEM(submenu, MSG_TEMPERATURE, menu_advanced_temperature); #if ENABLED(VOLUMETRIC_EXTRUSION) || ENABLED(ADVANCED_PAUSE_FEATURE) MENU_ITEM(submenu, MSG_FILAMENT, menu_advanced_filament); #elif ENABLED(LIN_ADVANCE) MENU_ITEM_EDIT(float52, MSG_ADVANCE_K, &planner.extruder_advance_K, 0, 999); #endif } // M540 S - Abort on endstop hit when SD printing #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED) MENU_ITEM_EDIT(bool, MSG_ENDSTOP_ABORT, &planner.abort_on_endstop_hit); #endif // // BLTouch Self-Test and Reset // #if ENABLED(BLTOUCH) MENU_ITEM(gcode, MSG_BLTOUCH_SELFTEST, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_SELFTEST))); if (!endstops.isProbeEnabled() && bltouch.test()) MENU_ITEM(gcode, MSG_BLTOUCH_RESET, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_RESET))); #endif #if ENABLED(EEPROM_SETTINGS) && DISABLED(SLIM_LCD_MENUS) MENU_ITEM(submenu, MSG_INIT_EEPROM, lcd_init_eeprom_confirm); #endif END_MENU(); } #endif // HAS_LCD_MENU
42.651941
197
0.695866
DapDeveloper
5915aba6512fc1bcd4d42873cf2255b08c4f3732
6,444
cpp
C++
src/mongocxx/test/read_preference.cpp
oledahle/mongo-cxx-driver
60509b2d430b94d8e52d05502fb60e7b91c63cba
[ "Apache-2.0" ]
934
2015-01-02T14:49:43.000Z
2022-03-16T01:21:42.000Z
src/mongocxx/test/read_preference.cpp
oledahle/mongo-cxx-driver
60509b2d430b94d8e52d05502fb60e7b91c63cba
[ "Apache-2.0" ]
533
2015-01-07T18:45:30.000Z
2022-03-23T00:44:26.000Z
src/mongocxx/test/read_preference.cpp
oledahle/mongo-cxx-driver
60509b2d430b94d8e52d05502fb60e7b91c63cba
[ "Apache-2.0" ]
570
2015-01-04T05:47:04.000Z
2022-03-28T11:12:38.000Z
// Copyright 2014 MongoDB Inc. // // 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 "helpers.hpp" #include <bsoncxx/builder/basic/document.hpp> #include <bsoncxx/document/view.hpp> #include <bsoncxx/test_util/catch.hh> #include <mongocxx/exception/logic_error.hpp> #include <mongocxx/instance.hpp> #include <mongocxx/private/conversions.hh> #include <mongocxx/read_preference.hpp> namespace { using namespace bsoncxx; using namespace mongocxx; using builder::basic::kvp; using builder::basic::make_document; TEST_CASE("Read preference", "[read_preference]") { instance::current(); read_preference rp; SECTION("Defaults to mode primary, empty tags, and no max staleness") { REQUIRE(rp.mode() == read_preference::read_mode::k_primary); REQUIRE_FALSE(rp.tags()); REQUIRE_FALSE(rp.max_staleness()); } SECTION("Can have mode changed") { rp.mode(read_preference::read_mode::k_nearest); REQUIRE(libmongoc::conversions::read_mode_t_from_read_mode(rp.mode()) == MONGOC_READ_NEAREST); } SECTION("Can have tags changed") { auto tags = make_document(kvp("tag_key", "tag_value")); rp.tags(tags.view()); REQUIRE(rp.tags().value() == tags); } SECTION("Can have max_staleness changed") { std::chrono::seconds max_staleness{120}; rp.max_staleness(max_staleness); REQUIRE(rp.max_staleness().value() == max_staleness); } SECTION("Max staleness of -1 returns nullopt") { rp.max_staleness(std::chrono::seconds{-1}); REQUIRE(!rp.max_staleness()); } SECTION("Rejects invalid max_staleness") { REQUIRE_THROWS_AS(rp.max_staleness(std::chrono::seconds{0}), logic_error); REQUIRE_THROWS_AS(rp.max_staleness(std::chrono::seconds{-2}), logic_error); } } TEST_CASE("Read preference can be constructed with another read_mode", "[read_preference]") { instance::current(); read_preference rp(read_preference::read_mode::k_secondary, read_preference::deprecated_tag{}); REQUIRE(rp.mode() == read_preference::read_mode::k_secondary); REQUIRE_FALSE(rp.tags()); } TEST_CASE("Read preference can be constructed with a read_mode and tags", "[read_preference]") { instance::current(); auto tags = make_document(kvp("tag_key", "tag_value")); read_preference rp( read_preference::read_mode::k_secondary, tags.view(), read_preference::deprecated_tag{}); REQUIRE(rp.mode() == read_preference::read_mode::k_secondary); REQUIRE(rp.tags().value() == tags); } TEST_CASE("Read preference equality operator works", "[read_preference]") { instance::current(); read_preference rp_a; read_preference rp_b; SECTION("default-constructed read_preference objects are equal") { REQUIRE(rp_a == rp_b); } SECTION("mode is compared") { rp_a.mode(read_preference::read_mode::k_nearest); REQUIRE_FALSE(rp_a == rp_b); rp_b.mode(read_preference::read_mode::k_nearest); REQUIRE(rp_a == rp_b); } SECTION("tags are compared") { auto tags = make_document(kvp("tag_key", "tag_value")); rp_a.tags(tags.view()); REQUIRE_FALSE(rp_a == rp_b); rp_b.tags(tags.view()); REQUIRE(rp_a == rp_b); } SECTION("max_staleness is compared") { std::chrono::seconds max_staleness{120}; rp_a.max_staleness(max_staleness); REQUIRE_FALSE(rp_a == rp_b); rp_b.max_staleness(max_staleness); REQUIRE(rp_a == rp_b); } } TEST_CASE("Read preference inequality operator works", "[read_preference]") { instance::current(); read_preference rp_a; read_preference rp_b; REQUIRE_FALSE(rp_a != rp_b); rp_a.mode(read_preference::read_mode::k_nearest); REQUIRE(rp_a != rp_b); } TEST_CASE("Read preference methods call underlying mongoc methods", "[read_preference]") { instance::current(); MOCK_READ_PREFERENCE read_preference rp; bool called = false; SECTION("mode() calls mongoc_read_prefs_set_mode()") { read_preference::read_mode expected_mode = read_preference::read_mode::k_nearest; read_prefs_set_mode->interpose([&](mongoc_read_prefs_t*, mongoc_read_mode_t mode) { called = true; REQUIRE(mode == libmongoc::conversions::read_mode_t_from_read_mode(expected_mode)); }); rp.mode(expected_mode); REQUIRE(called); } SECTION("tags() calls mongoc_read_prefs_set_tags()") { auto expected_tags = make_document(kvp("foo", "bar")); read_prefs_set_tags->interpose([&](mongoc_read_prefs_t*, const bson_t* tags) { called = true; REQUIRE(bson_get_data(tags) == expected_tags.view().data()); }); rp.tags(expected_tags.view()); REQUIRE(called); } SECTION("max_staleness() calls mongoc_read_prefs_set_max_staleness_seconds()") { std::chrono::seconds expected_max_staleness_sec{150}; read_prefs_set_max_staleness_seconds->interpose( [&](mongoc_read_prefs_t*, int64_t max_staleness_sec) { called = true; REQUIRE(std::chrono::seconds{max_staleness_sec} == expected_max_staleness_sec); }); rp.max_staleness(expected_max_staleness_sec); REQUIRE(called); } SECTION("hedge() calls mongoc_read_prefs_set_hedge") { /* No hedge should return a disengaged optional. */ REQUIRE(!rp.hedge()); read_prefs_set_hedge->visit([&](mongoc_read_prefs_t*, const bson_t* doc) { bson_iter_t iter; REQUIRE(bson_iter_init_find(&iter, doc, "hedge")); REQUIRE(bson_iter_as_bool(&iter) == true); called = true; }); rp.hedge(make_document(kvp("hedge", true))); REQUIRE((*rp.hedge())["hedge"].get_bool().value == true); REQUIRE(called); } } } // namespace
33.915789
99
0.665115
oledahle
5915ddf6d41c2605c4db388b4b71653bbff19a8b
18,160
cpp
C++
QSynthesis/Backend/Documents/Files/SequenceTextFile.cpp
SineStriker/QSynthesis-Old
7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d
[ "MIT" ]
3
2021-12-08T05:30:52.000Z
2021-12-18T10:46:49.000Z
QSynthesis/Backend/Documents/Files/SequenceTextFile.cpp
QSynthesis/QSynthesis-Old
7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d
[ "MIT" ]
null
null
null
QSynthesis/Backend/Documents/Files/SequenceTextFile.cpp
QSynthesis/QSynthesis-Old
7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d
[ "MIT" ]
null
null
null
#include "SequenceTextFile.h" #include "SystemApis.h" #include "Variables.h" using namespace Utau; Q_CHARSET_DECLARE(SequenceTextFile) // Project File Reader SequenceTextFile::SequenceTextFile() : BaseFile(Qs::Default) { m_codec = defaultCodec; reset(); } SequenceTextFile::SequenceTextFile(const QString &filename) : BaseFile(Qs::Default) { m_codec = defaultCodec; setFilename(filename); } SequenceTextFile::~SequenceTextFile() { } SequenceTextFile::SequenceTextFile(Qs::VariableSource source) : BaseFile(source) { } bool SequenceTextFile::loadCore(bool *valid) { QFile file(m_filename); QByteArray data; bool isUnicode = false; if (!file.open(QFile::ReadOnly | QIODevice::Text)) { if (*valid) { *valid = true; } return false; } data = file.readAll(); file.close(); // Detect Code QTextCodec *codec = GetUtfCodec(data); QTextStream in(&data); if (codec) { m_codec = codec; } in.setCodec(m_codec); // Read File QStringList currentSection; QString line; QString sectionName; QString sectionHead; QLinkNote curNote; int curLength; bool result = true; bool num = false; bool projectValid = true; bool findVersion, findSetting, findNote; findVersion = findSetting = findNote = false; curLength = 0; try { while (!in.atEnd()) { line = in.readLine(); if (line.isEmpty() && !in.atEnd()) { continue; } // Continue to add until meet the start of section or end if (!line.startsWith(SECTION_BEGIN_MARK) && !in.atEnd()) { currentSection.push_back(line); continue; } // If meet end, append without continue if (!line.isEmpty() && in.atEnd()) { currentSection.push_back(line); } // Previous section is empty if (currentSection.size() <= 1) { } else { sectionHead = currentSection[0]; // If Section Name is invalid if (!parseSectionName(sectionHead, sectionName)) { currentSection.clear(); continue; } // If Section Name is a number num = false; sectionName.toInt(&num); if (num) { // Parse Note findNote = true; curNote.clear(); if (parseSectionNote(currentSection, curNote)) { // curNote.tick = curLength; // Ignore note whose length is invalid if (curNote.length > 0) { m_sectionNotes.push_back(curNote); curLength += curNote.length; // Add to main tick count } } else { projectValid = false; } } else if (sectionName == SECTION_NAME_VERSION) { // Parse Version Sequence findVersion = true; if (!parseSectionVersion(currentSection, m_sectionVersion)) { projectValid = false; } // Not Unicode QString charset = m_sectionVersion.charset; if (!isUnicode) { if (!charset.isEmpty()) { QTextCodec *newCodec = QTextCodec::codecForName(m_sectionVersion.charset.toLatin1()); if (newCodec) { in.setCodec(newCodec); } } else { } } } else if (sectionName == SECTION_NAME_SETTING) { // Parse global settings findSetting = true; if (!parseSectionSettings(currentSection, m_sectionSettings)) { projectValid = false; } } } currentSection.clear(); currentSection.push_back(line); } if (!(findVersion || findSetting || findNote)) { result = false; projectValid = false; } } catch (...) { result = false; projectValid = false; } if (valid) { *valid = projectValid; } return result; } bool SequenceTextFile::saveCore() { QFile file(m_filename); if (!file.open(QFile::WriteOnly | QIODevice::Text)) { return false; } QTextStream out(&file); QString charset = m_sectionVersion.charset; if (!charset.isEmpty()) { m_codec = QTextCodec::codecForName(charset.toLatin1()); // Write UTF-8 } out.setCodec(m_codec); writeSectionVersion(out); // Write Version writeSectionSettings(out); // Write Global Settings // Write Notes for (int i = 0; i < m_sectionNotes.size(); ++i) { writeSectionNote(i, m_sectionNotes.at(i), out); } writeSectionName(SECTION_NAME_TRACKEND, out); // Write End Sign file.close(); return true; } void SequenceTextFile::resetCore() { m_sectionVersion.clear(); m_sectionSettings.clear(); m_sectionNotes.clear(); } SectionVersion SequenceTextFile::sectionVersion() const { return m_sectionVersion; } SectionVersion &SequenceTextFile::sectionVersion() { return m_sectionVersion; } void SequenceTextFile::setSectionVersion(const SectionVersion &value) { m_sectionVersion = value; } QList<QLinkNote> SequenceTextFile::sectionNotes() const { return m_sectionNotes; } QList<QLinkNote> &SequenceTextFile::sectionNotes() { return m_sectionNotes; } void SequenceTextFile::setSectionNotes(const QList<QLinkNote> &value) { m_sectionNotes = value; } void SequenceTextFile::clearSectionNotes() { m_sectionNotes.clear(); } void SequenceTextFile::appendSectionNote(const QLinkNote &oNote) { m_sectionNotes.push_back(oNote); } QLinkNote SequenceTextFile::popSectionNote() { QLinkNote aNote = m_sectionNotes.back(); m_sectionNotes.pop_back(); return aNote; } SectionSettings SequenceTextFile::sectionSettings() const { return m_sectionSettings; } SectionSettings &SequenceTextFile::sectionSettings() { return m_sectionSettings; } void SequenceTextFile::setSectionSettings(const SectionSettings &value) { m_sectionSettings = value; } bool SequenceTextFile::parseSectionName(const QString &oName, QString &oResult) { if (oName.startsWith(SECTION_BEGIN_MARK) && oName.endsWith(SECTION_END_MARK)) { oResult = oName.mid(SECTION_BEGIN_MARK.size(), oName.size() - SECTION_BEGIN_MARK.size() - SECTION_END_MARK.size()); return true; } else { return false; } } bool SequenceTextFile::parseSectionNote(const QStringList &sectionList, QLinkNote &note) { QStringList::size_type i; bool isValid = true; int eq; QString line; QString key, value; int valueInt; double valueDouble; bool isInt, isDouble; PBStrings mode2; QString strEnv; for (i = 0; i < sectionList.size(); ++i) { line = sectionList.at(i); eq = line.indexOf('='); if (eq <= 0) { continue; } key = line.left(eq); value = line.mid(eq + 1); valueInt = value.toInt(&isInt); valueDouble = value.toDouble(&isDouble); if (key == KEY_NAME_LYRIC) { note.lyric = value; // Lyric } else if (key == KEY_NAME_NOTE_NUM) { if (isInt) { note.noteNum = valueInt; // Note Num } } else if (key == KEY_NAME_LENGTH) { if (isInt) { note.length = valueInt; // Length } } else if (key == KEY_NAME_FLAGS) { note.flags = value; // Flags } else if (key == KEY_NAME_INTENSITY) { if (isDouble) { note.intensity = valueDouble; // Volume } } else if (key == KEY_NAME_MODULATION || key == KEY_NAME_MODURATION) { if (isDouble) { note.modulation = valueDouble; // Modulation } } else if (key == KEY_NAME_PRE_UTTERANCE) { if (isDouble) { note.preUttr = valueDouble; // PreUtterence } } else if (key == KEY_NAME_VOICE_OVERLAP) { if (isDouble) { note.overlap = valueDouble; // Voice Overlap } } else if (key == KEY_NAME_VELOCITY) { if (isDouble) { note.velocity = valueDouble; // Consonant Velocity } } else if (key == KEY_NAME_START_POINT) { if (isDouble) { note.stp = valueDouble; // StartPoint } } else if (key == KEY_NAME_TEMPO) { if (isDouble) { note.tempo = valueDouble; // Tempo } } else if (key == KEY_NAME_REGION_START) { note.region = value; // Start of region } else if (key == KEY_NAME_REGION_END) { note.regionEnd = value; // End of region } else if (key == KEY_NAME_PB_START) { if (isDouble) { note.pbstart = valueDouble; // Mode1 Start } } else if (key == KEY_NAME_PBS) { mode2.PBS = value; // Mode2 Start } else if (key == KEY_NAME_PBW) { mode2.PBW = value; // Mode2 Intervals } else if (key == KEY_NAME_PBY) { mode2.PBY = value; // Mode2 Offsets } else if (key == KEY_NAME_PBM) { mode2.PBM = value; // Mode2 Types } else if (key == KEY_NAME_PB_START) { if (isDouble) { note.pbstart = valueDouble; // Mode1 Start } } else if (key == KEY_NAME_PICHES || key == KEY_NAME_PITCHES || key == KEY_NAME_PITCH_BEND) { note.pitches = StringsToDoubles(value.split(COMMA)); // Mode1 Pitch } else if (key == KEY_NAME_VBR) { note.vibrato = StringsToDoubles(value.split(COMMA)); // Vibrato } else if (key == KEY_NAME_ENVELOPE) { strEnv = value; // Envelope } else if (!key.startsWith('@')) { note.customData.append(qMakePair(key, value)); // Custom Values } } note.Mode2Pitch = StringToPortamento(mode2); // Mode2 Pitch note.envelope = StringToEnvelope(strEnv); return isValid; } bool SequenceTextFile::parseSectionVersion(const QStringList &sectionList, SectionVersion &version) { int i; bool flag = false; int eq; QString line; QString key, value; for (i = 0; i < sectionList.size(); ++i) { line = sectionList.at(i); eq = line.indexOf('='); if (eq >= 0) { key = line.left(eq); value = line.mid(eq + 1); if (key == KEY_NAME_CHARSET) { m_sectionVersion.charset = value; } continue; } if (line.indexOf(UST_VERSION_PREFIX_NOSPACE) == 0) { version.version = line.mid(UST_VERSION_PREFIX_NOSPACE.size()).simplified(); flag = true; } } return flag; } bool SequenceTextFile::parseSectionSettings(const QStringList &sectionList, SectionSettings &settings) { QStringList::size_type i; bool isValid = true; int eq; QString key, value; double num; bool isNum; for (i = 0; i < sectionList.size(); ++i) { eq = sectionList[i].indexOf("="); if (eq <= 0) { continue; } key = sectionList[i].left(eq); value = sectionList[i].mid(eq + 1); if (key == KEY_NAME_PROJECT_NAME) { settings.projectName = value; // Project Name } else if (key == KEY_NAME_OUTPUT_FILE) { settings.outputFileName = value; // Output File Name } else if (key == KEY_NAME_VOICE_DIR) { settings.voiceDirectory = fromUSTVoiceDir(value, AppPath); // Voice Directory } else if (key == KEY_NAME_CACHE_DIR) { settings.cacheDirectory = value; // Cache Directory } else if (key == KEY_NAME_TOOL1) { settings.wavtoolPath = fromUSTToolsDir(value, AppPath); // Wavtool } else if (key == KEY_NAME_TOOL2) { settings.resamplerPath = fromUSTToolsDir(value, AppPath); // Resampler } else if (key == KEY_NAME_MODE2) { if (value != "True") { isValid = false; } settings.isMode2 = true; // Mode2 } else if (key == KEY_NAME_TEMPO) { num = value.toDouble(&isNum); if (!isNum) { isValid = false; } else { settings.globalTempo = num; // Global Tempo } } else if (key == KEY_NAME_FLAGS) { settings.globalFlags = value; // Flags } } return isValid; } void SequenceTextFile::writeSectionName(const int &name, QTextStream &out) { QString newName = QString::number(name); int nums = newName.size(); for (int i = 0; i < 4 - nums; ++i) { newName.prepend("0"); } writeSectionName(newName, out); } void SequenceTextFile::writeSectionName(const QString &name, QTextStream &out) { out << SECTION_BEGIN_MARK + name + SECTION_END_MARK << Qt::endl; } void SequenceTextFile::writeSectionNote(int num, const QLinkNote &note, QTextStream &out) { writeSectionName(num, out); // Items maybe not exist QString aVibrato = DoublesToStrings(note.vibrato).join(COMMA); QString aPitchBend = DoublesToStrings(note.pitches).join(COMMA); // Complex items PBStrings mode2; QString strEnvelope; mode2 = PortamentoToString(note.Mode2Pitch); strEnvelope = EnvelopeToString(note.envelope); // Items always exists out << KEY_NAME_LENGTH << "=" << note.length << Qt::endl; out << KEY_NAME_LYRIC << "=" << note.lyric << Qt::endl; out << KEY_NAME_NOTE_NUM << "=" << note.noteNum << Qt::endl; // Items can be omitted if (note.preUttr != NODEF_DOUBLE) { out << KEY_NAME_PRE_UTTERANCE << "=" << note.preUttr << Qt::endl; } if (note.overlap != NODEF_DOUBLE) { out << KEY_NAME_VOICE_OVERLAP << "=" << note.overlap << Qt::endl; } if (note.velocity != NODEF_DOUBLE) { out << KEY_NAME_VELOCITY << "=" << QString::number(note.velocity) << Qt::endl; } if (note.intensity != NODEF_DOUBLE) { out << KEY_NAME_INTENSITY << "=" << note.intensity << Qt::endl; } if (note.modulation != NODEF_DOUBLE) { out << KEY_NAME_MODULATION << "=" << note.modulation << Qt::endl; } if (note.stp != NODEF_DOUBLE) { out << KEY_NAME_START_POINT << "=" << note.stp << Qt::endl; } if (!note.flags.isEmpty()) { out << KEY_NAME_FLAGS << "=" << note.flags << Qt::endl; } // Items may not exist if (!note.pitches.isEmpty()) { out << KEY_NAME_PB_TYPE << "=" << VALUE_PITCH_TYPE << Qt::endl; out << KEY_NAME_PB_START << "=" << note.pbstart << Qt::endl; out << KEY_NAME_PITCH_BEND << "=" << aPitchBend << Qt::endl; } if (!note.Mode2Pitch.isEmpty()) { out << KEY_NAME_PBS << "=" << mode2.PBS << Qt::endl; out << KEY_NAME_PBW << "=" << mode2.PBW << Qt::endl; if (!mode2.PBY.isEmpty()) { out << KEY_NAME_PBY << "=" << mode2.PBY << Qt::endl; } if (!mode2.PBS.isEmpty()) { out << KEY_NAME_PBM << "=" << mode2.PBM << Qt::endl; } } if (!note.envelope.isEmpty()) { out << KEY_NAME_ENVELOPE << "=" << strEnvelope << Qt::endl; } if (!note.vibrato.isEmpty()) { out << KEY_NAME_VBR << "=" << aVibrato << Qt::endl; } if (note.tempo != NODEF_DOUBLE) { out << KEY_NAME_TEMPO << "=" << note.tempo << Qt::endl; } if (note.region != NODEF_STRING) { out << KEY_NAME_REGION_START << "=" << note.region << Qt::endl; } if (note.regionEnd != NODEF_STRING) { out << KEY_NAME_REGION_END << "=" << note.regionEnd << Qt::endl; } // Custom Values for (int i = 0; i < note.customData.size(); ++i) { out << note.customData[i].first << "=" << note.customData[i].second << Qt::endl; } } void SequenceTextFile::writeSectionVersion(QTextStream &out) { writeSectionName(SECTION_NAME_VERSION, out); out << UST_VERSION_PREFIX_NOSPACE << m_sectionVersion.version << Qt::endl; // UTF-8 UST File? QString charset = m_sectionVersion.charset; if (!charset.isEmpty()) { out << KEY_NAME_CHARSET << "=" << charset << Qt::endl; } } void SequenceTextFile::writeSectionSettings(QTextStream &oStream) { writeSectionName(SECTION_NAME_SETTING, oStream); oStream << KEY_NAME_TEMPO << "=" << m_sectionSettings.globalTempo << Qt::endl; oStream << KEY_NAME_TRACKS << "=" << VALUE_TRACKS_SINGLE << Qt::endl; oStream << KEY_NAME_PROJECT_NAME << "=" << m_sectionSettings.projectName << Qt::endl; oStream << KEY_NAME_VOICE_DIR << "=" << toUSTVoiceDir(m_sectionSettings.voiceDirectory, AppPath) << Qt::endl; oStream << KEY_NAME_OUTPUT_FILE << "=" << m_sectionSettings.outputFileName << Qt::endl; oStream << KEY_NAME_CACHE_DIR << "=" << m_sectionSettings.cacheDirectory << Qt::endl; oStream << KEY_NAME_TOOL1 << "=" << toUSTToolsDir(m_sectionSettings.wavtoolPath, AppPath) << Qt::endl; oStream << KEY_NAME_TOOL2 << "=" << toUSTToolsDir(m_sectionSettings.resamplerPath, AppPath) << Qt::endl; if (m_sectionSettings.isMode2) { oStream << KEY_NAME_MODE2 << "=" << VALUE_MODE2_ON << Qt::endl; } if (!m_sectionSettings.globalFlags.isEmpty()) { oStream << KEY_NAME_FLAGS << "=" << m_sectionSettings.globalFlags << Qt::endl; } }
31.803853
100
0.557269
SineStriker
5917564f6f820e30d8adb2b1baeff950fd4f1057
496
cpp
C++
components/rollkit/src/chracteristic.cpp
NeilBetham/rollk
e82026397c892b5f0d3b53891d5efa51d941fd9d
[ "MIT" ]
4
2018-06-12T21:48:01.000Z
2021-04-01T15:18:50.000Z
components/rollkit/src/chracteristic.cpp
NeilBetham/rollk
e82026397c892b5f0d3b53891d5efa51d941fd9d
[ "MIT" ]
null
null
null
components/rollkit/src/chracteristic.cpp
NeilBetham/rollk
e82026397c892b5f0d3b53891d5efa51d941fd9d
[ "MIT" ]
1
2018-08-18T13:05:31.000Z
2018-08-18T13:05:31.000Z
#include "rollkit/characteristic.hpp" #include <algorithm> #include "rollkit/utils.hpp" using namespace std; namespace rollkit { nlohmann::json Characteristic::serialize() const { nlohmann::json ret; bool is_readable = find(_perms.begin(), _perms.end(), "pr") != _perms.end(); ret["type"] = _hap_type; ret["iid"] = _instance_id; ret["perms"] = _perms; ret["format"] = _format; if(is_readable) { ret["value"] = handle_read(); } return ret; } } // namespace rollkit
17.103448
78
0.66129
NeilBetham
591b215502ae32dc5fcc9b5d7eb6f95ae377a5e5
28,005
cpp
C++
src/lib/foundations/solvers/mckay.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
15
2016-10-27T15:18:28.000Z
2022-02-09T11:13:07.000Z
src/lib/foundations/solvers/mckay.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
4
2019-12-09T11:49:11.000Z
2020-07-30T17:34:45.000Z
src/lib/foundations/solvers/mckay.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
15
2016-06-10T20:05:30.000Z
2020-12-18T04:59:19.000Z
// mckay.cpp // // solver due to Brendan McKay // C++ translation by Volker Widor 2003 // adapted by Anton Betten // 1/16/2009 #include "foundations.h" using namespace std; namespace orbiter { namespace foundations { mckay::tMCKAY::tMCKAY() { nb_calls_to_solve = 0; first_moved = 0; second_moved = 0; problem_label = NULL; _eqnanz = 0; _varanz = 0; //vector<bool> unitcoeffs; //vector<bool> active; rekurs = 0; _break = false; D = NULL; //tLGS *_lgs; #ifdef MCKAY_DEBUG //vector<int> range, split, branch; ticks0 = 0; #endif }; void mckay::tMCKAY::Init(diophant *lgs, const char *label, int aEqnAnz, int aVarAnz) { os_interface Os; _varanz=aVarAnz; _eqnanz=aEqnAnz; nb_calls_to_solve = 0; D = lgs; //_lgs = aLgs; rekurs=0; unitcoeffs.resize(_eqnanz); active.resize(_eqnanz); problem_label = label; #ifdef MCKAY_DEBUG int m; m = MAXIMUM(_eqnanz, _varanz) + 1; range.resize(m); split.resize(m); branch.resize(m); ticks0 = Os.os_ticks(); #endif } void mckay::tMCKAY::possolve(vector<int> &lo, vector<int> &hi, vector<equation> &eqn, vector<int> &lorhs, vector<int> &hirhs, vector<int> &neqn, int numeqn, int numvar, int verbose_level) { int f_v = (verbose_level >= 1); int f_v4 = (verbose_level >= 4); int i,j; bool hopeless; if (f_v) { cout << "possolve" << endl; } nb_calls_to_solve = 0; first_moved = INT_MAX; second_moved = INT_MAX; if (numeqn > _eqnanz || numvar > _varanz) { cerr<<"*** >E intsolve: limits exceeded\n"; throw this; } /* First step: If for one equation there is no coefficient different from zero, this equation is \"not" active. Further mark in \|unitcoeffs| the equations with coefficients solely $\in\{0,1\}$. */ hopeless = false; for (i = 0; i < numeqn; ++i) { if (neqn[i] == 0) { active[i] = false; if (lorhs[i] > 0 || hirhs[i] < 0) hopeless = true; } else { active[i] = true; } for (j = neqn[i]; --j >= 0;) if (eqn[i][j].coeff != 1) break; unitcoeffs[i] = (j < 0); } /* More output. */ if (f_v4) { puteqns(lo,hi,numvar,lorhs,hirhs,eqn,neqn,numeqn); } /* Finally the recursion starts. */ if (!hopeless) _break = false; if (f_v) { cout << "mckay::tMCKAY::possolve: calling solve" << endl; } solve(0,lo,hi,active,numvar,lorhs,hirhs,eqn,neqn,numeqn, verbose_level); if (f_v) { cout << "mckay::tMCKAY::possolve done" << endl; } return; } /* \subsection{subtract} subtract equation e1 from e2 if possible --- return success. It is used in function \|pruneqn|. */ bool mckay::tMCKAY::subtract( int eqn1, equation &e1, int l1, int lors1, int hirs1, int eqn2, equation &e2, int *pl2, int *plors2, int *phirs2, int verbose_level) { int f_v = (verbose_level >= 1); int i,j,k; term e1i; int l2,factor,minfactor; /* First test if subtraction is possible. */ minfactor = 999999; l2 = *pl2; if (l1 > l2 || hirs1 > lors1) return false; /* Second test if subtraction is possible. */ j = 0; for (i = 0; i < l1; ++i) { e1i = e1[i]; for (; j < l2 && e2[j].var != e1i.var; ++j) {} if (j == l2 || e2[j].coeff < e1i.coeff) return false; factor = e2[j].coeff / e1i.coeff; if (factor < minfactor) minfactor = factor; } /* Do subtraction */ k = 0; for (i = j = 0; i < l1; ++i, ++j) { e1i = e1[i]; for (; j < l2 && e2[j].var != e1i.var; ++j) e2[k++] = e2[j]; if (j < l2 && e2[j].coeff > minfactor*e1i.coeff) { e2[k].var = e2[j].var; e2[k].coeff = e2[j].coeff - minfactor*e1i.coeff; ++k; } } for (; j < l2; ++j) e2[k++] = e2[j]; *pl2 = k; *plors2 -= minfactor*lors1; *phirs2 -= minfactor*hirs1; /* end of subtraction. */ if (f_v) { cout << "subtract: subtracted equation " << eqn1 << " from equation " << eqn2 << endl; } return true; } /* \subsection{pruneqn --- remove equations} prune equations by subtraction. */ void mckay::tMCKAY::pruneqn(vector<int> &lo, vector<int> &hi, int numvar, vector<int> &lorhs, vector<int> &hirhs, vector<equation> &eqn, vector<int> &neqn, int numeqn, int verbose_level) { int f_v = (verbose_level >= 1); bool ok; vector<bool> done; done.resize(_eqnanz); int i,j; /* \|done| is always \|false|. Why? */ for (i = 0; i < numeqn; ++i) { done[i] = false; } do { ok = true; for (i = 0; i < numeqn; ++i) { if (!done[i] && neqn[i] > 0) { for (j = 0; j < numeqn; ++j) { if (i != j && subtract(i, eqn[i],neqn[i], lorhs[i],hirhs[i],j, eqn[j], &neqn[j],&lorhs[j],&hirhs[j], verbose_level)) { if (f_v) { cout << "mckay::tMCKAY::pruneqn after subtract:" << endl; puteqns(lo, hi, numvar, lorhs, hirhs, eqn, neqn, numeqn); } ok = false; done[j] = false; } // if } // for } // if } // for } while (!ok); return; } /* \subsection{varprune --- remove variables} Try to remove free variables by testing if variables are already fixed. This is the case if the lower bound on a variable is equal to its upper bound. */ void mckay::tMCKAY::varprune(vector<int> &lo, vector<int> &hi, vector<int> &lorhs, vector<int> &hirhs, vector<equation> &eqn, vector<int> &neqn, int numeqn, int verbose_level) { int f_v = (verbose_level >= 1); int i,j,sum,len; for (j = 0; j < numeqn; ++j) { len = neqn[j]; sum = 0; // simple test whether the lower bound // of a variable meets its upper bound: for (i = 0; i < len;) { if (lo[eqn[j][i].var] == hi[eqn[j][i].var]) { sum += eqn[j][i].coeff*lo[eqn[j][i].var]; if (f_v && sum) { cout << "varprune: equation " << j << " variable " << eqn[j][i].var << " is not free any more, " "sum += " << eqn[j][i].coeff * lo[eqn[j][i].var] << endl; } eqn[j][i] = eqn[j][--len]; } else { ++i; } } lorhs[j] -= sum; hirhs[j] -= sum; if (f_v && sum) { cout << "varprune: equation " << j << " reducing RHS by " << sum << " to lorhs[j]=" << lorhs[j] << " hirhs[j]=" << hirhs[j] << endl; } neqn[j] = len; } } void mckay::tMCKAY::puteqns(vector<int> &lo, vector<int> &hi, int numvar, vector<int> &lorhs, vector<int> &hirhs, vector<equation> &eqn, vector<int> &neqn, int numeqn) { int i,j; // First the lower and upper bounds on the variable are written: cout << "CON" << endl; for (i = 0; i < numvar; ++i) { if (i > 0) cout << "," << endl; if (lo[i] > 0) cout << "x" << i << " >= " << lo[i] << ", "; cout << "x" << i << " <= " << hi[i]; } // print the equations: for (i = 0; i < numeqn; ++i) { cout << "," << endl; cout << "Equation " << i << " : "; for (j = 0; j < neqn[i]; ++j) { if (j % 16 == 15) cout << endl << " "; cout << (j == 0 ? "" : "+") << eqn[i][j].coeff << "*x" << eqn[i][j].var; } cout << (lorhs[i] < hirhs[i] ? " >= " : " = ") << lorhs[i]; if (lorhs[i] == hirhs[i]) continue; // inequalities: cout << "," << endl; for (j = 0; j < neqn[i]; ++j) { if (j % 16 == 15) cout << endl << " "; cout << (j == 0 ? "" : "+") << eqn[i][j].coeff << "*x" << eqn[i][j].var; } cout << " <= " << hirhs[i]; } cout << ";" << endl; } /* \subsection{divideeqns} take out common factors, return bad eqn number. It is only used in the main program. */ int mckay::tMCKAY::divideeqns(vector<int> &lorhs, vector<int> &hirhs, vector<equation> &eqn, vector<int> &neqn, int numeqn) { int i,j,g,len; for (j = 0; j < numeqn; ++j) { len = neqn[j]; if (len == 0) continue; g = eqn[j][0].coeff; i = 1; for (i = 1; i < len && g > 1; ++i) g = gcd(g,eqn[j][i].coeff); /* $g = \gcd$ of all coefficients of the left hand side of equation $i$. If $g=1$ step to the next equation. */ if (g == 1) continue; for (i = 0; i < len; ++i) eqn[j][i].coeff /= g; lorhs[j] = lorhs[j] < 0 ? 0 : (lorhs[j] + g - 1) / g; hirhs[j] = hirhs[j] < 0 ? -1 : hirhs[j] / g; /* Write some information.*/ cerr<<"eqn "<<j<<": g="<<g<<" lorhs="<<lorhs[j] <<" hirhs="<<hirhs[j]<<"\n"; if (lorhs[j] > hirhs[j]) return j; } return -1; } /* \subsection{gcd} used in \|divideeqns|. */ int mckay::tMCKAY::gcd(int n1,int n2) { int a,b,c; if (n1 > n2) { a = n1; b = n2; } else { a = n2; b = n1; } while ((c = a % b) > 0) { a = b; b = c; } return(b); } /* \section{solve --- brute force recursion} This procedure is called recursively. */ void mckay::tMCKAY::solve(int level, vector<int> &alo, vector<int> &ahi, vector<bool> &aactive, int numvar, vector<int> &lorhs, vector<int> &hirhs, vector<equation> &eqn, vector<int> &neqn, int numeqn, int verbose_level) { int f_v = (verbose_level >= 1); //int f_vv = (verbose_level >= 2); int f_vvv = (verbose_level >= 3); int i,j; vector<int> lo, hi; lo.resize(_varanz); hi.resize(_varanz); int isplit, mindiff; vector<bool> active; active.resize(_eqnanz); //int current_node; int f_restriction_made; //current_node = nb_calls_to_solve; nb_calls_to_solve++; #if 0 if (f_vv) { log_12l(nb_calls_to_solve, level); //log_12l(current_node, level); cout << "mckay::tMCKAY::solve " << problem_label //<< " node " << current_node << " first_moved " << first_moved << " second_moved " << second_moved << " level " << level << endl; } #ifdef MCKAY_DEBUG if (f_vvv) { cout << " : "; for (i = 0; i < level; ++i) { cout << "x_" << split[i] << "=" << branch[i]; if (i < level - 1) { cout << ", "; } } } #endif if (f_vv) { cout << endl; } #endif #ifdef MCKAY_DEBUG if (f_vvv) { cout << "level=" << level << endl; cout << "i : split[i] : range[i] : branch[i]" << endl; for (i = 0; i < level; ++i) { cout << i << " : " << split[i] << " : " << range[i] << " : " << branch[i] << " : " << endl; } cout << "low and high:" << endl; for (j = 0; j < numvar; j++) { cout << j << " : " << alo[j] << " : " << ahi[j] << endl; } } #endif #if 0 if (f_vvv) { log_12l(current_node, level); cout << " current system:" << endl; puteqns(alo,ahi,numvar,lorhs,hirhs,eqn,neqn,numeqn); } #endif //f_debug = FALSE; //f_debug = (verbose_level >= 10); if (_break) { return; } if (FALSE) { int nacc = 0; cout << " SOLVE level "<<level<< endl; cout<<"Number of active equations: "; for (i = numeqn; --i >= 0;) if (aactive[i]) ++nacc; cout<<":"<<nacc<<endl; for (i = 0; i < numeqn; i++) { if (aactive[i]) cout << i << " "; } cout << endl; cout << "low and high:" << endl; for (j = 0; j < numvar; j++) { cout << j << " : " << alo[j] << " : " << ahi[j] << endl; } #ifdef MCKAY_DEBUG os_interface Os; if (((Os.os_ticks() - ticks0) / Os.os_ticks_per_second()) > INTERVAL_IN_SECONDS) { ticks0 = Os.os_ticks(); //f_debug = TRUE; puteqns(alo,ahi,numvar,lorhs,hirhs,eqn,neqn,numeqn); cout << "level=" << level << endl; cout << "range[] : branch[] :" << endl; for (i = 0; i < level; ++i) cout << range[i] << " : " << branch[i] << " : " << endl; } #endif } /* \|lo|, \|hi| and \|active| are local arrays. */ for (i = 0; i < numvar; ++i) { lo[i] = alo[i]; hi[i] = ahi[i]; } for (i = 0; i < numeqn; ++i) { active[i] = aactive[i]; } if (!restrict_variables(level, lo, hi, active, numvar, lorhs, hirhs, eqn, neqn, numeqn, f_restriction_made, verbose_level - 1)) { #if 0 if (f_vv) { log_12l(nb_calls_to_solve, level); //log_12l(current_node, level); cout << "solve restrict_variables returns FALSE, " "backtracking" << endl; } #endif return; } #if 0 if (f_vvv && f_restriction_made) { log_12l(nb_calls_to_solve, level); //log_12l(current_node, level); cout << " after restriction: low and high:" << endl; for (i = 0; i < numvar; i++) { cout << i << " : " << lo[i] << " : " << hi[i] << endl; } } #endif // Here comes the searching part. // \|mindiff| gives the smallest // difference between lower and upper bound of a variable. // \|isplit| // is the corresponding variable number. #if 0 if (f_vv) { log_12l(nb_calls_to_solve, level); //log_12l(current_node, level); cout << "searching part" << endl; } #endif mindiff = INT_MAX; isplit = -1; for (i = 0; i < numvar; ++i) { if (hi[i] != lo[i] && hi[i] - lo[i] < mindiff) { isplit = i; mindiff = hi[i] - lo[i]; } } // If \|isplit| $< 0$ we have found a solution. // Otherwise we try to delete variables by // \|varprune| and we try to delete equations // by \|pruneqn|. if (isplit < 0) { if (f_v) { log_12l(nb_calls_to_solve, level); cout << " solution " << D->_resultanz << endl; } D->_results.push_back(lo); D->_resultanz++; if (D->_resultanz < D->_maxresults) { _break = false; } else { _break = true; } } else { if (level == 0) { varprune(lo,hi,lorhs,hirhs,eqn,neqn,numeqn, verbose_level); //#if VERBOSE > 2 //puteqns(lo,hi,numvar,lorhs,hirhs,eqn,neqn,numeqn); //#endif pruneqn(lo,hi,numvar,lorhs,hirhs,eqn,neqn,numeqn, verbose_level); //#if VERBOSE > 2 #if 0 if (f_vvv) { log_12l(nb_calls_to_solve, level); //log_12l(current_node, level); cout << " after varprune and pruneqn:" << endl; puteqns(lo,hi,numvar,lorhs,hirhs,eqn,neqn,numeqn); } #endif //#endif } /* Finally we start the recursion. the variable with the number \|isplit| runs from \|lo[isplit]| to \|hi[isplit]| and for each step we call \|solve| with this fixed value. \|branch|, \|split| and \|range| are collected for debugging purposes. */ #if 0 if (TRUE /*(f_v && (current_node % 10000) == 0) || f_vv*/) { //log_12l(current_node, level); log_12l(nb_calls_to_solve, level); cout << "solve choosing variable " << isplit << " lo=" << lo[isplit] << " hi=" << hi[isplit] << endl; } #endif for (i = 0; i <= mindiff; ++i) { int first_moved_orig = first_moved; int second_moved_orig = second_moved; int f_first_moved_has_changed = FALSE; int f_second_moved_has_changed = FALSE; if (i) { if (level < first_moved) { first_moved = level; second_moved = INT_MAX; } else if (level < second_moved) { second_moved = level; } if (first_moved != first_moved_orig) { f_first_moved_has_changed = TRUE; } if (second_moved != second_moved_orig) { f_second_moved_has_changed = TRUE; } } if (f_first_moved_has_changed || f_second_moved_has_changed || (nb_calls_to_solve % 10000000) == 0) { log_12l(nb_calls_to_solve, level); cout << " x_" << isplit << " = " << lo[isplit] << endl; } hi[isplit] = lo[isplit]; #ifdef MCKAY_DEBUG split[level] = isplit; branch[level] = lo[isplit]; range[level] = mindiff+1; #endif // here comes the recursion: if (f_v) { cout << "solve level " << level << " isplit=" << isplit << " before solve i=" << i << " / " << mindiff << endl; for (j = 0; j < numeqn; j++) { if (aactive[i]) cout << j << " "; } cout << endl; cout << "low and high:" << endl; for (j = 0; j <= level; j++) { cout << j << " : " << alo[j] << " : " << ahi[j] << endl; } #if 0 #ifdef MCKAY_DEBUG if (TRUE/*((os_ticks() - ticks0) / os_ticks_per_second()) > INTERVAL_IN_SECONDS*/) { ticks0 = os_ticks(); //f_debug = TRUE; puteqns(alo,ahi,numvar,lorhs,hirhs,eqn,neqn,numeqn); cout << "level=" << level << endl; cout << "range[] : branch[] :" << endl; for (j = 0; j <= level; j++) { cout << range[j] << " : " << branch[j] << " : " << endl; } } #else // cout << "MCKAY_DEBUG is FALSE" << endl; #endif #endif } solve(level + 1, lo, hi, active, numvar, lorhs, hirhs, eqn, neqn, numeqn, verbose_level); if (f_v) { cout << "solve level " << level << " isplit=" << isplit << " after solve" << endl; } ++lo[isplit]; } // next i } // else #if 0 if (f_vv) { log_12l(nb_calls_to_solve, level); //log_12l(current_node, level); cout << " done" << endl; } #endif } int mckay::tMCKAY::restrict_variables(int level, vector<int> &lo, vector<int> &hi, vector<bool> &active, int numvar, vector<int> &lorhs, vector<int> &hirhs, vector<equation> &eqn, vector<int> &neqn, int numeqn, int &f_restriction_made, int verbose_level) { int f_v = (verbose_level >= 1); int f_vv = (verbose_level >= 2); //int f_vvv = (verbose_level >= 3); //int f_debug; int i, j; long int current_node; int losum,hisum,eic,eiv,lx,hx; int nfree,ok, xlo,xhi; int save; int f_restriction_made_in_this_eqn; if (f_v) { cout << "mckay::tMCKAY::restrict_variables" << endl; } if (f_vv) { cout << "low and high:" << endl; for (j = 0; j <= level; j++) { cout << j << " : " << lo[j] << " : " << hi[j] << endl; } puteqns(lo, hi, numvar, lorhs, hirhs, eqn, neqn, numeqn); cout << "level=" << level << endl; cout << "range[] : branch[] :" << endl; for (j = 0; j <= level; j++) { cout << range[j] << " : " << branch[j] << " : " << endl; } } current_node = nb_calls_to_solve; /* The following line seems to be a relict from another problem. */ /* *< if (level == 8 && lo[22] == 1 && lo[19] == 1) nul(); >* */ /* The following loop through the equations tries to restrict the lower and upper bounds on the variables. We only have to handle active equations. */ ok = 0; /* ok = number of equations that have been * checked since the last change of any * lo[] or hi[] was made. * the aim is to check all equations once * without reducing hi[] - lo[]; * so that we have reached stability */ f_restriction_made = FALSE; for (j = 0; ok < numeqn; j = (j == numeqn-1 ? 0 : j+1)) { // j is the next equation to check; // j wraps around all equation indices if (f_vv /*f_debug*/) { cout << "mckay::tMCKAY::restrict_variables checking equation " << j << endl; } ++ok; if (active[j]) { f_restriction_made_in_this_eqn = FALSE; // we check equation j: // We distinguish two cases: // First, if there are only $\{0,1\}$-coefficients. if (FALSE /*unitcoeffs[j]*/) { // The lower and upper bounds on the variables // (belonging to nonzero coefficients) are summed up // in \|losum| and \|hisum|. if (f_vv /*f_debug*/) { cout << "checking equation " << j << " with unitcoeffs" << endl; } losum = 0; hisum = 0; for (i = neqn[j]; --i >= 0;) { losum += lo[eqn[j][i].var]; // lowest possible lhs hisum += hi[eqn[j][i].var]; // highest possible lhs } if (losum > hirhs[j]) { if (f_v) { cout << "solve " << problem_label << " node " << current_node << " level " << level << "return b/c for equation " << j << " with unitcoeffs " "we have losum = " << losum << " > " << hirhs[j] << " = hirhs[j]" << endl; } return FALSE; } if (hisum < lorhs[j]) { if (f_v) { cout << "solve " << problem_label << " node " << current_node << " level " << level << "return b/c for equation " << j << " with unitcoeffs " " we have hisum = " << hisum << " < " << lorhs[j] << " = lorhs[j]" << endl; } return FALSE; } // If possible the lower or upper bounds on the // variables are restricted further. // count the number of remaining free // variables in nfree. nfree = 0; for (i = neqn[j]; --i >= 0;) { eiv = eqn[j][i].var; hx = hi[eiv]; lx = lo[eiv]; if (hx != lx) { xlo = lorhs[j] + hx - hisum; // = lorhs[j] - (hisum - hx), i.e., // lorhs[j] minus hisum of all the // other variables. // This is a lower bound on the amount // that the current variable contributes. xhi = hirhs[j] + lx - losum; // = hirhs[j] - (losum - lx), i.e. // hirhs[j] minus losum of all the // other variables. // This is an upper bound on the amount // that the current variable contributes. if (xlo > lx) { save = lo[eiv]; lo[eiv] = xlo; if (lo[eiv] != save) { f_restriction_made = TRUE; f_restriction_made_in_this_eqn = TRUE; if (f_v) { cout << "increasing lo[" << eiv << "] from " << save << " to " << lo[eiv] << endl; } } ok = 0; // a change was made; // loop through all // equations again. } if (xhi < hx) { save = hi[eiv]; hi[eiv] = xhi; if (lo[eiv] != save) { f_restriction_made = TRUE; f_restriction_made_in_this_eqn = TRUE; if (f_v) { cout << "reducing hi[" << eiv << "] from " << save << " to " << hi[eiv] << endl; } } ok = 0; } if (lo[eiv] != hi[eiv]) { ++nfree; } } // if (hx != lx) } // next i } // if (unitcoeffs[j]) // Now the slightly more complicated case // if there are coefficents greater than $1$. // If the lower bound of a variable becomes greater // than its upper bound, the procedure is stopped at once. else { // Again the lower and upper bounds on the variables // (belonging to nonzero coefficients) are summed // up in \|losum| and \|hisum|. if (f_v /*f_debug*/) { cout << "mckay::tMCKAY::restrict_variables checking equation " << j << " without unitcoeffs" << endl; } losum = 0; hisum = 0; for (i = neqn[j]; --i >= 0;) { losum += eqn[j][i].coeff * lo[eqn[j][i].var]; hisum += eqn[j][i].coeff * hi[eqn[j][i].var]; } if (losum > hirhs[j]) { if (f_v) { cout << "mckay::tMCKAY::restrict_variables " << problem_label << " node " << current_node << " level " << level << "return b/c for equation " << j << " without unitcoeffs " "we have losum = " << losum << " > " << hirhs[j] << " = hirhs[j]" << endl; } return FALSE; } if (hisum < lorhs[j]) { if (f_v) { cout << "mckay::tMCKAY::restrict_variables " << problem_label << " node " << current_node << " level " << level << "return b/c for equation " << j << " without unitcoeffs " "we have hisum = " << hisum << " < " << lorhs[j] << " = lorhs[j]" << endl; } return FALSE; } if (f_vv && f_restriction_made_in_this_eqn) { cout << "mckay::tMCKAY::restrict_variables " "equation " << j << ", after restriction: " "low and high:" << endl; for (i = 0; i < numvar; i++) { cout << i << " : " << lo[i] << " : " << hi[i] << endl; } cout << "hisum=" << hisum << endl; cout << "losum=" << losum << endl; } // And if possible the lower or upper bounds // on the variables // are restricted further. f_restriction_made_in_this_eqn = FALSE; nfree = 0; for (i = neqn[j]; --i >= 0;) { if (FALSE /*f_debug*/) { cout << "restricting lower and upper " "bounds equation " << j << endl; } if (hi[eqn[j][i].var] != lo[eqn[j][i].var]) { eic = eqn[j][i].coeff; eiv = eqn[j][i].var; hx = eic * hi[eiv]; lx = eic * lo[eiv]; xlo = lorhs[j] + hx - hisum; // = lorhs[j] - (hisum - hx), i.e., // lorhs[j] minus hisum of all the other variables. // This is a lower bound on the amount // that the current variable contributes. xhi = hirhs[j] + lx - losum; // = hirhs[j] - (losum - lx), i.e. // hirhs[j] minus losum of all the other variables. // This is an upper bound on the amount // that the current variable contributes. if (xlo > lx) { save = lo[eiv]; lo[eiv] = (xlo + eic - 1) / eic; if (lo[eiv] != save) { f_restriction_made = TRUE; f_restriction_made_in_this_eqn = TRUE; if (f_v) { cout << "increasing lo[" << eiv << "] from " << save << " to " << lo[eiv] << " : " << "eqn j=" << j << " variable " << eiv << " coeff=" << eic << " lorhs[j]=" << lorhs[j] << " hisum=" << hisum << " hx=" << hx << " hisum - hx=" << hisum - hx << endl; } } if (lo[eiv] > hi[eiv]) { if (f_v) { cout << "return bc for eqn " << j << " term " << i << " xlo > lx " "and lo[eiv] > hi[eiv]" << endl; } return FALSE; } ok = 0; } if (xhi < hx) { save = hi[eiv]; hi[eiv] = xhi / eic; if (hi[eiv] < save) { f_restriction_made = TRUE; f_restriction_made_in_this_eqn = TRUE; if (f_v) { cout << "reducing hi[" << eiv << "] from " << save << " to " << hi[eiv] << " : " << "eqn j=" << j << " variable " << eiv << " coeff=" << eic << " hirhs[j]=" << hirhs[j] << " losum=" << losum << " lx=" << lx << " losum - lx=" << losum - lx << endl; } } if (lo[eiv] > hi[eiv]) { if (f_v) { cout << "return bc for eqn " << j << " term " << i << " xhi < hx " "and lo[eiv] > hi[eiv]" << endl; cout << "xlo=" << xlo << endl; cout << "xhi=" << xhi << endl; cout << "lx=" << lx << endl; cout << "hx=" << hx << endl; cout << "eic=" << eic << endl; cout << "eiv=" << eiv << endl; cout << "lo[eiv]=" << lo[eiv] << endl; cout << "hi[eiv]=" << hi[eiv] << endl; } return FALSE; } ok = 0; } if (lo[eiv] != hi[eiv]) { ++nfree; } } // if hi[eqn[j][i] } // next i if (f_vv && f_restriction_made_in_this_eqn) { cout << "mckay::tMCKAY::restrict_variables " "equation " << j << ", after restriction: " "low and high:" << endl; for (i = 0; i < numvar; i++) { cout << i << " : " << lo[i] << " : " << hi[i] << endl; } cout << "hisum=" << hisum << endl; cout << "losum=" << losum << endl; } } // else // Now hopefully the variables are in each // case further restricted. // The equation becomes inactive if // \item{(1)} there are no free variables in // this equation \"and // \item{(2)} if it was not possible to further // restrict the variables in the last try. if (ok > 0 && nfree == 0) { active[j] = false; } } // if (active[j]) } // next j return TRUE; } void mckay::tMCKAY::log_12l(long int current_node, int level) { cout << "solve " << problem_label << " node " << current_node << " first_moved "; if (first_moved < INT_MAX) { cout << first_moved; } else { cout << "infinity"; } cout << " second_moved "; if (second_moved < INT_MAX) { cout << second_moved; } else { cout << "infinity"; } cout << " level " << level; cout << " nb_sol=" << D->_resultanz; } } }
25.858726
115
0.508124
abetten
591cfcda93a7f61258283a371c37cf3f085c0a55
123,412
cpp
C++
api/modules/SAM_TroughPhysicalProcessHeat.cpp
jkelroy/SAM
3c05e55ec7d9e31f33e06f17fa6fb41bb19f04db
[ "BSD-3-Clause" ]
219
2017-07-28T17:25:14.000Z
2022-03-17T23:03:17.000Z
api/modules/SAM_TroughPhysicalProcessHeat.cpp
jkelroy/SAM
3c05e55ec7d9e31f33e06f17fa6fb41bb19f04db
[ "BSD-3-Clause" ]
729
2017-08-10T14:42:30.000Z
2022-03-31T23:14:09.000Z
api/modules/SAM_TroughPhysicalProcessHeat.cpp
jkelroy/SAM
3c05e55ec7d9e31f33e06f17fa6fb41bb19f04db
[ "BSD-3-Clause" ]
109
2017-09-16T00:52:54.000Z
2022-03-31T18:05:05.000Z
#include <string> #include <utility> #include <vector> #include <memory> #include <iostream> #include <ssc/sscapi.h> #include "SAM_api.h" #include "ErrorHandler.h" #include "SAM_TroughPhysicalProcessHeat.h" SAM_EXPORT int SAM_TroughPhysicalProcessHeat_execute(SAM_table data, int verbosity, SAM_error* err){ return SAM_module_exec("trough_physical_process_heat", data, verbosity, err); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Weather_azimuth_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "azimuth", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Weather_file_name_sset(SAM_table ptr, const char* str, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_string(ptr, "file_name", str); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Weather_solar_resource_data_tset(SAM_table ptr, SAM_table tab, SAM_error *err){ SAM_table_set_table(ptr, "solar_resource_data", tab, err); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Weather_tilt_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "tilt", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Weather_track_mode_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "track_mode", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_A_aperture_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "A_aperture", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_AbsorberMaterial_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "AbsorberMaterial", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_AnnulusGas_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "AnnulusGas", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Ave_Focal_Length_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "Ave_Focal_Length", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_ColperSCA_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "ColperSCA", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_D_2_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "D_2", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_D_3_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "D_3", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_D_4_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "D_4", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_D_5_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "D_5", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_D_cpnt_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "D_cpnt", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_D_p_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "D_p", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Design_loss_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "Design_loss", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Dirt_HCE_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "Dirt_HCE", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Dirt_mirror_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "Dirt_mirror", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Distance_SCA_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "Distance_SCA", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_EPSILON_4_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "EPSILON_4", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_EPSILON_5_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "EPSILON_5", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Error_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "Error", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_FieldConfig_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "FieldConfig", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Flow_type_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "Flow_type", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Fluid_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "Fluid", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_GeomEffects_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "GeomEffects", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_GlazingIntactIn_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "GlazingIntactIn", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_HCE_FieldFrac_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "HCE_FieldFrac", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_HDR_rough_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "HDR_rough", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_IAM_matrix_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "IAM_matrix", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_I_bn_des_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "I_bn_des", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_K_cpnt_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "K_cpnt", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_L_SCA_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "L_SCA", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_L_aperture_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "L_aperture", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_L_cpnt_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "L_cpnt", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_L_heat_sink_piping_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "L_heat_sink_piping", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_L_rnr_per_xpan_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "L_rnr_per_xpan", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_L_xpan_hdr_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "L_xpan_hdr", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_L_xpan_rnr_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "L_xpan_rnr", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Min_rnr_xpans_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "Min_rnr_xpans", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_N_hdr_per_xpan_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "N_hdr_per_xpan", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_N_max_hdr_diams_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "N_max_hdr_diams", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_P_a_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "P_a", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Pipe_hl_coef_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "Pipe_hl_coef", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Rho_mirror_clean_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "Rho_mirror_clean", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Rough_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "Rough", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Row_Distance_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "Row_Distance", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_SCA_drives_elec_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "SCA_drives_elec", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Shadowing_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "Shadowing", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_T_fp_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "T_fp", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_T_loop_in_des_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "T_loop_in_des", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_T_loop_out_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "T_loop_out", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Tau_envelope_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "Tau_envelope", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_TrackingError_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "TrackingError", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_Type_cpnt_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "Type_cpnt", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_V_hdr_cold_max_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "V_hdr_cold_max", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_V_hdr_cold_min_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "V_hdr_cold_min", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_V_hdr_hot_max_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "V_hdr_hot_max", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_V_hdr_hot_min_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "V_hdr_hot_min", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_W_aperture_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "W_aperture", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_accept_init_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "accept_init", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_accept_loc_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "accept_loc", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_accept_mode_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "accept_mode", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_alpha_abs_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "alpha_abs", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_alpha_env_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "alpha_env", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_calc_design_pipe_vals_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "calc_design_pipe_vals", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_custom_sf_pipe_sizes_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "custom_sf_pipe_sizes", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_11_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_11", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_12_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_12", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_13_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_13", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_14_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_14", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_21_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_21", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_22_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_22", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_23_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_23", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_24_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_24", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_31_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_31", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_32_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_32", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_33_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_33", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_34_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_34", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_41_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_41", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_42_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_42", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_43_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_43", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_44_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "epsilon_3_44", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_eta_pump_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "eta_pump", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_is_model_heat_sink_piping_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "is_model_heat_sink_piping", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_m_dot_htfmax_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "m_dot_htfmax", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_m_dot_htfmin_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "m_dot_htfmin", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_mc_bal_cold_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "mc_bal_cold", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_mc_bal_hot_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "mc_bal_hot", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_mc_bal_sca_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "mc_bal_sca", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_nColt_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "nColt", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_nHCEVar_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "nHCEVar", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_nHCEt_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "nHCEt", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_nLoops_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "nLoops", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_nSCA_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "nSCA", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_northsouth_field_sep_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "northsouth_field_sep", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_offset_xpan_hdr_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "offset_xpan_hdr", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_sf_hdr_diams_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "sf_hdr_diams", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_sf_hdr_lengths_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "sf_hdr_lengths", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_sf_hdr_wallthicks_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "sf_hdr_wallthicks", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_sf_rnr_diams_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "sf_rnr_diams", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_sf_rnr_lengths_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "sf_rnr_lengths", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_sf_rnr_wallthicks_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "sf_rnr_wallthicks", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_theta_dep_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "theta_dep", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_theta_stow_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "theta_stow", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_washing_frequency_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "washing_frequency", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_water_usage_per_wash_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "water_usage_per_wash", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SolarField_wind_stow_speed_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "wind_stow_speed", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Controller_disp_wlim_maxspec_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_wlim_maxspec", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Controller_field_fl_props_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "field_fl_props", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Controller_non_solar_field_land_area_multiplier_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "non_solar_field_land_area_multiplier", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Controller_pb_pump_coef_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "pb_pump_coef", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Controller_q_pb_design_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "q_pb_design", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Controller_specified_solar_multiple_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "specified_solar_multiple", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Controller_tanks_in_parallel_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "tanks_in_parallel", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Controller_trough_loop_control_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "trough_loop_control", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SystemDesign_tshours_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "tshours", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_TES_cold_tank_Thtr_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "cold_tank_Thtr", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_TES_cold_tank_max_heat_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "cold_tank_max_heat", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_TES_h_tank_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "h_tank", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_TES_init_hot_htf_percent_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "init_hot_htf_percent", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_TES_tank_pairs_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "tank_pairs", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_TES_u_tank_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "u_tank", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_TES2tank_h_tank_min_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "h_tank_min", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_TES2tank_hot_tank_Thtr_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "hot_tank_Thtr", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_TES2tank_hot_tank_max_heat_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "hot_tank_max_heat", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_ampl_data_dir_sset(SAM_table ptr, const char* str, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_string(ptr, "ampl_data_dir", str); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_ampl_exec_call_sset(SAM_table ptr, const char* str, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_string(ptr, "ampl_exec_call", str); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_csu_cost_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_csu_cost", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_frequency_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_frequency", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_horizon_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_horizon", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_max_iter_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_max_iter", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_mip_gap_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_mip_gap", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_pen_delta_w_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_pen_delta_w", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_reporting_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_reporting", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_rsu_cost_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_rsu_cost", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_spec_bb_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_spec_bb", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_spec_presolve_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_spec_presolve", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_spec_scaling_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_spec_scaling", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_steps_per_hour_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_steps_per_hour", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_time_weighting_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_time_weighting", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_disp_timeout_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_timeout", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor1_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "dispatch_factor1", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor2_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "dispatch_factor2", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor3_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "dispatch_factor3", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor4_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "dispatch_factor4", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor5_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "dispatch_factor5", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor6_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "dispatch_factor6", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor7_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "dispatch_factor7", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor8_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "dispatch_factor8", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor9_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "dispatch_factor9", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_factors_ts_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "dispatch_factors_ts", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_sched_weekday_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "dispatch_sched_weekday", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_sched_weekend_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "dispatch_sched_weekend", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_dispatch_series_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "dispatch_series", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_f_turb_tou_periods_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "f_turb_tou_periods", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_is_ampl_engine_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "is_ampl_engine", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_is_dispatch_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "is_dispatch", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_is_dispatch_series_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "is_dispatch_series", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_is_tod_pc_target_also_pc_max_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "is_tod_pc_target_also_pc_max", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_is_wlim_series_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "is_wlim_series", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_is_write_ampl_dat_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "is_write_ampl_dat", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_ppa_multiplier_model_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "ppa_multiplier_model", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_q_rec_heattrace_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "q_rec_heattrace", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_q_rec_standby_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "q_rec_standby", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_timestep_load_fractions_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "timestep_load_fractions", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_weekday_schedule_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "weekday_schedule", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_weekend_schedule_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_matrix(ptr, "weekend_schedule", mat, nrows, ncols); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Tou_wlim_series_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "wlim_series", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_SystemControl_disp_inventory_incentive_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "disp_inventory_incentive", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_System_aux_array_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "aux_array", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_System_bop_array_aset(SAM_table ptr, double* arr, int length, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_array(ptr, "bop_array", arr, length); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_System_pb_fixed_par_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "pb_fixed_par", number); }); } SAM_EXPORT void SAM_TroughPhysicalProcessHeat_Powerblock_L_rnr_pb_nset(SAM_table ptr, double number, SAM_error *err){ translateExceptions(err, [&]{ ssc_data_set_number(ptr, "L_rnr_pb", number); }); } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Weather_azimuth_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "azimuth", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "azimuth"); }); return result; } SAM_EXPORT const char* SAM_TroughPhysicalProcessHeat_Weather_file_name_sget(SAM_table ptr, SAM_error *err){ const char* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_string(ptr, "file_name"); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "file_name"); }); return result; } SAM_EXPORT SAM_table SAM_TroughPhysicalProcessHeat_Weather_solar_resource_data_tget(SAM_table ptr, SAM_error *err){ SAM_table result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_table(ptr, "solar_resource_data"); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "solar_resource_data"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Weather_tilt_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "tilt", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "tilt"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Weather_track_mode_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "track_mode", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "track_mode"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_A_aperture_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "A_aperture", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "A_aperture"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_AbsorberMaterial_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "AbsorberMaterial", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "AbsorberMaterial"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_AnnulusGas_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "AnnulusGas", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "AnnulusGas"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Ave_Focal_Length_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "Ave_Focal_Length", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Ave_Focal_Length"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_ColperSCA_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "ColperSCA", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "ColperSCA"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_D_2_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "D_2", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "D_2"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_D_3_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "D_3", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "D_3"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_D_4_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "D_4", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "D_4"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_D_5_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "D_5", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "D_5"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_D_cpnt_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "D_cpnt", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "D_cpnt"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_D_p_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "D_p", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "D_p"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Design_loss_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "Design_loss", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Design_loss"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Dirt_HCE_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "Dirt_HCE", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Dirt_HCE"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Dirt_mirror_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "Dirt_mirror", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Dirt_mirror"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Distance_SCA_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "Distance_SCA", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Distance_SCA"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_EPSILON_4_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "EPSILON_4", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "EPSILON_4"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_EPSILON_5_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "EPSILON_5", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "EPSILON_5"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Error_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "Error", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Error"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_FieldConfig_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "FieldConfig", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "FieldConfig"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Flow_type_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "Flow_type", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Flow_type"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_Fluid_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "Fluid", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "Fluid"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_GeomEffects_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "GeomEffects", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "GeomEffects"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_GlazingIntactIn_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "GlazingIntactIn", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "GlazingIntactIn"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_HCE_FieldFrac_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "HCE_FieldFrac", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "HCE_FieldFrac"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_HDR_rough_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "HDR_rough", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "HDR_rough"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_IAM_matrix_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "IAM_matrix", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "IAM_matrix"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_I_bn_des_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "I_bn_des", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "I_bn_des"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_K_cpnt_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "K_cpnt", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "K_cpnt"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_L_SCA_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "L_SCA", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "L_SCA"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_L_aperture_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "L_aperture", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "L_aperture"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_L_cpnt_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "L_cpnt", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "L_cpnt"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_L_heat_sink_piping_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "L_heat_sink_piping", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "L_heat_sink_piping"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_L_rnr_per_xpan_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "L_rnr_per_xpan", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "L_rnr_per_xpan"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_L_xpan_hdr_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "L_xpan_hdr", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "L_xpan_hdr"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_L_xpan_rnr_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "L_xpan_rnr", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "L_xpan_rnr"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_Min_rnr_xpans_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "Min_rnr_xpans", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "Min_rnr_xpans"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_N_hdr_per_xpan_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "N_hdr_per_xpan", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "N_hdr_per_xpan"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_N_max_hdr_diams_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "N_max_hdr_diams", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "N_max_hdr_diams"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_P_a_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "P_a", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "P_a"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_Pipe_hl_coef_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "Pipe_hl_coef", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "Pipe_hl_coef"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Rho_mirror_clean_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "Rho_mirror_clean", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Rho_mirror_clean"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Rough_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "Rough", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Rough"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_Row_Distance_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "Row_Distance", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "Row_Distance"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_SCA_drives_elec_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "SCA_drives_elec", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "SCA_drives_elec"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Shadowing_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "Shadowing", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Shadowing"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_T_fp_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "T_fp", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "T_fp"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_T_loop_in_des_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "T_loop_in_des", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "T_loop_in_des"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_T_loop_out_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "T_loop_out", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "T_loop_out"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Tau_envelope_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "Tau_envelope", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Tau_envelope"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_TrackingError_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "TrackingError", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "TrackingError"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_Type_cpnt_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "Type_cpnt", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Type_cpnt"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_V_hdr_cold_max_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "V_hdr_cold_max", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "V_hdr_cold_max"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_V_hdr_cold_min_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "V_hdr_cold_min", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "V_hdr_cold_min"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_V_hdr_hot_max_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "V_hdr_hot_max", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "V_hdr_hot_max"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_V_hdr_hot_min_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "V_hdr_hot_min", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "V_hdr_hot_min"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_W_aperture_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "W_aperture", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "W_aperture"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_accept_init_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "accept_init", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "accept_init"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_accept_loc_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "accept_loc", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "accept_loc"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_accept_mode_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "accept_mode", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "accept_mode"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_alpha_abs_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "alpha_abs", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "alpha_abs"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_alpha_env_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "alpha_env", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "alpha_env"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_calc_design_pipe_vals_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "calc_design_pipe_vals", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "calc_design_pipe_vals"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_custom_sf_pipe_sizes_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "custom_sf_pipe_sizes", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "custom_sf_pipe_sizes"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_11_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_11", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_11"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_12_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_12", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_12"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_13_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_13", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_13"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_14_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_14", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_14"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_21_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_21", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_21"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_22_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_22", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_22"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_23_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_23", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_23"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_24_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_24", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_24"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_31_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_31", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_31"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_32_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_32", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_32"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_33_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_33", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_33"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_34_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_34", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_34"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_41_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_41", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_41"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_42_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_42", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_42"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_43_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_43", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_43"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_epsilon_3_44_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "epsilon_3_44", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "epsilon_3_44"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_eta_pump_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "eta_pump", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "eta_pump"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_is_model_heat_sink_piping_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "is_model_heat_sink_piping", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "is_model_heat_sink_piping"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_m_dot_htfmax_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "m_dot_htfmax", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_htfmax"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_m_dot_htfmin_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "m_dot_htfmin", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_htfmin"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_mc_bal_cold_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "mc_bal_cold", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "mc_bal_cold"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_mc_bal_hot_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "mc_bal_hot", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "mc_bal_hot"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_mc_bal_sca_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "mc_bal_sca", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "mc_bal_sca"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_nColt_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "nColt", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "nColt"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_nHCEVar_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "nHCEVar", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "nHCEVar"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_nHCEt_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "nHCEt", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "nHCEt"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_nLoops_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "nLoops", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "nLoops"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_nSCA_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "nSCA", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "nSCA"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_northsouth_field_sep_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "northsouth_field_sep", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "northsouth_field_sep"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_offset_xpan_hdr_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "offset_xpan_hdr", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "offset_xpan_hdr"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_sf_hdr_diams_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "sf_hdr_diams", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "sf_hdr_diams"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_sf_hdr_lengths_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "sf_hdr_lengths", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "sf_hdr_lengths"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_sf_hdr_wallthicks_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "sf_hdr_wallthicks", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "sf_hdr_wallthicks"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_sf_rnr_diams_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "sf_rnr_diams", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "sf_rnr_diams"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_sf_rnr_lengths_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "sf_rnr_lengths", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "sf_rnr_lengths"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_SolarField_sf_rnr_wallthicks_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "sf_rnr_wallthicks", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "sf_rnr_wallthicks"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_theta_dep_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "theta_dep", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "theta_dep"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_theta_stow_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "theta_stow", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "theta_stow"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_washing_frequency_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "washing_frequency", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "washing_frequency"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_water_usage_per_wash_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "water_usage_per_wash", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "water_usage_per_wash"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SolarField_wind_stow_speed_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "wind_stow_speed", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "wind_stow_speed"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Controller_disp_wlim_maxspec_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_wlim_maxspec", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_wlim_maxspec"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Controller_field_fl_props_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "field_fl_props", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "field_fl_props"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Controller_non_solar_field_land_area_multiplier_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "non_solar_field_land_area_multiplier", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "non_solar_field_land_area_multiplier"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Controller_pb_pump_coef_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "pb_pump_coef", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "pb_pump_coef"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Controller_q_pb_design_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "q_pb_design", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "q_pb_design"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Controller_specified_solar_multiple_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "specified_solar_multiple", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "specified_solar_multiple"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Controller_tanks_in_parallel_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "tanks_in_parallel", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "tanks_in_parallel"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Controller_trough_loop_control_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "trough_loop_control", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "trough_loop_control"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SystemDesign_tshours_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "tshours", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "tshours"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_TES_cold_tank_Thtr_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "cold_tank_Thtr", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "cold_tank_Thtr"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_TES_cold_tank_max_heat_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "cold_tank_max_heat", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "cold_tank_max_heat"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_TES_h_tank_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "h_tank", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "h_tank"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_TES_init_hot_htf_percent_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "init_hot_htf_percent", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "init_hot_htf_percent"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_TES_tank_pairs_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "tank_pairs", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "tank_pairs"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_TES_u_tank_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "u_tank", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "u_tank"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_TES2tank_h_tank_min_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "h_tank_min", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "h_tank_min"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_TES2tank_hot_tank_Thtr_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "hot_tank_Thtr", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "hot_tank_Thtr"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_TES2tank_hot_tank_max_heat_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "hot_tank_max_heat", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "hot_tank_max_heat"); }); return result; } SAM_EXPORT const char* SAM_TroughPhysicalProcessHeat_Tou_ampl_data_dir_sget(SAM_table ptr, SAM_error *err){ const char* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_string(ptr, "ampl_data_dir"); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "ampl_data_dir"); }); return result; } SAM_EXPORT const char* SAM_TroughPhysicalProcessHeat_Tou_ampl_exec_call_sget(SAM_table ptr, SAM_error *err){ const char* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_string(ptr, "ampl_exec_call"); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "ampl_exec_call"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_csu_cost_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_csu_cost", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_csu_cost"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_frequency_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_frequency", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_frequency"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_horizon_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_horizon", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_horizon"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_max_iter_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_max_iter", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_max_iter"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_mip_gap_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_mip_gap", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_mip_gap"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_pen_delta_w_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_pen_delta_w", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_pen_delta_w"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_reporting_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_reporting", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_reporting"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_rsu_cost_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_rsu_cost", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_rsu_cost"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_spec_bb_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_spec_bb", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_spec_bb"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_spec_presolve_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_spec_presolve", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_spec_presolve"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_spec_scaling_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_spec_scaling", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_spec_scaling"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_steps_per_hour_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_steps_per_hour", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_steps_per_hour"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_time_weighting_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_time_weighting", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_time_weighting"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_disp_timeout_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_timeout", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_timeout"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor1_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "dispatch_factor1", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_factor1"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor2_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "dispatch_factor2", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_factor2"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor3_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "dispatch_factor3", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_factor3"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor4_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "dispatch_factor4", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_factor4"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor5_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "dispatch_factor5", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_factor5"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor6_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "dispatch_factor6", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_factor6"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor7_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "dispatch_factor7", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_factor7"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor8_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "dispatch_factor8", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_factor8"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_dispatch_factor9_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "dispatch_factor9", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_factor9"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Tou_dispatch_factors_ts_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "dispatch_factors_ts", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_factors_ts"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Tou_dispatch_sched_weekday_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "dispatch_sched_weekday", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_sched_weekday"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Tou_dispatch_sched_weekend_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "dispatch_sched_weekend", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_sched_weekend"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Tou_dispatch_series_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "dispatch_series", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "dispatch_series"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Tou_f_turb_tou_periods_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "f_turb_tou_periods", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "f_turb_tou_periods"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_is_ampl_engine_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "is_ampl_engine", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "is_ampl_engine"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_is_dispatch_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "is_dispatch", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "is_dispatch"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_is_dispatch_series_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "is_dispatch_series", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "is_dispatch_series"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_is_tod_pc_target_also_pc_max_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "is_tod_pc_target_also_pc_max", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "is_tod_pc_target_also_pc_max"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_is_wlim_series_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "is_wlim_series", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "is_wlim_series"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_is_write_ampl_dat_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "is_write_ampl_dat", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "is_write_ampl_dat"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_ppa_multiplier_model_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "ppa_multiplier_model", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "ppa_multiplier_model"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_q_rec_heattrace_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "q_rec_heattrace", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "q_rec_heattrace"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Tou_q_rec_standby_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "q_rec_standby", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "q_rec_standby"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Tou_timestep_load_fractions_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "timestep_load_fractions", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "timestep_load_fractions"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Tou_weekday_schedule_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "weekday_schedule", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "weekday_schedule"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Tou_weekend_schedule_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "weekend_schedule", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "weekend_schedule"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Tou_wlim_series_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "wlim_series", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "wlim_series"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_SystemControl_disp_inventory_incentive_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "disp_inventory_incentive", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "disp_inventory_incentive"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_System_aux_array_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "aux_array", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "aux_array"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_System_bop_array_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "bop_array", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "bop_array"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_System_pb_fixed_par_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "pb_fixed_par", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "pb_fixed_par"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Powerblock_L_rnr_pb_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "L_rnr_pb", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "L_rnr_pb"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_CosTh_ave_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "CosTh_ave", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "CosTh_ave"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_EndLoss_ave_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "EndLoss_ave", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "EndLoss_ave"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_EqOpteff_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "EqOpteff", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "EqOpteff"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_IAM_ave_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "IAM_ave", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "IAM_ave"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_RowShadow_ave_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "RowShadow_ave", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "RowShadow_ave"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_SCAs_def_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "SCAs_def", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "SCAs_def"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_T_field_cold_in_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "T_field_cold_in", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "T_field_cold_in"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_T_field_hot_out_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "T_field_hot_out", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "T_field_hot_out"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_T_heat_sink_in_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "T_heat_sink_in", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "T_heat_sink_in"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_T_heat_sink_out_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "T_heat_sink_out", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "T_heat_sink_out"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_T_rec_cold_in_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "T_rec_cold_in", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "T_rec_cold_in"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_T_rec_hot_out_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "T_rec_hot_out", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "T_rec_hot_out"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_T_tes_cold_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "T_tes_cold", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "T_tes_cold"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_T_tes_hot_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "T_tes_hot", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "T_tes_hot"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_Theta_ave_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "Theta_ave", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "Theta_ave"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_W_dot_field_pump_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "W_dot_field_pump", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "W_dot_field_pump"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_W_dot_parasitic_tot_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "W_dot_parasitic_tot", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "W_dot_parasitic_tot"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_W_dot_pc_pump_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "W_dot_pc_pump", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "W_dot_pc_pump"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_W_dot_sca_track_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "W_dot_sca_track", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "W_dot_sca_track"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Outputs_annual_electricity_consumption_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "annual_electricity_consumption", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "annual_electricity_consumption"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Outputs_annual_energy_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "annual_energy", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "annual_energy"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_annual_energy_distribution_time_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_matrix(ptr, "annual_energy_distribution_time", nrows, ncols); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "annual_energy_distribution_time"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Outputs_annual_field_freeze_protection_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "annual_field_freeze_protection", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "annual_field_freeze_protection"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Outputs_annual_gross_energy_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "annual_gross_energy", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "annual_gross_energy"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Outputs_annual_tes_freeze_protection_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "annual_tes_freeze_protection", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "annual_tes_freeze_protection"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Outputs_annual_thermal_consumption_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "annual_thermal_consumption", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "annual_thermal_consumption"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Outputs_annual_total_water_use_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "annual_total_water_use", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "annual_total_water_use"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_beam_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "beam", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "beam"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Outputs_capacity_factor_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "capacity_factor", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "capacity_factor"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_deltaP_field_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "deltaP_field", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "deltaP_field"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_dni_costh_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "dni_costh", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "dni_costh"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_e_ch_tes_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "e_ch_tes", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "e_ch_tes"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_e_dot_field_int_energy_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "e_dot_field_int_energy", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "e_dot_field_int_energy"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_gen_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "gen", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "gen"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_hour_day_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "hour_day", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "hour_day"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Outputs_kwh_per_kw_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "kwh_per_kw", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "kwh_per_kw"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_m_dot_balance_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "m_dot_balance", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_balance"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_m_dot_cr_to_tes_hot_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "m_dot_cr_to_tes_hot", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_cr_to_tes_hot"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_m_dot_cycle_to_field_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "m_dot_cycle_to_field", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_cycle_to_field"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_m_dot_field_delivered_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "m_dot_field_delivered", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_field_delivered"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_m_dot_field_recirc_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "m_dot_field_recirc", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_field_recirc"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_m_dot_field_to_cycle_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "m_dot_field_to_cycle", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_field_to_cycle"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_m_dot_htf_heat_sink_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "m_dot_htf_heat_sink", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_htf_heat_sink"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_m_dot_loop_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "m_dot_loop", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_loop"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_m_dot_pc_to_tes_cold_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "m_dot_pc_to_tes_cold", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_pc_to_tes_cold"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_m_dot_tes_cold_out_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "m_dot_tes_cold_out", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_tes_cold_out"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_m_dot_tes_hot_out_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "m_dot_tes_hot_out", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "m_dot_tes_hot_out"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_mass_tes_cold_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "mass_tes_cold", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "mass_tes_cold"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_mass_tes_hot_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "mass_tes_hot", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "mass_tes_hot"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_month_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "month", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "month"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_op_mode_1_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "op_mode_1", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "op_mode_1"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_op_mode_2_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "op_mode_2", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "op_mode_2"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_op_mode_3_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "op_mode_3", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "op_mode_3"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_pres_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "pres", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "pres"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_balance_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_balance", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_balance"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_ch_tes_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_ch_tes", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_ch_tes"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_dc_tes_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_dc_tes", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_dc_tes"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_dot_freeze_prot_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_dot_freeze_prot", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_dot_freeze_prot"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_dot_htf_sf_out_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_dot_htf_sf_out", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_dot_htf_sf_out"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_dot_piping_loss_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_dot_piping_loss", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_dot_piping_loss"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_dot_rec_abs_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_dot_rec_abs", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_dot_rec_abs"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_dot_rec_inc_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_dot_rec_inc", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_dot_rec_inc"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_dot_rec_thermal_loss_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_dot_rec_thermal_loss", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_dot_rec_thermal_loss"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_dot_to_heat_sink_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_dot_to_heat_sink", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_dot_to_heat_sink"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_inc_sf_tot_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_inc_sf_tot", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_inc_sf_tot"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_q_tes_heater_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "q_tes_heater", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "q_tes_heater"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_qinc_costh_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "qinc_costh", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "qinc_costh"); }); return result; } SAM_EXPORT double SAM_TroughPhysicalProcessHeat_Outputs_solar_multiple_actual_nget(SAM_table ptr, SAM_error *err){ double result; translateExceptions(err, [&]{ if (!ssc_data_get_number(ptr, "solar_multiple_actual", &result)) make_access_error("SAM_TroughPhysicalProcessHeat", "solar_multiple_actual"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_solazi_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "solazi", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "solazi"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_solzen_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "solzen", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "solzen"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_tank_losses_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "tank_losses", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "tank_losses"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_tdry_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "tdry", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "tdry"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_time_hr_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "time_hr", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "time_hr"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_twet_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "twet", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "twet"); }); return result; } SAM_EXPORT double* SAM_TroughPhysicalProcessHeat_Outputs_wspd_aget(SAM_table ptr, int* length, SAM_error *err){ double* result = nullptr; translateExceptions(err, [&]{ result = ssc_data_get_array(ptr, "wspd", length); if (!result) make_access_error("SAM_TroughPhysicalProcessHeat", "wspd"); }); return result; }
31.180394
149
0.782695
jkelroy
591d267b6213c0d548dcdb9ae73eb3f6530a54cb
9,198
cpp
C++
rede/newtonSolver.cpp
BigsonLvrocha/NeuralPowerFlow
3d64078b5d1053cd521318229b69592acab6582a
[ "MIT" ]
null
null
null
rede/newtonSolver.cpp
BigsonLvrocha/NeuralPowerFlow
3d64078b5d1053cd521318229b69592acab6582a
[ "MIT" ]
null
null
null
rede/newtonSolver.cpp
BigsonLvrocha/NeuralPowerFlow
3d64078b5d1053cd521318229b69592acab6582a
[ "MIT" ]
null
null
null
/** * @brief defines newton raphman power flow solver * * @file newtonSolver.cpp * @author Luiz Victor Linhares Rocha * @date 2018-09-22 * @copyright 2018 */ #include <cmath> #include "newtonSolver.hpp" #include "barra.hpp" #include "branch.hpp" #include "powerNet.hpp" namespace neuralFlux { NewtonSolver::NewtonSolver():PowerFlowSolver() { } NewtonSolver::NewtonSolver(PowerNetPtr net): PowerFlowSolver(net) { } NewtonSolver::~NewtonSolver() { } const Eigen::MatrixXd& NewtonSolver::getJacobian(const bool calculate) { if (calculate) return calculateJacobian(); return m_jacobian; } const Eigen::VectorXd& NewtonSolver::getDeltas(const bool calculate) { if (calculate) return calculateDeltas(); return m_deltas; } void NewtonSolver::solve() { cacheBars(); calculateJacobian(); calculateDeltas(); while (!reachedMaxIt() && !reachMinError(getTotalError())) { step(); calculateJacobian(); calculateDeltas(); addIt(); } } const Eigen::MatrixXd& NewtonSolver::calculateJacobian() { calculateH(); calculateM(); calculateN(); calculateL(); return m_jacobian; } const Eigen::VectorXd& NewtonSolver::calculateDeltas() { for (size_t i = 0 ; i < m_nPQ ; i++) { m_deltas(i) = getDeltaP(m_PQBars[i]); m_deltas(i+m_nPQ+m_nPV) = getDeltaQ(m_PQBars[i]); } for (size_t i = 0 ; i < m_nPV ; i++) { m_deltas(i+m_nPQ) = getDeltaP(m_PVBars[i]); } return m_deltas; } void NewtonSolver::applyCorrection() { for (size_t i = 0 ; i < m_nPQ ; i++) { BarPtr bar = getNet()->getBarByIndex(m_PQBars[i]); bar->setTeta(bar->getTeta() + m_correction(i)); bar->setV(bar->getV() + m_correction(i+m_nPQ+m_nPV)); } for (size_t i = 0 ; i < m_nPV ; i++) { BarPtr bar = getNet()->getBarByIndex(m_PVBars[i]); bar->setTeta(bar->getTeta() + m_correction(i+m_nPQ)); } } double NewtonSolver::getTotalError() { double erroMax = 0; for (size_t i = 0, n = m_deltas.rows() ; i < n; i++) { if (std::fabs(m_deltas[i]) > erroMax) erroMax = std::fabs(m_deltas[i]); } return erroMax; } void NewtonSolver::cacheBars() { PowerNetPtr net = getNet(); size_t nBars = net->getNBars(); for (size_t i = 0 ; i < nBars ; i++) { if (net->getBarByIndex(i)->getType() == Bar::PQ) { m_PQBars.push_back(i); } else if (net->getBarByIndex(i)->getType() == Bar::PV) { m_PVBars.push_back(i); } } m_nPQ = m_PQBars.size(); m_nPV = m_PVBars.size(); m_jacobian.setZero(2*m_nPQ+m_nPV, 2*m_nPQ+m_nPV); m_deltas.setZero(2*m_nPQ+m_nPV); m_correction.setZero(2*m_nPQ+m_nPV); } double NewtonSolver::getH(const size_t i, const size_t j) { PowerNetPtr net = getNet(); if (i != j) { const double Vk = net->getBarByIndex(i)->getV(); const double Vm = net->getBarByIndex(j)->getV(); const double Gkm = net->getY(i, j).real(); const double Bkm = net->getY(i, j).imag(); const double sinkm = sin(net->getTetaKmByIndex(i, j)); const double coskm = cos(net->getTetaKmByIndex(i, j)); return Vk*Vm*(Gkm*sinkm-Bkm*coskm); } else { const double Vk = net->getBarByIndex(i)->getV(); const double Bkk = net->getY(i, i).imag(); const double soma = getSumConjugate(i); return -Vk*Vk*Bkk - Vk*soma; } } double NewtonSolver::getL(const size_t i, const size_t j) { PowerNetPtr net = getNet(); if (i != j) { const double Vk = net->getBarByIndex(i)->getV(); const double Gkm = net->getY(i, j).real(); const double Bkm = net->getY(i, j).imag(); const double sinkm = sin(net->getTetaKmByIndex(i, j)); const double coskm = cos(net->getTetaKmByIndex(i, j)); return Vk*(Gkm*sinkm-Bkm*coskm); } else { const double Vk = net->getBarByIndex(i)->getV(); const double Bkk = net->getY(i, i).imag(); const double soma = getSumConjugate(i); return -2*Vk*Bkk + soma; } } double NewtonSolver::getM(const size_t i, const size_t j) { PowerNetPtr net = getNet(); if (i != j) { const double Vk = net->getBarByIndex(i)->getV(); const double Vm = net->getBarByIndex(j)->getV(); const double Gkm = net->getY(i, j).real(); const double Bkm = net->getY(i, j).imag(); const double sinkm = sin(net->getTetaKmByIndex(i, j)); const double coskm = cos(net->getTetaKmByIndex(i, j)); return -Vk*Vm*(Gkm*coskm+Bkm*sinkm); } else { const double Vk = net->getBarByIndex(i)->getV(); const double Gkk = net->getY(i, i).real(); const double soma = getSum(i); return -(Vk*Vk)*Gkk+Vk*soma; } } double NewtonSolver::getN(const size_t i, const size_t j) { PowerNetPtr net = getNet(); if (i != j) { const double Vk = net->getBarByIndex(i)->getV(); const double Gkm = net->getY(i, j).real(); const double Bkm = net->getY(i, j).imag(); const double sinkm = sin(net->getTetaKmByIndex(i, j)); const double coskm = cos(net->getTetaKmByIndex(i, j)); return Vk*(Gkm*coskm+Bkm*sinkm); } else { const double Vk = net->getBarByIndex(i)->getV(); const double Gkk = net->getY(i, i).real(); const double soma = getSum(i); return Vk*Gkk + soma; } } double NewtonSolver::getSum(const size_t i) { double sum = 0; PowerNetPtr net = getNet(); for (size_t j = 0, n = net->getNBars() ; j < n ; j++) { if (i == j || net->areConnectedByIndex(i, j)) { const double vm = net->getBarByIndex(j)->getV(); const double gkm = net->getY(i, j).real(); const double bkm = net->getY(i, j).imag(); const double sinkm = sin(net->getTetaKmByIndex(i, j)); const double coskm = cos(net->getTetaKmByIndex(i, j)); sum += vm*(gkm*coskm+bkm*sinkm); } } return sum; } double NewtonSolver::getSumConjugate(const size_t i) { double sum = 0; PowerNetPtr net = getNet(); for (size_t j = 0 , n = net->getNBars() ; j < n ; j++) { if (i == j || net->areConnectedByIndex(i, j)) { const double vm = net->getBarByIndex(j)->getV(); const double gkm = net->getY(i, j).real(); const double bkm = net->getY(i, j).imag(); const double sinkm = sin(net->getTetaKmByIndex(i, j)); const double coskm = cos(net->getTetaKmByIndex(i, j)); sum += vm*(gkm*sinkm-bkm*coskm); } } return sum; } double NewtonSolver::getDeltaP(const size_t i) { BarPtr bar = getNet()->getBarByIndex(i); return bar->getP()-bar->getV()*getSum(i); } double NewtonSolver::getDeltaQ(const size_t i) { BarPtr bar = getNet()->getBarByIndex(i); return bar->getQ()-bar->getV()*getSumConjugate(i); } void NewtonSolver::calculateH() { for (size_t i = 0; i < m_nPQ ; i++) { // primeiro, adiciona as barras pq em relação as correções de pq for (size_t j = 0 ; j < m_nPQ ; j++) { m_jacobian(i, j) = getH(m_PQBars[i], m_PQBars[j]); } // barras pq em relação a correções de pv for (size_t j = 0 ; j < m_nPV ; j++) { m_jacobian(i, j+m_nPQ) = getH(m_PQBars[i], m_PVBars[j]); } } for (size_t i = 0 ; i < m_nPV ; i++) { // barras pv em relação a correções de pq for (size_t j = 0 ; j < m_nPQ ; j++) { m_jacobian(i+m_nPQ, j) = getH(m_PVBars[i], m_PQBars[j]); } // barras pv em relação a correções de pv for (size_t j = 0 ; j < m_nPV ; j++) { m_jacobian(i+m_nPQ, j+m_nPQ) = getH(m_PVBars[i], m_PVBars[j]); } } } void NewtonSolver::calculateL() { // apenas pq com relação de correções de pq for (size_t i = 0 ; i < m_nPQ ; i++) { for (size_t j = 0; j < m_nPQ; j++) { m_jacobian(i + m_nPQ + m_nPV, j + m_nPQ + m_nPV) = getL(m_PQBars[i], m_PQBars[j]); } } } void NewtonSolver::calculateM() { for (size_t i = 0 ; i < m_nPQ ; i++) { // barras pq em relação a correções de pq for (size_t j = 0 ; j < m_nPQ ; j++) { m_jacobian(i+m_nPQ+m_nPV, j) = getM(m_PQBars[i], m_PQBars[j]); } // barras pv em relação a correções de pq for (size_t j = 0 ; j < m_nPV ; j++) { m_jacobian(i + m_nPQ + m_nPV, j + m_nPQ) = getM(m_PQBars[i], m_PVBars[j]); } } } void NewtonSolver::calculateN() { // pq com relação a correções de PQ for (size_t i = 0 ; i < m_nPQ ; i++) { for (size_t j = 0 ; j < m_nPQ ; j++) { m_jacobian(i, j + m_nPQ + m_nPV) = getN(m_PQBars[i], m_PQBars[j]); } } // pv com relação a correções de PQ for (size_t i = 0; i < m_nPV; i++) { for (size_t j = 0 ; j < m_nPQ ; j++) { m_jacobian(i + m_nPQ, j + m_nPQ + m_nPV) = getN(m_PVBars[i], m_PQBars[j]); } } } void NewtonSolver::step() { m_correction = m_jacobian.colPivHouseholderQr().solve(m_deltas); applyCorrection(); } } // namespace neuralFlux
31.82699
94
0.570885
BigsonLvrocha
591ead5f05ce505f1761f2c20a818b612ecd25aa
414
cpp
C++
share/src/util/getuniquepath.cpp
MrCryptoBeast/WWW
857e860df0aa1bc7fde2ee6f5918ff32933beeb3
[ "MIT" ]
null
null
null
share/src/util/getuniquepath.cpp
MrCryptoBeast/WWW
857e860df0aa1bc7fde2ee6f5918ff32933beeb3
[ "MIT" ]
null
null
null
share/src/util/getuniquepath.cpp
MrCryptoBeast/WWW
857e860df0aa1bc7fde2ee6f5918ff32933beeb3
[ "MIT" ]
null
null
null
// Copyright (c) 2021 The worldwideweb Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <random.h> #include <fs.h> #include <util/strencodings.h> fs::path GetUniquePath(const fs::path& base) { FastRandomContext rnd; fs::path tmpFile = base / HexStr(rnd.randbytes(8)); return tmpFile; }
29.571429
70
0.731884
MrCryptoBeast
591f2e18b9be255023a45a51f9e176edd6da3ce8
4,240
cc
C++
test/libponyc/compiler_serialisation.cc
rtpax/ponyc
5af6626fcc894ef201bebfac712c454e6c8b14c9
[ "BSD-2-Clause" ]
4,304
2016-02-01T14:46:51.000Z
2022-03-29T15:17:15.000Z
test/libponyc/compiler_serialisation.cc
rtpax/ponyc
5af6626fcc894ef201bebfac712c454e6c8b14c9
[ "BSD-2-Clause" ]
2,889
2016-02-01T11:11:07.000Z
2022-03-31T20:59:39.000Z
test/libponyc/compiler_serialisation.cc
rtpax/ponyc
5af6626fcc894ef201bebfac712c454e6c8b14c9
[ "BSD-2-Clause" ]
534
2016-02-01T12:42:45.000Z
2022-03-22T16:45:45.000Z
#include <gtest/gtest.h> #include <platform.h> #include <../libponyrt/mem/pool.h> #include <../libponyrt/sched/scheduler.h> #include "util.h" #include <memory> #define TEST_COMPILE(src, pass) DO(test_compile(src, pass)) #define TEST_COMPILE_RESUME(pass) DO(test_compile_resume(pass)) class CompilerSerialisationTest : public PassTest { public: void test_pass_ast(const char* pass); void test_pass_reach(const char* pass); }; static const char* const src = "use @pony_exitcode[None](code: I32)\n" "actor Main\n" " new create(env: Env) =>\n" " let x = recover Array[U8] end\n" " x.push(42)\n" " foo(consume x)\n" " be foo(x: Array[U8] val) =>\n" " try\n" " if x(0)? == 42 then\n" " @pony_exitcode(1)\n" " end\n" " end"; static void* s_alloc_fn(pony_ctx_t* ctx, size_t size) { (void)ctx; return ponyint_pool_alloc_size(size); } static void s_throw_fn() { throw std::exception{}; } struct pool_size_deleter { size_t size; void operator()(void* ptr) { ponyint_pool_free_size(size, ptr); } }; std::unique_ptr<char, pool_size_deleter> manage_array(ponyint_array_t& array) { std::unique_ptr<char, pool_size_deleter> p{array.ptr}; p.get_deleter().size = array.alloc; return p; } struct pool_deleter { size_t size; void operator()(void* ptr) { ponyint_pool_free_size(size, ptr); } }; struct ast_deleter { void operator()(ast_t* ptr) { ast_free(ptr); } }; struct reach_deleter { void operator()(reach_t* ptr) { reach_free(ptr); } }; void CompilerSerialisationTest::test_pass_ast(const char* pass) { set_builtin(NULL); TEST_COMPILE(src, pass); pony_ctx_t ctx; memset(&ctx, 0, sizeof(pony_ctx_t)); ponyint_array_t array; memset(&array, 0, sizeof(ponyint_array_t)); pony_serialise(&ctx, program, ast_pony_type(), &array, s_alloc_fn, s_throw_fn); auto array_guard = manage_array(array); std::unique_ptr<ast_t, ast_deleter> new_guard{ (ast_t*)pony_deserialise(&ctx, ast_pony_type(), &array, s_alloc_fn, s_alloc_fn, s_throw_fn)}; ast_t* new_program = new_guard.get(); ASSERT_NE(new_program, (void*)NULL); DO(check_ast_same(program, new_program)); new_guard.release(); new_guard.reset(program); program = new_program; package = ast_child(program); module = ast_child(package); TEST_COMPILE_RESUME("ir"); } void CompilerSerialisationTest::test_pass_reach(const char* pass) { set_builtin(NULL); TEST_COMPILE(src, pass); ASSERT_NE(compile, (void*)NULL); reach_t* r = compile->reach; pony_ctx_t ctx; memset(&ctx, 0, sizeof(pony_ctx_t)); ponyint_array_t array; memset(&array, 0, sizeof(ponyint_array_t)); pony_serialise(&ctx, r, reach_pony_type(), &array, s_alloc_fn, s_throw_fn); auto array_guard = manage_array(array); array_guard.get_deleter().size = array.size; std::unique_ptr<reach_t, reach_deleter> new_guard{ (reach_t*)pony_deserialise(&ctx, reach_pony_type(), &array, s_alloc_fn, s_alloc_fn, s_throw_fn)}; reach_t* new_r = new_guard.get(); ASSERT_NE(new_r, (void*)NULL); new_guard.release(); new_guard.reset(r); compile->reach = new_r; TEST_COMPILE_RESUME("ir"); } TEST_F(CompilerSerialisationTest, SerialiseAfterSugar) { test_pass_ast("sugar"); } TEST_F(CompilerSerialisationTest, SerialiseAfterScope) { test_pass_ast("scope"); } TEST_F(CompilerSerialisationTest, SerialiseAfterImport) { test_pass_ast("import"); } TEST_F(CompilerSerialisationTest, SerialiseAfterName) { test_pass_ast("name"); } TEST_F(CompilerSerialisationTest, SerialiseAfterFlatten) { test_pass_ast("flatten"); } TEST_F(CompilerSerialisationTest, SerialiseAfterTraits) { test_pass_ast("traits"); } TEST_F(CompilerSerialisationTest, SerialiseAfterRefer) { test_pass_ast("refer"); } TEST_F(CompilerSerialisationTest, SerialiseAfterExpr) { test_pass_ast("expr"); } TEST_F(CompilerSerialisationTest, SerialiseAfterVerify) { test_pass_ast("verify"); } TEST_F(CompilerSerialisationTest, SerialiseAfterFinal) { test_pass_ast("final"); } TEST_F(CompilerSerialisationTest, SerialiseAfterReach) { test_pass_reach("reach"); } TEST_F(CompilerSerialisationTest, SerialiseAfterPaint) { test_pass_reach("paint"); }
19.62963
81
0.713915
rtpax
591fadfaf96f3d07e889163a3d389b5223c7d722
39
hpp
C++
src/boost_asio_system_timer.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_asio_system_timer.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_asio_system_timer.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/asio/system_timer.hpp>
19.5
38
0.794872
miathedev
59204a0c83d260e99bb08a6a6cb71fe598368a59
3,912
cpp
C++
VC2010Samples/ATL/General/ATLCollections/Client/Client.cpp
alonmm/VCSamples
6aff0b4902f5027164d593540fcaa6601a0407c3
[ "MIT" ]
300
2019-05-09T05:32:33.000Z
2022-03-31T20:23:24.000Z
VC2010Samples/ATL/General/ATLCollections/Client/Client.cpp
JaydenChou/VCSamples
9e1d4475555b76a17a3568369867f1d7b6cc6126
[ "MIT" ]
9
2016-09-19T18:44:26.000Z
2018-10-26T10:20:05.000Z
VC2010Samples/ATL/General/ATLCollections/Client/Client.cpp
JaydenChou/VCSamples
9e1d4475555b76a17a3568369867f1d7b6cc6126
[ "MIT" ]
633
2019-05-08T07:34:12.000Z
2022-03-30T04:38:28.000Z
// This is a part of the Active Template Library. // Copyright (c) Microsoft Corporation. All rights reserved. // // This source code is only intended as a supplement to the // Active Template Library Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Active Template Library product. // Client.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #import "..\ATLCollections.tlb" using namespace ATLCOLLECTIONSLib; // Outputs all the items in a collection using the Count and Item properties template <class T> HRESULT OutputLoopedItems(T sp) { // Get the count of items long lCount = sp->GetCount(); // The collection indexes are 1-based for (long i = 1; i <= lCount; ++i) { _bstr_t bstrTemp = static_cast<_variant_t>(sp->GetItem(i)); std::cout << static_cast<const char*>(bstrTemp) << "\n"; } return S_OK; } // Outputs all the items in a collection using the enumerator template <class T> HRESULT OutputEnumeratedItems(T sp) { // Get the VARIANT enumerator from the collection IEnumVARIANTPtr spEnum = sp->Get_NewEnum(); // nBatchSize is the number of items that we request in each call to IEnumVARIANT::Next. // The actual number of items returned may not equal nBatchSize. const ULONG nBatchSize = 5; // nReturned will store the number of items returned by a call to IEnumVARIANT::Next ULONG nReturned = 0; // arrVariant is the array used to hold the returned items VARIANT arrVariant[nBatchSize] = {0}; HRESULT hr = E_UNEXPECTED; do { hr = spEnum->Next(nBatchSize, &arrVariant[0], &nReturned); if (FAILED(hr)) return hr; for (ULONG i = 0; i < nReturned; ++i) { _bstr_t bstrTemp = static_cast<_variant_t>(arrVariant[i]); std::cout << static_cast<const char*>(bstrTemp) << "\n"; ::VariantClear(&arrVariant[i]); } } while (hr != S_FALSE); // S_FALSE indicates end of collection return hr; } int main() { CoInitialize(NULL); try { // Words is a read-only collection IWordsPtr spWords(__uuidof(Words)); std::cout << "** The contents of the Words collection obtained via Count/Item **\n"; OutputLoopedItems(spWords); std::cout << "** The contents of the Words collection obtained via the enumerator **\n"; OutputEnumeratedItems(spWords); // Items is a read-write collection IItemsPtr spItems(__uuidof(Items)); std::cout << "** The contents of the Items collection obtained via Count/Item ****\n"; OutputLoopedItems(spItems); std::cout << "** The contents of the Items collection obtained via the enumerator **\n"; OutputEnumeratedItems(spItems); // Update display std::cout << "** Testing Add, Remove and Clear methods **\n"; // Get the current item count std::cout << "Count: " << spItems->GetCount() << "\n"; // Define the key and the value for a new item const wchar_t* wszKey = L"a key"; const wchar_t* wszValue = L"a value"; // Add the item spItems->Add(wszKey, wszValue); // Get the item _bstr_t bstrItem = spItems->GetItem(wszKey); // Display the item std::cout << "Added item: " << static_cast<const char*>(bstrItem) << "\n"; // Get the current item count std::cout << "Count: " << spItems->GetCount() << "\n"; // Remove the item spItems->Remove(wszKey); // Update display std::cout << "Removed item: " << static_cast<const char*>(bstrItem) << "\n"; // Get the current item count std::cout << "Count: " << spItems->GetCount() << "\n"; // Clear all items spItems->Clear(); // Update display std::cout << "Cleared all items\n"; // Get the current item count std::cout << "Count: " << spItems->GetCount() << "\n"; } catch (const _com_error& Err) { std::cout << "Error: " << Err.ErrorMessage() << "\n"; } catch (...) { std::cout << "Unexpected Error\n"; } CoUninitialize(); return 0; }
26.08
90
0.67638
alonmm
5923a4647afae175e045a7ec96bd97975c593a29
13,848
cpp
C++
automated-tests/src/dali/utc-Dali-Shader.cpp
vcebollada/dali-core
1f880695d4f6cb871db7f946538721e882ba1633
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
automated-tests/src/dali/utc-Dali-Shader.cpp
vcebollada/dali-core
1f880695d4f6cb871db7f946538721e882ba1633
[ "Apache-2.0", "BSD-3-Clause" ]
1
2020-03-22T10:19:17.000Z
2020-03-22T10:19:17.000Z
automated-tests/src/dali/utc-Dali-Shader.cpp
fayhot/dali-core
a69ea317f30961164520664a645ac36c387055ef
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ #include <iostream> #include <stdlib.h> #include <dali/public-api/dali-core.h> #include <dali-test-suite-utils.h> #include <mesh-builder.h> using namespace Dali; void utc_dali_shader_startup(void) { test_return_value = TET_UNDEF; } void utc_dali_shader_cleanup(void) { test_return_value = TET_PASS; } namespace { static const char* VertexSource = "This is a custom vertex shader\n" "made on purpose to look nothing like a normal vertex shader inside dali\n"; static const char* FragmentSource = "This is a custom fragment shader\n" "made on purpose to look nothing like a normal fragment shader inside dali\n"; void TestConstraintNoBlue( Vector4& current, const PropertyInputContainer& inputs ) { current.b = 0.0f; } } // anon namespace int UtcDaliShaderMethodNew01(void) { TestApplication application; Shader shader = Shader::New( VertexSource, FragmentSource ); DALI_TEST_EQUALS((bool)shader, true, TEST_LOCATION); END_TEST; } int UtcDaliShaderMethodNew02(void) { TestApplication application; Shader shader; DALI_TEST_EQUALS((bool)shader, false, TEST_LOCATION); END_TEST; } int UtcDaliShaderAssignmentOperator(void) { TestApplication application; Shader shader1 = Shader::New(VertexSource, FragmentSource); Shader shader2; DALI_TEST_CHECK(!(shader1 == shader2)); shader2 = shader1; DALI_TEST_CHECK(shader1 == shader2); shader2 = Shader::New(VertexSource, FragmentSource);; DALI_TEST_CHECK(!(shader1 == shader2)); END_TEST; } int UtcDaliShaderDownCast01(void) { TestApplication application; Shader shader = Shader::New(VertexSource, FragmentSource); BaseHandle handle(shader); Shader shader2 = Shader::DownCast(handle); DALI_TEST_EQUALS( (bool)shader2, true, TEST_LOCATION ); END_TEST; } int UtcDaliShaderDownCast02(void) { TestApplication application; Handle handle = Handle::New(); // Create a custom object Shader shader = Shader::DownCast(handle); DALI_TEST_EQUALS( (bool)shader, false, TEST_LOCATION ); END_TEST; } int UtcDaliShaderDefaultProperties(void) { TestApplication application; // from shader-impl.cpp // DALI_PROPERTY( "program", MAP, true, false, false, Dali::Shader::Property::PROGRAM ) Shader shader = Shader::New(VertexSource, FragmentSource); DALI_TEST_EQUALS( shader.GetPropertyCount(), 1, TEST_LOCATION ); DALI_TEST_EQUALS( shader.GetPropertyName( Shader::Property::PROGRAM ), "program", TEST_LOCATION ); DALI_TEST_EQUALS( shader.GetPropertyIndex( "program" ), (Property::Index)Shader::Property::PROGRAM, TEST_LOCATION ); DALI_TEST_EQUALS( shader.GetPropertyType( Shader::Property::PROGRAM ), Property::MAP, TEST_LOCATION ); DALI_TEST_EQUALS( shader.IsPropertyWritable( Shader::Property::PROGRAM ), true, TEST_LOCATION ); DALI_TEST_EQUALS( shader.IsPropertyAnimatable( Shader::Property::PROGRAM ), false, TEST_LOCATION ); DALI_TEST_EQUALS( shader.IsPropertyAConstraintInput( Shader::Property::PROGRAM ), false, TEST_LOCATION ); END_TEST; } int UtcDaliShaderConstraint01(void) { TestApplication application; tet_infoline("Test that a non-uniform shader property can be constrained"); Shader shader = Shader::New(VertexSource, FragmentSource); Geometry geometry = CreateQuadGeometry(); Renderer renderer = Renderer::New( geometry, shader ); Actor actor = Actor::New(); actor.AddRenderer(renderer); actor.SetSize(400, 400); Stage::GetCurrent().Add(actor); Vector4 initialColor = Color::WHITE; Property::Index colorIndex = shader.RegisterProperty( "uFadeColor", initialColor ); application.SendNotification(); application.Render(0); DALI_TEST_EQUALS( shader.GetProperty<Vector4>(colorIndex), initialColor, TEST_LOCATION ); // Apply constraint Constraint constraint = Constraint::New<Vector4>( shader, colorIndex, TestConstraintNoBlue ); constraint.Apply(); application.SendNotification(); application.Render(0); // Expect no blue component in either buffer - yellow DALI_TEST_EQUALS( shader.GetCurrentProperty< Vector4 >( colorIndex ), Color::YELLOW, TEST_LOCATION ); application.Render(0); DALI_TEST_EQUALS( shader.GetCurrentProperty< Vector4 >( colorIndex ), Color::YELLOW, TEST_LOCATION ); shader.RemoveConstraints(); shader.SetProperty(colorIndex, Color::WHITE ); application.SendNotification(); application.Render(0); DALI_TEST_EQUALS( shader.GetCurrentProperty< Vector4 >( colorIndex ), Color::WHITE, TEST_LOCATION ); END_TEST; } int UtcDaliShaderConstraint02(void) { TestApplication application; tet_infoline("Test that a uniform map shader property can be constrained"); Shader shader = Shader::New(VertexSource, FragmentSource); Geometry geometry = CreateQuadGeometry(); Renderer renderer = Renderer::New( geometry, shader ); Actor actor = Actor::New(); actor.AddRenderer(renderer); actor.SetSize(400, 400); Stage::GetCurrent().Add(actor); application.SendNotification(); application.Render(0); Vector4 initialColor = Color::WHITE; Property::Index colorIndex = shader.RegisterProperty( "uFadeColor", initialColor ); TestGlAbstraction& gl = application.GetGlAbstraction(); application.SendNotification(); application.Render(0); Vector4 actualValue(Vector4::ZERO); DALI_TEST_CHECK( gl.GetUniformValue<Vector4>( "uFadeColor", actualValue ) ); DALI_TEST_EQUALS( actualValue, initialColor, TEST_LOCATION ); // Apply constraint Constraint constraint = Constraint::New<Vector4>( shader, colorIndex, TestConstraintNoBlue ); constraint.Apply(); application.SendNotification(); application.Render(0); // Expect no blue component in either buffer - yellow DALI_TEST_CHECK( gl.GetUniformValue<Vector4>( "uFadeColor", actualValue ) ); DALI_TEST_EQUALS( actualValue, Color::YELLOW, TEST_LOCATION ); application.Render(0); DALI_TEST_CHECK( gl.GetUniformValue<Vector4>( "uFadeColor", actualValue ) ); DALI_TEST_EQUALS( actualValue, Color::YELLOW, TEST_LOCATION ); shader.RemoveConstraints(); shader.SetProperty(colorIndex, Color::WHITE ); application.SendNotification(); application.Render(0); DALI_TEST_CHECK( gl.GetUniformValue<Vector4>( "uFadeColor", actualValue ) ); DALI_TEST_EQUALS( actualValue, Color::WHITE, TEST_LOCATION ); END_TEST; } int UtcDaliShaderAnimatedProperty01(void) { TestApplication application; tet_infoline("Test that a non-uniform shader property can be animated"); Shader shader = Shader::New(VertexSource, FragmentSource); Geometry geometry = CreateQuadGeometry(); Renderer renderer = Renderer::New( geometry, shader ); Actor actor = Actor::New(); actor.AddRenderer(renderer); actor.SetSize(400, 400); Stage::GetCurrent().Add(actor); Vector4 initialColor = Color::WHITE; Property::Index colorIndex = shader.RegisterProperty( "uFadeColor", initialColor ); application.SendNotification(); application.Render(0); DALI_TEST_EQUALS( shader.GetProperty<Vector4>(colorIndex), initialColor, TEST_LOCATION ); Animation animation = Animation::New(1.0f); KeyFrames keyFrames = KeyFrames::New(); keyFrames.Add(0.0f, initialColor); keyFrames.Add(1.0f, Color::TRANSPARENT); animation.AnimateBetween( Property( shader, colorIndex ), keyFrames ); animation.Play(); application.SendNotification(); application.Render(500); DALI_TEST_EQUALS( shader.GetCurrentProperty< Vector4 >( colorIndex ), Color::WHITE * 0.5f, TEST_LOCATION ); application.Render(500); DALI_TEST_EQUALS( shader.GetCurrentProperty< Vector4 >( colorIndex ), Color::TRANSPARENT, TEST_LOCATION ); END_TEST; } int UtcDaliShaderAnimatedProperty02(void) { TestApplication application; tet_infoline("Test that a uniform map shader property can be animated"); Shader shader = Shader::New(VertexSource, FragmentSource); Geometry geometry = CreateQuadGeometry(); Renderer renderer = Renderer::New( geometry, shader ); Actor actor = Actor::New(); actor.AddRenderer(renderer); actor.SetSize(400, 400); Stage::GetCurrent().Add(actor); application.SendNotification(); application.Render(0); Vector4 initialColor = Color::WHITE; Property::Index colorIndex = shader.RegisterProperty( "uFadeColor", initialColor ); TestGlAbstraction& gl = application.GetGlAbstraction(); application.SendNotification(); application.Render(0); Vector4 actualValue(Vector4::ZERO); DALI_TEST_CHECK( gl.GetUniformValue<Vector4>( "uFadeColor", actualValue ) ); DALI_TEST_EQUALS( actualValue, initialColor, TEST_LOCATION ); Animation animation = Animation::New(1.0f); KeyFrames keyFrames = KeyFrames::New(); keyFrames.Add(0.0f, initialColor); keyFrames.Add(1.0f, Color::TRANSPARENT); animation.AnimateBetween( Property( shader, colorIndex ), keyFrames ); animation.Play(); application.SendNotification(); application.Render(500); DALI_TEST_CHECK( gl.GetUniformValue<Vector4>( "uFadeColor", actualValue ) ); DALI_TEST_EQUALS( actualValue, Color::WHITE * 0.5f, TEST_LOCATION ); application.Render(500); DALI_TEST_CHECK( gl.GetUniformValue<Vector4>( "uFadeColor", actualValue ) ); DALI_TEST_EQUALS( actualValue, Color::TRANSPARENT, TEST_LOCATION ); // change shader program Property::Map map; map["vertex"] = VertexSource; map["fragment"] = FragmentSource; map["hints"] = "MODIFIES_GEOMETRY"; shader.SetProperty( Shader::Property::PROGRAM, Property::Value(map) ); application.SendNotification(); application.Render(100); // register another custom property as well Property::Index customIndex = shader.RegisterProperty( "uCustom", Vector3(1,2,3) ); DALI_TEST_EQUALS( shader.GetProperty<Vector3>( customIndex ), Vector3(1,2,3), TEST_LOCATION ); application.SendNotification(); application.Render(100); DALI_TEST_CHECK( gl.GetUniformValue<Vector4>( "uFadeColor", actualValue ) ); DALI_TEST_EQUALS( actualValue, Color::TRANSPARENT, TEST_LOCATION ); Vector3 customValue; DALI_TEST_CHECK( gl.GetUniformValue<Vector3>( "uCustom", customValue ) ); DALI_TEST_EQUALS( customValue, Vector3(1,2,3), TEST_LOCATION ); END_TEST; } int UtcDaliShaderProgramProperty(void) { TestApplication application; tet_infoline("Test get/set progam property"); Shader shader = Shader::New("", ""); std::string hintSet = "MODIFIES_GEOMETRY"; Property::Map map; map["vertex"] = VertexSource; map["fragment"] = FragmentSource; map["hints"] = hintSet; shader.SetProperty( Shader::Property::PROGRAM, Property::Value(map) ); // register a custom property as well Property::Index customIndex = shader.RegisterProperty( "custom", Vector3(1,2,3) ); DALI_TEST_EQUALS( shader.GetProperty<Vector3>( customIndex ), Vector3(1,2,3), TEST_LOCATION ); Property::Value value = shader.GetProperty(Shader::Property::PROGRAM); DALI_TEST_CHECK( value.GetType() == Property::MAP); const Property::Map* outMap = value.GetMap(); std::string v = (*outMap)["vertex"].Get<std::string>(); std::string f = (*outMap)["fragment"].Get<std::string>(); std::string h = (*outMap)["hints"].Get<std::string>(); DALI_TEST_CHECK( v == VertexSource ); DALI_TEST_CHECK( f == FragmentSource ); DALI_TEST_CHECK( h == hintSet ); value = shader.GetCurrentProperty( Shader::Property::PROGRAM ); DALI_TEST_CHECK( value.GetType() == Property::MAP); outMap = value.GetMap(); // check that changing the shader did not cause us to loose custom property DALI_TEST_EQUALS( shader.GetProperty<Vector3>( customIndex ), Vector3(1,2,3), TEST_LOCATION ); using Dali::Animation; Animation animation = Animation::New( 0.1f ); animation.AnimateTo( Property( shader, customIndex ), Vector3(4,5,6) ); animation.Play(); application.SendNotification(); application.Render(100); DALI_TEST_EQUALS( shader.GetProperty<Vector3>( customIndex ), Vector3(4,5,6), TEST_LOCATION ); v = (*outMap)["vertex"].Get<std::string>(); f = (*outMap)["fragment"].Get<std::string>(); h = (*outMap)["hints"].Get<std::string>(); DALI_TEST_CHECK( v == VertexSource ); DALI_TEST_CHECK( f == FragmentSource ); DALI_TEST_CHECK( h == hintSet ); std::string hintGot; hintSet = "OUTPUT_IS_TRANSPARENT,MODIFIES_GEOMETRY"; map["hints"] = hintSet; shader.SetProperty( Shader::Property::PROGRAM, Property::Value(map) ); value = shader.GetProperty(Shader::Property::PROGRAM); hintGot = (*value.GetMap())["hints"].Get<std::string>(); DALI_TEST_CHECK( hintGot == hintSet ); hintSet = "OUTPUT_IS_TRANSPARENT"; map["hints"] = hintSet; shader.SetProperty( Shader::Property::PROGRAM, Property::Value(map) ); value = shader.GetProperty(Shader::Property::PROGRAM); hintGot = (*value.GetMap())["hints"].Get<std::string>(); DALI_TEST_CHECK( hintGot == hintSet ); hintSet = "NONE"; map["hints"] = hintSet; shader.SetProperty( Shader::Property::PROGRAM, Property::Value(map) ); value = shader.GetProperty(Shader::Property::PROGRAM); hintGot = (*value.GetMap())["hints"].Get<std::string>(); DALI_TEST_CHECK( hintGot == hintSet ); hintSet = ""; map["hints"] = hintSet; shader.SetProperty( Shader::Property::PROGRAM, Property::Value(map) ); value = shader.GetProperty(Shader::Property::PROGRAM); hintGot = (*value.GetMap())["hints"].Get<std::string>(); DALI_TEST_CHECK( hintGot == "NONE" ); END_TEST; }
32.204651
118
0.737363
vcebollada
59254d576bf9a2162a693904ee0576cc2eae7992
25,309
cpp
C++
Qt Source Code/opencv_.cpp
GorkemTok33/Temel-Resim-Islemleri
197fa4f5eeb1194f27800e2ebc1c08fcad275df1
[ "MIT" ]
null
null
null
Qt Source Code/opencv_.cpp
GorkemTok33/Temel-Resim-Islemleri
197fa4f5eeb1194f27800e2ebc1c08fcad275df1
[ "MIT" ]
null
null
null
Qt Source Code/opencv_.cpp
GorkemTok33/Temel-Resim-Islemleri
197fa4f5eeb1194f27800e2ebc1c08fcad275df1
[ "MIT" ]
null
null
null
/**************************************************************************************** Program: PictureDesigner Author: Görkem Tok Language: C++ Platform: Qt Creator Contact: [email protected] License: MIT ****************************************************************************************/ #include "opencv_.h" #include <QDebug> #include <QPixmap> #include <QMessageBox> #include "fileoperations.h" #include <opencv2/opencv.hpp> #include <opencv2/core/core.hpp> #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgcodecs.hpp" #include <opencv2/photo/photo.hpp> #include "pictureoperations.h" #include <QString> #include "mainwindow.h" #include <QLabel> #include <QImage> #include <QtMath> Opencv_::Opencv_(MainWindow *mw, QLabel *mainLabel, QLabel *processLabel, QLabel *lbx, QLabel *lby, QLabel *lbinch, QLabel *lbch, QLabel *lbx1, QLabel *lby1, QLabel *lbinch1, QLabel *lbch1, QLabel *statusLabel) { this->mw = mw; this->fileOperations = new FileOperations(); this->poLoaded = new PictureOperations(); this->poProcess = new PictureOperations(); this->mainImageLabel = mainLabel; this->processImageLabel = processLabel; this->lbx = lbx; this->lbx1 = lbx1; this->lby = lby; this->lby1 = lby1; this->lbinc = lbinch; this->lbinc1 = lbinch1; this->lbch = lbch; this->lbch1 = lbch1; this->statusLabel = statusLabel; } void Opencv_::LoadImage(QString filepath) { loadedImage = cv::imread(filepath.toStdString(), cv::IMREAD_ANYCOLOR|cv::IMREAD_ANYDEPTH); cv::Mat tempLoaded; if(loadedImage.data) { loadedImage.copyTo(originalImage); if(loadedImage.channels() > 1) { loadedImage.copyTo(OriginalColoredImage); cv::cvtColor(loadedImage, tempLoaded,CV_BGR2RGB); QImageLoaded = new QImage(tempLoaded.data,tempLoaded.cols,tempLoaded.rows,tempLoaded.step,QImage::Format_RGB888); } else if(loadedImage.channels() == 1) { cv::cvtColor(loadedImage, tempLoaded,CV_GRAY2RGB); QImageLoaded = new QImage(tempLoaded.data,tempLoaded.cols,tempLoaded.rows,tempLoaded.step,QImage::Format_RGB888); } poLoaded->PutImageIntoLabel(*QImageLoaded, mainImageLabel); SetLoadedImageInfo(); qDebug() << "LoadImage: Succes"; return; } qDebug() << "Failed To Load Image From "<<filePath; QMessageBox::information(mw,"Resim Yükleme Hatası","Üzgünüm, yüklemeye çalıştığınız resim açılamıyor. Resmin dosya yolunun ve adının Türkçe karakter içermediğinden emin olun ve tekrar deneyin."); return; } void Opencv_::SaveImage() { filePath = fileOperations->SaveImage(mw); if(filePath != "") { cv::imwrite(filePath.toStdString(),loadedImage); QMessageBox::information(mw,"Kaydetme Sonucu","Resim "+filePath+" dizinine kaydedildi !"); } } void Opencv_::OpenImage() { filePath = fileOperations->LoadImageFromFile(mw); if( filePath != "") LoadImage(filePath); } void Opencv_::BluredApply() { if(bluredImage.data) { bluredImage.copyTo(loadedImage); cv::Mat tempLoaded; cv::cvtColor(loadedImage, tempLoaded,CV_BGR2RGB); QImageLoaded = new QImage(tempLoaded.data,tempLoaded.cols,tempLoaded.rows,tempLoaded.step,QImage::Format_RGB888); poLoaded->PutImageIntoLabel(*QImageLoaded, mainImageLabel); SetLoadedImageInfo(); qDebug()<<"Blured Done"; } else QMessageBox::information(mw,"Resim bulunamadı","bu işlemi yapabilmek için resim seçmeniz gerekmektedir."); } void Opencv_::EdgeApply() { if(afterProcessImage.data) { afterProcessImage.copyTo(loadedImage); cv::Mat tempLoaded; cv::cvtColor(loadedImage, tempLoaded, CV_BGR2RGB); QImageLoaded = new QImage(tempLoaded.data,tempLoaded.cols,tempLoaded.rows,tempLoaded.step,QImage::Format_RGB888); poLoaded->PutImageIntoLabel(*QImageLoaded, mainImageLabel); SetLoadedImageInfo(); qDebug()<<"Edge Done"; } else QMessageBox::information(mw,"Resim bulunamadı","bu işlemi yapabilmek için resim seçmeniz gerekmektedir."); } void Opencv_::Filter2DApply() { if(filter2dImage.data) { filter2dImage.copyTo(loadedImage); cv::Mat tempLoaded; if(loadedImage.channels()>1) cv::cvtColor(loadedImage, tempLoaded, CV_BGR2RGB); else cv::cvtColor(loadedImage, tempLoaded, CV_GRAY2RGB); QImageLoaded = new QImage(tempLoaded.data,tempLoaded.cols,tempLoaded.rows,tempLoaded.step,QImage::Format_RGB888); poLoaded->PutImageIntoLabel(*QImageLoaded, mainImageLabel); SetLoadedImageInfo(); qDebug()<<"Filter2D Done"; } else QMessageBox::information(mw,"Resim bulunamadı","bu işlemi yapabilmek için resim seçmeniz gerekmektedir."); } void Opencv_::ApplyMorphology() { if(morphologyImage.data) { morphologyImage.copyTo(loadedImage); cv::Mat tempLoaded; if(loadedImage.channels()>1) cv::cvtColor(loadedImage, tempLoaded, CV_BGR2RGB); else cv::cvtColor(loadedImage, tempLoaded, CV_GRAY2RGB); QImageLoaded = new QImage(tempLoaded.data,tempLoaded.cols,tempLoaded.rows,tempLoaded.step,QImage::Format_RGB888); poLoaded->PutImageIntoLabel(*QImageLoaded, mainImageLabel); SetLoadedImageInfo(); qDebug()<<"Morphology Done"; } else QMessageBox::information(mw,"Resim bulunamadı","bu işlemi yapabilmek için resim seçmeniz ve resim üzerinde değişiklik yapmanız gerekmektedir."); } void Opencv_::ApplyColorFilter() { if(colorFilteredImage.data) { colorFilteredImage.copyTo(loadedImage); cv::Mat tempLoaded; if(loadedImage.channels()>1) cv::cvtColor(loadedImage, tempLoaded, CV_BGR2RGB); else cv::cvtColor(loadedImage, tempLoaded, CV_GRAY2RGB); QImageLoaded = new QImage(tempLoaded.data,tempLoaded.cols,tempLoaded.rows,tempLoaded.step,QImage::Format_RGB888); poLoaded->PutImageIntoLabel(*QImageLoaded, mainImageLabel); SetLoadedImageInfo(); qDebug()<<"ColorFilter Done"; return; } QMessageBox::information(mw,"Resim bulunamadı","bu işlemi yapabilmek için resim seçmeniz ve resim üzerinde değişiklik yapmanız gerekmektedir."); return; } void Opencv_::findContoursApply(bool t) { if(grayImage.data) { if(!t) grayImage.copyTo(loadedImage); else if(t) { cv::cvtColor(tempdrawcontoursImage,tempdrawcontoursImage,CV_RGB2BGR); tempdrawcontoursImage.copyTo(loadedImage); } cv::Mat tempLoaded; cv::cvtColor(loadedImage, tempLoaded,CV_BGR2RGB); QImageLoaded = new QImage(tempLoaded.data,tempLoaded.cols,tempLoaded.rows,tempLoaded.step,QImage::Format_RGB888); poLoaded->PutImageIntoLabel(*QImageLoaded, mainImageLabel); SetLoadedImageInfo(); qDebug()<<"findContours Done"; } else QMessageBox::information(mw,"Resim bulunamadı","bu işlemi yapabilmek için resim seçmeniz gerekmektedir."); return; } bool Opencv_::Filter2D(int index, int kernel, int anchorX, int anchorY, double delta,int adaptiveType, int threshType, int deltaMin, int deltaMax, int size) { if(loadedImage.data) { if(index == 0) { float *kernelData = nullptr; if(kernel == 0) { float Data[] = {0,0,0,0,1,0,0,0,0}; kernelData = Data; } else if(kernel == 1) { float Data[] = {1,0,-1,0,0,0,-1,0,1}; kernelData = Data; } else if(kernel == 2) { float Data[] = {0,-1,0,-1,4,-1,0,-1,0}; kernelData = Data; } else if(kernel == 3) { float Data[] = {-1,-1,-1,-1,8,-1,-1,-1,-1}; kernelData = Data; } else if(kernel == 4) { float Data[] = {0,-1,0,-1,5,-1,0,-1,0}; kernelData = Data; } cv::Size arraySize(3,3); cv::Mat kernel=cv::Mat(arraySize, CV_32F, kernelData); cv::Point anchor(anchorX,anchorY); cv::filter2D(loadedImage,filter2dImage,-1,kernel,anchor,delta); statusLabel->setText("Anchor(x,y) = "+ QString::number(anchor.x)+","+QString::number(anchor.y)+","+"Delta = "+QString::number(delta)); } else if(index == 1) { cv::Mat tempthImage; loadedImage.copyTo(tempthImage); if(tempthImage.channels()>1) cv::cvtColor(tempthImage, tempthImage, CV_BGR2GRAY); cv::threshold(tempthImage, filter2dImage,deltaMin,deltaMax,threshType | cv::THRESH_OTSU); statusLabel->setText("Thresh min:"+QString::number(deltaMin)+",Thresh max:"+QString::number(deltaMin)); } else if(index == 2) { cv::Mat tempthImage; loadedImage.copyTo(tempthImage); if(tempthImage.channels()>1) cv::cvtColor(tempthImage, tempthImage, CV_BGR2GRAY); if(threshType != 0 && threshType != 1) threshType = 0; cv::adaptiveThreshold(tempthImage,filter2dImage, deltaMax, adaptiveType, threshType, size, 1); statusLabel->setText("Delta Max:"+QString::number(deltaMax)+",Size:"+QString::number(size)); } SetLoadedImageInfo(filter2dImage); cv::Mat temp; if(filter2dImage.channels()>1) cv::cvtColor(filter2dImage, temp, CV_BGR2RGB); else cv::cvtColor(filter2dImage, temp, CV_GRAY2RGB); QImageLoaded = new QImage(temp.data,temp.cols,temp.rows, temp.step,QImage::Format_RGB888); poProcess->PutImageIntoLabel(*QImageLoaded, processImageLabel); qDebug()<<"Filter2D: Success"; return true; } qDebug()<<"Filter2D: Exception: Image data is empty"; QMessageBox::information(mw,"Resim Yükleme Hatası","Filtreleme işlemini gerçekleştirmek için lütfen resim seçin."); return false; } bool Opencv_::EdgeDetection(int index, bool dxS, bool dyS, int ksize, double scale, double delta,int thressMin, int thressMax) { if(loadedImage.data) { if(index == 0) //SOBEL { int dx = 0, dy = 0; if(dxS) dx=1; else if(!dxS) dx = 0; if(dyS) dy = 1; else if(!dyS) dy = 0; cv::Sobel(loadedImage, afterProcessImage,-1,dx,dy,ksize,scale,delta); qDebug()<<"Sobel success"; statusLabel->setText("dx:"+QString::number(dx)+",dy:"+QString::number(dy)+",Size:"+QString::number(ksize)); } else if(index == 1) //LAPLACIAN { cv::Laplacian(loadedImage,afterProcessImage,-1,ksize,scale,delta); qDebug()<<"Laptacian Success"; statusLabel->setText("Ksize:"+QString::number(ksize)+",Scale:"+QString::number(scale)); } else if(index == 2) //SCHARR { int dx = 0, dy = 0; if(dxS) dx=1; else if(!dxS) dx = 0; if(dyS) dy = 1; else if(!dyS) dy = 0; cv::Scharr(loadedImage,afterProcessImage,-1,dx,dy,scale,delta); qDebug()<<"Scharr success"; statusLabel->setText("dx:"+QString::number(dx)+",dy:"+QString::number(dy)+",Scale:"+QString::number(scale)); } else if(index == 3) // CANNY { cv::Mat temp; loadedImage.copyTo(temp); cv::cvtColor(temp,temp,CV_BGR2GRAY); cv::Canny(temp,afterProcessImage,thressMin,thressMax,3,false); statusLabel->setText("Thresh min:"+QString::number(thressMin)+",Thresh max:"+QString::number(thressMax)); } cv::Mat iafterProcessImage; afterProcessImage.copyTo(iafterProcessImage); SetLoadedImageInfo(iafterProcessImage); if(iafterProcessImage.channels()>1) cv::cvtColor(iafterProcessImage, iafterProcessImage, CV_BGR2RGB); else cv::cvtColor(iafterProcessImage, iafterProcessImage, CV_GRAY2RGB); QImageLoaded = new QImage(iafterProcessImage.data,iafterProcessImage.cols,iafterProcessImage.rows,iafterProcessImage.step,QImage::Format_RGB888); poProcess->PutImageIntoLabel(*QImageLoaded, processImageLabel); return true; } qDebug()<<"Function: EdgeDetection Exception: Image data is empty !"; return false; } bool Opencv_::Blur(int index, int kSizeX, int kSizeY, int ancX, int ancY, int sigmaX, int sigmaY, int k_size, int sigmaColor, int sigmaSpace) { if(loadedImage.data) { loadedImage.copyTo(TemploadedImage); if(loadedImage.channels()==1) cv::cvtColor(TemploadedImage,TemploadedImage, CV_GRAY2BGR); if(index == 0) { cv::blur(TemploadedImage, bluredImage, cv::Size(kSizeX,kSizeY) , cv::Point(ancX,ancY)); statusLabel->setText("SizeX:"+QString::number(kSizeX)+",SizeY:"+QString::number(kSizeY)); } else if(index == 1) { cv::GaussianBlur(TemploadedImage, bluredImage, cv::Size(kSizeX, kSizeY),sigmaX, sigmaY); statusLabel->setText("SizeX:"+QString::number(kSizeX)+",SizeY:"+QString::number(kSizeY)+",Sigma(x,y):"+QString::number(sigmaX)+","+QString::number(sigmaY)); } else if(index == 2) { cv::medianBlur(TemploadedImage, bluredImage, k_size); statusLabel->setText("Size:"+QString::number(k_size)); } else if(index == 3) { cv::boxFilter(TemploadedImage, bluredImage, -1, cv::Size(kSizeX, kSizeY),cv::Point(ancX,ancY)); statusLabel->setText("SizeX:"+QString::number(kSizeX)+",SizeY:"+QString::number(kSizeY)); } else if(index == 4) { cv::bilateralFilter(TemploadedImage, bluredImage, k_size, sigmaColor, sigmaSpace); statusLabel->setText("Size:"+QString::number(k_size)+",SigmaCol:"+QString::number(sigmaColor)+",SigmaSpa:"+QString::number(sigmaSpace)); } cv::Mat ibluredImage; bluredImage.copyTo(ibluredImage); SetLoadedImageInfo(ibluredImage); cv::cvtColor(ibluredImage, ibluredImage, CV_BGR2RGB); QImageLoaded = new QImage(ibluredImage.data,ibluredImage.cols,ibluredImage.rows,ibluredImage.step,QImage::Format_RGB888); poProcess->PutImageIntoLabel(*QImageLoaded, processImageLabel); qDebug()<<"Function Blur: Success"; return true; } qDebug()<<"Funciton Blur: Image data is empty !"; return false; } bool Opencv_::Morphology(int index, int shape, int sizeX, int sizeY, int ancX, int ancY, int time) { if(loadedImage.data) { cv::Mat kernel = cv::getStructuringElement(shape,cv::Size(sizeX, sizeY), cv::Point(ancX,ancY)); cv::morphologyEx(loadedImage, morphologyImage, index, kernel, cv::Point(-1,-1),time); statusLabel->setText("SizeX:"+QString::number(sizeX)+",SizeY:"+QString::number(sizeY)+", Time:"+QString::number(time)); cv::Mat imorphologyImage; morphologyImage.copyTo(imorphologyImage); SetLoadedImageInfo(imorphologyImage); if(imorphologyImage.channels()>1) cv::cvtColor(imorphologyImage, imorphologyImage, CV_BGR2RGB); else cv::cvtColor(imorphologyImage, imorphologyImage, CV_GRAY2RGB); QImageLoaded = new QImage(imorphologyImage.data, imorphologyImage.cols, imorphologyImage.rows, imorphologyImage.step,QImage::Format_RGB888); poProcess->PutImageIntoLabel(*QImageLoaded, processImageLabel); return true; } qDebug()<<"Function Morphology Excepiton: Loaded image is empty !"; return false; } void Opencv_::SetLoadedImageInfo() { if(loadedImage.data) { lbx->setText(QString::number(loadedImage.cols)); lby->setText(QString::number(loadedImage.rows)); lbch->setText(QString::number(loadedImage.channels())); if(loadedImage.channels() > 1) lbinc->setText("RGB"); else lbinc->setText("GRAY"); qDebug()<<"SetImageInfo Success"; return; } qDebug()<<"SetImageInfo Excepiton: Loaded image is empty !"; return; } void Opencv_::SetLoadedImageInfo(cv::Mat image) { if(image.data) { lbx1->setText(QString::number(image.cols)); lby1->setText(QString::number(image.rows)); lbch1->setText(QString::number(image.channels())); if(image.channels() > 1) lbinc1->setText("RGB"); else lbinc1->setText("GRAY"); qDebug()<<"SetImageInfo Success"; return; } qDebug()<<"SetImageInfo 1/ Excepiton: Loaded image is empty !"; return; } bool Opencv_::GetLoadedQImage(QImage &image) { if(loadedImage.data) { cv::Mat temp; loadedImage.copyTo(temp); if(temp.channels()>1) cv::cvtColor(temp,temp,CV_BGR2RGB); else cv::cvtColor(temp,temp,CV_GRAY2RGB); QImage *imageTemp = new QImage(temp.data, temp.cols, temp.rows, temp.step,QImage::Format_RGB888); image = *imageTemp; return true; } QMessageBox::information(mw,"Yazdırma Hatası","Yazdırma işlemini gerçekleştirebilmek için resim seçilmiş olmalıdır !"); return false; } void Opencv_::ColorFilter(QLabel *imageLabel, int hmin, int smin, int vmin, int hm, int sm, int vm) { if(loadedImage.data) { if(loadedImage.channels()>1) { loadedImage.copyTo(colorFilteredImage); cv::Mat hsvImage; cv::Mat grayScale; cv::Mat rgbImage; cv::Mat rgbImage2; cv::cvtColor(loadedImage, hsvImage, CV_BGR2HSV); cv::inRange(hsvImage, cv::Scalar(hmin,smin,vmin),cv::Scalar(hm,sm,vm),grayScale); cv::cvtColor(grayScale, grayScale, CV_GRAY2BGR); cv::cvtColor(grayScale, rgbImage, CV_BGR2RGB); QImage *qimage = new QImage(rgbImage.data,rgbImage.cols, rgbImage.rows,rgbImage.step,QImage::Format_RGB888); imageLabel->setPixmap(QPixmap::fromImage(*qimage).scaled(imageLabel->size(),Qt::KeepAspectRatio)); colorFilteredImage = colorFilteredImage & grayScale; cv::cvtColor(colorFilteredImage, rgbImage2, CV_BGR2RGB); QImage *q2image = new QImage(rgbImage2.data,rgbImage2.cols, rgbImage2.rows,rgbImage2.step,QImage::Format_RGB888); poProcess->PutImageIntoLabel(*q2image, processImageLabel); SetLoadedImageInfo(hsvImage); statusLabel->setText("(min,max)|H:"+QString::number(hmin)+","+QString::number(hm)+",S:"+QString::number(smin)+","+QString::number(sm)+",V:"+QString::number(vmin)+","+QString::number(vm)); } else { QMessageBox::information(mw,"Renk Uzayı Hatası","Tek kanallı(siyah-beyaz) görüntüler üzerinde renk filtreleme işlemi yapılamaz."); } return; } QMessageBox::information(mw,"Resim Seçilmemiş","Bu işlemi yapabilmeniz için resim seçmiş olmanız gerekmektedir."); return; } void Opencv_::ColorizeImageMethodNormal() { if(!loadedImage.empty()) { if(OriginalColoredImage.channels()>1) { if(loadedImage.channels()==1) cv::cvtColor(loadedImage,loadedImage, CV_GRAY2BGR); tempImColoredAndOlded = loadedImage & OriginalColoredImage; cv::cvtColor(tempImColoredAndOlded, tempImColoredAndOlded, CV_BGR2RGB); QImage *qim = new QImage(tempImColoredAndOlded.data, tempImColoredAndOlded.cols,tempImColoredAndOlded.rows,tempImColoredAndOlded.step,QImage::Format_RGB888); resimonizle = new ResimOnizle(1,mw,qim,mw); cv::cvtColor(tempImColoredAndOlded, tempImColoredAndOlded, CV_RGB2BGR); resimonizle->show(); return; } QMessageBox::information(mw,"Resmi Renklendir NORMAL","Bu işlemi yapabilmeniz seçilen resim renkli olmalıdır."); return; } QMessageBox::information(mw,"Resmi Renklendir NORMAL","Bu işlemi yapabilmeniz için resim seçmiş olmanız gerekmektedir."); return; } void Opencv_::ApplyColorizedImage() { if(!tempImColoredAndOlded.empty() && tempImColoredAndOlded.data) { tempImColoredAndOlded.copyTo(loadedImage); QImage *q2image = new QImage(tempImColoredAndOlded.data, tempImColoredAndOlded.cols, tempImColoredAndOlded.rows,tempImColoredAndOlded.step,QImage::Format_RGB888); poLoaded->PutImageIntoLabel(*q2image, mainImageLabel); qDebug()<<"ApplyColorizedImage: Success"; return; } QMessageBox::information(mw,"NORMAL FUNCAPPLYCOLORIZED","Hay aksi, bilinmeyen bir hata oluştu."); return; } bool Opencv_::findContours(QLCDNumber *countLabel, int mod, int method, int b, int g, int r, int thickness, bool isNumbered, bool isColored) { if(loadedImage.empty()) { QMessageBox::information(mw,"Resim seçilmemiş !","Hay aksi ! Bu işlemi gerçekleştirilebilmeniz için resim seçmiş olmanız gerekir."); qDebug()<<"findContours: Loaded image is empty !"; return false; } if(loadedImage.channels()>1) cv::cvtColor(loadedImage, grayImage, CV_BGR2GRAY); else if(loadedImage.channels()== 1) loadedImage.copyTo(grayImage); else { QMessageBox::information(mw,"Resim Biçimi Hatası !","Hay aksi ! Yüklenen resmin kanal sayısı uyumsuz."); return false; } originalImage.copyTo(tempdrawcontoursImage); std::vector<std::vector<cv::Point> > contours; std::vector<cv::Vec4i> hieararchy; cv::findContours(grayImage, contours, hieararchy, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_NONE); cv::RotatedRect rect; cv::cvtColor(grayImage,grayImage, CV_GRAY2BGR); for(int i = 0; i < contours.size(); i++) { cv::drawContours(grayImage,contours,i,cv::Scalar(b,g,r),thickness,8, hieararchy); rect = cv::minAreaRect(contours[i]); if(isColored) { cv::drawContours(tempdrawcontoursImage,contours,i,cv::Scalar(b,g,r),thickness,8, hieararchy); } if(isNumbered) { cv::putText(grayImage, std::to_string(i+1),rect.center,CV_FONT_NORMAL, 1.5, cv::Scalar(b,g,r),2); if(isColored) { cv::putText(tempdrawcontoursImage, std::to_string(i+1),rect.center,CV_FONT_NORMAL, 1.5, cv::Scalar(b,g,r),2); } } } cv::cvtColor(grayImage,grayImage,CV_BGR2RGB); QImage *q2image = new QImage(grayImage.data, grayImage.cols, grayImage.rows,grayImage.step,QImage::Format_RGB888); poProcess->PutImageIntoLabel(*q2image, processImageLabel); countLabel->display((int)contours.size()); if(isColored) { cv::cvtColor(tempdrawcontoursImage,tempdrawcontoursImage,CV_BGR2RGB); QImage *q22image = new QImage(tempdrawcontoursImage.data, tempdrawcontoursImage.cols, tempdrawcontoursImage.rows,tempdrawcontoursImage.step,QImage::Format_RGB888); resimonizle = new ResimOnizle(0,mw, q22image, mw); resimonizle->show(); } qDebug()<<"findContours: Success"; return true; } void Opencv_::TakeBackEverything() { if(!originalImage.empty() && originalImage.data) { cv::Mat tempLoaded; originalImage.copyTo(loadedImage); if(loadedImage.channels() > 1) { loadedImage.copyTo(OriginalColoredImage); cv::cvtColor(loadedImage, tempLoaded,CV_BGR2RGB); QImageLoaded = new QImage(tempLoaded.data,tempLoaded.cols,tempLoaded.rows,tempLoaded.step,QImage::Format_RGB888); } else if(loadedImage.channels() == 1) { cv::cvtColor(loadedImage, tempLoaded,CV_GRAY2RGB); QImageLoaded = new QImage(tempLoaded.data,tempLoaded.cols,tempLoaded.rows,tempLoaded.step,QImage::Format_RGB888); } poLoaded->PutImageIntoLabel(*QImageLoaded, mainImageLabel); SetLoadedImageInfo(); qDebug() << "LoadImage: Succes"; return; } }
32.572716
200
0.608716
GorkemTok33
59264ede404d20daf02b4b2d53ae543df9c017d7
220
hxx
C++
src/lib/ui/widgets/label.hxx
johanneslochmann/cppprojecttemplate
28f1bd4dd1bc414ed38c8a739e33974f65891f83
[ "BSD-3-Clause" ]
null
null
null
src/lib/ui/widgets/label.hxx
johanneslochmann/cppprojecttemplate
28f1bd4dd1bc414ed38c8a739e33974f65891f83
[ "BSD-3-Clause" ]
null
null
null
src/lib/ui/widgets/label.hxx
johanneslochmann/cppprojecttemplate
28f1bd4dd1bc414ed38c8a739e33974f65891f83
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <ui/widgets/config.hxx> #include <QLabel> PRAM_NS_BEGIN WIDGETS_NAMESPACE_BEGIN class Label: public QLabel { Q_OBJECT public: using QLabel::QLabel; }; PRAM_NS_END WIDGETS_NAMESPACE_END
11.578947
32
0.768182
johanneslochmann
59274351d802839b10cd13fc322f83b28799931f
2,567
hpp
C++
src/xrt/auxiliary/tracking/t_helper_debug_sink.hpp
mateosss/monado
5c6158cc8bbd92add1aa38bf44164cd9d0386900
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSL-1.0", "BSD-3-Clause" ]
1
2021-02-25T19:36:30.000Z
2021-02-25T19:36:30.000Z
src/xrt/auxiliary/tracking/t_helper_debug_sink.hpp
mateosss/monado
5c6158cc8bbd92add1aa38bf44164cd9d0386900
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSL-1.0", "BSD-3-Clause" ]
null
null
null
src/xrt/auxiliary/tracking/t_helper_debug_sink.hpp
mateosss/monado
5c6158cc8bbd92add1aa38bf44164cd9d0386900
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSL-1.0", "BSD-3-Clause" ]
null
null
null
// Copyright 2019, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file * @brief Small helper struct that for debugging views. * @author Jakob Bornecrantz <[email protected]> * @ingroup aux_tracking */ #pragma once #ifndef __cplusplus #error "This header is C++-only." #endif #include <opencv2/opencv.hpp> #include "util/u_frame.h" struct HelperDebugSink { public: enum Kind { AllAvailable, AlwaysSingle, }; public: Kind kind = AllAvailable; struct xrt_frame_sink *sink = {}; struct xrt_frame *frame = {}; cv::Mat rgb[2] = {}; public: HelperDebugSink(Kind kind) { this->kind = kind; } HelperDebugSink() = delete; ~HelperDebugSink() { xrt_frame_reference(&frame, NULL); } void refresh(struct xrt_frame *xf) { if (sink == NULL) { return; } // But what about second breakfast? bool second_view = false; int rows, cols, width, height; cols = xf->width; rows = xf->height; width = xf->width; height = xf->height; enum xrt_stereo_format stereo_format = xf->stereo_format; switch (xf->stereo_format) { case XRT_STEREO_FORMAT_SBS: cols /= 2; if (kind == AllAvailable) { second_view = true; } else { stereo_format = XRT_STEREO_FORMAT_NONE; width /= 2; second_view = false; } break; case XRT_STEREO_FORMAT_NONE: // Noop break; default: return; } // Create a new frame and also dereferences the old frame. u_frame_create_one_off(XRT_FORMAT_R8G8B8, width, height, &frame); // Copy needed info. frame->source_sequence = xf->source_sequence; frame->stereo_format = stereo_format; // Doesn't claim ownership of the frame data, // points directly at the frame data. rgb[0] = cv::Mat( // rows, // rows cols, // cols CV_8UC3, // channels frame->data, // data frame->stride); // stride if (second_view) { // Doesn't claim ownership of the frame data, // points directly at the frame data. rgb[1] = cv::Mat( // rows, // rows cols, // cols CV_8UC3, // channels frame->data + 3 * cols, // data frame->stride); // stride } } void submit() { if (frame != NULL) { // Make sure that the cv::Mats doesn't use the data. rgb[0] = cv::Mat(); rgb[1] = cv::Mat(); sink->push_frame(sink, frame); } // We unreference the frame here, downstream is either // done with it or have referenced it themselves. xrt_frame_reference(&frame, NULL); } };
20.212598
67
0.613946
mateosss
592bd95a74c9a08b03b2d079850914ccca204634
14,141
cpp
C++
wifi-x-nucleo-idw01m1/SpwfSAInterface.cpp
rmikio/STM32L475_Ubidots_LCF
1d9fd282969d035680de2ff42a97389ce831711a
[ "MIT" ]
null
null
null
wifi-x-nucleo-idw01m1/SpwfSAInterface.cpp
rmikio/STM32L475_Ubidots_LCF
1d9fd282969d035680de2ff42a97389ce831711a
[ "MIT" ]
null
null
null
wifi-x-nucleo-idw01m1/SpwfSAInterface.cpp
rmikio/STM32L475_Ubidots_LCF
1d9fd282969d035680de2ff42a97389ce831711a
[ "MIT" ]
null
null
null
/* mbed Microcontroller Library * Copyright (c) 20015 ARM Limited * * 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. */ /** ****************************************************************************** * @file SpwfSAInterface.cpp * @author STMicroelectronics * @brief Implementation of the NetworkStack for the SPWF Device ****************************************************************************** * @copy * * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. * * <h2><center>&copy; COPYRIGHT 2016 STMicroelectronics</center></h2> ****************************************************************************** */ #include "SpwfSAInterface.h" #include "mbed_debug.h" #include "BlockExecuter.h" #if MBED_CONF_RTOS_PRESENT static Mutex _spwf_mutex; // assuming a recursive mutex static void _spwf_lock() { (void)(_spwf_mutex.lock()); } static Callback<void()> _callback_spwf_lock(&_spwf_lock); static void _spwf_unlock() { (void)(_spwf_mutex.unlock()); } static Callback<void()> _callback_spwf_unlock(&_spwf_unlock); #define SYNC_HANDLER \ BlockExecuter sync_handler(_callback_spwf_unlock, _callback_spwf_lock) #else #define SYNC_HANDLER #endif SpwfSAInterface::SpwfSAInterface(PinName tx, PinName rx, PinName rts, PinName cts, bool debug, PinName wakeup, PinName reset) : _spwf(tx, rx, rts, cts, *this, debug, wakeup, reset), _dbg_on(debug) { inner_constructor(); reset_credentials(); } nsapi_error_t SpwfSAInterface::init(void) { _spwf.setTimeout(SPWF_INIT_TIMEOUT); if(_spwf.startup(0)) { return NSAPI_ERROR_OK; } else return NSAPI_ERROR_DEVICE_ERROR; } nsapi_error_t SpwfSAInterface::connect(void) { int mode; char *pass_phrase = ap_pass; SYNC_HANDLER; // check for valid SSID if(ap_ssid[0] == '\0') { return NSAPI_ERROR_PARAMETER; } switch(ap_sec) { case NSAPI_SECURITY_NONE: mode = 0; pass_phrase = NULL; break; case NSAPI_SECURITY_WEP: mode = 1; break; case NSAPI_SECURITY_WPA: case NSAPI_SECURITY_WPA2: mode = 2; break; default: mode = 2; break; } // First: disconnect if(_connected_to_network) { if(!disconnect()) { return NSAPI_ERROR_DEVICE_ERROR; } } //initialize the device before connecting if(!_isInitialized) { if(init() != NSAPI_ERROR_OK) return NSAPI_ERROR_DEVICE_ERROR; _isInitialized=true; } // Then: (re-)connect _spwf.setTimeout(SPWF_CONNECT_TIMEOUT); if (!_spwf.connect(ap_ssid, pass_phrase, mode)) { return NSAPI_ERROR_AUTH_FAILURE; } if (!_spwf.getIPAddress()) { return NSAPI_ERROR_DHCP_FAILURE; } _connected_to_network = true; return NSAPI_ERROR_OK; } nsapi_error_t SpwfSAInterface::connect(const char *ssid, const char *pass, nsapi_security_t security, uint8_t channel) { nsapi_error_t ret; SYNC_HANDLER; if (channel != 0) { return NSAPI_ERROR_UNSUPPORTED; } ret = set_credentials(ssid, pass, security); if(ret != NSAPI_ERROR_OK) return ret; return connect(); } nsapi_error_t SpwfSAInterface::disconnect(void) { SYNC_HANDLER; _spwf.setTimeout(SPWF_DISCONNECT_TIMEOUT); if (!_spwf.disconnect()) { return NSAPI_ERROR_DEVICE_ERROR; } return NSAPI_ERROR_OK; } const char *SpwfSAInterface::get_ip_address(void) { SYNC_HANDLER; _spwf.setTimeout(SPWF_MISC_TIMEOUT); return _spwf.getIPAddress(); } const char *SpwfSAInterface::get_mac_address(void) { SYNC_HANDLER; _spwf.setTimeout(SPWF_MISC_TIMEOUT); return _spwf.getMACAddress(); } const char *SpwfSAInterface::get_gateway(void) { SYNC_HANDLER; if(!_connected_to_network) return NULL; _spwf.setTimeout(SPWF_MISC_TIMEOUT); return _spwf.getGateway(); } const char *SpwfSAInterface::get_netmask(void) { SYNC_HANDLER; if(!_connected_to_network) return NULL; _spwf.setTimeout(SPWF_MISC_TIMEOUT); return _spwf.getNetmask(); } nsapi_error_t SpwfSAInterface::socket_open(void **handle, nsapi_protocol_t proto) { int internal_id; SYNC_HANDLER; for (internal_id = 0; internal_id < SPWFSA_SOCKET_COUNT; internal_id++) { if(_ids[internal_id].internal_id == SPWFSA_SOCKET_COUNT) break; } if(internal_id == SPWFSA_SOCKET_COUNT) { debug_if(_dbg_on, "NO Socket ID Error\r\n"); return NSAPI_ERROR_NO_SOCKET; } spwf_socket_t *socket = &_ids[internal_id]; socket->internal_id = internal_id; socket->spwf_id = SPWFSA_SOCKET_COUNT; socket->server_gone = false; socket->no_more_data = false; socket->proto = proto; socket->addr = SocketAddress(); *handle = socket; return NSAPI_ERROR_OK; } nsapi_error_t SpwfSAInterface::socket_connect(void *handle, const SocketAddress &addr) { spwf_socket_t *socket = (spwf_socket_t*)handle; SYNC_HANDLER; MBED_ASSERT(((unsigned int)socket->internal_id) < ((unsigned int)SPWFSA_SOCKET_COUNT)); if(_socket_has_connected(socket->internal_id)) { return NSAPI_ERROR_IS_CONNECTED; } _spwf.setTimeout(SPWF_OPEN_TIMEOUT); const char *proto = (socket->proto == NSAPI_UDP) ? "u" : "t"; //"s" for secure socket? if(addr.get_ip_version() != NSAPI_IPv4) { // IPv6 not supported (yet) return NSAPI_ERROR_UNSUPPORTED; } { BlockExecuter netsock_wa_obj(Callback<void()>(&_spwf, &SPWFSAxx::_unblock_event_callback), Callback<void()>(&_spwf, &SPWFSAxx::_block_event_callback)); /* disable calling (external) callback in IRQ context */ /* block asynchronous indications */ if(!_spwf._winds_off()) { return NSAPI_ERROR_DEVICE_ERROR; } { BlockExecuter bh_handler(Callback<void()>(&_spwf, &SPWFSAxx::_execute_bottom_halves)); { BlockExecuter winds_enabler(Callback<void()>(&_spwf, &SPWFSAxx::_winds_on)); if(!_spwf.open(proto, &socket->spwf_id, addr.get_ip_address(), addr.get_port())) { MBED_ASSERT(_spwf._call_event_callback_blocked == 1); return NSAPI_ERROR_DEVICE_ERROR; } /* check for the module to report a valid id */ MBED_ASSERT(((unsigned int)socket->spwf_id) < ((unsigned int)SPWFSA_SOCKET_COUNT)); _internal_ids[socket->spwf_id] = socket->internal_id; socket->addr = addr; MBED_ASSERT(_spwf._call_event_callback_blocked == 1); return NSAPI_ERROR_OK; } } } } nsapi_error_t SpwfSAInterface::socket_bind(void *handle, const SocketAddress &address) { return NSAPI_ERROR_UNSUPPORTED; } nsapi_error_t SpwfSAInterface::socket_listen(void *handle, int backlog) { return NSAPI_ERROR_UNSUPPORTED; } nsapi_error_t SpwfSAInterface::socket_accept(nsapi_socket_t server, nsapi_socket_t *handle, SocketAddress *address) { return NSAPI_ERROR_UNSUPPORTED; } nsapi_error_t SpwfSAInterface::socket_close(void *handle) { spwf_socket_t *socket = (spwf_socket_t*)handle; int internal_id = socket->internal_id; SYNC_HANDLER; if(!_socket_is_open(internal_id)) return NSAPI_ERROR_NO_SOCKET; if(_socket_has_connected(socket)) { _spwf.setTimeout(SPWF_CLOSE_TIMEOUT); if (!_spwf.close(socket->spwf_id)) { return NSAPI_ERROR_DEVICE_ERROR; } _internal_ids[socket->spwf_id] = SPWFSA_SOCKET_COUNT; } _ids[internal_id].internal_id = SPWFSA_SOCKET_COUNT; _ids[internal_id].spwf_id = SPWFSA_SOCKET_COUNT; return NSAPI_ERROR_OK; } nsapi_size_or_error_t SpwfSAInterface::socket_send(void *handle, const void *data, unsigned size) { spwf_socket_t *socket = (spwf_socket_t*)handle; SYNC_HANDLER; CHECK_NOT_CONNECTED_ERR(); _spwf.setTimeout(SPWF_SEND_TIMEOUT); return _spwf.send(socket->spwf_id, data, size, socket->internal_id); } nsapi_size_or_error_t SpwfSAInterface::socket_recv(void *handle, void *data, unsigned size) { SYNC_HANDLER; return _socket_recv(handle, data, size, false); } nsapi_size_or_error_t SpwfSAInterface::_socket_recv(void *handle, void *data, unsigned size, bool datagram) { spwf_socket_t *socket = (spwf_socket_t*)handle; CHECK_NOT_CONNECTED_ERR(); if(!_socket_has_connected(socket)) { return NSAPI_ERROR_WOULD_BLOCK; } else if(socket->no_more_data) { return 0; } _spwf.setTimeout(SPWF_RECV_TIMEOUT); int32_t recv = _spwf.recv(socket->spwf_id, (char*)data, (uint32_t)size, datagram); MBED_ASSERT(!_spwf._is_event_callback_blocked()); MBED_ASSERT((recv != 0) || (size == 0)); if (recv < 0) { if(!_socket_is_still_connected(socket)) { socket->no_more_data = true; return 0; } return NSAPI_ERROR_WOULD_BLOCK; } return recv; } nsapi_size_or_error_t SpwfSAInterface::socket_sendto(void *handle, const SocketAddress &addr, const void *data, unsigned size) { spwf_socket_t *socket = (spwf_socket_t*)handle; SYNC_HANDLER; CHECK_NOT_CONNECTED_ERR(); if ((_socket_has_connected(socket)) && (socket->addr != addr)) { _spwf.setTimeout(SPWF_CLOSE_TIMEOUT); if (!_spwf.close(socket->spwf_id)) { return NSAPI_ERROR_DEVICE_ERROR; } _internal_ids[socket->spwf_id] = SPWFSA_SOCKET_COUNT; socket->spwf_id = SPWFSA_SOCKET_COUNT; } _spwf.setTimeout(SPWF_CONN_SND_TIMEOUT); if (!_socket_has_connected(socket)) { nsapi_error_t err = socket_connect(socket, addr); if (err < 0) { return err; } } return socket_send(socket, data, size); } nsapi_size_or_error_t SpwfSAInterface::socket_recvfrom(void *handle, SocketAddress *addr, void *data, unsigned size) { spwf_socket_t *socket = (spwf_socket_t*)handle; nsapi_error_t ret; SYNC_HANDLER; ret = _socket_recv(socket, data, size, true); if (ret >= 0 && addr) { *addr = socket->addr; } return ret; } void SpwfSAInterface::socket_attach(void *handle, void (*callback)(void *), void *data) { spwf_socket_t *socket = (spwf_socket_t*)handle; SYNC_HANDLER; if(!_socket_is_open(socket)) return; // might happen e.g. after module hard fault or voluntary disconnection _cbs[socket->internal_id].callback = callback; _cbs[socket->internal_id].data = data; } void SpwfSAInterface::event(void) { for (int internal_id = 0; internal_id < SPWFSA_SOCKET_COUNT; internal_id++) { if (_cbs[internal_id].callback && (_ids[internal_id].internal_id != SPWFSA_SOCKET_COUNT)) { _cbs[internal_id].callback(_cbs[internal_id].data); } } } nsapi_error_t SpwfSAInterface::set_credentials(const char *ssid, const char *pass, nsapi_security_t security) { SYNC_HANDLER; if((ssid == NULL) || (strlen(ssid) == 0)) { return NSAPI_ERROR_PARAMETER; } if((pass != NULL) && (strlen(pass) > 0)) { if(strlen(pass) < sizeof(ap_pass)) { if(security == NSAPI_SECURITY_NONE) { return NSAPI_ERROR_PARAMETER; } } else { return NSAPI_ERROR_PARAMETER; } } else if(security != NSAPI_SECURITY_NONE) { return NSAPI_ERROR_PARAMETER; } reset_credentials(); ap_sec = security; strncpy(ap_ssid, ssid, sizeof(ap_ssid) - 1); strncpy(ap_pass, pass, sizeof(ap_pass) - 1); return NSAPI_ERROR_OK; } nsapi_error_t SpwfSAInterface::set_channel(uint8_t channel) { return NSAPI_ERROR_UNSUPPORTED; } int8_t SpwfSAInterface::get_rssi(void) { SYNC_HANDLER; if(!_connected_to_network) return 0; _spwf.setTimeout(SPWF_MISC_TIMEOUT); return _spwf.getRssi(); } nsapi_size_or_error_t SpwfSAInterface::scan(WiFiAccessPoint *res, unsigned count) { SYNC_HANDLER; nsapi_size_or_error_t ret; //initialize the device before scanning if(!_isInitialized) { if(init() != NSAPI_ERROR_OK) return NSAPI_ERROR_DEVICE_ERROR; } _spwf.setTimeout(SPWF_SCAN_TIMEOUT); { BlockExecuter netsock_wa_obj(Callback<void()>(&_spwf, &SPWFSAxx::_unblock_event_callback), Callback<void()>(&_spwf, &SPWFSAxx::_block_event_callback)); /* disable calling (external) callback in IRQ context */ /* block asynchronous indications */ if(!_spwf._winds_off()) { MBED_ASSERT(_spwf._call_event_callback_blocked == 1); return NSAPI_ERROR_DEVICE_ERROR; } ret = _spwf.scan(res, count); /* unblock asynchronous indications */ _spwf._winds_on(); } MBED_ASSERT(!_spwf._is_event_callback_blocked()); //de-initialize the device after scanning if(!_isInitialized) { nsapi_error_t err = disconnect(); if(err != NSAPI_ERROR_OK) return err; } return ret; }
27.565302
154
0.655753
rmikio
592c133b276684d0c8e4ad2e04426e3d55f461cc
333
hpp
C++
Classifier/TransformerBuilder.hpp
TomaszRewak/Classifiers
35f383b4a87d905f9c15dfdec88a94ea9f8b1abb
[ "MIT" ]
null
null
null
Classifier/TransformerBuilder.hpp
TomaszRewak/Classifiers
35f383b4a87d905f9c15dfdec88a94ea9f8b1abb
[ "MIT" ]
null
null
null
Classifier/TransformerBuilder.hpp
TomaszRewak/Classifiers
35f383b4a87d905f9c15dfdec88a94ea9f8b1abb
[ "MIT" ]
null
null
null
#pragma once #include "Transformer.hpp" namespace Classifier::Data::Transformation { class TransformerBuilder { public: template<typename ...Ts> static Transformer<InputFeatures<Ts...>, OutputFeatures<Ts...>> from(FeatureSet<Ts...>& set) { return Transformer<InputFeatures<Ts...>, OutputFeatures<Ts...>>(set); } }; }
20.8125
94
0.6997
TomaszRewak
592e9ae42ef83ac29643bd7f3a4159072f665245
12,177
cpp
C++
src/helics/application_api/Filters.cpp
bmkelley/HELICS
742383907e5ad8af25a97d17a60985976af7c2e1
[ "BSD-3-Clause" ]
null
null
null
src/helics/application_api/Filters.cpp
bmkelley/HELICS
742383907e5ad8af25a97d17a60985976af7c2e1
[ "BSD-3-Clause" ]
null
null
null
src/helics/application_api/Filters.cpp
bmkelley/HELICS
742383907e5ad8af25a97d17a60985976af7c2e1
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2017-2020, Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See the top-level NOTICE for additional details. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ #include "Filters.hpp" #include "CoreApp.hpp" #include "FilterOperations.hpp" #include <algorithm> #include <map> #include <memory> #include <utility> namespace helics { static const std::map<std::string, filter_types> filterTypes{ {"clone", filter_types::clone}, {"cloning", filter_types::clone}, {"delay", filter_types::delay}, {"timedelay", filter_types::delay}, {"randomdelay", filter_types::random_delay}, {"randomdrop", filter_types::random_drop}, {"time_delay", filter_types::delay}, {"random_delay", filter_types::random_delay}, {"random_drop", filter_types::random_drop}, {"time delay", filter_types::delay}, {"random delay", filter_types::random_delay}, {"random drop", filter_types::random_drop}, {"reroute", filter_types::reroute}, {"redirect", filter_types::reroute}, {"firewall", filter_types::firewall}, {"custom", filter_types::custom}}; filter_types filterTypeFromString(const std::string& filterType) noexcept { auto fnd = filterTypes.find(filterType); if (fnd != filterTypes.end()) { return fnd->second; } auto nfilt = filterType; std::transform(nfilt.begin(), nfilt.end(), nfilt.begin(), ::tolower); fnd = filterTypes.find(nfilt); if (fnd != filterTypes.end()) { return fnd->second; } return filter_types::unrecognized; } void addOperations(Filter* filt, filter_types type, Core* /*cptr*/) { switch (type) { case filter_types::custom: default: break; case filter_types::random_delay: { auto op = std::make_shared<RandomDelayFilterOperation>(); filt->setFilterOperations(std::move(op)); } break; case filter_types::delay: { auto op = std::make_shared<DelayFilterOperation>(); filt->setFilterOperations(std::move(op)); } break; case filter_types::random_drop: { auto op = std::make_shared<RandomDropFilterOperation>(); filt->setFilterOperations(std::move(op)); } break; case filter_types::reroute: { auto op = std::make_shared<RerouteFilterOperation>(); filt->setFilterOperations(std::move(op)); } break; case filter_types::clone: { auto op = std::make_shared<CloneFilterOperation>(); filt->setFilterOperations(std::move(op)); } break; case filter_types::firewall: { auto op = std::make_shared<FirewallFilterOperation>(); filt->setFilterOperations(std::move(op)); } break; } } Filter::Filter(Federate* ffed, const std::string& filtName): Filter(ffed->registerFilter(filtName)) { } Filter::Filter(Federate* ffed, const std::string& filtName, interface_handle ihandle): fed(ffed), handle(ihandle), name(filtName) { if (ffed != nullptr) { corePtr = ffed->getCorePointer().get(); } } Filter::Filter(interface_visibility locality, Federate* ffed, const std::string& filtName) { if (ffed != nullptr) { corePtr = ffed->getCorePointer().get(); if (locality == interface_visibility::global) { operator=(ffed->registerGlobalFilter(filtName)); } else { operator=(ffed->registerFilter(filtName)); } } } Filter::Filter(Core* cr, const std::string& filtName): corePtr(cr), name(filtName) { if (corePtr != nullptr) { handle = corePtr->registerFilter(filtName, std::string(), std::string()); fed = nullptr; } } void Filter::setOperator(std::shared_ptr<FilterOperator> mo) { if (corePtr != nullptr) { corePtr->setFilterOperator(handle, std::move(mo)); } } void Filter::setFilterOperations(std::shared_ptr<FilterOperations> filterOps) { filtOp = std::move(filterOps); if (corePtr != nullptr) { corePtr->setFilterOperator(handle, (filtOp) ? filtOp->getOperator() : nullptr); } } static const std::string emptyStr; const std::string& Filter::getKey() const { if (corePtr != nullptr) { return corePtr->getHandleName(handle); } return emptyStr; } const std::string& Filter::getInjectionType() const { if (corePtr != nullptr) { return corePtr->getInjectionType(handle); } return emptyStr; } const std::string& Filter::getExtractionType() const { if (corePtr != nullptr) { return corePtr->getExtractionType(handle); } return emptyStr; } const std::string& Filter::getInfo() const { return corePtr->getInterfaceInfo(handle); } void Filter::setInfo(const std::string& info) { corePtr->setInterfaceInfo(handle, info); } void Filter::set(const std::string& property, double val) { if (filtOp) { filtOp->set(property, val); } } void Filter::setString(const std::string& property, const std::string& val) { if (filtOp) { filtOp->setString(property, val); } } CloningFilter::CloningFilter(Core* cr, const std::string& filtName) { corePtr = cr; if (corePtr != nullptr) { handle = corePtr->registerCloningFilter(filtName, std::string(), std::string()); name = filtName; } setFilterOperations(std::make_shared<CloneFilterOperation>()); } CloningFilter::CloningFilter(Federate* ffed, const std::string& filtName): Filter(ffed->registerCloningFilter(filtName)) { if (corePtr != nullptr) { setFilterOperations(std::make_shared<CloneFilterOperation>()); } } CloningFilter::CloningFilter(Federate* ffed, const std::string& filtName, interface_handle ihandle): Filter(ffed, filtName, ihandle) { } CloningFilter::CloningFilter(interface_visibility locality, Federate* ffed, const std::string& filtName) { if (ffed != nullptr) { corePtr = ffed->getCorePointer().get(); if (locality == interface_visibility::global) { operator=(ffed->registerGlobalCloningFilter(filtName)); } else { operator=(ffed->registerCloningFilter(filtName)); } setFilterOperations(std::make_shared<CloneFilterOperation>()); } } void Filter::addSourceTarget(const std::string& sourceName) { // sourceEndpoints.push_back (sourceName); corePtr->addSourceTarget(handle, sourceName); } void Filter::addDestinationTarget(const std::string& destinationName) { // destEndpoints.push_back (destinationName); corePtr->addDestinationTarget(handle, destinationName); } void CloningFilter::addDeliveryEndpoint(const std::string& endpoint) { Filter::setString("add delivery", endpoint); } void Filter::removeTarget(const std::string& sourceName) { corePtr->removeTarget(handle, sourceName); } void Filter::setOption(int32_t option, int32_t value) { corePtr->setHandleOption(handle, option, value); } /** close a filter during an active simulation @details it is not necessary to call this function unless you are continuing the simulation after the close*/ void Filter::close() { corePtr->closeHandle(handle); } /** get the current value of a flag for the handle*/ int32_t Filter::getOption(int32_t option) const { return corePtr->getHandleOption(handle, option); } void CloningFilter::removeDeliveryEndpoint(const std::string& endpoint) { Filter::setString("remove delivery", endpoint); } void CloningFilter::setString(const std::string& property, const std::string& val) { if ((property == "source") || (property == "add source")) { addSourceTarget(val); } else if ((property == "dest") || (property == "destination") || (property == "add destination") || (property == "add dest")) { addDestinationTarget(val); } else if ((property == "endpoint") || (property == "add endpoint")) { addSourceTarget(val); addDestinationTarget(val); } else if ((property == "remove destination") || (property == "remove dest")) { removeTarget(val); } else if (property == "remove source") { removeTarget(val); } else if (property == "remove endpoint") { removeTarget(val); } else { Filter::setString(property, val); } } Filter& make_filter(filter_types type, Federate* mFed, const std::string& name) { if (type == filter_types::clone) { Filter& dfilt = mFed->registerCloningFilter(name); addOperations(&dfilt, type, mFed->getCorePointer().get()); dfilt.setString("delivery", name); return dfilt; } auto& dfilt = mFed->registerFilter(name); addOperations(&dfilt, type, nullptr); return dfilt; } Filter& make_filter(interface_visibility locality, filter_types type, Federate* mFed, const std::string& name) { if (type == filter_types::clone) { Filter& dfilt = (locality == interface_visibility::global) ? mFed->registerGlobalCloningFilter(name) : mFed->registerCloningFilter(name); addOperations(&dfilt, type, mFed->getCorePointer().get()); dfilt.setString("delivery", name); return dfilt; } auto& dfilt = (locality == interface_visibility::global) ? mFed->registerGlobalFilter(name) : mFed->registerFilter(name); addOperations(&dfilt, type, nullptr); return dfilt; } std::unique_ptr<Filter> make_filter(filter_types type, Core* cr, const std::string& name) { if (type == filter_types::clone) { std::unique_ptr<Filter> dfilt = std::make_unique<CloningFilter>(cr, name); addOperations(dfilt.get(), type, cr); dfilt->setString("delivery", name); return dfilt; } auto dfilt = std::make_unique<Filter>(cr, name); addOperations(dfilt.get(), type, cr); return dfilt; } std::unique_ptr<Filter> make_filter(filter_types type, CoreApp& cr, const std::string& name) { return make_filter(type, cr.getCopyofCorePointer().get(), name); } CloningFilter& make_cloning_filter(filter_types type, Federate* mFed, const std::string& delivery, const std::string& name) { auto& dfilt = mFed->registerCloningFilter(name); addOperations(&dfilt, type, mFed->getCorePointer().get()); if (!delivery.empty()) { dfilt.addDeliveryEndpoint(delivery); } return dfilt; } CloningFilter& make_cloning_filter(interface_visibility locality, filter_types type, Federate* mFed, const std::string& delivery, const std::string& name) { auto& dfilt = (locality == interface_visibility::global) ? mFed->registerGlobalCloningFilter(name) : mFed->registerCloningFilter(name); addOperations(&dfilt, type, mFed->getCorePointer().get()); if (!delivery.empty()) { dfilt.addDeliveryEndpoint(delivery); } return dfilt; } std::unique_ptr<CloningFilter> make_cloning_filter(filter_types type, Core* cr, const std::string& delivery, const std::string& name) { auto dfilt = std::make_unique<CloningFilter>(cr, name); addOperations(dfilt.get(), type, cr); if (!delivery.empty()) { dfilt->addDeliveryEndpoint(delivery); } return dfilt; } std::unique_ptr<CloningFilter> make_cloning_filter(filter_types type, CoreApp& cr, const std::string& delivery, const std::string& name) { return make_cloning_filter(type, cr.getCopyofCorePointer().get(), delivery, name); } } // namespace helics
30.984733
100
0.625113
bmkelley
5932560724f312a4b6110af9eddff9da97581ad6
7,373
cpp
C++
src/Cello/control_stopping.cpp
TrevorMcCrary/enzo-e
abeb5d73d6ff210fc6cd675c25430cfb93c374ac
[ "BSD-3-Clause" ]
null
null
null
src/Cello/control_stopping.cpp
TrevorMcCrary/enzo-e
abeb5d73d6ff210fc6cd675c25430cfb93c374ac
[ "BSD-3-Clause" ]
null
null
null
src/Cello/control_stopping.cpp
TrevorMcCrary/enzo-e
abeb5d73d6ff210fc6cd675c25430cfb93c374ac
[ "BSD-3-Clause" ]
null
null
null
// See LICENSE_CELLO file for license and copyright information /// @file control_stopping.cpp /// @author James Bordner ([email protected]) /// @date 2013-04-26 /// @brief Charm-related functions associated with initialization /// @ingroup Control /// /// STOPPING /// /// Block::stopping() /// update_boundary_() /// compute dt /// compute stopping /// contribute( >>>>> Block::r_output() >>>>> ) #include "simulation.hpp" #include "mesh.hpp" #include "control.hpp" #include "charm_simulation.hpp" #include "charm_mesh.hpp" // #define DEBUG_STOPPING #ifdef DEBUG_STOPPING # define TRACE_STOPPING(A) \ CkPrintf ("%d %s:%d %s TRACE %s\n", \ CkMyPe(),__FILE__,__LINE__,name_.c_str(),A); \ fflush(stdout); #else # define TRACE_STOPPING(A) ; #endif //---------------------------------------------------------------------- void Block::stopping_enter_() { stopping_begin_(); } //---------------------------------------------------------------------- void Block::stopping_begin_() { TRACE_STOPPING("Block::stopping_begin_"); Simulation * simulation = cello::simulation(); simulation->set_phase(phase_stopping); int stopping_interval = simulation->config()->stopping_interval; bool stopping_reduce = stopping_interval ? ((cycle_ % stopping_interval) == 0) : false; if (stopping_reduce || dt_==0.0) { // Compute local dt Problem * problem = simulation->problem(); int index = 0; Method * method; double dt_block = std::numeric_limits<double>::max(); while ((method = problem->method(index++))) { dt_block = std::min(dt_block,method->timestep(this)); } // Reduce timestep to coincide with scheduled output if needed int index_output=0; while (Output * output = problem->output(index_output++)) { Schedule * schedule = output->schedule(); dt_block = schedule->update_timestep(time_,dt_block); } // Reduce timestep to not overshoot final time from stopping criteria Stopping * stopping = problem->stopping(); double time_stop = stopping->stop_time(); double time_curr = time_; dt_block = MIN (dt_block, (time_stop - time_curr)); // Evaluate local stopping criteria int stop_block = stopping->complete(cycle_,time_); // Reduce to find Block array minimum dt and stopping criteria double min_reduce[2]; min_reduce[0] = dt_block; min_reduce[1] = stop_block ? 1.0 : 0.0; CkCallback callback (CkIndex_Block::r_stopping_compute_timestep(NULL), thisProxy); #ifdef TRACE_CONTRIBUTE CkPrintf ("%s %s:%d DEBUG_CONTRIBUTE\n", name().c_str(),__FILE__,__LINE__); fflush(stdout); #endif contribute(2*sizeof(double), min_reduce, CkReduction::min_double, callback); } else { stopping_balance_(); } } //---------------------------------------------------------------------- void Block::r_stopping_compute_timestep(CkReductionMsg * msg) { performance_start_(perf_stopping); TRACE_STOPPING("Block::r_stopping_compute_timestep"); ++age_; double * min_reduce = (double * )msg->getData(); dt_ = min_reduce[0]; stop_ = min_reduce[1] == 1.0 ? true : false; delete msg; Simulation * simulation = cello::simulation(); dt_ *= Method::courant_global; set_dt (dt_); set_stop (stop_); simulation->set_dt(dt_); simulation->set_stop(stop_); #ifdef CONFIG_USE_PROJECTIONS bool was_off = (simulation->projections_tracing() == false); bool was_on = (simulation->projections_tracing() == true); Schedule * schedule_on = simulation->projections_schedule_on(); Schedule * schedule_off = simulation->projections_schedule_off(); bool turn_on = schedule_on ? schedule_on->write_this_cycle(cycle_,time_) : false; bool turn_off = schedule_off ? schedule_off->write_this_cycle(cycle_,time_) : false; static bool active = false; if (!active && turn_on) { active = true; simulation->monitor()->print ("Performance","turning projections logging ON\n"); simulation->set_projections_tracing(true); traceBegin(); } else if (active && turn_off) { active = false; simulation->monitor()->print ("Performance","turning projections logging OFF\n"); simulation->set_projections_tracing(false); traceEnd(); } #endif stopping_balance_(); performance_stop_(perf_stopping); } //---------------------------------------------------------------------- void Block::stopping_balance_() { TRACE_STOPPING("Block::stopping_balance_"); Schedule * schedule = cello::simulation()->schedule_balance(); bool do_balance = (schedule && schedule->write_this_cycle(cycle_,time_)); if (do_balance) { if (index_.is_root()) cello::monitor()->print ("Balance","starting load balance step"); control_sync_quiescence (CkIndex_Main::p_stopping_balance()); } else { stopping_exit_(); } } //---------------------------------------------------------------------- void Block::p_stopping_balance() { performance_start_(perf_stopping); TRACE_STOPPING("Block::p_stopping_balance"); cello::simulation()->set_phase (phase_balance); // Monitor * monitor = simulation()->monitor(); // int mode_saved = monitor->mode(); // monitor->set_mode(monitor_mode_all); // if (index().is_root()) monitor->print ("Balance","BEGIN"); // monitor->set_mode(mode_saved); AtSync(); performance_stop_(perf_stopping); } //---------------------------------------------------------------------- void Block::ResumeFromSync() { // Monitor * monitor = simulation()->monitor(); // int mode_saved = monitor->mode(); // monitor->set_mode(monitor_mode_all); // if (index().is_root()) monitor->print ("Balance","END"); // monitor->set_mode(mode_saved); TRACE_STOPPING("Block::balance_exit"); if (index_.is_root()) { thisProxy.doneInserting(); } stopping_exit_(); } //---------------------------------------------------------------------- void Block::exit_() { TRACE_STOPPING("Block::exit_"); const int in = cello::index_static(); if (index().is_root()) { if (DataMsg::counter[in] != 0) { CkPrintf ("%d Block::exit_() DataMsg::counter = %ld != 0\n", CkMyPe(),DataMsg::counter[in]); CkPrintf ("%d Block::exit_() ParticleData::counter = %ld != 0\n", CkMyPe(),ParticleData::counter[in]); } if (FieldFace::counter[in] != 0) { CkPrintf ("%d Block::exit_() FieldFace::counter = %ld != 0\n", CkMyPe(),FieldFace::counter[in]); } if (MsgCoarsen::counter[in] != 0) { CkPrintf ("%d Block::exit_() MsgCoarsen::counter = %ld != 0\n", CkMyPe(),MsgCoarsen::counter[in]); } if (MsgInitial::counter[in] != 0) { CkPrintf ("%d Block::exit_() MsgInitial::counter = %ld != 0\n", CkMyPe(),MsgInitial::counter[in]); } if (MsgOutput::counter[in] != 0) { CkPrintf ("%d Block::exit_() MsgOutput::counter = %ld != 0\n", CkMyPe(),MsgOutput::counter[in]); } if (MsgRefine::counter[in] != 0) { CkPrintf ("%d Block::exit_() MsgRefine::counter = %ld != 0\n", CkMyPe(),MsgRefine::counter[in]); } if (MsgRefresh::counter[in] != 0) { CkPrintf ("%d Block::exit_() MsgRefresh::counter = %ld != 0\n", CkMyPe(),MsgRefresh::counter[in]); } } if (index_.is_root()) { proxy_main.p_exit(1); } }
25.77972
86
0.607351
TrevorMcCrary
593354c5453f53ade53e9f4dc05587e3b13ff53a
2,178
cc
C++
src/common/chemistry/base_chemistry/ion_exchange_site.cc
ajkhattak/amanzi
fed8cae6af3f9dfa5984381d34b98401c3b47655
[ "RSA-MD" ]
1
2021-02-23T18:34:47.000Z
2021-02-23T18:34:47.000Z
src/common/chemistry/base_chemistry/ion_exchange_site.cc
ajkhattak/amanzi
fed8cae6af3f9dfa5984381d34b98401c3b47655
[ "RSA-MD" ]
null
null
null
src/common/chemistry/base_chemistry/ion_exchange_site.cc
ajkhattak/amanzi
fed8cae6af3f9dfa5984381d34b98401c3b47655
[ "RSA-MD" ]
null
null
null
/* Chemistry Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL. Amanzi is released under the three-clause BSD License. The terms of use and "as is" disclaimer for this license are provided in the top-level COPYRIGHT file. Author: Ben Andre Base class for ion exchange sites (e.g. X- in standard geochemistry notation) */ #include "ion_exchange_site.hh" #include <cmath> #include <iostream> #include <sstream> #include <iomanip> #include "VerboseObject.hh" namespace Amanzi { namespace AmanziChemistry { IonExchangeSite::IonExchangeSite() : name_(), cation_exchange_capacity_(0.0), mineral_name_("bulk"), charge_(0.0) { } IonExchangeSite::IonExchangeSite(const IonxSiteName in_name) : name_(in_name), cation_exchange_capacity_(0.0), mineral_name_("bulk"), charge_(0.0) { } IonExchangeSite::IonExchangeSite(const IonxSiteName name, const double charge, const std::string location) : name_(name), cation_exchange_capacity_(0.0), mineral_name_(location), charge_(charge) { } void IonExchangeSite::Display(const Teuchos::Ptr<VerboseObject> vo) const { std::stringstream message; message << std::setw(15) << get_name() << std::setw(20) << get_mineral_name() << std::setw(10) << std::fixed << get_charge() << std::setw(10) << std::scientific << get_cation_exchange_capacity() << std::fixed << std::endl; vo->Write(Teuchos::VERB_HIGH, message.str()); } void IonExchangeSite::DisplayResultsHeader(const Teuchos::Ptr<VerboseObject> vo) const { std::stringstream message; message << std::setw(15) << "Name" << std::setw(15) << "CEC" << std::endl; vo->Write(Teuchos::VERB_HIGH, message.str()); } void IonExchangeSite::DisplayResults(const Teuchos::Ptr<VerboseObject> vo) const { std::stringstream message; message << std::setw(15) << get_name() << std::setw(15) << get_cation_exchange_capacity() << std::endl; vo->Write(Teuchos::VERB_HIGH, message.str()); } } // namespace AmanziChemistry } // namespace Amanzi
27.225
88
0.653352
ajkhattak
5934cba98b73e262663e0266c928b8eeb4c52487
1,714
hpp
C++
include/RadonFramework/System/Hardware/ProcessorFeatures.hpp
tak2004/RadonFramework
e916627a54a80fac93778d5010c50c09b112259b
[ "Apache-2.0" ]
3
2015-09-15T06:57:50.000Z
2021-03-16T19:05:02.000Z
include/RadonFramework/System/Hardware/ProcessorFeatures.hpp
tak2004/RadonFramework
e916627a54a80fac93778d5010c50c09b112259b
[ "Apache-2.0" ]
2
2015-09-26T12:41:10.000Z
2015-12-08T08:41:37.000Z
include/RadonFramework/System/Hardware/ProcessorFeatures.hpp
tak2004/RadonFramework
e916627a54a80fac93778d5010c50c09b112259b
[ "Apache-2.0" ]
1
2015-07-09T02:56:34.000Z
2015-07-09T02:56:34.000Z
#ifndef RF_SYSTEM_HARDWARE_PROCESSORFEATURES_HPP #define RF_SYSTEM_HARDWARE_PROCESSORFEATURES_HPP #if _MSC_VER > 1000 #pragma once #endif #include <RadonFramework/Collections/BitSet.hpp> namespace RadonFramework::System::Hardware::ProcessorFeatures { enum Type { AES, // Advanced Encryption Standard instruction set AVX, // Advanced Vector Extensions instruction set CLFLUSH, // Prefetch and flush instructions CMOV, // conditional move instruction CX16, // compare and exchange 16 bytes instruction CX8, // compare and exchange 8 bytes instruction FMA, // FMA instruction set FMOV, // floating point conditional move instruction FPU, // Floating point unit HTT, // hyper threading MMX, // MMX instruction set MOVBE, // move big endian instruction PCLMUL, // carry-less multiplication instruction POPCNT, // population count instruction SSE, // SSE1 instruction set SSE2, // SSE2 instruction set SSE3, // SSE3 instruction set SSSE3, // SSE4 instruction set SSE4_1, // SSE4.1 instruction set SSE4_2, // SSE4.2 instruction set SSE4A, // SSE4a instruction set TSC, // RDTSC instruction supported SHA1, // sha128 hash instruction set SHA2, // sha256 hash instruction set AVX512, // AVX512 instruction set FMA4, // FMA4 instruction set XOP, // XOP instruction set NEON, // NEON instruction set(ARM only) CRC32, // CRC32 instructions set(ARM only) MAX // number of extensions(internal use) }; } namespace RadonFramework::System::Hardware { class ProcessorFeatureMask: public Collections::BitSet<ProcessorFeatures::MAX> { }; } #endif // RF_SYSTEM_HARDWARE_PROCESSORFEATURES_HPP
31.163636
78
0.717036
tak2004
5936b8427d03384772e56818fe99645f19183040
9,210
cc
C++
libview/reparenter.cc
libview/libview
3d9b8bd63589e8bdc43638331bf6061127690cd3
[ "MIT" ]
2
2020-10-22T22:02:52.000Z
2021-12-13T18:07:16.000Z
libview/reparenter.cc
libview/libview
3d9b8bd63589e8bdc43638331bf6061127690cd3
[ "MIT" ]
null
null
null
libview/reparenter.cc
libview/libview
3d9b8bd63589e8bdc43638331bf6061127690cd3
[ "MIT" ]
null
null
null
/* ************************************************************************* * Copyright (c) 2005 VMware, Inc. * * 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. * *************************************************************************/ /* * reparenter.cc -- * * Implements the Reparenter class. * * The problem * ----------- * Unlike gtk_container_remove() + gtk_container_add(), * gtk_widget_reparent() tries to avoid unrealizing the widget. It is * important when the widget is a VmMks, because unrealizing it breaks the * connection to the MKS thread. * * Unfortunately, gtk_widget_reparent(widget, new parent) is poorly * implemented (see gtk_widget_reparent_subwindows()): * o If the widget has its own GDK window, then it is reparented to the GDK * window of the new parent. * o If the widget does not have its own GDK window, then its children GDK * windows are reparented to the GDK window of the new parent. * The catch is: the GDK windows _are also positionned at (0, 0)_ inside the * GDK window of the new parent. * * This implies that the user can visually see the GDK windows jump to the * wrong place. * * Normally this visual effect is just temporary (i.e. to the user it looks * like flicker) because the new parent imposes a different size to the * widget, so quickly after that, the size allocation code asynchronously * kicks in and properly repositions the GDK windows. * * Unfortunately, there is no guarantee the size allocation code will kick * in: the new parent could very well allocate the same size to the * widget as the old parent. * * In fact, this is precisely what happens when you rename a team in the * Favorites list, while watching the team's MultiMks: the widget is * synchronously reparented to a new parent, then back to its old parent. * Consequently, the final parent allocates exactly the same size as the * original parent, so the size allocation code does not kick in, and the GDK * windows stay at the wrong place! * * The workaround * -------------- * 1) Instead of having to deal with the many children GDK window of the * widget, we simplify the problem by restricting the client code to only * pass us widgets that have their own GDK window. * * 2) Let's try to avoid the jump. Ideally, we want to hide the GDK window * while it is at the wrong place, then let the allocation code give it its * proper size and position, then show it again. * * The problem is that for the size of the widget to be allocated, it needs * to be visible, and to make it visible we have to use show(), but show() * will show the window at the wrong position, even if only for a very short * time. * * So the trick is to lie to GTK: we let it think that the window is * visible, but in secret we ask GDK to hide it. * * 3) Forcefully mark all the widget's GTK children as needing a size * re-allocation. * * --hpreg */ #include <libview/reparenter.hh> namespace view { /* *----------------------------------------------------------------------------- * * view::Reparenter::Reparenter -- * * Constructor of a Reparenter. * * Results: * None * * Side effects: * None * *----------------------------------------------------------------------------- */ Reparenter::Reparenter(Gtk::Widget &widget) // IN : mWidget(widget), mTrackable(NULL) { } /* *----------------------------------------------------------------------------- * * view::Reparenter::~Reparenter -- * * Destructor of a Reparenter. * * Results: * None * * Side effects: * None * *----------------------------------------------------------------------------- */ Reparenter::~Reparenter() { delete mTrackable; } /* *----------------------------------------------------------------------------- * * view::Reparenter::OnEvent -- * * Called when a event we are waiting on occurs. * * Results: * None * * Side effects: * None * *----------------------------------------------------------------------------- */ void Reparenter::OnEvent(void) { if (mCnx || mTrackable) { /* Continue to wait until both events have occured. */ return; } /* Time to complete workaround 2. */ if (mWasMapped && !mWidget.has_no_window() && mWidget.is_mapped()) { g_assert(mWidget.is_realized()); /* * Now that the widget has been allocated, its GDK window has been * properly repositionned, and we do not need to hide it anymore. Show * it without modifying its stacking order. */ mWidget.get_window()->show_unraised(); } } /* *----------------------------------------------------------------------------- * * view::Reparenter::OnWidgetSizeAllocate -- * * "size_allocate" signal handler for a Reparenter's widget. * * Results: * None * * Side effects: * None * *----------------------------------------------------------------------------- */ void Reparenter::OnWidgetSizeAllocate(void) { mCnx.disconnect(); OnEvent(); } /* *----------------------------------------------------------------------------- * * view::Reparenter::OnSlotCalled -- * * Called when the slot returned by the last Reparent() call is invoked. * * Results: * None * * Side effects: * None * *----------------------------------------------------------------------------- */ void Reparenter::OnSlotCalled(sigc::trackable &trackable) // IN { g_assert(&trackable == mTrackable); delete mTrackable; mTrackable = NULL; OnEvent(); } /* *----------------------------------------------------------------------------- * * view::Reparenter::RecurseQueueResize -- * * Recursively call queue_resize() on 'widget' and its children (if any). * * Results: * None * * Side effects: * None * *----------------------------------------------------------------------------- */ void Reparenter::RecurseQueueResize(Gtk::Widget &widget) // IN { widget.queue_resize(); Gtk::Container *container = dynamic_cast<Gtk::Container *>(&widget); if (container) { container->foreach(sigc::ptr_fun(RecurseQueueResize)); } } /* *----------------------------------------------------------------------------- * * view::Reparenter::Reparent -- * * Reparent a Reparenter's widget in 'newParent'. * * Results: * A slot that client code must invoke when it is ready for the GDK window * to be shown again. * * Side effects: * None * *----------------------------------------------------------------------------- */ sigc::slot<void> Reparenter::Reparent(Gtk::Container &newParent) // IN { /* * Workaround 1: We check that property every time this method is * called instead of once in the constructor, because that property can * change over time (see gtk_event_box_set_visible_window() for example). */ g_assert(!mWidget.has_no_window()); mCnx.disconnect(); delete mTrackable; mTrackable = NULL; if (mWidget.is_mapped()) { g_assert(mWidget.is_realized()); /* * Workaround 2: It is OK not to tell GTK (i.e. not to change the * result of is_mapped()), because unmapping a GDK window is an * idempotent operation. */ mWidget.get_window()->hide(); mWidget.get_display()->sync(); } mCnx = mWidget.signal_size_allocate().connect( sigc::hide(sigc::mem_fun(this, &Reparenter::OnWidgetSizeAllocate))); mTrackable = new sigc::trackable(); mWidget.reparent(newParent); /* * Must come after reparent(), because reparent() can modify the result of * is_mapped(). */ mWasMapped = mWidget.is_mapped(); /* Workaround 3 */ RecurseQueueResize(mWidget); /* * We purposedly bind a reference to the sigc::trackable object to the slot, * so we can invalidate the slot (i.e. make sure we won't be called back) at * any time by destroying the object. */ return sigc::bind(sigc::mem_fun(this, &Reparenter::OnSlotCalled), sigc::ref(*mTrackable)); } } /* namespace view */
28.079268
79
0.577742
libview
593b3a4f9051ebca909b9cf72a4578b31374eeba
2,770
cpp
C++
editor/utils/assets.cpp
gan74/yave
c71b5dd7c05b1aa39c59a8071fc243c1472e71d1
[ "MIT" ]
null
null
null
editor/utils/assets.cpp
gan74/yave
c71b5dd7c05b1aa39c59a8071fc243c1472e71d1
[ "MIT" ]
null
null
null
editor/utils/assets.cpp
gan74/yave
c71b5dd7c05b1aa39c59a8071fc243c1472e71d1
[ "MIT" ]
null
null
null
/******************************* Copyright (c) 2016-2022 Grégoire Angerand 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 "assets.h" #include <y/utils/format.h> #include <external/imgui/yave_imgui.h> namespace editor { namespace detail { std::array<std::string_view, 2> asset_type_names(AssetType type) { switch(type) { case AssetType::Mesh: return {"Mesh", "mesh"}; case AssetType::Image: return {"Image", "image"}; case AssetType::Animation: return {"Animation", "animation"}; case AssetType::Font: return {"Font", "font"}; case AssetType::Scene: return {"Scene", "scene"}; case AssetType::Material: return {"Material", "material"}; case AssetType::Prefab: return {"Prefab", "prefab"}; default: break; } return {"Asset", "asset"}; } } std::string_view asset_type_name(AssetType type, bool plural, bool lowercase) { std::string_view name = detail::asset_type_names(type)[lowercase]; if(plural) { return fmt("%%", name, name[name.size() - 1] == 'h' ? "es" : "s"); } return name; } std::string_view asset_type_icon(AssetType type) { switch(type) { case AssetType::Image: return ICON_FA_IMAGE; case AssetType::Mesh: return ICON_FA_CUBE; case AssetType::Material: return ICON_FA_BRUSH; case AssetType::Scene: case AssetType::Prefab: return ICON_FA_DATABASE; default: return ICON_FA_QUESTION; } return ICON_FA_QUESTION; } }
29.784946
80
0.62852
gan74
593b872a7cfd628d62724c84aa2511b3fd841687
52
cpp
C++
src/kernel/dev/Mouse.cpp
jameskingstonclarke/arctic
6fec04809d6175689477abfe21416f33e63cb177
[ "MIT" ]
1
2021-02-01T19:28:02.000Z
2021-02-01T19:28:02.000Z
src/kernel/dev/Mouse.cpp
jameskingstonclarke/arctic
6fec04809d6175689477abfe21416f33e63cb177
[ "MIT" ]
9
2021-02-07T15:46:11.000Z
2021-02-18T08:25:42.000Z
src/kernel/dev/Mouse.cpp
jameskingstonclarke/arctic
6fec04809d6175689477abfe21416f33e63cb177
[ "MIT" ]
null
null
null
#include "Mouse.h" namespace Dev::Mouse{ }
10.4
22
0.576923
jameskingstonclarke
593bd25ac5a25fecf5736831b3397f22b9c6b303
441
hpp
C++
core/test/tu-PRNG.hpp
iboB/word-grid
d1029323d5c51499298f3ed19390928371cb70a6
[ "MIT" ]
2
2019-07-01T00:10:43.000Z
2019-09-18T19:37:38.000Z
core/test/tu-PRNG.hpp
iboB/word-grid
d1029323d5c51499298f3ed19390928371cb70a6
[ "MIT" ]
null
null
null
core/test/tu-PRNG.hpp
iboB/word-grid
d1029323d5c51499298f3ed19390928371cb70a6
[ "MIT" ]
2
2019-07-17T17:44:16.000Z
2020-12-21T07:56:11.000Z
// word-grid // Copyright (c) 2019-2021 Borislav Stanimirov // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #pragma once #include <core/PRNG.hpp> #include <iostream> namespace test { core::PRNG makePrng() { auto seed = core::PRNG::randomDevice(); std::cout << "Creating PRNG with seed: " << seed << '\n'; return core::PRNG(seed); } }
18.375
61
0.673469
iboB
86ca97038a9f2204c4a6c18c843ccc41cb98f527
1,967
cpp
C++
modules/task_1/butescu_v_vector_average/butescu_v_vector_average.cpp
Gurgen-Arm/pp_2021_autumn
ad549e49d765612c4544f34b04c9eb9432ac0dc7
[ "BSD-3-Clause" ]
null
null
null
modules/task_1/butescu_v_vector_average/butescu_v_vector_average.cpp
Gurgen-Arm/pp_2021_autumn
ad549e49d765612c4544f34b04c9eb9432ac0dc7
[ "BSD-3-Clause" ]
null
null
null
modules/task_1/butescu_v_vector_average/butescu_v_vector_average.cpp
Gurgen-Arm/pp_2021_autumn
ad549e49d765612c4544f34b04c9eb9432ac0dc7
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2021 Butescu Vladimir #include <mpi.h> #include <vector> #include <random> #include <algorithm> #include"./butescu_v_vector_average.h" std::vector<int> getRandomPositiveVector(int size) { std::random_device rd; std::mt19937 gen(rd()); std::uniform_int_distribution<> dist(1, 100); if (size < 0) { size = 0; } std::vector<int> vec(size); for (int i = 0; i < size; i++) { vec[i] = dist(gen); } return vec; } int getParallelAverage(std::vector<int> parall_vec, int size) { int ProcRank, ProcNum, sum_all; double Paverage; if (size <= 0) { return 0; } MPI_Comm_size(MPI_COMM_WORLD, &ProcNum); MPI_Comm_rank(MPI_COMM_WORLD, &ProcRank); int real_size = size; int add = ProcNum - size % ProcNum; for (int i = 0; i < add; i++) { parall_vec.push_back(0); size++; } int partSize = size / ProcNum; if (ProcRank == 0) { for (int i = 1; i < ProcNum; i++) { MPI_Send(parall_vec.data() + i * partSize, partSize, MPI_INT, i, 0, MPI_COMM_WORLD); } } std::vector<int> local_vec(partSize); if (ProcRank == 0) { local_vec = std::vector<int>(parall_vec.begin(), parall_vec.begin() + partSize); } else { MPI_Status status; MPI_Recv(local_vec.data(), partSize, MPI_INT, 0, 0, MPI_COMM_WORLD, &status); } int sum = sum_all = 0; for (int i = 0; i < partSize; i++) { sum += local_vec[i]; } MPI_Reduce(&sum, &sum_all, 1, MPI_INT, MPI_SUM, 0, MPI_COMM_WORLD); Paverage = static_cast<double>(sum_all) / real_size; return Paverage; } int getSequentialAverage(std::vector<int> sequent_vec) { int size = sequent_vec.size(), sum_all = 0; double Saverage = 0; if (size <= 0) { return 0; } for (int i = 0; i < size; i++) { sum_all += sequent_vec[i]; } Saverage = static_cast<double>(sum_all) / size; return Saverage; }
24.898734
96
0.591764
Gurgen-Arm
86cac429332810b3c115d63bf553ce073b22505e
4,507
cc
C++
src/CollectionIdentifier.cc
sschaal2/ign-fuel-tools
c0ec7e960fa87ba90690774bebd478acaaaff7bc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/CollectionIdentifier.cc
sschaal2/ign-fuel-tools
c0ec7e960fa87ba90690774bebd478acaaaff7bc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/CollectionIdentifier.cc
sschaal2/ign-fuel-tools
c0ec7e960fa87ba90690774bebd478acaaaff7bc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2020 Open Source Robotics Foundation * * 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 <sstream> #include <string> #include <vector> #include <ignition/common/Filesystem.hh> #include "ignition/fuel_tools/ClientConfig.hh" #include "ignition/fuel_tools/CollectionIdentifier.hh" using namespace ignition; using namespace fuel_tools; class ignition::fuel_tools::CollectionIdentifierPrivate { /// \brief a name given to this collection by a user public: std::string name; /// \brief owner who this collection is attributed to public: std::string owner; /// \brief Server of this collection public: ServerConfig server; }; ////////////////////////////////////////////////// CollectionIdentifier::CollectionIdentifier() : dataPtr(std::make_unique<CollectionIdentifierPrivate>()) { } ////////////////////////////////////////////////// CollectionIdentifier::CollectionIdentifier(const CollectionIdentifier &_orig) : dataPtr(std::make_unique<CollectionIdentifierPrivate>(*_orig.dataPtr)) { } ////////////////////////////////////////////////// CollectionIdentifier &CollectionIdentifier::operator=( const CollectionIdentifier &_orig) { this->dataPtr = std::make_unique<CollectionIdentifierPrivate>(*_orig.dataPtr); return *this; } ////////////////////////////////////////////////// bool CollectionIdentifier::operator==(const CollectionIdentifier &_rhs) const { return this->UniqueName() == _rhs.UniqueName(); } ////////////////////////////////////////////////// CollectionIdentifier::~CollectionIdentifier() = default; ////////////////////////////////////////////////// std::string CollectionIdentifier::UniqueName() const { return common::joinPaths(this->dataPtr->server.Url().Str(), this->dataPtr->owner, "collections", this->dataPtr->name); } ////////////////////////////////////////////////// std::string CollectionIdentifier::Name() const { return this->dataPtr->name; } ////////////////////////////////////////////////// bool CollectionIdentifier::SetName(const std::string &_name) { this->dataPtr->name = _name; return true; } ////////////////////////////////////////////////// std::string CollectionIdentifier::Owner() const { return this->dataPtr->owner; } ////////////////////////////////////////////////// bool CollectionIdentifier::SetOwner(const std::string &_name) { this->dataPtr->owner = _name; return true; } ////////////////////////////////////////////////// bool CollectionIdentifier::SetServer(const ServerConfig &_server) { bool success = _server.Url().Valid(); if (success) this->dataPtr->server = _server; return success; } ////////////////////////////////////////////////// ServerConfig &CollectionIdentifier::Server() const { return this->dataPtr->server; } ////////////////////////////////////////////////// std::string CollectionIdentifier::AsString(const std::string &_prefix) const { std::stringstream out; out << _prefix << "Name: " << this->Name() << std::endl << _prefix << "Owner: " << this->Owner() << std::endl << _prefix << "Unique name: " << this->UniqueName() << std::endl << _prefix << "Server:" << std::endl << this->Server().AsString(_prefix + " "); return out.str(); } ////////////////////////////////////////////////// std::string CollectionIdentifier::AsPrettyString( const std::string &_prefix) const { std::string prop = "\033[96m\033[1m"; std::string value = "\033[37m"; std::string reset = "\033[0m"; std::stringstream out; if (!this->Name().empty()) { out << _prefix << prop << "Name: " << reset << value << this->Name() << reset << std::endl; } if (!this->Owner().empty()) { out << _prefix << prop << "Owner: " << reset << value << this->Owner() << reset << std::endl; } out << _prefix << prop << "Server:" << reset << std::endl << this->Server().AsPrettyString(_prefix + " "); return out.str(); }
28.16875
80
0.575327
sschaal2
86cff7f73bc393ed074e048e25d8fe6bad06cbbd
10,748
hh
C++
mcg/src/external/BSR/include/mlearning/clustering/clusterers/graph/tree_clusterer.hh
mouthwater/rgb
3fafca24ecc133910923182581a2133b8568bf77
[ "BSD-2-Clause" ]
392
2015-01-14T13:19:40.000Z
2022-02-12T08:47:33.000Z
mcg/src/external/BSR/include/mlearning/clustering/clusterers/graph/tree_clusterer.hh
mouthwater/rgb
3fafca24ecc133910923182581a2133b8568bf77
[ "BSD-2-Clause" ]
45
2015-02-03T12:16:10.000Z
2022-03-07T00:25:09.000Z
mcg/src/external/BSR/include/mlearning/clustering/clusterers/graph/tree_clusterer.hh
mouthwater/rgb
3fafca24ecc133910923182581a2133b8568bf77
[ "BSD-2-Clause" ]
168
2015-01-05T02:29:53.000Z
2022-02-22T04:32:04.000Z
/* * Clusterer on undirected graphs that produces an agglomeration tree. * * Graph vertices are initialized to each be a single element tree. Each * step of the agglomeration merges the vertices at the ends of the highest * priority edge and updates the costs of the edges connected to the merged * vertex. The merged vertex is a tree containing the original vertices as * subtrees. */ #ifndef MLEARNING__CLUSTERING__CLUSTERERS__GRAPH__TREE_CLUSTERER_HH #define MLEARNING__CLUSTERING__CLUSTERERS__GRAPH__TREE_CLUSTERER_HH #include "collections/abstract/collection.hh" #include "collections/array_list.hh" #include "collections/list.hh" #include "collections/pointers/auto_collection.hh" #include "functors/comparable_functors.hh" #include "lang/array.hh" #include "lang/iterators/iterator.hh" #include "lang/pointers/auto_ptr.hh" #include "mlearning/clustering/clusterers/abstract/clusterer.hh" #include "mlearning/clustering/clusterers/graph/basic_clusterer.hh" namespace mlearning { namespace clustering { namespace clusterers { namespace graph { /* * Imports. */ using collections::abstract::collection; using collections::array_list; using collections::list; using collections::pointers::auto_collection; using functors::comparable_functor; using functors::compare_functors; using lang::array; using lang::iterators::iterator; using lang::pointers::auto_ptr; using mlearning::clustering::clusterers::abstract::clusterer; /* * Clusterer on undirected graphs that produces an agglomeration tree. * * T is the type of data contained in each node of the tree. * E is the edge type for the graph. * * Note that T must be copy-constructible. * * Vertices in the graph are binary trees whos nodes are elements of type T. */ template <typename T, typename E> class tree_clusterer : public clusterer<T> { public: /* * Agglomeration tree. */ class tree { public: /* * Constructors. */ explicit tree(auto_ptr<T> t) : data(t), left(), right() { } explicit tree(auto_ptr<T> t, auto_ptr<tree> l, auto_ptr<tree> r) : data(t), left(l), right(r) { } /* * Copy constructor. * Transfer ownership of tree's elements to the copy. */ explicit tree(const tree& t) : data(t.data), left(t.left), right(t.right) { } /* * Destructor. */ ~tree() { /* do nothing */ } /* * Tree data. */ mutable auto_ptr<T> data; /* data */ mutable auto_ptr<tree> left; /* left subtree */ mutable auto_ptr<tree> right; /* right subtree */ }; /* * Abstract base class for agglomeration functionality on trees. */ class agglomerator { public: /* * Destructor. */ virtual ~agglomerator() { } /* * Return whether the vertices at the end of the edge can be merged. * Agglomeration stops when the highest priority edge is unmergeable. * * Default to always allowing merges. In this case, the tree clusterer * returns a single tree rather than a forest of trees. */ virtual bool is_mergeable(const E&) const { return true; } /* * Merge two vertices and return the data for the merged vertex. */ virtual auto_ptr<T> merge(const tree&, const tree&) const = 0; /* * Compute the edge between the two vertices in the graph. */ virtual auto_ptr<E> update(const tree&, const tree&) const = 0; }; /* * Constructor. * Specify the agglomerator to use for merge and update operations. * Optionally specify the comparison functor for prioritizing edges. */ explicit tree_clusterer( const agglomerator&, const comparable_functor<E>& = compare_functors<E>::f_compare() ); /* * Copy constructor. * Create a clusterer that uses the same agglomerator and priority functor. */ tree_clusterer(const tree_clusterer<T,E>&); /* * Destructor. */ virtual ~tree_clusterer(); /* * Clustering. * Assume a fully connected undirected graph. * Return the cluster assignments. */ virtual array<unsigned long> cluster( const collection<T>& /* items to cluster */ ) const; /* * Clustering. * Assume a fully connected undirected graph. * Return both the cluster assignments and the clustering result. */ virtual array<unsigned long> cluster( const collection<T>&, /* items to cluster */ auto_collection< tree, array_list<tree> >& /* clustering result */ ) const; /* * Clustering. * Specify the edges in the undirected graph. * Return the cluster assignments. */ virtual array<unsigned long> cluster( const collection<T>&, /* items to cluster */ const collection< array<unsigned long> >& /* edges in graph */ ) const; /* * Clustering. * Specify the edges in the undirected graph. * Return both the cluster assignments and the clustering result. */ virtual array<unsigned long> cluster( const collection<T>&, /* items to cluster */ const collection< array<unsigned long> >&, /* edges in graph */ auto_collection< tree, array_list<tree> >& /* clustering result */ ) const; protected: /* * Agglomerator which translates a tree agglomerator into one * that can be used with the basic graph clustering algorithm. */ class basic_agglomerator : public basic_clusterer<tree,E>::agglomerator { public: /* * Constructor. */ explicit basic_agglomerator(const agglomerator& agglm) : _agglm(agglm) { } /* * Copy constructor. */ basic_agglomerator(const basic_agglomerator& agglm) : _agglm(agglm._agglm) { } /* * Return whether the vertices at the end of the edge can be merged. * Agglomeration stops when the highest priority edge is unmergeable. */ bool is_mergeable(const E& e) const { return _agglm.is_mergeable(e); } /* * Merge two vertices and return the merged vertex. */ auto_ptr<tree> merge(const tree& t0, const tree& t1) const { /* compute data for merged node */ auto_ptr<T> data = _agglm.merge(t0, t1); /* construct tree that owns t0, t1 subtrees */ auto_ptr<tree> t0_copy(new tree(t0)); auto_ptr<tree> t1_copy(new tree(t1)); auto_ptr<tree> t(new tree(data, t0_copy, t1_copy)); return t; } /* * Compute the edge between the two vertices in the graph. */ auto_ptr<E> update(const tree& t0, const tree& t1) const { return _agglm.update(t0, t1); } protected: const agglomerator& _agglm; /* agglomerator on trees */ }; /* * Helper function. * Return a collection of single element trees given a collection of * elements. */ static auto_collection<tree> make_trees(const collection<T>&); /* * Tree clusterer data. */ const basic_agglomerator _agglm; /* agglomerator for basic clusterer */ const comparable_functor<E>& _f; /* edge priority functor */ const basic_clusterer<tree,E> _c; /* basic graph clusterer */ }; /*************************************************************************** * Tree clusterer implementation. ***************************************************************************/ /* * Constructor. * Specify the agglomerator to use for merge and update operations. * Specify the comparison functor for prioritizing edges. */ template <typename T, typename E> tree_clusterer<T,E>::tree_clusterer( const agglomerator& agglm, const comparable_functor<E>& f) : _agglm(agglm), _f(f), _c(_agglm, _f) { } /* * Copy constructor. * Create a clusterer that uses the same agglomerator and priority functor. */ template <typename T, typename E> tree_clusterer<T,E>::tree_clusterer(const tree_clusterer<T,E>& c) : _agglm(c._agglm), _f(c._f), _c(_agglm, _f) { } /* * Destructor. */ template <typename T, typename E> tree_clusterer<T,E>::~tree_clusterer() { /* do nothing */ } /* * Clustering. * Assume a fully connected undirected graph. * Return the cluster assignments. */ template <typename T, typename E> array<unsigned long> tree_clusterer<T,E>::cluster( const collection<T>& items) const { auto_collection<tree> trees = tree_clusterer<T,E>::make_trees(items); return _c.cluster(*trees); } /* * Clustering. * Assume a fully connected undirected graph. * Return both the cluster assignments and the clustering result. */ template <typename T, typename E> array<unsigned long> tree_clusterer<T,E>::cluster( const collection<T>& items, auto_collection< tree, array_list<tree> >& vertices) const { auto_collection<tree> trees = tree_clusterer<T,E>::make_trees(items); return _c.cluster(*trees, vertices); } /* * Clustering. * Specify the edges in the undirected graph. * Return the cluster assignments. */ template <typename T, typename E> array<unsigned long> tree_clusterer<T,E>::cluster( const collection<T>& items, const collection< array<unsigned long> >& edges) const { auto_collection<tree> trees = tree_clusterer<T,E>::make_trees(items); return _c.cluster(*trees, edges); } /* * Clustering. * Specify the edges in the undirected graph. * Return both the cluster assignments and the clustering result. */ template <typename T, typename E> array<unsigned long> tree_clusterer<T,E>::cluster( const collection<T>& items, const collection< array<unsigned long> >& edges, auto_collection< tree, array_list<tree> >& vertices) const { auto_collection<tree> trees = tree_clusterer<T,E>::make_trees(items); return _c.cluster(*trees, edges, vertices); } /* * Helper function. * Return a collection of single element trees given a collection of * elements. */ template <typename T, typename E> auto_collection<typename tree_clusterer<T,E>::tree> tree_clusterer<T,E>::make_trees(const collection<T>& items) { auto_collection<tree> trees(new list<tree>); for (auto_ptr< iterator<T> > i = items.iter_create(); i->has_next(); ) { T& item = i->next(); auto_ptr<T> item_copy(new T(item)); auto_ptr<tree> t(new tree(item_copy)); trees->add(*t); t.release(); } return trees; } } /* namespace graph */ } /* namesapce clusterers */ } /* namespace clustering */ } /* namespace mlearning */ #endif
29.206522
79
0.640026
mouthwater
86d0ee63a3f8f9afd860dca3becca6d1988d40d4
4,217
cpp
C++
UVa/UVA - 116/Wrong answer (3).cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
UVa/UVA - 116/Wrong answer (3).cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
UVa/UVA - 116/Wrong answer (3).cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729 created: 2017-08-07 23:11:59 * solution_verdict: Wrong answer language: C++ * run_time: memory_used: * problem: https://vjudge.net/problem/UVA-116 ****************************************************************************************/ #include<bits/stdc++.h> using namespace std; long long int r,c,i,j,grid[15][115],dp[15][115]; vector<long long int>ans; long long int fx(long long int row,long long int col) { if(col==c+1)return 0; if(dp[row][col]!=-1)return dp[row][col]; long long int p1,p2,p3; if(row==1)p1=grid[row][col]+fx(r,col+1); else p1=grid[row][col]+fx(row-1,col+1); p2=grid[row][col]+fx(row,col+1); if(row==r)p3=grid[row][col]+fx(1,col+1); else p3=grid[row][col]+fx(row+1,col+1); return dp[row][col]=min(p1,min(p2,p3)); } int main() { ofstream cout("out.txt"); while(cin>>r>>c) { for(i=1; i<=r; i++) { for(j=1; j<=c; j++) { cin>>grid[i][j]; } } long long int ck=99999999; long long int x,z; if(c==1) { for(i=1; i<=r; i++) { if(grid[i][1]<ck) { ck=grid[i][1]; x=i; } } cout<<x<<endl; cout<<ck<<endl; continue; } memset(dp,-1,sizeof(dp)); long long int mn=99999999999999; for(i=1; i<=r; i++) { mn=min(mn,fx(i,1)); } long long int mmn=mn; long long int mark; mark=2; for(i=1; i<=r; i++) { if(dp[i][1]==mn) { mark=i; mn-=grid[i][1]; ans.push_back(mark); break; } } long long int cnt=1; while(true) { cnt++; if(mark==1) { if(dp[mark][cnt]==mn) { ans.push_back(mark); mn-=grid[mark][cnt]; } else if(dp[mark+1][cnt]==mn) { mark++; ans.push_back(mark); mn-=grid[mark][cnt]; } else if(dp[r][cnt]==mn) { mark=r; ans.push_back(mark); mn-=grid[mark][cnt]; } } else if(mark==r) { if(dp[1][cnt]==mn) { mark=1; ans.push_back(mark); mn-=grid[mark][cnt]; } else if(dp[mark-1][cnt]==mn) { mark--; ans.push_back(mark); mn-=grid[mark][cnt]; } else if(dp[mark][cnt]==mn) { ans.push_back(mark); mn-=grid[mark][cnt]; } } else { if(dp[mark-1][cnt]==mn) { mark--; ans.push_back(mark); mn-=grid[mark][cnt]; } else if(dp[mark][cnt]==mn) { ans.push_back(mark); mn-=grid[mark][cnt]; } else if(dp[mark+1][cnt]==mn) { mark++; ans.push_back(mark); mn-=grid[mark][cnt]; } } if(cnt==c)break; } for(i=0; i<ans.size(); i++) { cout<<ans[i]; if(i!=ans.size()-1)cout<<" "; } cout<<endl; cout<<mmn<<endl; ans.clear(); } return 0; }
27.927152
111
0.311359
kzvd4729
86d3a42632747ee3ca59b603153f0e44e6e7a540
6,503
cpp
C++
export/debug/windows/obj/src/openfl/ui/Multitouch.cpp
bobisdabbing/Vs-The-United-Lands-stable
0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5
[ "MIT" ]
null
null
null
export/debug/windows/obj/src/openfl/ui/Multitouch.cpp
bobisdabbing/Vs-The-United-Lands-stable
0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5
[ "MIT" ]
null
null
null
export/debug/windows/obj/src/openfl/ui/Multitouch.cpp
bobisdabbing/Vs-The-United-Lands-stable
0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5
[ "MIT" ]
null
null
null
// Generated by Haxe 4.1.5 #include <hxcpp.h> #ifndef INCLUDED_openfl__Vector_IVector #include <openfl/_Vector/IVector.h> #endif #ifndef INCLUDED_openfl__Vector_ObjectVector #include <openfl/_Vector/ObjectVector.h> #endif #ifndef INCLUDED_openfl_ui_Multitouch #include <openfl/ui/Multitouch.h> #endif HX_LOCAL_STACK_FRAME(_hx_pos_d04537844d94f90f_112___init__,"::openfl::ui::Multitouch_obj","__init__",0xd9e1825c,"::openfl::ui::Multitouch_obj.__init__","openfl/ui/Multitouch.hx",112,0xce42901c) HX_LOCAL_STACK_FRAME(_hx_pos_0f8b8e224a678ffc_141_get_supportsTouchEvents,"openfl.ui.Multitouch","get_supportsTouchEvents",0x2ba8207f,"openfl.ui.Multitouch.get_supportsTouchEvents","openfl/ui/Multitouch.hx",141,0xce42901c) namespace openfl{ namespace ui{ void Multitouch_obj::__construct() { } Dynamic Multitouch_obj::__CreateEmpty() { return new Multitouch_obj; } void *Multitouch_obj::_hx_vtable = 0; Dynamic Multitouch_obj::__Create(::hx::DynamicArray inArgs) { ::hx::ObjectPtr< Multitouch_obj > _hx_result = new Multitouch_obj(); _hx_result->__construct(); return _hx_result; } bool Multitouch_obj::_hx_isInstanceOf(int inClassId) { return inClassId==(int)0x00000001 || inClassId==(int)0x647efaea; } void Multitouch_obj::__init__(){ HX_STACKFRAME(&_hx_pos_d04537844d94f90f_112___init__) HXLINE( 113) ::openfl::ui::Multitouch_obj::maxTouchPoints = 2; HXLINE( 114) ::openfl::ui::Multitouch_obj::supportedGestures = null(); HXLINE( 115) ::openfl::ui::Multitouch_obj::supportsGestureEvents = false; HXLINE( 116) ::openfl::ui::Multitouch_obj::inputMode = 2; } ::Dynamic Multitouch_obj::inputMode; int Multitouch_obj::maxTouchPoints; ::openfl::_Vector::ObjectVector Multitouch_obj::supportedGestures; bool Multitouch_obj::supportsGestureEvents; bool Multitouch_obj::get_supportsTouchEvents(){ HX_STACKFRAME(&_hx_pos_0f8b8e224a678ffc_141_get_supportsTouchEvents) HXDLIN( 141) return true; } STATIC_HX_DEFINE_DYNAMIC_FUNC0(Multitouch_obj,get_supportsTouchEvents,return ) Multitouch_obj::Multitouch_obj() { } bool Multitouch_obj::__GetStatic(const ::String &inName, Dynamic &outValue, ::hx::PropertyAccess inCallProp) { switch(inName.length) { case 9: if (HX_FIELD_EQ(inName,"inputMode") ) { outValue = ( inputMode ); return true; } break; case 14: if (HX_FIELD_EQ(inName,"maxTouchPoints") ) { outValue = ( maxTouchPoints ); return true; } break; case 17: if (HX_FIELD_EQ(inName,"supportedGestures") ) { outValue = ( supportedGestures ); return true; } break; case 19: if (HX_FIELD_EQ(inName,"supportsTouchEvents") ) { if (inCallProp == ::hx::paccAlways) { outValue = ( get_supportsTouchEvents() ); return true; } } break; case 21: if (HX_FIELD_EQ(inName,"supportsGestureEvents") ) { outValue = ( supportsGestureEvents ); return true; } break; case 23: if (HX_FIELD_EQ(inName,"get_supportsTouchEvents") ) { outValue = get_supportsTouchEvents_dyn(); return true; } } return false; } bool Multitouch_obj::__SetStatic(const ::String &inName,Dynamic &ioValue,::hx::PropertyAccess inCallProp) { switch(inName.length) { case 9: if (HX_FIELD_EQ(inName,"inputMode") ) { inputMode=ioValue.Cast< ::Dynamic >(); return true; } break; case 14: if (HX_FIELD_EQ(inName,"maxTouchPoints") ) { maxTouchPoints=ioValue.Cast< int >(); return true; } break; case 17: if (HX_FIELD_EQ(inName,"supportedGestures") ) { supportedGestures=ioValue.Cast< ::openfl::_Vector::ObjectVector >(); return true; } break; case 21: if (HX_FIELD_EQ(inName,"supportsGestureEvents") ) { supportsGestureEvents=ioValue.Cast< bool >(); return true; } } return false; } #ifdef HXCPP_SCRIPTABLE static ::hx::StorageInfo *Multitouch_obj_sMemberStorageInfo = 0; static ::hx::StaticInfo Multitouch_obj_sStaticStorageInfo[] = { {::hx::fsObject /* ::Dynamic */ ,(void *) &Multitouch_obj::inputMode,HX_("inputMode",8d,90,8b,0f)}, {::hx::fsInt,(void *) &Multitouch_obj::maxTouchPoints,HX_("maxTouchPoints",fe,7e,0e,64)}, {::hx::fsObject /* ::openfl::_Vector::ObjectVector */ ,(void *) &Multitouch_obj::supportedGestures,HX_("supportedGestures",18,be,c8,bc)}, {::hx::fsBool,(void *) &Multitouch_obj::supportsGestureEvents,HX_("supportsGestureEvents",5e,d6,ce,30)}, { ::hx::fsUnknown, 0, null()} }; #endif static void Multitouch_obj_sMarkStatics(HX_MARK_PARAMS) { HX_MARK_MEMBER_NAME(Multitouch_obj::inputMode,"inputMode"); HX_MARK_MEMBER_NAME(Multitouch_obj::maxTouchPoints,"maxTouchPoints"); HX_MARK_MEMBER_NAME(Multitouch_obj::supportedGestures,"supportedGestures"); HX_MARK_MEMBER_NAME(Multitouch_obj::supportsGestureEvents,"supportsGestureEvents"); }; #ifdef HXCPP_VISIT_ALLOCS static void Multitouch_obj_sVisitStatics(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(Multitouch_obj::inputMode,"inputMode"); HX_VISIT_MEMBER_NAME(Multitouch_obj::maxTouchPoints,"maxTouchPoints"); HX_VISIT_MEMBER_NAME(Multitouch_obj::supportedGestures,"supportedGestures"); HX_VISIT_MEMBER_NAME(Multitouch_obj::supportsGestureEvents,"supportsGestureEvents"); }; #endif ::hx::Class Multitouch_obj::__mClass; static ::String Multitouch_obj_sStaticFields[] = { HX_("inputMode",8d,90,8b,0f), HX_("maxTouchPoints",fe,7e,0e,64), HX_("supportedGestures",18,be,c8,bc), HX_("supportsGestureEvents",5e,d6,ce,30), HX_("get_supportsTouchEvents",ab,97,f3,72), ::String(null()) }; void Multitouch_obj::__register() { Multitouch_obj _hx_dummy; Multitouch_obj::_hx_vtable = *(void **)&_hx_dummy; ::hx::Static(__mClass) = new ::hx::Class_obj(); __mClass->mName = HX_("openfl.ui.Multitouch",42,0d,e8,9b); __mClass->mSuper = &super::__SGetClass(); __mClass->mConstructEmpty = &__CreateEmpty; __mClass->mConstructArgs = &__Create; __mClass->mGetStaticField = &Multitouch_obj::__GetStatic; __mClass->mSetStaticField = &Multitouch_obj::__SetStatic; __mClass->mMarkFunc = Multitouch_obj_sMarkStatics; __mClass->mStatics = ::hx::Class_obj::dupFunctions(Multitouch_obj_sStaticFields); __mClass->mMembers = ::hx::Class_obj::dupFunctions(0 /* sMemberFields */); __mClass->mCanCast = ::hx::TCanCast< Multitouch_obj >; #ifdef HXCPP_VISIT_ALLOCS __mClass->mVisitFunc = Multitouch_obj_sVisitStatics; #endif #ifdef HXCPP_SCRIPTABLE __mClass->mMemberStorageInfo = Multitouch_obj_sMemberStorageInfo; #endif #ifdef HXCPP_SCRIPTABLE __mClass->mStaticStorageInfo = Multitouch_obj_sStaticStorageInfo; #endif ::hx::_hx_RegisterClass(__mClass->mName, __mClass); } void Multitouch_obj::__boot() { } } // end namespace openfl } // end namespace ui
36.127778
222
0.761495
bobisdabbing
86da8fb4899c1fbda2d748079cee5fddd67ce0d5
294,519
cc
C++
extra/tensorflow-r1.4/tensorflow/core/protobuf/meta_graph.pb.cc
langsunny/DEye
dba4b297fff71c72d28e2b48eeb7d447066a32ce
[ "Apache-2.0" ]
850
2018-01-18T05:56:02.000Z
2022-03-31T08:17:34.000Z
extra/tensorflow-r1.4/tensorflow/core/protobuf/meta_graph.pb.cc
langsunny/DEye
dba4b297fff71c72d28e2b48eeb7d447066a32ce
[ "Apache-2.0" ]
11
2018-03-14T02:49:04.000Z
2021-03-09T02:06:00.000Z
extra/tensorflow-r1.4/tensorflow/core/protobuf/meta_graph.pb.cc
langsunny/DEye
dba4b297fff71c72d28e2b48eeb7d447066a32ce
[ "Apache-2.0" ]
364
2018-01-22T02:11:16.000Z
2022-03-27T12:58:47.000Z
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/meta_graph.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "tensorflow/core/protobuf/meta_graph.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/protobuf/stubs/once.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/wire_format_lite_inl.h> #include <google/protobuf/descriptor.h> #include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/reflection_ops.h> #include <google/protobuf/wire_format.h> // @@protoc_insertion_point(includes) namespace tensorflow { namespace { const ::google::protobuf::Descriptor* MetaGraphDef_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* MetaGraphDef_reflection_ = NULL; const ::google::protobuf::Descriptor* MetaGraphDef_MetaInfoDef_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* MetaGraphDef_MetaInfoDef_reflection_ = NULL; const ::google::protobuf::Descriptor* MetaGraphDef_CollectionDefEntry_descriptor_ = NULL; const ::google::protobuf::Descriptor* MetaGraphDef_SignatureDefEntry_descriptor_ = NULL; const ::google::protobuf::Descriptor* CollectionDef_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CollectionDef_reflection_ = NULL; struct CollectionDefOneofInstance { const ::tensorflow::CollectionDef_NodeList* node_list_; const ::tensorflow::CollectionDef_BytesList* bytes_list_; const ::tensorflow::CollectionDef_Int64List* int64_list_; const ::tensorflow::CollectionDef_FloatList* float_list_; const ::tensorflow::CollectionDef_AnyList* any_list_; }* CollectionDef_default_oneof_instance_ = NULL; const ::google::protobuf::Descriptor* CollectionDef_NodeList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CollectionDef_NodeList_reflection_ = NULL; const ::google::protobuf::Descriptor* CollectionDef_BytesList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CollectionDef_BytesList_reflection_ = NULL; const ::google::protobuf::Descriptor* CollectionDef_Int64List_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CollectionDef_Int64List_reflection_ = NULL; const ::google::protobuf::Descriptor* CollectionDef_FloatList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CollectionDef_FloatList_reflection_ = NULL; const ::google::protobuf::Descriptor* CollectionDef_AnyList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CollectionDef_AnyList_reflection_ = NULL; const ::google::protobuf::Descriptor* TensorInfo_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* TensorInfo_reflection_ = NULL; struct TensorInfoOneofInstance { ::google::protobuf::internal::ArenaStringPtr name_; const ::tensorflow::TensorInfo_CooSparse* coo_sparse_; }* TensorInfo_default_oneof_instance_ = NULL; const ::google::protobuf::Descriptor* TensorInfo_CooSparse_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* TensorInfo_CooSparse_reflection_ = NULL; const ::google::protobuf::Descriptor* SignatureDef_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* SignatureDef_reflection_ = NULL; const ::google::protobuf::Descriptor* SignatureDef_InputsEntry_descriptor_ = NULL; const ::google::protobuf::Descriptor* SignatureDef_OutputsEntry_descriptor_ = NULL; const ::google::protobuf::Descriptor* AssetFileDef_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* AssetFileDef_reflection_ = NULL; } // namespace void protobuf_AssignDesc_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() GOOGLE_ATTRIBUTE_COLD; void protobuf_AssignDesc_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { protobuf_AddDesc_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "tensorflow/core/protobuf/meta_graph.proto"); GOOGLE_CHECK(file != NULL); MetaGraphDef_descriptor_ = file->message_type(0); static const int MetaGraphDef_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef, meta_info_def_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef, graph_def_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef, saver_def_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef, collection_def_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef, signature_def_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef, asset_file_def_), }; MetaGraphDef_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( MetaGraphDef_descriptor_, MetaGraphDef::internal_default_instance(), MetaGraphDef_offsets_, -1, -1, -1, sizeof(MetaGraphDef), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef, _internal_metadata_)); MetaGraphDef_MetaInfoDef_descriptor_ = MetaGraphDef_descriptor_->nested_type(0); static const int MetaGraphDef_MetaInfoDef_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef_MetaInfoDef, meta_graph_version_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef_MetaInfoDef, stripped_op_list_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef_MetaInfoDef, any_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef_MetaInfoDef, tags_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef_MetaInfoDef, tensorflow_version_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef_MetaInfoDef, tensorflow_git_version_), }; MetaGraphDef_MetaInfoDef_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( MetaGraphDef_MetaInfoDef_descriptor_, MetaGraphDef_MetaInfoDef::internal_default_instance(), MetaGraphDef_MetaInfoDef_offsets_, -1, -1, -1, sizeof(MetaGraphDef_MetaInfoDef), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaGraphDef_MetaInfoDef, _internal_metadata_)); MetaGraphDef_CollectionDefEntry_descriptor_ = MetaGraphDef_descriptor_->nested_type(1); MetaGraphDef_SignatureDefEntry_descriptor_ = MetaGraphDef_descriptor_->nested_type(2); CollectionDef_descriptor_ = file->message_type(1); static const int CollectionDef_offsets_[6] = { PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(CollectionDef_default_oneof_instance_, node_list_), PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(CollectionDef_default_oneof_instance_, bytes_list_), PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(CollectionDef_default_oneof_instance_, int64_list_), PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(CollectionDef_default_oneof_instance_, float_list_), PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(CollectionDef_default_oneof_instance_, any_list_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef, kind_), }; CollectionDef_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( CollectionDef_descriptor_, CollectionDef::internal_default_instance(), CollectionDef_offsets_, -1, -1, -1, CollectionDef_default_oneof_instance_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef, _oneof_case_[0]), sizeof(CollectionDef), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef, _internal_metadata_)); CollectionDef_NodeList_descriptor_ = CollectionDef_descriptor_->nested_type(0); static const int CollectionDef_NodeList_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef_NodeList, value_), }; CollectionDef_NodeList_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( CollectionDef_NodeList_descriptor_, CollectionDef_NodeList::internal_default_instance(), CollectionDef_NodeList_offsets_, -1, -1, -1, sizeof(CollectionDef_NodeList), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef_NodeList, _internal_metadata_)); CollectionDef_BytesList_descriptor_ = CollectionDef_descriptor_->nested_type(1); static const int CollectionDef_BytesList_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef_BytesList, value_), }; CollectionDef_BytesList_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( CollectionDef_BytesList_descriptor_, CollectionDef_BytesList::internal_default_instance(), CollectionDef_BytesList_offsets_, -1, -1, -1, sizeof(CollectionDef_BytesList), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef_BytesList, _internal_metadata_)); CollectionDef_Int64List_descriptor_ = CollectionDef_descriptor_->nested_type(2); static const int CollectionDef_Int64List_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef_Int64List, value_), }; CollectionDef_Int64List_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( CollectionDef_Int64List_descriptor_, CollectionDef_Int64List::internal_default_instance(), CollectionDef_Int64List_offsets_, -1, -1, -1, sizeof(CollectionDef_Int64List), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef_Int64List, _internal_metadata_)); CollectionDef_FloatList_descriptor_ = CollectionDef_descriptor_->nested_type(3); static const int CollectionDef_FloatList_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef_FloatList, value_), }; CollectionDef_FloatList_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( CollectionDef_FloatList_descriptor_, CollectionDef_FloatList::internal_default_instance(), CollectionDef_FloatList_offsets_, -1, -1, -1, sizeof(CollectionDef_FloatList), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef_FloatList, _internal_metadata_)); CollectionDef_AnyList_descriptor_ = CollectionDef_descriptor_->nested_type(4); static const int CollectionDef_AnyList_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef_AnyList, value_), }; CollectionDef_AnyList_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( CollectionDef_AnyList_descriptor_, CollectionDef_AnyList::internal_default_instance(), CollectionDef_AnyList_offsets_, -1, -1, -1, sizeof(CollectionDef_AnyList), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionDef_AnyList, _internal_metadata_)); TensorInfo_descriptor_ = file->message_type(2); static const int TensorInfo_offsets_[5] = { PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(TensorInfo_default_oneof_instance_, name_), PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(TensorInfo_default_oneof_instance_, coo_sparse_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorInfo, dtype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorInfo, tensor_shape_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorInfo, encoding_), }; TensorInfo_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( TensorInfo_descriptor_, TensorInfo::internal_default_instance(), TensorInfo_offsets_, -1, -1, -1, TensorInfo_default_oneof_instance_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorInfo, _oneof_case_[0]), sizeof(TensorInfo), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorInfo, _internal_metadata_)); TensorInfo_CooSparse_descriptor_ = TensorInfo_descriptor_->nested_type(0); static const int TensorInfo_CooSparse_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorInfo_CooSparse, values_tensor_name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorInfo_CooSparse, indices_tensor_name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorInfo_CooSparse, dense_shape_tensor_name_), }; TensorInfo_CooSparse_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( TensorInfo_CooSparse_descriptor_, TensorInfo_CooSparse::internal_default_instance(), TensorInfo_CooSparse_offsets_, -1, -1, -1, sizeof(TensorInfo_CooSparse), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorInfo_CooSparse, _internal_metadata_)); SignatureDef_descriptor_ = file->message_type(3); static const int SignatureDef_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignatureDef, inputs_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignatureDef, outputs_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignatureDef, method_name_), }; SignatureDef_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( SignatureDef_descriptor_, SignatureDef::internal_default_instance(), SignatureDef_offsets_, -1, -1, -1, sizeof(SignatureDef), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignatureDef, _internal_metadata_)); SignatureDef_InputsEntry_descriptor_ = SignatureDef_descriptor_->nested_type(0); SignatureDef_OutputsEntry_descriptor_ = SignatureDef_descriptor_->nested_type(1); AssetFileDef_descriptor_ = file->message_type(4); static const int AssetFileDef_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AssetFileDef, tensor_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AssetFileDef, filename_), }; AssetFileDef_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( AssetFileDef_descriptor_, AssetFileDef::internal_default_instance(), AssetFileDef_offsets_, -1, -1, -1, sizeof(AssetFileDef), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AssetFileDef, _internal_metadata_)); } namespace { GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); void protobuf_AssignDescriptorsOnce() { ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, &protobuf_AssignDesc_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( MetaGraphDef_descriptor_, MetaGraphDef::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( MetaGraphDef_MetaInfoDef_descriptor_, MetaGraphDef_MetaInfoDef::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( MetaGraphDef_CollectionDefEntry_descriptor_, ::google::protobuf::internal::MapEntry< ::std::string, ::tensorflow::CollectionDef, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0>::CreateDefaultInstance( MetaGraphDef_CollectionDefEntry_descriptor_)); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( MetaGraphDef_SignatureDefEntry_descriptor_, ::google::protobuf::internal::MapEntry< ::std::string, ::tensorflow::SignatureDef, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0>::CreateDefaultInstance( MetaGraphDef_SignatureDefEntry_descriptor_)); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CollectionDef_descriptor_, CollectionDef::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CollectionDef_NodeList_descriptor_, CollectionDef_NodeList::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CollectionDef_BytesList_descriptor_, CollectionDef_BytesList::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CollectionDef_Int64List_descriptor_, CollectionDef_Int64List::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CollectionDef_FloatList_descriptor_, CollectionDef_FloatList::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CollectionDef_AnyList_descriptor_, CollectionDef_AnyList::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( TensorInfo_descriptor_, TensorInfo::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( TensorInfo_CooSparse_descriptor_, TensorInfo_CooSparse::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( SignatureDef_descriptor_, SignatureDef::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( SignatureDef_InputsEntry_descriptor_, ::google::protobuf::internal::MapEntry< ::std::string, ::tensorflow::TensorInfo, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0>::CreateDefaultInstance( SignatureDef_InputsEntry_descriptor_)); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( SignatureDef_OutputsEntry_descriptor_, ::google::protobuf::internal::MapEntry< ::std::string, ::tensorflow::TensorInfo, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0>::CreateDefaultInstance( SignatureDef_OutputsEntry_descriptor_)); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( AssetFileDef_descriptor_, AssetFileDef::internal_default_instance()); } } // namespace void protobuf_ShutdownFile_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { MetaGraphDef_default_instance_.Shutdown(); delete MetaGraphDef_reflection_; MetaGraphDef_MetaInfoDef_default_instance_.Shutdown(); delete MetaGraphDef_MetaInfoDef_reflection_; CollectionDef_default_instance_.Shutdown(); delete CollectionDef_default_oneof_instance_; delete CollectionDef_reflection_; CollectionDef_NodeList_default_instance_.Shutdown(); delete CollectionDef_NodeList_reflection_; CollectionDef_BytesList_default_instance_.Shutdown(); delete CollectionDef_BytesList_reflection_; CollectionDef_Int64List_default_instance_.Shutdown(); delete CollectionDef_Int64List_reflection_; CollectionDef_FloatList_default_instance_.Shutdown(); delete CollectionDef_FloatList_reflection_; CollectionDef_AnyList_default_instance_.Shutdown(); delete CollectionDef_AnyList_reflection_; TensorInfo_default_instance_.Shutdown(); delete TensorInfo_default_oneof_instance_; delete TensorInfo_reflection_; TensorInfo_CooSparse_default_instance_.Shutdown(); delete TensorInfo_CooSparse_reflection_; SignatureDef_default_instance_.Shutdown(); delete SignatureDef_reflection_; AssetFileDef_default_instance_.Shutdown(); delete AssetFileDef_reflection_; } void protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::protobuf_InitDefaults_google_2fprotobuf_2fany_2eproto(); ::tensorflow::protobuf_InitDefaults_tensorflow_2fcore_2fframework_2fgraph_2eproto(); ::tensorflow::protobuf_InitDefaults_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto(); ::tensorflow::protobuf_InitDefaults_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto(); ::tensorflow::protobuf_InitDefaults_tensorflow_2fcore_2fframework_2ftypes_2eproto(); ::tensorflow::protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto(); ::google::protobuf::internal::GetEmptyString(); MetaGraphDef_default_instance_.DefaultConstruct(); ::google::protobuf::internal::GetEmptyString(); MetaGraphDef_MetaInfoDef_default_instance_.DefaultConstruct(); ::google::protobuf::internal::GetEmptyString(); ::google::protobuf::internal::GetEmptyString(); CollectionDef_default_instance_.DefaultConstruct(); CollectionDef_default_oneof_instance_ = new CollectionDefOneofInstance(); ::google::protobuf::internal::GetEmptyString(); CollectionDef_NodeList_default_instance_.DefaultConstruct(); ::google::protobuf::internal::GetEmptyString(); CollectionDef_BytesList_default_instance_.DefaultConstruct(); CollectionDef_Int64List_default_instance_.DefaultConstruct(); CollectionDef_FloatList_default_instance_.DefaultConstruct(); CollectionDef_AnyList_default_instance_.DefaultConstruct(); ::google::protobuf::internal::GetEmptyString(); TensorInfo_default_instance_.DefaultConstruct(); TensorInfo_default_oneof_instance_ = new TensorInfoOneofInstance(); ::google::protobuf::internal::GetEmptyString(); TensorInfo_CooSparse_default_instance_.DefaultConstruct(); ::google::protobuf::internal::GetEmptyString(); SignatureDef_default_instance_.DefaultConstruct(); ::google::protobuf::internal::GetEmptyString(); AssetFileDef_default_instance_.DefaultConstruct(); MetaGraphDef_default_instance_.get_mutable()->InitAsDefaultInstance(); MetaGraphDef_MetaInfoDef_default_instance_.get_mutable()->InitAsDefaultInstance(); CollectionDef_default_instance_.get_mutable()->InitAsDefaultInstance(); CollectionDef_NodeList_default_instance_.get_mutable()->InitAsDefaultInstance(); CollectionDef_BytesList_default_instance_.get_mutable()->InitAsDefaultInstance(); CollectionDef_Int64List_default_instance_.get_mutable()->InitAsDefaultInstance(); CollectionDef_FloatList_default_instance_.get_mutable()->InitAsDefaultInstance(); CollectionDef_AnyList_default_instance_.get_mutable()->InitAsDefaultInstance(); TensorInfo_default_instance_.get_mutable()->InitAsDefaultInstance(); TensorInfo_CooSparse_default_instance_.get_mutable()->InitAsDefaultInstance(); SignatureDef_default_instance_.get_mutable()->InitAsDefaultInstance(); AssetFileDef_default_instance_.get_mutable()->InitAsDefaultInstance(); } GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_once_); void protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_once_, &protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_impl); } void protobuf_AddDesc_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n)tensorflow/core/protobuf/meta_graph.pr" "oto\022\ntensorflow\032\031google/protobuf/any.pro" "to\032%tensorflow/core/framework/graph.prot" "o\032&tensorflow/core/framework/op_def.prot" "o\032,tensorflow/core/framework/tensor_shap" "e.proto\032%tensorflow/core/framework/types" ".proto\032$tensorflow/core/protobuf/saver.p" "roto\"\303\005\n\014MetaGraphDef\022;\n\rmeta_info_def\030\001" " \001(\0132$.tensorflow.MetaGraphDef.MetaInfoD" "ef\022\'\n\tgraph_def\030\002 \001(\0132\024.tensorflow.Graph" "Def\022\'\n\tsaver_def\030\003 \001(\0132\024.tensorflow.Save" "rDef\022C\n\016collection_def\030\004 \003(\0132+.tensorflo" "w.MetaGraphDef.CollectionDefEntry\022A\n\rsig" "nature_def\030\005 \003(\0132*.tensorflow.MetaGraphD" "ef.SignatureDefEntry\0220\n\016asset_file_def\030\006" " \003(\0132\030.tensorflow.AssetFileDef\032\311\001\n\013MetaI" "nfoDef\022\032\n\022meta_graph_version\030\001 \001(\t\022,\n\020st" "ripped_op_list\030\002 \001(\0132\022.tensorflow.OpList" "\022&\n\010any_info\030\003 \001(\0132\024.google.protobuf.Any" "\022\014\n\004tags\030\004 \003(\t\022\032\n\022tensorflow_version\030\005 \001" "(\t\022\036\n\026tensorflow_git_version\030\006 \001(\t\032O\n\022Co" "llectionDefEntry\022\013\n\003key\030\001 \001(\t\022(\n\005value\030\002" " \001(\0132\031.tensorflow.CollectionDef:\0028\001\032M\n\021S" "ignatureDefEntry\022\013\n\003key\030\001 \001(\t\022\'\n\005value\030\002" " \001(\0132\030.tensorflow.SignatureDef:\0028\001\"\337\003\n\rC" "ollectionDef\0227\n\tnode_list\030\001 \001(\0132\".tensor" "flow.CollectionDef.NodeListH\000\0229\n\nbytes_l" "ist\030\002 \001(\0132#.tensorflow.CollectionDef.Byt" "esListH\000\0229\n\nint64_list\030\003 \001(\0132#.tensorflo" "w.CollectionDef.Int64ListH\000\0229\n\nfloat_lis" "t\030\004 \001(\0132#.tensorflow.CollectionDef.Float" "ListH\000\0225\n\010any_list\030\005 \001(\0132!.tensorflow.Co" "llectionDef.AnyListH\000\032\031\n\010NodeList\022\r\n\005val" "ue\030\001 \003(\t\032\032\n\tBytesList\022\r\n\005value\030\001 \003(\014\032\036\n\t" "Int64List\022\021\n\005value\030\001 \003(\003B\002\020\001\032\036\n\tFloatLis" "t\022\021\n\005value\030\001 \003(\002B\002\020\001\032.\n\007AnyList\022#\n\005value" "\030\001 \003(\0132\024.google.protobuf.AnyB\006\n\004kind\"\240\002\n" "\nTensorInfo\022\016\n\004name\030\001 \001(\tH\000\0226\n\ncoo_spars" "e\030\004 \001(\0132 .tensorflow.TensorInfo.CooSpars" "eH\000\022#\n\005dtype\030\002 \001(\0162\024.tensorflow.DataType" "\0222\n\014tensor_shape\030\003 \001(\0132\034.tensorflow.Tens" "orShapeProto\032e\n\tCooSparse\022\032\n\022values_tens" "or_name\030\001 \001(\t\022\033\n\023indices_tensor_name\030\002 \001" "(\t\022\037\n\027dense_shape_tensor_name\030\003 \001(\tB\n\n\010e" "ncoding\"\240\002\n\014SignatureDef\0224\n\006inputs\030\001 \003(\013" "2$.tensorflow.SignatureDef.InputsEntry\0226" "\n\007outputs\030\002 \003(\0132%.tensorflow.SignatureDe" "f.OutputsEntry\022\023\n\013method_name\030\003 \001(\t\032E\n\013I" "nputsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026" ".tensorflow.TensorInfo:\0028\001\032F\n\014OutputsEnt" "ry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.tensorf" "low.TensorInfo:\0028\001\"M\n\014AssetFileDef\022+\n\013te" "nsor_info\030\001 \001(\0132\026.tensorflow.TensorInfo\022" "\020\n\010filename\030\002 \001(\tB0\n\030org.tensorflow.fram" "eworkB\017MetaGraphProtosP\001\370\001\001b\006proto3", 2195); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "tensorflow/core/protobuf/meta_graph.proto", &protobuf_RegisterTypes); ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fany_2eproto(); ::tensorflow::protobuf_AddDesc_tensorflow_2fcore_2fframework_2fgraph_2eproto(); ::tensorflow::protobuf_AddDesc_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto(); ::tensorflow::protobuf_AddDesc_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto(); ::tensorflow::protobuf_AddDesc_tensorflow_2fcore_2fframework_2ftypes_2eproto(); ::tensorflow::protobuf_AddDesc_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto); } GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_once_); void protobuf_AddDesc_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_once_, &protobuf_AddDesc_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_impl); } // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto { StaticDescriptorInitializer_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto() { protobuf_AddDesc_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); } } static_descriptor_initializer_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto_; namespace { static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; static void MergeFromFail(int line) { ::google::protobuf::internal::MergeFromFail(__FILE__, line); } } // namespace // =================================================================== void MetaGraphDef_MetaInfoDef::_slow_mutable_stripped_op_list() { stripped_op_list_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::OpList >( GetArenaNoVirtual()); } ::tensorflow::OpList* MetaGraphDef_MetaInfoDef::_slow_release_stripped_op_list() { if (stripped_op_list_ == NULL) { return NULL; } else { ::tensorflow::OpList* temp = new ::tensorflow::OpList(*stripped_op_list_); stripped_op_list_ = NULL; return temp; } } ::tensorflow::OpList* MetaGraphDef_MetaInfoDef::unsafe_arena_release_stripped_op_list() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MetaGraphDef.MetaInfoDef.stripped_op_list) ::tensorflow::OpList* temp = stripped_op_list_; stripped_op_list_ = NULL; return temp; } void MetaGraphDef_MetaInfoDef::_slow_set_allocated_stripped_op_list( ::google::protobuf::Arena* message_arena, ::tensorflow::OpList** stripped_op_list) { if (message_arena != NULL && ::google::protobuf::Arena::GetArena(*stripped_op_list) == NULL) { message_arena->Own(*stripped_op_list); } else if (message_arena != ::google::protobuf::Arena::GetArena(*stripped_op_list)) { ::tensorflow::OpList* new_stripped_op_list = ::google::protobuf::Arena::CreateMessage< ::tensorflow::OpList >( message_arena); new_stripped_op_list->CopyFrom(**stripped_op_list); *stripped_op_list = new_stripped_op_list; } } void MetaGraphDef_MetaInfoDef::unsafe_arena_set_allocated_stripped_op_list( ::tensorflow::OpList* stripped_op_list) { if (GetArenaNoVirtual() == NULL) { delete stripped_op_list_; } stripped_op_list_ = stripped_op_list; if (stripped_op_list) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.stripped_op_list) } void MetaGraphDef_MetaInfoDef::_slow_mutable_any_info() { any_info_ = ::google::protobuf::Arena::Create< ::google::protobuf::Any >( GetArenaNoVirtual()); } ::google::protobuf::Any* MetaGraphDef_MetaInfoDef::_slow_release_any_info() { if (any_info_ == NULL) { return NULL; } else { ::google::protobuf::Any* temp = new ::google::protobuf::Any(*any_info_); any_info_ = NULL; return temp; } } ::google::protobuf::Any* MetaGraphDef_MetaInfoDef::unsafe_arena_release_any_info() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MetaGraphDef.MetaInfoDef.any_info) ::google::protobuf::Any* temp = any_info_; any_info_ = NULL; return temp; } void MetaGraphDef_MetaInfoDef::unsafe_arena_set_allocated_any_info( ::google::protobuf::Any* any_info) { if (GetArenaNoVirtual() == NULL) { delete any_info_; } any_info_ = any_info; if (any_info) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.any_info) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int MetaGraphDef_MetaInfoDef::kMetaGraphVersionFieldNumber; const int MetaGraphDef_MetaInfoDef::kStrippedOpListFieldNumber; const int MetaGraphDef_MetaInfoDef::kAnyInfoFieldNumber; const int MetaGraphDef_MetaInfoDef::kTagsFieldNumber; const int MetaGraphDef_MetaInfoDef::kTensorflowVersionFieldNumber; const int MetaGraphDef_MetaInfoDef::kTensorflowGitVersionFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 MetaGraphDef_MetaInfoDef::MetaGraphDef_MetaInfoDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.MetaGraphDef.MetaInfoDef) } MetaGraphDef_MetaInfoDef::MetaGraphDef_MetaInfoDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), tags_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.MetaGraphDef.MetaInfoDef) } void MetaGraphDef_MetaInfoDef::InitAsDefaultInstance() { stripped_op_list_ = const_cast< ::tensorflow::OpList*>( ::tensorflow::OpList::internal_default_instance()); any_info_ = const_cast< ::google::protobuf::Any*>( ::google::protobuf::Any::internal_default_instance()); } MetaGraphDef_MetaInfoDef::MetaGraphDef_MetaInfoDef(const MetaGraphDef_MetaInfoDef& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.MetaGraphDef.MetaInfoDef) } void MetaGraphDef_MetaInfoDef::SharedCtor() { meta_graph_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); tensorflow_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); tensorflow_git_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); stripped_op_list_ = NULL; any_info_ = NULL; _cached_size_ = 0; } MetaGraphDef_MetaInfoDef::~MetaGraphDef_MetaInfoDef() { // @@protoc_insertion_point(destructor:tensorflow.MetaGraphDef.MetaInfoDef) SharedDtor(); } void MetaGraphDef_MetaInfoDef::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } meta_graph_version_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); tensorflow_version_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); tensorflow_git_version_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); if (this != &MetaGraphDef_MetaInfoDef_default_instance_.get()) { delete stripped_op_list_; delete any_info_; } } void MetaGraphDef_MetaInfoDef::ArenaDtor(void* object) { MetaGraphDef_MetaInfoDef* _this = reinterpret_cast< MetaGraphDef_MetaInfoDef* >(object); (void)_this; } void MetaGraphDef_MetaInfoDef::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void MetaGraphDef_MetaInfoDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* MetaGraphDef_MetaInfoDef::descriptor() { protobuf_AssignDescriptorsOnce(); return MetaGraphDef_MetaInfoDef_descriptor_; } const MetaGraphDef_MetaInfoDef& MetaGraphDef_MetaInfoDef::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<MetaGraphDef_MetaInfoDef> MetaGraphDef_MetaInfoDef_default_instance_; MetaGraphDef_MetaInfoDef* MetaGraphDef_MetaInfoDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<MetaGraphDef_MetaInfoDef>(arena); } void MetaGraphDef_MetaInfoDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.MetaGraphDef.MetaInfoDef) meta_graph_version_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); if (GetArenaNoVirtual() == NULL && stripped_op_list_ != NULL) delete stripped_op_list_; stripped_op_list_ = NULL; if (GetArenaNoVirtual() == NULL && any_info_ != NULL) delete any_info_; any_info_ = NULL; tensorflow_version_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); tensorflow_git_version_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); tags_.Clear(); } bool MetaGraphDef_MetaInfoDef::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.MetaGraphDef.MetaInfoDef) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string meta_graph_version = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_meta_graph_version())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->meta_graph_version().data(), this->meta_graph_version().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version")); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_stripped_op_list; break; } // optional .tensorflow.OpList stripped_op_list = 2; case 2: { if (tag == 18) { parse_stripped_op_list: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_stripped_op_list())); } else { goto handle_unusual; } if (input->ExpectTag(26)) goto parse_any_info; break; } // optional .google.protobuf.Any any_info = 3; case 3: { if (tag == 26) { parse_any_info: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_any_info())); } else { goto handle_unusual; } if (input->ExpectTag(34)) goto parse_tags; break; } // repeated string tags = 4; case 4: { if (tag == 34) { parse_tags: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_tags())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->tags(this->tags_size() - 1).data(), this->tags(this->tags_size() - 1).length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.MetaGraphDef.MetaInfoDef.tags")); } else { goto handle_unusual; } if (input->ExpectTag(34)) goto parse_tags; if (input->ExpectTag(42)) goto parse_tensorflow_version; break; } // optional string tensorflow_version = 5; case 5: { if (tag == 42) { parse_tensorflow_version: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_tensorflow_version())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->tensorflow_version().data(), this->tensorflow_version().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version")); } else { goto handle_unusual; } if (input->ExpectTag(50)) goto parse_tensorflow_git_version; break; } // optional string tensorflow_git_version = 6; case 6: { if (tag == 50) { parse_tensorflow_git_version: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_tensorflow_git_version())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->tensorflow_git_version().data(), this->tensorflow_git_version().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version")); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.MetaGraphDef.MetaInfoDef) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.MetaGraphDef.MetaInfoDef) return false; #undef DO_ } void MetaGraphDef_MetaInfoDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.MetaGraphDef.MetaInfoDef) // optional string meta_graph_version = 1; if (this->meta_graph_version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->meta_graph_version().data(), this->meta_graph_version().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->meta_graph_version(), output); } // optional .tensorflow.OpList stripped_op_list = 2; if (this->has_stripped_op_list()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *this->stripped_op_list_, output); } // optional .google.protobuf.Any any_info = 3; if (this->has_any_info()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->any_info_, output); } // repeated string tags = 4; for (int i = 0; i < this->tags_size(); i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->tags(i).data(), this->tags(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.MetaInfoDef.tags"); ::google::protobuf::internal::WireFormatLite::WriteString( 4, this->tags(i), output); } // optional string tensorflow_version = 5; if (this->tensorflow_version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->tensorflow_version().data(), this->tensorflow_version().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->tensorflow_version(), output); } // optional string tensorflow_git_version = 6; if (this->tensorflow_git_version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->tensorflow_git_version().data(), this->tensorflow_git_version().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 6, this->tensorflow_git_version(), output); } // @@protoc_insertion_point(serialize_end:tensorflow.MetaGraphDef.MetaInfoDef) } ::google::protobuf::uint8* MetaGraphDef_MetaInfoDef::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.MetaGraphDef.MetaInfoDef) // optional string meta_graph_version = 1; if (this->meta_graph_version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->meta_graph_version().data(), this->meta_graph_version().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->meta_graph_version(), target); } // optional .tensorflow.OpList stripped_op_list = 2; if (this->has_stripped_op_list()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 2, *this->stripped_op_list_, false, target); } // optional .google.protobuf.Any any_info = 3; if (this->has_any_info()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 3, *this->any_info_, false, target); } // repeated string tags = 4; for (int i = 0; i < this->tags_size(); i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->tags(i).data(), this->tags(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.MetaInfoDef.tags"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(4, this->tags(i), target); } // optional string tensorflow_version = 5; if (this->tensorflow_version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->tensorflow_version().data(), this->tensorflow_version().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5, this->tensorflow_version(), target); } // optional string tensorflow_git_version = 6; if (this->tensorflow_git_version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->tensorflow_git_version().data(), this->tensorflow_git_version().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 6, this->tensorflow_git_version(), target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.MetaGraphDef.MetaInfoDef) return target; } size_t MetaGraphDef_MetaInfoDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.MetaGraphDef.MetaInfoDef) size_t total_size = 0; // optional string meta_graph_version = 1; if (this->meta_graph_version().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->meta_graph_version()); } // optional .tensorflow.OpList stripped_op_list = 2; if (this->has_stripped_op_list()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->stripped_op_list_); } // optional .google.protobuf.Any any_info = 3; if (this->has_any_info()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->any_info_); } // optional string tensorflow_version = 5; if (this->tensorflow_version().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->tensorflow_version()); } // optional string tensorflow_git_version = 6; if (this->tensorflow_git_version().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->tensorflow_git_version()); } // repeated string tags = 4; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->tags_size()); for (int i = 0; i < this->tags_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->tags(i)); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void MetaGraphDef_MetaInfoDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.MetaGraphDef.MetaInfoDef) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const MetaGraphDef_MetaInfoDef* source = ::google::protobuf::internal::DynamicCastToGenerated<const MetaGraphDef_MetaInfoDef>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.MetaGraphDef.MetaInfoDef) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.MetaGraphDef.MetaInfoDef) UnsafeMergeFrom(*source); } } void MetaGraphDef_MetaInfoDef::MergeFrom(const MetaGraphDef_MetaInfoDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.MetaGraphDef.MetaInfoDef) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void MetaGraphDef_MetaInfoDef::UnsafeMergeFrom(const MetaGraphDef_MetaInfoDef& from) { GOOGLE_DCHECK(&from != this); tags_.UnsafeMergeFrom(from.tags_); if (from.meta_graph_version().size() > 0) { set_meta_graph_version(from.meta_graph_version()); } if (from.has_stripped_op_list()) { mutable_stripped_op_list()->::tensorflow::OpList::MergeFrom(from.stripped_op_list()); } if (from.has_any_info()) { mutable_any_info()->::google::protobuf::Any::MergeFrom(from.any_info()); } if (from.tensorflow_version().size() > 0) { set_tensorflow_version(from.tensorflow_version()); } if (from.tensorflow_git_version().size() > 0) { set_tensorflow_git_version(from.tensorflow_git_version()); } } void MetaGraphDef_MetaInfoDef::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.MetaGraphDef.MetaInfoDef) if (&from == this) return; Clear(); MergeFrom(from); } void MetaGraphDef_MetaInfoDef::CopyFrom(const MetaGraphDef_MetaInfoDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.MetaGraphDef.MetaInfoDef) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool MetaGraphDef_MetaInfoDef::IsInitialized() const { return true; } void MetaGraphDef_MetaInfoDef::Swap(MetaGraphDef_MetaInfoDef* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { MetaGraphDef_MetaInfoDef temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void MetaGraphDef_MetaInfoDef::UnsafeArenaSwap(MetaGraphDef_MetaInfoDef* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void MetaGraphDef_MetaInfoDef::InternalSwap(MetaGraphDef_MetaInfoDef* other) { meta_graph_version_.Swap(&other->meta_graph_version_); std::swap(stripped_op_list_, other->stripped_op_list_); std::swap(any_info_, other->any_info_); tags_.UnsafeArenaSwap(&other->tags_); tensorflow_version_.Swap(&other->tensorflow_version_); tensorflow_git_version_.Swap(&other->tensorflow_git_version_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata MetaGraphDef_MetaInfoDef::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = MetaGraphDef_MetaInfoDef_descriptor_; metadata.reflection = MetaGraphDef_MetaInfoDef_reflection_; return metadata; } // ------------------------------------------------------------------- void MetaGraphDef::_slow_mutable_meta_info_def() { meta_info_def_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::MetaGraphDef_MetaInfoDef >( GetArenaNoVirtual()); } ::tensorflow::MetaGraphDef_MetaInfoDef* MetaGraphDef::_slow_release_meta_info_def() { if (meta_info_def_ == NULL) { return NULL; } else { ::tensorflow::MetaGraphDef_MetaInfoDef* temp = new ::tensorflow::MetaGraphDef_MetaInfoDef(*meta_info_def_); meta_info_def_ = NULL; return temp; } } ::tensorflow::MetaGraphDef_MetaInfoDef* MetaGraphDef::unsafe_arena_release_meta_info_def() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MetaGraphDef.meta_info_def) ::tensorflow::MetaGraphDef_MetaInfoDef* temp = meta_info_def_; meta_info_def_ = NULL; return temp; } void MetaGraphDef::_slow_set_allocated_meta_info_def( ::google::protobuf::Arena* message_arena, ::tensorflow::MetaGraphDef_MetaInfoDef** meta_info_def) { if (message_arena != NULL && ::google::protobuf::Arena::GetArena(*meta_info_def) == NULL) { message_arena->Own(*meta_info_def); } else if (message_arena != ::google::protobuf::Arena::GetArena(*meta_info_def)) { ::tensorflow::MetaGraphDef_MetaInfoDef* new_meta_info_def = ::google::protobuf::Arena::CreateMessage< ::tensorflow::MetaGraphDef_MetaInfoDef >( message_arena); new_meta_info_def->CopyFrom(**meta_info_def); *meta_info_def = new_meta_info_def; } } void MetaGraphDef::unsafe_arena_set_allocated_meta_info_def( ::tensorflow::MetaGraphDef_MetaInfoDef* meta_info_def) { if (GetArenaNoVirtual() == NULL) { delete meta_info_def_; } meta_info_def_ = meta_info_def; if (meta_info_def) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.meta_info_def) } void MetaGraphDef::_slow_mutable_graph_def() { graph_def_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::GraphDef >( GetArenaNoVirtual()); } ::tensorflow::GraphDef* MetaGraphDef::_slow_release_graph_def() { if (graph_def_ == NULL) { return NULL; } else { ::tensorflow::GraphDef* temp = new ::tensorflow::GraphDef(*graph_def_); graph_def_ = NULL; return temp; } } ::tensorflow::GraphDef* MetaGraphDef::unsafe_arena_release_graph_def() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MetaGraphDef.graph_def) ::tensorflow::GraphDef* temp = graph_def_; graph_def_ = NULL; return temp; } void MetaGraphDef::_slow_set_allocated_graph_def( ::google::protobuf::Arena* message_arena, ::tensorflow::GraphDef** graph_def) { if (message_arena != NULL && ::google::protobuf::Arena::GetArena(*graph_def) == NULL) { message_arena->Own(*graph_def); } else if (message_arena != ::google::protobuf::Arena::GetArena(*graph_def)) { ::tensorflow::GraphDef* new_graph_def = ::google::protobuf::Arena::CreateMessage< ::tensorflow::GraphDef >( message_arena); new_graph_def->CopyFrom(**graph_def); *graph_def = new_graph_def; } } void MetaGraphDef::unsafe_arena_set_allocated_graph_def( ::tensorflow::GraphDef* graph_def) { if (GetArenaNoVirtual() == NULL) { delete graph_def_; } graph_def_ = graph_def; if (graph_def) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.graph_def) } void MetaGraphDef::_slow_mutable_saver_def() { saver_def_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::SaverDef >( GetArenaNoVirtual()); } ::tensorflow::SaverDef* MetaGraphDef::_slow_release_saver_def() { if (saver_def_ == NULL) { return NULL; } else { ::tensorflow::SaverDef* temp = new ::tensorflow::SaverDef(*saver_def_); saver_def_ = NULL; return temp; } } ::tensorflow::SaverDef* MetaGraphDef::unsafe_arena_release_saver_def() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MetaGraphDef.saver_def) ::tensorflow::SaverDef* temp = saver_def_; saver_def_ = NULL; return temp; } void MetaGraphDef::_slow_set_allocated_saver_def( ::google::protobuf::Arena* message_arena, ::tensorflow::SaverDef** saver_def) { if (message_arena != NULL && ::google::protobuf::Arena::GetArena(*saver_def) == NULL) { message_arena->Own(*saver_def); } else if (message_arena != ::google::protobuf::Arena::GetArena(*saver_def)) { ::tensorflow::SaverDef* new_saver_def = ::google::protobuf::Arena::CreateMessage< ::tensorflow::SaverDef >( message_arena); new_saver_def->CopyFrom(**saver_def); *saver_def = new_saver_def; } } void MetaGraphDef::unsafe_arena_set_allocated_saver_def( ::tensorflow::SaverDef* saver_def) { if (GetArenaNoVirtual() == NULL) { delete saver_def_; } saver_def_ = saver_def; if (saver_def) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.saver_def) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int MetaGraphDef::kMetaInfoDefFieldNumber; const int MetaGraphDef::kGraphDefFieldNumber; const int MetaGraphDef::kSaverDefFieldNumber; const int MetaGraphDef::kCollectionDefFieldNumber; const int MetaGraphDef::kSignatureDefFieldNumber; const int MetaGraphDef::kAssetFileDefFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 MetaGraphDef::MetaGraphDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.MetaGraphDef) } MetaGraphDef::MetaGraphDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), collection_def_(arena), signature_def_(arena), asset_file_def_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.MetaGraphDef) } void MetaGraphDef::InitAsDefaultInstance() { meta_info_def_ = const_cast< ::tensorflow::MetaGraphDef_MetaInfoDef*>( ::tensorflow::MetaGraphDef_MetaInfoDef::internal_default_instance()); graph_def_ = const_cast< ::tensorflow::GraphDef*>( ::tensorflow::GraphDef::internal_default_instance()); saver_def_ = const_cast< ::tensorflow::SaverDef*>( ::tensorflow::SaverDef::internal_default_instance()); } MetaGraphDef::MetaGraphDef(const MetaGraphDef& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.MetaGraphDef) } void MetaGraphDef::SharedCtor() { collection_def_.SetAssignDescriptorCallback( protobuf_AssignDescriptorsOnce); collection_def_.SetEntryDescriptor( &::tensorflow::MetaGraphDef_CollectionDefEntry_descriptor_); signature_def_.SetAssignDescriptorCallback( protobuf_AssignDescriptorsOnce); signature_def_.SetEntryDescriptor( &::tensorflow::MetaGraphDef_SignatureDefEntry_descriptor_); meta_info_def_ = NULL; graph_def_ = NULL; saver_def_ = NULL; _cached_size_ = 0; } MetaGraphDef::~MetaGraphDef() { // @@protoc_insertion_point(destructor:tensorflow.MetaGraphDef) SharedDtor(); } void MetaGraphDef::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } if (this != &MetaGraphDef_default_instance_.get()) { delete meta_info_def_; delete graph_def_; delete saver_def_; } } void MetaGraphDef::ArenaDtor(void* object) { MetaGraphDef* _this = reinterpret_cast< MetaGraphDef* >(object); (void)_this; } void MetaGraphDef::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void MetaGraphDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* MetaGraphDef::descriptor() { protobuf_AssignDescriptorsOnce(); return MetaGraphDef_descriptor_; } const MetaGraphDef& MetaGraphDef::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<MetaGraphDef> MetaGraphDef_default_instance_; MetaGraphDef* MetaGraphDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<MetaGraphDef>(arena); } void MetaGraphDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.MetaGraphDef) if (GetArenaNoVirtual() == NULL && meta_info_def_ != NULL) delete meta_info_def_; meta_info_def_ = NULL; if (GetArenaNoVirtual() == NULL && graph_def_ != NULL) delete graph_def_; graph_def_ = NULL; if (GetArenaNoVirtual() == NULL && saver_def_ != NULL) delete saver_def_; saver_def_ = NULL; collection_def_.Clear(); signature_def_.Clear(); asset_file_def_.Clear(); } bool MetaGraphDef::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.MetaGraphDef) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_meta_info_def())); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_graph_def; break; } // optional .tensorflow.GraphDef graph_def = 2; case 2: { if (tag == 18) { parse_graph_def: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_graph_def())); } else { goto handle_unusual; } if (input->ExpectTag(26)) goto parse_saver_def; break; } // optional .tensorflow.SaverDef saver_def = 3; case 3: { if (tag == 26) { parse_saver_def: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_saver_def())); } else { goto handle_unusual; } if (input->ExpectTag(34)) goto parse_collection_def; break; } // map<string, .tensorflow.CollectionDef> collection_def = 4; case 4: { if (tag == 34) { parse_collection_def: DO_(input->IncrementRecursionDepth()); parse_loop_collection_def: MetaGraphDef_CollectionDefEntry::Parser< ::google::protobuf::internal::MapField< ::std::string, ::tensorflow::CollectionDef, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 >, ::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef > > parser(&collection_def_); DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, &parser)); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( parser.key().data(), parser.key().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.MetaGraphDef.CollectionDefEntry.key")); } else { goto handle_unusual; } if (input->ExpectTag(34)) goto parse_loop_collection_def; if (input->ExpectTag(42)) goto parse_loop_signature_def; input->UnsafeDecrementRecursionDepth(); break; } // map<string, .tensorflow.SignatureDef> signature_def = 5; case 5: { if (tag == 42) { DO_(input->IncrementRecursionDepth()); parse_loop_signature_def: MetaGraphDef_SignatureDefEntry::Parser< ::google::protobuf::internal::MapField< ::std::string, ::tensorflow::SignatureDef, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 >, ::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef > > parser(&signature_def_); DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, &parser)); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( parser.key().data(), parser.key().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.MetaGraphDef.SignatureDefEntry.key")); } else { goto handle_unusual; } if (input->ExpectTag(42)) goto parse_loop_signature_def; if (input->ExpectTag(50)) goto parse_loop_asset_file_def; input->UnsafeDecrementRecursionDepth(); break; } // repeated .tensorflow.AssetFileDef asset_file_def = 6; case 6: { if (tag == 50) { DO_(input->IncrementRecursionDepth()); parse_loop_asset_file_def: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( input, add_asset_file_def())); } else { goto handle_unusual; } if (input->ExpectTag(50)) goto parse_loop_asset_file_def; input->UnsafeDecrementRecursionDepth(); if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.MetaGraphDef) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.MetaGraphDef) return false; #undef DO_ } void MetaGraphDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.MetaGraphDef) // optional .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; if (this->has_meta_info_def()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->meta_info_def_, output); } // optional .tensorflow.GraphDef graph_def = 2; if (this->has_graph_def()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *this->graph_def_, output); } // optional .tensorflow.SaverDef saver_def = 3; if (this->has_saver_def()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->saver_def_, output); } // map<string, .tensorflow.CollectionDef> collection_def = 4; if (!this->collection_def().empty()) { typedef ::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), p->first.length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.CollectionDefEntry.key"); } }; if (output->IsSerializationDeterminstic() && this->collection_def().size() > 1) { ::google::protobuf::scoped_array<SortItem> items( new SortItem[this->collection_def().size()]); typedef ::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef >::const_iterator it = this->collection_def().begin(); it != this->collection_def().end(); ++it, ++n) { items[n] = SortItem(&*it); } ::std::sort(&items[0], &items[n], Less()); ::google::protobuf::scoped_ptr<MetaGraphDef_CollectionDefEntry> entry; for (size_type i = 0; i < n; i++) { entry.reset(collection_def_.NewEntryWrapper( items[i]->first, items[i]->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[i]); } } else { ::google::protobuf::scoped_ptr<MetaGraphDef_CollectionDefEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef >::const_iterator it = this->collection_def().begin(); it != this->collection_def().end(); ++it) { entry.reset(collection_def_.NewEntryWrapper( it->first, it->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } // map<string, .tensorflow.SignatureDef> signature_def = 5; if (!this->signature_def().empty()) { typedef ::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), p->first.length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.SignatureDefEntry.key"); } }; if (output->IsSerializationDeterminstic() && this->signature_def().size() > 1) { ::google::protobuf::scoped_array<SortItem> items( new SortItem[this->signature_def().size()]); typedef ::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef >::const_iterator it = this->signature_def().begin(); it != this->signature_def().end(); ++it, ++n) { items[n] = SortItem(&*it); } ::std::sort(&items[0], &items[n], Less()); ::google::protobuf::scoped_ptr<MetaGraphDef_SignatureDefEntry> entry; for (size_type i = 0; i < n; i++) { entry.reset(signature_def_.NewEntryWrapper( items[i]->first, items[i]->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[i]); } } else { ::google::protobuf::scoped_ptr<MetaGraphDef_SignatureDefEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef >::const_iterator it = this->signature_def().begin(); it != this->signature_def().end(); ++it) { entry.reset(signature_def_.NewEntryWrapper( it->first, it->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } // repeated .tensorflow.AssetFileDef asset_file_def = 6; for (unsigned int i = 0, n = this->asset_file_def_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, this->asset_file_def(i), output); } // @@protoc_insertion_point(serialize_end:tensorflow.MetaGraphDef) } ::google::protobuf::uint8* MetaGraphDef::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.MetaGraphDef) // optional .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; if (this->has_meta_info_def()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, *this->meta_info_def_, false, target); } // optional .tensorflow.GraphDef graph_def = 2; if (this->has_graph_def()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 2, *this->graph_def_, false, target); } // optional .tensorflow.SaverDef saver_def = 3; if (this->has_saver_def()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 3, *this->saver_def_, false, target); } // map<string, .tensorflow.CollectionDef> collection_def = 4; if (!this->collection_def().empty()) { typedef ::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), p->first.length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.CollectionDefEntry.key"); } }; if (deterministic && this->collection_def().size() > 1) { ::google::protobuf::scoped_array<SortItem> items( new SortItem[this->collection_def().size()]); typedef ::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef >::const_iterator it = this->collection_def().begin(); it != this->collection_def().end(); ++it, ++n) { items[n] = SortItem(&*it); } ::std::sort(&items[0], &items[n], Less()); ::google::protobuf::scoped_ptr<MetaGraphDef_CollectionDefEntry> entry; for (size_type i = 0; i < n; i++) { entry.reset(collection_def_.NewEntryWrapper( items[i]->first, items[i]->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 4, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[i]); } } else { ::google::protobuf::scoped_ptr<MetaGraphDef_CollectionDefEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef >::const_iterator it = this->collection_def().begin(); it != this->collection_def().end(); ++it) { entry.reset(collection_def_.NewEntryWrapper( it->first, it->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 4, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } // map<string, .tensorflow.SignatureDef> signature_def = 5; if (!this->signature_def().empty()) { typedef ::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), p->first.length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.MetaGraphDef.SignatureDefEntry.key"); } }; if (deterministic && this->signature_def().size() > 1) { ::google::protobuf::scoped_array<SortItem> items( new SortItem[this->signature_def().size()]); typedef ::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef >::const_iterator it = this->signature_def().begin(); it != this->signature_def().end(); ++it, ++n) { items[n] = SortItem(&*it); } ::std::sort(&items[0], &items[n], Less()); ::google::protobuf::scoped_ptr<MetaGraphDef_SignatureDefEntry> entry; for (size_type i = 0; i < n; i++) { entry.reset(signature_def_.NewEntryWrapper( items[i]->first, items[i]->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 5, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[i]); } } else { ::google::protobuf::scoped_ptr<MetaGraphDef_SignatureDefEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef >::const_iterator it = this->signature_def().begin(); it != this->signature_def().end(); ++it) { entry.reset(signature_def_.NewEntryWrapper( it->first, it->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 5, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } // repeated .tensorflow.AssetFileDef asset_file_def = 6; for (unsigned int i = 0, n = this->asset_file_def_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 6, this->asset_file_def(i), false, target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.MetaGraphDef) return target; } size_t MetaGraphDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.MetaGraphDef) size_t total_size = 0; // optional .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; if (this->has_meta_info_def()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->meta_info_def_); } // optional .tensorflow.GraphDef graph_def = 2; if (this->has_graph_def()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->graph_def_); } // optional .tensorflow.SaverDef saver_def = 3; if (this->has_saver_def()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->saver_def_); } // map<string, .tensorflow.CollectionDef> collection_def = 4; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->collection_def_size()); { ::google::protobuf::scoped_ptr<MetaGraphDef_CollectionDefEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef >::const_iterator it = this->collection_def().begin(); it != this->collection_def().end(); ++it) { if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } entry.reset(collection_def_.NewEntryWrapper(it->first, it->second)); total_size += ::google::protobuf::internal::WireFormatLite:: MessageSizeNoVirtual(*entry); } if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } } // map<string, .tensorflow.SignatureDef> signature_def = 5; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->signature_def_size()); { ::google::protobuf::scoped_ptr<MetaGraphDef_SignatureDefEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef >::const_iterator it = this->signature_def().begin(); it != this->signature_def().end(); ++it) { if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } entry.reset(signature_def_.NewEntryWrapper(it->first, it->second)); total_size += ::google::protobuf::internal::WireFormatLite:: MessageSizeNoVirtual(*entry); } if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } } // repeated .tensorflow.AssetFileDef asset_file_def = 6; { unsigned int count = this->asset_file_def_size(); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->asset_file_def(i)); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void MetaGraphDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.MetaGraphDef) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const MetaGraphDef* source = ::google::protobuf::internal::DynamicCastToGenerated<const MetaGraphDef>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.MetaGraphDef) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.MetaGraphDef) UnsafeMergeFrom(*source); } } void MetaGraphDef::MergeFrom(const MetaGraphDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.MetaGraphDef) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void MetaGraphDef::UnsafeMergeFrom(const MetaGraphDef& from) { GOOGLE_DCHECK(&from != this); collection_def_.MergeFrom(from.collection_def_); signature_def_.MergeFrom(from.signature_def_); asset_file_def_.MergeFrom(from.asset_file_def_); if (from.has_meta_info_def()) { mutable_meta_info_def()->::tensorflow::MetaGraphDef_MetaInfoDef::MergeFrom(from.meta_info_def()); } if (from.has_graph_def()) { mutable_graph_def()->::tensorflow::GraphDef::MergeFrom(from.graph_def()); } if (from.has_saver_def()) { mutable_saver_def()->::tensorflow::SaverDef::MergeFrom(from.saver_def()); } } void MetaGraphDef::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.MetaGraphDef) if (&from == this) return; Clear(); MergeFrom(from); } void MetaGraphDef::CopyFrom(const MetaGraphDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.MetaGraphDef) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool MetaGraphDef::IsInitialized() const { return true; } void MetaGraphDef::Swap(MetaGraphDef* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { MetaGraphDef temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void MetaGraphDef::UnsafeArenaSwap(MetaGraphDef* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void MetaGraphDef::InternalSwap(MetaGraphDef* other) { std::swap(meta_info_def_, other->meta_info_def_); std::swap(graph_def_, other->graph_def_); std::swap(saver_def_, other->saver_def_); collection_def_.Swap(&other->collection_def_); signature_def_.Swap(&other->signature_def_); asset_file_def_.UnsafeArenaSwap(&other->asset_file_def_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata MetaGraphDef::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = MetaGraphDef_descriptor_; metadata.reflection = MetaGraphDef_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // MetaGraphDef_MetaInfoDef // optional string meta_graph_version = 1; void MetaGraphDef_MetaInfoDef::clear_meta_graph_version() { meta_graph_version_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& MetaGraphDef_MetaInfoDef::meta_graph_version() const { // @@protoc_insertion_point(field_get:tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version) return meta_graph_version_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void MetaGraphDef_MetaInfoDef::set_meta_graph_version(const ::std::string& value) { meta_graph_version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version) } void MetaGraphDef_MetaInfoDef::set_meta_graph_version(const char* value) { meta_graph_version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version) } void MetaGraphDef_MetaInfoDef::set_meta_graph_version(const char* value, size_t size) { meta_graph_version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version) } ::std::string* MetaGraphDef_MetaInfoDef::mutable_meta_graph_version() { // @@protoc_insertion_point(field_mutable:tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version) return meta_graph_version_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* MetaGraphDef_MetaInfoDef::release_meta_graph_version() { // @@protoc_insertion_point(field_release:tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version) return meta_graph_version_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* MetaGraphDef_MetaInfoDef::unsafe_arena_release_meta_graph_version() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return meta_graph_version_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void MetaGraphDef_MetaInfoDef::set_allocated_meta_graph_version(::std::string* meta_graph_version) { if (meta_graph_version != NULL) { } else { } meta_graph_version_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), meta_graph_version, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version) } void MetaGraphDef_MetaInfoDef::unsafe_arena_set_allocated_meta_graph_version( ::std::string* meta_graph_version) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (meta_graph_version != NULL) { } else { } meta_graph_version_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), meta_graph_version, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.meta_graph_version) } // optional .tensorflow.OpList stripped_op_list = 2; bool MetaGraphDef_MetaInfoDef::has_stripped_op_list() const { return this != internal_default_instance() && stripped_op_list_ != NULL; } void MetaGraphDef_MetaInfoDef::clear_stripped_op_list() { if (GetArenaNoVirtual() == NULL && stripped_op_list_ != NULL) delete stripped_op_list_; stripped_op_list_ = NULL; } const ::tensorflow::OpList& MetaGraphDef_MetaInfoDef::stripped_op_list() const { // @@protoc_insertion_point(field_get:tensorflow.MetaGraphDef.MetaInfoDef.stripped_op_list) return stripped_op_list_ != NULL ? *stripped_op_list_ : *::tensorflow::OpList::internal_default_instance(); } ::tensorflow::OpList* MetaGraphDef_MetaInfoDef::mutable_stripped_op_list() { if (stripped_op_list_ == NULL) { _slow_mutable_stripped_op_list(); } // @@protoc_insertion_point(field_mutable:tensorflow.MetaGraphDef.MetaInfoDef.stripped_op_list) return stripped_op_list_; } ::tensorflow::OpList* MetaGraphDef_MetaInfoDef::release_stripped_op_list() { // @@protoc_insertion_point(field_release:tensorflow.MetaGraphDef.MetaInfoDef.stripped_op_list) if (GetArenaNoVirtual() != NULL) { return _slow_release_stripped_op_list(); } else { ::tensorflow::OpList* temp = stripped_op_list_; stripped_op_list_ = NULL; return temp; } } void MetaGraphDef_MetaInfoDef::set_allocated_stripped_op_list(::tensorflow::OpList* stripped_op_list) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete stripped_op_list_; } if (stripped_op_list != NULL) { _slow_set_allocated_stripped_op_list(message_arena, &stripped_op_list); } stripped_op_list_ = stripped_op_list; if (stripped_op_list) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.stripped_op_list) } // optional .google.protobuf.Any any_info = 3; bool MetaGraphDef_MetaInfoDef::has_any_info() const { return this != internal_default_instance() && any_info_ != NULL; } void MetaGraphDef_MetaInfoDef::clear_any_info() { if (GetArenaNoVirtual() == NULL && any_info_ != NULL) delete any_info_; any_info_ = NULL; } const ::google::protobuf::Any& MetaGraphDef_MetaInfoDef::any_info() const { // @@protoc_insertion_point(field_get:tensorflow.MetaGraphDef.MetaInfoDef.any_info) return any_info_ != NULL ? *any_info_ : *::google::protobuf::Any::internal_default_instance(); } ::google::protobuf::Any* MetaGraphDef_MetaInfoDef::mutable_any_info() { if (any_info_ == NULL) { _slow_mutable_any_info(); } // @@protoc_insertion_point(field_mutable:tensorflow.MetaGraphDef.MetaInfoDef.any_info) return any_info_; } ::google::protobuf::Any* MetaGraphDef_MetaInfoDef::release_any_info() { // @@protoc_insertion_point(field_release:tensorflow.MetaGraphDef.MetaInfoDef.any_info) if (GetArenaNoVirtual() != NULL) { return _slow_release_any_info(); } else { ::google::protobuf::Any* temp = any_info_; any_info_ = NULL; return temp; } } void MetaGraphDef_MetaInfoDef::set_allocated_any_info(::google::protobuf::Any* any_info) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete any_info_; } if (any_info != NULL) { if (message_arena != NULL) { message_arena->Own(any_info); } } any_info_ = any_info; if (any_info) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.any_info) } // repeated string tags = 4; int MetaGraphDef_MetaInfoDef::tags_size() const { return tags_.size(); } void MetaGraphDef_MetaInfoDef::clear_tags() { tags_.Clear(); } const ::std::string& MetaGraphDef_MetaInfoDef::tags(int index) const { // @@protoc_insertion_point(field_get:tensorflow.MetaGraphDef.MetaInfoDef.tags) return tags_.Get(index); } ::std::string* MetaGraphDef_MetaInfoDef::mutable_tags(int index) { // @@protoc_insertion_point(field_mutable:tensorflow.MetaGraphDef.MetaInfoDef.tags) return tags_.Mutable(index); } void MetaGraphDef_MetaInfoDef::set_tags(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:tensorflow.MetaGraphDef.MetaInfoDef.tags) tags_.Mutable(index)->assign(value); } void MetaGraphDef_MetaInfoDef::set_tags(int index, const char* value) { tags_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tensorflow.MetaGraphDef.MetaInfoDef.tags) } void MetaGraphDef_MetaInfoDef::set_tags(int index, const char* value, size_t size) { tags_.Mutable(index)->assign( reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_set_pointer:tensorflow.MetaGraphDef.MetaInfoDef.tags) } ::std::string* MetaGraphDef_MetaInfoDef::add_tags() { // @@protoc_insertion_point(field_add_mutable:tensorflow.MetaGraphDef.MetaInfoDef.tags) return tags_.Add(); } void MetaGraphDef_MetaInfoDef::add_tags(const ::std::string& value) { tags_.Add()->assign(value); // @@protoc_insertion_point(field_add:tensorflow.MetaGraphDef.MetaInfoDef.tags) } void MetaGraphDef_MetaInfoDef::add_tags(const char* value) { tags_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tensorflow.MetaGraphDef.MetaInfoDef.tags) } void MetaGraphDef_MetaInfoDef::add_tags(const char* value, size_t size) { tags_.Add()->assign(reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_add_pointer:tensorflow.MetaGraphDef.MetaInfoDef.tags) } const ::google::protobuf::RepeatedPtrField< ::std::string>& MetaGraphDef_MetaInfoDef::tags() const { // @@protoc_insertion_point(field_list:tensorflow.MetaGraphDef.MetaInfoDef.tags) return tags_; } ::google::protobuf::RepeatedPtrField< ::std::string>* MetaGraphDef_MetaInfoDef::mutable_tags() { // @@protoc_insertion_point(field_mutable_list:tensorflow.MetaGraphDef.MetaInfoDef.tags) return &tags_; } // optional string tensorflow_version = 5; void MetaGraphDef_MetaInfoDef::clear_tensorflow_version() { tensorflow_version_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& MetaGraphDef_MetaInfoDef::tensorflow_version() const { // @@protoc_insertion_point(field_get:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version) return tensorflow_version_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void MetaGraphDef_MetaInfoDef::set_tensorflow_version(const ::std::string& value) { tensorflow_version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version) } void MetaGraphDef_MetaInfoDef::set_tensorflow_version(const char* value) { tensorflow_version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version) } void MetaGraphDef_MetaInfoDef::set_tensorflow_version(const char* value, size_t size) { tensorflow_version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version) } ::std::string* MetaGraphDef_MetaInfoDef::mutable_tensorflow_version() { // @@protoc_insertion_point(field_mutable:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version) return tensorflow_version_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* MetaGraphDef_MetaInfoDef::release_tensorflow_version() { // @@protoc_insertion_point(field_release:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version) return tensorflow_version_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* MetaGraphDef_MetaInfoDef::unsafe_arena_release_tensorflow_version() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return tensorflow_version_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void MetaGraphDef_MetaInfoDef::set_allocated_tensorflow_version(::std::string* tensorflow_version) { if (tensorflow_version != NULL) { } else { } tensorflow_version_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensorflow_version, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version) } void MetaGraphDef_MetaInfoDef::unsafe_arena_set_allocated_tensorflow_version( ::std::string* tensorflow_version) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (tensorflow_version != NULL) { } else { } tensorflow_version_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensorflow_version, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_version) } // optional string tensorflow_git_version = 6; void MetaGraphDef_MetaInfoDef::clear_tensorflow_git_version() { tensorflow_git_version_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& MetaGraphDef_MetaInfoDef::tensorflow_git_version() const { // @@protoc_insertion_point(field_get:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version) return tensorflow_git_version_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void MetaGraphDef_MetaInfoDef::set_tensorflow_git_version(const ::std::string& value) { tensorflow_git_version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version) } void MetaGraphDef_MetaInfoDef::set_tensorflow_git_version(const char* value) { tensorflow_git_version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version) } void MetaGraphDef_MetaInfoDef::set_tensorflow_git_version(const char* value, size_t size) { tensorflow_git_version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version) } ::std::string* MetaGraphDef_MetaInfoDef::mutable_tensorflow_git_version() { // @@protoc_insertion_point(field_mutable:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version) return tensorflow_git_version_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* MetaGraphDef_MetaInfoDef::release_tensorflow_git_version() { // @@protoc_insertion_point(field_release:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version) return tensorflow_git_version_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* MetaGraphDef_MetaInfoDef::unsafe_arena_release_tensorflow_git_version() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return tensorflow_git_version_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void MetaGraphDef_MetaInfoDef::set_allocated_tensorflow_git_version(::std::string* tensorflow_git_version) { if (tensorflow_git_version != NULL) { } else { } tensorflow_git_version_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensorflow_git_version, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version) } void MetaGraphDef_MetaInfoDef::unsafe_arena_set_allocated_tensorflow_git_version( ::std::string* tensorflow_git_version) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (tensorflow_git_version != NULL) { } else { } tensorflow_git_version_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensorflow_git_version, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetaGraphDef.MetaInfoDef.tensorflow_git_version) } inline const MetaGraphDef_MetaInfoDef* MetaGraphDef_MetaInfoDef::internal_default_instance() { return &MetaGraphDef_MetaInfoDef_default_instance_.get(); } // ------------------------------------------------------------------- // MetaGraphDef // optional .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; bool MetaGraphDef::has_meta_info_def() const { return this != internal_default_instance() && meta_info_def_ != NULL; } void MetaGraphDef::clear_meta_info_def() { if (GetArenaNoVirtual() == NULL && meta_info_def_ != NULL) delete meta_info_def_; meta_info_def_ = NULL; } const ::tensorflow::MetaGraphDef_MetaInfoDef& MetaGraphDef::meta_info_def() const { // @@protoc_insertion_point(field_get:tensorflow.MetaGraphDef.meta_info_def) return meta_info_def_ != NULL ? *meta_info_def_ : *::tensorflow::MetaGraphDef_MetaInfoDef::internal_default_instance(); } ::tensorflow::MetaGraphDef_MetaInfoDef* MetaGraphDef::mutable_meta_info_def() { if (meta_info_def_ == NULL) { _slow_mutable_meta_info_def(); } // @@protoc_insertion_point(field_mutable:tensorflow.MetaGraphDef.meta_info_def) return meta_info_def_; } ::tensorflow::MetaGraphDef_MetaInfoDef* MetaGraphDef::release_meta_info_def() { // @@protoc_insertion_point(field_release:tensorflow.MetaGraphDef.meta_info_def) if (GetArenaNoVirtual() != NULL) { return _slow_release_meta_info_def(); } else { ::tensorflow::MetaGraphDef_MetaInfoDef* temp = meta_info_def_; meta_info_def_ = NULL; return temp; } } void MetaGraphDef::set_allocated_meta_info_def(::tensorflow::MetaGraphDef_MetaInfoDef* meta_info_def) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete meta_info_def_; } if (meta_info_def != NULL) { _slow_set_allocated_meta_info_def(message_arena, &meta_info_def); } meta_info_def_ = meta_info_def; if (meta_info_def) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.MetaGraphDef.meta_info_def) } // optional .tensorflow.GraphDef graph_def = 2; bool MetaGraphDef::has_graph_def() const { return this != internal_default_instance() && graph_def_ != NULL; } void MetaGraphDef::clear_graph_def() { if (GetArenaNoVirtual() == NULL && graph_def_ != NULL) delete graph_def_; graph_def_ = NULL; } const ::tensorflow::GraphDef& MetaGraphDef::graph_def() const { // @@protoc_insertion_point(field_get:tensorflow.MetaGraphDef.graph_def) return graph_def_ != NULL ? *graph_def_ : *::tensorflow::GraphDef::internal_default_instance(); } ::tensorflow::GraphDef* MetaGraphDef::mutable_graph_def() { if (graph_def_ == NULL) { _slow_mutable_graph_def(); } // @@protoc_insertion_point(field_mutable:tensorflow.MetaGraphDef.graph_def) return graph_def_; } ::tensorflow::GraphDef* MetaGraphDef::release_graph_def() { // @@protoc_insertion_point(field_release:tensorflow.MetaGraphDef.graph_def) if (GetArenaNoVirtual() != NULL) { return _slow_release_graph_def(); } else { ::tensorflow::GraphDef* temp = graph_def_; graph_def_ = NULL; return temp; } } void MetaGraphDef::set_allocated_graph_def(::tensorflow::GraphDef* graph_def) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete graph_def_; } if (graph_def != NULL) { _slow_set_allocated_graph_def(message_arena, &graph_def); } graph_def_ = graph_def; if (graph_def) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.MetaGraphDef.graph_def) } // optional .tensorflow.SaverDef saver_def = 3; bool MetaGraphDef::has_saver_def() const { return this != internal_default_instance() && saver_def_ != NULL; } void MetaGraphDef::clear_saver_def() { if (GetArenaNoVirtual() == NULL && saver_def_ != NULL) delete saver_def_; saver_def_ = NULL; } const ::tensorflow::SaverDef& MetaGraphDef::saver_def() const { // @@protoc_insertion_point(field_get:tensorflow.MetaGraphDef.saver_def) return saver_def_ != NULL ? *saver_def_ : *::tensorflow::SaverDef::internal_default_instance(); } ::tensorflow::SaverDef* MetaGraphDef::mutable_saver_def() { if (saver_def_ == NULL) { _slow_mutable_saver_def(); } // @@protoc_insertion_point(field_mutable:tensorflow.MetaGraphDef.saver_def) return saver_def_; } ::tensorflow::SaverDef* MetaGraphDef::release_saver_def() { // @@protoc_insertion_point(field_release:tensorflow.MetaGraphDef.saver_def) if (GetArenaNoVirtual() != NULL) { return _slow_release_saver_def(); } else { ::tensorflow::SaverDef* temp = saver_def_; saver_def_ = NULL; return temp; } } void MetaGraphDef::set_allocated_saver_def(::tensorflow::SaverDef* saver_def) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete saver_def_; } if (saver_def != NULL) { _slow_set_allocated_saver_def(message_arena, &saver_def); } saver_def_ = saver_def; if (saver_def) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.MetaGraphDef.saver_def) } // map<string, .tensorflow.CollectionDef> collection_def = 4; int MetaGraphDef::collection_def_size() const { return collection_def_.size(); } void MetaGraphDef::clear_collection_def() { collection_def_.Clear(); } const ::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef >& MetaGraphDef::collection_def() const { // @@protoc_insertion_point(field_map:tensorflow.MetaGraphDef.collection_def) return collection_def_.GetMap(); } ::google::protobuf::Map< ::std::string, ::tensorflow::CollectionDef >* MetaGraphDef::mutable_collection_def() { // @@protoc_insertion_point(field_mutable_map:tensorflow.MetaGraphDef.collection_def) return collection_def_.MutableMap(); } // map<string, .tensorflow.SignatureDef> signature_def = 5; int MetaGraphDef::signature_def_size() const { return signature_def_.size(); } void MetaGraphDef::clear_signature_def() { signature_def_.Clear(); } const ::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef >& MetaGraphDef::signature_def() const { // @@protoc_insertion_point(field_map:tensorflow.MetaGraphDef.signature_def) return signature_def_.GetMap(); } ::google::protobuf::Map< ::std::string, ::tensorflow::SignatureDef >* MetaGraphDef::mutable_signature_def() { // @@protoc_insertion_point(field_mutable_map:tensorflow.MetaGraphDef.signature_def) return signature_def_.MutableMap(); } // repeated .tensorflow.AssetFileDef asset_file_def = 6; int MetaGraphDef::asset_file_def_size() const { return asset_file_def_.size(); } void MetaGraphDef::clear_asset_file_def() { asset_file_def_.Clear(); } const ::tensorflow::AssetFileDef& MetaGraphDef::asset_file_def(int index) const { // @@protoc_insertion_point(field_get:tensorflow.MetaGraphDef.asset_file_def) return asset_file_def_.Get(index); } ::tensorflow::AssetFileDef* MetaGraphDef::mutable_asset_file_def(int index) { // @@protoc_insertion_point(field_mutable:tensorflow.MetaGraphDef.asset_file_def) return asset_file_def_.Mutable(index); } ::tensorflow::AssetFileDef* MetaGraphDef::add_asset_file_def() { // @@protoc_insertion_point(field_add:tensorflow.MetaGraphDef.asset_file_def) return asset_file_def_.Add(); } ::google::protobuf::RepeatedPtrField< ::tensorflow::AssetFileDef >* MetaGraphDef::mutable_asset_file_def() { // @@protoc_insertion_point(field_mutable_list:tensorflow.MetaGraphDef.asset_file_def) return &asset_file_def_; } const ::google::protobuf::RepeatedPtrField< ::tensorflow::AssetFileDef >& MetaGraphDef::asset_file_def() const { // @@protoc_insertion_point(field_list:tensorflow.MetaGraphDef.asset_file_def) return asset_file_def_; } inline const MetaGraphDef* MetaGraphDef::internal_default_instance() { return &MetaGraphDef_default_instance_.get(); } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int CollectionDef_NodeList::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CollectionDef_NodeList::CollectionDef_NodeList() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.CollectionDef.NodeList) } CollectionDef_NodeList::CollectionDef_NodeList(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), value_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef.NodeList) } void CollectionDef_NodeList::InitAsDefaultInstance() { } CollectionDef_NodeList::CollectionDef_NodeList(const CollectionDef_NodeList& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef.NodeList) } void CollectionDef_NodeList::SharedCtor() { _cached_size_ = 0; } CollectionDef_NodeList::~CollectionDef_NodeList() { // @@protoc_insertion_point(destructor:tensorflow.CollectionDef.NodeList) SharedDtor(); } void CollectionDef_NodeList::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } } void CollectionDef_NodeList::ArenaDtor(void* object) { CollectionDef_NodeList* _this = reinterpret_cast< CollectionDef_NodeList* >(object); (void)_this; } void CollectionDef_NodeList::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void CollectionDef_NodeList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* CollectionDef_NodeList::descriptor() { protobuf_AssignDescriptorsOnce(); return CollectionDef_NodeList_descriptor_; } const CollectionDef_NodeList& CollectionDef_NodeList::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<CollectionDef_NodeList> CollectionDef_NodeList_default_instance_; CollectionDef_NodeList* CollectionDef_NodeList::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<CollectionDef_NodeList>(arena); } void CollectionDef_NodeList::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef.NodeList) value_.Clear(); } bool CollectionDef_NodeList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef.NodeList) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated string value = 1; case 1: { if (tag == 10) { parse_value: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_value())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->value(this->value_size() - 1).data(), this->value(this->value_size() - 1).length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.CollectionDef.NodeList.value")); } else { goto handle_unusual; } if (input->ExpectTag(10)) goto parse_value; if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef.NodeList) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef.NodeList) return false; #undef DO_ } void CollectionDef_NodeList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef.NodeList) // repeated string value = 1; for (int i = 0; i < this->value_size(); i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->value(i).data(), this->value(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.CollectionDef.NodeList.value"); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->value(i), output); } // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef.NodeList) } ::google::protobuf::uint8* CollectionDef_NodeList::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef.NodeList) // repeated string value = 1; for (int i = 0; i < this->value_size(); i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->value(i).data(), this->value(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.CollectionDef.NodeList.value"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(1, this->value(i), target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef.NodeList) return target; } size_t CollectionDef_NodeList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef.NodeList) size_t total_size = 0; // repeated string value = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->value_size()); for (int i = 0; i < this->value_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->value(i)); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void CollectionDef_NodeList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef.NodeList) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const CollectionDef_NodeList* source = ::google::protobuf::internal::DynamicCastToGenerated<const CollectionDef_NodeList>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef.NodeList) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef.NodeList) UnsafeMergeFrom(*source); } } void CollectionDef_NodeList::MergeFrom(const CollectionDef_NodeList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef.NodeList) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void CollectionDef_NodeList::UnsafeMergeFrom(const CollectionDef_NodeList& from) { GOOGLE_DCHECK(&from != this); value_.UnsafeMergeFrom(from.value_); } void CollectionDef_NodeList::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef.NodeList) if (&from == this) return; Clear(); MergeFrom(from); } void CollectionDef_NodeList::CopyFrom(const CollectionDef_NodeList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef.NodeList) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool CollectionDef_NodeList::IsInitialized() const { return true; } void CollectionDef_NodeList::Swap(CollectionDef_NodeList* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { CollectionDef_NodeList temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void CollectionDef_NodeList::UnsafeArenaSwap(CollectionDef_NodeList* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void CollectionDef_NodeList::InternalSwap(CollectionDef_NodeList* other) { value_.UnsafeArenaSwap(&other->value_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata CollectionDef_NodeList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = CollectionDef_NodeList_descriptor_; metadata.reflection = CollectionDef_NodeList_reflection_; return metadata; } // ------------------------------------------------------------------- #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int CollectionDef_BytesList::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CollectionDef_BytesList::CollectionDef_BytesList() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.CollectionDef.BytesList) } CollectionDef_BytesList::CollectionDef_BytesList(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), value_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef.BytesList) } void CollectionDef_BytesList::InitAsDefaultInstance() { } CollectionDef_BytesList::CollectionDef_BytesList(const CollectionDef_BytesList& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef.BytesList) } void CollectionDef_BytesList::SharedCtor() { _cached_size_ = 0; } CollectionDef_BytesList::~CollectionDef_BytesList() { // @@protoc_insertion_point(destructor:tensorflow.CollectionDef.BytesList) SharedDtor(); } void CollectionDef_BytesList::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } } void CollectionDef_BytesList::ArenaDtor(void* object) { CollectionDef_BytesList* _this = reinterpret_cast< CollectionDef_BytesList* >(object); (void)_this; } void CollectionDef_BytesList::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void CollectionDef_BytesList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* CollectionDef_BytesList::descriptor() { protobuf_AssignDescriptorsOnce(); return CollectionDef_BytesList_descriptor_; } const CollectionDef_BytesList& CollectionDef_BytesList::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<CollectionDef_BytesList> CollectionDef_BytesList_default_instance_; CollectionDef_BytesList* CollectionDef_BytesList::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<CollectionDef_BytesList>(arena); } void CollectionDef_BytesList::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef.BytesList) value_.Clear(); } bool CollectionDef_BytesList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef.BytesList) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated bytes value = 1; case 1: { if (tag == 10) { parse_value: DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->add_value())); } else { goto handle_unusual; } if (input->ExpectTag(10)) goto parse_value; if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef.BytesList) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef.BytesList) return false; #undef DO_ } void CollectionDef_BytesList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef.BytesList) // repeated bytes value = 1; for (int i = 0; i < this->value_size(); i++) { ::google::protobuf::internal::WireFormatLite::WriteBytes( 1, this->value(i), output); } // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef.BytesList) } ::google::protobuf::uint8* CollectionDef_BytesList::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef.BytesList) // repeated bytes value = 1; for (int i = 0; i < this->value_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteBytesToArray(1, this->value(i), target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef.BytesList) return target; } size_t CollectionDef_BytesList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef.BytesList) size_t total_size = 0; // repeated bytes value = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->value_size()); for (int i = 0; i < this->value_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->value(i)); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void CollectionDef_BytesList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef.BytesList) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const CollectionDef_BytesList* source = ::google::protobuf::internal::DynamicCastToGenerated<const CollectionDef_BytesList>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef.BytesList) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef.BytesList) UnsafeMergeFrom(*source); } } void CollectionDef_BytesList::MergeFrom(const CollectionDef_BytesList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef.BytesList) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void CollectionDef_BytesList::UnsafeMergeFrom(const CollectionDef_BytesList& from) { GOOGLE_DCHECK(&from != this); value_.UnsafeMergeFrom(from.value_); } void CollectionDef_BytesList::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef.BytesList) if (&from == this) return; Clear(); MergeFrom(from); } void CollectionDef_BytesList::CopyFrom(const CollectionDef_BytesList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef.BytesList) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool CollectionDef_BytesList::IsInitialized() const { return true; } void CollectionDef_BytesList::Swap(CollectionDef_BytesList* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { CollectionDef_BytesList temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void CollectionDef_BytesList::UnsafeArenaSwap(CollectionDef_BytesList* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void CollectionDef_BytesList::InternalSwap(CollectionDef_BytesList* other) { value_.UnsafeArenaSwap(&other->value_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata CollectionDef_BytesList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = CollectionDef_BytesList_descriptor_; metadata.reflection = CollectionDef_BytesList_reflection_; return metadata; } // ------------------------------------------------------------------- #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int CollectionDef_Int64List::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CollectionDef_Int64List::CollectionDef_Int64List() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.CollectionDef.Int64List) } CollectionDef_Int64List::CollectionDef_Int64List(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), value_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef.Int64List) } void CollectionDef_Int64List::InitAsDefaultInstance() { } CollectionDef_Int64List::CollectionDef_Int64List(const CollectionDef_Int64List& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef.Int64List) } void CollectionDef_Int64List::SharedCtor() { _cached_size_ = 0; } CollectionDef_Int64List::~CollectionDef_Int64List() { // @@protoc_insertion_point(destructor:tensorflow.CollectionDef.Int64List) SharedDtor(); } void CollectionDef_Int64List::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } } void CollectionDef_Int64List::ArenaDtor(void* object) { CollectionDef_Int64List* _this = reinterpret_cast< CollectionDef_Int64List* >(object); (void)_this; } void CollectionDef_Int64List::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void CollectionDef_Int64List::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* CollectionDef_Int64List::descriptor() { protobuf_AssignDescriptorsOnce(); return CollectionDef_Int64List_descriptor_; } const CollectionDef_Int64List& CollectionDef_Int64List::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<CollectionDef_Int64List> CollectionDef_Int64List_default_instance_; CollectionDef_Int64List* CollectionDef_Int64List::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<CollectionDef_Int64List>(arena); } void CollectionDef_Int64List::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef.Int64List) value_.Clear(); } bool CollectionDef_Int64List::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef.Int64List) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated int64 value = 1 [packed = true]; case 1: { if (tag == 10) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_value()))); } else if (tag == 8) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 1, 10, input, this->mutable_value()))); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef.Int64List) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef.Int64List) return false; #undef DO_ } void CollectionDef_Int64List::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef.Int64List) // repeated int64 value = 1 [packed = true]; if (this->value_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); output->WriteVarint32(_value_cached_byte_size_); } for (int i = 0; i < this->value_size(); i++) { ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( this->value(i), output); } // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef.Int64List) } ::google::protobuf::uint8* CollectionDef_Int64List::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef.Int64List) // repeated int64 value = 1 [packed = true]; if (this->value_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( _value_cached_byte_size_, target); } for (int i = 0; i < this->value_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteInt64NoTagToArray(this->value(i), target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef.Int64List) return target; } size_t CollectionDef_Int64List::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef.Int64List) size_t total_size = 0; // repeated int64 value = 1 [packed = true]; { size_t data_size = 0; unsigned int count = this->value_size(); for (unsigned int i = 0; i < count; i++) { data_size += ::google::protobuf::internal::WireFormatLite:: Int64Size(this->value(i)); } if (data_size > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _value_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void CollectionDef_Int64List::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef.Int64List) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const CollectionDef_Int64List* source = ::google::protobuf::internal::DynamicCastToGenerated<const CollectionDef_Int64List>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef.Int64List) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef.Int64List) UnsafeMergeFrom(*source); } } void CollectionDef_Int64List::MergeFrom(const CollectionDef_Int64List& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef.Int64List) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void CollectionDef_Int64List::UnsafeMergeFrom(const CollectionDef_Int64List& from) { GOOGLE_DCHECK(&from != this); value_.UnsafeMergeFrom(from.value_); } void CollectionDef_Int64List::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef.Int64List) if (&from == this) return; Clear(); MergeFrom(from); } void CollectionDef_Int64List::CopyFrom(const CollectionDef_Int64List& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef.Int64List) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool CollectionDef_Int64List::IsInitialized() const { return true; } void CollectionDef_Int64List::Swap(CollectionDef_Int64List* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { CollectionDef_Int64List temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void CollectionDef_Int64List::UnsafeArenaSwap(CollectionDef_Int64List* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void CollectionDef_Int64List::InternalSwap(CollectionDef_Int64List* other) { value_.UnsafeArenaSwap(&other->value_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata CollectionDef_Int64List::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = CollectionDef_Int64List_descriptor_; metadata.reflection = CollectionDef_Int64List_reflection_; return metadata; } // ------------------------------------------------------------------- #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int CollectionDef_FloatList::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CollectionDef_FloatList::CollectionDef_FloatList() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.CollectionDef.FloatList) } CollectionDef_FloatList::CollectionDef_FloatList(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), value_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef.FloatList) } void CollectionDef_FloatList::InitAsDefaultInstance() { } CollectionDef_FloatList::CollectionDef_FloatList(const CollectionDef_FloatList& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef.FloatList) } void CollectionDef_FloatList::SharedCtor() { _cached_size_ = 0; } CollectionDef_FloatList::~CollectionDef_FloatList() { // @@protoc_insertion_point(destructor:tensorflow.CollectionDef.FloatList) SharedDtor(); } void CollectionDef_FloatList::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } } void CollectionDef_FloatList::ArenaDtor(void* object) { CollectionDef_FloatList* _this = reinterpret_cast< CollectionDef_FloatList* >(object); (void)_this; } void CollectionDef_FloatList::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void CollectionDef_FloatList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* CollectionDef_FloatList::descriptor() { protobuf_AssignDescriptorsOnce(); return CollectionDef_FloatList_descriptor_; } const CollectionDef_FloatList& CollectionDef_FloatList::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<CollectionDef_FloatList> CollectionDef_FloatList_default_instance_; CollectionDef_FloatList* CollectionDef_FloatList::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<CollectionDef_FloatList>(arena); } void CollectionDef_FloatList::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef.FloatList) value_.Clear(); } bool CollectionDef_FloatList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef.FloatList) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated float value = 1 [packed = true]; case 1: { if (tag == 10) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_value()))); } else if (tag == 13) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( 1, 10, input, this->mutable_value()))); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef.FloatList) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef.FloatList) return false; #undef DO_ } void CollectionDef_FloatList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef.FloatList) // repeated float value = 1 [packed = true]; if (this->value_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); output->WriteVarint32(_value_cached_byte_size_); } for (int i = 0; i < this->value_size(); i++) { ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( this->value(i), output); } // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef.FloatList) } ::google::protobuf::uint8* CollectionDef_FloatList::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef.FloatList) // repeated float value = 1 [packed = true]; if (this->value_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( _value_cached_byte_size_, target); } for (int i = 0; i < this->value_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteFloatNoTagToArray(this->value(i), target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef.FloatList) return target; } size_t CollectionDef_FloatList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef.FloatList) size_t total_size = 0; // repeated float value = 1 [packed = true]; { size_t data_size = 0; unsigned int count = this->value_size(); data_size = 4UL * count; if (data_size > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _value_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void CollectionDef_FloatList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef.FloatList) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const CollectionDef_FloatList* source = ::google::protobuf::internal::DynamicCastToGenerated<const CollectionDef_FloatList>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef.FloatList) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef.FloatList) UnsafeMergeFrom(*source); } } void CollectionDef_FloatList::MergeFrom(const CollectionDef_FloatList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef.FloatList) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void CollectionDef_FloatList::UnsafeMergeFrom(const CollectionDef_FloatList& from) { GOOGLE_DCHECK(&from != this); value_.UnsafeMergeFrom(from.value_); } void CollectionDef_FloatList::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef.FloatList) if (&from == this) return; Clear(); MergeFrom(from); } void CollectionDef_FloatList::CopyFrom(const CollectionDef_FloatList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef.FloatList) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool CollectionDef_FloatList::IsInitialized() const { return true; } void CollectionDef_FloatList::Swap(CollectionDef_FloatList* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { CollectionDef_FloatList temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void CollectionDef_FloatList::UnsafeArenaSwap(CollectionDef_FloatList* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void CollectionDef_FloatList::InternalSwap(CollectionDef_FloatList* other) { value_.UnsafeArenaSwap(&other->value_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata CollectionDef_FloatList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = CollectionDef_FloatList_descriptor_; metadata.reflection = CollectionDef_FloatList_reflection_; return metadata; } // ------------------------------------------------------------------- #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int CollectionDef_AnyList::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CollectionDef_AnyList::CollectionDef_AnyList() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.CollectionDef.AnyList) } CollectionDef_AnyList::CollectionDef_AnyList(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), value_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef.AnyList) } void CollectionDef_AnyList::InitAsDefaultInstance() { } CollectionDef_AnyList::CollectionDef_AnyList(const CollectionDef_AnyList& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef.AnyList) } void CollectionDef_AnyList::SharedCtor() { _cached_size_ = 0; } CollectionDef_AnyList::~CollectionDef_AnyList() { // @@protoc_insertion_point(destructor:tensorflow.CollectionDef.AnyList) SharedDtor(); } void CollectionDef_AnyList::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } } void CollectionDef_AnyList::ArenaDtor(void* object) { CollectionDef_AnyList* _this = reinterpret_cast< CollectionDef_AnyList* >(object); (void)_this; } void CollectionDef_AnyList::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void CollectionDef_AnyList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* CollectionDef_AnyList::descriptor() { protobuf_AssignDescriptorsOnce(); return CollectionDef_AnyList_descriptor_; } const CollectionDef_AnyList& CollectionDef_AnyList::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<CollectionDef_AnyList> CollectionDef_AnyList_default_instance_; CollectionDef_AnyList* CollectionDef_AnyList::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<CollectionDef_AnyList>(arena); } void CollectionDef_AnyList::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef.AnyList) value_.Clear(); } bool CollectionDef_AnyList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef.AnyList) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .google.protobuf.Any value = 1; case 1: { if (tag == 10) { DO_(input->IncrementRecursionDepth()); parse_loop_value: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( input, add_value())); } else { goto handle_unusual; } if (input->ExpectTag(10)) goto parse_loop_value; input->UnsafeDecrementRecursionDepth(); if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef.AnyList) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef.AnyList) return false; #undef DO_ } void CollectionDef_AnyList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef.AnyList) // repeated .google.protobuf.Any value = 1; for (unsigned int i = 0, n = this->value_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->value(i), output); } // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef.AnyList) } ::google::protobuf::uint8* CollectionDef_AnyList::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef.AnyList) // repeated .google.protobuf.Any value = 1; for (unsigned int i = 0, n = this->value_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, this->value(i), false, target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef.AnyList) return target; } size_t CollectionDef_AnyList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef.AnyList) size_t total_size = 0; // repeated .google.protobuf.Any value = 1; { unsigned int count = this->value_size(); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->value(i)); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void CollectionDef_AnyList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef.AnyList) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const CollectionDef_AnyList* source = ::google::protobuf::internal::DynamicCastToGenerated<const CollectionDef_AnyList>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef.AnyList) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef.AnyList) UnsafeMergeFrom(*source); } } void CollectionDef_AnyList::MergeFrom(const CollectionDef_AnyList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef.AnyList) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void CollectionDef_AnyList::UnsafeMergeFrom(const CollectionDef_AnyList& from) { GOOGLE_DCHECK(&from != this); value_.MergeFrom(from.value_); } void CollectionDef_AnyList::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef.AnyList) if (&from == this) return; Clear(); MergeFrom(from); } void CollectionDef_AnyList::CopyFrom(const CollectionDef_AnyList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef.AnyList) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool CollectionDef_AnyList::IsInitialized() const { return true; } void CollectionDef_AnyList::Swap(CollectionDef_AnyList* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { CollectionDef_AnyList temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void CollectionDef_AnyList::UnsafeArenaSwap(CollectionDef_AnyList* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void CollectionDef_AnyList::InternalSwap(CollectionDef_AnyList* other) { value_.UnsafeArenaSwap(&other->value_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata CollectionDef_AnyList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = CollectionDef_AnyList_descriptor_; metadata.reflection = CollectionDef_AnyList_reflection_; return metadata; } // ------------------------------------------------------------------- #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int CollectionDef::kNodeListFieldNumber; const int CollectionDef::kBytesListFieldNumber; const int CollectionDef::kInt64ListFieldNumber; const int CollectionDef::kFloatListFieldNumber; const int CollectionDef::kAnyListFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CollectionDef::CollectionDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.CollectionDef) } CollectionDef::CollectionDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.CollectionDef) } void CollectionDef::InitAsDefaultInstance() { CollectionDef_default_oneof_instance_->node_list_ = const_cast< ::tensorflow::CollectionDef_NodeList*>( ::tensorflow::CollectionDef_NodeList::internal_default_instance()); CollectionDef_default_oneof_instance_->bytes_list_ = const_cast< ::tensorflow::CollectionDef_BytesList*>( ::tensorflow::CollectionDef_BytesList::internal_default_instance()); CollectionDef_default_oneof_instance_->int64_list_ = const_cast< ::tensorflow::CollectionDef_Int64List*>( ::tensorflow::CollectionDef_Int64List::internal_default_instance()); CollectionDef_default_oneof_instance_->float_list_ = const_cast< ::tensorflow::CollectionDef_FloatList*>( ::tensorflow::CollectionDef_FloatList::internal_default_instance()); CollectionDef_default_oneof_instance_->any_list_ = const_cast< ::tensorflow::CollectionDef_AnyList*>( ::tensorflow::CollectionDef_AnyList::internal_default_instance()); } CollectionDef::CollectionDef(const CollectionDef& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.CollectionDef) } void CollectionDef::SharedCtor() { clear_has_kind(); _cached_size_ = 0; } CollectionDef::~CollectionDef() { // @@protoc_insertion_point(destructor:tensorflow.CollectionDef) SharedDtor(); } void CollectionDef::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } if (has_kind()) { clear_kind(); } } void CollectionDef::ArenaDtor(void* object) { CollectionDef* _this = reinterpret_cast< CollectionDef* >(object); (void)_this; } void CollectionDef::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void CollectionDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* CollectionDef::descriptor() { protobuf_AssignDescriptorsOnce(); return CollectionDef_descriptor_; } const CollectionDef& CollectionDef::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<CollectionDef> CollectionDef_default_instance_; CollectionDef* CollectionDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<CollectionDef>(arena); } void CollectionDef::clear_kind() { // @@protoc_insertion_point(one_of_clear_start:tensorflow.CollectionDef) switch (kind_case()) { case kNodeList: { if (GetArenaNoVirtual() == NULL) { delete kind_.node_list_; } break; } case kBytesList: { if (GetArenaNoVirtual() == NULL) { delete kind_.bytes_list_; } break; } case kInt64List: { if (GetArenaNoVirtual() == NULL) { delete kind_.int64_list_; } break; } case kFloatList: { if (GetArenaNoVirtual() == NULL) { delete kind_.float_list_; } break; } case kAnyList: { if (GetArenaNoVirtual() == NULL) { delete kind_.any_list_; } break; } case KIND_NOT_SET: { break; } } _oneof_case_[0] = KIND_NOT_SET; } void CollectionDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.CollectionDef) clear_kind(); } bool CollectionDef::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.CollectionDef) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .tensorflow.CollectionDef.NodeList node_list = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_node_list())); } else { goto handle_unusual; } goto after_any_list; break; } // optional .tensorflow.CollectionDef.BytesList bytes_list = 2; case 2: { if (tag == 18) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_bytes_list())); } else { goto handle_unusual; } goto after_any_list; break; } // optional .tensorflow.CollectionDef.Int64List int64_list = 3; case 3: { if (tag == 26) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_int64_list())); } else { goto handle_unusual; } goto after_any_list; break; } // optional .tensorflow.CollectionDef.FloatList float_list = 4; case 4: { if (tag == 34) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_float_list())); } else { goto handle_unusual; } if (input->ExpectTag(42)) goto parse_any_list; break; } // optional .tensorflow.CollectionDef.AnyList any_list = 5; case 5: { if (tag == 42) { parse_any_list: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_any_list())); } else { goto handle_unusual; } after_any_list: if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.CollectionDef) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.CollectionDef) return false; #undef DO_ } void CollectionDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.CollectionDef) // optional .tensorflow.CollectionDef.NodeList node_list = 1; if (has_node_list()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *kind_.node_list_, output); } // optional .tensorflow.CollectionDef.BytesList bytes_list = 2; if (has_bytes_list()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *kind_.bytes_list_, output); } // optional .tensorflow.CollectionDef.Int64List int64_list = 3; if (has_int64_list()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *kind_.int64_list_, output); } // optional .tensorflow.CollectionDef.FloatList float_list = 4; if (has_float_list()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *kind_.float_list_, output); } // optional .tensorflow.CollectionDef.AnyList any_list = 5; if (has_any_list()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, *kind_.any_list_, output); } // @@protoc_insertion_point(serialize_end:tensorflow.CollectionDef) } ::google::protobuf::uint8* CollectionDef::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CollectionDef) // optional .tensorflow.CollectionDef.NodeList node_list = 1; if (has_node_list()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, *kind_.node_list_, false, target); } // optional .tensorflow.CollectionDef.BytesList bytes_list = 2; if (has_bytes_list()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 2, *kind_.bytes_list_, false, target); } // optional .tensorflow.CollectionDef.Int64List int64_list = 3; if (has_int64_list()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 3, *kind_.int64_list_, false, target); } // optional .tensorflow.CollectionDef.FloatList float_list = 4; if (has_float_list()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 4, *kind_.float_list_, false, target); } // optional .tensorflow.CollectionDef.AnyList any_list = 5; if (has_any_list()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 5, *kind_.any_list_, false, target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CollectionDef) return target; } size_t CollectionDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.CollectionDef) size_t total_size = 0; switch (kind_case()) { // optional .tensorflow.CollectionDef.NodeList node_list = 1; case kNodeList: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *kind_.node_list_); break; } // optional .tensorflow.CollectionDef.BytesList bytes_list = 2; case kBytesList: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *kind_.bytes_list_); break; } // optional .tensorflow.CollectionDef.Int64List int64_list = 3; case kInt64List: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *kind_.int64_list_); break; } // optional .tensorflow.CollectionDef.FloatList float_list = 4; case kFloatList: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *kind_.float_list_); break; } // optional .tensorflow.CollectionDef.AnyList any_list = 5; case kAnyList: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *kind_.any_list_); break; } case KIND_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void CollectionDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CollectionDef) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const CollectionDef* source = ::google::protobuf::internal::DynamicCastToGenerated<const CollectionDef>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CollectionDef) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CollectionDef) UnsafeMergeFrom(*source); } } void CollectionDef::MergeFrom(const CollectionDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CollectionDef) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void CollectionDef::UnsafeMergeFrom(const CollectionDef& from) { GOOGLE_DCHECK(&from != this); switch (from.kind_case()) { case kNodeList: { mutable_node_list()->::tensorflow::CollectionDef_NodeList::MergeFrom(from.node_list()); break; } case kBytesList: { mutable_bytes_list()->::tensorflow::CollectionDef_BytesList::MergeFrom(from.bytes_list()); break; } case kInt64List: { mutable_int64_list()->::tensorflow::CollectionDef_Int64List::MergeFrom(from.int64_list()); break; } case kFloatList: { mutable_float_list()->::tensorflow::CollectionDef_FloatList::MergeFrom(from.float_list()); break; } case kAnyList: { mutable_any_list()->::tensorflow::CollectionDef_AnyList::MergeFrom(from.any_list()); break; } case KIND_NOT_SET: { break; } } } void CollectionDef::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CollectionDef) if (&from == this) return; Clear(); MergeFrom(from); } void CollectionDef::CopyFrom(const CollectionDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CollectionDef) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool CollectionDef::IsInitialized() const { return true; } void CollectionDef::Swap(CollectionDef* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { CollectionDef temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void CollectionDef::UnsafeArenaSwap(CollectionDef* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void CollectionDef::InternalSwap(CollectionDef* other) { std::swap(kind_, other->kind_); std::swap(_oneof_case_[0], other->_oneof_case_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata CollectionDef::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = CollectionDef_descriptor_; metadata.reflection = CollectionDef_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // CollectionDef_NodeList // repeated string value = 1; int CollectionDef_NodeList::value_size() const { return value_.size(); } void CollectionDef_NodeList::clear_value() { value_.Clear(); } const ::std::string& CollectionDef_NodeList::value(int index) const { // @@protoc_insertion_point(field_get:tensorflow.CollectionDef.NodeList.value) return value_.Get(index); } ::std::string* CollectionDef_NodeList::mutable_value(int index) { // @@protoc_insertion_point(field_mutable:tensorflow.CollectionDef.NodeList.value) return value_.Mutable(index); } void CollectionDef_NodeList::set_value(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:tensorflow.CollectionDef.NodeList.value) value_.Mutable(index)->assign(value); } void CollectionDef_NodeList::set_value(int index, const char* value) { value_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tensorflow.CollectionDef.NodeList.value) } void CollectionDef_NodeList::set_value(int index, const char* value, size_t size) { value_.Mutable(index)->assign( reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_set_pointer:tensorflow.CollectionDef.NodeList.value) } ::std::string* CollectionDef_NodeList::add_value() { // @@protoc_insertion_point(field_add_mutable:tensorflow.CollectionDef.NodeList.value) return value_.Add(); } void CollectionDef_NodeList::add_value(const ::std::string& value) { value_.Add()->assign(value); // @@protoc_insertion_point(field_add:tensorflow.CollectionDef.NodeList.value) } void CollectionDef_NodeList::add_value(const char* value) { value_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tensorflow.CollectionDef.NodeList.value) } void CollectionDef_NodeList::add_value(const char* value, size_t size) { value_.Add()->assign(reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_add_pointer:tensorflow.CollectionDef.NodeList.value) } const ::google::protobuf::RepeatedPtrField< ::std::string>& CollectionDef_NodeList::value() const { // @@protoc_insertion_point(field_list:tensorflow.CollectionDef.NodeList.value) return value_; } ::google::protobuf::RepeatedPtrField< ::std::string>* CollectionDef_NodeList::mutable_value() { // @@protoc_insertion_point(field_mutable_list:tensorflow.CollectionDef.NodeList.value) return &value_; } inline const CollectionDef_NodeList* CollectionDef_NodeList::internal_default_instance() { return &CollectionDef_NodeList_default_instance_.get(); } // ------------------------------------------------------------------- // CollectionDef_BytesList // repeated bytes value = 1; int CollectionDef_BytesList::value_size() const { return value_.size(); } void CollectionDef_BytesList::clear_value() { value_.Clear(); } const ::std::string& CollectionDef_BytesList::value(int index) const { // @@protoc_insertion_point(field_get:tensorflow.CollectionDef.BytesList.value) return value_.Get(index); } ::std::string* CollectionDef_BytesList::mutable_value(int index) { // @@protoc_insertion_point(field_mutable:tensorflow.CollectionDef.BytesList.value) return value_.Mutable(index); } void CollectionDef_BytesList::set_value(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:tensorflow.CollectionDef.BytesList.value) value_.Mutable(index)->assign(value); } void CollectionDef_BytesList::set_value(int index, const char* value) { value_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tensorflow.CollectionDef.BytesList.value) } void CollectionDef_BytesList::set_value(int index, const void* value, size_t size) { value_.Mutable(index)->assign( reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_set_pointer:tensorflow.CollectionDef.BytesList.value) } ::std::string* CollectionDef_BytesList::add_value() { // @@protoc_insertion_point(field_add_mutable:tensorflow.CollectionDef.BytesList.value) return value_.Add(); } void CollectionDef_BytesList::add_value(const ::std::string& value) { value_.Add()->assign(value); // @@protoc_insertion_point(field_add:tensorflow.CollectionDef.BytesList.value) } void CollectionDef_BytesList::add_value(const char* value) { value_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tensorflow.CollectionDef.BytesList.value) } void CollectionDef_BytesList::add_value(const void* value, size_t size) { value_.Add()->assign(reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_add_pointer:tensorflow.CollectionDef.BytesList.value) } const ::google::protobuf::RepeatedPtrField< ::std::string>& CollectionDef_BytesList::value() const { // @@protoc_insertion_point(field_list:tensorflow.CollectionDef.BytesList.value) return value_; } ::google::protobuf::RepeatedPtrField< ::std::string>* CollectionDef_BytesList::mutable_value() { // @@protoc_insertion_point(field_mutable_list:tensorflow.CollectionDef.BytesList.value) return &value_; } inline const CollectionDef_BytesList* CollectionDef_BytesList::internal_default_instance() { return &CollectionDef_BytesList_default_instance_.get(); } // ------------------------------------------------------------------- // CollectionDef_Int64List // repeated int64 value = 1 [packed = true]; int CollectionDef_Int64List::value_size() const { return value_.size(); } void CollectionDef_Int64List::clear_value() { value_.Clear(); } ::google::protobuf::int64 CollectionDef_Int64List::value(int index) const { // @@protoc_insertion_point(field_get:tensorflow.CollectionDef.Int64List.value) return value_.Get(index); } void CollectionDef_Int64List::set_value(int index, ::google::protobuf::int64 value) { value_.Set(index, value); // @@protoc_insertion_point(field_set:tensorflow.CollectionDef.Int64List.value) } void CollectionDef_Int64List::add_value(::google::protobuf::int64 value) { value_.Add(value); // @@protoc_insertion_point(field_add:tensorflow.CollectionDef.Int64List.value) } const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& CollectionDef_Int64List::value() const { // @@protoc_insertion_point(field_list:tensorflow.CollectionDef.Int64List.value) return value_; } ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* CollectionDef_Int64List::mutable_value() { // @@protoc_insertion_point(field_mutable_list:tensorflow.CollectionDef.Int64List.value) return &value_; } inline const CollectionDef_Int64List* CollectionDef_Int64List::internal_default_instance() { return &CollectionDef_Int64List_default_instance_.get(); } // ------------------------------------------------------------------- // CollectionDef_FloatList // repeated float value = 1 [packed = true]; int CollectionDef_FloatList::value_size() const { return value_.size(); } void CollectionDef_FloatList::clear_value() { value_.Clear(); } float CollectionDef_FloatList::value(int index) const { // @@protoc_insertion_point(field_get:tensorflow.CollectionDef.FloatList.value) return value_.Get(index); } void CollectionDef_FloatList::set_value(int index, float value) { value_.Set(index, value); // @@protoc_insertion_point(field_set:tensorflow.CollectionDef.FloatList.value) } void CollectionDef_FloatList::add_value(float value) { value_.Add(value); // @@protoc_insertion_point(field_add:tensorflow.CollectionDef.FloatList.value) } const ::google::protobuf::RepeatedField< float >& CollectionDef_FloatList::value() const { // @@protoc_insertion_point(field_list:tensorflow.CollectionDef.FloatList.value) return value_; } ::google::protobuf::RepeatedField< float >* CollectionDef_FloatList::mutable_value() { // @@protoc_insertion_point(field_mutable_list:tensorflow.CollectionDef.FloatList.value) return &value_; } inline const CollectionDef_FloatList* CollectionDef_FloatList::internal_default_instance() { return &CollectionDef_FloatList_default_instance_.get(); } // ------------------------------------------------------------------- // CollectionDef_AnyList // repeated .google.protobuf.Any value = 1; int CollectionDef_AnyList::value_size() const { return value_.size(); } void CollectionDef_AnyList::clear_value() { value_.Clear(); } const ::google::protobuf::Any& CollectionDef_AnyList::value(int index) const { // @@protoc_insertion_point(field_get:tensorflow.CollectionDef.AnyList.value) return value_.Get(index); } ::google::protobuf::Any* CollectionDef_AnyList::mutable_value(int index) { // @@protoc_insertion_point(field_mutable:tensorflow.CollectionDef.AnyList.value) return value_.Mutable(index); } ::google::protobuf::Any* CollectionDef_AnyList::add_value() { // @@protoc_insertion_point(field_add:tensorflow.CollectionDef.AnyList.value) return value_.Add(); } ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >* CollectionDef_AnyList::mutable_value() { // @@protoc_insertion_point(field_mutable_list:tensorflow.CollectionDef.AnyList.value) return &value_; } const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >& CollectionDef_AnyList::value() const { // @@protoc_insertion_point(field_list:tensorflow.CollectionDef.AnyList.value) return value_; } inline const CollectionDef_AnyList* CollectionDef_AnyList::internal_default_instance() { return &CollectionDef_AnyList_default_instance_.get(); } // ------------------------------------------------------------------- // CollectionDef // optional .tensorflow.CollectionDef.NodeList node_list = 1; bool CollectionDef::has_node_list() const { return kind_case() == kNodeList; } void CollectionDef::set_has_node_list() { _oneof_case_[0] = kNodeList; } void CollectionDef::clear_node_list() { if (has_node_list()) { if (GetArenaNoVirtual() == NULL) { delete kind_.node_list_; } clear_has_kind(); } } const ::tensorflow::CollectionDef_NodeList& CollectionDef::node_list() const { // @@protoc_insertion_point(field_get:tensorflow.CollectionDef.node_list) return has_node_list() ? *kind_.node_list_ : ::tensorflow::CollectionDef_NodeList::default_instance(); } ::tensorflow::CollectionDef_NodeList* CollectionDef::mutable_node_list() { if (!has_node_list()) { clear_kind(); set_has_node_list(); kind_.node_list_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::CollectionDef_NodeList >( GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:tensorflow.CollectionDef.node_list) return kind_.node_list_; } ::tensorflow::CollectionDef_NodeList* CollectionDef::release_node_list() { // @@protoc_insertion_point(field_release:tensorflow.CollectionDef.node_list) if (has_node_list()) { clear_has_kind(); if (GetArenaNoVirtual() != NULL) { ::tensorflow::CollectionDef_NodeList* temp = new ::tensorflow::CollectionDef_NodeList(*kind_.node_list_); kind_.node_list_ = NULL; return temp; } else { ::tensorflow::CollectionDef_NodeList* temp = kind_.node_list_; kind_.node_list_ = NULL; return temp; } } else { return NULL; } } void CollectionDef::set_allocated_node_list(::tensorflow::CollectionDef_NodeList* node_list) { clear_kind(); if (node_list) { if (GetArenaNoVirtual() != NULL && ::google::protobuf::Arena::GetArena(node_list) == NULL) { GetArenaNoVirtual()->Own(node_list); } else if (GetArenaNoVirtual() != ::google::protobuf::Arena::GetArena(node_list)) { ::tensorflow::CollectionDef_NodeList* new_node_list = ::google::protobuf::Arena::CreateMessage< ::tensorflow::CollectionDef_NodeList >( GetArenaNoVirtual()); new_node_list->CopyFrom(*node_list); node_list = new_node_list; } set_has_node_list(); kind_.node_list_ = node_list; } // @@protoc_insertion_point(field_set_allocated:tensorflow.CollectionDef.node_list) } ::tensorflow::CollectionDef_NodeList* CollectionDef::unsafe_arena_release_node_list() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CollectionDef.node_list) if (has_node_list()) { clear_has_kind(); ::tensorflow::CollectionDef_NodeList* temp = kind_.node_list_; kind_.node_list_ = NULL; return temp; } else { return NULL; } } void CollectionDef::unsafe_arena_set_allocated_node_list(::tensorflow::CollectionDef_NodeList* node_list) { clear_kind(); if (node_list) { set_has_node_list(); kind_.node_list_ = node_list; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CollectionDef.node_list) } // optional .tensorflow.CollectionDef.BytesList bytes_list = 2; bool CollectionDef::has_bytes_list() const { return kind_case() == kBytesList; } void CollectionDef::set_has_bytes_list() { _oneof_case_[0] = kBytesList; } void CollectionDef::clear_bytes_list() { if (has_bytes_list()) { if (GetArenaNoVirtual() == NULL) { delete kind_.bytes_list_; } clear_has_kind(); } } const ::tensorflow::CollectionDef_BytesList& CollectionDef::bytes_list() const { // @@protoc_insertion_point(field_get:tensorflow.CollectionDef.bytes_list) return has_bytes_list() ? *kind_.bytes_list_ : ::tensorflow::CollectionDef_BytesList::default_instance(); } ::tensorflow::CollectionDef_BytesList* CollectionDef::mutable_bytes_list() { if (!has_bytes_list()) { clear_kind(); set_has_bytes_list(); kind_.bytes_list_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::CollectionDef_BytesList >( GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:tensorflow.CollectionDef.bytes_list) return kind_.bytes_list_; } ::tensorflow::CollectionDef_BytesList* CollectionDef::release_bytes_list() { // @@protoc_insertion_point(field_release:tensorflow.CollectionDef.bytes_list) if (has_bytes_list()) { clear_has_kind(); if (GetArenaNoVirtual() != NULL) { ::tensorflow::CollectionDef_BytesList* temp = new ::tensorflow::CollectionDef_BytesList(*kind_.bytes_list_); kind_.bytes_list_ = NULL; return temp; } else { ::tensorflow::CollectionDef_BytesList* temp = kind_.bytes_list_; kind_.bytes_list_ = NULL; return temp; } } else { return NULL; } } void CollectionDef::set_allocated_bytes_list(::tensorflow::CollectionDef_BytesList* bytes_list) { clear_kind(); if (bytes_list) { if (GetArenaNoVirtual() != NULL && ::google::protobuf::Arena::GetArena(bytes_list) == NULL) { GetArenaNoVirtual()->Own(bytes_list); } else if (GetArenaNoVirtual() != ::google::protobuf::Arena::GetArena(bytes_list)) { ::tensorflow::CollectionDef_BytesList* new_bytes_list = ::google::protobuf::Arena::CreateMessage< ::tensorflow::CollectionDef_BytesList >( GetArenaNoVirtual()); new_bytes_list->CopyFrom(*bytes_list); bytes_list = new_bytes_list; } set_has_bytes_list(); kind_.bytes_list_ = bytes_list; } // @@protoc_insertion_point(field_set_allocated:tensorflow.CollectionDef.bytes_list) } ::tensorflow::CollectionDef_BytesList* CollectionDef::unsafe_arena_release_bytes_list() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CollectionDef.bytes_list) if (has_bytes_list()) { clear_has_kind(); ::tensorflow::CollectionDef_BytesList* temp = kind_.bytes_list_; kind_.bytes_list_ = NULL; return temp; } else { return NULL; } } void CollectionDef::unsafe_arena_set_allocated_bytes_list(::tensorflow::CollectionDef_BytesList* bytes_list) { clear_kind(); if (bytes_list) { set_has_bytes_list(); kind_.bytes_list_ = bytes_list; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CollectionDef.bytes_list) } // optional .tensorflow.CollectionDef.Int64List int64_list = 3; bool CollectionDef::has_int64_list() const { return kind_case() == kInt64List; } void CollectionDef::set_has_int64_list() { _oneof_case_[0] = kInt64List; } void CollectionDef::clear_int64_list() { if (has_int64_list()) { if (GetArenaNoVirtual() == NULL) { delete kind_.int64_list_; } clear_has_kind(); } } const ::tensorflow::CollectionDef_Int64List& CollectionDef::int64_list() const { // @@protoc_insertion_point(field_get:tensorflow.CollectionDef.int64_list) return has_int64_list() ? *kind_.int64_list_ : ::tensorflow::CollectionDef_Int64List::default_instance(); } ::tensorflow::CollectionDef_Int64List* CollectionDef::mutable_int64_list() { if (!has_int64_list()) { clear_kind(); set_has_int64_list(); kind_.int64_list_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::CollectionDef_Int64List >( GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:tensorflow.CollectionDef.int64_list) return kind_.int64_list_; } ::tensorflow::CollectionDef_Int64List* CollectionDef::release_int64_list() { // @@protoc_insertion_point(field_release:tensorflow.CollectionDef.int64_list) if (has_int64_list()) { clear_has_kind(); if (GetArenaNoVirtual() != NULL) { ::tensorflow::CollectionDef_Int64List* temp = new ::tensorflow::CollectionDef_Int64List(*kind_.int64_list_); kind_.int64_list_ = NULL; return temp; } else { ::tensorflow::CollectionDef_Int64List* temp = kind_.int64_list_; kind_.int64_list_ = NULL; return temp; } } else { return NULL; } } void CollectionDef::set_allocated_int64_list(::tensorflow::CollectionDef_Int64List* int64_list) { clear_kind(); if (int64_list) { if (GetArenaNoVirtual() != NULL && ::google::protobuf::Arena::GetArena(int64_list) == NULL) { GetArenaNoVirtual()->Own(int64_list); } else if (GetArenaNoVirtual() != ::google::protobuf::Arena::GetArena(int64_list)) { ::tensorflow::CollectionDef_Int64List* new_int64_list = ::google::protobuf::Arena::CreateMessage< ::tensorflow::CollectionDef_Int64List >( GetArenaNoVirtual()); new_int64_list->CopyFrom(*int64_list); int64_list = new_int64_list; } set_has_int64_list(); kind_.int64_list_ = int64_list; } // @@protoc_insertion_point(field_set_allocated:tensorflow.CollectionDef.int64_list) } ::tensorflow::CollectionDef_Int64List* CollectionDef::unsafe_arena_release_int64_list() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CollectionDef.int64_list) if (has_int64_list()) { clear_has_kind(); ::tensorflow::CollectionDef_Int64List* temp = kind_.int64_list_; kind_.int64_list_ = NULL; return temp; } else { return NULL; } } void CollectionDef::unsafe_arena_set_allocated_int64_list(::tensorflow::CollectionDef_Int64List* int64_list) { clear_kind(); if (int64_list) { set_has_int64_list(); kind_.int64_list_ = int64_list; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CollectionDef.int64_list) } // optional .tensorflow.CollectionDef.FloatList float_list = 4; bool CollectionDef::has_float_list() const { return kind_case() == kFloatList; } void CollectionDef::set_has_float_list() { _oneof_case_[0] = kFloatList; } void CollectionDef::clear_float_list() { if (has_float_list()) { if (GetArenaNoVirtual() == NULL) { delete kind_.float_list_; } clear_has_kind(); } } const ::tensorflow::CollectionDef_FloatList& CollectionDef::float_list() const { // @@protoc_insertion_point(field_get:tensorflow.CollectionDef.float_list) return has_float_list() ? *kind_.float_list_ : ::tensorflow::CollectionDef_FloatList::default_instance(); } ::tensorflow::CollectionDef_FloatList* CollectionDef::mutable_float_list() { if (!has_float_list()) { clear_kind(); set_has_float_list(); kind_.float_list_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::CollectionDef_FloatList >( GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:tensorflow.CollectionDef.float_list) return kind_.float_list_; } ::tensorflow::CollectionDef_FloatList* CollectionDef::release_float_list() { // @@protoc_insertion_point(field_release:tensorflow.CollectionDef.float_list) if (has_float_list()) { clear_has_kind(); if (GetArenaNoVirtual() != NULL) { ::tensorflow::CollectionDef_FloatList* temp = new ::tensorflow::CollectionDef_FloatList(*kind_.float_list_); kind_.float_list_ = NULL; return temp; } else { ::tensorflow::CollectionDef_FloatList* temp = kind_.float_list_; kind_.float_list_ = NULL; return temp; } } else { return NULL; } } void CollectionDef::set_allocated_float_list(::tensorflow::CollectionDef_FloatList* float_list) { clear_kind(); if (float_list) { if (GetArenaNoVirtual() != NULL && ::google::protobuf::Arena::GetArena(float_list) == NULL) { GetArenaNoVirtual()->Own(float_list); } else if (GetArenaNoVirtual() != ::google::protobuf::Arena::GetArena(float_list)) { ::tensorflow::CollectionDef_FloatList* new_float_list = ::google::protobuf::Arena::CreateMessage< ::tensorflow::CollectionDef_FloatList >( GetArenaNoVirtual()); new_float_list->CopyFrom(*float_list); float_list = new_float_list; } set_has_float_list(); kind_.float_list_ = float_list; } // @@protoc_insertion_point(field_set_allocated:tensorflow.CollectionDef.float_list) } ::tensorflow::CollectionDef_FloatList* CollectionDef::unsafe_arena_release_float_list() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CollectionDef.float_list) if (has_float_list()) { clear_has_kind(); ::tensorflow::CollectionDef_FloatList* temp = kind_.float_list_; kind_.float_list_ = NULL; return temp; } else { return NULL; } } void CollectionDef::unsafe_arena_set_allocated_float_list(::tensorflow::CollectionDef_FloatList* float_list) { clear_kind(); if (float_list) { set_has_float_list(); kind_.float_list_ = float_list; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CollectionDef.float_list) } // optional .tensorflow.CollectionDef.AnyList any_list = 5; bool CollectionDef::has_any_list() const { return kind_case() == kAnyList; } void CollectionDef::set_has_any_list() { _oneof_case_[0] = kAnyList; } void CollectionDef::clear_any_list() { if (has_any_list()) { if (GetArenaNoVirtual() == NULL) { delete kind_.any_list_; } clear_has_kind(); } } const ::tensorflow::CollectionDef_AnyList& CollectionDef::any_list() const { // @@protoc_insertion_point(field_get:tensorflow.CollectionDef.any_list) return has_any_list() ? *kind_.any_list_ : ::tensorflow::CollectionDef_AnyList::default_instance(); } ::tensorflow::CollectionDef_AnyList* CollectionDef::mutable_any_list() { if (!has_any_list()) { clear_kind(); set_has_any_list(); kind_.any_list_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::CollectionDef_AnyList >( GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:tensorflow.CollectionDef.any_list) return kind_.any_list_; } ::tensorflow::CollectionDef_AnyList* CollectionDef::release_any_list() { // @@protoc_insertion_point(field_release:tensorflow.CollectionDef.any_list) if (has_any_list()) { clear_has_kind(); if (GetArenaNoVirtual() != NULL) { ::tensorflow::CollectionDef_AnyList* temp = new ::tensorflow::CollectionDef_AnyList(*kind_.any_list_); kind_.any_list_ = NULL; return temp; } else { ::tensorflow::CollectionDef_AnyList* temp = kind_.any_list_; kind_.any_list_ = NULL; return temp; } } else { return NULL; } } void CollectionDef::set_allocated_any_list(::tensorflow::CollectionDef_AnyList* any_list) { clear_kind(); if (any_list) { if (GetArenaNoVirtual() != NULL && ::google::protobuf::Arena::GetArena(any_list) == NULL) { GetArenaNoVirtual()->Own(any_list); } else if (GetArenaNoVirtual() != ::google::protobuf::Arena::GetArena(any_list)) { ::tensorflow::CollectionDef_AnyList* new_any_list = ::google::protobuf::Arena::CreateMessage< ::tensorflow::CollectionDef_AnyList >( GetArenaNoVirtual()); new_any_list->CopyFrom(*any_list); any_list = new_any_list; } set_has_any_list(); kind_.any_list_ = any_list; } // @@protoc_insertion_point(field_set_allocated:tensorflow.CollectionDef.any_list) } ::tensorflow::CollectionDef_AnyList* CollectionDef::unsafe_arena_release_any_list() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CollectionDef.any_list) if (has_any_list()) { clear_has_kind(); ::tensorflow::CollectionDef_AnyList* temp = kind_.any_list_; kind_.any_list_ = NULL; return temp; } else { return NULL; } } void CollectionDef::unsafe_arena_set_allocated_any_list(::tensorflow::CollectionDef_AnyList* any_list) { clear_kind(); if (any_list) { set_has_any_list(); kind_.any_list_ = any_list; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CollectionDef.any_list) } bool CollectionDef::has_kind() const { return kind_case() != KIND_NOT_SET; } void CollectionDef::clear_has_kind() { _oneof_case_[0] = KIND_NOT_SET; } CollectionDef::KindCase CollectionDef::kind_case() const { return CollectionDef::KindCase(_oneof_case_[0]); } inline const CollectionDef* CollectionDef::internal_default_instance() { return &CollectionDef_default_instance_.get(); } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int TensorInfo_CooSparse::kValuesTensorNameFieldNumber; const int TensorInfo_CooSparse::kIndicesTensorNameFieldNumber; const int TensorInfo_CooSparse::kDenseShapeTensorNameFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TensorInfo_CooSparse::TensorInfo_CooSparse() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.TensorInfo.CooSparse) } TensorInfo_CooSparse::TensorInfo_CooSparse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.TensorInfo.CooSparse) } void TensorInfo_CooSparse::InitAsDefaultInstance() { } TensorInfo_CooSparse::TensorInfo_CooSparse(const TensorInfo_CooSparse& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.TensorInfo.CooSparse) } void TensorInfo_CooSparse::SharedCtor() { values_tensor_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); indices_tensor_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); dense_shape_tensor_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _cached_size_ = 0; } TensorInfo_CooSparse::~TensorInfo_CooSparse() { // @@protoc_insertion_point(destructor:tensorflow.TensorInfo.CooSparse) SharedDtor(); } void TensorInfo_CooSparse::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } values_tensor_name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); indices_tensor_name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); dense_shape_tensor_name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void TensorInfo_CooSparse::ArenaDtor(void* object) { TensorInfo_CooSparse* _this = reinterpret_cast< TensorInfo_CooSparse* >(object); (void)_this; } void TensorInfo_CooSparse::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void TensorInfo_CooSparse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* TensorInfo_CooSparse::descriptor() { protobuf_AssignDescriptorsOnce(); return TensorInfo_CooSparse_descriptor_; } const TensorInfo_CooSparse& TensorInfo_CooSparse::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<TensorInfo_CooSparse> TensorInfo_CooSparse_default_instance_; TensorInfo_CooSparse* TensorInfo_CooSparse::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<TensorInfo_CooSparse>(arena); } void TensorInfo_CooSparse::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.TensorInfo.CooSparse) values_tensor_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); indices_tensor_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); dense_shape_tensor_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } bool TensorInfo_CooSparse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.TensorInfo.CooSparse) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string values_tensor_name = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_values_tensor_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->values_tensor_name().data(), this->values_tensor_name().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.TensorInfo.CooSparse.values_tensor_name")); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_indices_tensor_name; break; } // optional string indices_tensor_name = 2; case 2: { if (tag == 18) { parse_indices_tensor_name: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_indices_tensor_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->indices_tensor_name().data(), this->indices_tensor_name().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.TensorInfo.CooSparse.indices_tensor_name")); } else { goto handle_unusual; } if (input->ExpectTag(26)) goto parse_dense_shape_tensor_name; break; } // optional string dense_shape_tensor_name = 3; case 3: { if (tag == 26) { parse_dense_shape_tensor_name: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_dense_shape_tensor_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->dense_shape_tensor_name().data(), this->dense_shape_tensor_name().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name")); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.TensorInfo.CooSparse) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.TensorInfo.CooSparse) return false; #undef DO_ } void TensorInfo_CooSparse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.TensorInfo.CooSparse) // optional string values_tensor_name = 1; if (this->values_tensor_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->values_tensor_name().data(), this->values_tensor_name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.TensorInfo.CooSparse.values_tensor_name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->values_tensor_name(), output); } // optional string indices_tensor_name = 2; if (this->indices_tensor_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->indices_tensor_name().data(), this->indices_tensor_name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.TensorInfo.CooSparse.indices_tensor_name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->indices_tensor_name(), output); } // optional string dense_shape_tensor_name = 3; if (this->dense_shape_tensor_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->dense_shape_tensor_name().data(), this->dense_shape_tensor_name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->dense_shape_tensor_name(), output); } // @@protoc_insertion_point(serialize_end:tensorflow.TensorInfo.CooSparse) } ::google::protobuf::uint8* TensorInfo_CooSparse::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorInfo.CooSparse) // optional string values_tensor_name = 1; if (this->values_tensor_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->values_tensor_name().data(), this->values_tensor_name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.TensorInfo.CooSparse.values_tensor_name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->values_tensor_name(), target); } // optional string indices_tensor_name = 2; if (this->indices_tensor_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->indices_tensor_name().data(), this->indices_tensor_name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.TensorInfo.CooSparse.indices_tensor_name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->indices_tensor_name(), target); } // optional string dense_shape_tensor_name = 3; if (this->dense_shape_tensor_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->dense_shape_tensor_name().data(), this->dense_shape_tensor_name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->dense_shape_tensor_name(), target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorInfo.CooSparse) return target; } size_t TensorInfo_CooSparse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorInfo.CooSparse) size_t total_size = 0; // optional string values_tensor_name = 1; if (this->values_tensor_name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->values_tensor_name()); } // optional string indices_tensor_name = 2; if (this->indices_tensor_name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->indices_tensor_name()); } // optional string dense_shape_tensor_name = 3; if (this->dense_shape_tensor_name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->dense_shape_tensor_name()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void TensorInfo_CooSparse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorInfo.CooSparse) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const TensorInfo_CooSparse* source = ::google::protobuf::internal::DynamicCastToGenerated<const TensorInfo_CooSparse>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TensorInfo.CooSparse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorInfo.CooSparse) UnsafeMergeFrom(*source); } } void TensorInfo_CooSparse::MergeFrom(const TensorInfo_CooSparse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorInfo.CooSparse) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void TensorInfo_CooSparse::UnsafeMergeFrom(const TensorInfo_CooSparse& from) { GOOGLE_DCHECK(&from != this); if (from.values_tensor_name().size() > 0) { set_values_tensor_name(from.values_tensor_name()); } if (from.indices_tensor_name().size() > 0) { set_indices_tensor_name(from.indices_tensor_name()); } if (from.dense_shape_tensor_name().size() > 0) { set_dense_shape_tensor_name(from.dense_shape_tensor_name()); } } void TensorInfo_CooSparse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TensorInfo.CooSparse) if (&from == this) return; Clear(); MergeFrom(from); } void TensorInfo_CooSparse::CopyFrom(const TensorInfo_CooSparse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorInfo.CooSparse) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool TensorInfo_CooSparse::IsInitialized() const { return true; } void TensorInfo_CooSparse::Swap(TensorInfo_CooSparse* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { TensorInfo_CooSparse temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void TensorInfo_CooSparse::UnsafeArenaSwap(TensorInfo_CooSparse* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void TensorInfo_CooSparse::InternalSwap(TensorInfo_CooSparse* other) { values_tensor_name_.Swap(&other->values_tensor_name_); indices_tensor_name_.Swap(&other->indices_tensor_name_); dense_shape_tensor_name_.Swap(&other->dense_shape_tensor_name_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata TensorInfo_CooSparse::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = TensorInfo_CooSparse_descriptor_; metadata.reflection = TensorInfo_CooSparse_reflection_; return metadata; } // ------------------------------------------------------------------- void TensorInfo::_slow_mutable_tensor_shape() { tensor_shape_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorShapeProto >( GetArenaNoVirtual()); } ::tensorflow::TensorShapeProto* TensorInfo::_slow_release_tensor_shape() { if (tensor_shape_ == NULL) { return NULL; } else { ::tensorflow::TensorShapeProto* temp = new ::tensorflow::TensorShapeProto(*tensor_shape_); tensor_shape_ = NULL; return temp; } } ::tensorflow::TensorShapeProto* TensorInfo::unsafe_arena_release_tensor_shape() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorInfo.tensor_shape) ::tensorflow::TensorShapeProto* temp = tensor_shape_; tensor_shape_ = NULL; return temp; } void TensorInfo::_slow_set_allocated_tensor_shape( ::google::protobuf::Arena* message_arena, ::tensorflow::TensorShapeProto** tensor_shape) { if (message_arena != NULL && ::google::protobuf::Arena::GetArena(*tensor_shape) == NULL) { message_arena->Own(*tensor_shape); } else if (message_arena != ::google::protobuf::Arena::GetArena(*tensor_shape)) { ::tensorflow::TensorShapeProto* new_tensor_shape = ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorShapeProto >( message_arena); new_tensor_shape->CopyFrom(**tensor_shape); *tensor_shape = new_tensor_shape; } } void TensorInfo::unsafe_arena_set_allocated_tensor_shape( ::tensorflow::TensorShapeProto* tensor_shape) { if (GetArenaNoVirtual() == NULL) { delete tensor_shape_; } tensor_shape_ = tensor_shape; if (tensor_shape) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorInfo.tensor_shape) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int TensorInfo::kNameFieldNumber; const int TensorInfo::kCooSparseFieldNumber; const int TensorInfo::kDtypeFieldNumber; const int TensorInfo::kTensorShapeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TensorInfo::TensorInfo() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.TensorInfo) } TensorInfo::TensorInfo(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.TensorInfo) } void TensorInfo::InitAsDefaultInstance() { TensorInfo_default_oneof_instance_->name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); TensorInfo_default_oneof_instance_->coo_sparse_ = const_cast< ::tensorflow::TensorInfo_CooSparse*>( ::tensorflow::TensorInfo_CooSparse::internal_default_instance()); tensor_shape_ = const_cast< ::tensorflow::TensorShapeProto*>( ::tensorflow::TensorShapeProto::internal_default_instance()); } TensorInfo::TensorInfo(const TensorInfo& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.TensorInfo) } void TensorInfo::SharedCtor() { tensor_shape_ = NULL; dtype_ = 0; clear_has_encoding(); _cached_size_ = 0; } TensorInfo::~TensorInfo() { // @@protoc_insertion_point(destructor:tensorflow.TensorInfo) SharedDtor(); } void TensorInfo::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } if (has_encoding()) { clear_encoding(); } if (this != &TensorInfo_default_instance_.get()) { delete tensor_shape_; } } void TensorInfo::ArenaDtor(void* object) { TensorInfo* _this = reinterpret_cast< TensorInfo* >(object); (void)_this; } void TensorInfo::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void TensorInfo::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* TensorInfo::descriptor() { protobuf_AssignDescriptorsOnce(); return TensorInfo_descriptor_; } const TensorInfo& TensorInfo::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<TensorInfo> TensorInfo_default_instance_; TensorInfo* TensorInfo::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<TensorInfo>(arena); } void TensorInfo::clear_encoding() { // @@protoc_insertion_point(one_of_clear_start:tensorflow.TensorInfo) switch (encoding_case()) { case kName: { encoding_.name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); break; } case kCooSparse: { if (GetArenaNoVirtual() == NULL) { delete encoding_.coo_sparse_; } break; } case ENCODING_NOT_SET: { break; } } _oneof_case_[0] = ENCODING_NOT_SET; } void TensorInfo::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.TensorInfo) dtype_ = 0; if (GetArenaNoVirtual() == NULL && tensor_shape_ != NULL) delete tensor_shape_; tensor_shape_ = NULL; clear_encoding(); } bool TensorInfo::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.TensorInfo) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string name = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.TensorInfo.name")); } else { goto handle_unusual; } if (input->ExpectTag(16)) goto parse_dtype; break; } // optional .tensorflow.DataType dtype = 2; case 2: { if (tag == 16) { parse_dtype: int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_dtype(static_cast< ::tensorflow::DataType >(value)); } else { goto handle_unusual; } if (input->ExpectTag(26)) goto parse_tensor_shape; break; } // optional .tensorflow.TensorShapeProto tensor_shape = 3; case 3: { if (tag == 26) { parse_tensor_shape: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_tensor_shape())); } else { goto handle_unusual; } if (input->ExpectTag(34)) goto parse_coo_sparse; break; } // optional .tensorflow.TensorInfo.CooSparse coo_sparse = 4; case 4: { if (tag == 34) { parse_coo_sparse: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_coo_sparse())); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.TensorInfo) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.TensorInfo) return false; #undef DO_ } void TensorInfo::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.TensorInfo) // optional string name = 1; if (has_name()) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.TensorInfo.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } // optional .tensorflow.DataType dtype = 2; if (this->dtype() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 2, this->dtype(), output); } // optional .tensorflow.TensorShapeProto tensor_shape = 3; if (this->has_tensor_shape()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->tensor_shape_, output); } // optional .tensorflow.TensorInfo.CooSparse coo_sparse = 4; if (has_coo_sparse()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *encoding_.coo_sparse_, output); } // @@protoc_insertion_point(serialize_end:tensorflow.TensorInfo) } ::google::protobuf::uint8* TensorInfo::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorInfo) // optional string name = 1; if (has_name()) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.TensorInfo.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); } // optional .tensorflow.DataType dtype = 2; if (this->dtype() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 2, this->dtype(), target); } // optional .tensorflow.TensorShapeProto tensor_shape = 3; if (this->has_tensor_shape()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 3, *this->tensor_shape_, false, target); } // optional .tensorflow.TensorInfo.CooSparse coo_sparse = 4; if (has_coo_sparse()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 4, *encoding_.coo_sparse_, false, target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorInfo) return target; } size_t TensorInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorInfo) size_t total_size = 0; // optional .tensorflow.DataType dtype = 2; if (this->dtype() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->dtype()); } // optional .tensorflow.TensorShapeProto tensor_shape = 3; if (this->has_tensor_shape()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->tensor_shape_); } switch (encoding_case()) { // optional string name = 1; case kName: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); break; } // optional .tensorflow.TensorInfo.CooSparse coo_sparse = 4; case kCooSparse: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *encoding_.coo_sparse_); break; } case ENCODING_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void TensorInfo::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorInfo) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const TensorInfo* source = ::google::protobuf::internal::DynamicCastToGenerated<const TensorInfo>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TensorInfo) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorInfo) UnsafeMergeFrom(*source); } } void TensorInfo::MergeFrom(const TensorInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorInfo) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void TensorInfo::UnsafeMergeFrom(const TensorInfo& from) { GOOGLE_DCHECK(&from != this); switch (from.encoding_case()) { case kName: { set_name(from.name()); break; } case kCooSparse: { mutable_coo_sparse()->::tensorflow::TensorInfo_CooSparse::MergeFrom(from.coo_sparse()); break; } case ENCODING_NOT_SET: { break; } } if (from.dtype() != 0) { set_dtype(from.dtype()); } if (from.has_tensor_shape()) { mutable_tensor_shape()->::tensorflow::TensorShapeProto::MergeFrom(from.tensor_shape()); } } void TensorInfo::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TensorInfo) if (&from == this) return; Clear(); MergeFrom(from); } void TensorInfo::CopyFrom(const TensorInfo& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorInfo) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool TensorInfo::IsInitialized() const { return true; } void TensorInfo::Swap(TensorInfo* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { TensorInfo temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void TensorInfo::UnsafeArenaSwap(TensorInfo* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void TensorInfo::InternalSwap(TensorInfo* other) { std::swap(dtype_, other->dtype_); std::swap(tensor_shape_, other->tensor_shape_); std::swap(encoding_, other->encoding_); std::swap(_oneof_case_[0], other->_oneof_case_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata TensorInfo::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = TensorInfo_descriptor_; metadata.reflection = TensorInfo_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // TensorInfo_CooSparse // optional string values_tensor_name = 1; void TensorInfo_CooSparse::clear_values_tensor_name() { values_tensor_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& TensorInfo_CooSparse::values_tensor_name() const { // @@protoc_insertion_point(field_get:tensorflow.TensorInfo.CooSparse.values_tensor_name) return values_tensor_name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void TensorInfo_CooSparse::set_values_tensor_name(const ::std::string& value) { values_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.TensorInfo.CooSparse.values_tensor_name) } void TensorInfo_CooSparse::set_values_tensor_name(const char* value) { values_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.TensorInfo.CooSparse.values_tensor_name) } void TensorInfo_CooSparse::set_values_tensor_name(const char* value, size_t size) { values_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.TensorInfo.CooSparse.values_tensor_name) } ::std::string* TensorInfo_CooSparse::mutable_values_tensor_name() { // @@protoc_insertion_point(field_mutable:tensorflow.TensorInfo.CooSparse.values_tensor_name) return values_tensor_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* TensorInfo_CooSparse::release_values_tensor_name() { // @@protoc_insertion_point(field_release:tensorflow.TensorInfo.CooSparse.values_tensor_name) return values_tensor_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* TensorInfo_CooSparse::unsafe_arena_release_values_tensor_name() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorInfo.CooSparse.values_tensor_name) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return values_tensor_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void TensorInfo_CooSparse::set_allocated_values_tensor_name(::std::string* values_tensor_name) { if (values_tensor_name != NULL) { } else { } values_tensor_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), values_tensor_name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorInfo.CooSparse.values_tensor_name) } void TensorInfo_CooSparse::unsafe_arena_set_allocated_values_tensor_name( ::std::string* values_tensor_name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (values_tensor_name != NULL) { } else { } values_tensor_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), values_tensor_name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorInfo.CooSparse.values_tensor_name) } // optional string indices_tensor_name = 2; void TensorInfo_CooSparse::clear_indices_tensor_name() { indices_tensor_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& TensorInfo_CooSparse::indices_tensor_name() const { // @@protoc_insertion_point(field_get:tensorflow.TensorInfo.CooSparse.indices_tensor_name) return indices_tensor_name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void TensorInfo_CooSparse::set_indices_tensor_name(const ::std::string& value) { indices_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.TensorInfo.CooSparse.indices_tensor_name) } void TensorInfo_CooSparse::set_indices_tensor_name(const char* value) { indices_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.TensorInfo.CooSparse.indices_tensor_name) } void TensorInfo_CooSparse::set_indices_tensor_name(const char* value, size_t size) { indices_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.TensorInfo.CooSparse.indices_tensor_name) } ::std::string* TensorInfo_CooSparse::mutable_indices_tensor_name() { // @@protoc_insertion_point(field_mutable:tensorflow.TensorInfo.CooSparse.indices_tensor_name) return indices_tensor_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* TensorInfo_CooSparse::release_indices_tensor_name() { // @@protoc_insertion_point(field_release:tensorflow.TensorInfo.CooSparse.indices_tensor_name) return indices_tensor_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* TensorInfo_CooSparse::unsafe_arena_release_indices_tensor_name() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorInfo.CooSparse.indices_tensor_name) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return indices_tensor_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void TensorInfo_CooSparse::set_allocated_indices_tensor_name(::std::string* indices_tensor_name) { if (indices_tensor_name != NULL) { } else { } indices_tensor_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), indices_tensor_name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorInfo.CooSparse.indices_tensor_name) } void TensorInfo_CooSparse::unsafe_arena_set_allocated_indices_tensor_name( ::std::string* indices_tensor_name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (indices_tensor_name != NULL) { } else { } indices_tensor_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), indices_tensor_name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorInfo.CooSparse.indices_tensor_name) } // optional string dense_shape_tensor_name = 3; void TensorInfo_CooSparse::clear_dense_shape_tensor_name() { dense_shape_tensor_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& TensorInfo_CooSparse::dense_shape_tensor_name() const { // @@protoc_insertion_point(field_get:tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name) return dense_shape_tensor_name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void TensorInfo_CooSparse::set_dense_shape_tensor_name(const ::std::string& value) { dense_shape_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name) } void TensorInfo_CooSparse::set_dense_shape_tensor_name(const char* value) { dense_shape_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name) } void TensorInfo_CooSparse::set_dense_shape_tensor_name(const char* value, size_t size) { dense_shape_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name) } ::std::string* TensorInfo_CooSparse::mutable_dense_shape_tensor_name() { // @@protoc_insertion_point(field_mutable:tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name) return dense_shape_tensor_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* TensorInfo_CooSparse::release_dense_shape_tensor_name() { // @@protoc_insertion_point(field_release:tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name) return dense_shape_tensor_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* TensorInfo_CooSparse::unsafe_arena_release_dense_shape_tensor_name() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return dense_shape_tensor_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void TensorInfo_CooSparse::set_allocated_dense_shape_tensor_name(::std::string* dense_shape_tensor_name) { if (dense_shape_tensor_name != NULL) { } else { } dense_shape_tensor_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dense_shape_tensor_name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name) } void TensorInfo_CooSparse::unsafe_arena_set_allocated_dense_shape_tensor_name( ::std::string* dense_shape_tensor_name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (dense_shape_tensor_name != NULL) { } else { } dense_shape_tensor_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dense_shape_tensor_name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorInfo.CooSparse.dense_shape_tensor_name) } inline const TensorInfo_CooSparse* TensorInfo_CooSparse::internal_default_instance() { return &TensorInfo_CooSparse_default_instance_.get(); } // ------------------------------------------------------------------- // TensorInfo // optional string name = 1; bool TensorInfo::has_name() const { return encoding_case() == kName; } void TensorInfo::set_has_name() { _oneof_case_[0] = kName; } void TensorInfo::clear_name() { if (has_name()) { encoding_.name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); clear_has_encoding(); } } const ::std::string& TensorInfo::name() const { // @@protoc_insertion_point(field_get:tensorflow.TensorInfo.name) if (has_name()) { return encoding_.name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); } void TensorInfo::set_name(const ::std::string& value) { if (!has_name()) { clear_encoding(); set_has_name(); encoding_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } encoding_.name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.TensorInfo.name) } void TensorInfo::set_name(const char* value) { if (!has_name()) { clear_encoding(); set_has_name(); encoding_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } encoding_.name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.TensorInfo.name) } void TensorInfo::set_name(const char* value, size_t size) { if (!has_name()) { clear_encoding(); set_has_name(); encoding_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } encoding_.name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.TensorInfo.name) } ::std::string* TensorInfo::mutable_name() { if (!has_name()) { clear_encoding(); set_has_name(); encoding_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } return encoding_.name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); // @@protoc_insertion_point(field_mutable:tensorflow.TensorInfo.name) } ::std::string* TensorInfo::release_name() { // @@protoc_insertion_point(field_release:tensorflow.TensorInfo.name) if (has_name()) { clear_has_encoding(); return encoding_.name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } else { return NULL; } } ::std::string* TensorInfo::unsafe_arena_release_name() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorInfo.name) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (has_name()) { clear_has_encoding(); return encoding_.name_.UnsafeArenaRelease( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } else { return NULL; } } void TensorInfo::set_allocated_name(::std::string* name) { if (!has_name()) { encoding_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } clear_encoding(); if (name != NULL) { set_has_name(); encoding_.name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, GetArenaNoVirtual()); } // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorInfo.name) } void TensorInfo::unsafe_arena_set_allocated_name(::std::string* name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (!has_name()) { encoding_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } clear_encoding(); if (name) { set_has_name(); encoding_.name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, GetArenaNoVirtual()); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorInfo.name) } // optional .tensorflow.TensorInfo.CooSparse coo_sparse = 4; bool TensorInfo::has_coo_sparse() const { return encoding_case() == kCooSparse; } void TensorInfo::set_has_coo_sparse() { _oneof_case_[0] = kCooSparse; } void TensorInfo::clear_coo_sparse() { if (has_coo_sparse()) { if (GetArenaNoVirtual() == NULL) { delete encoding_.coo_sparse_; } clear_has_encoding(); } } const ::tensorflow::TensorInfo_CooSparse& TensorInfo::coo_sparse() const { // @@protoc_insertion_point(field_get:tensorflow.TensorInfo.coo_sparse) return has_coo_sparse() ? *encoding_.coo_sparse_ : ::tensorflow::TensorInfo_CooSparse::default_instance(); } ::tensorflow::TensorInfo_CooSparse* TensorInfo::mutable_coo_sparse() { if (!has_coo_sparse()) { clear_encoding(); set_has_coo_sparse(); encoding_.coo_sparse_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorInfo_CooSparse >( GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:tensorflow.TensorInfo.coo_sparse) return encoding_.coo_sparse_; } ::tensorflow::TensorInfo_CooSparse* TensorInfo::release_coo_sparse() { // @@protoc_insertion_point(field_release:tensorflow.TensorInfo.coo_sparse) if (has_coo_sparse()) { clear_has_encoding(); if (GetArenaNoVirtual() != NULL) { ::tensorflow::TensorInfo_CooSparse* temp = new ::tensorflow::TensorInfo_CooSparse(*encoding_.coo_sparse_); encoding_.coo_sparse_ = NULL; return temp; } else { ::tensorflow::TensorInfo_CooSparse* temp = encoding_.coo_sparse_; encoding_.coo_sparse_ = NULL; return temp; } } else { return NULL; } } void TensorInfo::set_allocated_coo_sparse(::tensorflow::TensorInfo_CooSparse* coo_sparse) { clear_encoding(); if (coo_sparse) { if (GetArenaNoVirtual() != NULL && ::google::protobuf::Arena::GetArena(coo_sparse) == NULL) { GetArenaNoVirtual()->Own(coo_sparse); } else if (GetArenaNoVirtual() != ::google::protobuf::Arena::GetArena(coo_sparse)) { ::tensorflow::TensorInfo_CooSparse* new_coo_sparse = ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorInfo_CooSparse >( GetArenaNoVirtual()); new_coo_sparse->CopyFrom(*coo_sparse); coo_sparse = new_coo_sparse; } set_has_coo_sparse(); encoding_.coo_sparse_ = coo_sparse; } // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorInfo.coo_sparse) } ::tensorflow::TensorInfo_CooSparse* TensorInfo::unsafe_arena_release_coo_sparse() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorInfo.coo_sparse) if (has_coo_sparse()) { clear_has_encoding(); ::tensorflow::TensorInfo_CooSparse* temp = encoding_.coo_sparse_; encoding_.coo_sparse_ = NULL; return temp; } else { return NULL; } } void TensorInfo::unsafe_arena_set_allocated_coo_sparse(::tensorflow::TensorInfo_CooSparse* coo_sparse) { clear_encoding(); if (coo_sparse) { set_has_coo_sparse(); encoding_.coo_sparse_ = coo_sparse; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorInfo.coo_sparse) } // optional .tensorflow.DataType dtype = 2; void TensorInfo::clear_dtype() { dtype_ = 0; } ::tensorflow::DataType TensorInfo::dtype() const { // @@protoc_insertion_point(field_get:tensorflow.TensorInfo.dtype) return static_cast< ::tensorflow::DataType >(dtype_); } void TensorInfo::set_dtype(::tensorflow::DataType value) { dtype_ = value; // @@protoc_insertion_point(field_set:tensorflow.TensorInfo.dtype) } // optional .tensorflow.TensorShapeProto tensor_shape = 3; bool TensorInfo::has_tensor_shape() const { return this != internal_default_instance() && tensor_shape_ != NULL; } void TensorInfo::clear_tensor_shape() { if (GetArenaNoVirtual() == NULL && tensor_shape_ != NULL) delete tensor_shape_; tensor_shape_ = NULL; } const ::tensorflow::TensorShapeProto& TensorInfo::tensor_shape() const { // @@protoc_insertion_point(field_get:tensorflow.TensorInfo.tensor_shape) return tensor_shape_ != NULL ? *tensor_shape_ : *::tensorflow::TensorShapeProto::internal_default_instance(); } ::tensorflow::TensorShapeProto* TensorInfo::mutable_tensor_shape() { if (tensor_shape_ == NULL) { _slow_mutable_tensor_shape(); } // @@protoc_insertion_point(field_mutable:tensorflow.TensorInfo.tensor_shape) return tensor_shape_; } ::tensorflow::TensorShapeProto* TensorInfo::release_tensor_shape() { // @@protoc_insertion_point(field_release:tensorflow.TensorInfo.tensor_shape) if (GetArenaNoVirtual() != NULL) { return _slow_release_tensor_shape(); } else { ::tensorflow::TensorShapeProto* temp = tensor_shape_; tensor_shape_ = NULL; return temp; } } void TensorInfo::set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete tensor_shape_; } if (tensor_shape != NULL) { _slow_set_allocated_tensor_shape(message_arena, &tensor_shape); } tensor_shape_ = tensor_shape; if (tensor_shape) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorInfo.tensor_shape) } bool TensorInfo::has_encoding() const { return encoding_case() != ENCODING_NOT_SET; } void TensorInfo::clear_has_encoding() { _oneof_case_[0] = ENCODING_NOT_SET; } TensorInfo::EncodingCase TensorInfo::encoding_case() const { return TensorInfo::EncodingCase(_oneof_case_[0]); } inline const TensorInfo* TensorInfo::internal_default_instance() { return &TensorInfo_default_instance_.get(); } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int SignatureDef::kInputsFieldNumber; const int SignatureDef::kOutputsFieldNumber; const int SignatureDef::kMethodNameFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SignatureDef::SignatureDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.SignatureDef) } SignatureDef::SignatureDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), inputs_(arena), outputs_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.SignatureDef) } void SignatureDef::InitAsDefaultInstance() { } SignatureDef::SignatureDef(const SignatureDef& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.SignatureDef) } void SignatureDef::SharedCtor() { inputs_.SetAssignDescriptorCallback( protobuf_AssignDescriptorsOnce); inputs_.SetEntryDescriptor( &::tensorflow::SignatureDef_InputsEntry_descriptor_); outputs_.SetAssignDescriptorCallback( protobuf_AssignDescriptorsOnce); outputs_.SetEntryDescriptor( &::tensorflow::SignatureDef_OutputsEntry_descriptor_); method_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _cached_size_ = 0; } SignatureDef::~SignatureDef() { // @@protoc_insertion_point(destructor:tensorflow.SignatureDef) SharedDtor(); } void SignatureDef::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } method_name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void SignatureDef::ArenaDtor(void* object) { SignatureDef* _this = reinterpret_cast< SignatureDef* >(object); (void)_this; } void SignatureDef::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void SignatureDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* SignatureDef::descriptor() { protobuf_AssignDescriptorsOnce(); return SignatureDef_descriptor_; } const SignatureDef& SignatureDef::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<SignatureDef> SignatureDef_default_instance_; SignatureDef* SignatureDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<SignatureDef>(arena); } void SignatureDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.SignatureDef) method_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); inputs_.Clear(); outputs_.Clear(); } bool SignatureDef::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.SignatureDef) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // map<string, .tensorflow.TensorInfo> inputs = 1; case 1: { if (tag == 10) { DO_(input->IncrementRecursionDepth()); parse_loop_inputs: SignatureDef_InputsEntry::Parser< ::google::protobuf::internal::MapField< ::std::string, ::tensorflow::TensorInfo, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 >, ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo > > parser(&inputs_); DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, &parser)); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( parser.key().data(), parser.key().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.SignatureDef.InputsEntry.key")); } else { goto handle_unusual; } if (input->ExpectTag(10)) goto parse_loop_inputs; if (input->ExpectTag(18)) goto parse_loop_outputs; input->UnsafeDecrementRecursionDepth(); break; } // map<string, .tensorflow.TensorInfo> outputs = 2; case 2: { if (tag == 18) { DO_(input->IncrementRecursionDepth()); parse_loop_outputs: SignatureDef_OutputsEntry::Parser< ::google::protobuf::internal::MapField< ::std::string, ::tensorflow::TensorInfo, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 >, ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo > > parser(&outputs_); DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, &parser)); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( parser.key().data(), parser.key().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.SignatureDef.OutputsEntry.key")); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_loop_outputs; input->UnsafeDecrementRecursionDepth(); if (input->ExpectTag(26)) goto parse_method_name; break; } // optional string method_name = 3; case 3: { if (tag == 26) { parse_method_name: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_method_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->method_name().data(), this->method_name().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.SignatureDef.method_name")); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.SignatureDef) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.SignatureDef) return false; #undef DO_ } void SignatureDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.SignatureDef) // map<string, .tensorflow.TensorInfo> inputs = 1; if (!this->inputs().empty()) { typedef ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), p->first.length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.SignatureDef.InputsEntry.key"); } }; if (output->IsSerializationDeterminstic() && this->inputs().size() > 1) { ::google::protobuf::scoped_array<SortItem> items( new SortItem[this->inputs().size()]); typedef ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_iterator it = this->inputs().begin(); it != this->inputs().end(); ++it, ++n) { items[n] = SortItem(&*it); } ::std::sort(&items[0], &items[n], Less()); ::google::protobuf::scoped_ptr<SignatureDef_InputsEntry> entry; for (size_type i = 0; i < n; i++) { entry.reset(inputs_.NewEntryWrapper( items[i]->first, items[i]->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[i]); } } else { ::google::protobuf::scoped_ptr<SignatureDef_InputsEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_iterator it = this->inputs().begin(); it != this->inputs().end(); ++it) { entry.reset(inputs_.NewEntryWrapper( it->first, it->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } // map<string, .tensorflow.TensorInfo> outputs = 2; if (!this->outputs().empty()) { typedef ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), p->first.length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.SignatureDef.OutputsEntry.key"); } }; if (output->IsSerializationDeterminstic() && this->outputs().size() > 1) { ::google::protobuf::scoped_array<SortItem> items( new SortItem[this->outputs().size()]); typedef ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_iterator it = this->outputs().begin(); it != this->outputs().end(); ++it, ++n) { items[n] = SortItem(&*it); } ::std::sort(&items[0], &items[n], Less()); ::google::protobuf::scoped_ptr<SignatureDef_OutputsEntry> entry; for (size_type i = 0; i < n; i++) { entry.reset(outputs_.NewEntryWrapper( items[i]->first, items[i]->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[i]); } } else { ::google::protobuf::scoped_ptr<SignatureDef_OutputsEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_iterator it = this->outputs().begin(); it != this->outputs().end(); ++it) { entry.reset(outputs_.NewEntryWrapper( it->first, it->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } // optional string method_name = 3; if (this->method_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->method_name().data(), this->method_name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.SignatureDef.method_name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->method_name(), output); } // @@protoc_insertion_point(serialize_end:tensorflow.SignatureDef) } ::google::protobuf::uint8* SignatureDef::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.SignatureDef) // map<string, .tensorflow.TensorInfo> inputs = 1; if (!this->inputs().empty()) { typedef ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), p->first.length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.SignatureDef.InputsEntry.key"); } }; if (deterministic && this->inputs().size() > 1) { ::google::protobuf::scoped_array<SortItem> items( new SortItem[this->inputs().size()]); typedef ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_iterator it = this->inputs().begin(); it != this->inputs().end(); ++it, ++n) { items[n] = SortItem(&*it); } ::std::sort(&items[0], &items[n], Less()); ::google::protobuf::scoped_ptr<SignatureDef_InputsEntry> entry; for (size_type i = 0; i < n; i++) { entry.reset(inputs_.NewEntryWrapper( items[i]->first, items[i]->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[i]); } } else { ::google::protobuf::scoped_ptr<SignatureDef_InputsEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_iterator it = this->inputs().begin(); it != this->inputs().end(); ++it) { entry.reset(inputs_.NewEntryWrapper( it->first, it->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } // map<string, .tensorflow.TensorInfo> outputs = 2; if (!this->outputs().empty()) { typedef ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), p->first.length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.SignatureDef.OutputsEntry.key"); } }; if (deterministic && this->outputs().size() > 1) { ::google::protobuf::scoped_array<SortItem> items( new SortItem[this->outputs().size()]); typedef ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_iterator it = this->outputs().begin(); it != this->outputs().end(); ++it, ++n) { items[n] = SortItem(&*it); } ::std::sort(&items[0], &items[n], Less()); ::google::protobuf::scoped_ptr<SignatureDef_OutputsEntry> entry; for (size_type i = 0; i < n; i++) { entry.reset(outputs_.NewEntryWrapper( items[i]->first, items[i]->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 2, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[i]); } } else { ::google::protobuf::scoped_ptr<SignatureDef_OutputsEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_iterator it = this->outputs().begin(); it != this->outputs().end(); ++it) { entry.reset(outputs_.NewEntryWrapper( it->first, it->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 2, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } // optional string method_name = 3; if (this->method_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->method_name().data(), this->method_name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.SignatureDef.method_name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->method_name(), target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.SignatureDef) return target; } size_t SignatureDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.SignatureDef) size_t total_size = 0; // optional string method_name = 3; if (this->method_name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->method_name()); } // map<string, .tensorflow.TensorInfo> inputs = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->inputs_size()); { ::google::protobuf::scoped_ptr<SignatureDef_InputsEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_iterator it = this->inputs().begin(); it != this->inputs().end(); ++it) { if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } entry.reset(inputs_.NewEntryWrapper(it->first, it->second)); total_size += ::google::protobuf::internal::WireFormatLite:: MessageSizeNoVirtual(*entry); } if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } } // map<string, .tensorflow.TensorInfo> outputs = 2; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->outputs_size()); { ::google::protobuf::scoped_ptr<SignatureDef_OutputsEntry> entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >::const_iterator it = this->outputs().begin(); it != this->outputs().end(); ++it) { if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } entry.reset(outputs_.NewEntryWrapper(it->first, it->second)); total_size += ::google::protobuf::internal::WireFormatLite:: MessageSizeNoVirtual(*entry); } if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void SignatureDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.SignatureDef) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const SignatureDef* source = ::google::protobuf::internal::DynamicCastToGenerated<const SignatureDef>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.SignatureDef) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.SignatureDef) UnsafeMergeFrom(*source); } } void SignatureDef::MergeFrom(const SignatureDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.SignatureDef) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void SignatureDef::UnsafeMergeFrom(const SignatureDef& from) { GOOGLE_DCHECK(&from != this); inputs_.MergeFrom(from.inputs_); outputs_.MergeFrom(from.outputs_); if (from.method_name().size() > 0) { set_method_name(from.method_name()); } } void SignatureDef::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.SignatureDef) if (&from == this) return; Clear(); MergeFrom(from); } void SignatureDef::CopyFrom(const SignatureDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.SignatureDef) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool SignatureDef::IsInitialized() const { return true; } void SignatureDef::Swap(SignatureDef* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { SignatureDef temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void SignatureDef::UnsafeArenaSwap(SignatureDef* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void SignatureDef::InternalSwap(SignatureDef* other) { inputs_.Swap(&other->inputs_); outputs_.Swap(&other->outputs_); method_name_.Swap(&other->method_name_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata SignatureDef::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = SignatureDef_descriptor_; metadata.reflection = SignatureDef_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // SignatureDef // map<string, .tensorflow.TensorInfo> inputs = 1; int SignatureDef::inputs_size() const { return inputs_.size(); } void SignatureDef::clear_inputs() { inputs_.Clear(); } const ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >& SignatureDef::inputs() const { // @@protoc_insertion_point(field_map:tensorflow.SignatureDef.inputs) return inputs_.GetMap(); } ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >* SignatureDef::mutable_inputs() { // @@protoc_insertion_point(field_mutable_map:tensorflow.SignatureDef.inputs) return inputs_.MutableMap(); } // map<string, .tensorflow.TensorInfo> outputs = 2; int SignatureDef::outputs_size() const { return outputs_.size(); } void SignatureDef::clear_outputs() { outputs_.Clear(); } const ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >& SignatureDef::outputs() const { // @@protoc_insertion_point(field_map:tensorflow.SignatureDef.outputs) return outputs_.GetMap(); } ::google::protobuf::Map< ::std::string, ::tensorflow::TensorInfo >* SignatureDef::mutable_outputs() { // @@protoc_insertion_point(field_mutable_map:tensorflow.SignatureDef.outputs) return outputs_.MutableMap(); } // optional string method_name = 3; void SignatureDef::clear_method_name() { method_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& SignatureDef::method_name() const { // @@protoc_insertion_point(field_get:tensorflow.SignatureDef.method_name) return method_name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SignatureDef::set_method_name(const ::std::string& value) { method_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.SignatureDef.method_name) } void SignatureDef::set_method_name(const char* value) { method_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.SignatureDef.method_name) } void SignatureDef::set_method_name(const char* value, size_t size) { method_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.SignatureDef.method_name) } ::std::string* SignatureDef::mutable_method_name() { // @@protoc_insertion_point(field_mutable:tensorflow.SignatureDef.method_name) return method_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SignatureDef::release_method_name() { // @@protoc_insertion_point(field_release:tensorflow.SignatureDef.method_name) return method_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SignatureDef::unsafe_arena_release_method_name() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SignatureDef.method_name) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return method_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void SignatureDef::set_allocated_method_name(::std::string* method_name) { if (method_name != NULL) { } else { } method_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), method_name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.SignatureDef.method_name) } void SignatureDef::unsafe_arena_set_allocated_method_name( ::std::string* method_name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (method_name != NULL) { } else { } method_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), method_name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SignatureDef.method_name) } inline const SignatureDef* SignatureDef::internal_default_instance() { return &SignatureDef_default_instance_.get(); } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== void AssetFileDef::_slow_mutable_tensor_info() { tensor_info_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorInfo >( GetArenaNoVirtual()); } ::tensorflow::TensorInfo* AssetFileDef::_slow_release_tensor_info() { if (tensor_info_ == NULL) { return NULL; } else { ::tensorflow::TensorInfo* temp = new ::tensorflow::TensorInfo(*tensor_info_); tensor_info_ = NULL; return temp; } } ::tensorflow::TensorInfo* AssetFileDef::unsafe_arena_release_tensor_info() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AssetFileDef.tensor_info) ::tensorflow::TensorInfo* temp = tensor_info_; tensor_info_ = NULL; return temp; } void AssetFileDef::_slow_set_allocated_tensor_info( ::google::protobuf::Arena* message_arena, ::tensorflow::TensorInfo** tensor_info) { if (message_arena != NULL && ::google::protobuf::Arena::GetArena(*tensor_info) == NULL) { message_arena->Own(*tensor_info); } else if (message_arena != ::google::protobuf::Arena::GetArena(*tensor_info)) { ::tensorflow::TensorInfo* new_tensor_info = ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorInfo >( message_arena); new_tensor_info->CopyFrom(**tensor_info); *tensor_info = new_tensor_info; } } void AssetFileDef::unsafe_arena_set_allocated_tensor_info( ::tensorflow::TensorInfo* tensor_info) { if (GetArenaNoVirtual() == NULL) { delete tensor_info_; } tensor_info_ = tensor_info; if (tensor_info) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AssetFileDef.tensor_info) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int AssetFileDef::kTensorInfoFieldNumber; const int AssetFileDef::kFilenameFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 AssetFileDef::AssetFileDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.AssetFileDef) } AssetFileDef::AssetFileDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.AssetFileDef) } void AssetFileDef::InitAsDefaultInstance() { tensor_info_ = const_cast< ::tensorflow::TensorInfo*>( ::tensorflow::TensorInfo::internal_default_instance()); } AssetFileDef::AssetFileDef(const AssetFileDef& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.AssetFileDef) } void AssetFileDef::SharedCtor() { filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); tensor_info_ = NULL; _cached_size_ = 0; } AssetFileDef::~AssetFileDef() { // @@protoc_insertion_point(destructor:tensorflow.AssetFileDef) SharedDtor(); } void AssetFileDef::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } filename_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); if (this != &AssetFileDef_default_instance_.get()) { delete tensor_info_; } } void AssetFileDef::ArenaDtor(void* object) { AssetFileDef* _this = reinterpret_cast< AssetFileDef* >(object); (void)_this; } void AssetFileDef::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void AssetFileDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* AssetFileDef::descriptor() { protobuf_AssignDescriptorsOnce(); return AssetFileDef_descriptor_; } const AssetFileDef& AssetFileDef::default_instance() { protobuf_InitDefaults_tensorflow_2fcore_2fprotobuf_2fmeta_5fgraph_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed<AssetFileDef> AssetFileDef_default_instance_; AssetFileDef* AssetFileDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<AssetFileDef>(arena); } void AssetFileDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.AssetFileDef) if (GetArenaNoVirtual() == NULL && tensor_info_ != NULL) delete tensor_info_; tensor_info_ = NULL; filename_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } bool AssetFileDef::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.AssetFileDef) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .tensorflow.TensorInfo tensor_info = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_tensor_info())); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_filename; break; } // optional string filename = 2; case 2: { if (tag == 18) { parse_filename: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_filename())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->filename().data(), this->filename().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.AssetFileDef.filename")); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.AssetFileDef) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.AssetFileDef) return false; #undef DO_ } void AssetFileDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.AssetFileDef) // optional .tensorflow.TensorInfo tensor_info = 1; if (this->has_tensor_info()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->tensor_info_, output); } // optional string filename = 2; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->filename().data(), this->filename().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.AssetFileDef.filename"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->filename(), output); } // @@protoc_insertion_point(serialize_end:tensorflow.AssetFileDef) } ::google::protobuf::uint8* AssetFileDef::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.AssetFileDef) // optional .tensorflow.TensorInfo tensor_info = 1; if (this->has_tensor_info()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, *this->tensor_info_, false, target); } // optional string filename = 2; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->filename().data(), this->filename().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.AssetFileDef.filename"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->filename(), target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.AssetFileDef) return target; } size_t AssetFileDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.AssetFileDef) size_t total_size = 0; // optional .tensorflow.TensorInfo tensor_info = 1; if (this->has_tensor_info()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->tensor_info_); } // optional string filename = 2; if (this->filename().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->filename()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void AssetFileDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.AssetFileDef) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const AssetFileDef* source = ::google::protobuf::internal::DynamicCastToGenerated<const AssetFileDef>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.AssetFileDef) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.AssetFileDef) UnsafeMergeFrom(*source); } } void AssetFileDef::MergeFrom(const AssetFileDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.AssetFileDef) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void AssetFileDef::UnsafeMergeFrom(const AssetFileDef& from) { GOOGLE_DCHECK(&from != this); if (from.has_tensor_info()) { mutable_tensor_info()->::tensorflow::TensorInfo::MergeFrom(from.tensor_info()); } if (from.filename().size() > 0) { set_filename(from.filename()); } } void AssetFileDef::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.AssetFileDef) if (&from == this) return; Clear(); MergeFrom(from); } void AssetFileDef::CopyFrom(const AssetFileDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.AssetFileDef) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool AssetFileDef::IsInitialized() const { return true; } void AssetFileDef::Swap(AssetFileDef* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { AssetFileDef temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void AssetFileDef::UnsafeArenaSwap(AssetFileDef* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void AssetFileDef::InternalSwap(AssetFileDef* other) { std::swap(tensor_info_, other->tensor_info_); filename_.Swap(&other->filename_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata AssetFileDef::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = AssetFileDef_descriptor_; metadata.reflection = AssetFileDef_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // AssetFileDef // optional .tensorflow.TensorInfo tensor_info = 1; bool AssetFileDef::has_tensor_info() const { return this != internal_default_instance() && tensor_info_ != NULL; } void AssetFileDef::clear_tensor_info() { if (GetArenaNoVirtual() == NULL && tensor_info_ != NULL) delete tensor_info_; tensor_info_ = NULL; } const ::tensorflow::TensorInfo& AssetFileDef::tensor_info() const { // @@protoc_insertion_point(field_get:tensorflow.AssetFileDef.tensor_info) return tensor_info_ != NULL ? *tensor_info_ : *::tensorflow::TensorInfo::internal_default_instance(); } ::tensorflow::TensorInfo* AssetFileDef::mutable_tensor_info() { if (tensor_info_ == NULL) { _slow_mutable_tensor_info(); } // @@protoc_insertion_point(field_mutable:tensorflow.AssetFileDef.tensor_info) return tensor_info_; } ::tensorflow::TensorInfo* AssetFileDef::release_tensor_info() { // @@protoc_insertion_point(field_release:tensorflow.AssetFileDef.tensor_info) if (GetArenaNoVirtual() != NULL) { return _slow_release_tensor_info(); } else { ::tensorflow::TensorInfo* temp = tensor_info_; tensor_info_ = NULL; return temp; } } void AssetFileDef::set_allocated_tensor_info(::tensorflow::TensorInfo* tensor_info) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete tensor_info_; } if (tensor_info != NULL) { _slow_set_allocated_tensor_info(message_arena, &tensor_info); } tensor_info_ = tensor_info; if (tensor_info) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.AssetFileDef.tensor_info) } // optional string filename = 2; void AssetFileDef::clear_filename() { filename_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& AssetFileDef::filename() const { // @@protoc_insertion_point(field_get:tensorflow.AssetFileDef.filename) return filename_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void AssetFileDef::set_filename(const ::std::string& value) { filename_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.AssetFileDef.filename) } void AssetFileDef::set_filename(const char* value) { filename_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.AssetFileDef.filename) } void AssetFileDef::set_filename(const char* value, size_t size) { filename_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.AssetFileDef.filename) } ::std::string* AssetFileDef::mutable_filename() { // @@protoc_insertion_point(field_mutable:tensorflow.AssetFileDef.filename) return filename_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* AssetFileDef::release_filename() { // @@protoc_insertion_point(field_release:tensorflow.AssetFileDef.filename) return filename_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* AssetFileDef::unsafe_arena_release_filename() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AssetFileDef.filename) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return filename_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void AssetFileDef::set_allocated_filename(::std::string* filename) { if (filename != NULL) { } else { } filename_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.AssetFileDef.filename) } void AssetFileDef::unsafe_arena_set_allocated_filename( ::std::string* filename) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (filename != NULL) { } else { } filename_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AssetFileDef.filename) } inline const AssetFileDef* AssetFileDef::internal_default_instance() { return &AssetFileDef_default_instance_.get(); } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace tensorflow // @@protoc_insertion_point(global_scope)
38.72193
143
0.724483
langsunny
86dc14fa56d3ed07953dcfd7230caa1ac1ba9818
17,404
cpp
C++
Source/AllProjects/CIDLib/CIDLib_SharedMemory.cpp
eudora-jia/CIDLib
02795d283d95f8a5a4fafa401b6189851901b81b
[ "MIT" ]
1
2019-05-28T06:33:01.000Z
2019-05-28T06:33:01.000Z
Source/AllProjects/CIDLib/CIDLib_SharedMemory.cpp
eudora-jia/CIDLib
02795d283d95f8a5a4fafa401b6189851901b81b
[ "MIT" ]
null
null
null
Source/AllProjects/CIDLib/CIDLib_SharedMemory.cpp
eudora-jia/CIDLib
02795d283d95f8a5a4fafa401b6189851901b81b
[ "MIT" ]
null
null
null
// // FILE NAME: CIDLib_SharedMemory.cpp // // AUTHOR: Dean Roddey // // CREATED: 02/28/1997 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2019 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://opensource.org/licenses/MIT // // DESCRIPTION: // // This method provides a derivative of TMemBuf that manages named, shared // memory buffers. They are much like TSysBuf objects, but are named and // can be shared between processes. // // CAVEATS/GOTCHAS: // // LOG: // // $_CIDLib_Log_$ // // --------------------------------------------------------------------------- // Facility specific includes // --------------------------------------------------------------------------- #include "CIDLib_.hpp" // --------------------------------------------------------------------------- // Do our RTTI macros // --------------------------------------------------------------------------- RTTIDecls(TSharedMemBuf,TMemBuf) // --------------------------------------------------------------------------- // Local data // --------------------------------------------------------------------------- namespace CIDLib_SharedMemory { const tCIDLib::TCard2 c2FmtVersion = 1; } // --------------------------------------------------------------------------- // CLASS: TSharedMemBuf // PREFIX: mbuf // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- // TSharedMemBuf: Constructors and Destructor // --------------------------------------------------------------------------- TSharedMemBuf::TSharedMemBuf(const tCIDLib::TCard4 c4InitSize , const tCIDLib::TCard4 c4MaxSize , const TResourceName& rsnToUse , tCIDLib::TBoolean& bCreated , const tCIDLib::EMemAccFlags eAccessFlags , const tCIDLib::ECreateActs eCreate) : m_c4Size(c4InitSize) , m_rsnThis(rsnToUse) { // // Validate the size, but not the expand increment which is set // implicitly by us and can never be wrong. // ValidateSizes(c4InitSize, c4MaxSize); // // Determine if we should just pre-commit. If the number of pages needed // to hold the init and max size are the same, we can. // const tCIDLib::TCard4 c4InitPages = TRawMem::c4PagesCovered(c4InitSize); const tCIDLib::TCard4 c4MaxPages = TRawMem::c4PagesCovered(c4MaxSize); const tCIDLib::EAllocTypes eAlloc = (c4InitPages == c4MaxPages) ? tCIDLib::EAllocTypes::Commit : tCIDLib::EAllocTypes::Lazy; if (!m_ksmbThis.bAlloc ( m_rsnThis.strFullName(tCIDLib::ENamedRscTypes::Memory).pszBuffer() , c4MaxSize , eAlloc , eAccessFlags , bCreated , eCreate)) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_AllocShared , TKrnlError::kerrLast() , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::CantDo , TCardinal(c4MaxSize) , m_rsnThis.strFullName(tCIDLib::ENamedRscTypes::Memory) ); } // // If we created it and its not a fully commited one, then commit the // pages that are required for the initial size. If we didn't create // it, then see if the init size is larger than the allocated size // that we found on the existing buffer, and expand if so. // if (bCreated && (eAlloc == tCIDLib::EAllocTypes::Lazy)) { if (!m_ksmbThis.bCommitToSize(c4InitSize)) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_Commit , TKrnlError::kerrLast() , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::CantDo , TInteger(0) , TCardinal(c4InitSize) ); } } else if (c4InitSize > (m_ksmbThis.c4AllocatedPages() * kCIDLib::c4MemPageSize)) { if (!m_ksmbThis.bCommitToSize(c4InitSize)) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_Commit , TKrnlError::kerrLast() , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::CantDo , TInteger(0) , TCardinal(c4InitSize) ); } } } TSharedMemBuf::TSharedMemBuf(const TSharedMemBuf& mbufToCopy) : TMemBuf(mbufToCopy) , m_c4Size(mbufToCopy.m_c4Size) , m_rsnThis(mbufToCopy.m_rsnThis) { if (!m_ksmbThis.bDuplicate(mbufToCopy.m_ksmbThis)) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_AllocShared , TKrnlError::kerrLast() , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::CantDo , m_rsnThis.strFullName(tCIDLib::ENamedRscTypes::Memory) ); } } TSharedMemBuf::~TSharedMemBuf() { // // If we have a buffer, then free it. We cannot just let it destruct // because we have to catch any errors and translate them to CIDLib // level errors. // if (m_ksmbThis.pData()) { if (!m_ksmbThis.bFree()) { // Log as a warning, so it does not propogate out of destructor facCIDLib().LogKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_FreeShared , TKrnlError::kerrLast() , tCIDLib::ESeverities::Warn , tCIDLib::EErrClasses::CantDo , m_rsnThis.strFullName(tCIDLib::ENamedRscTypes::Memory) ); } } } // --------------------------------------------------------------------------- // TSharedMemBuf: Public operators // --------------------------------------------------------------------------- TSharedMemBuf& TSharedMemBuf::operator=(const TSharedMemBuf& mbufToAssign) { if (this == &mbufToAssign) return *this; // Do our parent first TParent::operator=(mbufToAssign); // If there is an existing buffer, then free it if (m_ksmbThis.pData()) { if (!m_ksmbThis.bFree()) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_FreeShared , TKrnlError::kerrLast() , tCIDLib::ESeverities::Warn , tCIDLib::EErrClasses::CantDo , m_rsnThis.strFullName(tCIDLib::ENamedRscTypes::Memory) ); } } // Copy all our members over now m_c4Size = mbufToAssign.m_c4Size; m_rsnThis = mbufToAssign.m_rsnThis; // And duplicate the buffer if (!m_ksmbThis.bDuplicate(mbufToAssign.m_ksmbThis)) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_DupShared , TKrnlError::kerrLast() , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::CantDo , m_rsnThis.strFullName(tCIDLib::ENamedRscTypes::Memory) ); } return *this; } tCIDLib::TBoolean TSharedMemBuf::operator!=(const TSharedMemBuf& mbufToTest) const { return !operator==(mbufToTest); } tCIDLib::TBoolean TSharedMemBuf::operator==(const TSharedMemBuf& mbufToTest) const { if (this == &mbufToTest) return kCIDLib::True; if ((m_c4Size == mbufToTest.m_c4Size) && (m_ksmbThis == mbufToTest.m_ksmbThis) && (m_rsnThis == mbufToTest.m_rsnThis) && TParent::operator==(mbufToTest)) { return kCIDLib::True; } return kCIDLib::False; } // --------------------------------------------------------------------------- // TSharedMemBuf: Public, inherited methods // --------------------------------------------------------------------------- // // This is the same as the StreamTo() method we inherit from the streamable // interface, but sometimes we want to only stream part of the current size // of the buffer, though it cannot be done generically via the streamable // interface. In order to avoid redundant code, StreamTo() just calls us with // the current allocation size. // tCIDLib::TVoid TSharedMemBuf::StreamCount( TBinOutStream& strmToWriteTo , const tCIDLib::TCard4 c4Count) const { // Do our parent first TParent::StreamTo(strmToWriteTo); // // Stream out our members. Start our part with a frame marker and do // a format version so we can auto-upgrade this data later. // strmToWriteTo << tCIDLib::EStreamMarkers::Frame << CIDLib_SharedMemory::c2FmtVersion << c4Count << m_ksmbThis.eAccess() << m_ksmbThis.eAllocType() << m_ksmbThis.c4MaxSize() << m_rsnThis; // Now stream out the actual data strmToWriteTo.c4WriteRawBuffer(m_ksmbThis.pData(), c4Count); // And end up with and end object marker strmToWriteTo << tCIDLib::EStreamMarkers::EndObject; } // --------------------------------------------------------------------------- // TSharedMemBuf: Public, non-virtual methods // --------------------------------------------------------------------------- tCIDLib::EMemAccFlags TSharedMemBuf::eAccess() const { return m_ksmbThis.eAccess(); } tCIDLib::TCard4 TSharedMemBuf::c4AllocatedPages() const { return m_ksmbThis.c4AllocatedPages(); } const TResourceName& TSharedMemBuf::rsnName() const { return m_rsnThis; } // // This is a shared buffer, so it's possible for others to change it and // force it to commit more pages. We cache the current size for efficiency, // but we have to provide a way for apps to force us to resync with the // actual system buffer status. // tCIDLib::TVoid TSharedMemBuf::SyncView() { if (!m_ksmbThis.bSyncView()) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_SyncView , TKrnlError::kerrLast() , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::CantDo ); } // Set our size to the allocated pages times the page size m_c4Size = m_ksmbThis.c4AllocatedPages() * kCIDLib::c4MemPageSize; } // --------------------------------------------------------------------------- // TSharedMemBuf Hidden Constructors // // Needed for polymorphic streaming. Note that it will leave the object in // a bad condition. // --------------------------------------------------------------------------- TSharedMemBuf::TSharedMemBuf() : TMemBuf() { } // --------------------------------------------------------------------------- // TSharedMemBuf: Protected, inherited methods // --------------------------------------------------------------------------- tCIDLib::TCard1* TSharedMemBuf::pc1QueryBuf() { return reinterpret_cast<tCIDLib::TCard1*>(m_ksmbThis.pData()); } const tCIDLib::TCard1* TSharedMemBuf::pc1QueryBuf() const { return reinterpret_cast<const tCIDLib::TCard1*>(m_ksmbThis.pData()); } tCIDLib::TCard1* TSharedMemBuf::pc1QueryBufInfo( tCIDLib::TCard4& c4CurSize , tCIDLib::TCard4& c4MaxSize) { c4CurSize = m_c4Size; c4MaxSize = m_ksmbThis.c4MaxSize(); return reinterpret_cast<tCIDLib::TCard1*>(m_ksmbThis.pData()); } const tCIDLib::TCard1* TSharedMemBuf::pc1QueryBufInfo( tCIDLib::TCard4& c4CurSize , tCIDLib::TCard4& c4MaxSize) const { c4CurSize = m_c4Size; c4MaxSize = m_ksmbThis.c4MaxSize(); return reinterpret_cast<tCIDLib::TCard1*>(m_ksmbThis.pData()); } tCIDLib::TVoid TSharedMemBuf::Realloc( const tCIDLib::TCard4 c4NewSize , const tCIDLib::TBoolean bPreserve) const { // // Since we commit in pages, but we maintain a byte oriented size // for semantic reasons, its possible that our parent can call us to // reallocate, but we really don't need to. If the new size fits // within our existing pages, we can just increase our size value // and leave it at that. // const tCIDLib::TCard4 c4NewPages = TRawMem::c4PagesCovered(c4NewSize); tCIDLib::TCard4 c4CurPages = m_ksmbThis.c4AllocatedPages(); if (c4CurPages < c4NewPages) { // // First, see if someone else has already expanded the buffer, in // which case we can just pick up that existing data. // if (!m_ksmbThis.bSyncView()) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_SyncView , TKrnlError::kerrLast() , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::CantDo ); } // // If it filled the whole need, then just bump our size to the // requested size. If we are to preserve, then we can then just // return, since we just picked up existing content that is // already in use. // c4CurPages = m_ksmbThis.c4AllocatedPages(); if (c4CurPages >= c4NewPages) { m_c4Size = c4NewSize; if (bPreserve) return; } // Still need to expand a bit more if (!m_ksmbThis.bCommitToSize(c4NewSize)) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_Commit , TKrnlError::kerrLast() , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::CantDo , TCardinal(m_c4Size) , TCardinal(c4NewSize) ); } } // Store the new actual size now m_c4Size = c4NewSize; } tCIDLib::TVoid TSharedMemBuf::StreamFrom(TBinInStream& strmToReadFrom) { // Delete the current buffer if (m_ksmbThis.pData()) { if (!m_ksmbThis.bFree()) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_FreeShared , TKrnlError::kerrLast() , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::CantDo , m_rsnThis.strFullName(tCIDLib::ENamedRscTypes::Memory) ); } } // Do our parent first TParent::StreamFrom(strmToReadFrom); // We should get a frame marker strmToReadFrom.CheckForFrameMarker(CID_FILE, CID_LINE); // Check the format version tCIDLib::TCard2 c2FmtVersion; strmToReadFrom >> c2FmtVersion; if (c2FmtVersion != CIDLib_SharedMemory::c2FmtVersion) { facCIDLib().ThrowErr ( CID_FILE , CID_LINE , kCIDErrs::errcGen_UnknownFmtVersion , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::Format , TCardinal(c2FmtVersion) , clsThis() ); } // Get the new info out tCIDLib::TCard4 c4MaxSize; tCIDLib::EMemAccFlags eAccess; tCIDLib::EAllocTypes eAllocType; strmToReadFrom >> m_c4Size >> eAccess >> eAllocType >> c4MaxSize >> m_rsnThis; // Create the buffer tCIDLib::TBoolean bCreated; if (!m_ksmbThis.bAlloc ( m_rsnThis.strFullName(tCIDLib::ENamedRscTypes::Memory).pszBuffer() , c4MaxSize , eAllocType , eAccess , bCreated , tCIDLib::ECreateActs::OpenOrCreate)) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_AllocShared , TKrnlError::kerrLast() , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::CantDo , m_rsnThis.strFullName(tCIDLib::ENamedRscTypes::Memory) ); } // Commit up to where it was before if (!m_ksmbThis.bCommitToSize(m_c4Size)) { facCIDLib().ThrowKrnlErr ( CID_FILE , CID_LINE , kCIDErrs::errcMBuf_Commit , TKrnlError::kerrLast() , tCIDLib::ESeverities::Failed , tCIDLib::EErrClasses::CantDo , TInteger(0) , TCardinal(m_c4Size) ); } // Now read in the actual data strmToReadFrom.c4ReadRawBuffer(m_ksmbThis.pData(), m_c4Size); // We should get an end object marker strmToReadFrom.CheckForEndMarker(CID_FILE, CID_LINE); } tCIDLib::TVoid TSharedMemBuf::StreamTo(TBinOutStream& strmToWriteTo) const { // Just call the StreamCount() method with our alloc size StreamCount(strmToWriteTo, m_c4Size); }
30.006897
84
0.529476
eudora-jia
86dcd2a60ef8348ab2a45806d45fa70ccba91c59
55,364
cpp
C++
Code/Engine/Texture/Image/Implementation/ImageUtils.cpp
fereeh/ezEngine
14e46cb2a1492812888602796db7ddd66e2b7110
[ "MIT" ]
null
null
null
Code/Engine/Texture/Image/Implementation/ImageUtils.cpp
fereeh/ezEngine
14e46cb2a1492812888602796db7ddd66e2b7110
[ "MIT" ]
null
null
null
Code/Engine/Texture/Image/Implementation/ImageUtils.cpp
fereeh/ezEngine
14e46cb2a1492812888602796db7ddd66e2b7110
[ "MIT" ]
null
null
null
#include <TexturePCH.h> #include <Texture/Image/ImageUtils.h> #include <Foundation/SimdMath/SimdVec4f.h> #include <Texture/Image/ImageConversion.h> #include <Texture/Image/ImageEnums.h> #include <Texture/Image/ImageFilter.h> template <typename TYPE> static void SetDiff( const ezImageView& ImageA, const ezImageView& ImageB, ezImage& out_Difference, ezUInt32 w, ezUInt32 h, ezUInt32 d, ezUInt32 comp) { const TYPE* pA = ImageA.GetPixelPointer<TYPE>(0, 0, 0, w, h, d); const TYPE* pB = ImageB.GetPixelPointer<TYPE>(0, 0, 0, w, h, d); TYPE* pR = out_Difference.GetPixelPointer<TYPE>(0, 0, 0, w, h, d); for (ezUInt32 i = 0; i < comp; ++i) pR[i] = pB[i] > pA[i] ? (pB[i] - pA[i]) : (pA[i] - pB[i]); } template <typename TYPE> static ezUInt32 GetError(const ezImageView& Difference, ezUInt32 w, ezUInt32 h, ezUInt32 d, ezUInt32 comp, ezUInt32 pixel) { const TYPE* pR = Difference.GetPixelPointer<TYPE>(0, 0, 0, w, h, d); ezUInt32 uiErrorSum = 0; for (ezUInt32 p = 0; p < pixel; ++p) { ezUInt32 error = 0; for (ezUInt32 c = 0; c < comp; ++c) { error += *pR; ++pR; } error /= comp; uiErrorSum += error * error; } return uiErrorSum; } void ezImageUtils::ComputeImageDifferenceABS(const ezImageView& ImageA, const ezImageView& ImageB, ezImage& out_Difference) { EZ_ASSERT_DEV(ImageA.GetWidth() == ImageB.GetWidth(), "Dimensions do not match"); EZ_ASSERT_DEV(ImageA.GetHeight() == ImageB.GetHeight(), "Dimensions do not match"); EZ_ASSERT_DEV(ImageA.GetDepth() == ImageB.GetDepth(), "Dimensions do not match"); EZ_ASSERT_DEV(ImageA.GetImageFormat() == ImageB.GetImageFormat(), "Format does not match"); ezImageHeader differenceHeader; differenceHeader.SetWidth(ImageA.GetWidth()); differenceHeader.SetHeight(ImageA.GetHeight()); differenceHeader.SetDepth(ImageA.GetDepth()); differenceHeader.SetImageFormat(ImageA.GetImageFormat()); out_Difference.ResetAndAlloc(differenceHeader); const ezUInt32 uiSize2D = ImageA.GetHeight() * ImageA.GetWidth(); for (ezUInt32 d = 0; d < ImageA.GetDepth(); ++d) { // for (ezUInt32 h = 0; h < ImageA.GetHeight(); ++h) { // for (ezUInt32 w = 0; w < ImageA.GetWidth(); ++w) { switch (ImageA.GetImageFormat()) { case ezImageFormat::R8G8B8A8_UNORM: case ezImageFormat::R8G8B8A8_UNORM_SRGB: case ezImageFormat::R8G8B8A8_UINT: case ezImageFormat::R8G8B8A8_SNORM: case ezImageFormat::R8G8B8A8_SINT: case ezImageFormat::B8G8R8A8_UNORM: case ezImageFormat::B8G8R8X8_UNORM: case ezImageFormat::B8G8R8A8_UNORM_SRGB: case ezImageFormat::B8G8R8X8_UNORM_SRGB: { SetDiff<ezUInt8>(ImageA, ImageB, out_Difference, 0, 0, d, 4 * uiSize2D); } break; case ezImageFormat::B8G8R8_UNORM: { SetDiff<ezUInt8>(ImageA, ImageB, out_Difference, 0, 0, d, 3 * uiSize2D); } break; default: EZ_REPORT_FAILURE("The ezImageFormat {0} is not implemented", (ezUInt32)ImageA.GetImageFormat()); return; } } } } } ezUInt32 ezImageUtils::ComputeMeanSquareError(const ezImageView& DifferenceImage, ezUInt8 uiBlockSize, ezUInt32 offsetx, ezUInt32 offsety) { EZ_ASSERT_DEV(uiBlockSize > 1, "Blocksize must be at least 2"); ezUInt32 uiWidth = ezMath::Min(DifferenceImage.GetWidth(), offsetx + uiBlockSize) - offsetx; ezUInt32 uiHeight = ezMath::Min(DifferenceImage.GetHeight(), offsety + uiBlockSize) - offsety; if (uiWidth == 0 || uiHeight == 0) return 0; switch (DifferenceImage.GetImageFormat()) { // Supported formats case ezImageFormat::R8G8B8A8_UNORM: case ezImageFormat::R8G8B8A8_UNORM_SRGB: case ezImageFormat::R8G8B8A8_UINT: case ezImageFormat::R8G8B8A8_SNORM: case ezImageFormat::R8G8B8A8_SINT: case ezImageFormat::B8G8R8A8_UNORM: case ezImageFormat::B8G8R8A8_UNORM_SRGB: case ezImageFormat::B8G8R8_UNORM: break; default: EZ_REPORT_FAILURE("The ezImageFormat {0} is not implemented", (ezUInt32)DifferenceImage.GetImageFormat()); return 0; } ezUInt32 error = 0; ezUInt64 uiRowPitch = DifferenceImage.GetRowPitch(); ezUInt64 uiDepthPitch = DifferenceImage.GetDepthPitch(); ezUInt32 uiNumComponents = ezImageFormat::GetNumChannels(DifferenceImage.GetImageFormat()); // Treat image as single-component format and scale the width instead uiWidth *= uiNumComponents; const ezUInt32 uiSize2D = uiWidth * uiHeight; const ezUInt8* pSlicePointer = DifferenceImage.GetPixelPointer<ezUInt8>(0, 0, 0, offsetx, offsety); for (ezUInt32 d = 0; d < DifferenceImage.GetDepth(); ++d) { const ezUInt8* pRowPointer = pSlicePointer; for (ezUInt32 y = 0; y < uiHeight; ++y) { const ezUInt8* pPixelPointer = pRowPointer; for (ezUInt32 x = 0; x < uiWidth; ++x) { ezUInt32 uiDiff = *pPixelPointer; error += uiDiff * uiDiff; pPixelPointer++; } pRowPointer += uiRowPitch; } pSlicePointer += uiDepthPitch; } error /= uiSize2D; return error; } ezUInt32 ezImageUtils::ComputeMeanSquareError(const ezImageView& DifferenceImage, ezUInt8 uiBlockSize) { EZ_ASSERT_DEV(uiBlockSize > 1, "Blocksize must be at least 2"); const ezUInt32 uiHalfBlockSize = uiBlockSize / 2; const ezUInt32 uiBlocksX = (DifferenceImage.GetWidth() / uiHalfBlockSize) + 1; const ezUInt32 uiBlocksY = (DifferenceImage.GetHeight() / uiHalfBlockSize) + 1; ezUInt32 uiMaxError = 0; for (ezUInt32 by = 0; by < uiBlocksY; ++by) { for (ezUInt32 bx = 0; bx < uiBlocksX; ++bx) { const ezUInt32 uiBlockError = ComputeMeanSquareError(DifferenceImage, uiBlockSize, bx * uiHalfBlockSize, by * uiHalfBlockSize); uiMaxError = ezMath::Max(uiMaxError, uiBlockError); } } return uiMaxError; } template <typename Func, typename ImageType> static void ApplyFunc(ImageType& image, Func func) { ezUInt32 uiWidth = image.GetWidth(); ezUInt32 uiHeight = image.GetHeight(); ezUInt32 uiDepth = image.GetDepth(); EZ_ASSERT_DEV(uiWidth > 0 && uiHeight > 0 && uiDepth > 0, "The image passed to FindMinMax has illegal dimension {}x{}x{}.", uiWidth, uiHeight, uiDepth); ezUInt64 uiRowPitch = image.GetRowPitch(); ezUInt64 uiDepthPitch = image.GetDepthPitch(); ezUInt32 uiNumChannels = ezImageFormat::GetNumChannels(image.GetImageFormat()); auto pSlicePointer = image.template GetPixelPointer<ezUInt8>(); for (ezUInt32 z = 0; z < image.GetDepth(); ++z) { auto pRowPointer = pSlicePointer; for (ezUInt32 y = 0; y < uiHeight; ++y) { auto pPixelPointer = pRowPointer; for (ezUInt32 x = 0; x < uiWidth; ++x) { for (ezUInt32 c = 0; c < uiNumChannels; ++c) { func(pPixelPointer++, x, y, z, c); } } pRowPointer += uiRowPitch; } pSlicePointer += uiDepthPitch; } } static void FindMinMax(const ezImageView& image, ezUInt8& uiMinRgb, ezUInt8& uiMaxRgb, ezUInt8& uiMinAlpha, ezUInt8& uiMaxAlpha) { ezImageFormat::Enum imageFormat = image.GetImageFormat(); EZ_ASSERT_DEV(ezImageFormat::GetBitsPerChannel(imageFormat, ezImageFormatChannel::R) == 8 && ezImageFormat::GetDataType(imageFormat) == ezImageFormatDataType::UNORM, "Only 8bpp unorm formats are supported in FindMinMax"); uiMinRgb = 255u; uiMinAlpha = 255u; uiMaxRgb = 0u; uiMaxAlpha = 0u; auto minMax = [&](const ezUInt8* pixel, ezUInt32 /*x*/, ezUInt32 /*y*/, ezUInt32 /*z*/, ezUInt32 c) { ezUInt8 val = *pixel; if (c < 3) { uiMinRgb = ezMath::Min(uiMinRgb, val); uiMaxRgb = ezMath::Max(uiMaxRgb, val); } else { uiMinAlpha = ezMath::Min(uiMinAlpha, val); uiMaxAlpha = ezMath::Max(uiMaxAlpha, val); } }; ApplyFunc(image, minMax); } void ezImageUtils::Normalize(ezImage& image) { ezUInt8 uiMinRgb, uiMaxRgb, uiMinAlpha, uiMaxAlpha; Normalize(image, uiMinRgb, uiMaxRgb, uiMinAlpha, uiMaxAlpha); } void ezImageUtils::Normalize(ezImage& image, ezUInt8& uiMinRgb, ezUInt8& uiMaxRgb, ezUInt8& uiMinAlpha, ezUInt8& uiMaxAlpha) { ezImageFormat::Enum imageFormat = image.GetImageFormat(); EZ_ASSERT_DEV(ezImageFormat::GetBitsPerChannel(imageFormat, ezImageFormatChannel::R) == 8 && ezImageFormat::GetDataType(imageFormat) == ezImageFormatDataType::UNORM, "Only 8bpp unorm formats are supported in NormalizeImage"); bool ignoreAlpha = false; if (imageFormat == ezImageFormat::B8G8R8X8_UNORM || imageFormat == ezImageFormat::B8G8R8X8_UNORM_SRGB) { ignoreAlpha = true; } FindMinMax(image, uiMinRgb, uiMaxRgb, uiMinAlpha, uiMaxAlpha); ezUInt8 uiRangeRgb = uiMaxRgb - uiMinRgb; ezUInt8 uiRangeAlpha = uiMaxAlpha - uiMinAlpha; auto normalize = [&](ezUInt8* pixel, ezUInt32 /*x*/, ezUInt32 /*y*/, ezUInt32 /*z*/, ezUInt32 c) { ezUInt8 val = *pixel; if (c < 3) { // color channels are uniform when min == max, in that case keep original value as scaling is not meaningful if (uiRangeRgb != 0) { *pixel = static_cast<ezUInt8>(255u * (static_cast<float>(val - uiMinRgb) / (uiRangeRgb))); } } else { // alpha is uniform when minAlpha == maxAlpha, in that case keep original alpha as scaling is not meaningful if (!ignoreAlpha && uiRangeAlpha != 0) { *pixel = static_cast<ezUInt8>(255u * (static_cast<float>(val - uiMinAlpha) / (uiRangeAlpha))); } } }; ApplyFunc(image, normalize); } void ezImageUtils::ExtractAlphaChannel(const ezImageView& inputImage, ezImage& outputImage) { switch (ezImageFormat::Enum imageFormat = inputImage.GetImageFormat()) { case ezImageFormat::R8G8B8A8_UNORM: case ezImageFormat::R8G8B8A8_UNORM_SRGB: case ezImageFormat::R8G8B8A8_UINT: case ezImageFormat::R8G8B8A8_SNORM: case ezImageFormat::R8G8B8A8_SINT: case ezImageFormat::B8G8R8A8_UNORM: case ezImageFormat::B8G8R8A8_UNORM_SRGB: break; default: EZ_REPORT_FAILURE( "ExtractAlpha needs an image with 8bpp and 4 channel. The ezImageFormat {} is not supported.", (ezUInt32)imageFormat); return; } ezImageHeader outputHeader = inputImage.GetHeader(); outputHeader.SetImageFormat(ezImageFormat::R8_UNORM); outputImage.ResetAndAlloc(outputHeader); const ezUInt8* pInputSlice = inputImage.GetPixelPointer<ezUInt8>(); ezUInt8* pOutputSlice = outputImage.GetPixelPointer<ezUInt8>(); ezUInt64 uiInputRowPitch = inputImage.GetRowPitch(); ezUInt64 uiInputDepthPitch = inputImage.GetDepthPitch(); ezUInt64 uiOutputRowPitch = outputImage.GetRowPitch(); ezUInt64 uiOutputDepthPitch = outputImage.GetDepthPitch(); for (ezUInt32 d = 0; d < inputImage.GetDepth(); ++d) { const ezUInt8* pInputRow = pInputSlice; ezUInt8* pOutputRow = pOutputSlice; for (ezUInt32 y = 0; y < inputImage.GetHeight(); ++y) { const ezUInt8* pInputPixel = pInputRow; ezUInt8* pOutputPixel = pOutputRow; for (ezUInt32 x = 0; x < inputImage.GetWidth(); ++x) { *pOutputPixel = pInputPixel[3]; pInputPixel += 4; ++pOutputPixel; } pInputRow += uiInputRowPitch; pOutputRow += uiOutputRowPitch; } pInputSlice += uiInputDepthPitch; pOutputSlice += uiOutputDepthPitch; } } void ezImageUtils::CropImage(const ezImageView& input, const ezVec2I32& offset, const ezSizeU32& newsize, ezImage& output) { EZ_ASSERT_DEV(offset.x >= 0, "Offset is invalid"); EZ_ASSERT_DEV(offset.y >= 0, "Offset is invalid"); EZ_ASSERT_DEV(offset.x < (ezInt32)input.GetWidth(), "Offset is invalid"); EZ_ASSERT_DEV(offset.y < (ezInt32)input.GetHeight(), "Offset is invalid"); const ezUInt32 uiNewWidth = ezMath::Min(offset.x + newsize.width, input.GetWidth()) - offset.x; const ezUInt32 uiNewHeight = ezMath::Min(offset.y + newsize.height, input.GetHeight()) - offset.y; ezImageHeader outputHeader; outputHeader.SetWidth(uiNewWidth); outputHeader.SetHeight(uiNewHeight); outputHeader.SetImageFormat(input.GetImageFormat()); output.ResetAndAlloc(outputHeader); for (ezUInt32 y = 0; y < uiNewHeight; ++y) { for (ezUInt32 x = 0; x < uiNewWidth; ++x) { switch (input.GetImageFormat()) { case ezImageFormat::R8G8B8A8_UNORM: case ezImageFormat::R8G8B8A8_UNORM_SRGB: case ezImageFormat::R8G8B8A8_UINT: case ezImageFormat::R8G8B8A8_SNORM: case ezImageFormat::R8G8B8A8_SINT: case ezImageFormat::B8G8R8A8_UNORM: case ezImageFormat::B8G8R8X8_UNORM: case ezImageFormat::B8G8R8A8_UNORM_SRGB: case ezImageFormat::B8G8R8X8_UNORM_SRGB: output.GetPixelPointer<ezUInt32>(0, 0, 0, x, y)[0] = input.GetPixelPointer<ezUInt32>(0, 0, 0, offset.x + x, offset.y + y)[0]; break; case ezImageFormat::B8G8R8_UNORM: output.GetPixelPointer<ezUInt8>(0, 0, 0, x, y)[0] = input.GetPixelPointer<ezUInt8>(0, 0, 0, offset.x + x, offset.y + y)[0]; output.GetPixelPointer<ezUInt8>(0, 0, 0, x, y)[1] = input.GetPixelPointer<ezUInt8>(0, 0, 0, offset.x + x, offset.y + y)[1]; output.GetPixelPointer<ezUInt8>(0, 0, 0, x, y)[2] = input.GetPixelPointer<ezUInt8>(0, 0, 0, offset.x + x, offset.y + y)[2]; break; default: EZ_REPORT_FAILURE("The ezImageFormat {0} is not implemented", (ezUInt32)input.GetImageFormat()); return; } } } } namespace { template <typename T> void rotate180(T* start, T* end) { end = end - 1; while (start < end) { ezMath::Swap(*start, *end); start++; end--; } } } // namespace void ezImageUtils::RotateSubImage180(ezImage& image, ezUInt32 uiMipLevel /*= 0*/, ezUInt32 uiFace /*= 0*/, ezUInt32 uiArrayIndex /*= 0*/) { ezUInt8* start = image.GetPixelPointer<ezUInt8>(uiMipLevel, uiFace, uiArrayIndex); ezUInt8* end = start + image.GetDepthPitch(uiMipLevel); ezUInt32 bytesPerPixel = ezImageFormat::GetBitsPerPixel(image.GetImageFormat()) / 8; switch (bytesPerPixel) { case 4: rotate180<ezUInt32>(reinterpret_cast<ezUInt32*>(start), reinterpret_cast<ezUInt32*>(end)); break; case 12: rotate180<ezVec3>(reinterpret_cast<ezVec3*>(start), reinterpret_cast<ezVec3*>(end)); break; case 16: rotate180<ezVec4>(reinterpret_cast<ezVec4*>(start), reinterpret_cast<ezVec4*>(end)); break; default: // fallback version { end -= bytesPerPixel; while (start < end) { for (ezUInt32 i = 0; i < bytesPerPixel; i++) { ezMath::Swap(start[i], end[i]); } start += bytesPerPixel; end -= bytesPerPixel; } } } } ezResult ezImageUtils::Copy(const ezImageView& srcImg, const ezRectU32& srcRect, ezImage& dstImg, const ezVec3U32& dstOffset, ezUInt32 uiDstMipLevel /*= 0*/, ezUInt32 uiDstFace /*= 0*/, ezUInt32 uiDstArrayIndex /*= 0*/) { if (dstImg.GetImageFormat() != srcImg.GetImageFormat()) // Can only copy when the image formats are identical return EZ_FAILURE; if (ezImageFormat::IsCompressed(dstImg.GetImageFormat())) // Compressed formats are not supported return EZ_FAILURE; const ezUInt64 uiDstRowPitch = dstImg.GetRowPitch(uiDstMipLevel); const ezUInt64 uiSrcRowPitch = srcImg.GetRowPitch(uiDstMipLevel); const ezUInt32 uiCopyBytesPerRow = ezImageFormat::GetBitsPerPixel(srcImg.GetImageFormat()) * srcRect.width / 8; ezUInt8* dstPtr = dstImg.GetPixelPointer<ezUInt8>(uiDstMipLevel, uiDstFace, uiDstArrayIndex, dstOffset.x, dstOffset.y, dstOffset.z); const ezUInt8* srcPtr = srcImg.GetPixelPointer<ezUInt8>(0, 0, 0, srcRect.x, srcRect.y); for (ezUInt32 y = 0; y < srcRect.height; y++) { ezMemoryUtils::Copy(dstPtr, srcPtr, uiCopyBytesPerRow); dstPtr += uiDstRowPitch; srcPtr += uiSrcRowPitch; } return EZ_SUCCESS; } ezResult ezImageUtils::ExtractLowerMipChain(const ezImageView& srcImg, ezImage& dstImg, ezUInt32 uiNumMips) { const ezImageHeader& srcImgHeader = srcImg.GetHeader(); if (srcImgHeader.GetNumFaces() != 1 || srcImgHeader.GetNumArrayIndices() != 1) { // Lower mips aren't stored contiguously for array/cube textures and would require copying. This isn't implemented yet. return EZ_FAILURE; } uiNumMips = ezMath::Min(uiNumMips, srcImgHeader.GetNumMipLevels()); ezUInt32 startMipLevel = srcImgHeader.GetNumMipLevels() - uiNumMips; ezImageFormat::Enum format = srcImgHeader.GetImageFormat(); if (ezImageFormat::RequiresFirstLevelBlockAlignment(format)) { // Some block compressed image formats require resolutions that are divisible by block size, // therefore adjust startMipLevel accordingly while ( srcImgHeader.GetWidth(startMipLevel) % ezImageFormat::GetBlockWidth(format) != 0 || srcImgHeader.GetHeight(startMipLevel) % ezImageFormat::GetBlockHeight(format) != 0) { if (uiNumMips >= srcImgHeader.GetNumMipLevels()) return EZ_FAILURE; if (startMipLevel == 0) return EZ_FAILURE; ++uiNumMips; --startMipLevel; } } ezImageHeader dstImgHeader = srcImgHeader; dstImgHeader.SetWidth(srcImgHeader.GetWidth(startMipLevel)); dstImgHeader.SetHeight(srcImgHeader.GetHeight(startMipLevel)); dstImgHeader.SetDepth(srcImgHeader.GetDepth(startMipLevel)); dstImgHeader.SetNumFaces(srcImgHeader.GetNumFaces()); dstImgHeader.SetNumArrayIndices(srcImgHeader.GetNumArrayIndices()); dstImgHeader.SetNumMipLevels(uiNumMips); const ezUInt8* pDataBegin = srcImg.GetPixelPointer<ezUInt8>(startMipLevel); const ezUInt8* pDataEnd = srcImg.GetByteBlobPtr().GetEndPtr(); const ptrdiff_t dataSize = reinterpret_cast<ptrdiff_t>(pDataEnd) - reinterpret_cast<ptrdiff_t>(pDataBegin); const ezConstByteBlobPtr lowResData(pDataBegin, static_cast<ezUInt64>(dataSize)); ezImageView dataview; dataview.ResetAndViewExternalStorage(dstImgHeader, lowResData); dstImg.ResetAndCopy(dataview); return EZ_SUCCESS; } ezUInt32 ezImageUtils::GetSampleIndex(ezUInt32 numTexels, ezInt32 index, ezImageAddressMode::Enum addressMode, bool& outUseBorderColor) { outUseBorderColor = false; if (ezUInt32(index) >= numTexels) { switch (addressMode) { case ezImageAddressMode::Repeat: index %= numTexels; if (index < 0) { index += numTexels; } return index; case ezImageAddressMode::Mirror: { if (index < 0) { index = -index - 1; } bool flip = (index / numTexels) & 1; index %= numTexels; if (flip) { index = numTexels - index - 1; } return index; } case ezImageAddressMode::Clamp: return ezMath::Clamp<ezInt32>(index, 0, numTexels - 1); case ezImageAddressMode::ClampBorder: outUseBorderColor = true; return 0; default: EZ_ASSERT_NOT_IMPLEMENTED return 0; } } return index; } static ezSimdVec4f LoadSample(const ezSimdVec4f* source, ezUInt32 numSourceElements, ezUInt32 stride, ezInt32 index, ezImageAddressMode::Enum addressMode, const ezSimdVec4f& borderColor) { bool useBorderColor = false; // result is in the range [-(w-1), (w-1)], bring it to [0, w - 1] index = ezImageUtils::GetSampleIndex(numSourceElements, index, addressMode, useBorderColor); if (useBorderColor) { return borderColor; } return source[index * stride]; } inline static void FilterLine(ezUInt32 numSourceElements, const ezSimdVec4f* __restrict sourceBegin, ezSimdVec4f* __restrict targetBegin, ezUInt32 stride, const ezImageFilterWeights& weights, ezArrayPtr<const ezInt32> firstSampleIndices, ezImageAddressMode::Enum addressMode, const ezSimdVec4f& borderColor) { // Convolve the image using the precomputed weights const ezUInt32 numWeights = weights.GetNumWeights(); // When the first source index for the output is between 0 and this value, // we can fetch all numWeights inputs without taking addressMode into consideration, // which makes the inner loop a lot faster. const ezInt32 trivialSourceIndicesEnd = static_cast<ezInt32>(numSourceElements) - static_cast<ezInt32>(numWeights); const auto weightsView = weights.ViewWeights(); const float* __restrict nextWeightPtr = weightsView.GetPtr(); EZ_ASSERT_DEBUG((static_cast<ezUInt32>(weightsView.GetCount()) % numWeights) == 0, ""); for (ezInt32 firstSourceIdx : firstSampleIndices) { ezSimdVec4f total(0.0f, 0.0f, 0.0f, 0.0f); if (firstSourceIdx >= 0 && firstSourceIdx < trivialSourceIndicesEnd) { const auto* __restrict sourcePtr = sourceBegin + firstSourceIdx * stride; for (ezUInt32 weightIdx = 0; weightIdx < numWeights; ++weightIdx) { total = ezSimdVec4f::MulAdd(*sourcePtr, ezSimdVec4f(*nextWeightPtr++), total); sourcePtr += stride; } } else { // Very slow fallback case that respects the addressMode // (not a lot of pixels are taking this path, so it's probably fine) ezInt32 sourceIdx = firstSourceIdx; for (ezUInt32 weightIdx = 0; weightIdx < numWeights; ++weightIdx) { total = ezSimdVec4f::MulAdd( LoadSample(sourceBegin, numSourceElements, stride, sourceIdx, addressMode, borderColor), ezSimdVec4f(*nextWeightPtr++), total); sourceIdx++; } } // It's ok to check this once per source index, see the assert above // (number of weights in weightsView is divisible by numWeights) if (nextWeightPtr == weightsView.GetEndPtr()) { nextWeightPtr = weightsView.GetPtr(); } *targetBegin = total; targetBegin += stride; } } static void DownScaleFastLine( ezUInt32 pixelStride, const ezUInt8* src, ezUInt8* dest, ezUInt32 lengthIn, ezUInt32 strideIn, ezUInt32 lengthOut, ezUInt32 strideOut) { const ezUInt32 downScaleFactor = lengthIn / lengthOut; const ezUInt32 downScaleFactorLog2 = ezMath::Log2i(static_cast<ezUInt32>(downScaleFactor)); const ezUInt32 roundOffset = downScaleFactor / 2; for (ezUInt32 offset = 0; offset < lengthOut; ++offset) { for (ezUInt32 channel = 0; channel < pixelStride; ++channel) { const ezUInt32 destOffset = offset * strideOut + channel; ezUInt32 curChannel = roundOffset; for (ezUInt32 index = 0; index < downScaleFactor; ++index) { curChannel += static_cast<ezUInt32>(src[channel + index * strideIn]); } curChannel = curChannel >> downScaleFactorLog2; dest[destOffset] = static_cast<ezUInt8>(curChannel); } src += downScaleFactor * strideIn; } } static void DownScaleFast(const ezImageView& image, ezImage& out_Result, ezUInt32 width, ezUInt32 height) { ezImageFormat::Enum format = image.GetImageFormat(); ezUInt32 originalWidth = image.GetWidth(); ezUInt32 originalHeight = image.GetHeight(); ezUInt32 numArrayElements = image.GetNumArrayIndices(); ezUInt32 numFaces = image.GetNumFaces(); ezUInt32 pixelStride = ezImageFormat::GetBitsPerPixel(format) / 8; ezImageHeader intermediateHeader; intermediateHeader.SetWidth(width); intermediateHeader.SetHeight(originalHeight); intermediateHeader.SetNumArrayIndices(numArrayElements); intermediateHeader.SetNumFaces(numFaces); intermediateHeader.SetImageFormat(format); ezImage intermediate; intermediate.ResetAndAlloc(intermediateHeader); for (ezUInt32 arrayIndex = 0; arrayIndex < numArrayElements; arrayIndex++) { for (ezUInt32 face = 0; face < numFaces; face++) { for (ezUInt32 row = 0; row < originalHeight; row++) { DownScaleFastLine(pixelStride, image.GetPixelPointer<ezUInt8>(0, face, arrayIndex, 0, row), intermediate.GetPixelPointer<ezUInt8>(0, face, arrayIndex, 0, row), originalWidth, pixelStride, width, pixelStride); } } } // input and output images may be the same, so we can't access the original image below this point ezImageHeader outHeader; outHeader.SetWidth(width); outHeader.SetHeight(height); outHeader.SetNumArrayIndices(numArrayElements); outHeader.SetNumArrayIndices(numFaces); outHeader.SetImageFormat(format); out_Result.ResetAndAlloc(outHeader); EZ_ASSERT_DEBUG(intermediate.GetRowPitch() < ezMath::MaxValue<ezUInt32>(), "Row pitch exceeds ezUInt32 max value."); EZ_ASSERT_DEBUG(out_Result.GetRowPitch() < ezMath::MaxValue<ezUInt32>(), "Row pitch exceeds ezUInt32 max value."); for (ezUInt32 arrayIndex = 0; arrayIndex < numArrayElements; arrayIndex++) { for (ezUInt32 face = 0; face < numFaces; face++) { for (ezUInt32 col = 0; col < width; col++) { DownScaleFastLine(pixelStride, intermediate.GetPixelPointer<ezUInt8>(0, face, arrayIndex, col), out_Result.GetPixelPointer<ezUInt8>(0, face, arrayIndex, col), originalHeight, static_cast<ezUInt32>(intermediate.GetRowPitch()), height, static_cast<ezUInt32>(out_Result.GetRowPitch())); } } } } static float EvaluateAverageCoverage(ezBlobPtr<const ezColor> colors, float alphaThreshold) { ezUInt64 totalPixels = colors.GetCount(); ezUInt64 count = 0; for (ezUInt32 idx = 0; idx < totalPixels; ++idx) { count += colors[idx].a >= alphaThreshold; } return float(count) / float(totalPixels); } static void NormalizeCoverage(ezBlobPtr<ezColor> colors, float alphaThreshold, float targetCoverage) { // Based on the idea in http://the-witness.net/news/2010/09/computing-alpha-mipmaps/. Note we're using a histogram // to find the new alpha threshold here rather than bisecting. // Generate histogram of alpha values ezUInt64 totalPixels = colors.GetCount(); ezUInt32 alphaHistogram[256] = {}; for (ezUInt64 idx = 0; idx < totalPixels; ++idx) { alphaHistogram[ezMath::ColorFloatToByte(colors[idx].a)]++; } // Find range of alpha thresholds so the number of covered pixels matches by summing up the histogram ezInt32 targetCount = ezInt32(targetCoverage * totalPixels); ezInt32 coverageCount = 0; ezInt32 maxThreshold = 255; for (; maxThreshold >= 0; maxThreshold--) { coverageCount += alphaHistogram[maxThreshold]; if (coverageCount >= targetCount) { break; } } coverageCount = targetCount; ezInt32 minThreshold = 0; for (; minThreshold < 256; minThreshold++) { coverageCount -= alphaHistogram[maxThreshold]; if (coverageCount <= targetCount) { break; } } ezInt32 currentThreshold = ezMath::ColorFloatToByte(alphaThreshold); // Each of the alpha test thresholds in the range [minThreshold; maxThreshold] will result in the same coverage. Pick a new threshold // close to the old one so we scale by the smallest necessary amount. ezInt32 newThreshold; if (currentThreshold < minThreshold) { newThreshold = minThreshold; } else if (currentThreshold > maxThreshold) { newThreshold = maxThreshold; } else { // Avoid rescaling altogether if the current threshold already preserves coverage return; } // Rescale alpha values float alphaScale = alphaThreshold / (newThreshold / 255.0f); for (ezUInt64 idx = 0; idx < totalPixels; ++idx) { colors[idx].a *= alphaScale; } } ezResult ezImageUtils::Scale(const ezImageView& source, ezImage& target, ezUInt32 width, ezUInt32 height, const ezImageFilter* filter, ezImageAddressMode::Enum addressModeU, ezImageAddressMode::Enum addressModeV, const ezColor& borderColor) { return Scale3D(source, target, width, height, 1, filter, addressModeU, addressModeV, ezImageAddressMode::Clamp, borderColor); } ezResult ezImageUtils::Scale3D(const ezImageView& source, ezImage& target, ezUInt32 width, ezUInt32 height, ezUInt32 depth, const ezImageFilter* filter /*= ez_NULL*/, ezImageAddressMode::Enum addressModeU /*= ezImageAddressMode::Clamp*/, ezImageAddressMode::Enum addressModeV /*= ezImageAddressMode::Clamp*/, ezImageAddressMode::Enum addressModeW /*= ezImageAddressMode::Clamp*/, const ezColor& borderColor /*= ezColors::Black*/) { if (width == 0 || height == 0 || depth == 0) { ezImageHeader header; header.SetImageFormat(source.GetImageFormat()); target.ResetAndAlloc(header); return EZ_SUCCESS; } const ezImageFormat::Enum format = source.GetImageFormat(); const ezUInt32 originalWidth = source.GetWidth(); const ezUInt32 originalHeight = source.GetHeight(); const ezUInt32 originalDepth = source.GetDepth(); const ezUInt32 numFaces = source.GetNumFaces(); const ezUInt32 numArrayElements = source.GetNumArrayIndices(); if (originalWidth == width && originalHeight == height && originalDepth == depth) { target.ResetAndCopy(source); return EZ_SUCCESS; } // Scaling down by an even factor? const ezUInt32 downScaleFactorX = originalWidth / width; const ezUInt32 downScaleFactorY = originalHeight / height; if (filter == nullptr && (format == ezImageFormat::R8G8B8A8_UNORM || format == ezImageFormat::B8G8R8A8_UNORM || format == ezImageFormat::B8G8R8_UNORM) && downScaleFactorX * width == originalWidth && downScaleFactorY * height == originalHeight && depth == 1 && originalDepth == 1 && ezMath::IsPowerOf2(downScaleFactorX) && ezMath::IsPowerOf2(downScaleFactorY)) { DownScaleFast(source, target, width, height); return EZ_SUCCESS; } // Fallback to default filter ezImageFilterTriangle defaultFilter; if (!filter) { filter = &defaultFilter; } const ezImageView* stepSource; // Manage scratch images for intermediate conversion or filtering const ezUInt32 maxNumScratchImages = 2; ezImage scratch[maxNumScratchImages]; bool scratchUsed[maxNumScratchImages] = {}; auto allocateScratch = [&]() -> ezImage& { for (ezUInt32 i = 0;; ++i) { EZ_ASSERT_DEV(i < maxNumScratchImages, "Failed to allocate scratch image"); if (!scratchUsed[i]) { scratchUsed[i] = true; return scratch[i]; } } }; auto releaseScratch = [&](const ezImageView& image) { for (ezUInt32 i = 0; i < maxNumScratchImages; ++i) { if (&scratch[i] == &image) { scratchUsed[i] = false; return; } } }; if (format == ezImageFormat::R32G32B32A32_FLOAT) { stepSource = &source; } else { ezImage& conversionScratch = allocateScratch(); if (ezImageConversion::Convert(source, conversionScratch, ezImageFormat::R32G32B32A32_FLOAT).Failed()) { return EZ_FAILURE; } stepSource = &conversionScratch; }; ezHybridArray<ezInt32, 256> firstSampleIndices; firstSampleIndices.Reserve(ezMath::Max(width, height, depth)); if (width != originalWidth) { ezImageFilterWeights weights(*filter, originalWidth, width); firstSampleIndices.SetCountUninitialized(width); for (ezUInt32 x = 0; x < width; ++x) { firstSampleIndices[x] = weights.GetFirstSourceSampleIndex(x); } ezImage* stepTarget; if (height == originalHeight && depth == originalDepth && format == ezImageFormat::R32G32B32A32_FLOAT) { stepTarget = &target; } else { stepTarget = &allocateScratch(); } ezImageHeader stepHeader = stepSource->GetHeader(); stepHeader.SetWidth(width); stepTarget->ResetAndAlloc(stepHeader); for (ezUInt32 arrayIndex = 0; arrayIndex < numArrayElements; ++arrayIndex) { for (ezUInt32 face = 0; face < numFaces; ++face) { for (ezUInt32 z = 0; z < originalDepth; ++z) { for (ezUInt32 y = 0; y < originalHeight; ++y) { const ezSimdVec4f* filterSource = stepSource->GetPixelPointer<ezSimdVec4f>(0, face, arrayIndex, 0, y, z); ezSimdVec4f* filterTarget = stepTarget->GetPixelPointer<ezSimdVec4f>(0, face, arrayIndex, 0, y, z); FilterLine(originalWidth, filterSource, filterTarget, 1, weights, firstSampleIndices, addressModeU, ezSimdVec4f(borderColor.r, borderColor.g, borderColor.b, borderColor.a)); } } } } releaseScratch(*stepSource); stepSource = stepTarget; } if (height != originalHeight) { ezImageFilterWeights weights(*filter, originalHeight, height); firstSampleIndices.SetCount(height); for (ezUInt32 y = 0; y < height; ++y) { firstSampleIndices[y] = weights.GetFirstSourceSampleIndex(y); } ezImage* stepTarget; if (depth == originalDepth && format == ezImageFormat::R32G32B32A32_FLOAT) { stepTarget = &target; } else { stepTarget = &allocateScratch(); } ezImageHeader stepHeader = stepSource->GetHeader(); stepHeader.SetHeight(height); stepTarget->ResetAndAlloc(stepHeader); for (ezUInt32 arrayIndex = 0; arrayIndex < numArrayElements; ++arrayIndex) { for (ezUInt32 face = 0; face < numFaces; ++face) { for (ezUInt32 z = 0; z < originalDepth; ++z) { for (ezUInt32 x = 0; x < width; ++x) { const ezSimdVec4f* filterSource = stepSource->GetPixelPointer<ezSimdVec4f>(0, face, arrayIndex, x, 0, z); ezSimdVec4f* filterTarget = stepTarget->GetPixelPointer<ezSimdVec4f>(0, face, arrayIndex, x, 0, z); FilterLine(originalHeight, filterSource, filterTarget, width, weights, firstSampleIndices, addressModeV, ezSimdVec4f(borderColor.r, borderColor.g, borderColor.b, borderColor.a)); } } } } releaseScratch(*stepSource); stepSource = stepTarget; } if (depth != originalDepth) { ezImageFilterWeights weights(*filter, originalDepth, depth); firstSampleIndices.SetCount(depth); for (ezUInt32 z = 0; z < depth; ++z) { firstSampleIndices[z] = weights.GetFirstSourceSampleIndex(z); } ezImage* stepTarget; if (format == ezImageFormat::R32G32B32A32_FLOAT) { stepTarget = &target; } else { stepTarget = &allocateScratch(); } ezImageHeader stepHeader = stepSource->GetHeader(); stepHeader.SetDepth(depth); stepTarget->ResetAndAlloc(stepHeader); for (ezUInt32 arrayIndex = 0; arrayIndex < numArrayElements; ++arrayIndex) { for (ezUInt32 face = 0; face < numFaces; ++face) { for (ezUInt32 y = 0; y < height; ++y) { for (ezUInt32 x = 0; x < width; ++x) { const ezSimdVec4f* filterSource = stepSource->GetPixelPointer<ezSimdVec4f>(0, face, arrayIndex, x, y, 0); ezSimdVec4f* filterTarget = stepTarget->GetPixelPointer<ezSimdVec4f>(0, face, arrayIndex, x, y, 0); FilterLine(originalHeight, filterSource, filterTarget, width * height, weights, firstSampleIndices, addressModeW, ezSimdVec4f(borderColor.r, borderColor.g, borderColor.b, borderColor.a)); } } } } releaseScratch(*stepSource); stepSource = stepTarget; } // Convert back to original format - no-op if stepSource and target are the same return ezImageConversion::Convert(*stepSource, target, format); } void ezImageUtils::GenerateMipMaps(const ezImageView& source, ezImage& target, const MipMapOptions& options) { ezImageHeader header = source.GetHeader(); EZ_ASSERT_DEV(header.GetImageFormat() == ezImageFormat::R32G32B32A32_FLOAT, "The source image must be a RGBA 32-bit float format."); EZ_ASSERT_DEV(&source != &target, "Source and target must not be the same image."); // Make a local copy to be able to tweak some of the options ezImageUtils::MipMapOptions mipMapOptions = options; // alpha thresholds with extreme values are not supported at the moment mipMapOptions.m_alphaThreshold = ezMath::Clamp(mipMapOptions.m_alphaThreshold, 0.05f, 0.95f); // Enforce CLAMP addressing mode for cubemaps if (source.GetNumFaces() == 6) { mipMapOptions.m_addressModeU = ezImageAddressMode::Clamp; mipMapOptions.m_addressModeV = ezImageAddressMode::Clamp; } ezUInt32 numMipMaps = header.ComputeNumberOfMipMaps(); if (mipMapOptions.m_numMipMaps > 0 && mipMapOptions.m_numMipMaps < numMipMaps) { numMipMaps = mipMapOptions.m_numMipMaps; } header.SetNumMipLevels(numMipMaps); target.ResetAndAlloc(header); for (ezUInt32 arrayIndex = 0; arrayIndex < source.GetNumArrayIndices(); arrayIndex++) { for (ezUInt32 face = 0; face < source.GetNumFaces(); face++) { ezImageHeader currentMipMapHeader = header; currentMipMapHeader.SetNumMipLevels(1); currentMipMapHeader.SetNumFaces(1); currentMipMapHeader.SetNumArrayIndices(1); auto sourceView = source.GetSubImageView(0, face, arrayIndex).GetByteBlobPtr(); auto targetView = target.GetSubImageView(0, face, arrayIndex).GetByteBlobPtr(); memcpy(targetView.GetPtr(), sourceView.GetPtr(), targetView.GetCount()); float targetCoverage = 0.0f; if (mipMapOptions.m_preserveCoverage) { targetCoverage = EvaluateAverageCoverage(source.GetSubImageView(0, face, arrayIndex).GetBlobPtr<ezColor>(), mipMapOptions.m_alphaThreshold); } for (ezUInt32 mipMapLevel = 0; mipMapLevel < numMipMaps - 1; mipMapLevel++) { ezImageHeader nextMipMapHeader = currentMipMapHeader; nextMipMapHeader.SetWidth(ezMath::Max(1u, nextMipMapHeader.GetWidth() / 2)); nextMipMapHeader.SetHeight(ezMath::Max(1u, nextMipMapHeader.GetHeight() / 2)); nextMipMapHeader.SetDepth(ezMath::Max(1u, nextMipMapHeader.GetDepth() / 2)); auto sourceData = target.GetSubImageView(mipMapLevel, face, arrayIndex).GetByteBlobPtr(); ezImage currentMipMap; currentMipMap.ResetAndUseExternalStorage(currentMipMapHeader, sourceData); auto dstData = target.GetSubImageView(mipMapLevel + 1, face, arrayIndex).GetByteBlobPtr(); ezImage nextMipMap; nextMipMap.ResetAndUseExternalStorage(nextMipMapHeader, dstData); ezImageUtils::Scale3D(currentMipMap, nextMipMap, nextMipMapHeader.GetWidth(), nextMipMapHeader.GetHeight(), nextMipMapHeader.GetDepth(), mipMapOptions.m_filter, mipMapOptions.m_addressModeU, mipMapOptions.m_addressModeV, mipMapOptions.m_addressModeW, mipMapOptions.m_borderColor); if (mipMapOptions.m_preserveCoverage) { NormalizeCoverage(nextMipMap.GetBlobPtr<ezColor>(), mipMapOptions.m_alphaThreshold, targetCoverage); } if (mipMapOptions.m_renormalizeNormals) { RenormalizeNormalMap(nextMipMap); } currentMipMapHeader = nextMipMapHeader; } } } } void ezImageUtils::ReconstructNormalZ(ezImage& image) { EZ_ASSERT_DEV(image.GetImageFormat() == ezImageFormat::R32G32B32A32_FLOAT, "This algorithm currently expects a RGBA 32 Float as input"); ezSimdVec4f* cur = image.GetBlobPtr<ezSimdVec4f>().GetPtr(); ezSimdVec4f* const end = image.GetBlobPtr<ezSimdVec4f>().GetEndPtr(); ezSimdFloat oneScalar = 1.0f; ezSimdVec4f two(2.0f); ezSimdVec4f minusOne(-1.0f); ezSimdVec4f half(0.5f); for (; cur < end; cur++) { ezSimdVec4f normal; // unpack from [0,1] to [-1, 1] normal = ezSimdVec4f::MulAdd(*cur, two, minusOne); // compute Z component normal.SetZ((oneScalar - normal.Dot<2>(normal)).GetSqrt()); // pack back to [0,1] *cur = ezSimdVec4f::MulAdd(half, normal, half); } } void ezImageUtils::RenormalizeNormalMap(ezImage& image) { EZ_ASSERT_DEV(image.GetImageFormat() == ezImageFormat::R32G32B32A32_FLOAT, "This algorithm currently expects a RGBA 32 Float as input"); ezSimdVec4f* start = image.GetBlobPtr<ezSimdVec4f>().GetPtr(); ezSimdVec4f* const end = image.GetBlobPtr<ezSimdVec4f>().GetEndPtr(); ezSimdVec4f two(2.0f); ezSimdVec4f minusOne(-1.0f); ezSimdVec4f half(0.5f); for (; start < end; start++) { ezSimdVec4f normal; normal = ezSimdVec4f::MulAdd(*start, two, minusOne); normal.Normalize<3>(); *start = ezSimdVec4f::MulAdd(half, normal, half); } } void ezImageUtils::AdjustRoughness(ezImage& roughnessMap, const ezImageView& normalMap) { EZ_ASSERT_DEV( roughnessMap.GetImageFormat() == ezImageFormat::R32G32B32A32_FLOAT, "This algorithm currently expects a RGBA 32 Float as input"); EZ_ASSERT_DEV( normalMap.GetImageFormat() == ezImageFormat::R32G32B32A32_FLOAT, "This algorithm currently expects a RGBA 32 Float as input"); EZ_ASSERT_DEV(roughnessMap.GetWidth() >= normalMap.GetWidth() && roughnessMap.GetHeight() >= normalMap.GetHeight(), "The roughness map needs to be bigger or same size than the normal map."); ezImage filteredNormalMap; ezImageUtils::MipMapOptions options; // Box filter normal map without re-normalization so we have the average normal length in each mip map. if (roughnessMap.GetWidth() != normalMap.GetWidth() || roughnessMap.GetHeight() != normalMap.GetHeight()) { ezImage temp; ezImageUtils::Scale(normalMap, temp, roughnessMap.GetWidth(), roughnessMap.GetHeight()); ezImageUtils::RenormalizeNormalMap(temp); ezImageUtils::GenerateMipMaps(temp, filteredNormalMap, options); } else { ezImageUtils::GenerateMipMaps(normalMap, filteredNormalMap, options); } EZ_ASSERT_DEV(roughnessMap.GetNumMipLevels() == filteredNormalMap.GetNumMipLevels(), "Roughness and normal map must have the same number of mip maps"); ezSimdVec4f two(2.0f); ezSimdVec4f minusOne(-1.0f); ezUInt32 numMipLevels = roughnessMap.GetNumMipLevels(); for (ezUInt32 mipLevel = 1; mipLevel < numMipLevels; ++mipLevel) { ezBlobPtr<ezSimdVec4f> roughnessData = roughnessMap.GetSubImageView(mipLevel, 0, 0).GetBlobPtr<ezSimdVec4f>(); ezBlobPtr<ezSimdVec4f> normalData = filteredNormalMap.GetSubImageView(mipLevel, 0, 0).GetBlobPtr<ezSimdVec4f>(); for (ezUInt64 i = 0; i < roughnessData.GetCount(); ++i) { ezSimdVec4f normal = ezSimdVec4f::MulAdd(normalData[i], two, minusOne); float avgNormalLength = normal.GetLength<3>(); if (avgNormalLength < 1.0f) { float avgNormalLengthSquare = avgNormalLength * avgNormalLength; float kappa = (3.0f * avgNormalLength - avgNormalLength * avgNormalLengthSquare) / (1.0f - avgNormalLengthSquare); float variance = 1.0f / (2.0f * kappa); float oldRoughness = roughnessData[i].GetComponent<0>(); float newRoughness = ezMath::Sqrt(oldRoughness * oldRoughness + variance); roughnessData[i].Set(newRoughness); } } } } void ezImageUtils::ChangeExposure(ezImage& image, float bias) { EZ_ASSERT_DEV(image.GetImageFormat() == ezImageFormat::R32G32B32A32_FLOAT, "This function expects an RGBA 32 float image as input"); if (bias == 0.0f) return; const float multiplier = ezMath::Pow2(bias); for (ezColor& col : image.GetBlobPtr<ezColor>()) { col = multiplier * col; } } static void CopyImageRectToFace(ezImage& dstImg, const ezImageView& srcImg, ezUInt32 offsetX, ezUInt32 offsetY, ezUInt32 faceIndex) { ezRectU32 r; r.x = offsetX; r.y = offsetY; r.width = dstImg.GetWidth(); r.height = r.width; ezImageUtils::Copy(srcImg, r, dstImg, ezVec3U32(0), 0, faceIndex); } ezResult ezImageUtils::CreateCubemapFromSingleFile(ezImage& dstImg, const ezImageView& srcImg) { if (srcImg.GetNumFaces() == 6) { dstImg.ResetAndCopy(srcImg); return EZ_SUCCESS; } else if (srcImg.GetNumFaces() == 1) { if (srcImg.GetWidth() % 3 == 0 && srcImg.GetHeight() % 4 == 0 && srcImg.GetWidth() / 3 == srcImg.GetHeight() / 4) { // Vertical cube map layout // +---+ // | Y+| // +---+---+---+ // | X-| Z+| X+| // +---+---+---+ // | Y-| // +---+ // | Z-| // +---+ const ezUInt32 faceSize = srcImg.GetWidth() / 3; ezImageHeader imgHeader; imgHeader.SetWidth(faceSize); imgHeader.SetHeight(faceSize); imgHeader.SetImageFormat(srcImg.GetImageFormat()); imgHeader.SetDepth(1); imgHeader.SetNumFaces(6); imgHeader.SetNumMipLevels(1); imgHeader.SetNumArrayIndices(1); dstImg.ResetAndAlloc(imgHeader); // face order in dds files is: positive x, negative x, positive y, negative y, positive z, negative z // Positive X face CopyImageRectToFace(dstImg, srcImg, faceSize * 2, faceSize, 0); // Negative X face CopyImageRectToFace(dstImg, srcImg, 0, faceSize, 1); // Positive Y face CopyImageRectToFace(dstImg, srcImg, faceSize, 0, 2); // Negative Y face CopyImageRectToFace(dstImg, srcImg, faceSize, faceSize * 2, 3); // Positive Z face CopyImageRectToFace(dstImg, srcImg, faceSize, faceSize, 4); // Negative Z face CopyImageRectToFace(dstImg, srcImg, faceSize, faceSize * 3, 5); ezImageUtils::RotateSubImage180(dstImg, 0, 5); } else if (srcImg.GetWidth() % 4 == 0 && srcImg.GetHeight() % 3 == 0 && srcImg.GetWidth() / 4 == srcImg.GetHeight() / 3) { // Horizontal cube map layout // +---+ // | Y+| // +---+---+---+---+ // | X-| Z+| X+| Z-| // +---+---+---+---+ // | Y-| // +---+ const ezUInt32 faceSize = srcImg.GetWidth() / 4; ezImageHeader imgHeader; imgHeader.SetWidth(faceSize); imgHeader.SetHeight(faceSize); imgHeader.SetImageFormat(srcImg.GetImageFormat()); imgHeader.SetDepth(1); imgHeader.SetNumFaces(6); imgHeader.SetNumMipLevels(1); imgHeader.SetNumArrayIndices(1); dstImg.ResetAndAlloc(imgHeader); // face order in dds files is: positive x, negative x, positive y, negative y, positive z, negative z // Positive X face CopyImageRectToFace(dstImg, srcImg, faceSize * 2, faceSize, 0); // Negative X face CopyImageRectToFace(dstImg, srcImg, 0, faceSize, 1); // Positive Y face CopyImageRectToFace(dstImg, srcImg, faceSize, 0, 2); // Negative Y face CopyImageRectToFace(dstImg, srcImg, faceSize, faceSize * 2, 3); // Positive Z face CopyImageRectToFace(dstImg, srcImg, faceSize, faceSize, 4); // Negative Z face CopyImageRectToFace(dstImg, srcImg, faceSize * 3, faceSize, 5); } else { // Spherical mapping if (srcImg.GetWidth() % 4 != 0) { ezLog::Error("Width of the input image should be a multiple of 4"); return EZ_FAILURE; } const ezUInt32 faceSize = srcImg.GetWidth() / 4; ezImageHeader imgHeader; imgHeader.SetWidth(faceSize); imgHeader.SetHeight(faceSize); imgHeader.SetImageFormat(srcImg.GetImageFormat()); imgHeader.SetDepth(1); imgHeader.SetNumFaces(6); imgHeader.SetNumMipLevels(1); imgHeader.SetNumArrayIndices(1); dstImg.ResetAndAlloc(imgHeader); // Corners of the UV space for the respective faces in model space const ezVec3 faceCorners[] = { ezVec3(0.5, 0.5, 0.5), // X+ ezVec3(-0.5, 0.5, -0.5), // X- ezVec3(-0.5, 0.5, -0.5), // Y+ ezVec3(-0.5, -0.5, 0.5), // Y- ezVec3(-0.5, 0.5, 0.5), // Z+ ezVec3(0.5, 0.5, -0.5) // Z- }; // UV Axis of the respective faces in model space const ezVec3 faceAxis[] = { ezVec3(0, 0, -1), ezVec3(0, -1, 0), // X+ ezVec3(0, 0, 1), ezVec3(0, -1, 0), // X- ezVec3(1, 0, 0), ezVec3(0, 0, 1), // Y+ ezVec3(1, 0, 0), ezVec3(0, 0, -1), // Y- ezVec3(1, 0, 0), ezVec3(0, -1, 0), // Z+ ezVec3(-1, 0, 0), ezVec3(0, -1, 0) // Z- }; const float fFaceSize = (float)faceSize; const float fHalfPixel = 0.5f / fFaceSize; const float fPixel = 1.0f / fFaceSize; const float fHalfSrcWidth = srcImg.GetWidth() / 2.0f; const float fSrcHeight = (float)srcImg.GetHeight(); const ezUInt32 srcWidthMinus1 = srcImg.GetWidth() - 1; const ezUInt32 srcHeightMinus1 = srcImg.GetHeight() - 1; EZ_ASSERT_DEBUG(srcImg.GetRowPitch() % sizeof(ezColor) == 0, "Row pitch should be a multiple of sizeof(ezColor)"); const ezUInt64 srcRowPitch = srcImg.GetRowPitch() / sizeof(ezColor); EZ_ASSERT_DEBUG(dstImg.GetRowPitch() % sizeof(ezColor) == 0, "Row pitch should be a multiple of sizeof(ezColor)"); const ezUInt64 faceRowPitch = dstImg.GetRowPitch() / sizeof(ezColor); const ezColor* srcData = srcImg.GetPixelPointer<ezColor>(); const float InvPi = 1.0f / ezMath::Pi<float>(); for (ezUInt32 faceIndex = 0; faceIndex < 6; faceIndex++) { ezColor* faceData = dstImg.GetPixelPointer<ezColor>(0, faceIndex); for (ezUInt32 y = 0; y < faceSize; y++) { const float dstV = (float)y * fPixel + fHalfPixel; for (ezUInt32 x = 0; x < faceSize; x++) { const float dstU = (float)x * fPixel + fHalfPixel; const ezVec3 modelSpacePos = faceCorners[faceIndex] + dstU * faceAxis[faceIndex * 2] + dstV * faceAxis[faceIndex * 2 + 1]; const ezVec3 modelSpaceDir = modelSpacePos.GetNormalized(); const float phi = ezMath::ATan2(modelSpaceDir.x, modelSpaceDir.z).GetRadian() + ezMath::Pi<float>(); const float r = ezMath::Sqrt(modelSpaceDir.x * modelSpaceDir.x + modelSpaceDir.z * modelSpaceDir.z); const float theta = ezMath::ATan2(modelSpaceDir.y, r).GetRadian() + ezMath::Pi<float>() * 0.5f; EZ_ASSERT_DEBUG(phi >= 0.0f && phi <= 2.0f * ezMath::Pi<float>(), ""); EZ_ASSERT_DEBUG(theta >= 0.0f && theta <= ezMath::Pi<float>(), ""); const float srcU = phi * InvPi * fHalfSrcWidth; const float srcV = (1.0f - theta * InvPi) * fSrcHeight; ezUInt32 x1 = (ezUInt32)ezMath::Floor(srcU); ezUInt32 x2 = x1 + 1; ezUInt32 y1 = (ezUInt32)ezMath::Floor(srcV); ezUInt32 y2 = y1 + 1; const float fracX = srcU - x1; const float fracY = srcV - y1; x1 = ezMath::Clamp(x1, 0u, srcWidthMinus1); x2 = ezMath::Clamp(x2, 0u, srcWidthMinus1); y1 = ezMath::Clamp(y1, 0u, srcHeightMinus1); y2 = ezMath::Clamp(y2, 0u, srcHeightMinus1); ezColor A = srcData[x1 + y1 * srcRowPitch]; ezColor B = srcData[x2 + y1 * srcRowPitch]; ezColor C = srcData[x1 + y2 * srcRowPitch]; ezColor D = srcData[x2 + y2 * srcRowPitch]; ezColor interpolated = A * (1 - fracX) * (1 - fracY) + B * (fracX) * (1 - fracY) + C * (1 - fracX) * fracY + D * fracX * fracY; faceData[x + y * faceRowPitch] = interpolated; } } } } return EZ_SUCCESS; } ezLog::Error("Unexpected number of faces in cubemap input image."); return EZ_FAILURE; } ezResult ezImageUtils::CreateCubemapFrom6Files(ezImage& dstImg, const ezImageView* pSourceImages) { ezImageHeader header = pSourceImages[0].GetHeader(); header.SetNumFaces(6); if (header.GetWidth() != header.GetHeight()) return EZ_FAILURE; if (!ezMath::IsPowerOf2(header.GetWidth())) return EZ_FAILURE; dstImg.ResetAndAlloc(header); for (ezUInt32 i = 0; i < 6; ++i) { if (pSourceImages[i].GetImageFormat() != dstImg.GetImageFormat()) return EZ_FAILURE; if (pSourceImages[i].GetWidth() != dstImg.GetWidth()) return EZ_FAILURE; if (pSourceImages[i].GetHeight() != dstImg.GetHeight()) return EZ_FAILURE; CopyImageRectToFace(dstImg, pSourceImages[i], 0, 0, i); } return EZ_SUCCESS; } ezResult ezImageUtils::CreateVolumeTextureFromSingleFile(ezImage& dstImg, const ezImageView& srcImg) { const ezUInt32 uiWidthHeight = srcImg.GetHeight(); const ezUInt32 uiDepth = srcImg.GetWidth() / uiWidthHeight; if (!ezMath::IsPowerOf2(uiWidthHeight)) return EZ_FAILURE; if (!ezMath::IsPowerOf2(uiDepth)) return EZ_FAILURE; ezImageHeader header; header.SetWidth(uiWidthHeight); header.SetHeight(uiWidthHeight); header.SetDepth(uiDepth); header.SetImageFormat(srcImg.GetImageFormat()); dstImg.ResetAndAlloc(header); const ezImageView view = srcImg.GetSubImageView(); for (ezUInt32 d = 0; d < uiDepth; ++d) { ezRectU32 r; r.x = uiWidthHeight * d; r.y = 0; r.width = uiWidthHeight; r.height = uiWidthHeight; EZ_SUCCEED_OR_RETURN(Copy(view, r, dstImg, ezVec3U32(0, 0, d))); } return EZ_SUCCESS; } ezColor ezImageUtils::BilinearSample(const ezImageView& image, ezImageAddressMode::Enum addressMode, ezVec2 uv) { EZ_ASSERT_DEBUG(image.GetDepth() == 1 && image.GetNumFaces() == 1 && image.GetNumArrayIndices() == 1, "Only 2d images are supported"); EZ_ASSERT_DEBUG(image.GetImageFormat() == ezImageFormat::R32G32B32A32_FLOAT, "Unsupported format"); ezInt32 w = image.GetWidth(); ezInt32 h = image.GetHeight(); uv = uv.CompMul(ezVec2(w, h)) - ezVec2(0.5f); float floorX = ezMath::Floor(uv.x); float floorY = ezMath::Floor(uv.y); float fractionX = uv.x - floorX; float fractionY = uv.y - floorY; ezInt32 intX = (ezInt32)floorX; ezInt32 intY = (ezInt32)floorY; ezColor c[4]; for (ezUInt32 i = 0; i < 4; ++i) { ezInt32 x = intX + (i % 2); ezInt32 y = intY + (i / 2); if (addressMode == ezImageAddressMode::Clamp) { x = ezMath::Clamp(x, 0, w - 1); y = ezMath::Clamp(y, 0, h - 1); } else { x = x % w; x = x < 0 ? x + w : x; y = y % h; y = y < 0 ? y + w : y; } c[i] = *image.GetPixelPointer<ezColor>(0, 0, 0, x, y); } ezColor cr0 = ezMath::Lerp(c[0], c[1], fractionX); ezColor cr1 = ezMath::Lerp(c[2], c[3], fractionX); return ezMath::Lerp(cr0, cr1, fractionY); } EZ_STATICLINK_FILE(Texture, Texture_Image_Implementation_ImageUtils);
34.689223
148
0.653511
fereeh
86e0f09299846a4f5fe2ef5ce22148c03461df8f
1,649
cpp
C++
Training/PosStreamer.cpp
CheckersGuy/DarkHorse
f5e763536508770a336d099af7ac4d0a7b2f72a0
[ "MIT" ]
1
2020-04-03T01:20:36.000Z
2020-04-03T01:20:36.000Z
Training/PosStreamer.cpp
CheckersGuy/DarkHorse
f5e763536508770a336d099af7ac4d0a7b2f72a0
[ "MIT" ]
2
2018-10-30T13:46:19.000Z
2019-11-04T20:46:25.000Z
Training/PosStreamer.cpp
CheckersGuy/DarkHorse
f5e763536508770a336d099af7ac4d0a7b2f72a0
[ "MIT" ]
null
null
null
// // Created by robin on 06.10.21. // #include <sys/stat.h> #include "PosStreamer.h" Sample PosStreamer::get_next() { if (ptr >= buffer_size) { ptr = 0; //if we reached the end of our file //we have to wrap around size_t read_elements = 0; do { if (stream.peek() == EOF) { stream.clear(); stream.seekg(0, std::ios::beg); } std::istream_iterator<Sample> begin(stream); std::istream_iterator<Sample> end; for (; (begin != end) && read_elements < buffer_size; ++begin) { Sample current = *begin; if (current.position.hasJumps(current.position.getColor())) continue; buffer[read_elements++] = (*begin); } } while (read_elements < buffer_size); //std::cout << "buffer is full now" << std::endl; //the buffer is filled now so we can shuffle the elements if (shuffle) { std::shuffle(buffer.get(), buffer.get() + buffer_size, generator); //std::cout << "buffer is shuffled" << std::endl; } } return buffer[ptr++]; } size_t PosStreamer::get_buffer_size() const { return buffer_size; } size_t PosStreamer::ptr_position() { return ptr; } const std::string &PosStreamer::get_file_path() { return file_path; } size_t PosStreamer::get_file_size(std::string path) { struct stat stat_buf; int rc = stat(path.c_str(), &stat_buf); return rc == 0 ? stat_buf.st_size : -1; } size_t PosStreamer::get_file_size() const { return file_size; }
25.369231
78
0.562765
CheckersGuy
86e2383ed549929989f3d9a2d9c0e43dca471f4a
5,694
cpp
C++
Tests/AK/TestGenericLexer.cpp
r00ster91/serenity
f8387dea2689d564aff612bfd4ec5086393fac35
[ "BSD-2-Clause" ]
19,438
2019-05-20T15:11:11.000Z
2022-03-31T23:31:32.000Z
Tests/AK/TestGenericLexer.cpp
r00ster91/serenity
f8387dea2689d564aff612bfd4ec5086393fac35
[ "BSD-2-Clause" ]
7,882
2019-05-20T01:03:52.000Z
2022-03-31T23:26:31.000Z
Tests/AK/TestGenericLexer.cpp
r00ster91/serenity
f8387dea2689d564aff612bfd4ec5086393fac35
[ "BSD-2-Clause" ]
2,721
2019-05-23T00:44:57.000Z
2022-03-31T22:49:34.000Z
/* * Copyright (c) 2021, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibTest/TestCase.h> #include <AK/GenericLexer.h> #include <AK/StringView.h> TEST_CASE(should_constexpr_construct_from_empty_string_view) { constexpr GenericLexer sut(StringView {}); static_assert(sut.is_eof()); } TEST_CASE(should_construct_from_string_view) { constexpr GenericLexer sut("abcdef"sv); static_assert(!sut.is_eof()); } TEST_CASE(should_constexpr_tell) { constexpr GenericLexer sut("abcdef"sv); static_assert(sut.tell() == 0); } TEST_CASE(should_constexpr_tell_remaining) { constexpr GenericLexer sut("abcdef"sv); static_assert(sut.tell_remaining() == 6); } TEST_CASE(should_constexpr_peek) { constexpr GenericLexer sut("abcdef"sv); static_assert(sut.peek() == 'a'); static_assert(sut.peek(2) == 'c'); static_assert(sut.peek(100) == '\0'); } TEST_CASE(should_constexpr_next_is) { constexpr GenericLexer sut("abcdef"sv); static_assert(sut.next_is('a')); static_assert(sut.next_is("abc")); static_assert(sut.next_is("abc"sv)); } TEST_CASE(should_constexpr_retreat) { constexpr auto sut = [] { GenericLexer sut("abcdef"sv); sut.consume(); sut.retreat(); return sut; }(); static_assert(sut.peek() == 'a'); } TEST_CASE(should_constexpr_consume_1) { constexpr auto sut = [] { GenericLexer sut("abcdef"sv); sut.consume(); return sut; }(); static_assert(sut.peek() == 'b'); } TEST_CASE(should_constexpr_consume_specific_char) { constexpr auto sut = [] { GenericLexer sut("abcdef"sv); sut.consume_specific('a'); return sut; }(); static_assert(sut.peek() == 'b'); } TEST_CASE(should_constexpr_consume_specific_string_view) { constexpr auto sut = [] { GenericLexer sut("abcdef"sv); sut.consume_specific("ab"sv); return sut; }(); static_assert(sut.peek() == 'c'); } TEST_CASE(should_constexpr_consume_specific_cstring) { constexpr auto sut = [] { GenericLexer sut("abcdef"sv); sut.consume_specific("abcd"); return sut; }(); static_assert(sut.peek() == 'e'); } TEST_CASE(should_constexpr_ignore_until) { constexpr auto sut = [] { GenericLexer sut("abcdef"sv); sut.ignore_until('d'); return sut; }(); static_assert(sut.peek() == 'e'); } TEST_CASE(should_constexpr_ignore_until_cstring) { constexpr auto sut = [] { GenericLexer sut("abcdef"sv); sut.ignore_until("cde"); return sut; }(); static_assert(sut.peek() == 'f'); } TEST_CASE(should_constexpr_next_is_pred) { constexpr auto pred = [](auto c) { return c == 'a'; }; constexpr GenericLexer sut("abcdef"sv); static_assert(sut.next_is(pred)); } TEST_CASE(should_constexpr_ignore_while_pred) { constexpr auto sut = [] { constexpr auto pred = [](auto c) { return c == 'a'; }; GenericLexer sut("abcdef"sv); sut.ignore_while(pred); return sut; }(); static_assert(sut.peek() == 'b'); } TEST_CASE(should_constexpr_ignore_until_pred) { constexpr auto sut = [] { constexpr auto pred = [](auto c) { return c == 'c'; }; GenericLexer sut("abcdef"sv); sut.ignore_until(pred); return sut; }(); static_assert(sut.peek() == 'c'); } TEST_CASE(consume_escaped_code_point) { auto test = [](StringView test, Result<u32, GenericLexer::UnicodeEscapeError> expected, bool combine_surrogate_pairs = true) { GenericLexer lexer(test); auto actual = lexer.consume_escaped_code_point(combine_surrogate_pairs); EXPECT_EQ(actual.is_error(), expected.is_error()); if (actual.is_error() && expected.is_error()) EXPECT_EQ(actual.error(), expected.error()); else EXPECT_EQ(actual.value(), expected.value()); }; test("\\u"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\u{"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\u{1"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\u{}"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\u{x}"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\u{110000}"sv, GenericLexer::UnicodeEscapeError::UnicodeEscapeOverflow); test("\\u{f00000000}"sv, GenericLexer::UnicodeEscapeError::UnicodeEscapeOverflow); test("\\u{0}"sv, 0); test("\\u{41}"sv, 0x41); test("\\u{ffff}"sv, 0xffff); test("\\u{10ffff}"sv, 0x10ffff); test("\\u1"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\u11"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\u111"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\u111x"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\ud800\\u"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\ud800\\u1"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\ud800\\u11"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\ud800\\u111"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\ud800\\u111x"sv, GenericLexer::UnicodeEscapeError::MalformedUnicodeEscape); test("\\u0000"sv, 0x0); test("\\u0041"sv, 0x41); test("\\uffff"sv, 0xffff); test("\\ud83d"sv, 0xd83d); test("\\ud83d\\u1111"sv, 0xd83d); test("\\ud83d\\ude00"sv, 0x1f600); test("\\ud83d\\ude00"sv, 0xd83d, false); }
27.507246
130
0.654373
r00ster91
86e4e3725e3309f19d1a72bb92b4230aee8f5a29
1,796
cpp
C++
Engine/Graphics/Texture.cpp
Antd23rus/S2DE_DirectX11
4f729278e6c795f7d606afc70a292c6501b0cafd
[ "MIT" ]
null
null
null
Engine/Graphics/Texture.cpp
Antd23rus/S2DE_DirectX11
4f729278e6c795f7d606afc70a292c6501b0cafd
[ "MIT" ]
null
null
null
Engine/Graphics/Texture.cpp
Antd23rus/S2DE_DirectX11
4f729278e6c795f7d606afc70a292c6501b0cafd
[ "MIT" ]
1
2021-09-06T08:30:20.000Z
2021-09-06T08:30:20.000Z
#include "Texture.h" #include "Base/Engine.h" #include "Graphics/Renderer.h" #include <D3DX11tex.h> namespace S2DE::Render { Texture::Texture() { m_type = "Texture"; m_ex = { ".dds", ".png", ".tga", ".jpg" }; } Texture::~Texture() { } void Texture::Cleanup() { Core::Release(m_resource); Core::Release(m_texture_resource); } bool Texture::Load(std::string path) { if (Core::Other::isStringEmpty(path)) return false; ID3D11Resource* res; S2DE_CHECK(D3DX11CreateShaderResourceViewFromFile(Core::Engine::GetRenderer()->GetDevice(), path.c_str(), NULL, NULL, &m_resource, NULL), "Can't create texture!"); m_resource->GetResource(&res); res->QueryInterface<ID3D11Texture2D>(&m_texture_resource); m_texture_resource->GetDesc(&m_texture_desc); Core::Release(res); D3D11_SAMPLER_DESC samplerDesc; samplerDesc.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR; samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP; samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP; samplerDesc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP; samplerDesc.ComparisonFunc = D3D11_COMPARISON_NEVER; samplerDesc.BorderColor[0] = 0; samplerDesc.BorderColor[1] = 0; samplerDesc.BorderColor[2] = 0; samplerDesc.BorderColor[3] = 0; samplerDesc.MinLOD = 0; samplerDesc.MaxLOD = D3D11_FLOAT32_MAX; samplerDesc.MipLODBias = 0.0f; samplerDesc.MaxAnisotropy = 0; S2DE_CHECK(Core::Engine::GetRenderer()->GetDevice()->CreateSamplerState(&samplerDesc, &m_texture_sampler_state), "Can't create sampler state"); return true; } void Texture::Bind(std::uint32_t NumViews) { Core::Engine::GetRenderer()->GetContext()->PSSetShaderResources(0, NumViews, &m_resource); Core::Engine::GetRenderer()->GetContext()->PSGetSamplers(0, NumViews, &m_texture_sampler_state); } }
24.60274
165
0.732183
Antd23rus
86e89e3d6ff08f50ac78ce7a36e218df72e0eb03
6,499
cpp
C++
Engine/source/forest/editor/forestBrushElement.cpp
vbillet/Torque3D
ece8823599424ea675e5f79d9bcb44e42cba8cae
[ "MIT" ]
2,113
2015-01-01T11:23:01.000Z
2022-03-28T04:51:46.000Z
Engine/source/forest/editor/forestBrushElement.cpp
vbillet/Torque3D
ece8823599424ea675e5f79d9bcb44e42cba8cae
[ "MIT" ]
948
2015-01-02T01:50:00.000Z
2022-02-27T05:56:40.000Z
Engine/source/forest/editor/forestBrushElement.cpp
vbillet/Torque3D
ece8823599424ea675e5f79d9bcb44e42cba8cae
[ "MIT" ]
944
2015-01-01T09:33:53.000Z
2022-03-15T22:23:03.000Z
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 "platform/platform.h" #include "forest/editor/forestBrushElement.h" #include "console/engineAPI.h" #include "forest/forestItem.h" //------------------------------------------------------------------------- // ForestBrushElement //------------------------------------------------------------------------- IMPLEMENT_CONOBJECT( ForestBrushElement ); ConsoleDocClass( ForestBrushElement, "@brief Represents a type of ForestItem and parameters for how it is placed" " when painting with a ForestBrush that contains it.\n\n" "@ingroup Forest" ); ForestBrushElement::ForestBrushElement() : mData( NULL ), mProbability( 1 ), mRotationRange( 360 ), mScaleMin( 1 ), mScaleMax( 1 ), mScaleExponent( 1 ), mSinkMin( 0.0f ), mSinkMax( 0.0f ), mSinkRadius( 1 ), mSlopeMin( 0.0f ), mSlopeMax( 90.0f ), mElevationMin( -10000.0f ), mElevationMax( 10000.0f ) { } void ForestBrushElement::initPersistFields() { Parent::initPersistFields(); addGroup( "ForestBrushElement" ); addField( "forestItemData", TYPEID< ForestItemData >(), Offset( mData, ForestBrushElement ), "The type of ForestItem this element holds placement parameters for." ); addField( "probability", TypeF32, Offset( mProbability, ForestBrushElement ), "The probability that this element will be created during an editor brush stroke " "is the sum of all element probabilities in the brush divided by the probability " "of this element." ); addField( "rotationRange", TypeF32, Offset( mRotationRange, ForestBrushElement ), "The max rotation in degrees that items will be placed." ); addField( "scaleMin", TypeF32, Offset( mScaleMin, ForestBrushElement ), "The minimum random size for each item." ); addField( "scaleMax", TypeF32, Offset( mScaleMax, ForestBrushElement ), "The maximum random size of each item." ); addField( "scaleExponent", TypeF32, Offset( mScaleExponent, ForestBrushElement ), "An exponent used to bias between the minimum and maximum random sizes." ); addField( "sinkMin", TypeF32, Offset( mSinkMin, ForestBrushElement ), "Min variation in the sink radius." ); addField( "sinkMax", TypeF32, Offset( mSinkMax, ForestBrushElement ), "Max variation in the sink radius." ); addField( "sinkRadius", TypeF32, Offset( mSinkRadius, ForestBrushElement ), "This is the radius used to calculate how much to sink the trunk at " "its base and is used to sink the tree into the ground when its on a slope." ); addField( "slopeMin", TypeF32, Offset( mSlopeMin, ForestBrushElement ), "The min surface slope in degrees this item will be placed on." ); addField( "slopeMax", TypeF32, Offset( mSlopeMax, ForestBrushElement ), "The max surface slope in degrees this item will be placed on." ); addField( "elevationMin", TypeF32, Offset( mElevationMin, ForestBrushElement ), "The min world space elevation this item will be placed." ); addField( "elevationMax", TypeF32, Offset( mElevationMax, ForestBrushElement ), "The max world space elevation this item will be placed." ); endGroup( "ForestBrushElement" ); } //------------------------------------------------------------------------- // ForestBrushElementSet //------------------------------------------------------------------------- SimObjectPtr<SimGroup> ForestBrush::smGroup = NULL; IMPLEMENT_CONOBJECT( ForestBrush ); ConsoleDocClass( ForestBrush, "@brief Container class for ForestBrushElements\n\n" "Editor use only.\n\n" "@internal" ); ForestBrush::ForestBrush() { } bool ForestBrush::onAdd() { if ( !Parent::onAdd() ) return false; getGroup()->addObject( this ); return true; } void ForestBrush::addObject( SimObject *inObj ) { ForestBrushElement *ele = dynamic_cast<ForestBrushElement*>( inObj ); if ( !ele ) return; //if ( containsItemData( ele->mData ) ) // return; Parent::addObject( inObj ); } SimGroup* ForestBrush::getGroup() { if ( !smGroup ) { SimGroup *dummy; if ( Sim::findObject( "ForestBrushGroup", dummy ) ) { smGroup = dummy; return smGroup; } smGroup = new SimGroup; smGroup->assignName( "ForestBrushGroup" ); smGroup->registerObject(); Sim::getRootGroup()->addObject( smGroup ); } return smGroup; } bool ForestBrush::containsItemData( const ForestItemData *inData ) { SimObjectList::iterator iter = mObjectList.begin(); for ( ; iter != mObjectList.end(); iter++ ) { ForestBrushElement *pElement = dynamic_cast<ForestBrushElement*>(*iter); if ( !pElement ) continue; if ( pElement->mData == inData ) return true; } return false; } DefineEngineMethod( ForestBrush, containsItemData, bool, ( const char * obj ), , "( ForestItemData obj )" ) { ForestItemData *data = NULL; if ( !Sim::findObject( obj, data ) ) { Con::warnf( "ForestBrush::containsItemData - invalid object passed" ); return false; } return object->containsItemData( data ); }
32.495
107
0.634251
vbillet
86e99399ef083cc3001424ee0adfa0d08ac07561
195
cpp
C++
tests/example.cpp
marshal2111/lab-03-shared-ptr
ad6aabcd088250ae2cc5b44932ee1b7f17fa5aa3
[ "MIT" ]
null
null
null
tests/example.cpp
marshal2111/lab-03-shared-ptr
ad6aabcd088250ae2cc5b44932ee1b7f17fa5aa3
[ "MIT" ]
null
null
null
tests/example.cpp
marshal2111/lab-03-shared-ptr
ad6aabcd088250ae2cc5b44932ee1b7f17fa5aa3
[ "MIT" ]
null
null
null
// Copyright 2021 Your Name <your_email> #include <stdexcept> #include <gtest/gtest.h> #include <shared_ptr.hpp> TEST(Example, EmptyTest) { EXPECT_THROW(example(), std::runtime_error); }
16.25
48
0.717949
marshal2111
86eac7b4eea603d977b95fd7f7d3329c23cd6ffb
866
cpp
C++
kernel/src/IO.cpp
pradosh-arduino/pradoshOS
b7c2a8b238261fc61460e609fd8352aa62b5f32e
[ "MIT" ]
9
2021-11-17T10:27:18.000Z
2022-03-16T09:43:24.000Z
kernel/src/IO.cpp
pradosh-arduino/pradoshOS
b7c2a8b238261fc61460e609fd8352aa62b5f32e
[ "MIT" ]
1
2022-03-17T08:31:05.000Z
2022-03-28T02:50:59.000Z
kernel/src/IO.cpp
pradosh-arduino/pradoshOS
b7c2a8b238261fc61460e609fd8352aa62b5f32e
[ "MIT" ]
1
2021-12-21T09:49:02.000Z
2021-12-21T09:49:02.000Z
#include "IO.h" void outb(uint16_t port, uint8_t value){ asm volatile ("outb %0, %1" : : "a"(value), "Nd"(port)); } uint8_t inb(uint16_t port){ uint8_t returnVal; asm volatile ("inb %1, %0" : "=a"(returnVal) : "Nd"(port)); return returnVal; } void outw(uint16_t portNumber, uint16_t data) { __asm__ volatile("outw %0, %1" : : "a"(data) , "Nd"(portNumber)); } void io_wait(){ asm volatile ("outb %%al, $0x80" : : "a"(0)); } uint16_t inw(uint16_t portNumber) { uint16_t data; __asm__ volatile("inw %1, %0" : "=a"(data) : "Nd"(portNumber)); return data; } uint32_t inl(uint16_t portNumber) { uint32_t data; __asm__ volatile("inl %1, %0" : "=a"(data) : "Nd"(portNumber)); return data; } void outl(uint16_t portNumber, uint32_t data) { __asm__ volatile("outl %0, %1" : : "a"(data) , "Nd"(portNumber)); }
22.789474
69
0.598152
pradosh-arduino
86ed87b7c84cdf660c025eb101606b6ffd26b38d
9,281
cc
C++
test/syscalls/linux/timerfd.cc
Simon-Zh-0409/gvisor
c619cc59c2e826ef1168259287023de198e3e2aa
[ "Apache-2.0" ]
2
2021-02-23T03:14:54.000Z
2021-04-16T08:46:24.000Z
test/syscalls/linux/timerfd.cc
Simon-Zh-0409/gvisor
c619cc59c2e826ef1168259287023de198e3e2aa
[ "Apache-2.0" ]
12
2020-09-20T00:41:11.000Z
2022-03-31T01:29:24.000Z
test/syscalls/linux/timerfd.cc
Simon-Zh-0409/gvisor
c619cc59c2e826ef1168259287023de198e3e2aa
[ "Apache-2.0" ]
3
2021-02-08T17:44:27.000Z
2022-01-14T16:48:26.000Z
// Copyright 2018 The gVisor Authors. // // 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 <errno.h> #include <poll.h> #include <sys/timerfd.h> #include <time.h> #include "absl/time/clock.h" #include "absl/time/time.h" #include "test/util/file_descriptor.h" #include "test/util/posix_error.h" #include "test/util/test_util.h" namespace gvisor { namespace testing { namespace { // Wrapper around timerfd_create(2) that returns a FileDescriptor. PosixErrorOr<FileDescriptor> TimerfdCreate(int clockid, int flags) { int fd = timerfd_create(clockid, flags); MaybeSave(); if (fd < 0) { return PosixError(errno, "timerfd_create failed"); } return FileDescriptor(fd); } // In tests that race a timerfd with a sleep, some slack is required because: // // - Timerfd expirations are asynchronous with respect to nanosleeps. // // - Because clock_gettime(CLOCK_MONOTONIC) is implemented through the VDSO, // it technically uses a closely-related, but distinct, time domain from the // CLOCK_MONOTONIC used to trigger timerfd expirations. The same applies to // CLOCK_BOOTTIME which is an alias for CLOCK_MONOTONIC. absl::Duration TimerSlack() { return absl::Milliseconds(500); } class TimerfdTest : public ::testing::TestWithParam<int> {}; TEST_P(TimerfdTest, IsInitiallyStopped) { auto const tfd = ASSERT_NO_ERRNO_AND_VALUE(TimerfdCreate(GetParam(), 0)); struct itimerspec its = {}; ASSERT_THAT(timerfd_gettime(tfd.get(), &its), SyscallSucceeds()); EXPECT_EQ(0, its.it_value.tv_sec); EXPECT_EQ(0, its.it_value.tv_nsec); } TEST_P(TimerfdTest, SingleShot) { constexpr absl::Duration kDelay = absl::Seconds(1); auto const tfd = ASSERT_NO_ERRNO_AND_VALUE(TimerfdCreate(GetParam(), 0)); struct itimerspec its = {}; its.it_value = absl::ToTimespec(kDelay); ASSERT_THAT(timerfd_settime(tfd.get(), /* flags = */ 0, &its, nullptr), SyscallSucceeds()); // The timer should fire exactly once since the interval is zero. absl::SleepFor(kDelay + TimerSlack()); uint64_t val = 0; ASSERT_THAT(ReadFd(tfd.get(), &val, sizeof(uint64_t)), SyscallSucceedsWithValue(sizeof(uint64_t))); EXPECT_EQ(1, val); } TEST_P(TimerfdTest, Periodic) { constexpr absl::Duration kDelay = absl::Seconds(1); constexpr int kPeriods = 3; auto const tfd = ASSERT_NO_ERRNO_AND_VALUE(TimerfdCreate(GetParam(), 0)); struct itimerspec its = {}; its.it_value = absl::ToTimespec(kDelay); its.it_interval = absl::ToTimespec(kDelay); ASSERT_THAT(timerfd_settime(tfd.get(), /* flags = */ 0, &its, nullptr), SyscallSucceeds()); // Expect to see at least kPeriods expirations. More may occur due to the // timer slack, or due to delays from scheduling or save/restore. absl::SleepFor(kPeriods * kDelay + TimerSlack()); uint64_t val = 0; ASSERT_THAT(ReadFd(tfd.get(), &val, sizeof(uint64_t)), SyscallSucceedsWithValue(sizeof(uint64_t))); EXPECT_GE(val, kPeriods); } TEST_P(TimerfdTest, BlockingRead) { constexpr absl::Duration kDelay = absl::Seconds(3); auto const tfd = ASSERT_NO_ERRNO_AND_VALUE(TimerfdCreate(GetParam(), 0)); struct itimerspec its = {}; its.it_value.tv_sec = absl::ToInt64Seconds(kDelay); auto const start_time = absl::Now(); ASSERT_THAT(timerfd_settime(tfd.get(), /* flags = */ 0, &its, nullptr), SyscallSucceeds()); // read should block until the timer fires. uint64_t val = 0; ASSERT_THAT(ReadFd(tfd.get(), &val, sizeof(uint64_t)), SyscallSucceedsWithValue(sizeof(uint64_t))); auto const end_time = absl::Now(); EXPECT_EQ(1, val); EXPECT_GE((end_time - start_time) + TimerSlack(), kDelay); } TEST_P(TimerfdTest, NonblockingRead_NoRandomSave) { constexpr absl::Duration kDelay = absl::Seconds(5); auto const tfd = ASSERT_NO_ERRNO_AND_VALUE(TimerfdCreate(GetParam(), TFD_NONBLOCK)); // Since the timer is initially disabled and has never fired, read should // return EAGAIN. uint64_t val = 0; ASSERT_THAT(ReadFd(tfd.get(), &val, sizeof(uint64_t)), SyscallFailsWithErrno(EAGAIN)); DisableSave ds; // Timing-sensitive. // Arm the timer. struct itimerspec its = {}; its.it_value.tv_sec = absl::ToInt64Seconds(kDelay); ASSERT_THAT(timerfd_settime(tfd.get(), /* flags = */ 0, &its, nullptr), SyscallSucceeds()); // Since the timer has not yet fired, read should return EAGAIN. ASSERT_THAT(ReadFd(tfd.get(), &val, sizeof(uint64_t)), SyscallFailsWithErrno(EAGAIN)); ds.reset(); // No longer timing-sensitive. // After the timer fires, read should indicate 1 expiration. absl::SleepFor(kDelay + TimerSlack()); ASSERT_THAT(ReadFd(tfd.get(), &val, sizeof(uint64_t)), SyscallSucceedsWithValue(sizeof(uint64_t))); EXPECT_EQ(1, val); // The successful read should have reset the number of expirations. ASSERT_THAT(ReadFd(tfd.get(), &val, sizeof(uint64_t)), SyscallFailsWithErrno(EAGAIN)); } TEST_P(TimerfdTest, BlockingPoll_SetTimeResetsExpirations) { constexpr absl::Duration kDelay = absl::Seconds(3); auto const tfd = ASSERT_NO_ERRNO_AND_VALUE(TimerfdCreate(GetParam(), TFD_NONBLOCK)); struct itimerspec its = {}; its.it_value.tv_sec = absl::ToInt64Seconds(kDelay); auto const start_time = absl::Now(); ASSERT_THAT(timerfd_settime(tfd.get(), /* flags = */ 0, &its, nullptr), SyscallSucceeds()); // poll should block until the timer fires. struct pollfd pfd = {}; pfd.fd = tfd.get(); pfd.events = POLLIN; ASSERT_THAT(poll(&pfd, /* nfds = */ 1, /* timeout = */ 2 * absl::ToInt64Seconds(kDelay) * 1000), SyscallSucceedsWithValue(1)); auto const end_time = absl::Now(); EXPECT_EQ(POLLIN, pfd.revents); EXPECT_GE((end_time - start_time) + TimerSlack(), kDelay); // Call timerfd_settime again with a value of 0. This should reset the number // of expirations to 0, causing read to return EAGAIN since the timerfd is // non-blocking. its.it_value.tv_sec = 0; ASSERT_THAT(timerfd_settime(tfd.get(), /* flags = */ 0, &its, nullptr), SyscallSucceeds()); uint64_t val = 0; ASSERT_THAT(ReadFd(tfd.get(), &val, sizeof(uint64_t)), SyscallFailsWithErrno(EAGAIN)); } TEST_P(TimerfdTest, SetAbsoluteTime) { constexpr absl::Duration kDelay = absl::Seconds(3); // Use a non-blocking timerfd so that if TFD_TIMER_ABSTIME is incorrectly // non-functional, we get EAGAIN rather than a test timeout. auto const tfd = ASSERT_NO_ERRNO_AND_VALUE(TimerfdCreate(GetParam(), TFD_NONBLOCK)); struct itimerspec its = {}; ASSERT_THAT(clock_gettime(GetParam(), &its.it_value), SyscallSucceeds()); its.it_value.tv_sec += absl::ToInt64Seconds(kDelay); ASSERT_THAT(timerfd_settime(tfd.get(), TFD_TIMER_ABSTIME, &its, nullptr), SyscallSucceeds()); absl::SleepFor(kDelay + TimerSlack()); uint64_t val = 0; ASSERT_THAT(ReadFd(tfd.get(), &val, sizeof(uint64_t)), SyscallSucceedsWithValue(sizeof(uint64_t))); EXPECT_EQ(1, val); } TEST_P(TimerfdTest, IllegalReadWrite) { auto const tfd = ASSERT_NO_ERRNO_AND_VALUE(TimerfdCreate(GetParam(), TFD_NONBLOCK)); uint64_t val = 0; EXPECT_THAT(PreadFd(tfd.get(), &val, sizeof(val), 0), SyscallFailsWithErrno(ESPIPE)); EXPECT_THAT(WriteFd(tfd.get(), &val, sizeof(val)), SyscallFailsWithErrno(EINVAL)); EXPECT_THAT(PwriteFd(tfd.get(), &val, sizeof(val), 0), SyscallFailsWithErrno(ESPIPE)); } std::string PrintClockId(::testing::TestParamInfo<int> info) { switch (info.param) { case CLOCK_MONOTONIC: return "CLOCK_MONOTONIC"; case CLOCK_BOOTTIME: return "CLOCK_BOOTTIME"; default: return absl::StrCat(info.param); } } INSTANTIATE_TEST_SUITE_P(AllTimerTypes, TimerfdTest, ::testing::Values(CLOCK_MONOTONIC, CLOCK_BOOTTIME), PrintClockId); TEST(TimerfdClockRealtimeTest, ClockRealtime) { // Since CLOCK_REALTIME can, by definition, change, we can't make any // non-flaky assertions about the amount of time it takes for a // CLOCK_REALTIME-based timer to expire. Just check that it expires at all, // and hope it happens before the test times out. constexpr int kDelaySecs = 1; auto const tfd = ASSERT_NO_ERRNO_AND_VALUE(TimerfdCreate(CLOCK_REALTIME, 0)); struct itimerspec its = {}; its.it_value.tv_sec = kDelaySecs; ASSERT_THAT(timerfd_settime(tfd.get(), /* flags = */ 0, &its, nullptr), SyscallSucceeds()); uint64_t val = 0; ASSERT_THAT(ReadFd(tfd.get(), &val, sizeof(uint64_t)), SyscallSucceedsWithValue(sizeof(uint64_t))); EXPECT_EQ(1, val); } } // namespace } // namespace testing } // namespace gvisor
36.11284
79
0.696261
Simon-Zh-0409
86f1178a1ea6ec2cc2f4c9b5b26cc480a2c3f0a3
2,643
cpp
C++
src/AppLines/PageScaling.cpp
stmork/blz3
275e24681cb1493319cd0a50e691feb86182f6f0
[ "BSD-3-Clause" ]
null
null
null
src/AppLines/PageScaling.cpp
stmork/blz3
275e24681cb1493319cd0a50e691feb86182f6f0
[ "BSD-3-Clause" ]
null
null
null
src/AppLines/PageScaling.cpp
stmork/blz3
275e24681cb1493319cd0a50e691feb86182f6f0
[ "BSD-3-Clause" ]
1
2022-01-07T15:58:38.000Z
2022-01-07T15:58:38.000Z
/* ** ** $Filename: PageScaling.cpp $ ** $Release: Dortmund 2004 $ ** $Revision$ ** $Date$ ** $Author$ ** $Developer: Steffen A. Mork $ ** ** Blizzard III - Scaling properties ** ** (C) Copyright 2004 Steffen A. Mork ** All Rights Reserved ** ** */ /************************************************************************* ** ** ** Lines III includes ** ** ** *************************************************************************/ #include "AppLinesInclude.h" #include "PageScaling.h" /************************************************************************* ** ** ** CPageScaling implementation ** ** ** *************************************************************************/ CPageScaling::CPageScaling() : CB3PropertyPage(CPageScaling::IDD) { m_Scaling = null; //{{AFX_DATA_INIT(CPageScaling) m_ScaleMode = -1; //}}AFX_DATA_INIT } CPageScaling::~CPageScaling() { } void CPageScaling::DoDataExchange(CDataExchange* pDX) { if (!pDX->m_bSaveAndValidate) { m_ScaleMode = m_Scaling->b3GetScaleMode(); } CB3PropertyPage::DoDataExchange(pDX); //{{AFX_DATA_MAP(CPageScaling) DDX_Control(pDX, IDC_SCALE_X, m_xScaleCtrl); DDX_Control(pDX, IDC_SCALE_Y, m_yScaleCtrl); DDX_Control(pDX, IDC_SCALE_Z, m_zScaleCtrl); DDX_Radio(pDX, IDC_SCALE_BOX_POLAR, m_ScaleMode); //}}AFX_DATA_MAP m_ScaleCtrl.b3DDX(pDX); if (pDX->m_bSaveAndValidate) { m_Scaling->b3SetScaleMode(m_ScaleMode); } } BEGIN_MESSAGE_MAP(CPageScaling, CB3PropertyPage) //{{AFX_MSG_MAP(CPageScaling) ON_EN_KILLFOCUS(IDC_SCALE_X, OnEdit) ON_EN_KILLFOCUS(IDC_SCALE_Y, OnEdit) ON_EN_KILLFOCUS(IDC_SCALE_Z, OnEdit) ON_BN_CLICKED(IDC_SCALE_POLAR, OnEdit) ON_BN_CLICKED(IDC_SCALE_OBJECT_POLAR, OnEdit) ON_BN_CLICKED(IDC_SCALE_BOX_POLAR, OnEdit) ON_BN_CLICKED(IDC_SCALE_IPOINT, OnEdit) ON_BN_CLICKED(IDC_SCALE_IPOINT_ORIGINAL, OnEdit) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CPageScaling message handlers void CPageScaling::b3PreInitDialog() { m_ScaleCtrl.b3Init(&m_Scaling->m_Scale,&m_xScaleCtrl,&m_yScaleCtrl,&m_zScaleCtrl); } void CPageScaling::b3PostInitDialog() { m_xScaleCtrl.b3SetRange(0.0001,10000); m_yScaleCtrl.b3SetRange(0.0001,10000); m_zScaleCtrl.b3SetRange(0.0001,10000); }
27.821053
83
0.534241
stmork
86fe9c368588062ca9065046400e9f313dab4ce6
687
cpp
C++
ReactUbuntu/runtime/src/reactevents.cpp
Abdulhafiz-Yusuf/react-native
98e0ce38cdcb8c489a064c436a353be754e95f89
[ "CC-BY-4.0", "BSD-3-Clause" ]
1,079
2016-08-02T16:20:28.000Z
2022-03-22T20:40:37.000Z
ReactUbuntu/runtime/src/reactevents.cpp
daisty/react-native-1
98e0ce38cdcb8c489a064c436a353be754e95f89
[ "CC-BY-4.0", "BSD-3-Clause" ]
3
2016-08-04T07:57:48.000Z
2020-05-21T05:02:52.000Z
ReactUbuntu/runtime/src/reactevents.cpp
daisty/react-native-1
98e0ce38cdcb8c489a064c436a353be754e95f89
[ "CC-BY-4.0", "BSD-3-Clause" ]
80
2016-08-03T09:34:32.000Z
2021-04-22T16:57:11.000Z
/** * Copyright (C) 2016, Canonical Ltd. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * Author: Justin McPherson <[email protected]> * */ #include "reactevents.h" QString normalizeInputEventName(const QString& eventName) { QString tmp = eventName; if (eventName.startsWith("top")) return tmp; if (eventName.startsWith("on")) { tmp.replace(0, 2, "top"); } else { tmp[0] = tmp[0].toUpper(); tmp = "top" + tmp; } return tmp; }
22.16129
78
0.676856
Abdulhafiz-Yusuf
86ff8e340289cd82061077f230923a8a3f332e98
2,609
cpp
C++
dev/spark/Gem/Code/Utils/DynamicSliceWrapper.cpp
chrisinajar/spark
3c6b30592c00bc38738cc3aaca2144edfc6cc8b2
[ "AML" ]
2
2020-08-20T03:40:24.000Z
2021-02-07T20:31:43.000Z
dev/spark/Gem/Code/Utils/DynamicSliceWrapper.cpp
chrisinajar/spark
3c6b30592c00bc38738cc3aaca2144edfc6cc8b2
[ "AML" ]
null
null
null
dev/spark/Gem/Code/Utils/DynamicSliceWrapper.cpp
chrisinajar/spark
3c6b30592c00bc38738cc3aaca2144edfc6cc8b2
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
#include "spark_precompiled.h" #include "DynamicSliceWrapper.h" using namespace spark; using namespace AzFramework; //DynamicSliceWrapper implementation bool DynamicSliceWrapper::IsReady() const { return m_id.IsValid(); } AZ::EntityId DynamicSliceWrapper::GetId() const { return m_id; } AZ::Data::AssetId DynamicSliceWrapper::GetAssetId() const { return m_asset.GetId(); } void DynamicSliceWrapper::Load() { if (m_state != waiting) { AZ_Error("DynamicSliceWrapper", false, "called Load, but asset is not specified"); return; } //AZ_Printf(0, "DynamicSliceWrapper::Load()"); EBUS_EVENT_RESULT(m_ticket, AzFramework::GameEntityContextRequestBus, InstantiateDynamicSlice, m_asset, transform, nullptr); AzFramework::SliceInstantiationResultBus::Handler::BusConnect(m_ticket); m_state = loading; } bool DynamicSliceWrapper::Loaded() const { return m_state == loaded; } DynamicSliceWrapper::DynamicSliceWrapper(const DynamicSliceAsset &asset) { m_state = waiting; m_asset = asset; } spark::DynamicSliceWrapper::~DynamicSliceWrapper() { if(m_state == loading)AzFramework::SliceInstantiationResultBus::Handler::BusDisconnect(); } void DynamicSliceWrapper::OnSliceInstantiated(const AZ::Data::AssetId& sliceAssetId, const AZ::SliceComponent::SliceInstanceAddress& instance) { m_id = (*(instance.second->GetInstantiated()->m_entities.begin()))->GetId(); AzFramework::SliceInstantiationResultBus::Handler::BusDisconnect(); AZ::Entity *e = (*(instance.second->GetInstantiated()->m_entities.begin())); m_state = loaded; //AZ_Printf(0, "DynamicSliceWrapper::OnSliceInstantiated entity's state is %d", e->GetState()); if (onInstantiated)onInstantiated(e); } void DynamicSliceWrapper::OnSlicePreInstantiate(const AZ::Data::AssetId& sliceAssetId, const AZ::SliceComponent::SliceInstanceAddress& instance) { AZ::Entity *e = (*(instance.second->GetInstantiated()->m_entities.begin())); //AZ_Printf(0, "DynamicSliceWrapper::OnSlicePreInstantiate entity's state is %d", e->GetState()); if (onPreInstantiate)onPreInstantiate(e); } void DynamicSliceWrapper::OnSliceInstantiationFailed(const AZ::Data::AssetId& /*sliceAssetId*/) { AZ_Printf(0, "DynamicSliceWrapper::OnSliceInstantiationFailed"); AzFramework::SliceInstantiationResultBus::Handler::BusDisconnect(); m_state = loaded; } void DynamicSliceWrapper::OnSliceInstantiationFailedOrCanceled(const AZ::Data::AssetId& /*sliceAssetId*/, bool /*canceled*/) { AZ_Printf(0, "DynamicSliceWrapper::OnSliceInstantiationFailedOrCanceled"); AzFramework::SliceInstantiationResultBus::Handler::BusDisconnect(); m_state = loaded; }
31.059524
146
0.77271
chrisinajar
8100336759d6ac7951978a3dfa16586a294103a1
2,480
cpp
C++
lab02/src/Delegates/moviesdelegate.cpp
actpohabtNS/oop_labs
0284dc3b494e5b1246e8b4956d92ea659e6c00a9
[ "CC0-1.0" ]
null
null
null
lab02/src/Delegates/moviesdelegate.cpp
actpohabtNS/oop_labs
0284dc3b494e5b1246e8b4956d92ea659e6c00a9
[ "CC0-1.0" ]
null
null
null
lab02/src/Delegates/moviesdelegate.cpp
actpohabtNS/oop_labs
0284dc3b494e5b1246e8b4956d92ea659e6c00a9
[ "CC0-1.0" ]
null
null
null
#include "moviesdelegate.h" #include <QApplication> #include <QPainter> MoviesDelegate::MoviesDelegate(QObject *parent, MovieTypes type) : HoverRowDelegate(parent) { setMovieType(type); } void MoviesDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { HoverRowDelegate::paint(painter, option, index); if (index.row() == _hoveredRow) { QRect r = option.rect;//getting the rect of the cell int x,y, fontSize; fontSize = 18; QString text; if (index.column() == _moveColumn) { painter->setPen("#7a7d7d"); text = "⇐"; if (_hoveredColumn == _moveColumn) { QApplication::setOverrideCursor(QCursor(Qt::PointingHandCursor)); painter->setPen("#b3b3b3"); } } if (index.column() == _editColumn) { painter->setPen("#7a7d7d"); text = "⛭"; fontSize = 14; if (_hoveredColumn == _editColumn) { QApplication::setOverrideCursor(QCursor(Qt::PointingHandCursor)); painter->setPen("#b3b3b3"); } } if (index.column() == _deleteColumn) { painter->setPen("#7a7d7d"); text = "×"; if (_hoveredColumn == _deleteColumn) { QApplication::setOverrideCursor(QCursor(Qt::PointingHandCursor)); painter->setPen("#ff0000"); } } x = r.left() + r.width()/2 - fontSize/2;//the X coordinate y = r.top() + r.height()/2 + fontSize/2;//the Y coordinate painter->setFont({"Roboto", fontSize}); painter->drawText(x, y, text); QStyledItemDelegate::paint(painter, option, index); } if (_hoveredColumn != _moveColumn && _hoveredColumn != _editColumn && _hoveredColumn != _deleteColumn) QApplication::restoreOverrideCursor(); } void MoviesDelegate::setMovieType(MovieTypes type) { switch (type) { case MovieTypes::movieSeen: _moveColumn = -1; _editColumn = 0; _deleteColumn = 7; break; case MovieTypes::movieToSee: _moveColumn = 0; _editColumn = 1; _deleteColumn = 6; break; case MovieTypes::unknown: default: _moveColumn = -1; _editColumn = -1; _deleteColumn = -1; } }
26.105263
113
0.550806
actpohabtNS
81029074d7005145fda75df656d536967a004aca
3,187
cpp
C++
src/tx/coinminttx.cpp
xiaoyu1998/wasm.bitcoin
0fbd7bdc4555382abca64b5df33e8aec7a65ff3b
[ "MIT" ]
1,313
2018-01-09T01:49:01.000Z
2022-02-26T11:10:40.000Z
src/tx/coinminttx.cpp
linnbenton/WaykiChain
91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a
[ "MIT" ]
32
2018-06-07T10:21:21.000Z
2021-12-07T06:53:42.000Z
src/tx/coinminttx.cpp
linnbenton/WaykiChain
91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a
[ "MIT" ]
322
2018-02-26T03:41:36.000Z
2022-02-08T08:12:16.000Z
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2017-2019 The WaykiChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "coinminttx.h" #include "main.h" bool CCoinMintTx::CheckTx(CTxExecuteContext &context) { // Only used in stable coin genesis. return ( context.height == (int32_t) SysCfg().GetVer2GenesisHeight() ); } bool CCoinMintTx::ExecuteTx(CTxExecuteContext &context) { IMPLEMENT_DEFINE_CW_STATE; CRegID newRegid = CRegID(context.height, context.index); sp_tx_account = make_shared<CAccount>(); if (txUid.IsEmpty()) { sp_tx_account = NewAccount(cw, Hash160(newRegid.GetRegIdRaw())); sp_tx_account->regid = newRegid; // generate new regid if (!RegisterAccount(context, /*pubkey*/nullptr, *sp_tx_account)) // generate new regid for the account return false; } else if (txUid.is<CPubKey>()) { const CPubKey &pubkey = txUid.get<CPubKey>(); const CKeyID &keyid = pubkey.GetKeyId(); sp_tx_account = GetAccount(*context.pCw, txUid); if (!sp_tx_account) { sp_tx_account = NewAccount(cw, keyid); // genrate new keyid from regid } if (!sp_tx_account->IsRegistered()) { if (!RegisterAccount(context, &pubkey, *sp_tx_account)) // generate new regid for the account return false; } } else { return state.DoS(100, ERRORMSG("%s(), unsupported txUid type=%s", TX_ERR_TITLE, txUid.GetIDName()), READ_ACCOUNT_FAIL, "unsupported-txUid-type"); } if (!sp_tx_account->OperateBalance(coin_symbol, ADD_FREE, coin_amount, ReceiptType::COIN_MINT_ONCHAIN, receipts)) return state.DoS(100, ERRORMSG("CCoinMintTx::ExecuteTx, operate account failed"), UPDATE_ACCOUNT_FAIL, "operate-account-failed"); return true; } string CCoinMintTx::ToString(CAccountDBCache &accountCache) { assert(txUid.is<CPubKey>() || txUid.is<CNullID>()); string toAddr = txUid.is<CPubKey>() ? txUid.get<CPubKey>().GetKeyId().ToAddress() : ""; return strprintf("txType=%s, hash=%s, ver=%d, txUid=%s, addr=%s, coin_symbol=%s, coin_amount=%llu, valid_height=%d", GetTxType(nTxType), GetHash().ToString(), nVersion, txUid.ToString(), toAddr, coin_symbol, coin_amount, valid_height); } Object CCoinMintTx::ToJson(CCacheWrapper &cw) const { assert(txUid.is<CPubKey>() || txUid.is<CNullID>()); Object result; string toAddr = txUid.is<CPubKey>() ? txUid.get<CPubKey>().GetKeyId().ToAddress() : ""; result.push_back(Pair("txid", GetHash().GetHex())); result.push_back(Pair("tx_type", GetTxType(nTxType))); result.push_back(Pair("ver", nVersion)); result.push_back(Pair("tx_uid", txUid.ToString())); result.push_back(Pair("to_addr", toAddr)); result.push_back(Pair("coin_symbol", coin_symbol)); result.push_back(Pair("coin_amount", coin_amount)); result.push_back(Pair("valid_height", valid_height)); return result; }
43.657534
120
0.655789
xiaoyu1998
810b9821a00bebbacc16c206e73ba65fd8169d04
17,995
cpp
C++
AppCUI/src/Utils/String.cpp
agschipor/AppCUI
914e101470bee2c85c32b64e4714fd85f4899486
[ "MIT" ]
null
null
null
AppCUI/src/Utils/String.cpp
agschipor/AppCUI
914e101470bee2c85c32b64e4714fd85f4899486
[ "MIT" ]
null
null
null
AppCUI/src/Utils/String.cpp
agschipor/AppCUI
914e101470bee2c85c32b64e4714fd85f4899486
[ "MIT" ]
null
null
null
#include "AppCUI.h" #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> const unsigned char __lower_case_table__[256] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; #define STRING_FLAG_STACK_BUFFER 0x80000000 #define SNPRINTF _snprintf #define STRING_FLAG_STATIC_BUFFER 1 #define STRING_FLAG_CONSTANT 2 #define STRING_FLAG_STATIC_WITH_GROW 4 #define COMPUTE_TEXT_SIZE(text,textSize) if (textSize==0xFFFFFFFF) { textSize = Len(text);} #define PREPATE_STRING_SOURCE_DESTINATION_PARAMS \ CHECK(destination, false, "Expecting a valid (non-null) destination string"); \ CHECK(source, false, "Expecting a valid (non-null) source parameter"); \ CHECK(maxDestinationSize > 0, false, "Expecting at least one character available in destination (maxDestinationSize should be bigger than 0)"); \ COMPUTE_TEXT_SIZE(source, sourceSize); \ CHECK(sourceSize < maxDestinationSize, false, "Current destination size (%d) is smaller than the size of the text (%d)", maxDestinationSize, sourceSize); #define VALIDATE_STRINGS_TO_COMPARE \ CHECK(sir1, false, "Expecting a valid (non-null) first parameter !"); \ CHECK(sir2, false, "Expecting a valid (non-null) first parameter !"); \ const unsigned char *p1 = (const unsigned char *)sir1; \ const unsigned char *p2 = (const unsigned char *)sir2; #define VALIDATE_ALLOCATED_SPACE(requiredSpace, returnValue) \ if ((requiredSpace) > (Allocated & 0x7FFFFFFF)) { \ CHECK(Grow(requiredSpace), returnValue, "Fail to allocate space for %d bytes", (requiredSpace)); \ } #define MEMCOPY memcpy char tempCharForReferenceReturn; int c99_snprintf(char *outBuf, size_t size, const char *format, ...) { int count; va_list ap; va_start(ap, format); count = vsnprintf(outBuf, size, format, ap); va_end(ap); return count; } #define snprintf c99_snprintf //Statical functions unsigned int AppCUI::Utils::String::Len(const char *string) { if (string==nullptr) return 0; const char* p = string; while ((*string)!=0) { string++; } return (unsigned int)(string-p); } bool AppCUI::Utils::String::Add(char *destination, const char *source, unsigned int maxDestinationSize, unsigned int destinationSize, unsigned int sourceSize, unsigned int * resultedDestinationSize) { PREPATE_STRING_SOURCE_DESTINATION_PARAMS; COMPUTE_TEXT_SIZE(destination, destinationSize); CHECK(destinationSize + sourceSize < maxDestinationSize, false, "A total space of %d bytes is required to add string (available is %d)", destinationSize + sourceSize, maxDestinationSize); if (sourceSize > 0) { MEMCOPY(destination+destinationSize, source, sourceSize); } destination[sourceSize+destinationSize] = 0; if (resultedDestinationSize) *resultedDestinationSize = sourceSize+destinationSize; return true; } bool AppCUI::Utils::String::Set(char *destination, const char *source, unsigned int maxDestinationSize, unsigned int sourceSize, unsigned int * resultedDestinationSize) { PREPATE_STRING_SOURCE_DESTINATION_PARAMS; if (sourceSize > 0) { MEMCOPY(destination, source, sourceSize); } destination[sourceSize]=0; if (resultedDestinationSize) *resultedDestinationSize = sourceSize; return true; } bool AppCUI::Utils::String::Equals(const char *sir1,const char *sir2,bool ignoreCase) { VALIDATE_STRINGS_TO_COMPARE; if (ignoreCase) { while ((*p1) && (*p2) && ((__lower_case_table__[*p1]) == (__lower_case_table__[*p2]))) { p1++; p2++; } return ((*p2) == 0) && ((*p1)==0); } else { while ((*p1) && (*p2) && ((*p1) == (*p2))) { p1++; p2++; } return ((*p2) == 0) && ((*p1) == 0); } } bool AppCUI::Utils::String::StartsWith(const char *sir1, const char *sir2, bool ignoreCase) { VALIDATE_STRINGS_TO_COMPARE; if (ignoreCase) { while ((*p1) && (*p2) && ((__lower_case_table__[*p1]) == (__lower_case_table__[*p2]))) { p1++; p2++; } return (*p2) == 0; } else { while ((*p1) && (*p2) && ((*p1) == (*p2))) { p1++; p2++; } return (*p2) == 0; } } bool AppCUI::Utils::String::EndsWith(const char *sir1, const char *sir2, bool ignoreCase, unsigned int sir1Size, unsigned int sir2Size) { VALIDATE_STRINGS_TO_COMPARE COMPUTE_TEXT_SIZE(sir1, sir1Size); COMPUTE_TEXT_SIZE(sir2, sir2Size); if (sir2Size>sir1Size) return false; p1 += (sir2Size - sir1Size); if (ignoreCase) { while ((*p1) && (*p2) && ((__lower_case_table__[*p1]) == (__lower_case_table__[*p2]))) { p1++; p2++; } return ((*p2) == 0) && ((*p1) == 0); } else { while ((*p1) && (*p2) && ((*p1) == (*p2))) { p1++; p2++; } return ((*p2) == 0) && ((*p1) == 0); } } //--------------------------------------------------- CONSTRUCTORI OBIECT ---------------------------------------------------------------- AppCUI::Utils::String::String(void) { Text = nullptr; Size = Allocated = 0; } AppCUI::Utils::String::String(const AppCUI::Utils::String &s) { Text = nullptr; Size = Allocated = 0; if (Create(s.Size+32)) { if (s.Text) { MEMCOPY(this->Text, s.Text, s.Size + 1); this->Size = s.Size; } } } AppCUI::Utils::String::~String(void) { Destroy(); } void AppCUI::Utils::String::Destroy() { if ((Text!=nullptr) && ((Allocated & STRING_FLAG_STACK_BUFFER)==0)) { delete Text; } Text = nullptr; Size = Allocated = 0; } bool AppCUI::Utils::String::Create(unsigned int initialAllocatedBufferSize) { CHECK(initialAllocatedBufferSize == 0, false, "initialAllocatedBufferSize must be bigger than 0 !"); initialAllocatedBufferSize = ((initialAllocatedBufferSize | 15) + 1) & 0x7FFFFFFF; if (initialAllocatedBufferSize <= (Allocated & 0x7FFFFFFF)) { *Text = 0; Size = 0; return true; } Destroy(); char * temp = new char[initialAllocatedBufferSize]; CHECK(temp, false, "Failed to allocate %d bytes", initialAllocatedBufferSize); Text = temp; Size = 0; *Text = 0; Allocated = initialAllocatedBufferSize; return true; } bool AppCUI::Utils::String::Create(const char* text) { CHECK(text, false, "Expecting a non-null string !"); unsigned int len = String::Len(text); CHECK(Create(len+1), false, "Fail to create string buffer with len: %d", len); MEMCOPY(this->Text, text, len + 1); Size = len + 1; this->Text[len] = 0; return true; } bool AppCUI::Utils::String::Create(char* buffer, unsigned int bufferSize, bool emptyString) { CHECK(buffer, false, "Expecting a valid (non-null) buffer"); CHECK(bufferSize>=1, false, "bufferSize must be bigger than 1"); CHECK(bufferSize < 0x7FFFFFFF, false, "bufferSize must be smaller than 0x7FFFFFFF"); Destroy(); Text = buffer; Allocated = (bufferSize & 0x7FFFFFFF) | STRING_FLAG_STACK_BUFFER; if (emptyString) { Size = 0; Text[Size] = 0; } else { const char * e = buffer + bufferSize - 1; Size = 0; while ((buffer < e) && (*buffer)) { buffer++; Size++; } *buffer = 0; } return true; } void AppCUI::Utils::String::Clear() { if (Text) { *Text = 0; Size = 0; } } bool AppCUI::Utils::String::Realloc(unsigned int newSize) { if (newSize<=(Allocated & 0x7FFFFFFF)) return true; return Grow(newSize); } bool AppCUI::Utils::String::Grow(unsigned int newSize) { newSize = ((newSize | 15) + 1) & 0x7FFFFFFF; if (newSize <= (Allocated & 0x7FFFFFFF)) return true; char * temp = new char[newSize]; CHECK(temp, false, "Failed to allocate: %d bytes", newSize); if (Text) { MEMCOPY(temp, Text, Size + 1); if ((Allocated & STRING_FLAG_STACK_BUFFER) == 0) delete Text; } Text = temp; Allocated = newSize; return true; } // ============================================================================================[ADD FUNCTIONS]===================== bool AppCUI::Utils::String::Add(const char *text,unsigned int txSize) { CHECK(text, false, "Expecting a non-null parameter !"); COMPUTE_TEXT_SIZE(text, txSize); VALIDATE_ALLOCATED_SPACE(this->Size + txSize + 1, false); MEMCOPY(this->Text + this->Size, text, txSize); this->Size += txSize; this->Text[this->Size] = 0; return true; } bool AppCUI::Utils::String::Add(const String& text) { return this->Add(text.Text, text.Size); } bool AppCUI::Utils::String::Add(const String* text) { CHECK(text, false, "Expecting a non-null first parameter !"); return this->Add(text->Text, text->Size); } bool AppCUI::Utils::String::AddChar(char ch) { CHECK(ch, false, "NULL character can not be added !"); char temp[2]; temp[0]=ch; temp[1]=0; return this->Add(temp,1); } bool AppCUI::Utils::String::AddChars(char ch,unsigned int count) { CHECK(ch, false, "NULL character can not be added !"); CHECK(count, false, "'count' should be bigger than 0"); VALIDATE_ALLOCATED_SPACE(this->Size + count + 1, false); char * p = this->Text + this->Size; this->Size += count; while (count) { *p = ch; p++; count--; } *p = 0; return true; } // ============================================================================================[SET FUNCTIONS]===================== bool AppCUI::Utils::String::Set(const char *text,unsigned int txSize) { CHECK(text, false, "Expecting a non-null parameter !"); COMPUTE_TEXT_SIZE(text, txSize); VALIDATE_ALLOCATED_SPACE(txSize + 1, false); MEMCOPY(this->Text, text, txSize); this->Size = txSize; this->Text[this->Size] = 0; return true; } bool AppCUI::Utils::String::Set(const AppCUI::Utils::String &text) { return this->Set(text.Text, text.Size); } bool AppCUI::Utils::String::Set(const AppCUI::Utils::String *text) { CHECK(text, false, "Expecting a non-null first parameter !"); return this->Set(text->Text, text->Size); } bool AppCUI::Utils::String::SetChars(char ch, unsigned int count) { CHECK(ch, false, "NULL character can not be added !"); CHECK(count, false, "'count' should be bigger than 0"); VALIDATE_ALLOCATED_SPACE(count + 1, false); char * p = this->Text; this->Size += count; while (count) { *p = ch; p++; count--; } *p = 0; return true; } bool AppCUI::Utils::String::InsertChar(char character, unsigned int position) { CHECK(character, false, "NULL character can not be added !"); VALIDATE_ALLOCATED_SPACE(this->Size + 2, false); CHECK(position <= this->Size, false, "Invalid insert offset: %d (should be between 0 and %d)", position, this->Size); if (position == this->Size) { this->Text[this->Size++] = character; this->Text[this->Size] = 0; } else { memmove(this->Text + position + 1, this->Text + position, this->Size - position); this->Text[position] = character; this->Size++; this->Text[this->Size] = 0; } return true; } bool AppCUI::Utils::String::DeleteChar(unsigned int position) { CHECK(position < this->Size, false, "Invalid delete offset: %d (should be between 0 and %d)", position, this->Size-1); if ((position+1) == this->Size) { this->Size--; this->Text[this->Size] = 0; } else { memmove(this->Text + position, this->Text + position + 1, this->Size - (position + 1)); this->Size--; this->Text[this->Size] = 0; } return true; } bool AppCUI::Utils::String::Delete(unsigned int start, unsigned int end) { CHECK(end <= this->Size, false, "Invalid delete offset: %d (should be between 0 and %d)", position, this->Size); CHECK(start < end, false, "Start parameter (%d) should be smaller than End parameter (%d)", start, end); if (end == this->Size) { this->Size = start; this->Text[this->Size] = 0; } else { memmove(this->Text + start, this->Text + end, this->Size - end); this->Size-=(end-start); this->Text[this->Size] = 0; } return true; } int AppCUI::Utils::String::GetChar(int index) const { if (Text==nullptr) return 0; if ((index>=0) && (index<(int)Size)) return Text[(unsigned int)index]; unsigned int idx = (unsigned int)(-index); if (idx<Size) return Text[Size-idx]; return 0; } bool AppCUI::Utils::String::SetChar(int index,char value) { CHECK(Text, false, "Text buffer was not allocated !"); if ((index>=0) && (index<(int)Size)) { Text[index] = value; return true; } unsigned int idx = (unsigned int)(-index); if (idx < Size) { Text[Size+idx] = value; return true; } RETURNERROR(false, "Invalid text index: %d for a text with length %d", index, this->Size); } bool AppCUI::Utils::String::SetFormat(const char *format, ...) { va_list args; int len, len2; CHECK(format, false, "Expecting a valid(non-null) format parameter !"); va_start( args, format ); len = vsnprintf(nullptr, 0, format, args); va_end(args); CHECK(len >= 0, false, "Invalid format (unable to format your string) !"); VALIDATE_ALLOCATED_SPACE(((unsigned int)len) + 2, false); va_start( args, format ); len2 = vsnprintf( Text, (Allocated & 0x7FFFFFFF)-1, format, args ); va_end (args); if (len2 < 0) { Clear(); RETURNERROR(false, "Fail on vsnprintf !"); } this->Size = (unsigned int)len2; Text[this->Size]=0; return true; } bool AppCUI::Utils::String::AddFormat(const char *format, ...) { va_list args; int len, len2; CHECK(format, false, "Expecting a valid(non-null) format parameter !"); va_start(args, format); len = vsnprintf(nullptr, 0, format, args); va_end(args); CHECK(len >= 0, false, "Invalid format (unable to format your string) !"); VALIDATE_ALLOCATED_SPACE(((unsigned int)len) + 2 + this->Size, false); va_start(args, format); len2 = vsnprintf(Text, (Allocated & 0x7FFFFFFF) - 1, format, args); va_end(args); if (len2 < 0) { Clear(); RETURNERROR(false, "Fail on vsnprintf !"); } this->Size += (unsigned int)len2; Text[this->Size] = 0; return true; } const char* AppCUI::Utils::String::Format(const char *format, ...) { va_list args; int len, len2; CHECK(format, nullptr, "Expecting a valid(non-null) format parameter !"); va_start(args, format); len = vsnprintf(nullptr, 0, format, args); va_end(args); CHECK(len >= 0, nullptr, "Invalid format (unable to format your string) !"); VALIDATE_ALLOCATED_SPACE(((unsigned int)len) + 2, nullptr); va_start(args, format); len2 = vsnprintf(Text, (Allocated & 0x7FFFFFFF) - 1, format, args); va_end(args); if (len2 < 0) { Clear(); RETURNERROR(nullptr, "Fail on vsnprintf !"); } this->Size = ((unsigned int)len2); Text[this->Size] = 0; return Text; } bool AppCUI::Utils::String::Truncate(unsigned int newText) { if ((newText<=Size) && (newText>=0)) { Size=newText; Text[Size]=0; return true; } return false; } bool AppCUI::Utils::String::StartsWith(const char *text,bool ignoreCase) const { return String::StartsWith(Text,text,ignoreCase); } bool AppCUI::Utils::String::StartsWith(const AppCUI::Utils::String *text, bool ignoreCase) const { CHECK(text !=nullptr,false,"Expecting a non null parameter"); return String::StartsWith(Text,text->Text,ignoreCase); } bool AppCUI::Utils::String::StartsWith(const AppCUI::Utils::String &text, bool ignoreCase) const { return String::StartsWith(Text, text.Text, ignoreCase); } bool AppCUI::Utils::String::EndsWith(const char *ss, bool ignoreCase) const { return String::EndsWith(Text,ss,ignoreCase,Size); } bool AppCUI::Utils::String::EndsWith(const AppCUI::Utils::String *text, bool ignoreCase) const { CHECK(text != nullptr, false, "Expecting a non null parameter"); return String::EndsWith(Text,text->Text,ignoreCase,Size,text->Size); } bool AppCUI::Utils::String::EndsWith(const AppCUI::Utils::String &text, bool ignoreCase) const { return String::EndsWith(Text, text.Text, ignoreCase, Size, text.Size); } bool AppCUI::Utils::String::Equals(const char *text, bool ignoreCase) const { return String::Equals(this->Text, text, ignoreCase); } bool AppCUI::Utils::String::Equals(const String& text, bool ignoreCase) const { if (this->Size != text.Size) return false; return String::Equals(this->Text, text.Text, ignoreCase); } char& AppCUI::Utils::String::operator[] (int poz) { if ((Text==nullptr) || (Size==0)) { tempCharForReferenceReturn = 0; return tempCharForReferenceReturn; } if (poz < 0) poz += (int)this->Size; if (((poz+1) > (int)Size) || (poz<0)) { tempCharForReferenceReturn = 0; return tempCharForReferenceReturn; } return Text[poz]; }
31.625659
989
0.62434
agschipor
810d894066c7bbf59457253e8aa0e124894d1ae2
2,990
hpp
C++
depends/boost/intrusive/detail/tree_value_compare.hpp
mistydew/RSSearch
52e597aeb495fe35f2f6069741ef19c9d0bfe2bb
[ "MIT" ]
471
2019-06-26T09:59:09.000Z
2022-03-30T04:59:42.000Z
depends/boost/intrusive/detail/tree_value_compare.hpp
mistydew/RSSearch
52e597aeb495fe35f2f6069741ef19c9d0bfe2bb
[ "MIT" ]
39
2019-07-06T02:51:39.000Z
2022-02-18T11:48:33.000Z
depends/boost/intrusive/detail/tree_value_compare.hpp
mistydew/RSSearch
52e597aeb495fe35f2f6069741ef19c9d0bfe2bb
[ "MIT" ]
151
2019-06-26T14:21:49.000Z
2022-03-24T10:10:18.000Z
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2015-2015. 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) // // See http://www.boost.org/libs/container for documentation. // ////////////////////////////////////////////////////////////////////////////// #ifndef BOOST_INTRUSIVE_DETAIL_TREE_VALUE_COMPARE_HPP #define BOOST_INTRUSIVE_DETAIL_TREE_VALUE_COMPARE_HPP #ifndef BOOST_CONFIG_HPP # include <boost/config.hpp> #endif #if defined(BOOST_HAS_PRAGMA_ONCE) # pragma once #endif #include <boost/intrusive/detail/workaround.hpp> #include <boost/intrusive/detail/mpl.hpp> #include <boost/intrusive/detail/ebo_functor_holder.hpp> namespace boost{ namespace intrusive{ template<class Key, class T, class KeyCompare, class KeyOfValue> struct tree_value_compare : public boost::intrusive::detail::ebo_functor_holder<KeyCompare> { typedef boost::intrusive::detail::ebo_functor_holder<KeyCompare> base_t; typedef T value_type; typedef KeyCompare key_compare; typedef KeyOfValue key_of_value; typedef Key key_type; tree_value_compare() : base_t() {} explicit tree_value_compare(const key_compare &kcomp) : base_t(kcomp) {} tree_value_compare (const tree_value_compare &x) : base_t(x.base_t::get()) {} tree_value_compare &operator=(const tree_value_compare &x) { this->base_t::get() = x.base_t::get(); return *this; } tree_value_compare &operator=(const key_compare &x) { this->base_t::get() = x; return *this; } BOOST_INTRUSIVE_FORCEINLINE const key_compare &key_comp() const { return static_cast<const key_compare &>(*this); } BOOST_INTRUSIVE_FORCEINLINE key_compare &key_comp() { return static_cast<key_compare &>(*this); } template<class U> struct is_key : boost::intrusive::detail::is_same<const U, const key_type> {}; template<class U> const key_type & key_forward (const U &key, typename boost::intrusive::detail::enable_if<is_key<U> >::type* = 0) const { return key; } template<class U> BOOST_INTRUSIVE_FORCEINLINE const key_type & key_forward (const U &key, typename boost::intrusive::detail::disable_if<is_key<U> >::type* = 0) const { return KeyOfValue()(key); } template<class KeyType, class KeyType2> BOOST_INTRUSIVE_FORCEINLINE bool operator()(const KeyType &key1, const KeyType2 &key2) const { return key_compare::operator()(this->key_forward(key1), this->key_forward(key2)); } template<class KeyType, class KeyType2> BOOST_INTRUSIVE_FORCEINLINE bool operator()(const KeyType &key1, const KeyType2 &key2) { return key_compare::operator()(this->key_forward(key1), this->key_forward(key2)); } }; } //namespace intrusive{ } //namespace boost{ #endif //#ifdef BOOST_INTRUSIVE_DETAIL_TREE_VALUE_COMPARE_HPP
32.857143
96
0.684281
mistydew
810e0701e6bf1c6fd167c5b4a0d7fafc24d146dc
71,550
cpp
C++
src/runtime/agas/addressing_service.cpp
andreasbuhr/hpx
4366a90aacbd3e95428a94ab24a1646a67459cc2
[ "BSL-1.0" ]
null
null
null
src/runtime/agas/addressing_service.cpp
andreasbuhr/hpx
4366a90aacbd3e95428a94ab24a1646a67459cc2
[ "BSL-1.0" ]
null
null
null
src/runtime/agas/addressing_service.cpp
andreasbuhr/hpx
4366a90aacbd3e95428a94ab24a1646a67459cc2
[ "BSL-1.0" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2011 Bryce Adelstein-Lelbach // Copyright (c) 2011-2013 Hartmut Kaiser // // 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) //////////////////////////////////////////////////////////////////////////////// #include <hpx/config.hpp> #include <hpx/exception.hpp> #include <hpx/hpx.hpp> #include <hpx/runtime/agas/addressing_service.hpp> #include <hpx/runtime/agas/big_boot_barrier.hpp> #include <hpx/runtime/agas/component_namespace.hpp> #include <hpx/runtime/agas/locality_namespace.hpp> #include <hpx/runtime/agas/primary_namespace.hpp> #include <hpx/runtime/agas/symbol_namespace.hpp> #include <hpx/runtime/agas/server/component_namespace.hpp> #include <hpx/runtime/agas/server/locality_namespace.hpp> #include <hpx/runtime/agas/server/primary_namespace.hpp> #include <hpx/runtime/agas/server/symbol_namespace.hpp> #include <hpx/runtime/threads/thread_data.hpp> #include <hpx/util/logging.hpp> #include <hpx/util/runtime_configuration.hpp> #include <hpx/include/performance_counters.hpp> #include <hpx/performance_counters/counter_creators.hpp> #if !defined(HPX_GCC_VERSION) || (HPX_GCC_VERSION > 40400) #include <hpx/lcos/broadcast.hpp> #endif #include <boost/format.hpp> #include <boost/icl/closed_interval.hpp> #include <boost/lexical_cast.hpp> #include <boost/serialization/vector.hpp> namespace hpx { namespace agas { struct addressing_service::bootstrap_data_type { // {{{ bootstrap_data_type() : primary_ns_server_() , locality_ns_server_(&primary_ns_server_) , component_ns_server_() , symbol_ns_server_() {} void register_counter_types() { server::locality_namespace::register_counter_types(); server::primary_namespace::register_counter_types(); server::component_namespace::register_counter_types(); server::symbol_namespace::register_counter_types(); } void register_server_instance(char const* servicename) { locality_ns_server_.register_server_instance(servicename); primary_ns_server_.register_server_instance(servicename); component_ns_server_.register_server_instance(servicename); symbol_ns_server_.register_server_instance(servicename); } void unregister_server_instance(error_code& ec) { locality_ns_server_.unregister_server_instance(ec); if (!ec) primary_ns_server_.unregister_server_instance(ec); if (!ec) component_ns_server_.unregister_server_instance(ec); if (!ec) symbol_ns_server_.unregister_server_instance(ec); } server::primary_namespace primary_ns_server_; server::locality_namespace locality_ns_server_; server::component_namespace component_ns_server_; server::symbol_namespace symbol_ns_server_; }; // }}} struct addressing_service::hosted_data_type { // {{{ hosted_data_type() : primary_ns_server_() , symbol_ns_server_() {} void register_counter_types() { server::primary_namespace::register_counter_types(); server::symbol_namespace::register_counter_types(); } void register_server_instance(char const* servicename , boost::uint32_t locality_id) { primary_ns_server_.register_server_instance(servicename, locality_id); symbol_ns_server_.register_server_instance(servicename, locality_id); } void unregister_server_instance(error_code& ec) { primary_ns_server_.unregister_server_instance(ec); if (!ec) symbol_ns_server_.unregister_server_instance(ec); } locality_namespace locality_ns_; component_namespace component_ns_; server::primary_namespace primary_ns_server_; server::symbol_namespace symbol_ns_server_; }; // }}} struct addressing_service::gva_cache_key { // {{{ gva_cache_key implementation private: typedef boost::icl::closed_interval<naming::gid_type, std::less> key_type; key_type key_; public: gva_cache_key() : key_() {} explicit gva_cache_key( naming::gid_type const& id_ , boost::uint64_t count_ = 1 ) : key_(naming::detail::get_stripped_gid(id_) , naming::detail::get_stripped_gid(id_) + (count_ - 1)) { BOOST_ASSERT(count_); } naming::gid_type get_gid() const { return boost::icl::lower(key_); } boost::uint64_t get_count() const { naming::gid_type const size = boost::icl::length(key_); BOOST_ASSERT(size.get_msb() == 0); return size.get_lsb(); } friend bool operator<( gva_cache_key const& lhs , gva_cache_key const& rhs ) { return boost::icl::exclusive_less(lhs.key_, rhs.key_); } friend bool operator==( gva_cache_key const& lhs , gva_cache_key const& rhs ) { // Is lhs in rhs? if (1 == lhs.get_count() && 1 != rhs.get_count()) return boost::icl::contains(rhs.key_, lhs.key_); // Is rhs in lhs? else if (1 != lhs.get_count() && 1 == rhs.get_count()) return boost::icl::contains(lhs.key_, lhs.key_); // Direct hit return lhs.key_ == rhs.key_; } }; // }}} struct addressing_service::gva_erase_policy { // {{{ gva_erase_policy implementation gva_erase_policy( naming::gid_type const& id , boost::uint64_t count ) : entry(id, count) {} typedef std::pair< gva_cache_key, boost::cache::entries::lfu_entry<gva> > entry_type; bool operator()( entry_type const& p ) const { return p.first == entry; } gva_cache_key entry; }; // }}} addressing_service::addressing_service( parcelset::parcelport& pp , util::runtime_configuration const& ini_ , runtime_mode runtime_type_ ) : gva_cache_(new gva_cache_type) , console_cache_(0) , max_refcnt_requests_(ini_.get_agas_max_pending_refcnt_requests()) , refcnt_requests_count_(0) , refcnt_requests_(new refcnt_requests_type) , service_type(ini_.get_agas_service_mode()) , runtime_type(runtime_type_) , caching_(ini_.get_agas_caching_mode()) , range_caching_(caching_ ? ini_.get_agas_range_caching_mode() : false) , action_priority_(ini_.get_agas_dedicated_server() ? threads::thread_priority_normal : threads::thread_priority_critical) , here_() // defer initializing this , rts_lva_(0) , state_(starting) , locality_() { // {{{ create_big_boot_barrier(pp, ini_); if (caching_) gva_cache_->reserve(ini_.get_agas_local_cache_size()); if (service_type == service_mode_bootstrap) launch_bootstrap(ini_); // now, boot the parcel port pp.run(false); } void addressing_service::initialize() { if (service_type == service_mode_bootstrap) { get_big_boot_barrier().wait(); } else { launch_hosted(); get_big_boot_barrier().wait(&hosted->primary_ns_server_, &hosted->symbol_ns_server_); } set_status(running); } // }}} naming::locality const& addressing_service::get_here() const { if (!here_) { runtime* rt = get_runtime_ptr(); BOOST_ASSERT(rt && rt->get_state() >= runtime::state_initialized && rt->get_state() < runtime::state_stopped); here_ = rt->here(); } return here_; } void* addressing_service::get_hosted_primary_ns_ptr() const { BOOST_ASSERT(0 != hosted.get()); return &hosted->primary_ns_server_; } void* addressing_service::get_hosted_symbol_ns_ptr() const { BOOST_ASSERT(0 != hosted.get()); return &hosted->symbol_ns_server_; } void* addressing_service::get_bootstrap_locality_ns_ptr() const { BOOST_ASSERT(0 != bootstrap.get()); return &bootstrap->locality_ns_server_; } void* addressing_service::get_bootstrap_primary_ns_ptr() const { BOOST_ASSERT(0 != bootstrap.get()); return &bootstrap->primary_ns_server_; } void* addressing_service::get_bootstrap_component_ns_ptr() const { BOOST_ASSERT(0 != bootstrap.get()); return &bootstrap->component_ns_server_; } void* addressing_service::get_bootstrap_symbol_ns_ptr() const { BOOST_ASSERT(0 != bootstrap.get()); return &bootstrap->symbol_ns_server_; } void addressing_service::launch_bootstrap( util::runtime_configuration const& ini_ ) { // {{{ bootstrap = boost::make_shared<bootstrap_data_type>(); runtime& rt = get_runtime(); naming::locality const ep = ini_.get_agas_locality(); naming::gid_type const here = naming::get_gid_from_locality_id(HPX_AGAS_BOOTSTRAP_PREFIX); naming::gid_type const locality_gid = bootstrap_locality_namespace_gid(); gva locality_gva(ep, server::locality_namespace::get_component_type(), 1U, static_cast<void*>(&bootstrap->locality_ns_server_)); locality_ns_addr_ = naming::address(ep, server::locality_namespace::get_component_type(), static_cast<void*>(&bootstrap->locality_ns_server_)); naming::gid_type const primary_gid = bootstrap_primary_namespace_gid(); gva primary_gva(ep, server::primary_namespace::get_component_type(), 1U, static_cast<void*>(&bootstrap->primary_ns_server_)); primary_ns_addr_ = naming::address(ep, server::primary_namespace::get_component_type(), static_cast<void*>(&bootstrap->primary_ns_server_)); naming::gid_type const component_gid = bootstrap_component_namespace_gid(); gva component_gva(ep, server::component_namespace::get_component_type(), 1U, static_cast<void*>(&bootstrap->component_ns_server_)); component_ns_addr_ = naming::address(ep, server::component_namespace::get_component_type(), static_cast<void*>(&bootstrap->component_ns_server_)); naming::gid_type const symbol_gid = bootstrap_symbol_namespace_gid(); gva symbol_gva(ep, server::symbol_namespace::get_component_type(), 1U, static_cast<void*>(&bootstrap->symbol_ns_server_)); symbol_ns_addr_ = naming::address(ep, server::symbol_namespace::get_component_type(), static_cast<void*>(&bootstrap->symbol_ns_server_)); set_local_locality(here); rt.get_config().parse("assigned locality", boost::str(boost::format("hpx.locality!=%1%") % naming::get_locality_id_from_gid(here))); boost::uint32_t num_threads = boost::lexical_cast<boost::uint32_t>( ini_.get_entry("hpx.os_threads", boost::uint32_t(1))); request locality_req(locality_ns_allocate, ep, 4, num_threads); bootstrap->locality_ns_server_.remote_service(locality_req); naming::gid_type runtime_support_gid1(here); runtime_support_gid1.set_lsb(rt.get_runtime_support_lva()); naming::gid_type runtime_support_gid2(here); runtime_support_gid2.set_lsb(boost::uint64_t(0)); gva runtime_support_address(ep , components::get_component_type<components::server::runtime_support>() , 1U, rt.get_runtime_support_lva()); request reqs[] = { request(primary_ns_bind_gid, locality_gid, locality_gva) , request(primary_ns_bind_gid, primary_gid, primary_gva) , request(primary_ns_bind_gid, component_gid, component_gva) , request(primary_ns_bind_gid, symbol_gid, symbol_gva) // , request(primary_ns_bind_gid, runtime_support_gid1, runtime_support_address) // , request(primary_ns_bind_gid, runtime_support_gid2, runtime_support_address) }; for (std::size_t i = 0; i < (sizeof(reqs) / sizeof(request)); ++i) bootstrap->primary_ns_server_.remote_service(reqs[i]); register_name("/0/agas/locality#0", here); if (is_console()) register_name("/0/locality#console", here); naming::gid_type lower, upper; get_id_range(ep, HPX_INITIAL_GID_RANGE, lower, upper); rt.get_id_pool().set_range(lower, upper); // get_big_boot_barrier().wait(); // set_status(running); } // }}} void addressing_service::launch_hosted() { // {{{ hosted = boost::make_shared<hosted_data_type>(); // get_big_boot_barrier().wait(&hosted->primary_ns_server_); // set_status(running); } // }}} void addressing_service::adjust_local_cache_size() { // {{{ // adjust the local AGAS cache size for the number of connected localities if (caching_) { util::runtime_configuration const& cfg = get_runtime().get_config(); std::size_t local_cache_size = cfg.get_agas_local_cache_size(); std::size_t local_cache_size_per_thread = cfg.get_agas_local_cache_size_per_thread(); std::size_t cache_size = (std::max)(local_cache_size, local_cache_size_per_thread * std::size_t(get_num_overall_threads())); if (cache_size > gva_cache_->capacity()) gva_cache_->reserve(cache_size); LAGAS_(info) << (boost::format( "addressing_service::adjust_local_cache_size, local_cache_size(%1%), " "local_cache_size_per_thread(%2%), cache_size(%3%)") % local_cache_size % local_cache_size_per_thread % cache_size); } } // }}} void addressing_service::set_local_locality(naming::gid_type const& g) { locality_ = g; if (is_bootstrap()) bootstrap->primary_ns_server_.set_local_locality(g); else hosted->primary_ns_server_.set_local_locality(g); } response addressing_service::service( request const& req , error_code& ec ) { // {{{ if (req.get_action_code() & primary_ns_service) { if (is_bootstrap()) return bootstrap->primary_ns_server_.service(req, ec); return hosted->primary_ns_server_.service(req, ec); } else if (req.get_action_code() & component_ns_service) { if (is_bootstrap()) return bootstrap->component_ns_server_.service(req, ec); return hosted->component_ns_.service(req, action_priority_, ec); } else if (req.get_action_code() & symbol_ns_service) { if (is_bootstrap()) return bootstrap->symbol_ns_server_.service(req, ec); return hosted->symbol_ns_server_.service(req, ec); } else if (req.get_action_code() & locality_ns_service) { if (is_bootstrap()) return bootstrap->locality_ns_server_.service(req, ec); return hosted->locality_ns_.service(req, action_priority_, ec); } HPX_THROWS_IF(ec, bad_action_code , "addressing_service::service" , "invalid action code encountered in request") return response(); } // }}} std::vector<response> addressing_service::bulk_service( std::vector<request> const& req , error_code& ec ) { // {{{ // FIXME: For now, we just send it to the primary namespace, assuming that // most requests will end up there anyways. The primary namespace will // route the requests to other namespaces (and the other namespaces would // also route requests intended for the primary namespace). if (is_bootstrap()) return bootstrap->primary_ns_server_.bulk_service(req, ec); return hosted->primary_ns_server_.bulk_service(req, ec); } // }}} bool addressing_service::register_locality( naming::locality const& ep , naming::gid_type& prefix , boost::uint32_t num_threads , error_code& ec ) { // {{{ try { request req(locality_ns_allocate, ep, 0, num_threads, prefix); response rep; if (is_bootstrap()) rep = bootstrap->locality_ns_server_.service(req, ec); else rep = hosted->locality_ns_.service(req, action_priority_, ec); if (ec || (success != rep.get_status())) return false; prefix = naming::get_gid_from_locality_id(rep.get_locality_id()); return true; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::register_locality"); return false; } } // }}} boost::uint32_t addressing_service::resolve_locality( naming::locality const& ep , error_code& ec ) { // {{{ try { request req(locality_ns_resolve_locality, ep); response rep; if (is_bootstrap()) rep = bootstrap->locality_ns_server_.service(req, ec); else rep = hosted->locality_ns_.service(req, action_priority_, ec); if (ec || (success != rep.get_status())) return 0; return rep.get_locality_id(); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::resolve_locality"); return 0; } } // }}} // TODO: We need to ensure that the locality isn't unbound while it still holds // referenced objects. bool addressing_service::unregister_locality( naming::locality const& ep , error_code& ec ) { // {{{ try { request req(locality_ns_free, ep); response rep; if (is_bootstrap()) bootstrap->unregister_server_instance(ec); else hosted->unregister_server_instance(ec); if (ec) return false; if (is_bootstrap()) rep = bootstrap->locality_ns_server_.service(req, ec); else rep = hosted->locality_ns_.service(req, action_priority_, ec); if (ec || (success != rep.get_status())) return false; return true; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::unregister_locality"); return false; } } // }}} bool addressing_service::get_console_locality( naming::gid_type& prefix , error_code& ec ) { // {{{ try { if (get_status() != running) { if (&ec != &throws) ec = make_success_code(); return false; } if (is_console()) { prefix = get_local_locality(); if (&ec != &throws) ec = make_success_code(); return true; } { mutex_type::scoped_lock lock(console_cache_mtx_); if (console_cache_) { prefix = naming::get_gid_from_locality_id(console_cache_); if (&ec != &throws) ec = make_success_code(); return true; } } std::string key("/0/locality#console"); request req(symbol_ns_resolve, key); response rep; if (is_bootstrap()) rep = bootstrap->symbol_ns_server_.service(req, ec); else rep = stubs::symbol_namespace::service(key, req, action_priority_, ec); if (!ec && (rep.get_gid() != naming::invalid_gid) && (rep.get_status() == success)) { prefix = rep.get_gid(); boost::uint32_t console = naming::get_locality_id_from_gid(prefix); { mutex_type::scoped_lock lock(console_cache_mtx_); if (!console_cache_) { console_cache_ = console; } else { BOOST_ASSERT(console_cache_ == console); } } LAS_(debug) << ( boost::format("caching console locality, prefix(%1%)") % console); return true; } return false; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::get_console_locality"); return false; } } // }}} bool addressing_service::get_localities( std::vector<naming::gid_type>& locality_ids , components::component_type type , error_code& ec ) { // {{{ get_locality_ids implementation try { if (type != components::component_invalid) { request req(component_ns_resolve_id, type); response rep; if (is_bootstrap()) rep = bootstrap->component_ns_server_.service(req, ec); else rep = hosted->component_ns_.service(req, action_priority_, ec); if (ec || (success != rep.get_status())) return false; const std::vector<boost::uint32_t> p = rep.get_localities(); if (!p.size()) return false; locality_ids.clear(); for (std::size_t i = 0; i < p.size(); ++i) locality_ids.push_back(naming::get_gid_from_locality_id(p[i])); return true; } else { request req(locality_ns_localities); response rep; if (is_bootstrap()) rep = bootstrap->locality_ns_server_.service(req, ec); else rep = hosted->locality_ns_.service(req, action_priority_, ec); if (ec || (success != rep.get_status())) return false; const std::vector<boost::uint32_t> p = rep.get_localities(); if (!p.size()) return false; locality_ids.clear(); for (std::size_t i = 0; i < p.size(); ++i) locality_ids.push_back(naming::get_gid_from_locality_id(p[i])); return true; } } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::get_locality_ids"); return false; } } // }}} lcos::future<std::vector<naming::locality> > addressing_service::get_resolved_localities_async() { // {{{ get_resolved_localities_async implementation naming::id_type const target = bootstrap_locality_namespace_id(); request req(locality_ns_resolved_localities); return stubs::locality_namespace::service_async< std::vector<naming::locality> >(target, req); } //}}} /////////////////////////////////////////////////////////////////////////////// boost::uint32_t addressing_service::get_num_localities( components::component_type type , error_code& ec ) { // {{{ get_num_localities implementation try { if (type == components::component_invalid) { request req(locality_ns_num_localities, type); response rep; if (is_bootstrap()) rep = bootstrap->locality_ns_server_.service(req, ec); else rep = hosted->locality_ns_.service(req, action_priority_, ec); if (ec || (success != rep.get_status())) return boost::uint32_t(-1); return rep.get_num_localities(); } request req(component_ns_num_localities, type); response rep; if (is_bootstrap()) rep = bootstrap->component_ns_server_.service(req, ec); else rep = hosted->component_ns_.service(req, action_priority_, ec); if (ec || (success != rep.get_status())) return boost::uint32_t(-1); return rep.get_num_localities(); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::get_num_localities"); } return boost::uint32_t(-1); } // }}} lcos::future<boost::uint32_t> addressing_service::get_num_localities_async( components::component_type type ) { // {{{ get_num_localities implementation if (type == components::component_invalid) { naming::id_type const target = bootstrap_locality_namespace_id(); request req(locality_ns_num_localities, type); return stubs::locality_namespace::service_async<boost::uint32_t>(target, req); } naming::id_type const target = bootstrap_component_namespace_id(); request req(component_ns_num_localities, type); return stubs::component_namespace::service_async<boost::uint32_t>(target, req); } // }}} /////////////////////////////////////////////////////////////////////////////// boost::uint32_t addressing_service::get_num_overall_threads( error_code& ec ) { // {{{ get_num_overall_threads implementation try { request req(locality_ns_num_threads); response rep; if (is_bootstrap()) rep = bootstrap->locality_ns_server_.service(req, ec); else rep = hosted->locality_ns_.service(req, action_priority_, ec); if (ec || (success != rep.get_status())) return boost::uint32_t(0); return rep.get_num_overall_threads(); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::get_num_overall_threads"); } return boost::uint32_t(0); } // }}} lcos::future<boost::uint32_t> addressing_service::get_num_overall_threads_async() { // {{{ naming::id_type const target = bootstrap_locality_namespace_id(); request req(locality_ns_num_threads); return stubs::locality_namespace::service_async<boost::uint32_t>(target, req); } // }}} std::vector<boost::uint32_t> addressing_service::get_num_threads( error_code& ec ) { // {{{ get_num_threads implementation try { request req(locality_ns_num_threads); response rep; if (is_bootstrap()) rep = bootstrap->locality_ns_server_.service(req, ec); else rep = hosted->locality_ns_.service(req, action_priority_, ec); if (ec || (success != rep.get_status())) return std::vector<boost::uint32_t>(); return rep.get_num_threads(); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::get_num_threads"); } return std::vector<boost::uint32_t>(); } // }}} lcos::future<std::vector<boost::uint32_t> > addressing_service::get_num_threads_async() { // {{{ naming::id_type const target = bootstrap_locality_namespace_id(); request req(locality_ns_num_threads); return stubs::locality_namespace::service_async< std::vector<boost::uint32_t> >(target, req); } // }}} /////////////////////////////////////////////////////////////////////////////// components::component_type addressing_service::get_component_id( std::string const& name , error_code& ec ) { /// {{{ try { request req(component_ns_bind_name, name); response rep; if (is_bootstrap()) rep = bootstrap->component_ns_server_.service(req, ec); else rep = hosted->component_ns_.service(req, action_priority_, ec); if (ec || (success != rep.get_status())) return components::component_invalid; return rep.get_component_type(); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::get_component_id"); return components::component_invalid; } } // }}} void addressing_service::iterate_types( iterate_types_function_type const& f , error_code& ec ) { // {{{ try { request req(component_ns_iterate_types, f); if (is_bootstrap()) bootstrap->component_ns_server_.service(req, ec); else hosted->component_ns_.service(req, action_priority_, ec); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::iterate_types"); } } // }}} std::string addressing_service::get_component_type_name( components::component_type id , error_code& ec ) { // {{{ try { request req(component_ns_get_component_type_name, id); response rep; if (is_bootstrap()) rep = bootstrap->component_ns_server_.service(req, ec); else rep = hosted->component_ns_.service(req, action_priority_, ec); return rep.get_component_typename(); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::iterate_types"); } return "<unknown>"; } // }}} components::component_type addressing_service::register_factory( boost::uint32_t prefix , std::string const& name , error_code& ec ) { // {{{ try { request req(component_ns_bind_prefix, name, prefix); response rep; if (is_bootstrap()) rep = bootstrap->component_ns_server_.service(req, ec); else rep = hosted->component_ns_.service(req, action_priority_, ec); if (ec || (success != rep.get_status() && no_success != rep.get_status())) return components::component_invalid; return rep.get_component_type(); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::register_factory"); return components::component_invalid; } } // }}} /////////////////////////////////////////////////////////////////////////////// bool addressing_service::get_id_range( boost::uint64_t count , naming::gid_type& lower_bound , naming::gid_type& upper_bound , error_code& ec ) { // {{{ get_id_range implementation try { // naming::locality() is an obsolete, dummy argument request req(primary_ns_allocate, naming::locality(), count, boost::uint32_t(-1)); response rep; if (is_bootstrap()) rep = bootstrap->primary_ns_server_.service(req, ec); else rep = hosted->primary_ns_server_.service(req, ec); error const s = rep.get_status(); if (ec || (success != s && repeated_request != s)) return false; lower_bound = rep.get_lower_bound(); upper_bound = rep.get_upper_bound(); return success == s; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::get_id_range"); return false; } } // }}} bool addressing_service::bind_range( naming::gid_type const& lower_id , boost::uint64_t count , naming::address const& baseaddr , boost::uint64_t offset , error_code& ec ) { // {{{ bind_range implementation try { naming::locality const& ep = baseaddr.locality_; // Create a global virtual address from the legacy calling convention // parameters. gva const g(ep, baseaddr.type_, count, baseaddr.address_, offset); request req(primary_ns_bind_gid, lower_id, g); response rep; if (is_bootstrap()) rep = bootstrap->primary_ns_server_.service(req, ec); else rep = hosted->primary_ns_server_.service(req, ec); error const s = rep.get_status(); if (ec || (success != s && repeated_request != s)) return false; if (caching_) { if (range_caching_) // Put the range into the cache. update_cache_entry(lower_id, g, ec); else { // Only put the first GID in the range into the cache. gva const first_g = g.resolve(lower_id, lower_id); update_cache_entry(lower_id, first_g, ec); } } if (ec) return false; return true; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::bind_range"); return false; } } // }}} bool addressing_service::unbind_range( naming::gid_type const& lower_id , boost::uint64_t count , naming::address& addr , error_code& ec ) { // {{{ unbind_range implementation try { request req(primary_ns_unbind_gid, lower_id, count); response rep; if (is_bootstrap()) rep = bootstrap->primary_ns_server_.service(req, ec); else rep = hosted->primary_ns_server_.service(req, ec); if (ec || (success != rep.get_status())) return false; // I'm afraid that this will break the first form of paged caching, // so it's commented out for now. //cache_mutex_type::scoped_lock lock(hosted->gva_cache_mtx_); //gva_erase_policy ep(lower_id, count); //hosted->gva_cache_->erase(ep); gva const& gaddr = rep.get_gva(); addr.locality_ = gaddr.endpoint; addr.type_ = gaddr.type; addr.address_ = gaddr.lva(); return true; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::unbind_range"); return false; } } // }}} /// This function will test whether the given address refers to an object /// living on the locality of the caller. We rely completely on the local AGAS /// cache and local AGAS instance, assuming that everything which is not in /// the cache is not local. bool addressing_service::is_local_address( naming::gid_type const& id , naming::address& addr , error_code& ec ) { // Resolve the address of the GID. // NOTE: We do not throw here for a reason; it is perfectly valid for the // GID to not be found in the local AGAS instance. if (!resolve(id, addr, ec) || ec) return false; return addr.locality_ == get_here(); } bool addressing_service::is_local_address_cached( naming::gid_type const& id , naming::address& addr , error_code& ec ) { // Try to resolve the address of the GID. // NOTE: We do not throw here for a reason; it is perfectly valid for the // GID to not be found in the cache. if (!resolve_cached(id, addr, ec) || ec) return false; return addr.locality_ == get_here(); } // Return true if at least one address is local. bool addressing_service::is_local_address( naming::gid_type const* gids , naming::address* addrs , std::size_t size , boost::dynamic_bitset<>& locals , error_code& ec ) { // Try the cache if (caching_) { bool all_resolved = resolve_cached(gids, addrs, size, locals, ec); if (ec) return false; if (all_resolved) return locals.any(); // all destinations resolved } if (!resolve_full(gids, addrs, size, locals, ec) || ec) return false; return locals.any(); } bool addressing_service::is_local_lva_encoded_address( boost::uint64_t msb ) { // NOTE: This should still be migration safe. return msb == get_local_locality().get_msb(); } bool addressing_service::resolve_locally_known_addresses( naming::gid_type const& id , naming::address& addr ) { // LVA-encoded GIDs (located on this machine) boost::uint64_t lsb = id.get_lsb(); boost::uint64_t msb = naming::detail::strip_credit_from_gid(id.get_msb()); if (is_local_lva_encoded_address(msb)) { addr.locality_ = get_here(); // An LSB of 0 references the runtime support component if (!rts_lva_) rts_lva_ = get_runtime().get_runtime_support_lva(); if (0 == lsb || lsb == rts_lva_) { addr.type_ = components::component_runtime_support; addr.address_ = rts_lva_; } else { addr.type_ = components::component_memory; addr.address_ = lsb; } return true; } // authoritative AGAS component address resolution if (HPX_AGAS_LOCALITY_NS_MSB == msb && HPX_AGAS_LOCALITY_NS_LSB == lsb) { addr = locality_ns_addr_; return true; } if (HPX_AGAS_PRIMARY_NS_MSB == msb && HPX_AGAS_PRIMARY_NS_LSB == lsb) { addr = primary_ns_addr_; return true; } if (HPX_AGAS_COMPONENT_NS_MSB == msb && HPX_AGAS_COMPONENT_NS_LSB == lsb) { addr = component_ns_addr_; return true; } if (HPX_AGAS_SYMBOL_NS_MSB == msb && HPX_AGAS_SYMBOL_NS_LSB == lsb) { addr = symbol_ns_addr_; return true; } return false; } // }}} bool addressing_service::resolve_full( naming::gid_type const& id , naming::address& addr , error_code& ec ) { // {{{ resolve implementation try { // special cases if (resolve_locally_known_addresses(id, addr)) return true; request req(primary_ns_resolve_gid, id); response rep; if (is_bootstrap()) rep = bootstrap->primary_ns_server_.service(req, ec); else rep = hosted->primary_ns_server_.service(req, ec); if (ec || (success != rep.get_status())) return false; // Resolve the gva to the real resolved address (which is just a gva // with as fully resolved LVA and an offset of zero). gva const g = rep.get_gva().resolve(id, rep.get_base_gid()); addr.locality_ = g.endpoint; addr.type_ = g.type; addr.address_ = g.lva(); if (caching_) { if (range_caching_) // Put the gva range into the cache. update_cache_entry(rep.get_base_gid(), rep.get_gva(), ec); else // Put the fully resolved gva into the cache. update_cache_entry(id, g, ec); } if (ec) return false; if (&ec != &throws) ec = make_success_code(); return true; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::resolve_full"); return false; } } // }}} bool addressing_service::resolve_cached( naming::gid_type const& id , naming::address& addr , error_code& ec ) { // {{{ resolve_cached implementation // special cases if (resolve_locally_known_addresses(id, addr)) return true; if (ec) return false; // If caching is disabled, bail if (!caching_) { if (&ec != &throws) ec = make_success_code(); return false; } // first look up the requested item in the cache gva_cache_key k(id); gva_cache_key idbase; gva_cache_type::entry_type e; cache_mutex_type::scoped_lock lock(gva_cache_mtx_); // Check if the entry is currently in the cache if (gva_cache_->get_entry(k, idbase, e)) { const boost::uint64_t id_msb = naming::detail::strip_credit_from_gid(id.get_msb()); if (HPX_UNLIKELY(id_msb != idbase.get_gid().get_msb())) { HPX_THROWS_IF(ec, internal_server_error , "addressing_service::resolve_cached" , "bad entry in cache, MSBs of GID base and GID do not match"); return false; } gva const& g = e.get(); addr.locality_ = g.endpoint; addr.type_ = g.type; addr.address_ = g.lva(id, idbase.get_gid()); lock.unlock(); if (&ec != &throws) ec = make_success_code(); LAS_(debug) << ( boost::format( "cache hit for address %1%, lva %2% (base %3%, lva %4%)") % id % reinterpret_cast<void*>(addr.address_) % idbase.get_gid() % reinterpret_cast<void*>(g.lva())); return true; } if (&ec != &throws) ec = make_success_code(); LAS_(debug) << (boost::format("cache miss for address %1%") % id); return false; } // }}} hpx::future<naming::address> addressing_service::resolve_async( naming::gid_type const& gid ) { // Try the cache. if (caching_) { naming::address addr; error_code ec; if (resolve_cached(gid, addr, ec)) return make_ready_future(addr); if (ec) { return make_error_future<naming::address>( hpx::detail::access_exception(ec)); } } // now try the AGAS service return resolve_full_async(gid); } naming::address addressing_service::resolve_full_postproc( future<response>& f, naming::gid_type const& id ) { naming::address addr; response rep = f.get(); if (success != rep.get_status()) { HPX_THROW_EXCEPTION(bad_parameter, "addressing_service::resolve_full_postproc", "could no resolve global id"); return addr; } // Resolve the gva to the real resolved address (which is just a gva // with as fully resolved LVA and an offset of zero). gva const g = rep.get_gva().resolve(id, rep.get_base_gid()); addr.locality_ = g.endpoint; addr.type_ = g.type; addr.address_ = g.lva(); if (caching_) { if (range_caching_) // Put the gva range into the cache. update_cache_entry(rep.get_base_gid(), rep.get_gva()); else // Put the fully resolved gva into the cache. update_cache_entry(id, g); } return addr; } hpx::future<naming::address> addressing_service::resolve_full_async( naming::gid_type const& gid ) { // handle special cases naming::address addr; if (resolve_locally_known_addresses(gid, addr)) return make_ready_future(addr); // ask server request req(primary_ns_resolve_gid, gid); naming::id_type target( stubs::primary_namespace::get_service_instance(gid) , naming::id_type::unmanaged); using util::placeholders::_1; future<response> f = stubs::primary_namespace::service_async<response>(target, req); return f.then(util::bind(&addressing_service::resolve_full_postproc, this, _1, gid)); } /////////////////////////////////////////////////////////////////////////////// bool addressing_service::resolve_full( naming::gid_type const* gids , naming::address* addrs , std::size_t count , boost::dynamic_bitset<>& locals , error_code& ec ) { locals.resize(count); try { std::vector<request> reqs; reqs.reserve(count); // special cases for (std::size_t i = 0; i != count; ++i) { if (!addrs[i]) { bool is_local = resolve_locally_known_addresses(gids[i], addrs[i]); locals.set(i, is_local); } else { locals.set(i, true); } if (!addrs[i] && !locals.test(i)) { reqs.push_back(request(primary_ns_resolve_gid, gids[i])); } } if (reqs.empty()) { // all gids have been resolved if (&ec != &throws) ec = make_success_code(); return true; } std::vector<response> reps; if (is_bootstrap()) reps = bootstrap->primary_ns_server_.bulk_service(reqs, ec); else reps = hosted->primary_ns_server_.bulk_service(reqs, ec); if (ec) return false; std::size_t j = 0; for (std::size_t i = 0; i != count; ++i) { if (addrs[i] || locals.test(i)) continue; BOOST_ASSERT(j < reps.size()); if (success != reps[j].get_status()) return false; // Resolve the gva to the real resolved address (which is just a gva // with as fully resolved LVA and an offset of zero). gva const g = reps[j].get_gva().resolve(gids[i], reps[j].get_base_gid()); naming::address& addr = addrs[i]; addr.locality_ = g.endpoint; addr.type_ = g.type; addr.address_ = g.lva(); if (caching_) { if (range_caching_) { // Put the gva range into the cache. update_cache_entry(reps[j].get_base_gid(), reps[j].get_gva(), ec); } else { // Put the fully resolved gva into the cache. update_cache_entry(gids[i], g, ec); } } if (ec) return false; ++j; } if (&ec != &throws) ec = make_success_code(); return true; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::resolve_full"); return false; } } bool addressing_service::resolve_cached( naming::gid_type const* gids , naming::address* addrs , std::size_t count , boost::dynamic_bitset<>& locals , error_code& ec ) { locals.resize(count); std::size_t resolved = 0; for (std::size_t i = 0; i != count; ++i) { if (!addrs[i] && !locals.test(i)) { bool was_resolved = resolve_cached(gids[i], addrs[i], ec); if (ec) return false; if (was_resolved) ++resolved; if (addrs[i].locality_ == get_here()) locals.set(i, true); } else if (addrs[i].locality_ == get_here()) { ++resolved; locals.set(i, true); } } return resolved == count; // returns whether all have been resolved } /////////////////////////////////////////////////////////////////////////////// void addressing_service::route( parcelset::parcel const& p , HPX_STD_FUNCTION<void(boost::system::error_code const&, std::size_t)> const& f ) { // compose request request req(primary_ns_route, p); naming::gid_type const* gids = p.get_destinations(); naming::id_type const target( stubs::primary_namespace::get_service_instance(gids[0]) , naming::id_type::unmanaged); typedef server::primary_namespace::service_action action_type; // Determine whether the gid is local or remote naming::address addr; if (is_local_address(target.get_gid(), addr)) { // route through the local AGAS service instance applier::detail::apply_l_p<action_type>(addr, action_priority_, req); f(boost::system::error_code(), 0); // invoke callback return; } // apply remotely, route through main AGAS service if the destination is // a service instance if (!addr) { if (stubs::primary_namespace::is_service_instance(gids[0]) || stubs::symbol_namespace::is_service_instance(gids[0])) { // construct wrapper parcel parcelset::parcel route_p(bootstrap_primary_namespace_gid() , primary_ns_addr_ , new hpx::actions::transfer_action<action_type>(action_priority_, req)); // send to the main AGAS instance for routing hpx::applier::get_applier().get_parcel_handler().put_parcel(route_p, f); return; } } // apply directly as we have the resolved destination address applier::detail::apply_r_p_cb<action_type>(addr, target, action_priority_ , f, req); } /////////////////////////////////////////////////////////////////////////////// void addressing_service::incref_apply( naming::gid_type const& lower , naming::gid_type const& upper , boost::int64_t credit ) { // {{{ incref implementation if (HPX_UNLIKELY(0 >= credit)) { HPX_THROW_EXCEPTION(bad_parameter , "addressing_service::incref_apply" , boost::str(boost::format("invalid credit count of %1%") % credit)); return; } request req(primary_ns_change_credit_non_blocking, lower, upper, credit); naming::id_type target( stubs::primary_namespace::get_service_instance(lower) , naming::id_type::unmanaged); stubs::primary_namespace::service_non_blocking(target, req, action_priority_); } // }}} /////////////////////////////////////////////////////////////////////////////// lcos::future<bool> addressing_service::incref_async( naming::gid_type const& lower , naming::gid_type const& upper , boost::int64_t credit ) { // {{{ incref implementation if (HPX_UNLIKELY(0 >= credit)) { HPX_THROW_EXCEPTION(bad_parameter , "addressing_service::incref_async" , boost::str(boost::format("invalid credit count of %1%") % credit)); return lcos::future<bool>(); } request req(primary_ns_change_credit_non_blocking, lower, upper, credit); naming::id_type target( stubs::primary_namespace::get_service_instance(lower) , naming::id_type::unmanaged); return stubs::primary_namespace::service_async<bool>(target, req); } // }}} /////////////////////////////////////////////////////////////////////////////// void addressing_service::decref( naming::gid_type const& lower , naming::gid_type const& upper , boost::int64_t credit , error_code& ec ) { // {{{ decref implementation if (HPX_UNLIKELY(0 == threads::get_self_ptr())) { // reschedule this call as an HPX thread threads::register_thread_nullary( HPX_STD_BIND(&addressing_service::decref, this, lower, upper, credit, boost::ref(throws)), "addressing_service::decref"); return; } if (HPX_UNLIKELY(0 >= credit)) { HPX_THROWS_IF(ec, bad_parameter , "addressing_service::decref" , boost::str(boost::format("invalid credit count of %1%") % credit)); return; } try { mutex_type::scoped_lock l(refcnt_requests_mtx_); refcnt_requests_->apply(lower, upper , util::incrementer<boost::int64_t>(-credit)); send_refcnt_requests(l, ec); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::decref"); } } // }}} /////////////////////////////////////////////////////////////////////////////// bool addressing_service::register_name( std::string const& name , naming::gid_type const& id , error_code& ec ) { // {{{ try { request req(symbol_ns_bind, name, id); response rep; if (is_bootstrap() && name.size() >= 2 && name[1] == '0' && name[0] == '/') rep = bootstrap->symbol_ns_server_.service(req, ec); else rep = stubs::symbol_namespace::service(name, req, action_priority_, ec); return !ec && (success == rep.get_status()); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::register_name"); return false; } } // }}} static void correct_credit_on_failure(future<bool> f, naming::id_type id, boost::uint16_t mutable_gid_credit, boost::uint16_t new_gid_credit) { // Return the credit to the GID if the operation failed if (f.has_exception() && mutable_gid_credit != 0) naming::detail::add_credit_to_gid(id.get_gid(), new_gid_credit); } lcos::future<bool> addressing_service::register_name_async( std::string const& name , naming::id_type const& id ) { // {{{ // We need to modify the reference count. naming::gid_type& mutable_gid = const_cast<naming::id_type&>(id).get_gid(); naming::gid_type new_gid; // FIXME: combine incref with register_name, if needed if (naming::detail::get_credit_from_gid(mutable_gid) != 0) { new_gid = naming::detail::split_credits_for_gid(mutable_gid); // Credit exhaustion - we need to get more. if (0 == naming::detail::get_credit_from_gid(new_gid)) { BOOST_ASSERT(1 == naming::detail::get_credit_from_gid(mutable_gid)); naming::get_agas_client().incref(new_gid, 2 * HPX_INITIAL_GLOBALCREDIT); naming::detail::add_credit_to_gid(new_gid, HPX_INITIAL_GLOBALCREDIT); naming::detail::add_credit_to_gid(mutable_gid, HPX_INITIAL_GLOBALCREDIT); } } else { new_gid = mutable_gid; } request req(symbol_ns_bind, name, new_gid); future<bool> f = stubs::symbol_namespace::service_async<bool>( name, req, action_priority_); using HPX_STD_PLACEHOLDERS::_1; f.then( HPX_STD_BIND(correct_credit_on_failure, _1, id, naming::detail::get_credit_from_gid(mutable_gid), naming::detail::get_credit_from_gid(new_gid)) ); return f; } // }}} /////////////////////////////////////////////////////////////////////////////// bool addressing_service::unregister_name( std::string const& name , naming::gid_type& id , error_code& ec ) { // {{{ try { request req(symbol_ns_unbind, name); response rep; if (is_bootstrap() && name.size() >= 2 && name[1] == '0' && name[0] == '/') rep = bootstrap->symbol_ns_server_.service(req, ec); else rep = stubs::symbol_namespace::service(name, req, action_priority_, ec); if (!ec && (success == rep.get_status())) { id = rep.get_gid(); return true; } return false; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::unregister_name"); return false; } } // }}} lcos::future<naming::id_type> addressing_service::unregister_name_async( std::string const& name ) { // {{{ request req(symbol_ns_unbind, name); return stubs::symbol_namespace::service_async<naming::id_type>( name, req, action_priority_); } // }}} /////////////////////////////////////////////////////////////////////////////// bool addressing_service::resolve_name( std::string const& name , naming::gid_type& id , error_code& ec ) { // {{{ try { request req(symbol_ns_resolve, name); response rep; if (is_bootstrap() && name.size() >= 2 && name[1] == '0' && name[0] == '/') rep = bootstrap->symbol_ns_server_.service(req, ec); else rep = stubs::symbol_namespace::service(name, req, action_priority_, ec); if (!ec && (success == rep.get_status())) { id = rep.get_gid(); return true; } else return false; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::resolve_name"); return false; } } // }}} lcos::future<naming::id_type> addressing_service::resolve_name_async( std::string const& name ) { // {{{ request req(symbol_ns_resolve, name); return stubs::symbol_namespace::service_async<naming::id_type>( name, req, action_priority_); } // }}} }} #if !defined(HPX_GCC_VERSION) || (HPX_GCC_VERSION > 40400) /////////////////////////////////////////////////////////////////////////////// typedef hpx::agas::server::symbol_namespace::service_action symbol_namespace_service_action; HPX_REGISTER_BROADCAST_ACTION_DECLARATION(symbol_namespace_service_action) HPX_REGISTER_BROADCAST_ACTION(symbol_namespace_service_action) #endif namespace hpx { namespace agas { /// Invoke the supplied hpx::function for every registered global name bool addressing_service::iterate_ids( iterate_names_function_type const& f , error_code& ec ) { // {{{ try { request req(symbol_ns_iterate_names, f); #if !defined(HPX_GCC_VERSION) || (HPX_GCC_VERSION > 40400) symbol_namespace_service_action act; lcos::broadcast(act, hpx::find_all_localities(), req).get(ec); #else BOOST_FOREACH(naming::id_type id, hpx::find_all_localities()) { naming::id_type service_id( stubs::symbol_namespace::get_service_instance(id.get_gid(), ec), naming::id_type::unmanaged); if (ec) return false; stubs::symbol_namespace::service(service_id, req, action_priority_, ec); if (ec) return false; } #endif return !ec; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::iterate_ids"); return false; } } // }}} void addressing_service::insert_cache_entry( naming::gid_type const& gid , gva const& g , error_code& ec ) { // {{{ if (!caching_) { // If caching is disabled, we silently pretend success. return; } try { // The entry in AGAS for a locality's RTS component has a count of 0, // so we convert it to 1 here so that the cache doesn't break. const boost::uint64_t count = (g.count ? g.count : 1); LAS_(debug) << ( boost::format("inserting entry into cache, gid(%1%), count(%2%)") % gid % count); cache_mutex_type::scoped_lock lock(gva_cache_mtx_); const gva_cache_key key(gid, count); if (!gva_cache_->insert(key, g)) { // Figure out who we collided with. gva_cache_key idbase; gva_cache_type::entry_type e; if (!gva_cache_->get_entry(key, idbase, e)) // This is impossible under sane conditions. HPX_THROWS_IF(ec, invalid_data , "addressing_service::insert_cache_entry" , "data corruption or lock error occurred in cache"); LAS_(warning) << ( boost::format( "aborting insert due to key collision in cache, " "new_gid(%1%), new_count(%2%), old_gid(%3%), old_count(%4%)" ) % gid % count % idbase.get_gid() % idbase.get_count()); } if (&ec != &throws) ec = make_success_code(); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::insert_cache_entry"); } } // }}} bool check_for_collisions( addressing_service::gva_cache_key const& new_key , addressing_service::gva_cache_key const& old_key ) { return (new_key.get_gid() == old_key.get_gid()) && (new_key.get_count() == old_key.get_count()); } void addressing_service::update_cache_entry( naming::gid_type const& gid , gva const& g , error_code& ec ) { // {{{ if (!caching_) { // If caching is disabled, we silently pretend success. return; } try { // The entry in AGAS for a locality's RTS component has a count of 0, // so we convert it to 1 here so that the cache doesn't break. const boost::uint64_t count = (g.count ? g.count : 1); LAS_(debug) << ( boost::format( "updating cache entry: gid(%1%), count(%2%)" ) % gid % count); cache_mutex_type::scoped_lock lock(gva_cache_mtx_); const gva_cache_key key(gid, count); if (!gva_cache_->update_if(key, g, check_for_collisions)) { // Figure out who we collided with. gva_cache_key idbase; gva_cache_type::entry_type e; if (!gva_cache_->get_entry(key, idbase, e)) { // This is impossible under sane conditions. HPX_THROWS_IF(ec, invalid_data , "addressing_service::update_cache_entry" , "data corruption or lock error occurred in cache"); return; } LAS_(warning) << ( boost::format( "aborting update due to key collision in cache, " "new_gid(%1%), new_count(%2%), old_gid(%3%), old_count(%4%)" ) % gid % count % idbase.get_gid() % idbase.get_count()); } if (&ec != &throws) ec = make_success_code(); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::update_cache_entry"); } } // }}} void addressing_service::clear_cache( error_code& ec ) { // {{{ if (!caching_) { // If caching is disabled, we silently pretend success. return; } try { LAS_(warning) << "clearing cache"; cache_mutex_type::scoped_lock lock(gva_cache_mtx_); gva_cache_->clear(); if (&ec != &throws) ec = make_success_code(); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::clear_cache"); } } // }}} namespace detail { // get action code from counter type namespace_action_code retrieve_action_code( std::string const& name , error_code& ec ) { performance_counters::counter_path_elements p; performance_counters::get_counter_path_elements(name, p, ec); if (ec) return invalid_request; if (p.objectname_ != "agas") { HPX_THROWS_IF(ec, bad_parameter, "retrieve_action_code", "unknown performance counter (unrelated to AGAS)"); return invalid_request; } // component_ns for (std::size_t i = 0; i != num_component_namespace_services; ++i) { if (p.countername_ == component_namespace_services[i].name_) return component_namespace_services[i].code_; } // locality_ns for (std::size_t i = 0; i != num_locality_namespace_services; ++i) { if (p.countername_ == locality_namespace_services[i].name_) return locality_namespace_services[i].code_; } // primary_ns for (std::size_t i = 0; i != num_primary_namespace_services; ++i) { if (p.countername_ == primary_namespace_services[i].name_) return primary_namespace_services[i].code_; } // symbol_ns for (std::size_t i = 0; i != num_symbol_namespace_services; ++i) { if (p.countername_ == symbol_namespace_services[i].name_) return symbol_namespace_services[i].code_; } HPX_THROWS_IF(ec, bad_parameter, "retrieve_action_code", "unknown performance counter (unrelated to AGAS)"); return invalid_request; } // get service action code from counter type namespace_action_code retrieve_action_service_code( std::string const& name , error_code& ec ) { performance_counters::counter_path_elements p; performance_counters::get_counter_path_elements(name, p, ec); if (ec) return invalid_request; if (p.objectname_ != "agas") { HPX_THROWS_IF(ec, bad_parameter, "retrieve_action_service_code", "unknown performance counter (unrelated to AGAS)"); return invalid_request; } // component_ns for (std::size_t i = 0; i != num_component_namespace_services; ++i) { if (p.countername_ == component_namespace_services[i].name_) return component_namespace_services[i].service_code_; } // locality_ns for (std::size_t i = 0; i != num_locality_namespace_services; ++i) { if (p.countername_ == locality_namespace_services[i].name_) return locality_namespace_services[i].service_code_; } // primary_ns for (std::size_t i = 0; i != num_primary_namespace_services; ++i) { if (p.countername_ == primary_namespace_services[i].name_) return primary_namespace_services[i].service_code_; } // symbol_ns for (std::size_t i = 0; i != num_symbol_namespace_services; ++i) { if (p.countername_ == symbol_namespace_services[i].name_) return symbol_namespace_services[i].service_code_; } HPX_THROWS_IF(ec, bad_parameter, "retrieve_action_service_code", "unknown performance counter (unrelated to AGAS)"); return invalid_request; } } bool addressing_service::retrieve_statistics_counter( std::string const& name , naming::gid_type& counter , error_code& ec ) { try { // retrieve counter type namespace_action_code service_code = detail::retrieve_action_service_code(name, ec); if (invalid_request == service_code) return false; // compose request request req(service_code, name); response rep; if (is_bootstrap() && name.size() >= 2 && name[1] == '0' && name[0] == '/') rep = bootstrap->symbol_ns_server_.service(req, ec); else rep = stubs::symbol_namespace::service(name, req, action_priority_, ec); if (!ec && (success == rep.get_status())) { counter = rep.get_statistics_counter(); return true; } return false; } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::query_statistics"); return false; } } /////////////////////////////////////////////////////////////////////////////// // Helper functions to access the current cache statistics std::size_t addressing_service::get_cache_hits(bool reset) { cache_mutex_type::scoped_lock lock(gva_cache_mtx_); return gva_cache_->get_statistics().hits(reset); } std::size_t addressing_service::get_cache_misses(bool reset) { cache_mutex_type::scoped_lock lock(gva_cache_mtx_); return gva_cache_->get_statistics().misses(reset); } std::size_t addressing_service::get_cache_evictions(bool reset) { cache_mutex_type::scoped_lock lock(gva_cache_mtx_); return gva_cache_->get_statistics().evictions(reset); } std::size_t addressing_service::get_cache_insertions(bool reset) { cache_mutex_type::scoped_lock lock(gva_cache_mtx_); return gva_cache_->get_statistics().insertions(reset); } /// Install performance counter types exposing properties from the local cache. void addressing_service::register_counter_types() { // {{{ // install HPX_STD_FUNCTION<boost::int64_t(bool)> cache_hits( boost::bind(&addressing_service::get_cache_hits, this, ::_1)); HPX_STD_FUNCTION<boost::int64_t(bool)> cache_misses( boost::bind(&addressing_service::get_cache_misses, this, ::_1)); HPX_STD_FUNCTION<boost::int64_t(bool)> cache_evictions( boost::bind(&addressing_service::get_cache_evictions, this, ::_1)); HPX_STD_FUNCTION<boost::int64_t(bool)> cache_insertions( boost::bind(&addressing_service::get_cache_insertions, this, ::_1)); performance_counters::generic_counter_type_data const counter_types[] = { { "/agas/count/cache-hits", performance_counters::counter_raw, "returns the number of cache hits while accessing the AGAS cache", HPX_PERFORMANCE_COUNTER_V1, boost::bind(&performance_counters::locality_raw_counter_creator, _1, cache_hits, _2), &performance_counters::locality_counter_discoverer, "" }, { "/agas/count/cache-misses", performance_counters::counter_raw, "returns the number of cache misses while accessing the AGAS cache", HPX_PERFORMANCE_COUNTER_V1, boost::bind(&performance_counters::locality_raw_counter_creator, _1, cache_misses, _2), &performance_counters::locality_counter_discoverer, "" }, { "/agas/count/cache-evictions", performance_counters::counter_raw, "returns the number of cache evictions from the AGAS cache", HPX_PERFORMANCE_COUNTER_V1, boost::bind(&performance_counters::locality_raw_counter_creator, _1, cache_evictions, _2), &performance_counters::locality_counter_discoverer, "" }, { "/agas/count/cache-insertions", performance_counters::counter_raw, "returns the number of cache insertions into the AGAS cache", HPX_PERFORMANCE_COUNTER_V1, boost::bind(&performance_counters::locality_raw_counter_creator, _1, cache_insertions, _2), &performance_counters::locality_counter_discoverer, "" } }; performance_counters::install_counter_types( counter_types, sizeof(counter_types)/sizeof(counter_types[0])); if (is_bootstrap()) { // install counters for services bootstrap->register_counter_types(); // always register root server as 'locality#0' bootstrap->register_server_instance("locality#0/"); } else { // install counters for services hosted->register_counter_types(); boost::uint32_t locality_id = naming::get_locality_id_from_gid(get_local_locality()); std::string str("locality#" + boost::lexical_cast<std::string>(locality_id) + "/"); hosted->register_server_instance(str.c_str(), locality_id); } } // }}} void addressing_service::garbage_collect_non_blocking( error_code& ec ) { mutex_type::scoped_lock l(refcnt_requests_mtx_); send_refcnt_requests_non_blocking(l, ec); } void addressing_service::garbage_collect( error_code& ec ) { mutex_type::scoped_lock l(refcnt_requests_mtx_); send_refcnt_requests_sync(l, ec); } void addressing_service::send_refcnt_requests( addressing_service::mutex_type::scoped_lock& l , error_code& ec ) { if (!l.owns_lock()) { HPX_THROWS_IF(ec, lock_error , "addressing_service::send_refcnt_requests" , "mutex is not locked"); return; } if (max_refcnt_requests_ == ++refcnt_requests_count_) send_refcnt_requests_non_blocking(l, ec); else if (&ec != &throws) ec = make_success_code(); } void addressing_service::send_refcnt_requests_non_blocking( addressing_service::mutex_type::scoped_lock& l , error_code& ec ) { try { boost::shared_ptr<refcnt_requests_type> p(new refcnt_requests_type); p.swap(refcnt_requests_); refcnt_requests_count_ = 0; l.unlock(); BOOST_FOREACH(refcnt_requests_type::const_reference e, *p) { naming::gid_type lower(boost::icl::lower(e.key())); request const req( primary_ns_change_credit_non_blocking , lower , boost::icl::upper(e.key()) , e.data()); naming::id_type target( stubs::primary_namespace::get_service_instance(lower) , naming::id_type::unmanaged); stubs::primary_namespace::service_non_blocking( target, req, action_priority_); } if (&ec != &throws) ec = make_success_code(); } catch (hpx::exception const& e) { HPX_RETHROWS_IF(ec, e, "addressing_service::send_refcnt_requests"); } } void addressing_service::send_refcnt_requests_sync( addressing_service::mutex_type::scoped_lock& l , error_code& ec ) { boost::shared_ptr<refcnt_requests_type> p(new refcnt_requests_type); p.swap(refcnt_requests_); refcnt_requests_count_ = 0; l.unlock(); std::vector<hpx::future<response> > lazy_results; BOOST_FOREACH(refcnt_requests_type::const_reference e, *p) { naming::gid_type lower(boost::icl::lower(e.key())); request const req(primary_ns_change_credit_sync , lower , boost::icl::upper(e.key()) , e.data()); naming::id_type target( stubs::primary_namespace::get_service_instance(lower) , naming::id_type::unmanaged); lazy_results.push_back( stubs::primary_namespace::service_async<response>( target, req, action_priority_)); } wait_all(lazy_results); BOOST_FOREACH(hpx::future<response> const& f, lazy_results) { response const& rep = f.get(); if (success != rep.get_status()) { HPX_THROWS_IF(ec, rep.get_status(), "addressing_service::send_refcnt_requests_sync", "could not decrement reference count"); return; } } if (&ec != &throws) ec = make_success_code(); } }}
30.240913
91
0.6058
andreasbuhr
810f92a261d4901690f29a2ecf0db00f31d6fa31
473
cc
C++
kernel/mutex.cc
PoisonNinja/quark
0cc2b8191f0c5cbd856caac688bfdac54a7d3369
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
3
2019-08-01T03:16:31.000Z
2022-02-17T06:52:26.000Z
kernel/mutex.cc
PoisonNinja/quark
0cc2b8191f0c5cbd856caac688bfdac54a7d3369
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
32
2018-03-26T20:10:44.000Z
2020-07-13T03:01:42.000Z
kernel/mutex.cc
PoisonNinja/quark
0cc2b8191f0c5cbd856caac688bfdac54a7d3369
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
1
2018-08-29T21:31:06.000Z
2018-08-29T21:31:06.000Z
#include <kernel/mutex.h> mutex::mutex() : locked(ATOMIC_FLAG_INIT) { } void mutex::lock() { // For now we have no way to tell, so keep this in. if (locked.test_and_set(std::memory_order_acquire)) { // We'd rather not be woken up by a signal queue.wait(0, [&]() { return !locked.test_and_set(std::memory_order_acquire); }); } } void mutex::unlock() { locked.clear(std::memory_order_release); queue.wakeup(); }
19.708333
67
0.610994
PoisonNinja
810ff6ac8839742cfa9828e92b5b8108b247bf72
2,576
cpp
C++
CORE/Source/Subsystems/CORE_Audio.cpp
pike4/CORE-Dev-Build-1.0
08376bae09a8bb3598f4aa8edfacd1ca1c45eaa3
[ "MIT" ]
3
2016-10-06T22:42:50.000Z
2016-10-14T16:04:46.000Z
CORE/Source/Subsystems/CORE_Audio.cpp
pike4/CORE-Dev-Build-1.0
08376bae09a8bb3598f4aa8edfacd1ca1c45eaa3
[ "MIT" ]
null
null
null
CORE/Source/Subsystems/CORE_Audio.cpp
pike4/CORE-Dev-Build-1.0
08376bae09a8bb3598f4aa8edfacd1ca1c45eaa3
[ "MIT" ]
null
null
null
#include "CORE_Audio.h" #include "CORE_Resources.h" #include "SDL_Mixer.h" #include <string> std::map<std::string, Mix_Chunk*> sounds; std::map<std::string, Mix_Music*> music; namespace CORE_Audio { Mix_Chunk* getSound(std::string name) { Mix_Chunk* ret = NULL; if (sounds.find(name) != sounds.end()) { ret = sounds[name]; } else { CORE_SystemIO::error("Sound " + name + " not found"); } return ret; } Mix_Music* getMusic(std::string name) { Mix_Music* ret = NULL; if (music.find(name) != music.end()) { ret = music[name]; } else { CORE_SystemIO::error("Music track " + name + " not found"); } return ret; } void handle(Event e) { } bool start() { if (SDL_INIT_AUDIO < 0) { //TODO log error instead printf("SDL Audio initialization failed"); return false; } if (Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 2048) < 0) { //TODO log error instead printf("Failed to open SDL_Audio\n"); return false; } return true; } Mix_Music* loadMusic(std::string filename) { Mix_Music* musicToLoad = Mix_LoadMUS(filename.c_str()); if (musicToLoad == NULL) { CORE_SystemIO::error("Could not load music file " + filename); } return musicToLoad; } Mix_Chunk* loadSound(std::string filename) { Mix_Chunk* chunkToLoad = Mix_LoadWAV(filename.c_str()); if (chunkToLoad == NULL) { CORE_SystemIO::error("Could not load sound file " + filename); } return chunkToLoad; } void addTrack(std::string trackName, std::string filename) { if (music.find(trackName) != music.end()) { CORE_SystemIO::error("Track " + trackName + " already loaded"); return; } Mix_Music* newTrack = loadMusic(filename); if (newTrack) { music[trackName] = newTrack; } } void addSound(std::string soundName, std::string filename) { if (sounds.find(soundName) != sounds.end()) { CORE_SystemIO::error("Sound " + soundName + " already loaded"); return; } Mix_Chunk* newTrack = loadSound(filename); if (newTrack) { sounds[soundName] = newTrack; } } void startMusicLoop(std::string name) { Mix_Music* track = getMusic(name); if(track) Mix_PlayMusic(track, -1); } void pauseMusic() { Mix_PauseMusic(); } void resumeMusic() { Mix_ResumeMusic(); } void playSound(std::string name) { Mix_Chunk* toPlay = getSound(name); if (toPlay) Mix_PlayChannel(-1, toPlay, 0); } }
17.52381
67
0.607143
pike4
811193d92558c6272487e5fdd8c188ddf74e4e09
17,742
hpp
C++
src/vlCore/Transform.hpp
zpc930/visualizationlibrary
c81fa75c720a3d04d295b977a1f5dc4624428b53
[ "BSD-2-Clause" ]
null
null
null
src/vlCore/Transform.hpp
zpc930/visualizationlibrary
c81fa75c720a3d04d295b977a1f5dc4624428b53
[ "BSD-2-Clause" ]
null
null
null
src/vlCore/Transform.hpp
zpc930/visualizationlibrary
c81fa75c720a3d04d295b977a1f5dc4624428b53
[ "BSD-2-Clause" ]
null
null
null
/**************************************************************************************/ /* */ /* Visualization Library */ /* http://www.visualizationlibrary.org */ /* */ /* Copyright (c) 2005-2010, Michele Bosi */ /* All rights reserved. */ /* */ /* Redistribution and use in source and binary forms, with or without modification, */ /* are permitted provided that the following conditions are met: */ /* */ /* - Redistributions of source code must retain the above copyright notice, this */ /* list of conditions and the following disclaimer. */ /* */ /* - Redistributions in binary form must reproduce the above copyright notice, this */ /* list of conditions and the following disclaimer in the documentation and/or */ /* other materials provided with the distribution. */ /* */ /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND */ /* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED */ /* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR */ /* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES */ /* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; */ /* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */ /* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */ /* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* */ /**************************************************************************************/ #ifndef Transform_INCLUDE_ONCE #define Transform_INCLUDE_ONCE #include <vlCore/vlnamespace.hpp> #include <vlCore/Object.hpp> #include <vlCore/Matrix4.hpp> #include <vector> #include <set> #include <algorithm> namespace vl { class Camera; //------------------------------------------------------------------------------ // Transform //------------------------------------------------------------------------------ /** Implements a 4x4 matrix transform used to define the position and orientation of an Actor. * * Transforms can be linked together to create a tree-like hierarchy. * * \par Optimizing Your Transforms * * - Don't use them unless strictly necessary: if an Actor uses an I (identity) transform you do not need one, just call \p vl::Actor::setTransform(NULL). * * - Don't create Transform hierarchies if not needed. Just call setLocalAndWorldMatrix() per-Transform if you have a set of parent-less Transforms. * * - If the root of a hierarchy is an I (identity) transform, let VL know it by calling \p setAssumeIdentityWorldMatrix(true). This will save * unnecessary matrix multiplications when calling computeWorldMatrix() / computeWorldMatrixRecursive(). * * - Call computeWorldMatrix() / computeWorldMatrixRecursive() not at each frame but only if the local matrix has actually changed. * * - Do not add a Transform hierarchy to vl::Rendering::transform() if such Transforms are not animated every frame. * * - Remember: VL does not require your Actors to have a Transform or such Transforms to be part of any hierarchy, it just expect that the * worldMatrix() of an Actor's Transform (if it has any) is up to date at rendering time. How and when they are updated can be fine * tuned by the user according to the specific application needs. * * \sa setLocalAndWorldMatrix(), setAssumeIdentityWorldMatrix(), Rendering::transform() * \sa Actor, Rendering, Effect, Renderable, Geometry */ class VLCORE_EXPORT Transform: public Object { VL_INSTRUMENT_CLASS(vl::Transform, Object) public: /** Constructor. */ Transform(): mWorldMatrixUpdateTick(0), mAssumeIdentityWorldMatrix(false), mParent(NULL) { VL_DEBUG_SET_OBJECT_NAME() #if VL_TRANSFORM_USER_DATA mTransformUserData = NULL; #endif } /** Constructor. The \p matrix parameter is used to set both the local and world matrix. */ Transform(const mat4& matrix): mWorldMatrixUpdateTick(0), mAssumeIdentityWorldMatrix(false), mParent(NULL) { VL_DEBUG_SET_OBJECT_NAME() #if VL_TRANSFORM_USER_DATA mTransformUserData = NULL; #endif setLocalMatrix(matrix); setWorldMatrix(matrix); } /** Destructor. */ ~Transform(); /** Returns the parent Transform. */ const Transform* parent() const { return mParent; } /** Returns the parent Transform. */ Transform* parent() { return mParent; } /** Utility function equivalent to \p setLocalMatrix( mat4::getTranslation(x,y,z)*localMatrix() ). * After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */ void translate(real x, real y, real z); /** Utility function equivalent to \p setLocalMatrix( mat4::getTranslation(t)*localMatrix() ). * After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */ void translate(const vec3& t); /** Utility function equivalent to \p setLocalMatrix( mat4::getScaling(x,y,z)*localMatrix() ). * After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */ void scale(real x, real y, real z); /** Utility function equivalent to \p setLocalMatrix( mat4::getRotation(degrees,x,y,z)*localMatrix() ). * After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */ void rotate(real degrees, real x, real y, real z); /** Utility function equivalent to \p setLocalMatrix( mat4::getRotation(from,to)*localMatrix() ). * After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */ void rotate(const vec3& from, const vec3& to); /** Utility function equivalent to \p setLocalMatrix( m*localMatrix() ). * After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */ void preMultiply(const mat4& m); /** Utility function equivalent to \p setLocalMatrix( localMatrix()*m ). * After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */ void postMultiply(const mat4& m); /** The matrix representing the transform's local space. * After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */ void setLocalMatrix(const mat4& m) { mLocalMatrix = m; } /** The matrix representing the transform's local space. */ const mat4& localMatrix() const { return mLocalMatrix; } /** Normally you should not use directly this function, call it only if you are sure you cannot do otherwise. * Usually you want to call computeWorldMatrix() or computeWorldMatrixRecursive(). * Calling this function will also increment the worldMatrixUpdateTick(). */ void setWorldMatrix(const mat4& matrix) { mWorldMatrix = matrix; ++mWorldMatrixUpdateTick; } /** Returns the world matrix used for rendering. */ const mat4& worldMatrix() const { return mWorldMatrix; } /** Sets both the local and the world matrices. * This function is useful to quickly set those Transforms that do not have a parent, for which * is equivalent to: \p setLocalMatrix(matrix); \p computeWorldMatrix(NULL); */ void setLocalAndWorldMatrix(const mat4& matrix) { mLocalMatrix = matrix; setWorldMatrix(matrix); } /** Returns the internal update tick used to avoid unnecessary computations. The world matrix thick * gets incremented every time the setWorldMatrix() or setLocalAndWorldMatrix() functions are called. */ long long worldMatrixUpdateTick() const { return mWorldMatrixUpdateTick; } /** If set to true the world matrix of this transform will always be considered and identity. * Is usually used to save calculations for top Transforms with many sub-Transforms. */ void setAssumeIdentityWorldMatrix(bool assume_I) { mAssumeIdentityWorldMatrix = assume_I; } /** If set to true the world matrix of this transform will always be considered and identity. * Is usually used to save calculations for top Transforms with many sub-Transforms. */ bool assumeIdentityWorldMatrix() { return mAssumeIdentityWorldMatrix; } /** Computes the world matrix by concatenating the parent's world matrix with its own local matrix. */ virtual void computeWorldMatrix(Camera* /*camera*/ = NULL) { if( assumeIdentityWorldMatrix() ) { setWorldMatrix(mat4()); } else /* top Transforms are usually assumeIdentityWorldMatrix() == true for performance reasons */ if( parent() && !parent()->assumeIdentityWorldMatrix() ) { setWorldMatrix( parent()->worldMatrix() * localMatrix() ); } else setWorldMatrix( localMatrix() ); } /** Computes the world matrix by concatenating the parent's world matrix with its local matrix, recursively descending to the children. */ void computeWorldMatrixRecursive(Camera* camera = NULL) { computeWorldMatrix(camera); for(size_t i=0; i<mChildren.size(); ++i) mChildren[i]->computeWorldMatrixRecursive(camera); } /** Returns the matrix computed concatenating this Transform's local matrix with the local matrices of all its parents. */ mat4 getComputedWorldMatrix() { mat4 world = localMatrix(); Transform* par = parent(); while(par) { world = par->localMatrix() * world; par = par->parent(); } return world; } // --- --- children management --- --- /** Returns the array containing the child Transforms. */ const ref<Transform>* children() const { if (mChildren.empty()) return NULL; else return &mChildren[0]; } /** Returns the array containing the child Transforms. */ ref<Transform>* children() { if (mChildren.empty()) return NULL; else return &mChildren[0]; } /** Returns the number of child Transform. */ size_t childrenCount() const { return mChildren.size(); } /** Adds a child transform. */ void addChild(Transform* child) { VL_CHECK(child != NULL) VL_CHECK(child->mParent == NULL) mChildren.push_back(child); child->mParent = this; } /** Adds \p count children transforms. */ void addChildren(Transform*const* children, size_t count) { VL_CHECK(children != NULL) if (count) { size_t insert_point = mChildren.size(); mChildren.resize(mChildren.size() + count); vl::ref<Transform>* ptr = &mChildren[insert_point]; for(size_t i=0; i<count; ++i, ++ptr) { VL_CHECK(children[i]->mParent == NULL); children[i]->mParent = this; (*ptr) = children[i]; } } } void addChildren(const ref<Transform>* children, size_t count) { VL_CHECK(children != NULL) if (count) { size_t insert_point = mChildren.size(); mChildren.resize(mChildren.size() + count); vl::ref<Transform>* ptr = &mChildren[insert_point]; for(size_t i=0; i<count; ++i) { VL_CHECK(children[i]->mParent == NULL); ptr[i] = children[i]; ptr[i]->mParent = this; } } } void addChildren(const std::vector< ref<Transform> >& children) { if (children.size()) addChildren( &children[0], children.size() ); } /** Adds the specified \p children transforms. */ void addChildren(const std::vector< Transform* >& children) { if (children.size()) addChildren( &children[0], children.size() ); } /** Sets the \p index-th child. */ void setChild(int index, Transform* child) { VL_CHECK(child) VL_CHECK( index < (int)mChildren.size() ) mChildren[index]->mParent = NULL; mChildren[index] = child; mChildren[index]->mParent = this; } /** Returns the last child. */ const Transform* lastChild() const { return mChildren.back().get(); } /** Returns the last child. */ Transform* lastChild() { return mChildren.back().get(); } /** Removes the given \p child Transform. */ void eraseChild(const Transform* child) { VL_CHECK(child != NULL) std::vector< ref<Transform> >::iterator it; it = std::find(mChildren.begin(), mChildren.end(), child); VL_CHECK(it != mChildren.end()) if (it != mChildren.end()) { (*it)->mParent = NULL; mChildren.erase(it); } } /** Removes \p count children Transforms starting at position \p index. */ void eraseChildren(int index, int count) { VL_CHECK( index + count <= (int)mChildren.size() ); for(int j=index; j<index+count; ++j) mChildren[j]->mParent = NULL; for(int i=index+count, j=index; i<(int)mChildren.size(); ++i, ++j) mChildren[j] = mChildren[i]; mChildren.resize( mChildren.size() - count ); } /** Removes all the children of a Transform. */ void eraseAllChildren() { for(int i=0; i<(int)mChildren.size(); ++i) mChildren[i]->mParent = NULL; mChildren.clear(); } /** Removes all the children of a Transform recursively descending the hierarchy. */ void eraseAllChildrenRecursive() { for(int i=0; i<(int)mChildren.size(); ++i) { mChildren[i]->eraseAllChildrenRecursive(); mChildren[i]->mParent = NULL; } mChildren.clear(); } /** Disassembles a hierarchy of Transforms like eraseAllChildrenRecursive() does plus assigns the local matrix to equal the world matrix. */ void flattenHierarchy() { for(int i=0; i<(int)mChildren.size(); ++i) { mChildren[i]->setLocalAndWorldMatrix( mChildren[i]->worldMatrix() ); mChildren[i]->eraseAllChildrenRecursive(); mChildren[i]->mParent = NULL; } mChildren.clear(); } /** Erases a Transform from it's parent and sets the local matrix to be equal to the world matrix. */ void removeFromParent() { if (parent()) { mParent->eraseChild(this); setLocalMatrix( worldMatrix() ); } } /** Minimizes the amount of memory used to store the children Transforms. */ void shrink() { std::vector< ref<Transform> > tmp (mChildren); mChildren.swap(tmp); } /** Minimizes recursively the amount of memory used to store the children Transforms. */ void shrinkRecursive() { shrink(); for(size_t i=0; i<mChildren.size(); ++i) mChildren[i]->shrinkRecursive(); } /** Reserves space for \p count children. This function is very useful when you need to add one by one a large number of children transforms. * \note This function does not affect the number of children, it only reallocates the buffer used to store them * so that it's large enough to \p eventually contain \p count of them. This will make subsequent calls to addChild() quicker * as fewer or no reallocations of the buffer will be needed. */ void reserveChildren(size_t count) { mChildren.reserve(count); } /** Checks whether there are duplicated entries in the Transform's children list. */ bool hasDuplicatedChildren() const { std::set<const Transform*> tr_set; for(size_t i=0; i<mChildren.size(); ++i) tr_set.insert( mChildren[i].get() ); return tr_set.size() != mChildren.size(); } #if VL_TRANSFORM_USER_DATA public: void setTransformUserData(void* data) { mTransformUserData = data; } const void* transformUserData() const { return mTransformUserData; } void* transformUserData() { return mTransformUserData; } private: void* mTransformUserData; #endif protected: mat4 mLocalMatrix; mat4 mWorldMatrix; long long mWorldMatrixUpdateTick; bool mAssumeIdentityWorldMatrix; std::vector< ref<Transform> > mChildren; Transform* mParent; }; } #endif
41.069444
158
0.598129
zpc930
8111d829fadf5948e6885bb96ffe9522e09ab82b
1,911
cpp
C++
SerialPrograms/Source/PokemonLA/Programs/PokemonLA_OverworldWatcher.cpp
BlizzardHero/Arduino-Source
bc4ce6433651b0feef488735098900f8bf4144f8
[ "MIT" ]
null
null
null
SerialPrograms/Source/PokemonLA/Programs/PokemonLA_OverworldWatcher.cpp
BlizzardHero/Arduino-Source
bc4ce6433651b0feef488735098900f8bf4144f8
[ "MIT" ]
null
null
null
SerialPrograms/Source/PokemonLA/Programs/PokemonLA_OverworldWatcher.cpp
BlizzardHero/Arduino-Source
bc4ce6433651b0feef488735098900f8bf4144f8
[ "MIT" ]
null
null
null
/* Shiny Hunt - Legendary Reset * * From: https://github.com/PokemonAutomation/Arduino-Source * */ //#include "CommonFramework/InferenceInfra/VisualInferenceRoutines.h" #include "CommonFramework/InferenceInfra/VisualInferenceSession.h" #include "PokemonLA/Inference/Objects/PokemonLA_BubbleDetector.h" #include "PokemonLA/Inference/Objects/PokemonLA_ArcDetector.h" #include "PokemonLA/Inference/Objects/PokemonLA_QuestMarkDetector.h" #include "PokemonLA/Inference/Objects/PokemonLA_FlagDetector.h" #include "PokemonLA_OverworldWatcher.h" namespace PokemonAutomation{ namespace NintendoSwitch{ namespace PokemonLA{ OverworldWatcher_Descriptor::OverworldWatcher_Descriptor() : RunnableSwitchProgramDescriptor( "PokemonLA:OverworldWatcher", STRING_POKEMON + " LA", "Overworld Watcher", "", "This is a test program that simply observes the game and labels things of interest. " "This program doesn't really do anything.", FeedbackType::REQUIRED, true, PABotBaseLevel::PABOTBASE_12KB ) {} OverworldWatcher::OverworldWatcher(const OverworldWatcher_Descriptor& descriptor) : SingleSwitchProgramInstance(descriptor) { } void OverworldWatcher::program(SingleSwitchProgramEnvironment& env){ BubbleDetector bubbles; ArcDetector arcs; QuestMarkDetector quest_marks; FlagDetector flags; WhiteObjectWatcher watcher( env.console, {0, 0, 1, 1}, { {bubbles, false}, {arcs, false}, {quest_marks, false}, {flags, false}, } ); #if 0 watcher.process_frame(env.console.video().snapshot(), std::chrono::system_clock::now()); #else { VisualInferenceSession session(env, env.console, env.console, env.console); session += watcher; session.run(); } #endif env.wait_for(std::chrono::seconds(60)); } } } }
25.48
94
0.703297
BlizzardHero
8113077e52eecb30d51aadbdbb27af088d03533b
12,992
cpp
C++
SDKs/CryCode/3.6.15/CryEngine/CryEntitySystem/EntityObject.cpp
amrhead/FireNET
34d439aa0157b0c895b20b2b664fddf4f9b84af1
[ "BSD-2-Clause" ]
4
2017-12-18T20:10:16.000Z
2021-02-07T21:21:24.000Z
SDKs/CryCode/3.6.15/CryEngine/CryEntitySystem/EntityObject.cpp
amrhead/FireNET
34d439aa0157b0c895b20b2b664fddf4f9b84af1
[ "BSD-2-Clause" ]
null
null
null
SDKs/CryCode/3.6.15/CryEngine/CryEntitySystem/EntityObject.cpp
amrhead/FireNET
34d439aa0157b0c895b20b2b664fddf4f9b84af1
[ "BSD-2-Clause" ]
3
2019-03-11T21:36:15.000Z
2021-02-07T21:21:26.000Z
//////////////////////////////////////////////////////////////////////////// // // Crytek Engine Source File. // Copyright (C), Crytek Studios, 2001-2004. // ------------------------------------------------------------------------- // File name: EntityObject.cpp // Version: v1.00 // Created: 18/5/2004 by Timur. // Compilers: Visual Studio.NET 2003 // Description: // ------------------------------------------------------------------------- // History: // //////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "EntityObject.h" #include "Entity.h" #include "Force.h" #include <IRenderer.h> #include <IEntityRenderState.h> #include <I3DEngine.h> #include <ICryAnimation.h> #include <RenderObjectDefines.h> #include <IGeomCache.h> #define MAX_CHARACTER_LOD 10 namespace { Matrix34 sIdentMatrix = Matrix34::CreateIdentity(); } ////////////////////////////////////////////////////////////////////////// CEntityObject::~CEntityObject() { ReleaseObjects(); if (m_pXForm) delete m_pXForm; FreeCameraSpacePos(); } ////////////////////////////////////////////////////////////////////////// void CEntityObject::ReleaseObjects() { if (pStatObj) { pStatObj->Release(); pStatObj = NULL; } else if (pCharacter) { if (ISkeletonAnim* pSkeletonAnim = pCharacter->GetISkeletonAnim()) pSkeletonAnim->SetEventCallback(0, 0); if (ISkeletonPose* pSkeletonPose = pCharacter->GetISkeletonPose()) pSkeletonPose->DestroyCharacterPhysics(0); pCharacter->Release(); pCharacter = NULL; } else if (pLight) { pLight->ReleaseNode(); pLight = NULL; } else if (IParticleEmitter* pEmitter = GetParticleEmitter()) { pEmitter->Activate(false); pEmitter->Release(); pEmitter->SetEntity(NULL, 0); pChildRenderNode = 0; } else if (pChildRenderNode) { pChildRenderNode->ReleaseNode(); pChildRenderNode = 0; } else if (pFoliage) { pFoliage->Release(); pFoliage = 0; } if(m_pRNTmpData) gEnv->p3DEngine->FreeRNTmpData(&m_pRNTmpData); assert(!m_pRNTmpData); } bool CEntityObject::GetLocalBounds( AABB &bounds ) { if (pStatObj) { bounds.Add(pStatObj->GetAABB()); return true; } if (pCharacter) { bounds.Add(pCharacter->GetAABB()); return true; } if (pLight) { bounds.Add(Vec3Constants<float>::fVec3_Zero, 0.1f); return true; } if (pChildRenderNode) { pChildRenderNode->GetLocalBounds(bounds); return true; } return false; } ////////////////////////////////////////////////////////////////////////// IParticleEmitter* CEntityObject::GetParticleEmitter() const { if (pChildRenderNode && pChildRenderNode->GetRenderNodeType() == eERType_ParticleEmitter) return static_cast<IParticleEmitter*>(pChildRenderNode); else return NULL; } ////////////////////////////////////////////////////////////////////////// void CEntityObject::SetParent( CEntityObject *pParentSlot ) { pParent = pParentSlot; if (!m_pXForm) m_pXForm = new SEntityObjectXForm; bWorldTMValid = false; } ////////////////////////////////////////////////////////////////////////// void CEntityObject::SetLocalTM( const Matrix34 &localTM ) { if (!m_pXForm) m_pXForm = new SEntityObjectXForm; m_pXForm->localTM = localTM; bWorldTMValid = false; if (pParent) { pParent->bWorldTMValid = false; } } ////////////////////////////////////////////////////////////////////////// void CEntityObject::SetCameraSpacePos( const Vec3 &cameraSpacePos ) { if(m_pCameraSpacePos == NULL) { m_pCameraSpacePos = new Vec3; } *m_pCameraSpacePos = cameraSpacePos; } ////////////////////////////////////////////////////////////////////////// void CEntityObject::GetCameraSpacePos( Vec3 &cameraSpacePos ) { if(m_pCameraSpacePos) { cameraSpacePos = *m_pCameraSpacePos; } else { cameraSpacePos = ZERO; } } ////////////////////////////////////////////////////////////////////////// void CEntityObject::FreeCameraSpacePos() { SAFE_DELETE(m_pCameraSpacePos); } ////////////////////////////////////////////////////////////////////////// void CEntityObject::UpdateWorldTM( CEntity *pEntity ) { if (!pParent) { // Add entity matrix as parent. if (!m_pXForm) m_worldTM = pEntity->GetWorldTM_Fast(); else m_worldTM = pEntity->GetWorldTM_Fast() * m_pXForm->localTM; } else { if (!m_pXForm) m_worldTM = pParent->GetWorldTM(pEntity); else m_worldTM = pParent->GetWorldTM(pEntity) * m_pXForm->localTM; } bWorldTMValid = true; bObjectMoved = true; } ////////////////////////////////////////////////////////////////////////// const Matrix34& CEntityObject::GetLocalTM() const { if (m_pXForm) return m_pXForm->localTM; return sIdentMatrix; }; ////////////////////////////////////////////////////////////////////////// const Matrix34& CEntityObject::GetWorldTM( CEntity *pEntity ) { if (!bWorldTMValid) { UpdateWorldTM(pEntity); } return m_worldTM; } ////////////////////////////////////////////////////////////////////////// bool CEntityObject::Render( CEntity *pEntity,SRendParams &rParams,int nRndFlags,CRenderProxy *pRenderProxy, const SRenderingPassInfo &passInfo ) { bool bDrawn = false; if (!bWorldTMValid) { UpdateWorldTM(pEntity); } // Override with custom slot material. IMaterial *pPrevMtl = rParams.pMaterial; if (pMaterial) rParams.pMaterial = pMaterial; int nOldObjectFlags = rParams.dwFObjFlags; rParams.dwFObjFlags |= dwFObjFlags; if(flags & ENTITY_SLOT_RENDER_AFTER_POSTPROCESSING) { rParams.dwFObjFlags |= FOB_RENDER_AFTER_POSTPROCESSING; } #ifdef SEG_WORLD rParams.nCustomFlags |= (1 << (COB_SW_SHIFT + pEntity->GetSwObjDebugFlag())); #endif // SEG_WORLD ////////////////////////////////////////////////////////////////////////// rParams.pInstance = this; const bool bIsInCameraSpace = (flags & ENTITY_SLOT_RENDER_NEAREST) != 0; // Draw static object. if (pStatObj) { rParams.pMatrix = &m_worldTM; rParams.dwFObjFlags |= FOB_TRANS_MASK; rParams.pFoliage = pFoliage; rParams.ppRNTmpData = &m_pRNTmpData; rParams.nSubObjHideMask = nSubObjHideMask; // make sure object motion blur can be applied to this object if(bObjectMoved) { rParams.dwFObjFlags |= FOB_DYNAMIC_OBJECT; bObjectMoved = false; } Matrix34 entityTM; if (bIsInCameraSpace) { rParams.pMatrix = &entityTM; entityTM = m_worldTM; // Camera space if(m_pCameraSpacePos) { // Use camera space relative position entityTM.SetTranslation(*m_pCameraSpacePos); } else { // We don't have camera space relative position, so calculate it out from world space // (This will not have the precision advantages of camera space rendering) entityTM.AddTranslation(-gEnv->pSystem->GetViewCamera().GetPosition()); } } if(rParams.pMatrix->IsValid()) pStatObj->Render( rParams, passInfo ); else EntityWarning("CEntityObject::Render: Invalid world matrix: %s", pEntity->GetEntityTextDescription()); bDrawn = true; } ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // Draw character. if (pCharacter) { QuatTS Offset; Matrix34 PhysLocation(pEntity->GetWorldTM()); if (m_pXForm) Offset = QuatTS(m_pXForm->localTM); else { //CRY_FIXME(03,12,2009,"Animation & Rendering of entities needs to be re-written to avoid derivation of local offset due to float inaccuracy - Richard Semmens"); if(!Matrix34::IsEquivalent(PhysLocation,m_worldTM)) { Matrix34 invPhysLocation = PhysLocation.GetInverted(); Matrix34 matOffset = invPhysLocation * m_worldTM; Offset = QuatTS(matOffset); } else { Offset.SetIdentity(); } } if (bIsInCameraSpace) { // Camera space if(m_pCameraSpacePos) { // Use camera space relative position const Matrix33 camRot = Matrix33(gEnv->pSystem->GetViewCamera().GetViewMatrix()); PhysLocation.SetTranslation(*m_pCameraSpacePos * camRot); } else { // We don't have camera space relative position, so calculate it out from world space // (This will not have the precision advantages of camera space rendering) PhysLocation.AddTranslation(-gEnv->pSystem->GetViewCamera().GetPosition()); } Offset.SetIdentity(); } rParams.pMatrix = &PhysLocation; //rParams.pInstance = pCharacter; // Disable hand-placed (static) decals on characters rParams.dwFObjFlags |= FOB_DYNAMIC_OBJECT; bool updated = false; pCharacter->Render( rParams, Offset, passInfo, &updated ); if(updated) { pRenderProxy->ClearFlags(CRenderProxy::FLAG_BBOX_VALID_LOCAL); //pRenderProxy->CalcLocalBounds(); } bDrawn = true; const uint32 renderProxyFlags = pRenderProxy->GetFlags(); if( !passInfo.IsShadowPass() || (renderProxyFlags & CRenderProxy::FLAG_ANIMATE_OFFSCREEN_SHADOW)) { // If We render character, make sure it is also gets animation activated. if (!pEntity->m_bInActiveList) pEntity->ActivateForNumUpdates(8); } } if (pChildRenderNode) { rParams.pMatrix = &m_worldTM; //rParams.pInstance = pChildRenderNode; pChildRenderNode->m_dwRndFlags = nRndFlags; pChildRenderNode->Render( rParams, passInfo ); } ////////////////////////////////////////////////////////////////////////// rParams.pMaterial = pPrevMtl; rParams.dwFObjFlags = nOldObjectFlags; if ( !passInfo.IsShadowPass() ) // Should also ignore rendering into the recursion. { if (pFoliage) { pFoliage->SetFlags(pFoliage->GetFlags() & ~IFoliage::FLAG_FROZEN | -(int)(rParams.nMaterialLayers&MTL_LAYER_FROZEN) & IFoliage::FLAG_FROZEN); static ICVar *g_pWindActivationDist = gEnv->pConsole->GetCVar("e_FoliageWindActivationDist"); float maxdist = g_pWindActivationDist ? g_pWindActivationDist->GetFVal() : 0.0f; Vec3 pos = m_worldTM.GetTranslation(); if (pStatObj && (gEnv->pSystem->GetViewCamera().GetPosition()-pos).len2()<sqr(maxdist) && gEnv->p3DEngine->GetWind(AABB(pos),false).len2()>101.0f) pStatObj->PhysicalizeFoliage(pEntity->GetPhysics(),m_worldTM,pFoliage,0,4); } } return bDrawn; } ////////////////////////////////////////////////////////////////////////// void CEntityObject::OnXForm( CEntity *pEntity ) { UpdateWorldTM(pEntity); if(!m_worldTM.IsValid()) { EntityWarning("CEntityObject::OnXForm: Invalid world matrix: %s", pEntity->GetEntityTextDescription()); return; } if (pLight) { ILightSource *pLightSource = pLight; // Update light positions. CDLight *pDLight = &pLightSource->GetLightProperties(); pDLight->SetPosition( m_worldTM.GetTranslation() ); pDLight->SetMatrix(m_worldTM); pDLight->m_sName = pEntity->GetName(); // For debugging only. pDLight->m_nEntityId = pEntity->GetId(); pEntity->UpdateLightClipBounds(*pDLight); pLightSource->SetMatrix(m_worldTM); } if (pChildRenderNode) { pChildRenderNode->SetMatrix( m_worldTM ); } } ////////////////////////////////////////////////////////////////////////// void CEntityObject::OnEntityEvent( CEntity *pEntity, SEntityEvent const& event ) { if (pChildRenderNode) pChildRenderNode->OnEntityEvent( pEntity, event ); } ////////////////////////////////////////////////////////////////////////// void CEntityObject::OnNotSeenTimeout() { //if (pCharacter) // pCharacter->ReleaseTemporaryResources(); } ////////////////////////////////////////////////////////////////////////// void CEntityObject::Update( CEntity *pEntity,bool bVisible,bool &bBoundsChanged ) { bBoundsChanged = false; if (pCharacter) { int characterFlags = pCharacter->GetFlags(); if ((flags&ENTITY_SLOT_RENDER) || (characterFlags & CS_FLAG_UPDATE_ALWAYS)) { bBoundsChanged = true; // Lets bounds of character change constantly. if (characterFlags & CS_FLAG_UPDATE) { if (!bWorldTMValid) UpdateWorldTM(pEntity); QuatTS AnimatedCharacter = QuatTS( m_worldTM ); const CCamera& camera = GetISystem()->GetViewCamera(); float fDistance = (camera.GetPosition() - AnimatedCharacter.t).GetLength(); float fZoomFactor = 0.001f + 0.999f*(RAD2DEG(camera.GetFov())/60.f); SAnimationProcessParams params; params.locationAnimation = AnimatedCharacter; params.bOnRender = 0; params.zoomAdjustedDistanceFromCamera = fDistance*fZoomFactor; pCharacter->StartAnimationProcessing(params); } } } #if defined(USE_GEOM_CACHES) else { IGeomCacheRenderNode *pGeomCacheRenderNode = GetGeomCacheRenderNode(); if (pGeomCacheRenderNode && pGeomCacheRenderNode->DidBoundsChange()) { bBoundsChanged = true; } } #endif } void CEntityObject::GetMemoryUsage( ICrySizer *pSizer ) const { { SIZER_COMPONENT_NAME(pSizer,"CEntityObject Allocator"); pSizer->AddObject(g_Alloc_EntitySlot); } pSizer->AddObject(pCharacter); pSizer->AddObject(pStatObj); pSizer->AddObject(pLight); pSizer->AddObject(pChildRenderNode); pSizer->AddObject(pMaterial); } //////////////////////////////////////////////////////////////////////////
26.036072
164
0.613608
amrhead
8113082dbc1de1cae459ebf81d010993382e9a9e
1,688
cpp
C++
Core/Material/BSDF/DiffuseBSDF.cpp
Witek902/Raytracer
3e38a82a5ea28e64793e98efc5b8e2643ceb8e9d
[ "MIT" ]
101
2018-11-11T23:58:14.000Z
2022-03-20T01:09:18.000Z
Core/Material/BSDF/DiffuseBSDF.cpp
Witek902/Raytracer
3e38a82a5ea28e64793e98efc5b8e2643ceb8e9d
[ "MIT" ]
null
null
null
Core/Material/BSDF/DiffuseBSDF.cpp
Witek902/Raytracer
3e38a82a5ea28e64793e98efc5b8e2643ceb8e9d
[ "MIT" ]
7
2018-12-31T09:42:00.000Z
2021-04-26T14:55:23.000Z
#include "PCH.h" #include "DiffuseBSDF.h" #include "Math/SamplingHelpers.h" namespace rt { using namespace math; const char* DiffuseBSDF::GetName() const { return "diffuse"; } bool DiffuseBSDF::Sample(SamplingContext& ctx) const { const float NdotV = ctx.outgoingDir.z; if (NdotV < CosEpsilon) { return false; } ctx.outIncomingDir = SamplingHelpers::GetHemishpereCos(ctx.sample); ctx.outPdf = ctx.outIncomingDir.z * RT_INV_PI; ctx.outColor = ctx.materialParam.baseColor; ctx.outEventType = DiffuseReflectionEvent; return true; } const RayColor DiffuseBSDF::Evaluate(const EvaluationContext& ctx, float* outDirectPdfW, float* outReversePdfW) const { const float NdotV = ctx.outgoingDir.z; const float NdotL = -ctx.incomingDir.z; if (NdotV > CosEpsilon && NdotL > CosEpsilon) { if (outDirectPdfW) { // cos-weighted hemisphere distribution *outDirectPdfW = NdotL * RT_INV_PI; } if (outReversePdfW) { // cos-weighted hemisphere distribution *outReversePdfW = NdotV * RT_INV_PI; } return ctx.materialParam.baseColor * RayColor(NdotL * RT_INV_PI); } return RayColor::Zero(); } float DiffuseBSDF::Pdf(const EvaluationContext& ctx, PdfDirection dir) const { const float NdotV = ctx.outgoingDir.z; const float NdotL = -ctx.incomingDir.z; if (NdotV > CosEpsilon && NdotL > CosEpsilon) { if (dir == ForwardPdf) { return NdotL * RT_INV_PI; } else { return NdotV * RT_INV_PI; } } return 0.0f; } } // namespace rt
21.922078
117
0.626777
Witek902
8115ec2d48c7acf61b22fdfcc663e8c9b4b1a097
844,873
cpp
C++
MRBasics/App/Il2CppOutputProject/Source/il2cppOutput/Unity.XR.WindowsMR.cpp
helenchg/LearnHololensDevUnity
88fd113ba10150c96b018474c7ed4ae68e6ce357
[ "MIT" ]
null
null
null
MRBasics/App/Il2CppOutputProject/Source/il2cppOutput/Unity.XR.WindowsMR.cpp
helenchg/LearnHololensDevUnity
88fd113ba10150c96b018474c7ed4ae68e6ce357
[ "MIT" ]
1
2019-12-08T01:51:15.000Z
2019-12-08T01:51:15.000Z
MRBasics/App/Il2CppOutputProject/Source/il2cppOutput/Unity.XR.WindowsMR.cpp
helenchg/LearnHololensDevUnity
88fd113ba10150c96b018474c7ed4ae68e6ce357
[ "MIT" ]
null
null
null
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include <stdint.h> #include "codegen/il2cpp-codegen.h" #include "il2cpp-object-internals.h" template <typename T1> struct VirtActionInvoker1 { typedef void (*Action)(void*, T1, const RuntimeMethod*); static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); ((Action)invokeData.methodPtr)(obj, p1, invokeData.method); } }; template <typename T1, typename T2> struct VirtActionInvoker2 { typedef void (*Action)(void*, T1, T2, const RuntimeMethod*); static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); ((Action)invokeData.methodPtr)(obj, p1, p2, invokeData.method); } }; struct VirtActionInvoker0 { typedef void (*Action)(void*, const RuntimeMethod*); static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); ((Action)invokeData.methodPtr)(obj, invokeData.method); } }; template <typename T1, typename T2, typename T3> struct VirtActionInvoker3 { typedef void (*Action)(void*, T1, T2, T3, const RuntimeMethod*); static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2, T3 p3) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); ((Action)invokeData.methodPtr)(obj, p1, p2, p3, invokeData.method); } }; template <typename T1, typename T2, typename T3, typename T4> struct VirtActionInvoker4 { typedef void (*Action)(void*, T1, T2, T3, T4, const RuntimeMethod*); static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2, T3 p3, T4 p4) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); ((Action)invokeData.methodPtr)(obj, p1, p2, p3, p4, invokeData.method); } }; template <typename R, typename T1> struct VirtFuncInvoker1 { typedef R (*Func)(void*, T1, const RuntimeMethod*); static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method); } }; template <typename T1, typename T2, typename T3> struct GenericVirtActionInvoker3 { typedef void (*Action)(void*, T1, T2, T3, const RuntimeMethod*); static inline void Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1, T2 p2, T3 p3) { VirtualInvokeData invokeData; il2cpp_codegen_get_generic_virtual_invoke_data(method, obj, &invokeData); ((Action)invokeData.methodPtr)(obj, p1, p2, p3, invokeData.method); } }; template <typename T1, typename T2, typename T3, typename T4> struct GenericVirtActionInvoker4 { typedef void (*Action)(void*, T1, T2, T3, T4, const RuntimeMethod*); static inline void Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1, T2 p2, T3 p3, T4 p4) { VirtualInvokeData invokeData; il2cpp_codegen_get_generic_virtual_invoke_data(method, obj, &invokeData); ((Action)invokeData.methodPtr)(obj, p1, p2, p3, p4, invokeData.method); } }; template <typename R, typename T1> struct GenericVirtFuncInvoker1 { typedef R (*Func)(void*, T1, const RuntimeMethod*); static inline R Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1) { VirtualInvokeData invokeData; il2cpp_codegen_get_generic_virtual_invoke_data(method, obj, &invokeData); return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method); } }; template <typename T1, typename T2, typename T3> struct InterfaceActionInvoker3 { typedef void (*Action)(void*, T1, T2, T3, const RuntimeMethod*); static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1, T2 p2, T3 p3) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface); ((Action)invokeData.methodPtr)(obj, p1, p2, p3, invokeData.method); } }; template <typename T1, typename T2, typename T3, typename T4> struct InterfaceActionInvoker4 { typedef void (*Action)(void*, T1, T2, T3, T4, const RuntimeMethod*); static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1, T2 p2, T3 p3, T4 p4) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface); ((Action)invokeData.methodPtr)(obj, p1, p2, p3, p4, invokeData.method); } }; template <typename R, typename T1> struct InterfaceFuncInvoker1 { typedef R (*Func)(void*, T1, const RuntimeMethod*); static inline R Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface); return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method); } }; template <typename T1, typename T2, typename T3> struct GenericInterfaceActionInvoker3 { typedef void (*Action)(void*, T1, T2, T3, const RuntimeMethod*); static inline void Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1, T2 p2, T3 p3) { VirtualInvokeData invokeData; il2cpp_codegen_get_generic_interface_invoke_data(method, obj, &invokeData); ((Action)invokeData.methodPtr)(obj, p1, p2, p3, invokeData.method); } }; template <typename T1, typename T2, typename T3, typename T4> struct GenericInterfaceActionInvoker4 { typedef void (*Action)(void*, T1, T2, T3, T4, const RuntimeMethod*); static inline void Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1, T2 p2, T3 p3, T4 p4) { VirtualInvokeData invokeData; il2cpp_codegen_get_generic_interface_invoke_data(method, obj, &invokeData); ((Action)invokeData.methodPtr)(obj, p1, p2, p3, p4, invokeData.method); } }; template <typename R, typename T1> struct GenericInterfaceFuncInvoker1 { typedef R (*Func)(void*, T1, const RuntimeMethod*); static inline R Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1) { VirtualInvokeData invokeData; il2cpp_codegen_get_generic_interface_invoke_data(method, obj, &invokeData); return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method); } }; // System.Action`1<System.Object> struct Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0; // System.Action`1<UnityEngine.XR.WSA.Input.GestureErrorEventArgs> struct Action_1_t86FE98C3236EF6A6C38460C0B9FE2D8262E44B6B; // System.Action`1<UnityEngine.XR.WSA.Input.HoldCanceledEventArgs> struct Action_1_t5DB3D8F91CD6BEB6D429ED4A29CC61B44CDD8A4B; // System.Action`1<UnityEngine.XR.WSA.Input.HoldCompletedEventArgs> struct Action_1_t37D466E712A7A553C87729F5DD58DC77C8A89FF0; // System.Action`1<UnityEngine.XR.WSA.Input.HoldStartedEventArgs> struct Action_1_t9A7EBE66F02FBEEDDB83D150DBABC2F2728C7F8E; // System.Action`1<UnityEngine.XR.WSA.Input.ManipulationCanceledEventArgs> struct Action_1_tB13B2372B219E1C2C06EFDBCE8BD7EE041A2EB5E; // System.Action`1<UnityEngine.XR.WSA.Input.ManipulationCompletedEventArgs> struct Action_1_t3D75FAEDED813354B2965399C726ABFD1A5EBC3F; // System.Action`1<UnityEngine.XR.WSA.Input.ManipulationStartedEventArgs> struct Action_1_t6DC7BD1E28CAAD24387D527C634AB60FA116325E; // System.Action`1<UnityEngine.XR.WSA.Input.ManipulationUpdatedEventArgs> struct Action_1_t6F72821471F95D09FC84BC9F98573CD2139C23DC; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs> struct Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs> struct Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs> struct Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs> struct Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C; // System.Action`1<UnityEngine.XR.WSA.Input.RecognitionEndedEventArgs> struct Action_1_tE903BE1931BE14124CF0EFF594B91436F631E6E7; // System.Action`1<UnityEngine.XR.WSA.Input.RecognitionStartedEventArgs> struct Action_1_tCDC01C5032C70E5DD6217277758BBB3991DC7A8E; // System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs> struct Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12; // System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase/Surface> struct Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4; // System.ArgumentException struct ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1; // System.ArgumentNullException struct ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD; // System.AsyncCallback struct AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4; // System.Char[] struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2; // System.Collections.Generic.Dictionary`2/Entry<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>[] struct EntryU5BU5D_t17D4C9628A2D23EEBCAA795C5F1AAD7A4C42CF60; // System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface> struct KeyCollection_tFAE3E69598B93CA315C7A4F3ED96F27C5102F8C6; // System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface> struct ValueCollection_tE9D45A1597E4E32B2E96FDE952D6265CD93A4924; // System.Collections.Generic.Dictionary`2<System.Int32,System.Object> struct Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884; // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.EventSystems.PointerEventData> struct Dictionary_2_t9F401E8FAE13945DFBD264E317248AB9CC9C36CA; // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface> struct Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10; // System.Collections.Generic.IEqualityComparer`1<System.Int32> struct IEqualityComparer_1_t7B82AA0F8B96BAAA21E36DDF7A1FE4348BDDBE95; // System.Collections.Generic.List`1<System.Int32> struct List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226; // System.Collections.Generic.List`1<UnityEngine.EventSystems.BaseInputModule> struct List_1_t4FB5BF302DAD74D690156A022C4FA4D4081E9B26; // System.Collections.Generic.List`1<UnityEngine.EventSystems.EventSystem> struct List_1_t882412D5BE0B5BFC1900366319F8B2EB544BDD8B; // System.Collections.Generic.List`1<UnityEngine.EventSystems.RaycastResult> struct List_1_t1BB31D71CB8736DC35CCD9FFB9228FAFD427EB52; // System.Collections.Generic.List`1<UnityEngine.GameObject> struct List_1_t0087C02D52C7E5CFF8C0C55FC0453A28FD5F055B; // System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord> struct List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0; // System.Collections.IDictionary struct IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7; // System.Comparison`1<UnityEngine.EventSystems.RaycastResult> struct Comparison_1_t32541D3F4C935BBA3800256BD21A7CA8148AAC13; // System.Delegate struct Delegate_t; // System.DelegateData struct DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE; // System.Delegate[] struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86; // System.Diagnostics.StackTrace[] struct StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196; // System.IAsyncResult struct IAsyncResult_t8E194308510B375B42432981AE5E7488C458D598; // System.Int32[] struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83; // System.IntPtr[] struct IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD; // System.Predicate`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord> struct Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD; // System.Reflection.MethodInfo struct MethodInfo_t; // System.Runtime.Serialization.SafeSerializationManager struct SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770; // System.String struct String_t; // System.Void struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017; // UnityEngine.Audio.AudioSpatializerMicrosoft struct AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83; // UnityEngine.AudioSource struct AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C; // UnityEngine.Camera struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34; // UnityEngine.Camera/CameraCallback struct CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0; // UnityEngine.Collider struct Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF; // UnityEngine.Component struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621; // UnityEngine.EventSystems.AxisEventData struct AxisEventData_t6684191CFC2ADB0DD66DD195174D92F017862442; // UnityEngine.EventSystems.BaseEventData struct BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5; // UnityEngine.EventSystems.BaseInput struct BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82; // UnityEngine.EventSystems.BaseInputModule struct BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939; // UnityEngine.EventSystems.BaseRaycaster struct BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966; // UnityEngine.EventSystems.EventSystem struct EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77; // UnityEngine.EventSystems.HoloLensInput struct HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04; // UnityEngine.EventSystems.HoloLensInputModule struct HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB; // UnityEngine.EventSystems.PointerEventData struct PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63; // UnityEngine.EventSystems.PointerInputModule struct PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C; // UnityEngine.EventSystems.PointerInputModule/MouseState struct MouseState_t4D6249AEF3F24542B7F13D49020EC1B8DC2F05D7; // UnityEngine.EventSystems.StandaloneInputModule struct StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5; // UnityEngine.EventSystems.UIBehaviour struct UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70; // UnityEngine.GameObject struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F; // UnityEngine.Material struct Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598; // UnityEngine.Mesh struct Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C; // UnityEngine.MeshCollider struct MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE; // UnityEngine.MeshFilter struct MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0; // UnityEngine.MeshRenderer struct MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED; // UnityEngine.MonoBehaviour struct MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429; // UnityEngine.Object struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0; // UnityEngine.PhysicMaterial struct PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8; // UnityEngine.RectTransform struct RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20; // UnityEngine.RectTransform/ReapplyDrivenProperties struct ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D; // UnityEngine.Renderer struct Renderer_t0556D67DD582620D1F495627EDE30D03284151F4; // UnityEngine.Transform struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA; // UnityEngine.XR.WSA.Input.GestureRecognizer struct GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE; // UnityEngine.XR.WSA.Input.GestureRecognizer/GestureErrorDelegate struct GestureErrorDelegate_tFA3E7E6A9E25ADFB4D2FF30E7CD521937F795084; // UnityEngine.XR.WSA.Input.GestureRecognizer/HoldCanceledEventDelegate struct HoldCanceledEventDelegate_t5073A875A657B659A55D9111BF52AFA5E8FA22C2; // UnityEngine.XR.WSA.Input.GestureRecognizer/HoldCompletedEventDelegate struct HoldCompletedEventDelegate_tE1C05DE1BDD2AF5B15D561CE9EEB23259CAD0A7A; // UnityEngine.XR.WSA.Input.GestureRecognizer/HoldStartedEventDelegate struct HoldStartedEventDelegate_t79DBAFBD8DB4A33E282665E171EF7F7903DA57B2; // UnityEngine.XR.WSA.Input.GestureRecognizer/ManipulationCanceledEventDelegate struct ManipulationCanceledEventDelegate_t5D62D76C35A55841145479B9708F35A667B42917; // UnityEngine.XR.WSA.Input.GestureRecognizer/ManipulationCompletedEventDelegate struct ManipulationCompletedEventDelegate_tFBC536B9D0EED5699871DB3855AA02653F35B6A4; // UnityEngine.XR.WSA.Input.GestureRecognizer/ManipulationStartedEventDelegate struct ManipulationStartedEventDelegate_tECC88952F89E480F898CF5710A0A47D1BA85C9F0; // UnityEngine.XR.WSA.Input.GestureRecognizer/ManipulationUpdatedEventDelegate struct ManipulationUpdatedEventDelegate_t521F96EEF0CE5D99D54AA2AB2D075CBD66D46406; // UnityEngine.XR.WSA.Input.GestureRecognizer/NavigationCanceledEventDelegate struct NavigationCanceledEventDelegate_tA82EB6DFFB53212C7FADC09362EA424CEEF2A954; // UnityEngine.XR.WSA.Input.GestureRecognizer/NavigationCompletedEventDelegate struct NavigationCompletedEventDelegate_tF2B1D25EF7819624117F3C6E25E70F80B238F5D3; // UnityEngine.XR.WSA.Input.GestureRecognizer/NavigationStartedEventDelegate struct NavigationStartedEventDelegate_tC56D514B35B7270BBE8D21E15C435EDBA84F1AEF; // UnityEngine.XR.WSA.Input.GestureRecognizer/NavigationUpdatedEventDelegate struct NavigationUpdatedEventDelegate_t5802B4B5608A4D915714D70A5A51C82C6E34C69A; // UnityEngine.XR.WSA.Input.GestureRecognizer/RecognitionEndedEventDelegate struct RecognitionEndedEventDelegate_t00AB7FD9F0C0070CA19697B832E58151348F700B; // UnityEngine.XR.WSA.Input.GestureRecognizer/RecognitionStartedEventDelegate struct RecognitionStartedEventDelegate_t8C076BC7E24C0326F46F8EBB3B3CB7495027B214; // UnityEngine.XR.WSA.Input.GestureRecognizer/TappedEventDelegate struct TappedEventDelegate_tC33CDAA9CA071369B711FA5FDE947E122072D34F; // UnityEngine.XR.WSA.SpatialMappingBase struct SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54; // UnityEngine.XR.WSA.SpatialMappingBase/Surface struct Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D; // UnityEngine.XR.WSA.SpatialMappingBase/SurfaceDataReadyCallback struct SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592; // UnityEngine.XR.WSA.SpatialMappingCollider struct SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2; // UnityEngine.XR.WSA.SpatialMappingContext struct SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956; // UnityEngine.XR.WSA.SpatialMappingContext/<>c__DisplayClass12_0 struct U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692; // UnityEngine.XR.WSA.SpatialMappingContext/<>c__DisplayClass13_0 struct U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89; // UnityEngine.XR.WSA.SpatialMappingContext/GetHighestPriorityCallback struct GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6; // UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest[] struct SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD; // UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C; // UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord[] struct SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1; // UnityEngine.XR.WSA.SpatialMappingRenderer struct SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB; // UnityEngine.XR.WSA.SurfaceData struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66; // UnityEngine.XR.WSA.SurfaceObserver struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864; // UnityEngine.XR.WSA.SurfaceObserver/SurfaceChangedDelegate struct SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1; // UnityEngine.XR.WSA.SurfaceObserver/SurfaceDataReadyDelegate struct SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092; // UnityEngine.XR.WSA.WorldAnchor struct WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE; // UnityEngine.XR.WSA.WorldAnchor/OnTrackingChangedDelegate struct OnTrackingChangedDelegate_t213BE1DC543541B52A31539ACEA406782B1DB253; IL2CPP_EXTERN_C RuntimeClass* Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Boolean_tB53F6830F670160873277339AA58F15CAED4399C_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeField* U3CPrivateImplementationDetailsU3E_tBE168E59272B45F7A94B1F451A29AE3BCD661A15____D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0_FieldInfo_var; IL2CPP_EXTERN_C String_t* _stringLiteral05C07D1FCAF258FA9A5BB24E01F6316B3F11BE63; IL2CPP_EXTERN_C String_t* _stringLiteral0BA701B50A5948064432E087F10E47BBBB8F47F6; IL2CPP_EXTERN_C String_t* _stringLiteral19EA9A5EB531CE393DCA73F73B60048CF49D5D7E; IL2CPP_EXTERN_C String_t* _stringLiteral307527C227AC648BB119BCB457EBB8466E79827C; IL2CPP_EXTERN_C String_t* _stringLiteral31CF5C222B7921A07D0A9EF275277FC32788832F; IL2CPP_EXTERN_C String_t* _stringLiteral3D9A40DDD9AF3D33ED1C157EA10B0DD27C405802; IL2CPP_EXTERN_C String_t* _stringLiteral44A541D01189AFFA834A25E0A93A328341730C75; IL2CPP_EXTERN_C String_t* _stringLiteral62234BEF4038675D8DA131376AEB172897EAB03D; IL2CPP_EXTERN_C String_t* _stringLiteral82AA2F03AC2CF34CF663318762D43CC36CFFC6C1; IL2CPP_EXTERN_C String_t* _stringLiteral83D748A4D24B0945189E5C60B86FCDCF5E71A290; IL2CPP_EXTERN_C String_t* _stringLiteral85EE1AFFF61EEAA487746F3F8C1685BB1C03665C; IL2CPP_EXTERN_C String_t* _stringLiteralA5720A5DE163F01678ACB0606AF0EEED421C94EB; IL2CPP_EXTERN_C String_t* _stringLiteralAC5BF571DE9975A9AA7E383FF7EA6E291929C5DE; IL2CPP_EXTERN_C String_t* _stringLiteralAE9F75EABE0850F0B8A701C7B2478D0F8C395D79; IL2CPP_EXTERN_C String_t* _stringLiteralB782D9835143821E697B67407CCFB082FE6322A9; IL2CPP_EXTERN_C String_t* _stringLiteralDD1FA74A105812D05EDBBA6CA1731A9A0C697ED4; IL2CPP_EXTERN_C String_t* _stringLiteralEB6EF0B99606BAD040095156CE2B1FAAC0C59C6A; IL2CPP_EXTERN_C String_t* _stringLiteralF9641356B56AB3E220318DB9A52C7620EC3E8076; IL2CPP_EXTERN_C const RuntimeMethod* Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_m03B4ABDDD2484F8DD29BC579D18F63D2D69B8CBC_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Component_GetComponent_TisAudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C_m04C8E98F2393C77979C9D8F6DE1D98343EF025E8_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Component_GetComponent_TisHoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB_m5EB41AF0200183B780E6DECD1274962F1367CF1D_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Component_GetComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_m698FB9682EE309CAAA265B29C21BF06A62F6C9B2_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_set_Item_m4EF301E32DD6BA510761DF9393AB9EA87C5CB686_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* GameObject_AddComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_mF50CC95A955F7405B540971920DE4739BE47684B_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* GameObject_AddComponent_TisMeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE_m38A789A66BD8A824B7D5FF46C20C4BD3CE0F3B3C_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* GameObject_AddComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_m98AEA1EDDC59492203D06FA2912152C37C4164E4_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* GameObject_AddComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m16409C054F66125E0380BDDDB1454118A3BAD60E_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* GameObject_AddComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_m41101CD1505A6B6B9717C15FACAEE0DD4D1E9CEF_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_mD1BA4FFEB800AB3D102141CD0A0ECE237EA70FB4_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m91C1D9637A332988C72E62D52DFCFE89A6DDAB72_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisRectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_m2E5F02DDA13C176AF75B4E7C1DB801D89E053B2C_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_mEC8104A64D5255720AC2B56454CD4B573B4B2971_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* HoloLensInput_GestureHandler_OnNavigationCanceled_m67FD466D3B261B148F061CBB032BA5B7FA2F6963_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* HoloLensInput_GestureHandler_OnNavigationCompleted_m8F16371E94B150666B4A4397203E9CF9B4FB5BED_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* HoloLensInput_GestureHandler_OnNavigationUpdated_m7FD257B72D8CC5551DEF9E75CD686E59B42F38F0_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* HoloLensInput_GestureHandler_OnTapped_mB3A4E46BB674B671E6A2047E4F2253DA34B9026E_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* SpatialMappingBase_OnSurfaceChanged_m8DF08A2DABB49D3C56628EF2E199D128A50F3E3A_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* SpatialMappingCollider_U3CApplyPropertiesToCachedSurfacesU3Eb__17_0_m4986DE9A169D6A444E7FD3CAD56479EFB9E761AE_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* SpatialMappingContext_OnSurfaceDataReady_m504770F8B83EB20DF9020AAE149461207F847D4C_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CU3Ec__DisplayClass12_0_U3CRegisterComponentU3Eb__0_m1F1967D704E5FE3AD22823A3F582232B7CB9E811_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CU3Ec__DisplayClass13_0_U3CDeregisterComponentU3Eb__0_m531DFED41F5A4968FD1E2672AA38C55D49452F22_RuntimeMethod_var; IL2CPP_EXTERN_C const uint32_t AudioSpatializerMicrosoft_get_audioSource_m64394B367E4F22778216B603971AC6CB0666FE26_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t GetHighestPriorityCallback_BeginInvoke_m1CE22675CEE0E13C0A8E683B62D6CE4B3E1DEB80_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HoloLensInputModule_Awake_m0F48A620040126693CDC656386383B668941B587_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HoloLensInputModule_IsModuleSupported_mBAAC8841B1C755DBC0FB705C4A33E686B863D2A2_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HoloLensInput_Awake_m70BA1043D113FABE7F7C06271F3B7998A0BB45F5_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HoloLensInput_GetGazeAndGestureScreenPosition_m7DB2FDF3835B4EDD8C9B8D8FB11D73FB54CDEE2B_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HoloLensInput_GetGestureScrollDelta_m24FDE0BFC26D5173002FBABAD945914E206602B8_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HoloLensInput_OnDestroy_m0D0E7BB08EE4B8029E6ACBF59E6AFAAC548BE482_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HoloLensInput__ctor_m029C51F216AAC03C235E01412E8F174E95D42634_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_AddRequiredComponentsForBaking_m39F67F97247869F12E9E806B6D21AB100AA9F7EA_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_CreateSurface_m4B108724636C35394AE9D686FCB8C39517C6671C_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_DestroySurface_m61864CCED61827A61A95FA29FAD6ED9920F67E04_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_ForEachSurfaceInCache_mE2BFDBAD198BBC7314E600477E1209864D8C2F12_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_OnAddOrUpdateSurface_m88092554E531DD3FEF57CE0272920428FFF44A8A_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_OnDestroy_mAF2456D391A059BD21C03AC4F8D0CC1119677E54_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_OnDisable_mB17047369711C050E2A6C4725FFE888A4530A32D_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_OnEnable_m0AE105AB92958A9BDAB9089065C05341B5BEA907_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_OnRemoveSurface_m170B065EDEEE321145D9AFE0FDE9C3202F63B134_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_ProcessEvictedObjects_m2717BF741005C02CDBB9137EDF32C6EE4E088AD4_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_Start_m63DC442935AE91EEDD3F0EA013E8CDC49B51E44B_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_TryGetHighestPriorityRequest_m13220FB84B555EBE712CAB161B61F380D5849A70_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_UpdateSurfaceData_m54007C547C0BEA915A1178C572AA8F8D2BF598B4_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_Update_m2A9E883E6650605A6615668798362076DE627665_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase__cctor_mDE92F7F277D10B7F98485323B7E58847C05CB24B_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1BUnity_XR_WindowsMR_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider_AddRequiredComponentsForBaking_m713A141669C87A26C040C213FBDC53A0AFEAB7BC_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider_OnBeginSurfaceEviction_m21A70B520DA8C193B777EE78E39AE86AE103CACF_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider_OnSurfaceDataReady_m091E11BE2C56B1B6DEEF271012886CE195B90950_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider_U3CApplyPropertiesToCachedSurfacesU3Eb__17_0_m4986DE9A169D6A444E7FD3CAD56479EFB9E761AE_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider__ctor_mF5B1E8581795F2235B94D2192D5370FE2691E781_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_PropagateDataReadyEventToComponents_m16907610BA5CF7D52CF280FD949E783E9ECFD5CA_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_UpdateInFlightRecords_mB8AD8D918F398F51B66087489675B921FC57BD21_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingContext__cctor_mE1027CD21E2DC2792C377C0FAC92F4A42B5506CD_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingContext__ctor_mE213514204AEFCDC1130E4496A75CAC9C190EEC9_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010Unity_XR_WindowsMR_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer_DestroySurface_mD0C57EF7CC663F5487EC4AB804E6AED68460E2BA_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer_OnBeginSurfaceEviction_mCD9F24ED93F611DFA1A51A198CC5CC00D5291AFE_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer_OnSurfaceDataReady_m420A3B0A5C033BCC60642E85BAF41408A07B0BFA_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer__ctor_m14922A96C242112D7063A6D099A62FAE3683AA77_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SurfaceDataReadyCallback_BeginInvoke_mB767F35E7B337B4AC98E4294929A4E0262A964DB_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t U3CU3Ec__DisplayClass12_0_U3CRegisterComponentU3Eb__0_m1F1967D704E5FE3AD22823A3F582232B7CB9E811_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t U3CU3Ec__DisplayClass13_0_U3CDeregisterComponentU3Eb__0_m531DFED41F5A4968FD1E2672AA38C55D49452F22_MetadataUsageId; struct Delegate_t_marshaled_com; struct Delegate_t_marshaled_pinvoke; struct Exception_t_marshaled_com; struct Exception_t_marshaled_pinvoke; struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C;; struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com; struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com;; struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke; struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke;; struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66;; struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com; struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com;; struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke; struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke;; struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864;; struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com; struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com;; struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke; struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke;; struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86; struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83; struct SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD; struct SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1; IL2CPP_EXTERN_C_BEGIN IL2CPP_EXTERN_C_END #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t1C9214707077BD8585D010C1E3AE7AB53D01423B { public: public: }; // System.Object struct Il2CppArrayBounds; // System.Array // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface> struct Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 : public RuntimeObject { public: // System.Int32[] System.Collections.Generic.Dictionary`2::buckets Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___buckets_0; // System.Collections.Generic.Dictionary`2_Entry<TKey,TValue>[] System.Collections.Generic.Dictionary`2::entries EntryU5BU5D_t17D4C9628A2D23EEBCAA795C5F1AAD7A4C42CF60* ___entries_1; // System.Int32 System.Collections.Generic.Dictionary`2::count int32_t ___count_2; // System.Int32 System.Collections.Generic.Dictionary`2::version int32_t ___version_3; // System.Int32 System.Collections.Generic.Dictionary`2::freeList int32_t ___freeList_4; // System.Int32 System.Collections.Generic.Dictionary`2::freeCount int32_t ___freeCount_5; // System.Collections.Generic.IEqualityComparer`1<TKey> System.Collections.Generic.Dictionary`2::comparer RuntimeObject* ___comparer_6; // System.Collections.Generic.Dictionary`2_KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::keys KeyCollection_tFAE3E69598B93CA315C7A4F3ED96F27C5102F8C6 * ___keys_7; // System.Collections.Generic.Dictionary`2_ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values ValueCollection_tE9D45A1597E4E32B2E96FDE952D6265CD93A4924 * ___values_8; // System.Object System.Collections.Generic.Dictionary`2::_syncRoot RuntimeObject * ____syncRoot_9; public: inline static int32_t get_offset_of_buckets_0() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___buckets_0)); } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_buckets_0() const { return ___buckets_0; } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_buckets_0() { return &___buckets_0; } inline void set_buckets_0(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value) { ___buckets_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___buckets_0), (void*)value); } inline static int32_t get_offset_of_entries_1() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___entries_1)); } inline EntryU5BU5D_t17D4C9628A2D23EEBCAA795C5F1AAD7A4C42CF60* get_entries_1() const { return ___entries_1; } inline EntryU5BU5D_t17D4C9628A2D23EEBCAA795C5F1AAD7A4C42CF60** get_address_of_entries_1() { return &___entries_1; } inline void set_entries_1(EntryU5BU5D_t17D4C9628A2D23EEBCAA795C5F1AAD7A4C42CF60* value) { ___entries_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___entries_1), (void*)value); } inline static int32_t get_offset_of_count_2() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___count_2)); } inline int32_t get_count_2() const { return ___count_2; } inline int32_t* get_address_of_count_2() { return &___count_2; } inline void set_count_2(int32_t value) { ___count_2 = value; } inline static int32_t get_offset_of_version_3() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___version_3)); } inline int32_t get_version_3() const { return ___version_3; } inline int32_t* get_address_of_version_3() { return &___version_3; } inline void set_version_3(int32_t value) { ___version_3 = value; } inline static int32_t get_offset_of_freeList_4() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___freeList_4)); } inline int32_t get_freeList_4() const { return ___freeList_4; } inline int32_t* get_address_of_freeList_4() { return &___freeList_4; } inline void set_freeList_4(int32_t value) { ___freeList_4 = value; } inline static int32_t get_offset_of_freeCount_5() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___freeCount_5)); } inline int32_t get_freeCount_5() const { return ___freeCount_5; } inline int32_t* get_address_of_freeCount_5() { return &___freeCount_5; } inline void set_freeCount_5(int32_t value) { ___freeCount_5 = value; } inline static int32_t get_offset_of_comparer_6() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___comparer_6)); } inline RuntimeObject* get_comparer_6() const { return ___comparer_6; } inline RuntimeObject** get_address_of_comparer_6() { return &___comparer_6; } inline void set_comparer_6(RuntimeObject* value) { ___comparer_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___comparer_6), (void*)value); } inline static int32_t get_offset_of_keys_7() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___keys_7)); } inline KeyCollection_tFAE3E69598B93CA315C7A4F3ED96F27C5102F8C6 * get_keys_7() const { return ___keys_7; } inline KeyCollection_tFAE3E69598B93CA315C7A4F3ED96F27C5102F8C6 ** get_address_of_keys_7() { return &___keys_7; } inline void set_keys_7(KeyCollection_tFAE3E69598B93CA315C7A4F3ED96F27C5102F8C6 * value) { ___keys_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___keys_7), (void*)value); } inline static int32_t get_offset_of_values_8() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___values_8)); } inline ValueCollection_tE9D45A1597E4E32B2E96FDE952D6265CD93A4924 * get_values_8() const { return ___values_8; } inline ValueCollection_tE9D45A1597E4E32B2E96FDE952D6265CD93A4924 ** get_address_of_values_8() { return &___values_8; } inline void set_values_8(ValueCollection_tE9D45A1597E4E32B2E96FDE952D6265CD93A4924 * value) { ___values_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___values_8), (void*)value); } inline static int32_t get_offset_of__syncRoot_9() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ____syncRoot_9)); } inline RuntimeObject * get__syncRoot_9() const { return ____syncRoot_9; } inline RuntimeObject ** get_address_of__syncRoot_9() { return &____syncRoot_9; } inline void set__syncRoot_9(RuntimeObject * value) { ____syncRoot_9 = value; Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_9), (void*)value); } }; // System.Collections.Generic.List`1<System.Int32> struct List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 : public RuntimeObject { public: // T[] System.Collections.Generic.List`1::_items Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ____items_1; // System.Int32 System.Collections.Generic.List`1::_size int32_t ____size_2; // System.Int32 System.Collections.Generic.List`1::_version int32_t ____version_3; // System.Object System.Collections.Generic.List`1::_syncRoot RuntimeObject * ____syncRoot_4; public: inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____items_1)); } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get__items_1() const { return ____items_1; } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of__items_1() { return &____items_1; } inline void set__items_1(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value) { ____items_1 = value; Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value); } inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____size_2)); } inline int32_t get__size_2() const { return ____size_2; } inline int32_t* get_address_of__size_2() { return &____size_2; } inline void set__size_2(int32_t value) { ____size_2 = value; } inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____version_3)); } inline int32_t get__version_3() const { return ____version_3; } inline int32_t* get_address_of__version_3() { return &____version_3; } inline void set__version_3(int32_t value) { ____version_3 = value; } inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____syncRoot_4)); } inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; } inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; } inline void set__syncRoot_4(RuntimeObject * value) { ____syncRoot_4 = value; Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value); } }; struct List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226_StaticFields { public: // T[] System.Collections.Generic.List`1::_emptyArray Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ____emptyArray_5; public: inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226_StaticFields, ____emptyArray_5)); } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get__emptyArray_5() const { return ____emptyArray_5; } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of__emptyArray_5() { return &____emptyArray_5; } inline void set__emptyArray_5(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value) { ____emptyArray_5 = value; Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value); } }; // System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord> struct List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 : public RuntimeObject { public: // T[] System.Collections.Generic.List`1::_items SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* ____items_1; // System.Int32 System.Collections.Generic.List`1::_size int32_t ____size_2; // System.Int32 System.Collections.Generic.List`1::_version int32_t ____version_3; // System.Object System.Collections.Generic.List`1::_syncRoot RuntimeObject * ____syncRoot_4; public: inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0, ____items_1)); } inline SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* get__items_1() const { return ____items_1; } inline SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1** get_address_of__items_1() { return &____items_1; } inline void set__items_1(SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* value) { ____items_1 = value; Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value); } inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0, ____size_2)); } inline int32_t get__size_2() const { return ____size_2; } inline int32_t* get_address_of__size_2() { return &____size_2; } inline void set__size_2(int32_t value) { ____size_2 = value; } inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0, ____version_3)); } inline int32_t get__version_3() const { return ____version_3; } inline int32_t* get_address_of__version_3() { return &____version_3; } inline void set__version_3(int32_t value) { ____version_3 = value; } inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0, ____syncRoot_4)); } inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; } inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; } inline void set__syncRoot_4(RuntimeObject * value) { ____syncRoot_4 = value; Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value); } }; struct List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0_StaticFields { public: // T[] System.Collections.Generic.List`1::_emptyArray SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* ____emptyArray_5; public: inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0_StaticFields, ____emptyArray_5)); } inline SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* get__emptyArray_5() const { return ____emptyArray_5; } inline SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1** get_address_of__emptyArray_5() { return &____emptyArray_5; } inline void set__emptyArray_5(SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* value) { ____emptyArray_5 = value; Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value); } }; // System.String struct String_t : public RuntimeObject { public: // System.Int32 System.String::m_stringLength int32_t ___m_stringLength_0; // System.Char System.String::m_firstChar Il2CppChar ___m_firstChar_1; public: inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); } inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; } inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; } inline void set_m_stringLength_0(int32_t value) { ___m_stringLength_0 = value; } inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); } inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; } inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; } inline void set_m_firstChar_1(Il2CppChar value) { ___m_firstChar_1 = value; } }; struct String_t_StaticFields { public: // System.String System.String::Empty String_t* ___Empty_5; public: inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); } inline String_t* get_Empty_5() const { return ___Empty_5; } inline String_t** get_address_of_Empty_5() { return &___Empty_5; } inline void set_Empty_5(String_t* value) { ___Empty_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value); } }; // System.ValueType struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject { public: public: }; // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_com { }; // UnityEngine.EventSystems.AbstractEventData struct AbstractEventData_t636F385820C291DAE25897BCEB4FBCADDA3B75F6 : public RuntimeObject { public: // System.Boolean UnityEngine.EventSystems.AbstractEventData::m_Used bool ___m_Used_0; public: inline static int32_t get_offset_of_m_Used_0() { return static_cast<int32_t>(offsetof(AbstractEventData_t636F385820C291DAE25897BCEB4FBCADDA3B75F6, ___m_Used_0)); } inline bool get_m_Used_0() const { return ___m_Used_0; } inline bool* get_address_of_m_Used_0() { return &___m_Used_0; } inline void set_m_Used_0(bool value) { ___m_Used_0 = value; } }; // UnityEngine.XR.WSA.SpatialMappingContext struct SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 : public RuntimeObject { public: // System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord> UnityEngine.XR.WSA.SpatialMappingContext::m_Components List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * ___m_Components_2; // UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest[] UnityEngine.XR.WSA.SpatialMappingContext::m_InFlightRequests SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* ___m_InFlightRequests_3; // System.Int32 UnityEngine.XR.WSA.SpatialMappingContext::m_InFlightSurfaces int32_t ___m_InFlightSurfaces_4; // System.Int32 UnityEngine.XR.WSA.SpatialMappingContext::m_NextIndex int32_t ___m_NextIndex_5; public: inline static int32_t get_offset_of_m_Components_2() { return static_cast<int32_t>(offsetof(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956, ___m_Components_2)); } inline List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * get_m_Components_2() const { return ___m_Components_2; } inline List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 ** get_address_of_m_Components_2() { return &___m_Components_2; } inline void set_m_Components_2(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * value) { ___m_Components_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Components_2), (void*)value); } inline static int32_t get_offset_of_m_InFlightRequests_3() { return static_cast<int32_t>(offsetof(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956, ___m_InFlightRequests_3)); } inline SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* get_m_InFlightRequests_3() const { return ___m_InFlightRequests_3; } inline SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD** get_address_of_m_InFlightRequests_3() { return &___m_InFlightRequests_3; } inline void set_m_InFlightRequests_3(SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* value) { ___m_InFlightRequests_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_InFlightRequests_3), (void*)value); } inline static int32_t get_offset_of_m_InFlightSurfaces_4() { return static_cast<int32_t>(offsetof(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956, ___m_InFlightSurfaces_4)); } inline int32_t get_m_InFlightSurfaces_4() const { return ___m_InFlightSurfaces_4; } inline int32_t* get_address_of_m_InFlightSurfaces_4() { return &___m_InFlightSurfaces_4; } inline void set_m_InFlightSurfaces_4(int32_t value) { ___m_InFlightSurfaces_4 = value; } inline static int32_t get_offset_of_m_NextIndex_5() { return static_cast<int32_t>(offsetof(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956, ___m_NextIndex_5)); } inline int32_t get_m_NextIndex_5() const { return ___m_NextIndex_5; } inline int32_t* get_address_of_m_NextIndex_5() { return &___m_NextIndex_5; } inline void set_m_NextIndex_5(int32_t value) { ___m_NextIndex_5 = value; } }; struct SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_StaticFields { public: // UnityEngine.XR.WSA.SpatialMappingContext UnityEngine.XR.WSA.SpatialMappingContext::instance SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * ___instance_0; public: inline static int32_t get_offset_of_instance_0() { return static_cast<int32_t>(offsetof(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_StaticFields, ___instance_0)); } inline SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * get_instance_0() const { return ___instance_0; } inline SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 ** get_address_of_instance_0() { return &___instance_0; } inline void set_instance_0(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * value) { ___instance_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___instance_0), (void*)value); } }; // UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass12_0 struct U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 : public RuntimeObject { public: // UnityEngine.XR.WSA.SpatialMappingBase UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass12_0::smComponent SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent_0; public: inline static int32_t get_offset_of_smComponent_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692, ___smComponent_0)); } inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * get_smComponent_0() const { return ___smComponent_0; } inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 ** get_address_of_smComponent_0() { return &___smComponent_0; } inline void set_smComponent_0(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * value) { ___smComponent_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___smComponent_0), (void*)value); } }; // UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass13_0 struct U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 : public RuntimeObject { public: // UnityEngine.XR.WSA.SpatialMappingBase UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass13_0::smComponent SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent_0; public: inline static int32_t get_offset_of_smComponent_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89, ___smComponent_0)); } inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * get_smComponent_0() const { return ___smComponent_0; } inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 ** get_address_of_smComponent_0() { return &___smComponent_0; } inline void set_smComponent_0(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * value) { ___smComponent_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___smComponent_0), (void*)value); } }; // UnityEngine.XR.WSA.SurfaceObserver struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 : public RuntimeObject { public: // System.Int32 UnityEngine.XR.WSA.SurfaceObserver::m_Observer int32_t ___m_Observer_1; public: inline static int32_t get_offset_of_m_Observer_1() { return static_cast<int32_t>(offsetof(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864, ___m_Observer_1)); } inline int32_t get_m_Observer_1() const { return ___m_Observer_1; } inline int32_t* get_address_of_m_Observer_1() { return &___m_Observer_1; } inline void set_m_Observer_1(int32_t value) { ___m_Observer_1 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.XR.WSA.SurfaceObserver struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke { int32_t ___m_Observer_1; }; // Native definition for COM marshalling of UnityEngine.XR.WSA.SurfaceObserver struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com { int32_t ___m_Observer_1; }; // <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D12 struct __StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A { public: union { struct { union { }; }; uint8_t __StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A__padding[12]; }; public: }; // System.Boolean struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C { public: // System.Boolean System.Boolean::m_value bool ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C, ___m_value_0)); } inline bool get_m_value_0() const { return ___m_value_0; } inline bool* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(bool value) { ___m_value_0 = value; } }; struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields { public: // System.String System.Boolean::TrueString String_t* ___TrueString_5; // System.String System.Boolean::FalseString String_t* ___FalseString_6; public: inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___TrueString_5)); } inline String_t* get_TrueString_5() const { return ___TrueString_5; } inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; } inline void set_TrueString_5(String_t* value) { ___TrueString_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value); } inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___FalseString_6)); } inline String_t* get_FalseString_6() const { return ___FalseString_6; } inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; } inline void set_FalseString_6(String_t* value) { ___FalseString_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value); } }; // System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object> struct KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE { public: // TKey System.Collections.Generic.KeyValuePair`2::key int32_t ___key_0; // TValue System.Collections.Generic.KeyValuePair`2::value RuntimeObject * ___value_1; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE, ___key_0)); } inline int32_t get_key_0() const { return ___key_0; } inline int32_t* get_address_of_key_0() { return &___key_0; } inline void set_key_0(int32_t value) { ___key_0 = value; } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE, ___value_1)); } inline RuntimeObject * get_value_1() const { return ___value_1; } inline RuntimeObject ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(RuntimeObject * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value); } }; // System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface> struct KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 { public: // TKey System.Collections.Generic.KeyValuePair`2::key int32_t ___key_0; // TValue System.Collections.Generic.KeyValuePair`2::value Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___value_1; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248, ___key_0)); } inline int32_t get_key_0() const { return ___key_0; } inline int32_t* get_address_of_key_0() { return &___key_0; } inline void set_key_0(int32_t value) { ___key_0 = value; } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248, ___value_1)); } inline Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * get_value_1() const { return ___value_1; } inline Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value); } }; // System.DateTime struct DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 { public: // System.UInt64 System.DateTime::dateData uint64_t ___dateData_44; public: inline static int32_t get_offset_of_dateData_44() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132, ___dateData_44)); } inline uint64_t get_dateData_44() const { return ___dateData_44; } inline uint64_t* get_address_of_dateData_44() { return &___dateData_44; } inline void set_dateData_44(uint64_t value) { ___dateData_44 = value; } }; struct DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields { public: // System.Int32[] System.DateTime::DaysToMonth365 Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___DaysToMonth365_29; // System.Int32[] System.DateTime::DaysToMonth366 Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___DaysToMonth366_30; // System.DateTime System.DateTime::MinValue DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___MinValue_31; // System.DateTime System.DateTime::MaxValue DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___MaxValue_32; public: inline static int32_t get_offset_of_DaysToMonth365_29() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___DaysToMonth365_29)); } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_DaysToMonth365_29() const { return ___DaysToMonth365_29; } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_DaysToMonth365_29() { return &___DaysToMonth365_29; } inline void set_DaysToMonth365_29(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value) { ___DaysToMonth365_29 = value; Il2CppCodeGenWriteBarrier((void**)(&___DaysToMonth365_29), (void*)value); } inline static int32_t get_offset_of_DaysToMonth366_30() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___DaysToMonth366_30)); } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_DaysToMonth366_30() const { return ___DaysToMonth366_30; } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_DaysToMonth366_30() { return &___DaysToMonth366_30; } inline void set_DaysToMonth366_30(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value) { ___DaysToMonth366_30 = value; Il2CppCodeGenWriteBarrier((void**)(&___DaysToMonth366_30), (void*)value); } inline static int32_t get_offset_of_MinValue_31() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___MinValue_31)); } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_MinValue_31() const { return ___MinValue_31; } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_MinValue_31() { return &___MinValue_31; } inline void set_MinValue_31(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value) { ___MinValue_31 = value; } inline static int32_t get_offset_of_MaxValue_32() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___MaxValue_32)); } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_MaxValue_32() const { return ___MaxValue_32; } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_MaxValue_32() { return &___MaxValue_32; } inline void set_MaxValue_32(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value) { ___MaxValue_32 = value; } }; // System.Double struct Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409 { public: // System.Double System.Double::m_value double ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409, ___m_value_0)); } inline double get_m_value_0() const { return ___m_value_0; } inline double* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(double value) { ___m_value_0 = value; } }; struct Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409_StaticFields { public: // System.Double System.Double::NegativeZero double ___NegativeZero_7; public: inline static int32_t get_offset_of_NegativeZero_7() { return static_cast<int32_t>(offsetof(Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409_StaticFields, ___NegativeZero_7)); } inline double get_NegativeZero_7() const { return ___NegativeZero_7; } inline double* get_address_of_NegativeZero_7() { return &___NegativeZero_7; } inline void set_NegativeZero_7(double value) { ___NegativeZero_7 = value; } }; // System.Enum struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521 : public ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF { public: public: }; struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields { public: // System.Char[] System.Enum::enumSeperatorCharArray CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___enumSeperatorCharArray_0; public: inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields, ___enumSeperatorCharArray_0)); } inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; } inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; } inline void set_enumSeperatorCharArray_0(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value) { ___enumSeperatorCharArray_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Enum struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_com { }; // System.Int32 struct Int32_t585191389E07734F19F3156FF88FB3EF4800D102 { public: // System.Int32 System.Int32::m_value int32_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_t585191389E07734F19F3156FF88FB3EF4800D102, ___m_value_0)); } inline int32_t get_m_value_0() const { return ___m_value_0; } inline int32_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(int32_t value) { ___m_value_0 = value; } }; // System.IntPtr struct IntPtr_t { public: // System.Void* System.IntPtr::m_value void* ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); } inline void* get_m_value_0() const { return ___m_value_0; } inline void** get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(void* value) { ___m_value_0 = value; } }; struct IntPtr_t_StaticFields { public: // System.IntPtr System.IntPtr::Zero intptr_t ___Zero_1; public: inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); } inline intptr_t get_Zero_1() const { return ___Zero_1; } inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; } inline void set_Zero_1(intptr_t value) { ___Zero_1 = value; } }; // System.Single struct Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1 { public: // System.Single System.Single::m_value float ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1, ___m_value_0)); } inline float get_m_value_0() const { return ___m_value_0; } inline float* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(float value) { ___m_value_0 = value; } }; // System.Void struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017 { public: union { struct { }; uint8_t Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017__padding[1]; }; public: }; // UnityEngine.EventSystems.BaseEventData struct BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 : public AbstractEventData_t636F385820C291DAE25897BCEB4FBCADDA3B75F6 { public: // UnityEngine.EventSystems.EventSystem UnityEngine.EventSystems.BaseEventData::m_EventSystem EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * ___m_EventSystem_1; public: inline static int32_t get_offset_of_m_EventSystem_1() { return static_cast<int32_t>(offsetof(BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5, ___m_EventSystem_1)); } inline EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * get_m_EventSystem_1() const { return ___m_EventSystem_1; } inline EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 ** get_address_of_m_EventSystem_1() { return &___m_EventSystem_1; } inline void set_m_EventSystem_1(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * value) { ___m_EventSystem_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_EventSystem_1), (void*)value); } }; // UnityEngine.Quaternion struct Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 { public: // System.Single UnityEngine.Quaternion::x float ___x_0; // System.Single UnityEngine.Quaternion::y float ___y_1; // System.Single UnityEngine.Quaternion::z float ___z_2; // System.Single UnityEngine.Quaternion::w float ___w_3; public: inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___x_0)); } inline float get_x_0() const { return ___x_0; } inline float* get_address_of_x_0() { return &___x_0; } inline void set_x_0(float value) { ___x_0 = value; } inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___y_1)); } inline float get_y_1() const { return ___y_1; } inline float* get_address_of_y_1() { return &___y_1; } inline void set_y_1(float value) { ___y_1 = value; } inline static int32_t get_offset_of_z_2() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___z_2)); } inline float get_z_2() const { return ___z_2; } inline float* get_address_of_z_2() { return &___z_2; } inline void set_z_2(float value) { ___z_2 = value; } inline static int32_t get_offset_of_w_3() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___w_3)); } inline float get_w_3() const { return ___w_3; } inline float* get_address_of_w_3() { return &___w_3; } inline void set_w_3(float value) { ___w_3 = value; } }; struct Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_StaticFields { public: // UnityEngine.Quaternion UnityEngine.Quaternion::identityQuaternion Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___identityQuaternion_4; public: inline static int32_t get_offset_of_identityQuaternion_4() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_StaticFields, ___identityQuaternion_4)); } inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_identityQuaternion_4() const { return ___identityQuaternion_4; } inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_identityQuaternion_4() { return &___identityQuaternion_4; } inline void set_identityQuaternion_4(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value) { ___identityQuaternion_4 = value; } }; // UnityEngine.Vector2 struct Vector2_tA85D2DD88578276CA8A8796756458277E72D073D { public: // System.Single UnityEngine.Vector2::x float ___x_0; // System.Single UnityEngine.Vector2::y float ___y_1; public: inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D, ___x_0)); } inline float get_x_0() const { return ___x_0; } inline float* get_address_of_x_0() { return &___x_0; } inline void set_x_0(float value) { ___x_0 = value; } inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D, ___y_1)); } inline float get_y_1() const { return ___y_1; } inline float* get_address_of_y_1() { return &___y_1; } inline void set_y_1(float value) { ___y_1 = value; } }; struct Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields { public: // UnityEngine.Vector2 UnityEngine.Vector2::zeroVector Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___zeroVector_2; // UnityEngine.Vector2 UnityEngine.Vector2::oneVector Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___oneVector_3; // UnityEngine.Vector2 UnityEngine.Vector2::upVector Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___upVector_4; // UnityEngine.Vector2 UnityEngine.Vector2::downVector Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___downVector_5; // UnityEngine.Vector2 UnityEngine.Vector2::leftVector Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___leftVector_6; // UnityEngine.Vector2 UnityEngine.Vector2::rightVector Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___rightVector_7; // UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___positiveInfinityVector_8; // UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___negativeInfinityVector_9; public: inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___zeroVector_2)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_zeroVector_2() const { return ___zeroVector_2; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_zeroVector_2() { return &___zeroVector_2; } inline void set_zeroVector_2(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___zeroVector_2 = value; } inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___oneVector_3)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_oneVector_3() const { return ___oneVector_3; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_oneVector_3() { return &___oneVector_3; } inline void set_oneVector_3(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___oneVector_3 = value; } inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___upVector_4)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_upVector_4() const { return ___upVector_4; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_upVector_4() { return &___upVector_4; } inline void set_upVector_4(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___upVector_4 = value; } inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___downVector_5)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_downVector_5() const { return ___downVector_5; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_downVector_5() { return &___downVector_5; } inline void set_downVector_5(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___downVector_5 = value; } inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___leftVector_6)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_leftVector_6() const { return ___leftVector_6; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_leftVector_6() { return &___leftVector_6; } inline void set_leftVector_6(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___leftVector_6 = value; } inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___rightVector_7)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_rightVector_7() const { return ___rightVector_7; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_rightVector_7() { return &___rightVector_7; } inline void set_rightVector_7(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___rightVector_7 = value; } inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___positiveInfinityVector_8)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; } inline void set_positiveInfinityVector_8(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___positiveInfinityVector_8 = value; } inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___negativeInfinityVector_9)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; } inline void set_negativeInfinityVector_9(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___negativeInfinityVector_9 = value; } }; // UnityEngine.Vector3 struct Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 { public: // System.Single UnityEngine.Vector3::x float ___x_2; // System.Single UnityEngine.Vector3::y float ___y_3; // System.Single UnityEngine.Vector3::z float ___z_4; public: inline static int32_t get_offset_of_x_2() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___x_2)); } inline float get_x_2() const { return ___x_2; } inline float* get_address_of_x_2() { return &___x_2; } inline void set_x_2(float value) { ___x_2 = value; } inline static int32_t get_offset_of_y_3() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___y_3)); } inline float get_y_3() const { return ___y_3; } inline float* get_address_of_y_3() { return &___y_3; } inline void set_y_3(float value) { ___y_3 = value; } inline static int32_t get_offset_of_z_4() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___z_4)); } inline float get_z_4() const { return ___z_4; } inline float* get_address_of_z_4() { return &___z_4; } inline void set_z_4(float value) { ___z_4 = value; } }; struct Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields { public: // UnityEngine.Vector3 UnityEngine.Vector3::zeroVector Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___zeroVector_5; // UnityEngine.Vector3 UnityEngine.Vector3::oneVector Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___oneVector_6; // UnityEngine.Vector3 UnityEngine.Vector3::upVector Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___upVector_7; // UnityEngine.Vector3 UnityEngine.Vector3::downVector Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___downVector_8; // UnityEngine.Vector3 UnityEngine.Vector3::leftVector Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___leftVector_9; // UnityEngine.Vector3 UnityEngine.Vector3::rightVector Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___rightVector_10; // UnityEngine.Vector3 UnityEngine.Vector3::forwardVector Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___forwardVector_11; // UnityEngine.Vector3 UnityEngine.Vector3::backVector Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___backVector_12; // UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___positiveInfinityVector_13; // UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___negativeInfinityVector_14; public: inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___zeroVector_5)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_zeroVector_5() const { return ___zeroVector_5; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_zeroVector_5() { return &___zeroVector_5; } inline void set_zeroVector_5(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___zeroVector_5 = value; } inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___oneVector_6)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_oneVector_6() const { return ___oneVector_6; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_oneVector_6() { return &___oneVector_6; } inline void set_oneVector_6(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___oneVector_6 = value; } inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___upVector_7)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_upVector_7() const { return ___upVector_7; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_upVector_7() { return &___upVector_7; } inline void set_upVector_7(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___upVector_7 = value; } inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___downVector_8)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_downVector_8() const { return ___downVector_8; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_downVector_8() { return &___downVector_8; } inline void set_downVector_8(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___downVector_8 = value; } inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___leftVector_9)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_leftVector_9() const { return ___leftVector_9; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_leftVector_9() { return &___leftVector_9; } inline void set_leftVector_9(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___leftVector_9 = value; } inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___rightVector_10)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_rightVector_10() const { return ___rightVector_10; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_rightVector_10() { return &___rightVector_10; } inline void set_rightVector_10(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___rightVector_10 = value; } inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___forwardVector_11)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_forwardVector_11() const { return ___forwardVector_11; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_forwardVector_11() { return &___forwardVector_11; } inline void set_forwardVector_11(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___forwardVector_11 = value; } inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___backVector_12)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_backVector_12() const { return ___backVector_12; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_backVector_12() { return &___backVector_12; } inline void set_backVector_12(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___backVector_12 = value; } inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___positiveInfinityVector_13)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; } inline void set_positiveInfinityVector_13(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___positiveInfinityVector_13 = value; } inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___negativeInfinityVector_14)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; } inline void set_negativeInfinityVector_14(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___negativeInfinityVector_14 = value; } }; // UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C { public: // UnityEngine.XR.WSA.SpatialMappingBase UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::m_Component SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___m_Component_0; // UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::m_OnDataReady SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___m_OnDataReady_1; // UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::m_GetHighestPri GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___m_GetHighestPri_2; // UnityEngine.XR.WSA.SurfaceObserver UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::m_SurfaceObserver SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___m_SurfaceObserver_3; public: inline static int32_t get_offset_of_m_Component_0() { return static_cast<int32_t>(offsetof(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C, ___m_Component_0)); } inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * get_m_Component_0() const { return ___m_Component_0; } inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 ** get_address_of_m_Component_0() { return &___m_Component_0; } inline void set_m_Component_0(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * value) { ___m_Component_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Component_0), (void*)value); } inline static int32_t get_offset_of_m_OnDataReady_1() { return static_cast<int32_t>(offsetof(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C, ___m_OnDataReady_1)); } inline SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * get_m_OnDataReady_1() const { return ___m_OnDataReady_1; } inline SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 ** get_address_of_m_OnDataReady_1() { return &___m_OnDataReady_1; } inline void set_m_OnDataReady_1(SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * value) { ___m_OnDataReady_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_OnDataReady_1), (void*)value); } inline static int32_t get_offset_of_m_GetHighestPri_2() { return static_cast<int32_t>(offsetof(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C, ___m_GetHighestPri_2)); } inline GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * get_m_GetHighestPri_2() const { return ___m_GetHighestPri_2; } inline GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 ** get_address_of_m_GetHighestPri_2() { return &___m_GetHighestPri_2; } inline void set_m_GetHighestPri_2(GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * value) { ___m_GetHighestPri_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_GetHighestPri_2), (void*)value); } inline static int32_t get_offset_of_m_SurfaceObserver_3() { return static_cast<int32_t>(offsetof(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C, ___m_SurfaceObserver_3)); } inline SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * get_m_SurfaceObserver_3() const { return ___m_SurfaceObserver_3; } inline SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 ** get_address_of_m_SurfaceObserver_3() { return &___m_SurfaceObserver_3; } inline void set_m_SurfaceObserver_3(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * value) { ___m_SurfaceObserver_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_SurfaceObserver_3), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke { SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___m_Component_0; Il2CppMethodPointer ___m_OnDataReady_1; Il2CppMethodPointer ___m_GetHighestPri_2; SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke ___m_SurfaceObserver_3; }; // Native definition for COM marshalling of UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com { SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___m_Component_0; Il2CppMethodPointer ___m_OnDataReady_1; Il2CppMethodPointer ___m_GetHighestPri_2; SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com* ___m_SurfaceObserver_3; }; // UnityEngine.XR.WSA.SurfaceId struct SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF { public: // System.Int32 UnityEngine.XR.WSA.SurfaceId::handle int32_t ___handle_0; public: inline static int32_t get_offset_of_handle_0() { return static_cast<int32_t>(offsetof(SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF, ___handle_0)); } inline int32_t get_handle_0() const { return ___handle_0; } inline int32_t* get_address_of_handle_0() { return &___handle_0; } inline void set_handle_0(int32_t value) { ___handle_0 = value; } }; // <PrivateImplementationDetails> struct U3CPrivateImplementationDetailsU3E_tBE168E59272B45F7A94B1F451A29AE3BCD661A15 : public RuntimeObject { public: public: }; struct U3CPrivateImplementationDetailsU3E_tBE168E59272B45F7A94B1F451A29AE3BCD661A15_StaticFields { public: // <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D12 <PrivateImplementationDetails>::D15896F389DBE7C4EB4B27E5CA408E92D08149C9 __StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A ___D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0; public: inline static int32_t get_offset_of_D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_tBE168E59272B45F7A94B1F451A29AE3BCD661A15_StaticFields, ___D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0)); } inline __StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A get_D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0() const { return ___D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0; } inline __StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A * get_address_of_D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0() { return &___D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0; } inline void set_D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0(__StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A value) { ___D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0 = value; } }; // System.Collections.Generic.Dictionary`2_Enumerator<System.Int32,System.Object> struct Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2_Enumerator::dictionary Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * ___dictionary_0; // System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::version int32_t ___version_1; // System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::index int32_t ___index_2; // System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2_Enumerator::current KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE ___current_3; // System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::getEnumeratorRetType int32_t ___getEnumeratorRetType_4; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF, ___dictionary_0)); } inline Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF, ___version_1)); } inline int32_t get_version_1() const { return ___version_1; } inline int32_t* get_address_of_version_1() { return &___version_1; } inline void set_version_1(int32_t value) { ___version_1 = value; } inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF, ___index_2)); } inline int32_t get_index_2() const { return ___index_2; } inline int32_t* get_address_of_index_2() { return &___index_2; } inline void set_index_2(int32_t value) { ___index_2 = value; } inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF, ___current_3)); } inline KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE get_current_3() const { return ___current_3; } inline KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE * get_address_of_current_3() { return &___current_3; } inline void set_current_3(KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE value) { ___current_3 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___value_1), (void*)NULL); } inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF, ___getEnumeratorRetType_4)); } inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; } inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; } inline void set_getEnumeratorRetType_4(int32_t value) { ___getEnumeratorRetType_4 = value; } }; // System.Collections.Generic.Dictionary`2_Enumerator<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface> struct Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2_Enumerator::dictionary Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___dictionary_0; // System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::version int32_t ___version_1; // System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::index int32_t ___index_2; // System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2_Enumerator::current KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 ___current_3; // System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::getEnumeratorRetType int32_t ___getEnumeratorRetType_4; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B, ___dictionary_0)); } inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B, ___version_1)); } inline int32_t get_version_1() const { return ___version_1; } inline int32_t* get_address_of_version_1() { return &___version_1; } inline void set_version_1(int32_t value) { ___version_1 = value; } inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B, ___index_2)); } inline int32_t get_index_2() const { return ___index_2; } inline int32_t* get_address_of_index_2() { return &___index_2; } inline void set_index_2(int32_t value) { ___index_2 = value; } inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B, ___current_3)); } inline KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 get_current_3() const { return ___current_3; } inline KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 * get_address_of_current_3() { return &___current_3; } inline void set_current_3(KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 value) { ___current_3 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___value_1), (void*)NULL); } inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B, ___getEnumeratorRetType_4)); } inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; } inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; } inline void set_getEnumeratorRetType_4(int32_t value) { ___getEnumeratorRetType_4 = value; } }; // System.Collections.Generic.List`1_Enumerator<UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord> struct Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 { public: // System.Collections.Generic.List`1<T> System.Collections.Generic.List`1_Enumerator::list List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * ___list_0; // System.Int32 System.Collections.Generic.List`1_Enumerator::index int32_t ___index_1; // System.Int32 System.Collections.Generic.List`1_Enumerator::version int32_t ___version_2; // T System.Collections.Generic.List`1_Enumerator::current SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___current_3; public: inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406, ___list_0)); } inline List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * get_list_0() const { return ___list_0; } inline List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 ** get_address_of_list_0() { return &___list_0; } inline void set_list_0(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * value) { ___list_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value); } inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406, ___index_1)); } inline int32_t get_index_1() const { return ___index_1; } inline int32_t* get_address_of_index_1() { return &___index_1; } inline void set_index_1(int32_t value) { ___index_1 = value; } inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406, ___version_2)); } inline int32_t get_version_2() const { return ___version_2; } inline int32_t* get_address_of_version_2() { return &___version_2; } inline void set_version_2(int32_t value) { ___version_2 = value; } inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406, ___current_3)); } inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C get_current_3() const { return ___current_3; } inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * get_address_of_current_3() { return &___current_3; } inline void set_current_3(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C value) { ___current_3 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___m_Component_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___m_OnDataReady_1), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___m_GetHighestPri_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___m_SurfaceObserver_3), (void*)NULL); #endif } }; // System.Delegate struct Delegate_t : public RuntimeObject { public: // System.IntPtr System.Delegate::method_ptr Il2CppMethodPointer ___method_ptr_0; // System.IntPtr System.Delegate::invoke_impl intptr_t ___invoke_impl_1; // System.Object System.Delegate::m_target RuntimeObject * ___m_target_2; // System.IntPtr System.Delegate::method intptr_t ___method_3; // System.IntPtr System.Delegate::delegate_trampoline intptr_t ___delegate_trampoline_4; // System.IntPtr System.Delegate::extra_arg intptr_t ___extra_arg_5; // System.IntPtr System.Delegate::method_code intptr_t ___method_code_6; // System.Reflection.MethodInfo System.Delegate::method_info MethodInfo_t * ___method_info_7; // System.Reflection.MethodInfo System.Delegate::original_method_info MethodInfo_t * ___original_method_info_8; // System.DelegateData System.Delegate::data DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9; // System.Boolean System.Delegate::method_is_virtual bool ___method_is_virtual_10; public: inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_ptr_0)); } inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; } inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; } inline void set_method_ptr_0(Il2CppMethodPointer value) { ___method_ptr_0 = value; } inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t, ___invoke_impl_1)); } inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; } inline intptr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; } inline void set_invoke_impl_1(intptr_t value) { ___invoke_impl_1 = value; } inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t, ___m_target_2)); } inline RuntimeObject * get_m_target_2() const { return ___m_target_2; } inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; } inline void set_m_target_2(RuntimeObject * value) { ___m_target_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_target_2), (void*)value); } inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_3)); } inline intptr_t get_method_3() const { return ___method_3; } inline intptr_t* get_address_of_method_3() { return &___method_3; } inline void set_method_3(intptr_t value) { ___method_3 = value; } inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t, ___delegate_trampoline_4)); } inline intptr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; } inline intptr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; } inline void set_delegate_trampoline_4(intptr_t value) { ___delegate_trampoline_4 = value; } inline static int32_t get_offset_of_extra_arg_5() { return static_cast<int32_t>(offsetof(Delegate_t, ___extra_arg_5)); } inline intptr_t get_extra_arg_5() const { return ___extra_arg_5; } inline intptr_t* get_address_of_extra_arg_5() { return &___extra_arg_5; } inline void set_extra_arg_5(intptr_t value) { ___extra_arg_5 = value; } inline static int32_t get_offset_of_method_code_6() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_code_6)); } inline intptr_t get_method_code_6() const { return ___method_code_6; } inline intptr_t* get_address_of_method_code_6() { return &___method_code_6; } inline void set_method_code_6(intptr_t value) { ___method_code_6 = value; } inline static int32_t get_offset_of_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_info_7)); } inline MethodInfo_t * get_method_info_7() const { return ___method_info_7; } inline MethodInfo_t ** get_address_of_method_info_7() { return &___method_info_7; } inline void set_method_info_7(MethodInfo_t * value) { ___method_info_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___method_info_7), (void*)value); } inline static int32_t get_offset_of_original_method_info_8() { return static_cast<int32_t>(offsetof(Delegate_t, ___original_method_info_8)); } inline MethodInfo_t * get_original_method_info_8() const { return ___original_method_info_8; } inline MethodInfo_t ** get_address_of_original_method_info_8() { return &___original_method_info_8; } inline void set_original_method_info_8(MethodInfo_t * value) { ___original_method_info_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___original_method_info_8), (void*)value); } inline static int32_t get_offset_of_data_9() { return static_cast<int32_t>(offsetof(Delegate_t, ___data_9)); } inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * get_data_9() const { return ___data_9; } inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE ** get_address_of_data_9() { return &___data_9; } inline void set_data_9(DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * value) { ___data_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___data_9), (void*)value); } inline static int32_t get_offset_of_method_is_virtual_10() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_is_virtual_10)); } inline bool get_method_is_virtual_10() const { return ___method_is_virtual_10; } inline bool* get_address_of_method_is_virtual_10() { return &___method_is_virtual_10; } inline void set_method_is_virtual_10(bool value) { ___method_is_virtual_10 = value; } }; // Native definition for P/Invoke marshalling of System.Delegate struct Delegate_t_marshaled_pinvoke { intptr_t ___method_ptr_0; intptr_t ___invoke_impl_1; Il2CppIUnknown* ___m_target_2; intptr_t ___method_3; intptr_t ___delegate_trampoline_4; intptr_t ___extra_arg_5; intptr_t ___method_code_6; MethodInfo_t * ___method_info_7; MethodInfo_t * ___original_method_info_8; DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9; int32_t ___method_is_virtual_10; }; // Native definition for COM marshalling of System.Delegate struct Delegate_t_marshaled_com { intptr_t ___method_ptr_0; intptr_t ___invoke_impl_1; Il2CppIUnknown* ___m_target_2; intptr_t ___method_3; intptr_t ___delegate_trampoline_4; intptr_t ___extra_arg_5; intptr_t ___method_code_6; MethodInfo_t * ___method_info_7; MethodInfo_t * ___original_method_info_8; DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9; int32_t ___method_is_virtual_10; }; // System.Exception struct Exception_t : public RuntimeObject { public: // System.String System.Exception::_className String_t* ____className_1; // System.String System.Exception::_message String_t* ____message_2; // System.Collections.IDictionary System.Exception::_data RuntimeObject* ____data_3; // System.Exception System.Exception::_innerException Exception_t * ____innerException_4; // System.String System.Exception::_helpURL String_t* ____helpURL_5; // System.Object System.Exception::_stackTrace RuntimeObject * ____stackTrace_6; // System.String System.Exception::_stackTraceString String_t* ____stackTraceString_7; // System.String System.Exception::_remoteStackTraceString String_t* ____remoteStackTraceString_8; // System.Int32 System.Exception::_remoteStackIndex int32_t ____remoteStackIndex_9; // System.Object System.Exception::_dynamicMethods RuntimeObject * ____dynamicMethods_10; // System.Int32 System.Exception::_HResult int32_t ____HResult_11; // System.String System.Exception::_source String_t* ____source_12; // System.Runtime.Serialization.SafeSerializationManager System.Exception::_safeSerializationManager SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13; // System.Diagnostics.StackTrace[] System.Exception::captured_traces StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14; // System.IntPtr[] System.Exception::native_trace_ips IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* ___native_trace_ips_15; public: inline static int32_t get_offset_of__className_1() { return static_cast<int32_t>(offsetof(Exception_t, ____className_1)); } inline String_t* get__className_1() const { return ____className_1; } inline String_t** get_address_of__className_1() { return &____className_1; } inline void set__className_1(String_t* value) { ____className_1 = value; Il2CppCodeGenWriteBarrier((void**)(&____className_1), (void*)value); } inline static int32_t get_offset_of__message_2() { return static_cast<int32_t>(offsetof(Exception_t, ____message_2)); } inline String_t* get__message_2() const { return ____message_2; } inline String_t** get_address_of__message_2() { return &____message_2; } inline void set__message_2(String_t* value) { ____message_2 = value; Il2CppCodeGenWriteBarrier((void**)(&____message_2), (void*)value); } inline static int32_t get_offset_of__data_3() { return static_cast<int32_t>(offsetof(Exception_t, ____data_3)); } inline RuntimeObject* get__data_3() const { return ____data_3; } inline RuntimeObject** get_address_of__data_3() { return &____data_3; } inline void set__data_3(RuntimeObject* value) { ____data_3 = value; Il2CppCodeGenWriteBarrier((void**)(&____data_3), (void*)value); } inline static int32_t get_offset_of__innerException_4() { return static_cast<int32_t>(offsetof(Exception_t, ____innerException_4)); } inline Exception_t * get__innerException_4() const { return ____innerException_4; } inline Exception_t ** get_address_of__innerException_4() { return &____innerException_4; } inline void set__innerException_4(Exception_t * value) { ____innerException_4 = value; Il2CppCodeGenWriteBarrier((void**)(&____innerException_4), (void*)value); } inline static int32_t get_offset_of__helpURL_5() { return static_cast<int32_t>(offsetof(Exception_t, ____helpURL_5)); } inline String_t* get__helpURL_5() const { return ____helpURL_5; } inline String_t** get_address_of__helpURL_5() { return &____helpURL_5; } inline void set__helpURL_5(String_t* value) { ____helpURL_5 = value; Il2CppCodeGenWriteBarrier((void**)(&____helpURL_5), (void*)value); } inline static int32_t get_offset_of__stackTrace_6() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTrace_6)); } inline RuntimeObject * get__stackTrace_6() const { return ____stackTrace_6; } inline RuntimeObject ** get_address_of__stackTrace_6() { return &____stackTrace_6; } inline void set__stackTrace_6(RuntimeObject * value) { ____stackTrace_6 = value; Il2CppCodeGenWriteBarrier((void**)(&____stackTrace_6), (void*)value); } inline static int32_t get_offset_of__stackTraceString_7() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTraceString_7)); } inline String_t* get__stackTraceString_7() const { return ____stackTraceString_7; } inline String_t** get_address_of__stackTraceString_7() { return &____stackTraceString_7; } inline void set__stackTraceString_7(String_t* value) { ____stackTraceString_7 = value; Il2CppCodeGenWriteBarrier((void**)(&____stackTraceString_7), (void*)value); } inline static int32_t get_offset_of__remoteStackTraceString_8() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackTraceString_8)); } inline String_t* get__remoteStackTraceString_8() const { return ____remoteStackTraceString_8; } inline String_t** get_address_of__remoteStackTraceString_8() { return &____remoteStackTraceString_8; } inline void set__remoteStackTraceString_8(String_t* value) { ____remoteStackTraceString_8 = value; Il2CppCodeGenWriteBarrier((void**)(&____remoteStackTraceString_8), (void*)value); } inline static int32_t get_offset_of__remoteStackIndex_9() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackIndex_9)); } inline int32_t get__remoteStackIndex_9() const { return ____remoteStackIndex_9; } inline int32_t* get_address_of__remoteStackIndex_9() { return &____remoteStackIndex_9; } inline void set__remoteStackIndex_9(int32_t value) { ____remoteStackIndex_9 = value; } inline static int32_t get_offset_of__dynamicMethods_10() { return static_cast<int32_t>(offsetof(Exception_t, ____dynamicMethods_10)); } inline RuntimeObject * get__dynamicMethods_10() const { return ____dynamicMethods_10; } inline RuntimeObject ** get_address_of__dynamicMethods_10() { return &____dynamicMethods_10; } inline void set__dynamicMethods_10(RuntimeObject * value) { ____dynamicMethods_10 = value; Il2CppCodeGenWriteBarrier((void**)(&____dynamicMethods_10), (void*)value); } inline static int32_t get_offset_of__HResult_11() { return static_cast<int32_t>(offsetof(Exception_t, ____HResult_11)); } inline int32_t get__HResult_11() const { return ____HResult_11; } inline int32_t* get_address_of__HResult_11() { return &____HResult_11; } inline void set__HResult_11(int32_t value) { ____HResult_11 = value; } inline static int32_t get_offset_of__source_12() { return static_cast<int32_t>(offsetof(Exception_t, ____source_12)); } inline String_t* get__source_12() const { return ____source_12; } inline String_t** get_address_of__source_12() { return &____source_12; } inline void set__source_12(String_t* value) { ____source_12 = value; Il2CppCodeGenWriteBarrier((void**)(&____source_12), (void*)value); } inline static int32_t get_offset_of__safeSerializationManager_13() { return static_cast<int32_t>(offsetof(Exception_t, ____safeSerializationManager_13)); } inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * get__safeSerializationManager_13() const { return ____safeSerializationManager_13; } inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 ** get_address_of__safeSerializationManager_13() { return &____safeSerializationManager_13; } inline void set__safeSerializationManager_13(SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * value) { ____safeSerializationManager_13 = value; Il2CppCodeGenWriteBarrier((void**)(&____safeSerializationManager_13), (void*)value); } inline static int32_t get_offset_of_captured_traces_14() { return static_cast<int32_t>(offsetof(Exception_t, ___captured_traces_14)); } inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* get_captured_traces_14() const { return ___captured_traces_14; } inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196** get_address_of_captured_traces_14() { return &___captured_traces_14; } inline void set_captured_traces_14(StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* value) { ___captured_traces_14 = value; Il2CppCodeGenWriteBarrier((void**)(&___captured_traces_14), (void*)value); } inline static int32_t get_offset_of_native_trace_ips_15() { return static_cast<int32_t>(offsetof(Exception_t, ___native_trace_ips_15)); } inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* get_native_trace_ips_15() const { return ___native_trace_ips_15; } inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD** get_address_of_native_trace_ips_15() { return &___native_trace_ips_15; } inline void set_native_trace_ips_15(IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* value) { ___native_trace_ips_15 = value; Il2CppCodeGenWriteBarrier((void**)(&___native_trace_ips_15), (void*)value); } }; struct Exception_t_StaticFields { public: // System.Object System.Exception::s_EDILock RuntimeObject * ___s_EDILock_0; public: inline static int32_t get_offset_of_s_EDILock_0() { return static_cast<int32_t>(offsetof(Exception_t_StaticFields, ___s_EDILock_0)); } inline RuntimeObject * get_s_EDILock_0() const { return ___s_EDILock_0; } inline RuntimeObject ** get_address_of_s_EDILock_0() { return &___s_EDILock_0; } inline void set_s_EDILock_0(RuntimeObject * value) { ___s_EDILock_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_EDILock_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Exception struct Exception_t_marshaled_pinvoke { char* ____className_1; char* ____message_2; RuntimeObject* ____data_3; Exception_t_marshaled_pinvoke* ____innerException_4; char* ____helpURL_5; Il2CppIUnknown* ____stackTrace_6; char* ____stackTraceString_7; char* ____remoteStackTraceString_8; int32_t ____remoteStackIndex_9; Il2CppIUnknown* ____dynamicMethods_10; int32_t ____HResult_11; char* ____source_12; SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13; StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14; Il2CppSafeArray/*NONE*/* ___native_trace_ips_15; }; // Native definition for COM marshalling of System.Exception struct Exception_t_marshaled_com { Il2CppChar* ____className_1; Il2CppChar* ____message_2; RuntimeObject* ____data_3; Exception_t_marshaled_com* ____innerException_4; Il2CppChar* ____helpURL_5; Il2CppIUnknown* ____stackTrace_6; Il2CppChar* ____stackTraceString_7; Il2CppChar* ____remoteStackTraceString_8; int32_t ____remoteStackIndex_9; Il2CppIUnknown* ____dynamicMethods_10; int32_t ____HResult_11; Il2CppChar* ____source_12; SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13; StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14; Il2CppSafeArray/*NONE*/* ___native_trace_ips_15; }; // System.RuntimeFieldHandle struct RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF { public: // System.IntPtr System.RuntimeFieldHandle::value intptr_t ___value_0; public: inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF, ___value_0)); } inline intptr_t get_value_0() const { return ___value_0; } inline intptr_t* get_address_of_value_0() { return &___value_0; } inline void set_value_0(intptr_t value) { ___value_0 = value; } }; // UnityEngine.Audio.AudioSpatializerMicrosoft_RoomSize struct RoomSize_tB93882F64484BCB88CAFB5B1640341AB4E9F16B4 { public: // System.Int32 UnityEngine.Audio.AudioSpatializerMicrosoft_RoomSize::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(RoomSize_tB93882F64484BCB88CAFB5B1640341AB4E9F16B4, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.Bounds struct Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 { public: // UnityEngine.Vector3 UnityEngine.Bounds::m_Center Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Center_0; // UnityEngine.Vector3 UnityEngine.Bounds::m_Extents Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Extents_1; public: inline static int32_t get_offset_of_m_Center_0() { return static_cast<int32_t>(offsetof(Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890, ___m_Center_0)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Center_0() const { return ___m_Center_0; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Center_0() { return &___m_Center_0; } inline void set_m_Center_0(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_Center_0 = value; } inline static int32_t get_offset_of_m_Extents_1() { return static_cast<int32_t>(offsetof(Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890, ___m_Extents_1)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Extents_1() const { return ___m_Extents_1; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Extents_1() { return &___m_Extents_1; } inline void set_m_Extents_1(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_Extents_1 = value; } }; // UnityEngine.EventSystems.HoloLensInput_MouseEmulationMode struct MouseEmulationMode_t9C3B344772D72BE993BBB5A0849D22D9DBDAEC41 { public: // System.Int32 UnityEngine.EventSystems.HoloLensInput_MouseEmulationMode::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(MouseEmulationMode_t9C3B344772D72BE993BBB5A0849D22D9DBDAEC41, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.EventSystems.PointerEventData_InputButton struct InputButton_tCC7470F9FD2AFE525243394F0215B47D4BF86AB0 { public: // System.Int32 UnityEngine.EventSystems.PointerEventData_InputButton::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InputButton_tCC7470F9FD2AFE525243394F0215B47D4BF86AB0, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.EventSystems.RaycastResult struct RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 { public: // UnityEngine.GameObject UnityEngine.EventSystems.RaycastResult::m_GameObject GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_GameObject_0; // UnityEngine.EventSystems.BaseRaycaster UnityEngine.EventSystems.RaycastResult::module BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 * ___module_1; // System.Single UnityEngine.EventSystems.RaycastResult::distance float ___distance_2; // System.Single UnityEngine.EventSystems.RaycastResult::index float ___index_3; // System.Int32 UnityEngine.EventSystems.RaycastResult::depth int32_t ___depth_4; // System.Int32 UnityEngine.EventSystems.RaycastResult::sortingLayer int32_t ___sortingLayer_5; // System.Int32 UnityEngine.EventSystems.RaycastResult::sortingOrder int32_t ___sortingOrder_6; // UnityEngine.Vector3 UnityEngine.EventSystems.RaycastResult::worldPosition Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldPosition_7; // UnityEngine.Vector3 UnityEngine.EventSystems.RaycastResult::worldNormal Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldNormal_8; // UnityEngine.Vector2 UnityEngine.EventSystems.RaycastResult::screenPosition Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPosition_9; public: inline static int32_t get_offset_of_m_GameObject_0() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___m_GameObject_0)); } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_GameObject_0() const { return ___m_GameObject_0; } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_GameObject_0() { return &___m_GameObject_0; } inline void set_m_GameObject_0(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value) { ___m_GameObject_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_GameObject_0), (void*)value); } inline static int32_t get_offset_of_module_1() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___module_1)); } inline BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 * get_module_1() const { return ___module_1; } inline BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 ** get_address_of_module_1() { return &___module_1; } inline void set_module_1(BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 * value) { ___module_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___module_1), (void*)value); } inline static int32_t get_offset_of_distance_2() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___distance_2)); } inline float get_distance_2() const { return ___distance_2; } inline float* get_address_of_distance_2() { return &___distance_2; } inline void set_distance_2(float value) { ___distance_2 = value; } inline static int32_t get_offset_of_index_3() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___index_3)); } inline float get_index_3() const { return ___index_3; } inline float* get_address_of_index_3() { return &___index_3; } inline void set_index_3(float value) { ___index_3 = value; } inline static int32_t get_offset_of_depth_4() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___depth_4)); } inline int32_t get_depth_4() const { return ___depth_4; } inline int32_t* get_address_of_depth_4() { return &___depth_4; } inline void set_depth_4(int32_t value) { ___depth_4 = value; } inline static int32_t get_offset_of_sortingLayer_5() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___sortingLayer_5)); } inline int32_t get_sortingLayer_5() const { return ___sortingLayer_5; } inline int32_t* get_address_of_sortingLayer_5() { return &___sortingLayer_5; } inline void set_sortingLayer_5(int32_t value) { ___sortingLayer_5 = value; } inline static int32_t get_offset_of_sortingOrder_6() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___sortingOrder_6)); } inline int32_t get_sortingOrder_6() const { return ___sortingOrder_6; } inline int32_t* get_address_of_sortingOrder_6() { return &___sortingOrder_6; } inline void set_sortingOrder_6(int32_t value) { ___sortingOrder_6 = value; } inline static int32_t get_offset_of_worldPosition_7() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___worldPosition_7)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_worldPosition_7() const { return ___worldPosition_7; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_worldPosition_7() { return &___worldPosition_7; } inline void set_worldPosition_7(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___worldPosition_7 = value; } inline static int32_t get_offset_of_worldNormal_8() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___worldNormal_8)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_worldNormal_8() const { return ___worldNormal_8; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_worldNormal_8() { return &___worldNormal_8; } inline void set_worldNormal_8(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___worldNormal_8 = value; } inline static int32_t get_offset_of_screenPosition_9() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___screenPosition_9)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_screenPosition_9() const { return ___screenPosition_9; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_screenPosition_9() { return &___screenPosition_9; } inline void set_screenPosition_9(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___screenPosition_9 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.EventSystems.RaycastResult struct RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91_marshaled_pinvoke { GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_GameObject_0; BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 * ___module_1; float ___distance_2; float ___index_3; int32_t ___depth_4; int32_t ___sortingLayer_5; int32_t ___sortingOrder_6; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldPosition_7; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldNormal_8; Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPosition_9; }; // Native definition for COM marshalling of UnityEngine.EventSystems.RaycastResult struct RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91_marshaled_com { GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_GameObject_0; BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 * ___module_1; float ___distance_2; float ___index_3; int32_t ___depth_4; int32_t ___sortingLayer_5; int32_t ___sortingOrder_6; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldPosition_7; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldNormal_8; Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPosition_9; }; // UnityEngine.Object struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 : public RuntimeObject { public: // System.IntPtr UnityEngine.Object::m_CachedPtr intptr_t ___m_CachedPtr_0; public: inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0, ___m_CachedPtr_0)); } inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; } inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; } inline void set_m_CachedPtr_0(intptr_t value) { ___m_CachedPtr_0 = value; } }; struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields { public: // System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1; public: inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); } inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; } inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; } inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value) { ___OffsetOfInstanceIDInCPlusPlusObject_1 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.Object struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_pinvoke { intptr_t ___m_CachedPtr_0; }; // Native definition for COM marshalling of UnityEngine.Object struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_com { intptr_t ___m_CachedPtr_0; }; // UnityEngine.Pose struct Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 { public: // UnityEngine.Vector3 UnityEngine.Pose::position Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position_0; // UnityEngine.Quaternion UnityEngine.Pose::rotation Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___rotation_1; public: inline static int32_t get_offset_of_position_0() { return static_cast<int32_t>(offsetof(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29, ___position_0)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_position_0() const { return ___position_0; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_position_0() { return &___position_0; } inline void set_position_0(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___position_0 = value; } inline static int32_t get_offset_of_rotation_1() { return static_cast<int32_t>(offsetof(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29, ___rotation_1)); } inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_rotation_1() const { return ___rotation_1; } inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_rotation_1() { return &___rotation_1; } inline void set_rotation_1(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value) { ___rotation_1 = value; } }; struct Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29_StaticFields { public: // UnityEngine.Pose UnityEngine.Pose::k_Identity Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___k_Identity_2; public: inline static int32_t get_offset_of_k_Identity_2() { return static_cast<int32_t>(offsetof(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29_StaticFields, ___k_Identity_2)); } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_k_Identity_2() const { return ___k_Identity_2; } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_k_Identity_2() { return &___k_Identity_2; } inline void set_k_Identity_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value) { ___k_Identity_2 = value; } }; // UnityEngine.Rendering.ShadowCastingMode struct ShadowCastingMode_t699023357D66025632B533A17D0FB1E4548141FF { public: // System.Int32 UnityEngine.Rendering.ShadowCastingMode::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ShadowCastingMode_t699023357D66025632B533A17D0FB1E4548141FF, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.XR.WSA.Input.GestureRecognizer struct GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE : public RuntimeObject { public: // System.IntPtr UnityEngine.XR.WSA.Input.GestureRecognizer::m_Recognizer intptr_t ___m_Recognizer_0; // System.Action`1<UnityEngine.XR.WSA.Input.HoldCanceledEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::HoldCanceled Action_1_t5DB3D8F91CD6BEB6D429ED4A29CC61B44CDD8A4B * ___HoldCanceled_1; // System.Action`1<UnityEngine.XR.WSA.Input.HoldCompletedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::HoldCompleted Action_1_t37D466E712A7A553C87729F5DD58DC77C8A89FF0 * ___HoldCompleted_2; // System.Action`1<UnityEngine.XR.WSA.Input.HoldStartedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::HoldStarted Action_1_t9A7EBE66F02FBEEDDB83D150DBABC2F2728C7F8E * ___HoldStarted_3; // System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::Tapped Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * ___Tapped_4; // System.Action`1<UnityEngine.XR.WSA.Input.ManipulationCanceledEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationCanceled Action_1_tB13B2372B219E1C2C06EFDBCE8BD7EE041A2EB5E * ___ManipulationCanceled_5; // System.Action`1<UnityEngine.XR.WSA.Input.ManipulationCompletedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationCompleted Action_1_t3D75FAEDED813354B2965399C726ABFD1A5EBC3F * ___ManipulationCompleted_6; // System.Action`1<UnityEngine.XR.WSA.Input.ManipulationStartedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationStarted Action_1_t6DC7BD1E28CAAD24387D527C634AB60FA116325E * ___ManipulationStarted_7; // System.Action`1<UnityEngine.XR.WSA.Input.ManipulationUpdatedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationUpdated Action_1_t6F72821471F95D09FC84BC9F98573CD2139C23DC * ___ManipulationUpdated_8; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationCanceled Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * ___NavigationCanceled_9; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationCompleted Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * ___NavigationCompleted_10; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationStarted Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * ___NavigationStarted_11; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationUpdated Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * ___NavigationUpdated_12; // System.Action`1<UnityEngine.XR.WSA.Input.RecognitionEndedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::RecognitionEnded Action_1_tE903BE1931BE14124CF0EFF594B91436F631E6E7 * ___RecognitionEnded_13; // System.Action`1<UnityEngine.XR.WSA.Input.RecognitionStartedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::RecognitionStarted Action_1_tCDC01C5032C70E5DD6217277758BBB3991DC7A8E * ___RecognitionStarted_14; // System.Action`1<UnityEngine.XR.WSA.Input.GestureErrorEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::GestureError Action_1_t86FE98C3236EF6A6C38460C0B9FE2D8262E44B6B * ___GestureError_15; // UnityEngine.XR.WSA.Input.GestureRecognizer_HoldCanceledEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::HoldCanceledEvent HoldCanceledEventDelegate_t5073A875A657B659A55D9111BF52AFA5E8FA22C2 * ___HoldCanceledEvent_16; // UnityEngine.XR.WSA.Input.GestureRecognizer_HoldCompletedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::HoldCompletedEvent HoldCompletedEventDelegate_tE1C05DE1BDD2AF5B15D561CE9EEB23259CAD0A7A * ___HoldCompletedEvent_17; // UnityEngine.XR.WSA.Input.GestureRecognizer_HoldStartedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::HoldStartedEvent HoldStartedEventDelegate_t79DBAFBD8DB4A33E282665E171EF7F7903DA57B2 * ___HoldStartedEvent_18; // UnityEngine.XR.WSA.Input.GestureRecognizer_TappedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::TappedEvent TappedEventDelegate_tC33CDAA9CA071369B711FA5FDE947E122072D34F * ___TappedEvent_19; // UnityEngine.XR.WSA.Input.GestureRecognizer_ManipulationCanceledEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationCanceledEvent ManipulationCanceledEventDelegate_t5D62D76C35A55841145479B9708F35A667B42917 * ___ManipulationCanceledEvent_20; // UnityEngine.XR.WSA.Input.GestureRecognizer_ManipulationCompletedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationCompletedEvent ManipulationCompletedEventDelegate_tFBC536B9D0EED5699871DB3855AA02653F35B6A4 * ___ManipulationCompletedEvent_21; // UnityEngine.XR.WSA.Input.GestureRecognizer_ManipulationStartedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationStartedEvent ManipulationStartedEventDelegate_tECC88952F89E480F898CF5710A0A47D1BA85C9F0 * ___ManipulationStartedEvent_22; // UnityEngine.XR.WSA.Input.GestureRecognizer_ManipulationUpdatedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationUpdatedEvent ManipulationUpdatedEventDelegate_t521F96EEF0CE5D99D54AA2AB2D075CBD66D46406 * ___ManipulationUpdatedEvent_23; // UnityEngine.XR.WSA.Input.GestureRecognizer_NavigationCanceledEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationCanceledEvent NavigationCanceledEventDelegate_tA82EB6DFFB53212C7FADC09362EA424CEEF2A954 * ___NavigationCanceledEvent_24; // UnityEngine.XR.WSA.Input.GestureRecognizer_NavigationCompletedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationCompletedEvent NavigationCompletedEventDelegate_tF2B1D25EF7819624117F3C6E25E70F80B238F5D3 * ___NavigationCompletedEvent_25; // UnityEngine.XR.WSA.Input.GestureRecognizer_NavigationStartedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationStartedEvent NavigationStartedEventDelegate_tC56D514B35B7270BBE8D21E15C435EDBA84F1AEF * ___NavigationStartedEvent_26; // UnityEngine.XR.WSA.Input.GestureRecognizer_NavigationUpdatedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationUpdatedEvent NavigationUpdatedEventDelegate_t5802B4B5608A4D915714D70A5A51C82C6E34C69A * ___NavigationUpdatedEvent_27; // UnityEngine.XR.WSA.Input.GestureRecognizer_RecognitionEndedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::RecognitionEndedEvent RecognitionEndedEventDelegate_t00AB7FD9F0C0070CA19697B832E58151348F700B * ___RecognitionEndedEvent_28; // UnityEngine.XR.WSA.Input.GestureRecognizer_RecognitionStartedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::RecognitionStartedEvent RecognitionStartedEventDelegate_t8C076BC7E24C0326F46F8EBB3B3CB7495027B214 * ___RecognitionStartedEvent_29; // UnityEngine.XR.WSA.Input.GestureRecognizer_GestureErrorDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::GestureErrorEvent GestureErrorDelegate_tFA3E7E6A9E25ADFB4D2FF30E7CD521937F795084 * ___GestureErrorEvent_30; public: inline static int32_t get_offset_of_m_Recognizer_0() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___m_Recognizer_0)); } inline intptr_t get_m_Recognizer_0() const { return ___m_Recognizer_0; } inline intptr_t* get_address_of_m_Recognizer_0() { return &___m_Recognizer_0; } inline void set_m_Recognizer_0(intptr_t value) { ___m_Recognizer_0 = value; } inline static int32_t get_offset_of_HoldCanceled_1() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldCanceled_1)); } inline Action_1_t5DB3D8F91CD6BEB6D429ED4A29CC61B44CDD8A4B * get_HoldCanceled_1() const { return ___HoldCanceled_1; } inline Action_1_t5DB3D8F91CD6BEB6D429ED4A29CC61B44CDD8A4B ** get_address_of_HoldCanceled_1() { return &___HoldCanceled_1; } inline void set_HoldCanceled_1(Action_1_t5DB3D8F91CD6BEB6D429ED4A29CC61B44CDD8A4B * value) { ___HoldCanceled_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___HoldCanceled_1), (void*)value); } inline static int32_t get_offset_of_HoldCompleted_2() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldCompleted_2)); } inline Action_1_t37D466E712A7A553C87729F5DD58DC77C8A89FF0 * get_HoldCompleted_2() const { return ___HoldCompleted_2; } inline Action_1_t37D466E712A7A553C87729F5DD58DC77C8A89FF0 ** get_address_of_HoldCompleted_2() { return &___HoldCompleted_2; } inline void set_HoldCompleted_2(Action_1_t37D466E712A7A553C87729F5DD58DC77C8A89FF0 * value) { ___HoldCompleted_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___HoldCompleted_2), (void*)value); } inline static int32_t get_offset_of_HoldStarted_3() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldStarted_3)); } inline Action_1_t9A7EBE66F02FBEEDDB83D150DBABC2F2728C7F8E * get_HoldStarted_3() const { return ___HoldStarted_3; } inline Action_1_t9A7EBE66F02FBEEDDB83D150DBABC2F2728C7F8E ** get_address_of_HoldStarted_3() { return &___HoldStarted_3; } inline void set_HoldStarted_3(Action_1_t9A7EBE66F02FBEEDDB83D150DBABC2F2728C7F8E * value) { ___HoldStarted_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___HoldStarted_3), (void*)value); } inline static int32_t get_offset_of_Tapped_4() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___Tapped_4)); } inline Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * get_Tapped_4() const { return ___Tapped_4; } inline Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 ** get_address_of_Tapped_4() { return &___Tapped_4; } inline void set_Tapped_4(Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * value) { ___Tapped_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___Tapped_4), (void*)value); } inline static int32_t get_offset_of_ManipulationCanceled_5() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationCanceled_5)); } inline Action_1_tB13B2372B219E1C2C06EFDBCE8BD7EE041A2EB5E * get_ManipulationCanceled_5() const { return ___ManipulationCanceled_5; } inline Action_1_tB13B2372B219E1C2C06EFDBCE8BD7EE041A2EB5E ** get_address_of_ManipulationCanceled_5() { return &___ManipulationCanceled_5; } inline void set_ManipulationCanceled_5(Action_1_tB13B2372B219E1C2C06EFDBCE8BD7EE041A2EB5E * value) { ___ManipulationCanceled_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___ManipulationCanceled_5), (void*)value); } inline static int32_t get_offset_of_ManipulationCompleted_6() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationCompleted_6)); } inline Action_1_t3D75FAEDED813354B2965399C726ABFD1A5EBC3F * get_ManipulationCompleted_6() const { return ___ManipulationCompleted_6; } inline Action_1_t3D75FAEDED813354B2965399C726ABFD1A5EBC3F ** get_address_of_ManipulationCompleted_6() { return &___ManipulationCompleted_6; } inline void set_ManipulationCompleted_6(Action_1_t3D75FAEDED813354B2965399C726ABFD1A5EBC3F * value) { ___ManipulationCompleted_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___ManipulationCompleted_6), (void*)value); } inline static int32_t get_offset_of_ManipulationStarted_7() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationStarted_7)); } inline Action_1_t6DC7BD1E28CAAD24387D527C634AB60FA116325E * get_ManipulationStarted_7() const { return ___ManipulationStarted_7; } inline Action_1_t6DC7BD1E28CAAD24387D527C634AB60FA116325E ** get_address_of_ManipulationStarted_7() { return &___ManipulationStarted_7; } inline void set_ManipulationStarted_7(Action_1_t6DC7BD1E28CAAD24387D527C634AB60FA116325E * value) { ___ManipulationStarted_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___ManipulationStarted_7), (void*)value); } inline static int32_t get_offset_of_ManipulationUpdated_8() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationUpdated_8)); } inline Action_1_t6F72821471F95D09FC84BC9F98573CD2139C23DC * get_ManipulationUpdated_8() const { return ___ManipulationUpdated_8; } inline Action_1_t6F72821471F95D09FC84BC9F98573CD2139C23DC ** get_address_of_ManipulationUpdated_8() { return &___ManipulationUpdated_8; } inline void set_ManipulationUpdated_8(Action_1_t6F72821471F95D09FC84BC9F98573CD2139C23DC * value) { ___ManipulationUpdated_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___ManipulationUpdated_8), (void*)value); } inline static int32_t get_offset_of_NavigationCanceled_9() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationCanceled_9)); } inline Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * get_NavigationCanceled_9() const { return ___NavigationCanceled_9; } inline Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B ** get_address_of_NavigationCanceled_9() { return &___NavigationCanceled_9; } inline void set_NavigationCanceled_9(Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * value) { ___NavigationCanceled_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___NavigationCanceled_9), (void*)value); } inline static int32_t get_offset_of_NavigationCompleted_10() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationCompleted_10)); } inline Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * get_NavigationCompleted_10() const { return ___NavigationCompleted_10; } inline Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 ** get_address_of_NavigationCompleted_10() { return &___NavigationCompleted_10; } inline void set_NavigationCompleted_10(Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * value) { ___NavigationCompleted_10 = value; Il2CppCodeGenWriteBarrier((void**)(&___NavigationCompleted_10), (void*)value); } inline static int32_t get_offset_of_NavigationStarted_11() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationStarted_11)); } inline Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * get_NavigationStarted_11() const { return ___NavigationStarted_11; } inline Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E ** get_address_of_NavigationStarted_11() { return &___NavigationStarted_11; } inline void set_NavigationStarted_11(Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * value) { ___NavigationStarted_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___NavigationStarted_11), (void*)value); } inline static int32_t get_offset_of_NavigationUpdated_12() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationUpdated_12)); } inline Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * get_NavigationUpdated_12() const { return ___NavigationUpdated_12; } inline Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C ** get_address_of_NavigationUpdated_12() { return &___NavigationUpdated_12; } inline void set_NavigationUpdated_12(Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * value) { ___NavigationUpdated_12 = value; Il2CppCodeGenWriteBarrier((void**)(&___NavigationUpdated_12), (void*)value); } inline static int32_t get_offset_of_RecognitionEnded_13() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___RecognitionEnded_13)); } inline Action_1_tE903BE1931BE14124CF0EFF594B91436F631E6E7 * get_RecognitionEnded_13() const { return ___RecognitionEnded_13; } inline Action_1_tE903BE1931BE14124CF0EFF594B91436F631E6E7 ** get_address_of_RecognitionEnded_13() { return &___RecognitionEnded_13; } inline void set_RecognitionEnded_13(Action_1_tE903BE1931BE14124CF0EFF594B91436F631E6E7 * value) { ___RecognitionEnded_13 = value; Il2CppCodeGenWriteBarrier((void**)(&___RecognitionEnded_13), (void*)value); } inline static int32_t get_offset_of_RecognitionStarted_14() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___RecognitionStarted_14)); } inline Action_1_tCDC01C5032C70E5DD6217277758BBB3991DC7A8E * get_RecognitionStarted_14() const { return ___RecognitionStarted_14; } inline Action_1_tCDC01C5032C70E5DD6217277758BBB3991DC7A8E ** get_address_of_RecognitionStarted_14() { return &___RecognitionStarted_14; } inline void set_RecognitionStarted_14(Action_1_tCDC01C5032C70E5DD6217277758BBB3991DC7A8E * value) { ___RecognitionStarted_14 = value; Il2CppCodeGenWriteBarrier((void**)(&___RecognitionStarted_14), (void*)value); } inline static int32_t get_offset_of_GestureError_15() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___GestureError_15)); } inline Action_1_t86FE98C3236EF6A6C38460C0B9FE2D8262E44B6B * get_GestureError_15() const { return ___GestureError_15; } inline Action_1_t86FE98C3236EF6A6C38460C0B9FE2D8262E44B6B ** get_address_of_GestureError_15() { return &___GestureError_15; } inline void set_GestureError_15(Action_1_t86FE98C3236EF6A6C38460C0B9FE2D8262E44B6B * value) { ___GestureError_15 = value; Il2CppCodeGenWriteBarrier((void**)(&___GestureError_15), (void*)value); } inline static int32_t get_offset_of_HoldCanceledEvent_16() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldCanceledEvent_16)); } inline HoldCanceledEventDelegate_t5073A875A657B659A55D9111BF52AFA5E8FA22C2 * get_HoldCanceledEvent_16() const { return ___HoldCanceledEvent_16; } inline HoldCanceledEventDelegate_t5073A875A657B659A55D9111BF52AFA5E8FA22C2 ** get_address_of_HoldCanceledEvent_16() { return &___HoldCanceledEvent_16; } inline void set_HoldCanceledEvent_16(HoldCanceledEventDelegate_t5073A875A657B659A55D9111BF52AFA5E8FA22C2 * value) { ___HoldCanceledEvent_16 = value; Il2CppCodeGenWriteBarrier((void**)(&___HoldCanceledEvent_16), (void*)value); } inline static int32_t get_offset_of_HoldCompletedEvent_17() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldCompletedEvent_17)); } inline HoldCompletedEventDelegate_tE1C05DE1BDD2AF5B15D561CE9EEB23259CAD0A7A * get_HoldCompletedEvent_17() const { return ___HoldCompletedEvent_17; } inline HoldCompletedEventDelegate_tE1C05DE1BDD2AF5B15D561CE9EEB23259CAD0A7A ** get_address_of_HoldCompletedEvent_17() { return &___HoldCompletedEvent_17; } inline void set_HoldCompletedEvent_17(HoldCompletedEventDelegate_tE1C05DE1BDD2AF5B15D561CE9EEB23259CAD0A7A * value) { ___HoldCompletedEvent_17 = value; Il2CppCodeGenWriteBarrier((void**)(&___HoldCompletedEvent_17), (void*)value); } inline static int32_t get_offset_of_HoldStartedEvent_18() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldStartedEvent_18)); } inline HoldStartedEventDelegate_t79DBAFBD8DB4A33E282665E171EF7F7903DA57B2 * get_HoldStartedEvent_18() const { return ___HoldStartedEvent_18; } inline HoldStartedEventDelegate_t79DBAFBD8DB4A33E282665E171EF7F7903DA57B2 ** get_address_of_HoldStartedEvent_18() { return &___HoldStartedEvent_18; } inline void set_HoldStartedEvent_18(HoldStartedEventDelegate_t79DBAFBD8DB4A33E282665E171EF7F7903DA57B2 * value) { ___HoldStartedEvent_18 = value; Il2CppCodeGenWriteBarrier((void**)(&___HoldStartedEvent_18), (void*)value); } inline static int32_t get_offset_of_TappedEvent_19() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___TappedEvent_19)); } inline TappedEventDelegate_tC33CDAA9CA071369B711FA5FDE947E122072D34F * get_TappedEvent_19() const { return ___TappedEvent_19; } inline TappedEventDelegate_tC33CDAA9CA071369B711FA5FDE947E122072D34F ** get_address_of_TappedEvent_19() { return &___TappedEvent_19; } inline void set_TappedEvent_19(TappedEventDelegate_tC33CDAA9CA071369B711FA5FDE947E122072D34F * value) { ___TappedEvent_19 = value; Il2CppCodeGenWriteBarrier((void**)(&___TappedEvent_19), (void*)value); } inline static int32_t get_offset_of_ManipulationCanceledEvent_20() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationCanceledEvent_20)); } inline ManipulationCanceledEventDelegate_t5D62D76C35A55841145479B9708F35A667B42917 * get_ManipulationCanceledEvent_20() const { return ___ManipulationCanceledEvent_20; } inline ManipulationCanceledEventDelegate_t5D62D76C35A55841145479B9708F35A667B42917 ** get_address_of_ManipulationCanceledEvent_20() { return &___ManipulationCanceledEvent_20; } inline void set_ManipulationCanceledEvent_20(ManipulationCanceledEventDelegate_t5D62D76C35A55841145479B9708F35A667B42917 * value) { ___ManipulationCanceledEvent_20 = value; Il2CppCodeGenWriteBarrier((void**)(&___ManipulationCanceledEvent_20), (void*)value); } inline static int32_t get_offset_of_ManipulationCompletedEvent_21() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationCompletedEvent_21)); } inline ManipulationCompletedEventDelegate_tFBC536B9D0EED5699871DB3855AA02653F35B6A4 * get_ManipulationCompletedEvent_21() const { return ___ManipulationCompletedEvent_21; } inline ManipulationCompletedEventDelegate_tFBC536B9D0EED5699871DB3855AA02653F35B6A4 ** get_address_of_ManipulationCompletedEvent_21() { return &___ManipulationCompletedEvent_21; } inline void set_ManipulationCompletedEvent_21(ManipulationCompletedEventDelegate_tFBC536B9D0EED5699871DB3855AA02653F35B6A4 * value) { ___ManipulationCompletedEvent_21 = value; Il2CppCodeGenWriteBarrier((void**)(&___ManipulationCompletedEvent_21), (void*)value); } inline static int32_t get_offset_of_ManipulationStartedEvent_22() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationStartedEvent_22)); } inline ManipulationStartedEventDelegate_tECC88952F89E480F898CF5710A0A47D1BA85C9F0 * get_ManipulationStartedEvent_22() const { return ___ManipulationStartedEvent_22; } inline ManipulationStartedEventDelegate_tECC88952F89E480F898CF5710A0A47D1BA85C9F0 ** get_address_of_ManipulationStartedEvent_22() { return &___ManipulationStartedEvent_22; } inline void set_ManipulationStartedEvent_22(ManipulationStartedEventDelegate_tECC88952F89E480F898CF5710A0A47D1BA85C9F0 * value) { ___ManipulationStartedEvent_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___ManipulationStartedEvent_22), (void*)value); } inline static int32_t get_offset_of_ManipulationUpdatedEvent_23() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationUpdatedEvent_23)); } inline ManipulationUpdatedEventDelegate_t521F96EEF0CE5D99D54AA2AB2D075CBD66D46406 * get_ManipulationUpdatedEvent_23() const { return ___ManipulationUpdatedEvent_23; } inline ManipulationUpdatedEventDelegate_t521F96EEF0CE5D99D54AA2AB2D075CBD66D46406 ** get_address_of_ManipulationUpdatedEvent_23() { return &___ManipulationUpdatedEvent_23; } inline void set_ManipulationUpdatedEvent_23(ManipulationUpdatedEventDelegate_t521F96EEF0CE5D99D54AA2AB2D075CBD66D46406 * value) { ___ManipulationUpdatedEvent_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___ManipulationUpdatedEvent_23), (void*)value); } inline static int32_t get_offset_of_NavigationCanceledEvent_24() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationCanceledEvent_24)); } inline NavigationCanceledEventDelegate_tA82EB6DFFB53212C7FADC09362EA424CEEF2A954 * get_NavigationCanceledEvent_24() const { return ___NavigationCanceledEvent_24; } inline NavigationCanceledEventDelegate_tA82EB6DFFB53212C7FADC09362EA424CEEF2A954 ** get_address_of_NavigationCanceledEvent_24() { return &___NavigationCanceledEvent_24; } inline void set_NavigationCanceledEvent_24(NavigationCanceledEventDelegate_tA82EB6DFFB53212C7FADC09362EA424CEEF2A954 * value) { ___NavigationCanceledEvent_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___NavigationCanceledEvent_24), (void*)value); } inline static int32_t get_offset_of_NavigationCompletedEvent_25() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationCompletedEvent_25)); } inline NavigationCompletedEventDelegate_tF2B1D25EF7819624117F3C6E25E70F80B238F5D3 * get_NavigationCompletedEvent_25() const { return ___NavigationCompletedEvent_25; } inline NavigationCompletedEventDelegate_tF2B1D25EF7819624117F3C6E25E70F80B238F5D3 ** get_address_of_NavigationCompletedEvent_25() { return &___NavigationCompletedEvent_25; } inline void set_NavigationCompletedEvent_25(NavigationCompletedEventDelegate_tF2B1D25EF7819624117F3C6E25E70F80B238F5D3 * value) { ___NavigationCompletedEvent_25 = value; Il2CppCodeGenWriteBarrier((void**)(&___NavigationCompletedEvent_25), (void*)value); } inline static int32_t get_offset_of_NavigationStartedEvent_26() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationStartedEvent_26)); } inline NavigationStartedEventDelegate_tC56D514B35B7270BBE8D21E15C435EDBA84F1AEF * get_NavigationStartedEvent_26() const { return ___NavigationStartedEvent_26; } inline NavigationStartedEventDelegate_tC56D514B35B7270BBE8D21E15C435EDBA84F1AEF ** get_address_of_NavigationStartedEvent_26() { return &___NavigationStartedEvent_26; } inline void set_NavigationStartedEvent_26(NavigationStartedEventDelegate_tC56D514B35B7270BBE8D21E15C435EDBA84F1AEF * value) { ___NavigationStartedEvent_26 = value; Il2CppCodeGenWriteBarrier((void**)(&___NavigationStartedEvent_26), (void*)value); } inline static int32_t get_offset_of_NavigationUpdatedEvent_27() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationUpdatedEvent_27)); } inline NavigationUpdatedEventDelegate_t5802B4B5608A4D915714D70A5A51C82C6E34C69A * get_NavigationUpdatedEvent_27() const { return ___NavigationUpdatedEvent_27; } inline NavigationUpdatedEventDelegate_t5802B4B5608A4D915714D70A5A51C82C6E34C69A ** get_address_of_NavigationUpdatedEvent_27() { return &___NavigationUpdatedEvent_27; } inline void set_NavigationUpdatedEvent_27(NavigationUpdatedEventDelegate_t5802B4B5608A4D915714D70A5A51C82C6E34C69A * value) { ___NavigationUpdatedEvent_27 = value; Il2CppCodeGenWriteBarrier((void**)(&___NavigationUpdatedEvent_27), (void*)value); } inline static int32_t get_offset_of_RecognitionEndedEvent_28() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___RecognitionEndedEvent_28)); } inline RecognitionEndedEventDelegate_t00AB7FD9F0C0070CA19697B832E58151348F700B * get_RecognitionEndedEvent_28() const { return ___RecognitionEndedEvent_28; } inline RecognitionEndedEventDelegate_t00AB7FD9F0C0070CA19697B832E58151348F700B ** get_address_of_RecognitionEndedEvent_28() { return &___RecognitionEndedEvent_28; } inline void set_RecognitionEndedEvent_28(RecognitionEndedEventDelegate_t00AB7FD9F0C0070CA19697B832E58151348F700B * value) { ___RecognitionEndedEvent_28 = value; Il2CppCodeGenWriteBarrier((void**)(&___RecognitionEndedEvent_28), (void*)value); } inline static int32_t get_offset_of_RecognitionStartedEvent_29() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___RecognitionStartedEvent_29)); } inline RecognitionStartedEventDelegate_t8C076BC7E24C0326F46F8EBB3B3CB7495027B214 * get_RecognitionStartedEvent_29() const { return ___RecognitionStartedEvent_29; } inline RecognitionStartedEventDelegate_t8C076BC7E24C0326F46F8EBB3B3CB7495027B214 ** get_address_of_RecognitionStartedEvent_29() { return &___RecognitionStartedEvent_29; } inline void set_RecognitionStartedEvent_29(RecognitionStartedEventDelegate_t8C076BC7E24C0326F46F8EBB3B3CB7495027B214 * value) { ___RecognitionStartedEvent_29 = value; Il2CppCodeGenWriteBarrier((void**)(&___RecognitionStartedEvent_29), (void*)value); } inline static int32_t get_offset_of_GestureErrorEvent_30() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___GestureErrorEvent_30)); } inline GestureErrorDelegate_tFA3E7E6A9E25ADFB4D2FF30E7CD521937F795084 * get_GestureErrorEvent_30() const { return ___GestureErrorEvent_30; } inline GestureErrorDelegate_tFA3E7E6A9E25ADFB4D2FF30E7CD521937F795084 ** get_address_of_GestureErrorEvent_30() { return &___GestureErrorEvent_30; } inline void set_GestureErrorEvent_30(GestureErrorDelegate_tFA3E7E6A9E25ADFB4D2FF30E7CD521937F795084 * value) { ___GestureErrorEvent_30 = value; Il2CppCodeGenWriteBarrier((void**)(&___GestureErrorEvent_30), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.XR.WSA.Input.GestureRecognizer struct GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE_marshaled_pinvoke { intptr_t ___m_Recognizer_0; Il2CppMethodPointer ___HoldCanceled_1; Il2CppMethodPointer ___HoldCompleted_2; Il2CppMethodPointer ___HoldStarted_3; Il2CppMethodPointer ___Tapped_4; Il2CppMethodPointer ___ManipulationCanceled_5; Il2CppMethodPointer ___ManipulationCompleted_6; Il2CppMethodPointer ___ManipulationStarted_7; Il2CppMethodPointer ___ManipulationUpdated_8; Il2CppMethodPointer ___NavigationCanceled_9; Il2CppMethodPointer ___NavigationCompleted_10; Il2CppMethodPointer ___NavigationStarted_11; Il2CppMethodPointer ___NavigationUpdated_12; Il2CppMethodPointer ___RecognitionEnded_13; Il2CppMethodPointer ___RecognitionStarted_14; Il2CppMethodPointer ___GestureError_15; Il2CppMethodPointer ___HoldCanceledEvent_16; Il2CppMethodPointer ___HoldCompletedEvent_17; Il2CppMethodPointer ___HoldStartedEvent_18; Il2CppMethodPointer ___TappedEvent_19; Il2CppMethodPointer ___ManipulationCanceledEvent_20; Il2CppMethodPointer ___ManipulationCompletedEvent_21; Il2CppMethodPointer ___ManipulationStartedEvent_22; Il2CppMethodPointer ___ManipulationUpdatedEvent_23; Il2CppMethodPointer ___NavigationCanceledEvent_24; Il2CppMethodPointer ___NavigationCompletedEvent_25; Il2CppMethodPointer ___NavigationStartedEvent_26; Il2CppMethodPointer ___NavigationUpdatedEvent_27; Il2CppMethodPointer ___RecognitionEndedEvent_28; Il2CppMethodPointer ___RecognitionStartedEvent_29; Il2CppMethodPointer ___GestureErrorEvent_30; }; // Native definition for COM marshalling of UnityEngine.XR.WSA.Input.GestureRecognizer struct GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE_marshaled_com { intptr_t ___m_Recognizer_0; Il2CppMethodPointer ___HoldCanceled_1; Il2CppMethodPointer ___HoldCompleted_2; Il2CppMethodPointer ___HoldStarted_3; Il2CppMethodPointer ___Tapped_4; Il2CppMethodPointer ___ManipulationCanceled_5; Il2CppMethodPointer ___ManipulationCompleted_6; Il2CppMethodPointer ___ManipulationStarted_7; Il2CppMethodPointer ___ManipulationUpdated_8; Il2CppMethodPointer ___NavigationCanceled_9; Il2CppMethodPointer ___NavigationCompleted_10; Il2CppMethodPointer ___NavigationStarted_11; Il2CppMethodPointer ___NavigationUpdated_12; Il2CppMethodPointer ___RecognitionEnded_13; Il2CppMethodPointer ___RecognitionStarted_14; Il2CppMethodPointer ___GestureError_15; Il2CppMethodPointer ___HoldCanceledEvent_16; Il2CppMethodPointer ___HoldCompletedEvent_17; Il2CppMethodPointer ___HoldStartedEvent_18; Il2CppMethodPointer ___TappedEvent_19; Il2CppMethodPointer ___ManipulationCanceledEvent_20; Il2CppMethodPointer ___ManipulationCompletedEvent_21; Il2CppMethodPointer ___ManipulationStartedEvent_22; Il2CppMethodPointer ___ManipulationUpdatedEvent_23; Il2CppMethodPointer ___NavigationCanceledEvent_24; Il2CppMethodPointer ___NavigationCompletedEvent_25; Il2CppMethodPointer ___NavigationStartedEvent_26; Il2CppMethodPointer ___NavigationUpdatedEvent_27; Il2CppMethodPointer ___RecognitionEndedEvent_28; Il2CppMethodPointer ___RecognitionStartedEvent_29; Il2CppMethodPointer ___GestureErrorEvent_30; }; // UnityEngine.XR.WSA.Input.GestureSettings struct GestureSettings_t75803D4EC100BFFD3E80E60E6228FE13BC816F4A { public: // System.Int32 UnityEngine.XR.WSA.Input.GestureSettings::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(GestureSettings_t75803D4EC100BFFD3E80E60E6228FE13BC816F4A, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.XR.WSA.Input.InteractionSourceFlags struct InteractionSourceFlags_tFEED23CE62EF1B04EEBB6C7DD1CA6921D73E9BBE { public: // System.Int32 UnityEngine.XR.WSA.Input.InteractionSourceFlags::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourceFlags_tFEED23CE62EF1B04EEBB6C7DD1CA6921D73E9BBE, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.XR.WSA.Input.InteractionSourceHandedness struct InteractionSourceHandedness_t10FDFBFAABBC3E04468D3AE77CE3614E7DD9308E { public: // System.Int32 UnityEngine.XR.WSA.Input.InteractionSourceHandedness::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourceHandedness_t10FDFBFAABBC3E04468D3AE77CE3614E7DD9308E, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.XR.WSA.Input.InteractionSourceKind struct InteractionSourceKind_t5405F2951F4D1FC7D041FBAC720950BDA3CD3819 { public: // System.Int32 UnityEngine.XR.WSA.Input.InteractionSourceKind::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourceKind_t5405F2951F4D1FC7D041FBAC720950BDA3CD3819, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.XR.WSA.Input.InteractionSourcePoseFlags struct InteractionSourcePoseFlags_t46E1164F226BCDCDEAD84C338483E7A401794BA8 { public: // System.Int32 UnityEngine.XR.WSA.Input.InteractionSourcePoseFlags::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourcePoseFlags_t46E1164F226BCDCDEAD84C338483E7A401794BA8, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.XR.WSA.Input.InteractionSourcePositionAccuracy struct InteractionSourcePositionAccuracy_t53AC6BBABBE0182903C6CA4529BD2FA3479276AD { public: // System.Int32 UnityEngine.XR.WSA.Input.InteractionSourcePositionAccuracy::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourcePositionAccuracy_t53AC6BBABBE0182903C6CA4529BD2FA3479276AD, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.XR.WSA.SpatialMappingBase_LODType struct LODType_t6235D9BF8D6E80394CA294F59A09EB49845140A2 { public: // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase_LODType::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(LODType_t6235D9BF8D6E80394CA294F59A09EB49845140A2, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.XR.WSA.SpatialMappingBase_VolumeType struct VolumeType_t0D39A83EC4E176177D28FFCAB4C40E9C72A98F00 { public: // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase_VolumeType::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(VolumeType_t0D39A83EC4E176177D28FFCAB4C40E9C72A98F00, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.XR.WSA.SpatialMappingRenderer_RenderState struct RenderState_tA3E5217912C63B212E5FC61718AC41D1560C437B { public: // System.Int32 UnityEngine.XR.WSA.SpatialMappingRenderer_RenderState::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(RenderState_tA3E5217912C63B212E5FC61718AC41D1560C437B, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.XR.WSA.SurfaceChange struct SurfaceChange_t2E92CB8BA67A369A733BBEBD7087706B8E8FA747 { public: // System.Int32 UnityEngine.XR.WSA.SurfaceChange::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SurfaceChange_t2E92CB8BA67A369A733BBEBD7087706B8E8FA747, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.XR.WSA.SurfaceData struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 { public: // UnityEngine.XR.WSA.SurfaceId UnityEngine.XR.WSA.SurfaceData::id SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___id_0; // UnityEngine.MeshFilter UnityEngine.XR.WSA.SurfaceData::outputMesh MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___outputMesh_1; // UnityEngine.XR.WSA.WorldAnchor UnityEngine.XR.WSA.SurfaceData::outputAnchor WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___outputAnchor_2; // UnityEngine.MeshCollider UnityEngine.XR.WSA.SurfaceData::outputCollider MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___outputCollider_3; // System.Single UnityEngine.XR.WSA.SurfaceData::trianglesPerCubicMeter float ___trianglesPerCubicMeter_4; // System.Boolean UnityEngine.XR.WSA.SurfaceData::bakeCollider bool ___bakeCollider_5; public: inline static int32_t get_offset_of_id_0() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___id_0)); } inline SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF get_id_0() const { return ___id_0; } inline SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF * get_address_of_id_0() { return &___id_0; } inline void set_id_0(SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF value) { ___id_0 = value; } inline static int32_t get_offset_of_outputMesh_1() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___outputMesh_1)); } inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * get_outputMesh_1() const { return ___outputMesh_1; } inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 ** get_address_of_outputMesh_1() { return &___outputMesh_1; } inline void set_outputMesh_1(MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * value) { ___outputMesh_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___outputMesh_1), (void*)value); } inline static int32_t get_offset_of_outputAnchor_2() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___outputAnchor_2)); } inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * get_outputAnchor_2() const { return ___outputAnchor_2; } inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE ** get_address_of_outputAnchor_2() { return &___outputAnchor_2; } inline void set_outputAnchor_2(WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * value) { ___outputAnchor_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___outputAnchor_2), (void*)value); } inline static int32_t get_offset_of_outputCollider_3() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___outputCollider_3)); } inline MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * get_outputCollider_3() const { return ___outputCollider_3; } inline MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE ** get_address_of_outputCollider_3() { return &___outputCollider_3; } inline void set_outputCollider_3(MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * value) { ___outputCollider_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___outputCollider_3), (void*)value); } inline static int32_t get_offset_of_trianglesPerCubicMeter_4() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___trianglesPerCubicMeter_4)); } inline float get_trianglesPerCubicMeter_4() const { return ___trianglesPerCubicMeter_4; } inline float* get_address_of_trianglesPerCubicMeter_4() { return &___trianglesPerCubicMeter_4; } inline void set_trianglesPerCubicMeter_4(float value) { ___trianglesPerCubicMeter_4 = value; } inline static int32_t get_offset_of_bakeCollider_5() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___bakeCollider_5)); } inline bool get_bakeCollider_5() const { return ___bakeCollider_5; } inline bool* get_address_of_bakeCollider_5() { return &___bakeCollider_5; } inline void set_bakeCollider_5(bool value) { ___bakeCollider_5 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.XR.WSA.SurfaceData struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke { SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___id_0; MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___outputMesh_1; WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___outputAnchor_2; MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___outputCollider_3; float ___trianglesPerCubicMeter_4; int32_t ___bakeCollider_5; }; // Native definition for COM marshalling of UnityEngine.XR.WSA.SurfaceData struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com { SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___id_0; MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___outputMesh_1; WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___outputAnchor_2; MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___outputCollider_3; float ___trianglesPerCubicMeter_4; int32_t ___bakeCollider_5; }; // System.MulticastDelegate struct MulticastDelegate_t : public Delegate_t { public: // System.Delegate[] System.MulticastDelegate::delegates DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* ___delegates_11; public: inline static int32_t get_offset_of_delegates_11() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___delegates_11)); } inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* get_delegates_11() const { return ___delegates_11; } inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86** get_address_of_delegates_11() { return &___delegates_11; } inline void set_delegates_11(DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* value) { ___delegates_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___delegates_11), (void*)value); } }; // Native definition for P/Invoke marshalling of System.MulticastDelegate struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke { Delegate_t_marshaled_pinvoke** ___delegates_11; }; // Native definition for COM marshalling of System.MulticastDelegate struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com { Delegate_t_marshaled_com** ___delegates_11; }; // System.SystemException struct SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 : public Exception_t { public: public: }; // UnityEngine.Component struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 { public: public: }; // UnityEngine.EventSystems.PointerEventData struct PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 : public BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 { public: // UnityEngine.GameObject UnityEngine.EventSystems.PointerEventData::<pointerEnter>k__BackingField GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___U3CpointerEnterU3Ek__BackingField_2; // UnityEngine.GameObject UnityEngine.EventSystems.PointerEventData::m_PointerPress GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_PointerPress_3; // UnityEngine.GameObject UnityEngine.EventSystems.PointerEventData::<lastPress>k__BackingField GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___U3ClastPressU3Ek__BackingField_4; // UnityEngine.GameObject UnityEngine.EventSystems.PointerEventData::<rawPointerPress>k__BackingField GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___U3CrawPointerPressU3Ek__BackingField_5; // UnityEngine.GameObject UnityEngine.EventSystems.PointerEventData::<pointerDrag>k__BackingField GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___U3CpointerDragU3Ek__BackingField_6; // UnityEngine.EventSystems.RaycastResult UnityEngine.EventSystems.PointerEventData::<pointerCurrentRaycast>k__BackingField RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 ___U3CpointerCurrentRaycastU3Ek__BackingField_7; // UnityEngine.EventSystems.RaycastResult UnityEngine.EventSystems.PointerEventData::<pointerPressRaycast>k__BackingField RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 ___U3CpointerPressRaycastU3Ek__BackingField_8; // System.Collections.Generic.List`1<UnityEngine.GameObject> UnityEngine.EventSystems.PointerEventData::hovered List_1_t0087C02D52C7E5CFF8C0C55FC0453A28FD5F055B * ___hovered_9; // System.Boolean UnityEngine.EventSystems.PointerEventData::<eligibleForClick>k__BackingField bool ___U3CeligibleForClickU3Ek__BackingField_10; // System.Int32 UnityEngine.EventSystems.PointerEventData::<pointerId>k__BackingField int32_t ___U3CpointerIdU3Ek__BackingField_11; // UnityEngine.Vector2 UnityEngine.EventSystems.PointerEventData::<position>k__BackingField Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___U3CpositionU3Ek__BackingField_12; // UnityEngine.Vector2 UnityEngine.EventSystems.PointerEventData::<delta>k__BackingField Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___U3CdeltaU3Ek__BackingField_13; // UnityEngine.Vector2 UnityEngine.EventSystems.PointerEventData::<pressPosition>k__BackingField Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___U3CpressPositionU3Ek__BackingField_14; // UnityEngine.Vector3 UnityEngine.EventSystems.PointerEventData::<worldPosition>k__BackingField Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___U3CworldPositionU3Ek__BackingField_15; // UnityEngine.Vector3 UnityEngine.EventSystems.PointerEventData::<worldNormal>k__BackingField Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___U3CworldNormalU3Ek__BackingField_16; // System.Single UnityEngine.EventSystems.PointerEventData::<clickTime>k__BackingField float ___U3CclickTimeU3Ek__BackingField_17; // System.Int32 UnityEngine.EventSystems.PointerEventData::<clickCount>k__BackingField int32_t ___U3CclickCountU3Ek__BackingField_18; // UnityEngine.Vector2 UnityEngine.EventSystems.PointerEventData::<scrollDelta>k__BackingField Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___U3CscrollDeltaU3Ek__BackingField_19; // System.Boolean UnityEngine.EventSystems.PointerEventData::<useDragThreshold>k__BackingField bool ___U3CuseDragThresholdU3Ek__BackingField_20; // System.Boolean UnityEngine.EventSystems.PointerEventData::<dragging>k__BackingField bool ___U3CdraggingU3Ek__BackingField_21; // UnityEngine.EventSystems.PointerEventData_InputButton UnityEngine.EventSystems.PointerEventData::<button>k__BackingField int32_t ___U3CbuttonU3Ek__BackingField_22; public: inline static int32_t get_offset_of_U3CpointerEnterU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpointerEnterU3Ek__BackingField_2)); } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_U3CpointerEnterU3Ek__BackingField_2() const { return ___U3CpointerEnterU3Ek__BackingField_2; } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_U3CpointerEnterU3Ek__BackingField_2() { return &___U3CpointerEnterU3Ek__BackingField_2; } inline void set_U3CpointerEnterU3Ek__BackingField_2(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value) { ___U3CpointerEnterU3Ek__BackingField_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CpointerEnterU3Ek__BackingField_2), (void*)value); } inline static int32_t get_offset_of_m_PointerPress_3() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___m_PointerPress_3)); } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_PointerPress_3() const { return ___m_PointerPress_3; } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_PointerPress_3() { return &___m_PointerPress_3; } inline void set_m_PointerPress_3(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value) { ___m_PointerPress_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_PointerPress_3), (void*)value); } inline static int32_t get_offset_of_U3ClastPressU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3ClastPressU3Ek__BackingField_4)); } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_U3ClastPressU3Ek__BackingField_4() const { return ___U3ClastPressU3Ek__BackingField_4; } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_U3ClastPressU3Ek__BackingField_4() { return &___U3ClastPressU3Ek__BackingField_4; } inline void set_U3ClastPressU3Ek__BackingField_4(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value) { ___U3ClastPressU3Ek__BackingField_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3ClastPressU3Ek__BackingField_4), (void*)value); } inline static int32_t get_offset_of_U3CrawPointerPressU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CrawPointerPressU3Ek__BackingField_5)); } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_U3CrawPointerPressU3Ek__BackingField_5() const { return ___U3CrawPointerPressU3Ek__BackingField_5; } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_U3CrawPointerPressU3Ek__BackingField_5() { return &___U3CrawPointerPressU3Ek__BackingField_5; } inline void set_U3CrawPointerPressU3Ek__BackingField_5(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value) { ___U3CrawPointerPressU3Ek__BackingField_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CrawPointerPressU3Ek__BackingField_5), (void*)value); } inline static int32_t get_offset_of_U3CpointerDragU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpointerDragU3Ek__BackingField_6)); } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_U3CpointerDragU3Ek__BackingField_6() const { return ___U3CpointerDragU3Ek__BackingField_6; } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_U3CpointerDragU3Ek__BackingField_6() { return &___U3CpointerDragU3Ek__BackingField_6; } inline void set_U3CpointerDragU3Ek__BackingField_6(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value) { ___U3CpointerDragU3Ek__BackingField_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CpointerDragU3Ek__BackingField_6), (void*)value); } inline static int32_t get_offset_of_U3CpointerCurrentRaycastU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpointerCurrentRaycastU3Ek__BackingField_7)); } inline RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 get_U3CpointerCurrentRaycastU3Ek__BackingField_7() const { return ___U3CpointerCurrentRaycastU3Ek__BackingField_7; } inline RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 * get_address_of_U3CpointerCurrentRaycastU3Ek__BackingField_7() { return &___U3CpointerCurrentRaycastU3Ek__BackingField_7; } inline void set_U3CpointerCurrentRaycastU3Ek__BackingField_7(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 value) { ___U3CpointerCurrentRaycastU3Ek__BackingField_7 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___U3CpointerCurrentRaycastU3Ek__BackingField_7))->___m_GameObject_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___U3CpointerCurrentRaycastU3Ek__BackingField_7))->___module_1), (void*)NULL); #endif } inline static int32_t get_offset_of_U3CpointerPressRaycastU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpointerPressRaycastU3Ek__BackingField_8)); } inline RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 get_U3CpointerPressRaycastU3Ek__BackingField_8() const { return ___U3CpointerPressRaycastU3Ek__BackingField_8; } inline RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 * get_address_of_U3CpointerPressRaycastU3Ek__BackingField_8() { return &___U3CpointerPressRaycastU3Ek__BackingField_8; } inline void set_U3CpointerPressRaycastU3Ek__BackingField_8(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 value) { ___U3CpointerPressRaycastU3Ek__BackingField_8 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___U3CpointerPressRaycastU3Ek__BackingField_8))->___m_GameObject_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___U3CpointerPressRaycastU3Ek__BackingField_8))->___module_1), (void*)NULL); #endif } inline static int32_t get_offset_of_hovered_9() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___hovered_9)); } inline List_1_t0087C02D52C7E5CFF8C0C55FC0453A28FD5F055B * get_hovered_9() const { return ___hovered_9; } inline List_1_t0087C02D52C7E5CFF8C0C55FC0453A28FD5F055B ** get_address_of_hovered_9() { return &___hovered_9; } inline void set_hovered_9(List_1_t0087C02D52C7E5CFF8C0C55FC0453A28FD5F055B * value) { ___hovered_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___hovered_9), (void*)value); } inline static int32_t get_offset_of_U3CeligibleForClickU3Ek__BackingField_10() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CeligibleForClickU3Ek__BackingField_10)); } inline bool get_U3CeligibleForClickU3Ek__BackingField_10() const { return ___U3CeligibleForClickU3Ek__BackingField_10; } inline bool* get_address_of_U3CeligibleForClickU3Ek__BackingField_10() { return &___U3CeligibleForClickU3Ek__BackingField_10; } inline void set_U3CeligibleForClickU3Ek__BackingField_10(bool value) { ___U3CeligibleForClickU3Ek__BackingField_10 = value; } inline static int32_t get_offset_of_U3CpointerIdU3Ek__BackingField_11() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpointerIdU3Ek__BackingField_11)); } inline int32_t get_U3CpointerIdU3Ek__BackingField_11() const { return ___U3CpointerIdU3Ek__BackingField_11; } inline int32_t* get_address_of_U3CpointerIdU3Ek__BackingField_11() { return &___U3CpointerIdU3Ek__BackingField_11; } inline void set_U3CpointerIdU3Ek__BackingField_11(int32_t value) { ___U3CpointerIdU3Ek__BackingField_11 = value; } inline static int32_t get_offset_of_U3CpositionU3Ek__BackingField_12() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpositionU3Ek__BackingField_12)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_U3CpositionU3Ek__BackingField_12() const { return ___U3CpositionU3Ek__BackingField_12; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_U3CpositionU3Ek__BackingField_12() { return &___U3CpositionU3Ek__BackingField_12; } inline void set_U3CpositionU3Ek__BackingField_12(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___U3CpositionU3Ek__BackingField_12 = value; } inline static int32_t get_offset_of_U3CdeltaU3Ek__BackingField_13() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CdeltaU3Ek__BackingField_13)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_U3CdeltaU3Ek__BackingField_13() const { return ___U3CdeltaU3Ek__BackingField_13; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_U3CdeltaU3Ek__BackingField_13() { return &___U3CdeltaU3Ek__BackingField_13; } inline void set_U3CdeltaU3Ek__BackingField_13(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___U3CdeltaU3Ek__BackingField_13 = value; } inline static int32_t get_offset_of_U3CpressPositionU3Ek__BackingField_14() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpressPositionU3Ek__BackingField_14)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_U3CpressPositionU3Ek__BackingField_14() const { return ___U3CpressPositionU3Ek__BackingField_14; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_U3CpressPositionU3Ek__BackingField_14() { return &___U3CpressPositionU3Ek__BackingField_14; } inline void set_U3CpressPositionU3Ek__BackingField_14(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___U3CpressPositionU3Ek__BackingField_14 = value; } inline static int32_t get_offset_of_U3CworldPositionU3Ek__BackingField_15() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CworldPositionU3Ek__BackingField_15)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_U3CworldPositionU3Ek__BackingField_15() const { return ___U3CworldPositionU3Ek__BackingField_15; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_U3CworldPositionU3Ek__BackingField_15() { return &___U3CworldPositionU3Ek__BackingField_15; } inline void set_U3CworldPositionU3Ek__BackingField_15(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___U3CworldPositionU3Ek__BackingField_15 = value; } inline static int32_t get_offset_of_U3CworldNormalU3Ek__BackingField_16() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CworldNormalU3Ek__BackingField_16)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_U3CworldNormalU3Ek__BackingField_16() const { return ___U3CworldNormalU3Ek__BackingField_16; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_U3CworldNormalU3Ek__BackingField_16() { return &___U3CworldNormalU3Ek__BackingField_16; } inline void set_U3CworldNormalU3Ek__BackingField_16(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___U3CworldNormalU3Ek__BackingField_16 = value; } inline static int32_t get_offset_of_U3CclickTimeU3Ek__BackingField_17() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CclickTimeU3Ek__BackingField_17)); } inline float get_U3CclickTimeU3Ek__BackingField_17() const { return ___U3CclickTimeU3Ek__BackingField_17; } inline float* get_address_of_U3CclickTimeU3Ek__BackingField_17() { return &___U3CclickTimeU3Ek__BackingField_17; } inline void set_U3CclickTimeU3Ek__BackingField_17(float value) { ___U3CclickTimeU3Ek__BackingField_17 = value; } inline static int32_t get_offset_of_U3CclickCountU3Ek__BackingField_18() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CclickCountU3Ek__BackingField_18)); } inline int32_t get_U3CclickCountU3Ek__BackingField_18() const { return ___U3CclickCountU3Ek__BackingField_18; } inline int32_t* get_address_of_U3CclickCountU3Ek__BackingField_18() { return &___U3CclickCountU3Ek__BackingField_18; } inline void set_U3CclickCountU3Ek__BackingField_18(int32_t value) { ___U3CclickCountU3Ek__BackingField_18 = value; } inline static int32_t get_offset_of_U3CscrollDeltaU3Ek__BackingField_19() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CscrollDeltaU3Ek__BackingField_19)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_U3CscrollDeltaU3Ek__BackingField_19() const { return ___U3CscrollDeltaU3Ek__BackingField_19; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_U3CscrollDeltaU3Ek__BackingField_19() { return &___U3CscrollDeltaU3Ek__BackingField_19; } inline void set_U3CscrollDeltaU3Ek__BackingField_19(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___U3CscrollDeltaU3Ek__BackingField_19 = value; } inline static int32_t get_offset_of_U3CuseDragThresholdU3Ek__BackingField_20() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CuseDragThresholdU3Ek__BackingField_20)); } inline bool get_U3CuseDragThresholdU3Ek__BackingField_20() const { return ___U3CuseDragThresholdU3Ek__BackingField_20; } inline bool* get_address_of_U3CuseDragThresholdU3Ek__BackingField_20() { return &___U3CuseDragThresholdU3Ek__BackingField_20; } inline void set_U3CuseDragThresholdU3Ek__BackingField_20(bool value) { ___U3CuseDragThresholdU3Ek__BackingField_20 = value; } inline static int32_t get_offset_of_U3CdraggingU3Ek__BackingField_21() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CdraggingU3Ek__BackingField_21)); } inline bool get_U3CdraggingU3Ek__BackingField_21() const { return ___U3CdraggingU3Ek__BackingField_21; } inline bool* get_address_of_U3CdraggingU3Ek__BackingField_21() { return &___U3CdraggingU3Ek__BackingField_21; } inline void set_U3CdraggingU3Ek__BackingField_21(bool value) { ___U3CdraggingU3Ek__BackingField_21 = value; } inline static int32_t get_offset_of_U3CbuttonU3Ek__BackingField_22() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CbuttonU3Ek__BackingField_22)); } inline int32_t get_U3CbuttonU3Ek__BackingField_22() const { return ___U3CbuttonU3Ek__BackingField_22; } inline int32_t* get_address_of_U3CbuttonU3Ek__BackingField_22() { return &___U3CbuttonU3Ek__BackingField_22; } inline void set_U3CbuttonU3Ek__BackingField_22(int32_t value) { ___U3CbuttonU3Ek__BackingField_22 = value; } }; // UnityEngine.GameObject struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 { public: public: }; // UnityEngine.Material struct Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 { public: public: }; // UnityEngine.Mesh struct Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 { public: public: }; // UnityEngine.PhysicMaterial struct PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 { public: public: }; // UnityEngine.XR.WSA.Input.InteractionSource struct InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 { public: // System.UInt32 UnityEngine.XR.WSA.Input.InteractionSource::m_Id uint32_t ___m_Id_0; // UnityEngine.XR.WSA.Input.InteractionSourceKind UnityEngine.XR.WSA.Input.InteractionSource::m_SourceKind int32_t ___m_SourceKind_1; // UnityEngine.XR.WSA.Input.InteractionSourceHandedness UnityEngine.XR.WSA.Input.InteractionSource::m_Handedness int32_t ___m_Handedness_2; // UnityEngine.XR.WSA.Input.InteractionSourceFlags UnityEngine.XR.WSA.Input.InteractionSource::m_Flags int32_t ___m_Flags_3; // System.UInt16 UnityEngine.XR.WSA.Input.InteractionSource::m_VendorId uint16_t ___m_VendorId_4; // System.UInt16 UnityEngine.XR.WSA.Input.InteractionSource::m_ProductId uint16_t ___m_ProductId_5; // System.UInt16 UnityEngine.XR.WSA.Input.InteractionSource::m_ProductVersion uint16_t ___m_ProductVersion_6; public: inline static int32_t get_offset_of_m_Id_0() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_Id_0)); } inline uint32_t get_m_Id_0() const { return ___m_Id_0; } inline uint32_t* get_address_of_m_Id_0() { return &___m_Id_0; } inline void set_m_Id_0(uint32_t value) { ___m_Id_0 = value; } inline static int32_t get_offset_of_m_SourceKind_1() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_SourceKind_1)); } inline int32_t get_m_SourceKind_1() const { return ___m_SourceKind_1; } inline int32_t* get_address_of_m_SourceKind_1() { return &___m_SourceKind_1; } inline void set_m_SourceKind_1(int32_t value) { ___m_SourceKind_1 = value; } inline static int32_t get_offset_of_m_Handedness_2() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_Handedness_2)); } inline int32_t get_m_Handedness_2() const { return ___m_Handedness_2; } inline int32_t* get_address_of_m_Handedness_2() { return &___m_Handedness_2; } inline void set_m_Handedness_2(int32_t value) { ___m_Handedness_2 = value; } inline static int32_t get_offset_of_m_Flags_3() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_Flags_3)); } inline int32_t get_m_Flags_3() const { return ___m_Flags_3; } inline int32_t* get_address_of_m_Flags_3() { return &___m_Flags_3; } inline void set_m_Flags_3(int32_t value) { ___m_Flags_3 = value; } inline static int32_t get_offset_of_m_VendorId_4() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_VendorId_4)); } inline uint16_t get_m_VendorId_4() const { return ___m_VendorId_4; } inline uint16_t* get_address_of_m_VendorId_4() { return &___m_VendorId_4; } inline void set_m_VendorId_4(uint16_t value) { ___m_VendorId_4 = value; } inline static int32_t get_offset_of_m_ProductId_5() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_ProductId_5)); } inline uint16_t get_m_ProductId_5() const { return ___m_ProductId_5; } inline uint16_t* get_address_of_m_ProductId_5() { return &___m_ProductId_5; } inline void set_m_ProductId_5(uint16_t value) { ___m_ProductId_5 = value; } inline static int32_t get_offset_of_m_ProductVersion_6() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_ProductVersion_6)); } inline uint16_t get_m_ProductVersion_6() const { return ___m_ProductVersion_6; } inline uint16_t* get_address_of_m_ProductVersion_6() { return &___m_ProductVersion_6; } inline void set_m_ProductVersion_6(uint16_t value) { ___m_ProductVersion_6 = value; } }; // UnityEngine.XR.WSA.Input.InteractionSourcePose struct InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 { public: // UnityEngine.Quaternion UnityEngine.XR.WSA.Input.InteractionSourcePose::m_GripRotation Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___m_GripRotation_0; // UnityEngine.Quaternion UnityEngine.XR.WSA.Input.InteractionSourcePose::m_PointerRotation Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___m_PointerRotation_1; // UnityEngine.Vector3 UnityEngine.XR.WSA.Input.InteractionSourcePose::m_GripPosition Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_GripPosition_2; // UnityEngine.Vector3 UnityEngine.XR.WSA.Input.InteractionSourcePose::m_PointerPosition Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_PointerPosition_3; // UnityEngine.Vector3 UnityEngine.XR.WSA.Input.InteractionSourcePose::m_Velocity Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Velocity_4; // UnityEngine.Vector3 UnityEngine.XR.WSA.Input.InteractionSourcePose::m_AngularVelocity Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_AngularVelocity_5; // UnityEngine.XR.WSA.Input.InteractionSourcePositionAccuracy UnityEngine.XR.WSA.Input.InteractionSourcePose::m_PositionAccuracy int32_t ___m_PositionAccuracy_6; // UnityEngine.XR.WSA.Input.InteractionSourcePoseFlags UnityEngine.XR.WSA.Input.InteractionSourcePose::m_Flags int32_t ___m_Flags_7; public: inline static int32_t get_offset_of_m_GripRotation_0() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_GripRotation_0)); } inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_m_GripRotation_0() const { return ___m_GripRotation_0; } inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_m_GripRotation_0() { return &___m_GripRotation_0; } inline void set_m_GripRotation_0(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value) { ___m_GripRotation_0 = value; } inline static int32_t get_offset_of_m_PointerRotation_1() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_PointerRotation_1)); } inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_m_PointerRotation_1() const { return ___m_PointerRotation_1; } inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_m_PointerRotation_1() { return &___m_PointerRotation_1; } inline void set_m_PointerRotation_1(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value) { ___m_PointerRotation_1 = value; } inline static int32_t get_offset_of_m_GripPosition_2() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_GripPosition_2)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_GripPosition_2() const { return ___m_GripPosition_2; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_GripPosition_2() { return &___m_GripPosition_2; } inline void set_m_GripPosition_2(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_GripPosition_2 = value; } inline static int32_t get_offset_of_m_PointerPosition_3() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_PointerPosition_3)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_PointerPosition_3() const { return ___m_PointerPosition_3; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_PointerPosition_3() { return &___m_PointerPosition_3; } inline void set_m_PointerPosition_3(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_PointerPosition_3 = value; } inline static int32_t get_offset_of_m_Velocity_4() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_Velocity_4)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Velocity_4() const { return ___m_Velocity_4; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Velocity_4() { return &___m_Velocity_4; } inline void set_m_Velocity_4(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_Velocity_4 = value; } inline static int32_t get_offset_of_m_AngularVelocity_5() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_AngularVelocity_5)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_AngularVelocity_5() const { return ___m_AngularVelocity_5; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_AngularVelocity_5() { return &___m_AngularVelocity_5; } inline void set_m_AngularVelocity_5(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_AngularVelocity_5 = value; } inline static int32_t get_offset_of_m_PositionAccuracy_6() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_PositionAccuracy_6)); } inline int32_t get_m_PositionAccuracy_6() const { return ___m_PositionAccuracy_6; } inline int32_t* get_address_of_m_PositionAccuracy_6() { return &___m_PositionAccuracy_6; } inline void set_m_PositionAccuracy_6(int32_t value) { ___m_PositionAccuracy_6 = value; } inline static int32_t get_offset_of_m_Flags_7() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_Flags_7)); } inline int32_t get_m_Flags_7() const { return ___m_Flags_7; } inline int32_t* get_address_of_m_Flags_7() { return &___m_Flags_7; } inline void set_m_Flags_7(int32_t value) { ___m_Flags_7 = value; } }; // UnityEngine.XR.WSA.SpatialMappingBase_Surface struct Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D : public RuntimeObject { public: // UnityEngine.XR.WSA.SurfaceId UnityEngine.XR.WSA.SpatialMappingBase_Surface::<surfaceId>k__BackingField SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___U3CsurfaceIdU3Ek__BackingField_0; // System.DateTime UnityEngine.XR.WSA.SpatialMappingBase_Surface::<updateTime>k__BackingField DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___U3CupdateTimeU3Ek__BackingField_1; // UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase_Surface::<gameObject>k__BackingField GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___U3CgameObjectU3Ek__BackingField_2; // UnityEngine.XR.WSA.SurfaceData UnityEngine.XR.WSA.SpatialMappingBase_Surface::<surfaceData>k__BackingField SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___U3CsurfaceDataU3Ek__BackingField_3; // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase_Surface::<remainingUpdatesToLive>k__BackingField int32_t ___U3CremainingUpdatesToLiveU3Ek__BackingField_4; // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase_Surface::<awaitingBake>k__BackingField bool ___U3CawaitingBakeU3Ek__BackingField_5; // UnityEngine.MeshFilter UnityEngine.XR.WSA.SpatialMappingBase_Surface::<meshFilter>k__BackingField MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___U3CmeshFilterU3Ek__BackingField_6; // UnityEngine.MeshRenderer UnityEngine.XR.WSA.SpatialMappingBase_Surface::<meshRenderer>k__BackingField MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___U3CmeshRendererU3Ek__BackingField_7; // UnityEngine.MeshCollider UnityEngine.XR.WSA.SpatialMappingBase_Surface::<meshCollider>k__BackingField MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___U3CmeshColliderU3Ek__BackingField_8; // UnityEngine.XR.WSA.WorldAnchor UnityEngine.XR.WSA.SpatialMappingBase_Surface::<worldAnchor>k__BackingField WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___U3CworldAnchorU3Ek__BackingField_9; public: inline static int32_t get_offset_of_U3CsurfaceIdU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CsurfaceIdU3Ek__BackingField_0)); } inline SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF get_U3CsurfaceIdU3Ek__BackingField_0() const { return ___U3CsurfaceIdU3Ek__BackingField_0; } inline SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF * get_address_of_U3CsurfaceIdU3Ek__BackingField_0() { return &___U3CsurfaceIdU3Ek__BackingField_0; } inline void set_U3CsurfaceIdU3Ek__BackingField_0(SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF value) { ___U3CsurfaceIdU3Ek__BackingField_0 = value; } inline static int32_t get_offset_of_U3CupdateTimeU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CupdateTimeU3Ek__BackingField_1)); } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_U3CupdateTimeU3Ek__BackingField_1() const { return ___U3CupdateTimeU3Ek__BackingField_1; } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_U3CupdateTimeU3Ek__BackingField_1() { return &___U3CupdateTimeU3Ek__BackingField_1; } inline void set_U3CupdateTimeU3Ek__BackingField_1(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value) { ___U3CupdateTimeU3Ek__BackingField_1 = value; } inline static int32_t get_offset_of_U3CgameObjectU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CgameObjectU3Ek__BackingField_2)); } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_U3CgameObjectU3Ek__BackingField_2() const { return ___U3CgameObjectU3Ek__BackingField_2; } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_U3CgameObjectU3Ek__BackingField_2() { return &___U3CgameObjectU3Ek__BackingField_2; } inline void set_U3CgameObjectU3Ek__BackingField_2(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value) { ___U3CgameObjectU3Ek__BackingField_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CgameObjectU3Ek__BackingField_2), (void*)value); } inline static int32_t get_offset_of_U3CsurfaceDataU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CsurfaceDataU3Ek__BackingField_3)); } inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 get_U3CsurfaceDataU3Ek__BackingField_3() const { return ___U3CsurfaceDataU3Ek__BackingField_3; } inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * get_address_of_U3CsurfaceDataU3Ek__BackingField_3() { return &___U3CsurfaceDataU3Ek__BackingField_3; } inline void set_U3CsurfaceDataU3Ek__BackingField_3(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 value) { ___U3CsurfaceDataU3Ek__BackingField_3 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___U3CsurfaceDataU3Ek__BackingField_3))->___outputMesh_1), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___U3CsurfaceDataU3Ek__BackingField_3))->___outputAnchor_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___U3CsurfaceDataU3Ek__BackingField_3))->___outputCollider_3), (void*)NULL); #endif } inline static int32_t get_offset_of_U3CremainingUpdatesToLiveU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CremainingUpdatesToLiveU3Ek__BackingField_4)); } inline int32_t get_U3CremainingUpdatesToLiveU3Ek__BackingField_4() const { return ___U3CremainingUpdatesToLiveU3Ek__BackingField_4; } inline int32_t* get_address_of_U3CremainingUpdatesToLiveU3Ek__BackingField_4() { return &___U3CremainingUpdatesToLiveU3Ek__BackingField_4; } inline void set_U3CremainingUpdatesToLiveU3Ek__BackingField_4(int32_t value) { ___U3CremainingUpdatesToLiveU3Ek__BackingField_4 = value; } inline static int32_t get_offset_of_U3CawaitingBakeU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CawaitingBakeU3Ek__BackingField_5)); } inline bool get_U3CawaitingBakeU3Ek__BackingField_5() const { return ___U3CawaitingBakeU3Ek__BackingField_5; } inline bool* get_address_of_U3CawaitingBakeU3Ek__BackingField_5() { return &___U3CawaitingBakeU3Ek__BackingField_5; } inline void set_U3CawaitingBakeU3Ek__BackingField_5(bool value) { ___U3CawaitingBakeU3Ek__BackingField_5 = value; } inline static int32_t get_offset_of_U3CmeshFilterU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CmeshFilterU3Ek__BackingField_6)); } inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * get_U3CmeshFilterU3Ek__BackingField_6() const { return ___U3CmeshFilterU3Ek__BackingField_6; } inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 ** get_address_of_U3CmeshFilterU3Ek__BackingField_6() { return &___U3CmeshFilterU3Ek__BackingField_6; } inline void set_U3CmeshFilterU3Ek__BackingField_6(MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * value) { ___U3CmeshFilterU3Ek__BackingField_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CmeshFilterU3Ek__BackingField_6), (void*)value); } inline static int32_t get_offset_of_U3CmeshRendererU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CmeshRendererU3Ek__BackingField_7)); } inline MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * get_U3CmeshRendererU3Ek__BackingField_7() const { return ___U3CmeshRendererU3Ek__BackingField_7; } inline MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED ** get_address_of_U3CmeshRendererU3Ek__BackingField_7() { return &___U3CmeshRendererU3Ek__BackingField_7; } inline void set_U3CmeshRendererU3Ek__BackingField_7(MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * value) { ___U3CmeshRendererU3Ek__BackingField_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CmeshRendererU3Ek__BackingField_7), (void*)value); } inline static int32_t get_offset_of_U3CmeshColliderU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CmeshColliderU3Ek__BackingField_8)); } inline MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * get_U3CmeshColliderU3Ek__BackingField_8() const { return ___U3CmeshColliderU3Ek__BackingField_8; } inline MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE ** get_address_of_U3CmeshColliderU3Ek__BackingField_8() { return &___U3CmeshColliderU3Ek__BackingField_8; } inline void set_U3CmeshColliderU3Ek__BackingField_8(MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * value) { ___U3CmeshColliderU3Ek__BackingField_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CmeshColliderU3Ek__BackingField_8), (void*)value); } inline static int32_t get_offset_of_U3CworldAnchorU3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CworldAnchorU3Ek__BackingField_9)); } inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * get_U3CworldAnchorU3Ek__BackingField_9() const { return ___U3CworldAnchorU3Ek__BackingField_9; } inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE ** get_address_of_U3CworldAnchorU3Ek__BackingField_9() { return &___U3CworldAnchorU3Ek__BackingField_9; } inline void set_U3CworldAnchorU3Ek__BackingField_9(WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * value) { ___U3CworldAnchorU3Ek__BackingField_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CworldAnchorU3Ek__BackingField_9), (void*)value); } }; // UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest struct SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 { public: // UnityEngine.XR.WSA.SurfaceData UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest::m_RequestData SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___m_RequestData_0; // UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest::m_Requester SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___m_Requester_1; public: inline static int32_t get_offset_of_m_RequestData_0() { return static_cast<int32_t>(offsetof(SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059, ___m_RequestData_0)); } inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 get_m_RequestData_0() const { return ___m_RequestData_0; } inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * get_address_of_m_RequestData_0() { return &___m_RequestData_0; } inline void set_m_RequestData_0(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 value) { ___m_RequestData_0 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___m_RequestData_0))->___outputMesh_1), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___m_RequestData_0))->___outputAnchor_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___m_RequestData_0))->___outputCollider_3), (void*)NULL); #endif } inline static int32_t get_offset_of_m_Requester_1() { return static_cast<int32_t>(offsetof(SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059, ___m_Requester_1)); } inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C get_m_Requester_1() const { return ___m_Requester_1; } inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * get_address_of_m_Requester_1() { return &___m_Requester_1; } inline void set_m_Requester_1(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C value) { ___m_Requester_1 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___m_Requester_1))->___m_Component_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___m_Requester_1))->___m_OnDataReady_1), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___m_Requester_1))->___m_GetHighestPri_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___m_Requester_1))->___m_SurfaceObserver_3), (void*)NULL); #endif } }; // Native definition for P/Invoke marshalling of UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest struct SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_pinvoke { SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke ___m_RequestData_0; SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke ___m_Requester_1; }; // Native definition for COM marshalling of UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest struct SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_com { SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com ___m_RequestData_0; SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com ___m_Requester_1; }; // System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase_Surface> struct Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 : public MulticastDelegate_t { public: public: }; // System.ArgumentException struct ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: // System.String System.ArgumentException::m_paramName String_t* ___m_paramName_17; public: inline static int32_t get_offset_of_m_paramName_17() { return static_cast<int32_t>(offsetof(ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1, ___m_paramName_17)); } inline String_t* get_m_paramName_17() const { return ___m_paramName_17; } inline String_t** get_address_of_m_paramName_17() { return &___m_paramName_17; } inline void set_m_paramName_17(String_t* value) { ___m_paramName_17 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_paramName_17), (void*)value); } }; // System.AsyncCallback struct AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4 : public MulticastDelegate_t { public: public: }; // System.Predicate`1<UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord> struct Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD : public MulticastDelegate_t { public: public: }; // UnityEngine.Behaviour struct Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 { public: public: }; // UnityEngine.Collider struct Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 { public: public: }; // UnityEngine.MeshFilter struct MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 { public: public: }; // UnityEngine.Renderer struct Renderer_t0556D67DD582620D1F495627EDE30D03284151F4 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 { public: public: }; // UnityEngine.Transform struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 { public: public: }; // UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs struct NavigationCanceledEventArgs_tC2B533AD31373B31AF9FDC354D3A07C749FC9760 { public: // UnityEngine.XR.WSA.Input.InteractionSource UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs::m_Source InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 ___m_Source_0; // UnityEngine.XR.WSA.Input.InteractionSourcePose UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs::m_SourcePose InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 ___m_SourcePose_1; // UnityEngine.Pose UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs::m_HeadPose Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___m_HeadPose_2; public: inline static int32_t get_offset_of_m_Source_0() { return static_cast<int32_t>(offsetof(NavigationCanceledEventArgs_tC2B533AD31373B31AF9FDC354D3A07C749FC9760, ___m_Source_0)); } inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 get_m_Source_0() const { return ___m_Source_0; } inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 * get_address_of_m_Source_0() { return &___m_Source_0; } inline void set_m_Source_0(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 value) { ___m_Source_0 = value; } inline static int32_t get_offset_of_m_SourcePose_1() { return static_cast<int32_t>(offsetof(NavigationCanceledEventArgs_tC2B533AD31373B31AF9FDC354D3A07C749FC9760, ___m_SourcePose_1)); } inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 get_m_SourcePose_1() const { return ___m_SourcePose_1; } inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 * get_address_of_m_SourcePose_1() { return &___m_SourcePose_1; } inline void set_m_SourcePose_1(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 value) { ___m_SourcePose_1 = value; } inline static int32_t get_offset_of_m_HeadPose_2() { return static_cast<int32_t>(offsetof(NavigationCanceledEventArgs_tC2B533AD31373B31AF9FDC354D3A07C749FC9760, ___m_HeadPose_2)); } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_m_HeadPose_2() const { return ___m_HeadPose_2; } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_m_HeadPose_2() { return &___m_HeadPose_2; } inline void set_m_HeadPose_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value) { ___m_HeadPose_2 = value; } }; // UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs struct NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39 { public: // UnityEngine.XR.WSA.Input.InteractionSource UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs::m_Source InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 ___m_Source_0; // UnityEngine.XR.WSA.Input.InteractionSourcePose UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs::m_SourcePose InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 ___m_SourcePose_1; // UnityEngine.Pose UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs::m_HeadPose Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___m_HeadPose_2; // UnityEngine.Vector3 UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs::m_NormalizedOffset Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_NormalizedOffset_3; public: inline static int32_t get_offset_of_m_Source_0() { return static_cast<int32_t>(offsetof(NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39, ___m_Source_0)); } inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 get_m_Source_0() const { return ___m_Source_0; } inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 * get_address_of_m_Source_0() { return &___m_Source_0; } inline void set_m_Source_0(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 value) { ___m_Source_0 = value; } inline static int32_t get_offset_of_m_SourcePose_1() { return static_cast<int32_t>(offsetof(NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39, ___m_SourcePose_1)); } inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 get_m_SourcePose_1() const { return ___m_SourcePose_1; } inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 * get_address_of_m_SourcePose_1() { return &___m_SourcePose_1; } inline void set_m_SourcePose_1(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 value) { ___m_SourcePose_1 = value; } inline static int32_t get_offset_of_m_HeadPose_2() { return static_cast<int32_t>(offsetof(NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39, ___m_HeadPose_2)); } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_m_HeadPose_2() const { return ___m_HeadPose_2; } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_m_HeadPose_2() { return &___m_HeadPose_2; } inline void set_m_HeadPose_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value) { ___m_HeadPose_2 = value; } inline static int32_t get_offset_of_m_NormalizedOffset_3() { return static_cast<int32_t>(offsetof(NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39, ___m_NormalizedOffset_3)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_NormalizedOffset_3() const { return ___m_NormalizedOffset_3; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_NormalizedOffset_3() { return &___m_NormalizedOffset_3; } inline void set_m_NormalizedOffset_3(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_NormalizedOffset_3 = value; } }; // UnityEngine.XR.WSA.Input.NavigationStartedEventArgs struct NavigationStartedEventArgs_t834E02E24343414BB48A9099C7CF0C331C859339 { public: // UnityEngine.XR.WSA.Input.InteractionSource UnityEngine.XR.WSA.Input.NavigationStartedEventArgs::m_Source InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 ___m_Source_0; // UnityEngine.XR.WSA.Input.InteractionSourcePose UnityEngine.XR.WSA.Input.NavigationStartedEventArgs::m_SourcePose InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 ___m_SourcePose_1; // UnityEngine.Pose UnityEngine.XR.WSA.Input.NavigationStartedEventArgs::m_HeadPose Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___m_HeadPose_2; public: inline static int32_t get_offset_of_m_Source_0() { return static_cast<int32_t>(offsetof(NavigationStartedEventArgs_t834E02E24343414BB48A9099C7CF0C331C859339, ___m_Source_0)); } inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 get_m_Source_0() const { return ___m_Source_0; } inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 * get_address_of_m_Source_0() { return &___m_Source_0; } inline void set_m_Source_0(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 value) { ___m_Source_0 = value; } inline static int32_t get_offset_of_m_SourcePose_1() { return static_cast<int32_t>(offsetof(NavigationStartedEventArgs_t834E02E24343414BB48A9099C7CF0C331C859339, ___m_SourcePose_1)); } inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 get_m_SourcePose_1() const { return ___m_SourcePose_1; } inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 * get_address_of_m_SourcePose_1() { return &___m_SourcePose_1; } inline void set_m_SourcePose_1(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 value) { ___m_SourcePose_1 = value; } inline static int32_t get_offset_of_m_HeadPose_2() { return static_cast<int32_t>(offsetof(NavigationStartedEventArgs_t834E02E24343414BB48A9099C7CF0C331C859339, ___m_HeadPose_2)); } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_m_HeadPose_2() const { return ___m_HeadPose_2; } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_m_HeadPose_2() { return &___m_HeadPose_2; } inline void set_m_HeadPose_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value) { ___m_HeadPose_2 = value; } }; // UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs struct NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA { public: // UnityEngine.XR.WSA.Input.InteractionSource UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs::m_Source InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 ___m_Source_0; // UnityEngine.XR.WSA.Input.InteractionSourcePose UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs::m_SourcePose InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 ___m_SourcePose_1; // UnityEngine.Pose UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs::m_HeadPose Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___m_HeadPose_2; // UnityEngine.Vector3 UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs::m_NormalizedOffset Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_NormalizedOffset_3; public: inline static int32_t get_offset_of_m_Source_0() { return static_cast<int32_t>(offsetof(NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA, ___m_Source_0)); } inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 get_m_Source_0() const { return ___m_Source_0; } inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 * get_address_of_m_Source_0() { return &___m_Source_0; } inline void set_m_Source_0(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 value) { ___m_Source_0 = value; } inline static int32_t get_offset_of_m_SourcePose_1() { return static_cast<int32_t>(offsetof(NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA, ___m_SourcePose_1)); } inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 get_m_SourcePose_1() const { return ___m_SourcePose_1; } inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 * get_address_of_m_SourcePose_1() { return &___m_SourcePose_1; } inline void set_m_SourcePose_1(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 value) { ___m_SourcePose_1 = value; } inline static int32_t get_offset_of_m_HeadPose_2() { return static_cast<int32_t>(offsetof(NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA, ___m_HeadPose_2)); } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_m_HeadPose_2() const { return ___m_HeadPose_2; } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_m_HeadPose_2() { return &___m_HeadPose_2; } inline void set_m_HeadPose_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value) { ___m_HeadPose_2 = value; } inline static int32_t get_offset_of_m_NormalizedOffset_3() { return static_cast<int32_t>(offsetof(NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA, ___m_NormalizedOffset_3)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_NormalizedOffset_3() const { return ___m_NormalizedOffset_3; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_NormalizedOffset_3() { return &___m_NormalizedOffset_3; } inline void set_m_NormalizedOffset_3(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_NormalizedOffset_3 = value; } }; // UnityEngine.XR.WSA.Input.TappedEventArgs struct TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6 { public: // UnityEngine.XR.WSA.Input.InteractionSource UnityEngine.XR.WSA.Input.TappedEventArgs::m_Source InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 ___m_Source_0; // UnityEngine.XR.WSA.Input.InteractionSourcePose UnityEngine.XR.WSA.Input.TappedEventArgs::m_SourcePose InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 ___m_SourcePose_1; // UnityEngine.Pose UnityEngine.XR.WSA.Input.TappedEventArgs::m_HeadPose Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___m_HeadPose_2; // System.Int32 UnityEngine.XR.WSA.Input.TappedEventArgs::m_TapCount int32_t ___m_TapCount_3; public: inline static int32_t get_offset_of_m_Source_0() { return static_cast<int32_t>(offsetof(TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6, ___m_Source_0)); } inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 get_m_Source_0() const { return ___m_Source_0; } inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 * get_address_of_m_Source_0() { return &___m_Source_0; } inline void set_m_Source_0(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 value) { ___m_Source_0 = value; } inline static int32_t get_offset_of_m_SourcePose_1() { return static_cast<int32_t>(offsetof(TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6, ___m_SourcePose_1)); } inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 get_m_SourcePose_1() const { return ___m_SourcePose_1; } inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 * get_address_of_m_SourcePose_1() { return &___m_SourcePose_1; } inline void set_m_SourcePose_1(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 value) { ___m_SourcePose_1 = value; } inline static int32_t get_offset_of_m_HeadPose_2() { return static_cast<int32_t>(offsetof(TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6, ___m_HeadPose_2)); } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_m_HeadPose_2() const { return ___m_HeadPose_2; } inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_m_HeadPose_2() { return &___m_HeadPose_2; } inline void set_m_HeadPose_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value) { ___m_HeadPose_2 = value; } inline static int32_t get_offset_of_m_TapCount_3() { return static_cast<int32_t>(offsetof(TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6, ___m_TapCount_3)); } inline int32_t get_m_TapCount_3() const { return ___m_TapCount_3; } inline int32_t* get_address_of_m_TapCount_3() { return &___m_TapCount_3; } inline void set_m_TapCount_3(int32_t value) { ___m_TapCount_3 = value; } }; // UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback struct SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 : public MulticastDelegate_t { public: public: }; // UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback struct GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 : public MulticastDelegate_t { public: public: }; // UnityEngine.XR.WSA.SurfaceObserver_SurfaceChangedDelegate struct SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1 : public MulticastDelegate_t { public: public: }; // UnityEngine.XR.WSA.SurfaceObserver_SurfaceDataReadyDelegate struct SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092 : public MulticastDelegate_t { public: public: }; // UnityEngine.XR.WSA.WorldAnchor struct WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 { public: // UnityEngine.XR.WSA.WorldAnchor_OnTrackingChangedDelegate UnityEngine.XR.WSA.WorldAnchor::OnTrackingChanged OnTrackingChangedDelegate_t213BE1DC543541B52A31539ACEA406782B1DB253 * ___OnTrackingChanged_4; public: inline static int32_t get_offset_of_OnTrackingChanged_4() { return static_cast<int32_t>(offsetof(WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE, ___OnTrackingChanged_4)); } inline OnTrackingChangedDelegate_t213BE1DC543541B52A31539ACEA406782B1DB253 * get_OnTrackingChanged_4() const { return ___OnTrackingChanged_4; } inline OnTrackingChangedDelegate_t213BE1DC543541B52A31539ACEA406782B1DB253 ** get_address_of_OnTrackingChanged_4() { return &___OnTrackingChanged_4; } inline void set_OnTrackingChanged_4(OnTrackingChangedDelegate_t213BE1DC543541B52A31539ACEA406782B1DB253 * value) { ___OnTrackingChanged_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___OnTrackingChanged_4), (void*)value); } }; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs> struct Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B : public MulticastDelegate_t { public: public: }; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs> struct Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 : public MulticastDelegate_t { public: public: }; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs> struct Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E : public MulticastDelegate_t { public: public: }; // System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs> struct Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C : public MulticastDelegate_t { public: public: }; // System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs> struct Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 : public MulticastDelegate_t { public: public: }; // System.ArgumentNullException struct ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD : public ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 { public: public: }; // UnityEngine.AudioBehaviour struct AudioBehaviour_tC612EC4E17A648A5C568621F3FBF1DBD773C71C7 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8 { public: public: }; // UnityEngine.Camera struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8 { public: public: }; struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields { public: // UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPreCull CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPreCull_4; // UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPreRender CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPreRender_5; // UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPostRender CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPostRender_6; public: inline static int32_t get_offset_of_onPreCull_4() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPreCull_4)); } inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPreCull_4() const { return ___onPreCull_4; } inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPreCull_4() { return &___onPreCull_4; } inline void set_onPreCull_4(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value) { ___onPreCull_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___onPreCull_4), (void*)value); } inline static int32_t get_offset_of_onPreRender_5() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPreRender_5)); } inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPreRender_5() const { return ___onPreRender_5; } inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPreRender_5() { return &___onPreRender_5; } inline void set_onPreRender_5(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value) { ___onPreRender_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___onPreRender_5), (void*)value); } inline static int32_t get_offset_of_onPostRender_6() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPostRender_6)); } inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPostRender_6() const { return ___onPostRender_6; } inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPostRender_6() { return &___onPostRender_6; } inline void set_onPostRender_6(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value) { ___onPostRender_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___onPostRender_6), (void*)value); } }; // UnityEngine.MeshCollider struct MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE : public Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF { public: public: }; // UnityEngine.MeshRenderer struct MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED : public Renderer_t0556D67DD582620D1F495627EDE30D03284151F4 { public: public: }; // UnityEngine.MonoBehaviour struct MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8 { public: public: }; // UnityEngine.RectTransform struct RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 : public Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA { public: public: }; struct RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_StaticFields { public: // UnityEngine.RectTransform_ReapplyDrivenProperties UnityEngine.RectTransform::reapplyDrivenProperties ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D * ___reapplyDrivenProperties_4; public: inline static int32_t get_offset_of_reapplyDrivenProperties_4() { return static_cast<int32_t>(offsetof(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_StaticFields, ___reapplyDrivenProperties_4)); } inline ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D * get_reapplyDrivenProperties_4() const { return ___reapplyDrivenProperties_4; } inline ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D ** get_address_of_reapplyDrivenProperties_4() { return &___reapplyDrivenProperties_4; } inline void set_reapplyDrivenProperties_4(ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D * value) { ___reapplyDrivenProperties_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___reapplyDrivenProperties_4), (void*)value); } }; // UnityEngine.Audio.AudioSpatializerMicrosoft struct AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 { public: // UnityEngine.Audio.AudioSpatializerMicrosoft_RoomSize UnityEngine.Audio.AudioSpatializerMicrosoft::m_RoomSize int32_t ___m_RoomSize_4; public: inline static int32_t get_offset_of_m_RoomSize_4() { return static_cast<int32_t>(offsetof(AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83, ___m_RoomSize_4)); } inline int32_t get_m_RoomSize_4() const { return ___m_RoomSize_4; } inline int32_t* get_address_of_m_RoomSize_4() { return &___m_RoomSize_4; } inline void set_m_RoomSize_4(int32_t value) { ___m_RoomSize_4 = value; } }; // UnityEngine.AudioSource struct AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C : public AudioBehaviour_tC612EC4E17A648A5C568621F3FBF1DBD773C71C7 { public: public: }; // UnityEngine.EventSystems.UIBehaviour struct UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 { public: public: }; // UnityEngine.XR.WSA.SpatialMappingBase struct SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 { public: // UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase::m_SurfaceParent GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_SurfaceParent_7; // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::m_FreezeUpdates bool ___m_FreezeUpdates_8; // UnityEngine.XR.WSA.SpatialMappingBase_VolumeType UnityEngine.XR.WSA.SpatialMappingBase::m_VolumeType int32_t ___m_VolumeType_9; // System.Single UnityEngine.XR.WSA.SpatialMappingBase::m_SphereRadius float ___m_SphereRadius_10; // UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::m_HalfBoxExtents Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_HalfBoxExtents_11; // UnityEngine.XR.WSA.SpatialMappingBase_LODType UnityEngine.XR.WSA.SpatialMappingBase::m_LodType int32_t ___m_LodType_12; // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::m_NumUpdatesBeforeRemoval int32_t ___m_NumUpdatesBeforeRemoval_13; // System.Single UnityEngine.XR.WSA.SpatialMappingBase::m_SecondsBetweenUpdates float ___m_SecondsBetweenUpdates_14; // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::m_BakePhysics bool ___m_BakePhysics_15; // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::<observerId>k__BackingField int32_t ___U3CobserverIdU3Ek__BackingField_16; // UnityEngine.XR.WSA.SurfaceObserver UnityEngine.XR.WSA.SpatialMappingBase::<surfaceObserver>k__BackingField SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___U3CsurfaceObserverU3Ek__BackingField_17; // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface> UnityEngine.XR.WSA.SpatialMappingBase::<surfaceObjects>k__BackingField Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___U3CsurfaceObjectsU3Ek__BackingField_18; // UnityEngine.Bounds UnityEngine.XR.WSA.SpatialMappingBase::<bounds>k__BackingField Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 ___U3CboundsU3Ek__BackingField_19; // UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::<lastUpdatedObserverPosition>k__BackingField Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___U3ClastUpdatedObserverPositionU3Ek__BackingField_20; // UnityEngine.Camera UnityEngine.XR.WSA.SpatialMappingBase::<selectedCamera>k__BackingField Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___U3CselectedCameraU3Ek__BackingField_21; // System.Single UnityEngine.XR.WSA.SpatialMappingBase::<nextSurfaceChangeUpdateTime>k__BackingField float ___U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22; // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface> UnityEngine.XR.WSA.SpatialMappingBase::m_PendingSurfacesForEviction Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___m_PendingSurfacesForEviction_23; // System.Collections.Generic.List`1<System.Int32> UnityEngine.XR.WSA.SpatialMappingBase::m_SurfacesToRemoveFromDict List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * ___m_SurfacesToRemoveFromDict_24; // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::m_SurfaceParentWasDynamicallyCreated bool ___m_SurfaceParentWasDynamicallyCreated_25; // UnityEngine.XR.WSA.SurfaceData UnityEngine.XR.WSA.SpatialMappingBase::bestSurfaceDataNull SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bestSurfaceDataNull_27; public: inline static int32_t get_offset_of_m_SurfaceParent_7() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_SurfaceParent_7)); } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_SurfaceParent_7() const { return ___m_SurfaceParent_7; } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_SurfaceParent_7() { return &___m_SurfaceParent_7; } inline void set_m_SurfaceParent_7(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value) { ___m_SurfaceParent_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_SurfaceParent_7), (void*)value); } inline static int32_t get_offset_of_m_FreezeUpdates_8() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_FreezeUpdates_8)); } inline bool get_m_FreezeUpdates_8() const { return ___m_FreezeUpdates_8; } inline bool* get_address_of_m_FreezeUpdates_8() { return &___m_FreezeUpdates_8; } inline void set_m_FreezeUpdates_8(bool value) { ___m_FreezeUpdates_8 = value; } inline static int32_t get_offset_of_m_VolumeType_9() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_VolumeType_9)); } inline int32_t get_m_VolumeType_9() const { return ___m_VolumeType_9; } inline int32_t* get_address_of_m_VolumeType_9() { return &___m_VolumeType_9; } inline void set_m_VolumeType_9(int32_t value) { ___m_VolumeType_9 = value; } inline static int32_t get_offset_of_m_SphereRadius_10() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_SphereRadius_10)); } inline float get_m_SphereRadius_10() const { return ___m_SphereRadius_10; } inline float* get_address_of_m_SphereRadius_10() { return &___m_SphereRadius_10; } inline void set_m_SphereRadius_10(float value) { ___m_SphereRadius_10 = value; } inline static int32_t get_offset_of_m_HalfBoxExtents_11() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_HalfBoxExtents_11)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_HalfBoxExtents_11() const { return ___m_HalfBoxExtents_11; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_HalfBoxExtents_11() { return &___m_HalfBoxExtents_11; } inline void set_m_HalfBoxExtents_11(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_HalfBoxExtents_11 = value; } inline static int32_t get_offset_of_m_LodType_12() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_LodType_12)); } inline int32_t get_m_LodType_12() const { return ___m_LodType_12; } inline int32_t* get_address_of_m_LodType_12() { return &___m_LodType_12; } inline void set_m_LodType_12(int32_t value) { ___m_LodType_12 = value; } inline static int32_t get_offset_of_m_NumUpdatesBeforeRemoval_13() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_NumUpdatesBeforeRemoval_13)); } inline int32_t get_m_NumUpdatesBeforeRemoval_13() const { return ___m_NumUpdatesBeforeRemoval_13; } inline int32_t* get_address_of_m_NumUpdatesBeforeRemoval_13() { return &___m_NumUpdatesBeforeRemoval_13; } inline void set_m_NumUpdatesBeforeRemoval_13(int32_t value) { ___m_NumUpdatesBeforeRemoval_13 = value; } inline static int32_t get_offset_of_m_SecondsBetweenUpdates_14() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_SecondsBetweenUpdates_14)); } inline float get_m_SecondsBetweenUpdates_14() const { return ___m_SecondsBetweenUpdates_14; } inline float* get_address_of_m_SecondsBetweenUpdates_14() { return &___m_SecondsBetweenUpdates_14; } inline void set_m_SecondsBetweenUpdates_14(float value) { ___m_SecondsBetweenUpdates_14 = value; } inline static int32_t get_offset_of_m_BakePhysics_15() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_BakePhysics_15)); } inline bool get_m_BakePhysics_15() const { return ___m_BakePhysics_15; } inline bool* get_address_of_m_BakePhysics_15() { return &___m_BakePhysics_15; } inline void set_m_BakePhysics_15(bool value) { ___m_BakePhysics_15 = value; } inline static int32_t get_offset_of_U3CobserverIdU3Ek__BackingField_16() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CobserverIdU3Ek__BackingField_16)); } inline int32_t get_U3CobserverIdU3Ek__BackingField_16() const { return ___U3CobserverIdU3Ek__BackingField_16; } inline int32_t* get_address_of_U3CobserverIdU3Ek__BackingField_16() { return &___U3CobserverIdU3Ek__BackingField_16; } inline void set_U3CobserverIdU3Ek__BackingField_16(int32_t value) { ___U3CobserverIdU3Ek__BackingField_16 = value; } inline static int32_t get_offset_of_U3CsurfaceObserverU3Ek__BackingField_17() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CsurfaceObserverU3Ek__BackingField_17)); } inline SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * get_U3CsurfaceObserverU3Ek__BackingField_17() const { return ___U3CsurfaceObserverU3Ek__BackingField_17; } inline SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 ** get_address_of_U3CsurfaceObserverU3Ek__BackingField_17() { return &___U3CsurfaceObserverU3Ek__BackingField_17; } inline void set_U3CsurfaceObserverU3Ek__BackingField_17(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * value) { ___U3CsurfaceObserverU3Ek__BackingField_17 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CsurfaceObserverU3Ek__BackingField_17), (void*)value); } inline static int32_t get_offset_of_U3CsurfaceObjectsU3Ek__BackingField_18() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CsurfaceObjectsU3Ek__BackingField_18)); } inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * get_U3CsurfaceObjectsU3Ek__BackingField_18() const { return ___U3CsurfaceObjectsU3Ek__BackingField_18; } inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 ** get_address_of_U3CsurfaceObjectsU3Ek__BackingField_18() { return &___U3CsurfaceObjectsU3Ek__BackingField_18; } inline void set_U3CsurfaceObjectsU3Ek__BackingField_18(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * value) { ___U3CsurfaceObjectsU3Ek__BackingField_18 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CsurfaceObjectsU3Ek__BackingField_18), (void*)value); } inline static int32_t get_offset_of_U3CboundsU3Ek__BackingField_19() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CboundsU3Ek__BackingField_19)); } inline Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 get_U3CboundsU3Ek__BackingField_19() const { return ___U3CboundsU3Ek__BackingField_19; } inline Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 * get_address_of_U3CboundsU3Ek__BackingField_19() { return &___U3CboundsU3Ek__BackingField_19; } inline void set_U3CboundsU3Ek__BackingField_19(Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 value) { ___U3CboundsU3Ek__BackingField_19 = value; } inline static int32_t get_offset_of_U3ClastUpdatedObserverPositionU3Ek__BackingField_20() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3ClastUpdatedObserverPositionU3Ek__BackingField_20)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_U3ClastUpdatedObserverPositionU3Ek__BackingField_20() const { return ___U3ClastUpdatedObserverPositionU3Ek__BackingField_20; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_U3ClastUpdatedObserverPositionU3Ek__BackingField_20() { return &___U3ClastUpdatedObserverPositionU3Ek__BackingField_20; } inline void set_U3ClastUpdatedObserverPositionU3Ek__BackingField_20(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___U3ClastUpdatedObserverPositionU3Ek__BackingField_20 = value; } inline static int32_t get_offset_of_U3CselectedCameraU3Ek__BackingField_21() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CselectedCameraU3Ek__BackingField_21)); } inline Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * get_U3CselectedCameraU3Ek__BackingField_21() const { return ___U3CselectedCameraU3Ek__BackingField_21; } inline Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 ** get_address_of_U3CselectedCameraU3Ek__BackingField_21() { return &___U3CselectedCameraU3Ek__BackingField_21; } inline void set_U3CselectedCameraU3Ek__BackingField_21(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * value) { ___U3CselectedCameraU3Ek__BackingField_21 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CselectedCameraU3Ek__BackingField_21), (void*)value); } inline static int32_t get_offset_of_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22)); } inline float get_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22() const { return ___U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22; } inline float* get_address_of_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22() { return &___U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22; } inline void set_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22(float value) { ___U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22 = value; } inline static int32_t get_offset_of_m_PendingSurfacesForEviction_23() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_PendingSurfacesForEviction_23)); } inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * get_m_PendingSurfacesForEviction_23() const { return ___m_PendingSurfacesForEviction_23; } inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 ** get_address_of_m_PendingSurfacesForEviction_23() { return &___m_PendingSurfacesForEviction_23; } inline void set_m_PendingSurfacesForEviction_23(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * value) { ___m_PendingSurfacesForEviction_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_PendingSurfacesForEviction_23), (void*)value); } inline static int32_t get_offset_of_m_SurfacesToRemoveFromDict_24() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_SurfacesToRemoveFromDict_24)); } inline List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * get_m_SurfacesToRemoveFromDict_24() const { return ___m_SurfacesToRemoveFromDict_24; } inline List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 ** get_address_of_m_SurfacesToRemoveFromDict_24() { return &___m_SurfacesToRemoveFromDict_24; } inline void set_m_SurfacesToRemoveFromDict_24(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * value) { ___m_SurfacesToRemoveFromDict_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_SurfacesToRemoveFromDict_24), (void*)value); } inline static int32_t get_offset_of_m_SurfaceParentWasDynamicallyCreated_25() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_SurfaceParentWasDynamicallyCreated_25)); } inline bool get_m_SurfaceParentWasDynamicallyCreated_25() const { return ___m_SurfaceParentWasDynamicallyCreated_25; } inline bool* get_address_of_m_SurfaceParentWasDynamicallyCreated_25() { return &___m_SurfaceParentWasDynamicallyCreated_25; } inline void set_m_SurfaceParentWasDynamicallyCreated_25(bool value) { ___m_SurfaceParentWasDynamicallyCreated_25 = value; } inline static int32_t get_offset_of_bestSurfaceDataNull_27() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___bestSurfaceDataNull_27)); } inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 get_bestSurfaceDataNull_27() const { return ___bestSurfaceDataNull_27; } inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * get_address_of_bestSurfaceDataNull_27() { return &___bestSurfaceDataNull_27; } inline void set_bestSurfaceDataNull_27(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 value) { ___bestSurfaceDataNull_27 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___bestSurfaceDataNull_27))->___outputMesh_1), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___bestSurfaceDataNull_27))->___outputAnchor_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___bestSurfaceDataNull_27))->___outputCollider_3), (void*)NULL); #endif } }; struct SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields { public: // System.Single UnityEngine.XR.WSA.SpatialMappingBase::s_MovementUpdateThresholdSqr float ___s_MovementUpdateThresholdSqr_4; // System.Single UnityEngine.XR.WSA.SpatialMappingBase::s_EvictionUpdateTickThresholdSqr float ___s_EvictionUpdateTickThresholdSqr_5; // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::s_ObserverIdCounter int32_t ___s_ObserverIdCounter_6; // System.Int32[] UnityEngine.XR.WSA.SpatialMappingBase::s_LodToPcm Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___s_LodToPcm_26; public: inline static int32_t get_offset_of_s_MovementUpdateThresholdSqr_4() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields, ___s_MovementUpdateThresholdSqr_4)); } inline float get_s_MovementUpdateThresholdSqr_4() const { return ___s_MovementUpdateThresholdSqr_4; } inline float* get_address_of_s_MovementUpdateThresholdSqr_4() { return &___s_MovementUpdateThresholdSqr_4; } inline void set_s_MovementUpdateThresholdSqr_4(float value) { ___s_MovementUpdateThresholdSqr_4 = value; } inline static int32_t get_offset_of_s_EvictionUpdateTickThresholdSqr_5() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields, ___s_EvictionUpdateTickThresholdSqr_5)); } inline float get_s_EvictionUpdateTickThresholdSqr_5() const { return ___s_EvictionUpdateTickThresholdSqr_5; } inline float* get_address_of_s_EvictionUpdateTickThresholdSqr_5() { return &___s_EvictionUpdateTickThresholdSqr_5; } inline void set_s_EvictionUpdateTickThresholdSqr_5(float value) { ___s_EvictionUpdateTickThresholdSqr_5 = value; } inline static int32_t get_offset_of_s_ObserverIdCounter_6() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields, ___s_ObserverIdCounter_6)); } inline int32_t get_s_ObserverIdCounter_6() const { return ___s_ObserverIdCounter_6; } inline int32_t* get_address_of_s_ObserverIdCounter_6() { return &___s_ObserverIdCounter_6; } inline void set_s_ObserverIdCounter_6(int32_t value) { ___s_ObserverIdCounter_6 = value; } inline static int32_t get_offset_of_s_LodToPcm_26() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields, ___s_LodToPcm_26)); } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_s_LodToPcm_26() const { return ___s_LodToPcm_26; } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_s_LodToPcm_26() { return &___s_LodToPcm_26; } inline void set_s_LodToPcm_26(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value) { ___s_LodToPcm_26 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_LodToPcm_26), (void*)value); } }; // UnityEngine.EventSystems.BaseInput struct BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 : public UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70 { public: public: }; // UnityEngine.EventSystems.BaseInputModule struct BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 : public UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70 { public: // System.Collections.Generic.List`1<UnityEngine.EventSystems.RaycastResult> UnityEngine.EventSystems.BaseInputModule::m_RaycastResultCache List_1_t1BB31D71CB8736DC35CCD9FFB9228FAFD427EB52 * ___m_RaycastResultCache_4; // UnityEngine.EventSystems.AxisEventData UnityEngine.EventSystems.BaseInputModule::m_AxisEventData AxisEventData_t6684191CFC2ADB0DD66DD195174D92F017862442 * ___m_AxisEventData_5; // UnityEngine.EventSystems.EventSystem UnityEngine.EventSystems.BaseInputModule::m_EventSystem EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * ___m_EventSystem_6; // UnityEngine.EventSystems.BaseEventData UnityEngine.EventSystems.BaseInputModule::m_BaseEventData BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * ___m_BaseEventData_7; // UnityEngine.EventSystems.BaseInput UnityEngine.EventSystems.BaseInputModule::m_InputOverride BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * ___m_InputOverride_8; // UnityEngine.EventSystems.BaseInput UnityEngine.EventSystems.BaseInputModule::m_DefaultInput BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * ___m_DefaultInput_9; public: inline static int32_t get_offset_of_m_RaycastResultCache_4() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_RaycastResultCache_4)); } inline List_1_t1BB31D71CB8736DC35CCD9FFB9228FAFD427EB52 * get_m_RaycastResultCache_4() const { return ___m_RaycastResultCache_4; } inline List_1_t1BB31D71CB8736DC35CCD9FFB9228FAFD427EB52 ** get_address_of_m_RaycastResultCache_4() { return &___m_RaycastResultCache_4; } inline void set_m_RaycastResultCache_4(List_1_t1BB31D71CB8736DC35CCD9FFB9228FAFD427EB52 * value) { ___m_RaycastResultCache_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_RaycastResultCache_4), (void*)value); } inline static int32_t get_offset_of_m_AxisEventData_5() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_AxisEventData_5)); } inline AxisEventData_t6684191CFC2ADB0DD66DD195174D92F017862442 * get_m_AxisEventData_5() const { return ___m_AxisEventData_5; } inline AxisEventData_t6684191CFC2ADB0DD66DD195174D92F017862442 ** get_address_of_m_AxisEventData_5() { return &___m_AxisEventData_5; } inline void set_m_AxisEventData_5(AxisEventData_t6684191CFC2ADB0DD66DD195174D92F017862442 * value) { ___m_AxisEventData_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_AxisEventData_5), (void*)value); } inline static int32_t get_offset_of_m_EventSystem_6() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_EventSystem_6)); } inline EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * get_m_EventSystem_6() const { return ___m_EventSystem_6; } inline EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 ** get_address_of_m_EventSystem_6() { return &___m_EventSystem_6; } inline void set_m_EventSystem_6(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * value) { ___m_EventSystem_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_EventSystem_6), (void*)value); } inline static int32_t get_offset_of_m_BaseEventData_7() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_BaseEventData_7)); } inline BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * get_m_BaseEventData_7() const { return ___m_BaseEventData_7; } inline BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 ** get_address_of_m_BaseEventData_7() { return &___m_BaseEventData_7; } inline void set_m_BaseEventData_7(BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * value) { ___m_BaseEventData_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_BaseEventData_7), (void*)value); } inline static int32_t get_offset_of_m_InputOverride_8() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_InputOverride_8)); } inline BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * get_m_InputOverride_8() const { return ___m_InputOverride_8; } inline BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 ** get_address_of_m_InputOverride_8() { return &___m_InputOverride_8; } inline void set_m_InputOverride_8(BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * value) { ___m_InputOverride_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_InputOverride_8), (void*)value); } inline static int32_t get_offset_of_m_DefaultInput_9() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_DefaultInput_9)); } inline BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * get_m_DefaultInput_9() const { return ___m_DefaultInput_9; } inline BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 ** get_address_of_m_DefaultInput_9() { return &___m_DefaultInput_9; } inline void set_m_DefaultInput_9(BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * value) { ___m_DefaultInput_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_DefaultInput_9), (void*)value); } }; // UnityEngine.EventSystems.EventSystem struct EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 : public UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70 { public: // System.Collections.Generic.List`1<UnityEngine.EventSystems.BaseInputModule> UnityEngine.EventSystems.EventSystem::m_SystemInputModules List_1_t4FB5BF302DAD74D690156A022C4FA4D4081E9B26 * ___m_SystemInputModules_4; // UnityEngine.EventSystems.BaseInputModule UnityEngine.EventSystems.EventSystem::m_CurrentInputModule BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 * ___m_CurrentInputModule_5; // UnityEngine.GameObject UnityEngine.EventSystems.EventSystem::m_FirstSelected GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_FirstSelected_7; // System.Boolean UnityEngine.EventSystems.EventSystem::m_sendNavigationEvents bool ___m_sendNavigationEvents_8; // System.Int32 UnityEngine.EventSystems.EventSystem::m_DragThreshold int32_t ___m_DragThreshold_9; // UnityEngine.GameObject UnityEngine.EventSystems.EventSystem::m_CurrentSelected GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_CurrentSelected_10; // System.Boolean UnityEngine.EventSystems.EventSystem::m_HasFocus bool ___m_HasFocus_11; // System.Boolean UnityEngine.EventSystems.EventSystem::m_SelectionGuard bool ___m_SelectionGuard_12; // UnityEngine.EventSystems.BaseEventData UnityEngine.EventSystems.EventSystem::m_DummyData BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * ___m_DummyData_13; public: inline static int32_t get_offset_of_m_SystemInputModules_4() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_SystemInputModules_4)); } inline List_1_t4FB5BF302DAD74D690156A022C4FA4D4081E9B26 * get_m_SystemInputModules_4() const { return ___m_SystemInputModules_4; } inline List_1_t4FB5BF302DAD74D690156A022C4FA4D4081E9B26 ** get_address_of_m_SystemInputModules_4() { return &___m_SystemInputModules_4; } inline void set_m_SystemInputModules_4(List_1_t4FB5BF302DAD74D690156A022C4FA4D4081E9B26 * value) { ___m_SystemInputModules_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_SystemInputModules_4), (void*)value); } inline static int32_t get_offset_of_m_CurrentInputModule_5() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_CurrentInputModule_5)); } inline BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 * get_m_CurrentInputModule_5() const { return ___m_CurrentInputModule_5; } inline BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 ** get_address_of_m_CurrentInputModule_5() { return &___m_CurrentInputModule_5; } inline void set_m_CurrentInputModule_5(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 * value) { ___m_CurrentInputModule_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_CurrentInputModule_5), (void*)value); } inline static int32_t get_offset_of_m_FirstSelected_7() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_FirstSelected_7)); } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_FirstSelected_7() const { return ___m_FirstSelected_7; } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_FirstSelected_7() { return &___m_FirstSelected_7; } inline void set_m_FirstSelected_7(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value) { ___m_FirstSelected_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_FirstSelected_7), (void*)value); } inline static int32_t get_offset_of_m_sendNavigationEvents_8() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_sendNavigationEvents_8)); } inline bool get_m_sendNavigationEvents_8() const { return ___m_sendNavigationEvents_8; } inline bool* get_address_of_m_sendNavigationEvents_8() { return &___m_sendNavigationEvents_8; } inline void set_m_sendNavigationEvents_8(bool value) { ___m_sendNavigationEvents_8 = value; } inline static int32_t get_offset_of_m_DragThreshold_9() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_DragThreshold_9)); } inline int32_t get_m_DragThreshold_9() const { return ___m_DragThreshold_9; } inline int32_t* get_address_of_m_DragThreshold_9() { return &___m_DragThreshold_9; } inline void set_m_DragThreshold_9(int32_t value) { ___m_DragThreshold_9 = value; } inline static int32_t get_offset_of_m_CurrentSelected_10() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_CurrentSelected_10)); } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_CurrentSelected_10() const { return ___m_CurrentSelected_10; } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_CurrentSelected_10() { return &___m_CurrentSelected_10; } inline void set_m_CurrentSelected_10(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value) { ___m_CurrentSelected_10 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_CurrentSelected_10), (void*)value); } inline static int32_t get_offset_of_m_HasFocus_11() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_HasFocus_11)); } inline bool get_m_HasFocus_11() const { return ___m_HasFocus_11; } inline bool* get_address_of_m_HasFocus_11() { return &___m_HasFocus_11; } inline void set_m_HasFocus_11(bool value) { ___m_HasFocus_11 = value; } inline static int32_t get_offset_of_m_SelectionGuard_12() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_SelectionGuard_12)); } inline bool get_m_SelectionGuard_12() const { return ___m_SelectionGuard_12; } inline bool* get_address_of_m_SelectionGuard_12() { return &___m_SelectionGuard_12; } inline void set_m_SelectionGuard_12(bool value) { ___m_SelectionGuard_12 = value; } inline static int32_t get_offset_of_m_DummyData_13() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_DummyData_13)); } inline BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * get_m_DummyData_13() const { return ___m_DummyData_13; } inline BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 ** get_address_of_m_DummyData_13() { return &___m_DummyData_13; } inline void set_m_DummyData_13(BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * value) { ___m_DummyData_13 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_DummyData_13), (void*)value); } }; struct EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77_StaticFields { public: // System.Collections.Generic.List`1<UnityEngine.EventSystems.EventSystem> UnityEngine.EventSystems.EventSystem::m_EventSystems List_1_t882412D5BE0B5BFC1900366319F8B2EB544BDD8B * ___m_EventSystems_6; // System.Comparison`1<UnityEngine.EventSystems.RaycastResult> UnityEngine.EventSystems.EventSystem::s_RaycastComparer Comparison_1_t32541D3F4C935BBA3800256BD21A7CA8148AAC13 * ___s_RaycastComparer_14; public: inline static int32_t get_offset_of_m_EventSystems_6() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77_StaticFields, ___m_EventSystems_6)); } inline List_1_t882412D5BE0B5BFC1900366319F8B2EB544BDD8B * get_m_EventSystems_6() const { return ___m_EventSystems_6; } inline List_1_t882412D5BE0B5BFC1900366319F8B2EB544BDD8B ** get_address_of_m_EventSystems_6() { return &___m_EventSystems_6; } inline void set_m_EventSystems_6(List_1_t882412D5BE0B5BFC1900366319F8B2EB544BDD8B * value) { ___m_EventSystems_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_EventSystems_6), (void*)value); } inline static int32_t get_offset_of_s_RaycastComparer_14() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77_StaticFields, ___s_RaycastComparer_14)); } inline Comparison_1_t32541D3F4C935BBA3800256BD21A7CA8148AAC13 * get_s_RaycastComparer_14() const { return ___s_RaycastComparer_14; } inline Comparison_1_t32541D3F4C935BBA3800256BD21A7CA8148AAC13 ** get_address_of_s_RaycastComparer_14() { return &___s_RaycastComparer_14; } inline void set_s_RaycastComparer_14(Comparison_1_t32541D3F4C935BBA3800256BD21A7CA8148AAC13 * value) { ___s_RaycastComparer_14 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_RaycastComparer_14), (void*)value); } }; // UnityEngine.XR.WSA.SpatialMappingCollider struct SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 : public SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 { public: // System.Int32 UnityEngine.XR.WSA.SpatialMappingCollider::m_Layer int32_t ___m_Layer_28; // UnityEngine.PhysicMaterial UnityEngine.XR.WSA.SpatialMappingCollider::m_Material PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * ___m_Material_29; // System.Boolean UnityEngine.XR.WSA.SpatialMappingCollider::m_EnableCollisions bool ___m_EnableCollisions_30; public: inline static int32_t get_offset_of_m_Layer_28() { return static_cast<int32_t>(offsetof(SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2, ___m_Layer_28)); } inline int32_t get_m_Layer_28() const { return ___m_Layer_28; } inline int32_t* get_address_of_m_Layer_28() { return &___m_Layer_28; } inline void set_m_Layer_28(int32_t value) { ___m_Layer_28 = value; } inline static int32_t get_offset_of_m_Material_29() { return static_cast<int32_t>(offsetof(SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2, ___m_Material_29)); } inline PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * get_m_Material_29() const { return ___m_Material_29; } inline PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 ** get_address_of_m_Material_29() { return &___m_Material_29; } inline void set_m_Material_29(PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * value) { ___m_Material_29 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Material_29), (void*)value); } inline static int32_t get_offset_of_m_EnableCollisions_30() { return static_cast<int32_t>(offsetof(SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2, ___m_EnableCollisions_30)); } inline bool get_m_EnableCollisions_30() const { return ___m_EnableCollisions_30; } inline bool* get_address_of_m_EnableCollisions_30() { return &___m_EnableCollisions_30; } inline void set_m_EnableCollisions_30(bool value) { ___m_EnableCollisions_30 = value; } }; // UnityEngine.XR.WSA.SpatialMappingRenderer struct SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB : public SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 { public: // UnityEngine.XR.WSA.SpatialMappingRenderer_RenderState UnityEngine.XR.WSA.SpatialMappingRenderer::m_CurrentRenderState int32_t ___m_CurrentRenderState_28; // UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::m_VisualMaterial Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_VisualMaterial_29; // UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::m_OcclusionMaterial Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_OcclusionMaterial_30; public: inline static int32_t get_offset_of_m_CurrentRenderState_28() { return static_cast<int32_t>(offsetof(SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB, ___m_CurrentRenderState_28)); } inline int32_t get_m_CurrentRenderState_28() const { return ___m_CurrentRenderState_28; } inline int32_t* get_address_of_m_CurrentRenderState_28() { return &___m_CurrentRenderState_28; } inline void set_m_CurrentRenderState_28(int32_t value) { ___m_CurrentRenderState_28 = value; } inline static int32_t get_offset_of_m_VisualMaterial_29() { return static_cast<int32_t>(offsetof(SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB, ___m_VisualMaterial_29)); } inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_VisualMaterial_29() const { return ___m_VisualMaterial_29; } inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_VisualMaterial_29() { return &___m_VisualMaterial_29; } inline void set_m_VisualMaterial_29(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value) { ___m_VisualMaterial_29 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_VisualMaterial_29), (void*)value); } inline static int32_t get_offset_of_m_OcclusionMaterial_30() { return static_cast<int32_t>(offsetof(SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB, ___m_OcclusionMaterial_30)); } inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_OcclusionMaterial_30() const { return ___m_OcclusionMaterial_30; } inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_OcclusionMaterial_30() { return &___m_OcclusionMaterial_30; } inline void set_m_OcclusionMaterial_30(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value) { ___m_OcclusionMaterial_30 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_OcclusionMaterial_30), (void*)value); } }; // UnityEngine.EventSystems.HoloLensInput struct HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 : public BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 { public: // System.Boolean UnityEngine.EventSystems.HoloLensInput::m_IsEmulatedMouseDownCurr bool ___m_IsEmulatedMouseDownCurr_4; // System.Boolean UnityEngine.EventSystems.HoloLensInput::m_IsEmulatedMouseDownPrev bool ___m_IsEmulatedMouseDownPrev_5; // UnityEngine.EventSystems.HoloLensInput_MouseEmulationMode UnityEngine.EventSystems.HoloLensInput::m_MouseEmulationMode int32_t ___m_MouseEmulationMode_6; // UnityEngine.Vector3 UnityEngine.EventSystems.HoloLensInput::m_NavigationNormalizedOffset Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_NavigationNormalizedOffset_7; // UnityEngine.Vector3 UnityEngine.EventSystems.HoloLensInput::m_NavigationAnchorWorldSpace Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_NavigationAnchorWorldSpace_8; // UnityEngine.Vector3 UnityEngine.EventSystems.HoloLensInput::m_TapAnchorWorldSpace Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_TapAnchorWorldSpace_9; // System.Single UnityEngine.EventSystems.HoloLensInput::m_LastTapTime float ___m_LastTapTime_10; // UnityEngine.EventSystems.HoloLensInputModule UnityEngine.EventSystems.HoloLensInput::m_Module HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * ___m_Module_11; // UnityEngine.XR.WSA.Input.GestureRecognizer UnityEngine.EventSystems.HoloLensInput::m_GestureRecognizer GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * ___m_GestureRecognizer_12; public: inline static int32_t get_offset_of_m_IsEmulatedMouseDownCurr_4() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_IsEmulatedMouseDownCurr_4)); } inline bool get_m_IsEmulatedMouseDownCurr_4() const { return ___m_IsEmulatedMouseDownCurr_4; } inline bool* get_address_of_m_IsEmulatedMouseDownCurr_4() { return &___m_IsEmulatedMouseDownCurr_4; } inline void set_m_IsEmulatedMouseDownCurr_4(bool value) { ___m_IsEmulatedMouseDownCurr_4 = value; } inline static int32_t get_offset_of_m_IsEmulatedMouseDownPrev_5() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_IsEmulatedMouseDownPrev_5)); } inline bool get_m_IsEmulatedMouseDownPrev_5() const { return ___m_IsEmulatedMouseDownPrev_5; } inline bool* get_address_of_m_IsEmulatedMouseDownPrev_5() { return &___m_IsEmulatedMouseDownPrev_5; } inline void set_m_IsEmulatedMouseDownPrev_5(bool value) { ___m_IsEmulatedMouseDownPrev_5 = value; } inline static int32_t get_offset_of_m_MouseEmulationMode_6() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_MouseEmulationMode_6)); } inline int32_t get_m_MouseEmulationMode_6() const { return ___m_MouseEmulationMode_6; } inline int32_t* get_address_of_m_MouseEmulationMode_6() { return &___m_MouseEmulationMode_6; } inline void set_m_MouseEmulationMode_6(int32_t value) { ___m_MouseEmulationMode_6 = value; } inline static int32_t get_offset_of_m_NavigationNormalizedOffset_7() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_NavigationNormalizedOffset_7)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_NavigationNormalizedOffset_7() const { return ___m_NavigationNormalizedOffset_7; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_NavigationNormalizedOffset_7() { return &___m_NavigationNormalizedOffset_7; } inline void set_m_NavigationNormalizedOffset_7(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_NavigationNormalizedOffset_7 = value; } inline static int32_t get_offset_of_m_NavigationAnchorWorldSpace_8() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_NavigationAnchorWorldSpace_8)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_NavigationAnchorWorldSpace_8() const { return ___m_NavigationAnchorWorldSpace_8; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_NavigationAnchorWorldSpace_8() { return &___m_NavigationAnchorWorldSpace_8; } inline void set_m_NavigationAnchorWorldSpace_8(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_NavigationAnchorWorldSpace_8 = value; } inline static int32_t get_offset_of_m_TapAnchorWorldSpace_9() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_TapAnchorWorldSpace_9)); } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_TapAnchorWorldSpace_9() const { return ___m_TapAnchorWorldSpace_9; } inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_TapAnchorWorldSpace_9() { return &___m_TapAnchorWorldSpace_9; } inline void set_m_TapAnchorWorldSpace_9(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value) { ___m_TapAnchorWorldSpace_9 = value; } inline static int32_t get_offset_of_m_LastTapTime_10() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_LastTapTime_10)); } inline float get_m_LastTapTime_10() const { return ___m_LastTapTime_10; } inline float* get_address_of_m_LastTapTime_10() { return &___m_LastTapTime_10; } inline void set_m_LastTapTime_10(float value) { ___m_LastTapTime_10 = value; } inline static int32_t get_offset_of_m_Module_11() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_Module_11)); } inline HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * get_m_Module_11() const { return ___m_Module_11; } inline HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB ** get_address_of_m_Module_11() { return &___m_Module_11; } inline void set_m_Module_11(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * value) { ___m_Module_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Module_11), (void*)value); } inline static int32_t get_offset_of_m_GestureRecognizer_12() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_GestureRecognizer_12)); } inline GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * get_m_GestureRecognizer_12() const { return ___m_GestureRecognizer_12; } inline GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE ** get_address_of_m_GestureRecognizer_12() { return &___m_GestureRecognizer_12; } inline void set_m_GestureRecognizer_12(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * value) { ___m_GestureRecognizer_12 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_GestureRecognizer_12), (void*)value); } }; // UnityEngine.EventSystems.PointerInputModule struct PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C : public BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 { public: // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.EventSystems.PointerEventData> UnityEngine.EventSystems.PointerInputModule::m_PointerData Dictionary_2_t9F401E8FAE13945DFBD264E317248AB9CC9C36CA * ___m_PointerData_14; // UnityEngine.EventSystems.PointerInputModule_MouseState UnityEngine.EventSystems.PointerInputModule::m_MouseState MouseState_t4D6249AEF3F24542B7F13D49020EC1B8DC2F05D7 * ___m_MouseState_15; public: inline static int32_t get_offset_of_m_PointerData_14() { return static_cast<int32_t>(offsetof(PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C, ___m_PointerData_14)); } inline Dictionary_2_t9F401E8FAE13945DFBD264E317248AB9CC9C36CA * get_m_PointerData_14() const { return ___m_PointerData_14; } inline Dictionary_2_t9F401E8FAE13945DFBD264E317248AB9CC9C36CA ** get_address_of_m_PointerData_14() { return &___m_PointerData_14; } inline void set_m_PointerData_14(Dictionary_2_t9F401E8FAE13945DFBD264E317248AB9CC9C36CA * value) { ___m_PointerData_14 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_PointerData_14), (void*)value); } inline static int32_t get_offset_of_m_MouseState_15() { return static_cast<int32_t>(offsetof(PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C, ___m_MouseState_15)); } inline MouseState_t4D6249AEF3F24542B7F13D49020EC1B8DC2F05D7 * get_m_MouseState_15() const { return ___m_MouseState_15; } inline MouseState_t4D6249AEF3F24542B7F13D49020EC1B8DC2F05D7 ** get_address_of_m_MouseState_15() { return &___m_MouseState_15; } inline void set_m_MouseState_15(MouseState_t4D6249AEF3F24542B7F13D49020EC1B8DC2F05D7 * value) { ___m_MouseState_15 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_MouseState_15), (void*)value); } }; // UnityEngine.EventSystems.StandaloneInputModule struct StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 : public PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C { public: // System.Single UnityEngine.EventSystems.StandaloneInputModule::m_PrevActionTime float ___m_PrevActionTime_16; // UnityEngine.Vector2 UnityEngine.EventSystems.StandaloneInputModule::m_LastMoveVector Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___m_LastMoveVector_17; // System.Int32 UnityEngine.EventSystems.StandaloneInputModule::m_ConsecutiveMoveCount int32_t ___m_ConsecutiveMoveCount_18; // UnityEngine.Vector2 UnityEngine.EventSystems.StandaloneInputModule::m_LastMousePosition Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___m_LastMousePosition_19; // UnityEngine.Vector2 UnityEngine.EventSystems.StandaloneInputModule::m_MousePosition Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___m_MousePosition_20; // UnityEngine.GameObject UnityEngine.EventSystems.StandaloneInputModule::m_CurrentFocusedGameObject GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_CurrentFocusedGameObject_21; // UnityEngine.EventSystems.PointerEventData UnityEngine.EventSystems.StandaloneInputModule::m_InputPointerEvent PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * ___m_InputPointerEvent_22; // System.String UnityEngine.EventSystems.StandaloneInputModule::m_HorizontalAxis String_t* ___m_HorizontalAxis_23; // System.String UnityEngine.EventSystems.StandaloneInputModule::m_VerticalAxis String_t* ___m_VerticalAxis_24; // System.String UnityEngine.EventSystems.StandaloneInputModule::m_SubmitButton String_t* ___m_SubmitButton_25; // System.String UnityEngine.EventSystems.StandaloneInputModule::m_CancelButton String_t* ___m_CancelButton_26; // System.Single UnityEngine.EventSystems.StandaloneInputModule::m_InputActionsPerSecond float ___m_InputActionsPerSecond_27; // System.Single UnityEngine.EventSystems.StandaloneInputModule::m_RepeatDelay float ___m_RepeatDelay_28; // System.Boolean UnityEngine.EventSystems.StandaloneInputModule::m_ForceModuleActive bool ___m_ForceModuleActive_29; public: inline static int32_t get_offset_of_m_PrevActionTime_16() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_PrevActionTime_16)); } inline float get_m_PrevActionTime_16() const { return ___m_PrevActionTime_16; } inline float* get_address_of_m_PrevActionTime_16() { return &___m_PrevActionTime_16; } inline void set_m_PrevActionTime_16(float value) { ___m_PrevActionTime_16 = value; } inline static int32_t get_offset_of_m_LastMoveVector_17() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_LastMoveVector_17)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_m_LastMoveVector_17() const { return ___m_LastMoveVector_17; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_m_LastMoveVector_17() { return &___m_LastMoveVector_17; } inline void set_m_LastMoveVector_17(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___m_LastMoveVector_17 = value; } inline static int32_t get_offset_of_m_ConsecutiveMoveCount_18() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_ConsecutiveMoveCount_18)); } inline int32_t get_m_ConsecutiveMoveCount_18() const { return ___m_ConsecutiveMoveCount_18; } inline int32_t* get_address_of_m_ConsecutiveMoveCount_18() { return &___m_ConsecutiveMoveCount_18; } inline void set_m_ConsecutiveMoveCount_18(int32_t value) { ___m_ConsecutiveMoveCount_18 = value; } inline static int32_t get_offset_of_m_LastMousePosition_19() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_LastMousePosition_19)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_m_LastMousePosition_19() const { return ___m_LastMousePosition_19; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_m_LastMousePosition_19() { return &___m_LastMousePosition_19; } inline void set_m_LastMousePosition_19(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___m_LastMousePosition_19 = value; } inline static int32_t get_offset_of_m_MousePosition_20() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_MousePosition_20)); } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_m_MousePosition_20() const { return ___m_MousePosition_20; } inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_m_MousePosition_20() { return &___m_MousePosition_20; } inline void set_m_MousePosition_20(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value) { ___m_MousePosition_20 = value; } inline static int32_t get_offset_of_m_CurrentFocusedGameObject_21() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_CurrentFocusedGameObject_21)); } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_CurrentFocusedGameObject_21() const { return ___m_CurrentFocusedGameObject_21; } inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_CurrentFocusedGameObject_21() { return &___m_CurrentFocusedGameObject_21; } inline void set_m_CurrentFocusedGameObject_21(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value) { ___m_CurrentFocusedGameObject_21 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_CurrentFocusedGameObject_21), (void*)value); } inline static int32_t get_offset_of_m_InputPointerEvent_22() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_InputPointerEvent_22)); } inline PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * get_m_InputPointerEvent_22() const { return ___m_InputPointerEvent_22; } inline PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 ** get_address_of_m_InputPointerEvent_22() { return &___m_InputPointerEvent_22; } inline void set_m_InputPointerEvent_22(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * value) { ___m_InputPointerEvent_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_InputPointerEvent_22), (void*)value); } inline static int32_t get_offset_of_m_HorizontalAxis_23() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_HorizontalAxis_23)); } inline String_t* get_m_HorizontalAxis_23() const { return ___m_HorizontalAxis_23; } inline String_t** get_address_of_m_HorizontalAxis_23() { return &___m_HorizontalAxis_23; } inline void set_m_HorizontalAxis_23(String_t* value) { ___m_HorizontalAxis_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_HorizontalAxis_23), (void*)value); } inline static int32_t get_offset_of_m_VerticalAxis_24() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_VerticalAxis_24)); } inline String_t* get_m_VerticalAxis_24() const { return ___m_VerticalAxis_24; } inline String_t** get_address_of_m_VerticalAxis_24() { return &___m_VerticalAxis_24; } inline void set_m_VerticalAxis_24(String_t* value) { ___m_VerticalAxis_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_VerticalAxis_24), (void*)value); } inline static int32_t get_offset_of_m_SubmitButton_25() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_SubmitButton_25)); } inline String_t* get_m_SubmitButton_25() const { return ___m_SubmitButton_25; } inline String_t** get_address_of_m_SubmitButton_25() { return &___m_SubmitButton_25; } inline void set_m_SubmitButton_25(String_t* value) { ___m_SubmitButton_25 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_SubmitButton_25), (void*)value); } inline static int32_t get_offset_of_m_CancelButton_26() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_CancelButton_26)); } inline String_t* get_m_CancelButton_26() const { return ___m_CancelButton_26; } inline String_t** get_address_of_m_CancelButton_26() { return &___m_CancelButton_26; } inline void set_m_CancelButton_26(String_t* value) { ___m_CancelButton_26 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_CancelButton_26), (void*)value); } inline static int32_t get_offset_of_m_InputActionsPerSecond_27() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_InputActionsPerSecond_27)); } inline float get_m_InputActionsPerSecond_27() const { return ___m_InputActionsPerSecond_27; } inline float* get_address_of_m_InputActionsPerSecond_27() { return &___m_InputActionsPerSecond_27; } inline void set_m_InputActionsPerSecond_27(float value) { ___m_InputActionsPerSecond_27 = value; } inline static int32_t get_offset_of_m_RepeatDelay_28() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_RepeatDelay_28)); } inline float get_m_RepeatDelay_28() const { return ___m_RepeatDelay_28; } inline float* get_address_of_m_RepeatDelay_28() { return &___m_RepeatDelay_28; } inline void set_m_RepeatDelay_28(float value) { ___m_RepeatDelay_28 = value; } inline static int32_t get_offset_of_m_ForceModuleActive_29() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_ForceModuleActive_29)); } inline bool get_m_ForceModuleActive_29() const { return ___m_ForceModuleActive_29; } inline bool* get_address_of_m_ForceModuleActive_29() { return &___m_ForceModuleActive_29; } inline void set_m_ForceModuleActive_29(bool value) { ___m_ForceModuleActive_29 = value; } }; // UnityEngine.EventSystems.HoloLensInputModule struct HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB : public StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 { public: // System.Single UnityEngine.EventSystems.HoloLensInputModule::m_NormalizedNavigationToScreenOffsetScalar float ___m_NormalizedNavigationToScreenOffsetScalar_30; // System.Single UnityEngine.EventSystems.HoloLensInputModule::m_TimeToPressOnTap float ___m_TimeToPressOnTap_31; // UnityEngine.EventSystems.HoloLensInput UnityEngine.EventSystems.HoloLensInputModule::m_HoloLensInput HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * ___m_HoloLensInput_32; // System.Boolean UnityEngine.EventSystems.HoloLensInputModule::m_HasBeenActivated bool ___m_HasBeenActivated_33; // System.Boolean UnityEngine.EventSystems.HoloLensInputModule::m_HasGestureToProcess bool ___m_HasGestureToProcess_34; public: inline static int32_t get_offset_of_m_NormalizedNavigationToScreenOffsetScalar_30() { return static_cast<int32_t>(offsetof(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB, ___m_NormalizedNavigationToScreenOffsetScalar_30)); } inline float get_m_NormalizedNavigationToScreenOffsetScalar_30() const { return ___m_NormalizedNavigationToScreenOffsetScalar_30; } inline float* get_address_of_m_NormalizedNavigationToScreenOffsetScalar_30() { return &___m_NormalizedNavigationToScreenOffsetScalar_30; } inline void set_m_NormalizedNavigationToScreenOffsetScalar_30(float value) { ___m_NormalizedNavigationToScreenOffsetScalar_30 = value; } inline static int32_t get_offset_of_m_TimeToPressOnTap_31() { return static_cast<int32_t>(offsetof(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB, ___m_TimeToPressOnTap_31)); } inline float get_m_TimeToPressOnTap_31() const { return ___m_TimeToPressOnTap_31; } inline float* get_address_of_m_TimeToPressOnTap_31() { return &___m_TimeToPressOnTap_31; } inline void set_m_TimeToPressOnTap_31(float value) { ___m_TimeToPressOnTap_31 = value; } inline static int32_t get_offset_of_m_HoloLensInput_32() { return static_cast<int32_t>(offsetof(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB, ___m_HoloLensInput_32)); } inline HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * get_m_HoloLensInput_32() const { return ___m_HoloLensInput_32; } inline HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 ** get_address_of_m_HoloLensInput_32() { return &___m_HoloLensInput_32; } inline void set_m_HoloLensInput_32(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * value) { ___m_HoloLensInput_32 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_HoloLensInput_32), (void*)value); } inline static int32_t get_offset_of_m_HasBeenActivated_33() { return static_cast<int32_t>(offsetof(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB, ___m_HasBeenActivated_33)); } inline bool get_m_HasBeenActivated_33() const { return ___m_HasBeenActivated_33; } inline bool* get_address_of_m_HasBeenActivated_33() { return &___m_HasBeenActivated_33; } inline void set_m_HasBeenActivated_33(bool value) { ___m_HasBeenActivated_33 = value; } inline static int32_t get_offset_of_m_HasGestureToProcess_34() { return static_cast<int32_t>(offsetof(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB, ___m_HasGestureToProcess_34)); } inline bool get_m_HasGestureToProcess_34() const { return ___m_HasGestureToProcess_34; } inline bool* get_address_of_m_HasGestureToProcess_34() { return &___m_HasGestureToProcess_34; } inline void set_m_HasGestureToProcess_34(bool value) { ___m_HasGestureToProcess_34 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // System.Int32[] struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83 : public RuntimeArray { public: ALIGN_FIELD (8) int32_t m_Items[1]; public: inline int32_t GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline int32_t* GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, int32_t value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline int32_t GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline int32_t* GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, int32_t value) { m_Items[index] = value; } }; // System.Delegate[] struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86 : public RuntimeArray { public: ALIGN_FIELD (8) Delegate_t * m_Items[1]; public: inline Delegate_t * GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Delegate_t ** GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, Delegate_t * value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value); } inline Delegate_t * GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Delegate_t ** GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Delegate_t * value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value); } }; // UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest[] struct SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD : public RuntimeArray { public: ALIGN_FIELD (8) SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 m_Items[1]; public: inline SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputMesh_1), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputAnchor_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputCollider_3), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_Component_0), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_OnDataReady_1), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_GetHighestPri_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_SurfaceObserver_3), (void*)NULL); #endif } inline SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputMesh_1), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputAnchor_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputCollider_3), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_Component_0), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_OnDataReady_1), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_GetHighestPri_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_SurfaceObserver_3), (void*)NULL); #endif } }; // UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord[] struct SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1 : public RuntimeArray { public: ALIGN_FIELD (8) SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C m_Items[1]; public: inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Component_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_OnDataReady_1), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_GetHighestPri_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_SurfaceObserver_3), (void*)NULL); #endif } inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Component_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_OnDataReady_1), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_GetHighestPri_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_SurfaceObserver_3), (void*)NULL); #endif } }; IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_pinvoke(const SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66& unmarshaled, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke& marshaled); IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_pinvoke_back(const SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke& marshaled, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66& unmarshaled); IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_pinvoke_cleanup(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke& marshaled); IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled); IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke_back(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled); IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke_cleanup(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled); IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_com(const SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66& unmarshaled, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com& marshaled); IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_com_back(const SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com& marshaled, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66& unmarshaled); IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_com_cleanup(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com& marshaled); IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled); IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com_back(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled); IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com_cleanup(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled); IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_pinvoke(const SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864& unmarshaled, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke& marshaled); IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_pinvoke_back(const SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke& marshaled, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864& unmarshaled); IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_pinvoke_cleanup(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke& marshaled); IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_com(const SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864& unmarshaled, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com& marshaled); IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_com_back(const SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com& marshaled, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864& unmarshaled); IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_com_cleanup(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com& marshaled); // !!0 UnityEngine.Component::GetComponent<System.Object>() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * Component_GetComponent_TisRuntimeObject_m15E3130603CE5400743CCCDEE7600FB9EEFAE5C0_gshared (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs>::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0_gshared (Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs>::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031_gshared (Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs>::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F_gshared (Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs>::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7_gshared (Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs>::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F_gshared (Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method); // !!0 UnityEngine.GameObject::GetComponent<System.Object>() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * GameObject_GetComponent_TisRuntimeObject_mE03C66715289D7957CA068A675826B7EE0887BE3_gshared (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method); // !!0 UnityEngine.GameObject::AddComponent<System.Object>() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method); // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2__ctor_m7D745ADE56151C2895459668F4A4242985E526D8_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, const RuntimeMethod* method); // System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Count() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Dictionary_2_get_Count_m69345D9DEE55AA0CE574D19CB7C430AC638C01A9_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, const RuntimeMethod* method); // System.Collections.Generic.Dictionary`2/Enumerator<!0,!1> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::GetEnumerator() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF Dictionary_2_GetEnumerator_m96229BB73AA611A324DC70110E62FE619827A2CD_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, const RuntimeMethod* method); // System.Collections.Generic.KeyValuePair`2<!0,!1> System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::get_Current() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE Enumerator_get_Current_mD6B1E9D5866E377F8CAD19D88CECDB8AA7016553_gshared_inline (Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF * __this, const RuntimeMethod* method); // !1 System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::get_Value() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR RuntimeObject * KeyValuePair_2_get_Value_m6111F7FFB9F9E80C559084882040115B4F3DFF8E_gshared_inline (KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE * __this, const RuntimeMethod* method); // System.Boolean System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::MoveNext() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Enumerator_MoveNext_m2E3757A7C76D2E1DB0B77D03FF3DE7406334779A_gshared (Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF * __this, const RuntimeMethod* method); // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::Dispose() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Enumerator_Dispose_mA0C519E84D909C2F0BEABF433D85E0EC6FB7C218_gshared (Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF * __this, const RuntimeMethod* method); // !0 System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::get_Key() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t KeyValuePair_2_get_Key_m3A05638ECF11AC4B452C86801F0A7263344AB2AC_gshared_inline (KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE * __this, const RuntimeMethod* method); // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Clear() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2_Clear_m482455899CE0084909A48605A2F722B2F1307FB7_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, const RuntimeMethod* method); // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ContainsKey(!0) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Dictionary_2_ContainsKey_m379C08BE13D2E0AD1F9102B6E280A32F0C9C7015_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, const RuntimeMethod* method); // !1 System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Item(!0) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * Dictionary_2_get_Item_mEFECE2769017AB70A9B1E7F5F8BBA59375620B54_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, const RuntimeMethod* method); // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::set_Item(!0,!1) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2_set_Item_mF9A6FBE4006C89D15B8C88B2CB46E9B24D18B7FC_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method); // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Remove(!0) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Dictionary_2_Remove_m2204D6D532702FD13AB2A9AD8DB538E4E8FB1913_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, const RuntimeMethod* method); // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Add(!0,!1) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2_Add_mF7AEA0EFA07EEBC1A4B283A26A7CB720EE7A4C20_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method); // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::TryGetValue(!0,!1&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Dictionary_2_TryGetValue_m867F6DA953678D0333A55270B7C6EF38EFC293FF_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, RuntimeObject ** ___value1, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1<System.Int32>::Clear() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477_gshared (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1<System.Int32>::Add(!0) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771_gshared (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, int32_t ___item0, const RuntimeMethod* method); // !0 System.Collections.Generic.List`1<System.Int32>::get_Item(System.Int32) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_gshared_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, int32_t ___index0, const RuntimeMethod* method); // System.Int32 System.Collections.Generic.List`1<System.Int32>::get_Count() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_gshared_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method); // System.Void System.Action`1<System.Object>::Invoke(!0) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1_Invoke_mB86FC1B303E77C41ED0E94FC3592A9CF8DA571D5_gshared (Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * __this, RuntimeObject * ___obj0, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1<System.Int32>::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4_gshared (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method); // System.Void System.Action`1<System.Object>::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_mAFC7442D9D3CEC6701C3C5599F8CF12476095510_gshared (Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method); // System.Void System.Predicate`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972_gshared (Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method); // !0 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Find(System.Predicate`1<!0>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * ___match0, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Add(!0) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___item0, const RuntimeMethod* method); // System.Int32 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::RemoveAll(System.Predicate`1<!0>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * ___match0, const RuntimeMethod* method); // System.Collections.Generic.List`1/Enumerator<!0> System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::GetEnumerator() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method); // !0 System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Current() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_gshared_inline (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method); // System.Boolean System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::MoveNext() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD_gshared (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Dispose() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A_gshared (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method); // !0 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Item(System.Int32) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_gshared_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, int32_t ___index0, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::RemoveAt(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, int32_t ___index0, const RuntimeMethod* method); // System.Int32 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Count() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_gshared_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method); // System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::SetSpatializerRoomSize() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_SetSpatializerRoomSize_mBD4BA990B3FBF49ACF1220A219E2133D6F1062F0 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method); // System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::SetSpatializerFloats() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_SetSpatializerFloats_m9581DC69ADD7393EC63278A2C44C7B5203812140 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method); // !!0 UnityEngine.Component::GetComponent<UnityEngine.AudioSource>() inline AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * Component_GetComponent_TisAudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C_m04C8E98F2393C77979C9D8F6DE1D98343EF025E8 (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method) { return (( AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * (*) (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 *, const RuntimeMethod*))Component_GetComponent_TisRuntimeObject_m15E3130603CE5400743CCCDEE7600FB9EEFAE5C0_gshared)(__this, method); } // UnityEngine.AudioSource UnityEngine.Audio.AudioSpatializerMicrosoft::get_audioSource() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * AudioSpatializerMicrosoft_get_audioSource_m64394B367E4F22778216B603971AC6CB0666FE26 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.AudioSource::SetSpatializerFloat(System.Int32,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool AudioSource_SetSpatializerFloat_mA34E8E88A05FF3682B00E1D29D80581AFED8098F (AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * __this, int32_t ___index0, float ___value1, const RuntimeMethod* method); // System.Void UnityEngine.MonoBehaviour::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97 (MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 * __this, const RuntimeMethod* method); // UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGazeAndGestureScreenPosition() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGazeAndGestureScreenPosition_m7DB2FDF3835B4EDD8C9B8D8FB11D73FB54CDEE2B (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method); // UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGestureScrollDelta() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGestureScrollDelta_m24FDE0BFC26D5173002FBABAD945914E206602B8 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method); // System.Void UnityEngine.EventSystems.UIBehaviour::Awake() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void UIBehaviour_Awake_m5DD9E48E9933AA28DAE1978B5FCC6B90BAF06FDC (UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70 * __this, const RuntimeMethod* method); // !!0 UnityEngine.Component::GetComponent<UnityEngine.EventSystems.HoloLensInputModule>() inline HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * Component_GetComponent_TisHoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB_m5EB41AF0200183B780E6DECD1274962F1367CF1D (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method) { return (( HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * (*) (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 *, const RuntimeMethod*))Component_GetComponent_TisRuntimeObject_m15E3130603CE5400743CCCDEE7600FB9EEFAE5C0_gshared)(__this, method); } // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer__ctor_m4EC0013B225C0189D0ACB2DC77092C809764F1D5 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs>::.ctor(System.Object,System.IntPtr) inline void Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0 (Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { (( void (*) (Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0_gshared)(__this, ___object0, ___method1, method); } // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::add_Tapped(System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_add_Tapped_mD5587B3F0115F9AC0599D555E2988E63136DA3EC (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * ___value0, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs>::.ctor(System.Object,System.IntPtr) inline void Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031 (Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { (( void (*) (Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031_gshared)(__this, ___object0, ___method1, method); } // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::add_NavigationStarted(System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_add_NavigationStarted_mB4E1B0FCB384F37BD9A9309C7C5B0AFADFA3EB1C (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * ___value0, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs>::.ctor(System.Object,System.IntPtr) inline void Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F (Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { (( void (*) (Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F_gshared)(__this, ___object0, ___method1, method); } // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::add_NavigationUpdated(System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_add_NavigationUpdated_mA509F2737D18188204C6E04154B1A1070F8E711C (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * ___value0, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs>::.ctor(System.Object,System.IntPtr) inline void Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7 (Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { (( void (*) (Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7_gshared)(__this, ___object0, ___method1, method); } // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::add_NavigationCompleted(System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_add_NavigationCompleted_mD39CFD50E1AD8B673AB866EA8EAB7E22F2DBDCB3 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * ___value0, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs>::.ctor(System.Object,System.IntPtr) inline void Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F (Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { (( void (*) (Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F_gshared)(__this, ___object0, ___method1, method); } // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::add_NavigationCanceled(System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_add_NavigationCanceled_m457599DCA92748E915C75C3D858C757D21C5FD4B (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * ___value0, const RuntimeMethod* method); // UnityEngine.XR.WSA.Input.GestureSettings UnityEngine.XR.WSA.Input.GestureRecognizer::SetRecognizableGestures(UnityEngine.XR.WSA.Input.GestureSettings) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t GestureRecognizer_SetRecognizableGestures_mF459BAE914B9B2E01E7B1652ACF23C5C2722DA68 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, int32_t ___newMaskValue0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::StartCapturingGestures() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_StartCapturingGestures_mD02F289C8263C8EACB47B4593E55C8B767C524FA (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::StopCapturingGestures() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_StopCapturingGestures_mBA5D5DFFC507CE972150A242E9DFC59B06121D61 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::remove_Tapped(System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_remove_Tapped_mB7FCD101CEEA7DF998931E64E4358F734A06F840 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::remove_NavigationStarted(System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_remove_NavigationStarted_m2456D056E789D6F4FC6BB8477658352C1550E8FF (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::remove_NavigationUpdated(System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_remove_NavigationUpdated_m279E228CE0E46516F24A472998BC0F5B854EF4E8 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::remove_NavigationCompleted(System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_remove_NavigationCompleted_m549BC4069ABD075D8077660FB94C32235306AA03 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::remove_NavigationCanceled(System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_remove_NavigationCanceled_m7F24255B9515ACE9F80A55864A9923D085ED5E32 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * ___value0, const RuntimeMethod* method); // System.Void UnityEngine.EventSystems.UIBehaviour::OnDestroy() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void UIBehaviour_OnDestroy_mAC124B1C2131BDD6B17D70DB2A90632A2355F498 (UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70 * __this, const RuntimeMethod* method); // System.Single UnityEngine.EventSystems.HoloLensInputModule::get_timeToPressOnTap() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float HoloLensInputModule_get_timeToPressOnTap_m98D628A1BA4ADD84B66268FC108B32F6FC8B1FC0_inline (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method); // System.Single UnityEngine.Time::get_time() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8 (const RuntimeMethod* method); // UnityEngine.GameObject UnityEngine.EventSystems.HoloLensInputModule::Internal_GetCurrentFocusedGameObject() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * HoloLensInputModule_Internal_GetCurrentFocusedGameObject_mF8696D11EC99BA6CCAEEF50628ACF1D47D142DF8 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.Object::op_Equality(UnityEngine.Object,UnityEngine.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.Vector3::get_zero() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2 (const RuntimeMethod* method); // !!0 UnityEngine.GameObject::GetComponent<UnityEngine.RectTransform>() inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * GameObject_GetComponent_TisRectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_m2E5F02DDA13C176AF75B4E7C1DB801D89E053B2C (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method) { return (( RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mE03C66715289D7957CA068A675826B7EE0887BE3_gshared)(__this, method); } // UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGazeScreenPosition() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGazeScreenPosition_m9073CFAB427427D2CF716229652E87F8DC58C231 (const RuntimeMethod* method); // UnityEngine.Camera UnityEngine.Camera::get_main() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * Camera_get_main_m9256A9F84F92D7ED73F3E6C4E2694030AD8B61FA (const RuntimeMethod* method); // System.Boolean UnityEngine.RectTransformUtility::ScreenPointToWorldPointInRectangle(UnityEngine.RectTransform,UnityEngine.Vector2,UnityEngine.Camera,UnityEngine.Vector3&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool RectTransformUtility_ScreenPointToWorldPointInRectangle_m821FF925C5B70477F153B4C053AE9E36A04A774F (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPoint1, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam2, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * ___worldPoint3, const RuntimeMethod* method); // System.Void UnityEngine.EventSystems.HoloLensInputModule::Internal_GestureNotifier() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.EventSystems.HoloLensInput::TryGetAnchorWorldSpace(UnityEngine.Vector3&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * ___anchor0, const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs::get_normalizedOffset() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 NavigationUpdatedEventArgs_get_normalizedOffset_m63EFB136CBEC39D4BC004FC814B93FBA69760C02 (NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA * __this, const RuntimeMethod* method); // System.Void UnityEngine.EventSystems.HoloLensInput::OnNavigationCompletedOrCanceled() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method); // System.Int32 UnityEngine.Screen::get_width() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3 (const RuntimeMethod* method); // System.Int32 UnityEngine.Screen::get_height() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150 (const RuntimeMethod* method); // System.Void UnityEngine.Vector2::.ctor(System.Single,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0 (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * __this, float ___x0, float ___y1, const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.Camera::WorldToScreenPoint(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Camera_WorldToScreenPoint_m880F9611E4848C11F21FDF1A1D307B401C61B1BF (Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position0, const RuntimeMethod* method); // UnityEngine.Vector2 UnityEngine.Vector2::op_Implicit(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D Vector2_op_Implicit_mEA1F75961E3D368418BA8CEB9C40E55C25BA3C28 (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___v0, const RuntimeMethod* method); // UnityEngine.Vector2 UnityEngine.Vector2::op_Addition(UnityEngine.Vector2,UnityEngine.Vector2) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D Vector2_op_Addition_m81A4D928B8E399DA3A4E3ACD8937EDFDCB014682 (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___a0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___b1, const RuntimeMethod* method); // System.Single UnityEngine.EventSystems.HoloLensInputModule::get_normalizedNavigationToScreenOffsetScalar() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float HoloLensInputModule_get_normalizedNavigationToScreenOffsetScalar_mE683140D392D6E0CC4161770428E8BDF5C69BC6E_inline (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method); // UnityEngine.Vector2 UnityEngine.Vector2::op_Multiply(System.Single,UnityEngine.Vector2) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D Vector2_op_Multiply_m2E30A54E315810911DFC2E25C700757A68AC1F38 (float ___d0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___a1, const RuntimeMethod* method); // UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::EmulateMousePosition(UnityEngine.Vector3,UnityEngine.Vector2) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___anchorWorldspace0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___finalOffset1, const RuntimeMethod* method); // UnityEngine.Vector2 UnityEngine.Vector2::get_zero() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D Vector2_get_zero_mFE0C3213BB698130D6C5247AB4B887A59074D0A8 (const RuntimeMethod* method); // System.Void UnityEngine.EventSystems.BaseInput::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BaseInput__ctor_m097A1D35CC42538881FAF0E45AFF6FB974377F19 (BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * __this, const RuntimeMethod* method); // System.Void UnityEngine.EventSystems.StandaloneInputModule::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StandaloneInputModule__ctor_m53DF966585A2888088BF07BB7DDE26BA84BA67D0 (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method); // !!0 UnityEngine.Component::GetComponent<UnityEngine.EventSystems.HoloLensInput>() inline HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * Component_GetComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_m698FB9682EE309CAAA265B29C21BF06A62F6C9B2 (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method) { return (( HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * (*) (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 *, const RuntimeMethod*))Component_GetComponent_TisRuntimeObject_m15E3130603CE5400743CCCDEE7600FB9EEFAE5C0_gshared)(__this, method); } // System.Boolean UnityEngine.Object::op_Implicit(UnityEngine.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method); // UnityEngine.GameObject UnityEngine.Component::get_gameObject() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method); // !!0 UnityEngine.GameObject::AddComponent<UnityEngine.EventSystems.HoloLensInput>() inline HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * GameObject_AddComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_mF50CC95A955F7405B540971920DE4739BE47684B (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method) { return (( HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared)(__this, method); } // System.Boolean UnityEngine.EventSystems.StandaloneInputModule::IsModuleSupported() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool StandaloneInputModule_IsModuleSupported_m44C18E994D6B97CDFBD841A9D7314B26B7AA340A (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method); // System.String UnityEngine.XR.XRSettings::get_loadedDeviceName() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* XRSettings_get_loadedDeviceName_m952D46346306FD9477B13992E5797A85CCD3C98C (const RuntimeMethod* method); // System.Boolean System.String::Equals(System.String,System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool String_Equals_m90EB651A751C3444BADBBD5401109CE05B3E1CFB (String_t* ___a0, String_t* ___b1, const RuntimeMethod* method); // System.Boolean UnityEngine.EventSystems.StandaloneInputModule::get_forceModuleActive() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool StandaloneInputModule_get_forceModuleActive_m7C481C9C4D478CB162E289F9D038859990973E6E_inline (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method); // System.Void UnityEngine.EventSystems.StandaloneInputModule::ActivateModule() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StandaloneInputModule_ActivateModule_m75B8C7CF41074D98F23DBCBADBEC12204F101F04 (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method); // System.Void UnityEngine.EventSystems.HoloLensInput::UpdateInput() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_UpdateInput_m6731D6E86EB7A3FF3A1117D89C680811435BF85D (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method); // System.Void UnityEngine.EventSystems.StandaloneInputModule::UpdateModule() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StandaloneInputModule_UpdateModule_m6BE8C301BEB10BD653F0D0EEB6522E3A8F3221BA (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.EventSystems.HoloLensInput::AllowDrag() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_AllowDrag_m629C213EC2A00C394A67A0989E437EB230A16E3D (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method); // System.Void UnityEngine.EventSystems.PointerInputModule::ProcessDrag(UnityEngine.EventSystems.PointerEventData) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PointerInputModule_ProcessDrag_m2A544286EF20A04D6E42FFCFD0F73DD89F9614A2 (PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C * __this, PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * ___pointerEvent0, const RuntimeMethod* method); // UnityEngine.GameObject UnityEngine.EventSystems.StandaloneInputModule::GetCurrentFocusedGameObject() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * StandaloneInputModule_GetCurrentFocusedGameObject_mA354FCB4E2546E1F49D165207705A26D29EBB3D7_inline (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method); // UnityEngine.EventSystems.EventSystem UnityEngine.EventSystems.BaseInputModule::get_eventSystem() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * BaseInputModule_get_eventSystem_mEF6DEC17FF56D786AA217A52FCCFE8C6F38546BE_inline (BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_observerId(System.Int32) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_observerId_m6AFBE2E2DD43BE4877B51B515994535F544E1E07_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method); // System.Void System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::.ctor() inline void Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, const RuntimeMethod* method) { (( void (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, const RuntimeMethod*))Dictionary_2__ctor_m7D745ADE56151C2895459668F4A4242985E526D8_gshared)(__this, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceObjects(System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObjects_m034B1632BAC1CE797ADE3EF453B3BF7F0C0B8E90_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_selectedCamera(UnityEngine.Camera) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_selectedCamera_m571711921F39F8AC923BF9964A3E559DEF2455A2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_nextSurfaceChangeUpdateTime(System.Single) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_nextSurfaceChangeUpdateTime_m6EC9BA4E9FFDEE3AA5687571ABA564FB59BF590E_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, float ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SurfaceObserver::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceObserver__ctor_mBDC4FE3EC359DB3F2481186A400EB613B9C63E90 (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceObserver(UnityEngine.XR.WSA.SurfaceObserver) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObserver_mDDE2BC259C50248E17B85DDB4C68097E7C97B9DE_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___value0, const RuntimeMethod* method); // UnityEngine.XR.WSA.SpatialMappingContext UnityEngine.XR.WSA.SpatialMappingContext::get_Instance() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_inline (const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase/SurfaceDataReadyCallback::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyCallback__ctor_m34CF9585F05EE122494CB1FC3151AC877FED820B (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingContext/GetHighestPriorityCallback::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GetHighestPriorityCallback__ctor_m47258A0A36E0E79506F872C8E03AB33D8A666B47 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method); // UnityEngine.XR.WSA.SurfaceObserver UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceObserver() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingContext::RegisterComponent(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SpatialMappingBase/SurfaceDataReadyCallback,UnityEngine.XR.WSA.SpatialMappingContext/GetHighestPriorityCallback,UnityEngine.XR.WSA.SurfaceObserver) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent0, SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___onDataReady1, GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___getHighestPri2, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___observer3, const RuntimeMethod* method); // UnityEngine.Transform UnityEngine.Component::get_transform() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9 (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.Transform::get_position() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::get_halfBoxExtents() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.Bounds::.ctor(UnityEngine.Vector3,UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Bounds__ctor_m294E77A20EC1A3E96985FE1A925CB271D1B5266D (Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___center0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___size1, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_bounds(UnityEngine.Bounds) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bounds_m537FDB6EDF4E405E7D140CFE44828BCB753C60EE_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::UpdatePosition() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_UpdatePosition_m03871BCE86A0E5912CB8DAE5174F807FEBA2C613 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface> UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceObjects() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::get_Count() inline int32_t Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, const RuntimeMethod* method) { return (( int32_t (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, const RuntimeMethod*))Dictionary_2_get_Count_m69345D9DEE55AA0CE574D19CB7C430AC638C01A9_gshared)(__this, method); } // System.Collections.Generic.Dictionary`2/Enumerator<!0,!1> System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::GetEnumerator() inline Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, const RuntimeMethod* method) { return (( Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, const RuntimeMethod*))Dictionary_2_GetEnumerator_m96229BB73AA611A324DC70110E62FE619827A2CD_gshared)(__this, method); } // System.Collections.Generic.KeyValuePair`2<!0,!1> System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::get_Current() inline KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B * __this, const RuntimeMethod* method) { return (( KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 (*) (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *, const RuntimeMethod*))Enumerator_get_Current_mD6B1E9D5866E377F8CAD19D88CECDB8AA7016553_gshared_inline)(__this, method); } // !1 System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::get_Value() inline Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline (KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 * __this, const RuntimeMethod* method) { return (( Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * (*) (KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *, const RuntimeMethod*))KeyValuePair_2_get_Value_m6111F7FFB9F9E80C559084882040115B4F3DFF8E_gshared_inline)(__this, method); } // UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_gameObject() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.Object::op_Inequality(UnityEngine.Object,UnityEngine.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method); // System.Void UnityEngine.GameObject::SetActive(System.Boolean) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, bool ___value0, const RuntimeMethod* method); // System.Boolean System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::MoveNext() inline bool Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1 (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B * __this, const RuntimeMethod* method) { return (( bool (*) (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *, const RuntimeMethod*))Enumerator_MoveNext_m2E3757A7C76D2E1DB0B77D03FF3DE7406334779A_gshared)(__this, method); } // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::Dispose() inline void Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1 (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B * __this, const RuntimeMethod* method) { (( void (*) (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *, const RuntimeMethod*))Enumerator_Dispose_mA0C519E84D909C2F0BEABF433D85E0EC6FB7C218_gshared)(__this, method); } // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface> UnityEngine.XR.WSA.SpatialMappingBase::get_pendingSurfacesForEviction() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // !0 System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::get_Key() inline int32_t KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_inline (KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 * __this, const RuntimeMethod* method) { return (( int32_t (*) (KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *, const RuntimeMethod*))KeyValuePair_2_get_Key_m3A05638ECF11AC4B452C86801F0A7263344AB2AC_gshared_inline)(__this, method); } // System.String System.String::Format(System.String,System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA (String_t* ___format0, RuntimeObject * ___arg01, const RuntimeMethod* method); // System.Void UnityEngine.Debug::LogWarning(System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Debug_LogWarning_m37338644DC81F640CCDFEAE35A223F0E965F0568 (RuntimeObject * ___message0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingContext::DeregisterComponent(UnityEngine.XR.WSA.SpatialMappingBase) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent0, const RuntimeMethod* method); // System.Void System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::Clear() inline void Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, const RuntimeMethod* method) { (( void (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, const RuntimeMethod*))Dictionary_2_Clear_m482455899CE0084909A48605A2F722B2F1307FB7_gshared)(__this, method); } // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceParentWasDynamicallyCreated() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_surfaceParentWasDynamicallyCreated_mBC600B152C29512A2F47D435843B491F0A23A338_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceParent() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.Object::Destroy(UnityEngine.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___obj0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceParent(UnityEngine.GameObject) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParent_mEA691909114179FEFB851F5A3BA8897A41626B7D_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SurfaceObserver::Dispose() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceObserver_Dispose_mA842C19181453E384E1BCE368468F8762CBB9B1E (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::get_lastUpdatedObserverPosition() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_lastUpdatedObserverPosition_mDA859EDB4C79D8D0E51EE5E1F5AB66C66A0FA88B_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.Vector3::op_Subtraction(UnityEngine.Vector3,UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_op_Subtraction_mF9846B723A5034F8B9F5F5DCB78E3D67649143D3 (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___a0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___b1, const RuntimeMethod* method); // System.Single UnityEngine.Vector3::SqrMagnitude(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Vector3_SqrMagnitude_mBE7ED92F28BBE09310975CDF329913C04EA9500E (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___vector0, const RuntimeMethod* method); // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_freezeUpdates() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_freezeUpdates_m10DAC55A998837D64FE4BB84A4E29D8A852014F2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_nextSurfaceChangeUpdateTime() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_nextSurfaceChangeUpdateTime_mAB42AB4923890CE64BE6EC93A19002886CC88FAA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SurfaceObserver/SurfaceChangedDelegate::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceChangedDelegate__ctor_mC4E2CDAB64B92D5032E1AA39880F73F045D9B714 (SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SurfaceObserver::Update(UnityEngine.XR.WSA.SurfaceObserver/SurfaceChangedDelegate) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceObserver_Update_m08AD5357474ED266F8242C2CE6B42BCC9C131A29 (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1 * ___onSurfaceChanged0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::ProcessEvictedObjects() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_ProcessEvictedObjects_m2717BF741005C02CDBB9137EDF32C6EE4E088AD4 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_secondsBetweenUpdates() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_secondsBetweenUpdates_m08248C91683C82EAF76C2B78F18A6156DA5AD13A_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingContext::ComponentHasDataRequests() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_ComponentHasDataRequests_m5529DEFB30F2B54DF0D7A2D293AFC2B1EF7B6C67 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method); // UnityEngine.XR.WSA.SpatialMappingBase/VolumeType UnityEngine.XR.WSA.SpatialMappingBase::get_volumeType() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_sphereRadius() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SurfaceObserver::SetVolumeAsSphere(UnityEngine.Vector3,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceObserver_SetVolumeAsSphere_m8CC38FF7980EDDCC4D4B9FDB312DB622325BFD70 (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___origin0, float ___radiusMeters1, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SurfaceObserver::SetVolumeAsAxisAlignedBox(UnityEngine.Vector3,UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceObserver_SetVolumeAsAxisAlignedBox_m26D27F3DBEC734594B04C75A37CE28017CB47340 (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___origin0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___extents1, const RuntimeMethod* method); // UnityEngine.Bounds UnityEngine.XR.WSA.SpatialMappingBase::get_bounds() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 SpatialMappingBase_get_bounds_m555A8D615D0643F8FB75D086714A5A5D6AA371D2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.Bounds::set_center(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Bounds_set_center_mAD29DD80FD631F83AF4E7558BB27A0398E8FD841 (Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method); // System.Void UnityEngine.Bounds::set_extents(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Bounds_set_extents_mC83719146B06D0575A160CDDE9997202A1192B35 (Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_lastUpdatedObserverPosition(UnityEngine.Vector3) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_lastUpdatedObserverPosition_mFE6057264FC068449849BDAA7481A917B2FB75F8_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method); // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_bakePhysics() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnAddOrUpdateSurface(UnityEngine.XR.WSA.SurfaceId,System.DateTime,System.Boolean) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnAddOrUpdateSurface_m88092554E531DD3FEF57CE0272920428FFF44A8A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___updateTime1, bool ___bakePhysics2, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnRemoveSurface(UnityEngine.XR.WSA.SurfaceId) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnRemoveSurface_m170B065EDEEE321145D9AFE0FDE9C3202F63B134 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, const RuntimeMethod* method); // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::ContainsKey(!0) inline bool Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, const RuntimeMethod* method) { return (( bool (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, const RuntimeMethod*))Dictionary_2_ContainsKey_m379C08BE13D2E0AD1F9102B6E280A32F0C9C7015_gshared)(__this, ___key0, method); } // !1 System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::get_Item(!0) inline Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, const RuntimeMethod* method) { return (( Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, const RuntimeMethod*))Dictionary_2_get_Item_mEFECE2769017AB70A9B1E7F5F8BBA59375620B54_gshared)(__this, ___key0, method); } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::set_Item(!0,!1) inline void Dictionary_2_set_Item_m4EF301E32DD6BA510761DF9393AB9EA87C5CB686 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___value1, const RuntimeMethod* method) { (( void (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *, const RuntimeMethod*))Dictionary_2_set_Item_mF9A6FBE4006C89D15B8C88B2CB46E9B24D18B7FC_gshared)(__this, ___key0, ___value1, method); } // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::Remove(!0) inline bool Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, const RuntimeMethod* method) { return (( bool (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, const RuntimeMethod*))Dictionary_2_Remove_m2204D6D532702FD13AB2A9AD8DB538E4E8FB1913_gshared)(__this, ___key0, method); } // UnityEngine.XR.WSA.SpatialMappingBase/Surface UnityEngine.XR.WSA.SpatialMappingBase::CreateSurface(UnityEngine.XR.WSA.SurfaceId) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * SpatialMappingBase_CreateSurface_m4B108724636C35394AE9D686FCB8C39517C6671C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_surfaceData(UnityEngine.XR.WSA.SurfaceData) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___value0, const RuntimeMethod* method); // System.Void System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::Add(!0,!1) inline void Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___value1, const RuntimeMethod* method) { (( void (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *, const RuntimeMethod*))Dictionary_2_Add_mF7AEA0EFA07EEBC1A4B283A26A7CB720EE7A4C20_gshared)(__this, ___key0, ___value1, method); } // UnityEngine.XR.WSA.SurfaceData UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_surfaceData() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method); // System.Int32[] UnityEngine.XR.WSA.SpatialMappingBase::get_lodToPcm() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_inline (const RuntimeMethod* method); // UnityEngine.XR.WSA.SpatialMappingBase/LODType UnityEngine.XR.WSA.SpatialMappingBase::get_lodType() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_awaitingBake(System.Boolean) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, bool ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_updateTime(System.DateTime) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_updateTime_m8FDDAF318259294A7184AE968CBC52051BE225F2_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface__ctor_m5034101390586B7DF34E820D9CC592A45C6D5D01 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_surfaceId(UnityEngine.XR.WSA.SurfaceId) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_surfaceId_m0B776CEC7A925E7780973C2E0D787C58B28439F1_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___value0, const RuntimeMethod* method); // UnityEngine.MeshFilter UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_meshFilter() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method); // UnityEngine.Mesh UnityEngine.MeshFilter::get_mesh() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * MeshFilter_get_mesh_m0311B393009B408197013C5EBCB42A1E3EC3B7D5 (MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * __this, const RuntimeMethod* method); // UnityEngine.Mesh UnityEngine.MeshFilter::get_sharedMesh() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * MeshFilter_get_sharedMesh_mC076FD5461BFBBAD3BE49D25263CF140700D9902 (MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * __this, const RuntimeMethod* method); // System.Void UnityEngine.MeshFilter::set_mesh(UnityEngine.Mesh) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MeshFilter_set_mesh_mA18AA96C75CC91CF0917BA1F437626499FAAF496 (MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * __this, Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * ___value0, const RuntimeMethod* method); // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::get_observerId() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_observerId_m11215996E1207E53F6F0C1218CA50AD058B80495_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.GameObject::.ctor(System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameObject__ctor_mBB454E679AD9CF0B84D3609A01E6A9753ACF4686 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, String_t* ___name0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceParentWasDynamicallyCreated(System.Boolean) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParentWasDynamicallyCreated_mAD419F4D32525643B8F2FF5823F130360DA915A1_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method); // UnityEngine.XR.WSA.SurfaceId UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_surfaceId() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF Surface_get_surfaceId_mAD37AE571E345D3B6850E57137292FE70E6F388B_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method); // System.String System.String::Format(System.String,System.Object,System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Format_m19325298DBC61AAC016C16F7B3CF97A8A3DEA34A (String_t* ___format0, RuntimeObject * ___arg01, RuntimeObject * ___arg12, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_gameObject(UnityEngine.GameObject) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_gameObject_mA485C86A72C7B313E831FD5F2853338DF24C87F4_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method); // UnityEngine.Transform UnityEngine.GameObject::get_transform() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method); // System.Void UnityEngine.Transform::set_parent(UnityEngine.Transform) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Transform_set_parent_m65B8E4660B2C554069C57A957D9E55FECA7AA73E (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___value0, const RuntimeMethod* method); // !!0 UnityEngine.GameObject::GetComponent<UnityEngine.MeshFilter>() inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * GameObject_GetComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_mD1BA4FFEB800AB3D102141CD0A0ECE237EA70FB4 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method) { return (( MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mE03C66715289D7957CA068A675826B7EE0887BE3_gshared)(__this, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_meshFilter(UnityEngine.MeshFilter) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshFilter_m09D0BD0AB6A36F2DB45400E12EE2D6CCE0FDF7A1_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___value0, const RuntimeMethod* method); // !!0 UnityEngine.GameObject::AddComponent<UnityEngine.MeshFilter>() inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * GameObject_AddComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_m98AEA1EDDC59492203D06FA2912152C37C4164E4 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method) { return (( MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared)(__this, method); } // UnityEngine.XR.WSA.WorldAnchor UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_worldAnchor() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method); // !!0 UnityEngine.GameObject::GetComponent<UnityEngine.XR.WSA.WorldAnchor>() inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * GameObject_GetComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_mEC8104A64D5255720AC2B56454CD4B573B4B2971 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method) { return (( WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mE03C66715289D7957CA068A675826B7EE0887BE3_gshared)(__this, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_worldAnchor(UnityEngine.XR.WSA.WorldAnchor) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_worldAnchor_m89D7EAB5602CF873669A9D4FFAC3D3B8528C3CEE_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___value0, const RuntimeMethod* method); // !!0 UnityEngine.GameObject::AddComponent<UnityEngine.XR.WSA.WorldAnchor>() inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * GameObject_AddComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_m41101CD1505A6B6B9717C15FACAEE0DD4D1E9CEF (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method) { return (( WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared)(__this, method); } // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::TryGetValue(!0,!1&) inline bool Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D ** ___value1, const RuntimeMethod* method) { return (( bool (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D **, const RuntimeMethod*))Dictionary_2_TryGetValue_m867F6DA953678D0333A55270B7C6EF38EFC293FF_gshared)(__this, ___key0, ___value1, method); } // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::get_numUpdatesBeforeRemoval() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_numUpdatesBeforeRemoval_m6F510DAD1B7465439C2D15C640FF4F0C2FB004BA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::ShouldRemainActiveWhileBeingRemoved(UnityEngine.XR.WSA.SpatialMappingBase/Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_remainingUpdatesToLive(System.Int32) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, int32_t ___value0, const RuntimeMethod* method); // UnityEngine.Camera UnityEngine.XR.WSA.SpatialMappingBase::get_selectedCamera() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * SpatialMappingBase_get_selectedCamera_mE3E4571F7EAF1DF70B6762BC57B6CBAFCB17E834_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // UnityEngine.Transform UnityEngine.Transform::get_parent() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * Transform_get_parent_m8FA24E38A1FA29D90CBF3CDC9F9F017C65BB3403 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::BoundsContains(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position0, const RuntimeMethod* method); // System.Boolean UnityEngine.Bounds::Contains(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Bounds_Contains_mD0387F6A414484534BE1E50E0FC55EDE1E138319 (Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___point0, const RuntimeMethod* method); // System.Collections.Generic.List`1<System.Int32> UnityEngine.XR.WSA.SpatialMappingBase::get_surfacesToRemoveFromDict() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1<System.Int32>::Clear() inline void List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477 (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method) { (( void (*) (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *, const RuntimeMethod*))List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477_gshared)(__this, method); } // System.Void System.Collections.Generic.List`1<System.Int32>::Add(!0) inline void List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771 (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, int32_t ___item0, const RuntimeMethod* method) { (( void (*) (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *, int32_t, const RuntimeMethod*))List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771_gshared)(__this, ___item0, method); } // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_remainingUpdatesToLive() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t Surface_get_remainingUpdatesToLive_m5D45BD30D4CCCAF01FDC1E4D6ACA402AF2E5C1B4_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method); // !0 System.Collections.Generic.List`1<System.Int32>::get_Item(System.Int32) inline int32_t List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, int32_t ___index0, const RuntimeMethod* method) { return (( int32_t (*) (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *, int32_t, const RuntimeMethod*))List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_gshared_inline)(__this, ___index0, method); } // System.Int32 System.Collections.Generic.List`1<System.Int32>::get_Count() inline int32_t List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method) { return (( int32_t (*) (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *, const RuntimeMethod*))List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_gshared_inline)(__this, method); } // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_awaitingBake() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool Surface_get_awaitingBake_m3B199586E0066144D8986804B73E5BDE97FEEB40_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method); // System.DateTime UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_updateTime() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 Surface_get_updateTime_m580ACCD9FDFE2AFE4A982ED12B8B1FC47FACE842_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method); // System.Boolean System.DateTime::op_LessThan(System.DateTime,System.DateTime) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DateTime_op_LessThan_m75DE4F8CC5F5EE392829A9B37C5C98B7FC97061A (DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___t10, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___t21, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase/Surface>::Invoke(!0) inline void Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63 (Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___obj0, const RuntimeMethod* method) { (( void (*) (Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 *, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *, const RuntimeMethod*))Action_1_Invoke_mB86FC1B303E77C41ED0E94FC3592A9CF8DA571D5_gshared)(__this, ___obj0, method); } // UnityEngine.Vector3 UnityEngine.Vector3::get_one() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_get_one_mA11B83037CB269C6076CBCF754E24C8F3ACEC2AB (const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_op_Multiply_m1C5F07723615156ACF035D88A1280A9E8F35A04E (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___a0, float ___d1, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1<System.Int32>::.ctor() inline void List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4 (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method) { (( void (*) (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *, const RuntimeMethod*))List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4_gshared)(__this, method); } // System.Void System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(System.Array,System.RuntimeFieldHandle) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A (RuntimeArray * ___array0, RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF ___fldHandle1, const RuntimeMethod* method); // System.Void System.Object::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0 (RuntimeObject * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::ApplyPropertiesToCachedSurfaces() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_bakePhysics(System.Boolean) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bakePhysics_m33D62027F99886807A3AD366148A4605E0DF45BB_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method); // System.Void UnityEngine.Debug::LogError(System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29 (RuntimeObject * ___message0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::CloneBakedComponents(UnityEngine.XR.WSA.SurfaceData,UnityEngine.XR.WSA.SpatialMappingBase/Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___target1, const RuntimeMethod* method); // System.Int32 UnityEngine.XR.WSA.SpatialMappingCollider::get_layer() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method); // System.Void UnityEngine.GameObject::set_layer(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameObject_set_layer_mDAC8037FCFD0CE62DB66004C4342EA20CF604907 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, int32_t ___value0, const RuntimeMethod* method); // UnityEngine.PhysicMaterial UnityEngine.XR.WSA.SpatialMappingCollider::get_material() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method); // System.Void UnityEngine.Collider::set_material(UnityEngine.PhysicMaterial) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Collider_set_material_m2978E803DF20381466E0BD1F41F759DA015C5E74 (Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * __this, PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * ___value0, const RuntimeMethod* method); // UnityEngine.MeshCollider UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_meshCollider() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method); // System.Void UnityEngine.Collider::set_enabled(System.Boolean) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Collider_set_enabled_mF84DE8B0C8CAF33ACDB7F29BC055D9C8CFACB57B (Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * __this, bool ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::UpdateSurfaceData(UnityEngine.XR.WSA.SpatialMappingBase/Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_UpdateSurfaceData_m54007C547C0BEA915A1178C572AA8F8D2BF598B4 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::AddRequiredComponentsForBaking(UnityEngine.XR.WSA.SpatialMappingBase/Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_AddRequiredComponentsForBaking_m39F67F97247869F12E9E806B6D21AB100AA9F7EA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method); // !!0 UnityEngine.GameObject::AddComponent<UnityEngine.MeshCollider>() inline MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * GameObject_AddComponent_TisMeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE_m38A789A66BD8A824B7D5FF46C20C4BD3CE0F3B3C (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method) { return (( MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared)(__this, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_meshCollider(UnityEngine.MeshCollider) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshCollider_m2928D4F59FDD43EDBA2C0A46D5B66BFFB80DAD5B_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___value0, const RuntimeMethod* method); // System.Void System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase/Surface>::.ctor(System.Object,System.IntPtr) inline void Action_1__ctor_m03B4ABDDD2484F8DD29BC579D18F63D2D69B8CBC (Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { (( void (*) (Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_mAFC7442D9D3CEC6701C3C5599F8CF12476095510_gshared)(__this, ___object0, ___method1, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::ForEachSurfaceInCache(System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase/Surface>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_ForEachSurfaceInCache_mE2BFDBAD198BBC7314E600477E1209864D8C2F12 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * ___callback0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnResetProperties() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnResetProperties_mD42F9367CEA98C6FABE37B83736BD9C6E405AE5A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Int32 UnityEngine.GameObject::get_layer() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t GameObject_get_layer_m0DE90D8A3D3AA80497A3A80FBEAC2D207C16B9C8 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method); // UnityEngine.PhysicMaterial UnityEngine.Collider::get_material() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * Collider_get_material_m4F6B81A3CD1B3B579579EF2DBA73CEF29072766A (Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.Collider::get_enabled() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Collider_get_enabled_mED644D98C6AC2DF95BD86145E8D31AD7081C76EB (Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.XR.WSA.SpatialMappingCollider::get_enableCollisions() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingCollider_get_enableCollisions_m7F553859CFEE41A8A022EC44E5132A57EB557164_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::.ctor() inline void List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method) { (( void (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, const RuntimeMethod*))List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52_gshared)(__this, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingContext/<>c__DisplayClass12_0::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass12_0__ctor_mF948151007C0E6D8E5A56D07390BB18A0EFEC22E (U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * __this, const RuntimeMethod* method); // System.Void System.ArgumentNullException::.ctor(System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * __this, String_t* ___paramName0, const RuntimeMethod* method); // System.Void System.Predicate`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::.ctor(System.Object,System.IntPtr) inline void Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972 (Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { (( void (*) (Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD *, RuntimeObject *, intptr_t, const RuntimeMethod*))Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972_gshared)(__this, ___object0, ___method1, method); } // !0 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Find(System.Predicate`1<!0>) inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * ___match0, const RuntimeMethod* method) { return (( SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD *, const RuntimeMethod*))List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52_gshared)(__this, ___match0, method); } // System.Void System.ArgumentException::.ctor(System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentException__ctor_m9A85EF7FEFEC21DDD525A67E831D77278E5165B7 (ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 * __this, String_t* ___message0, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Add(!0) inline void List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___item0, const RuntimeMethod* method) { (( void (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C , const RuntimeMethod*))List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009_gshared)(__this, ___item0, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingContext/<>c__DisplayClass13_0::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass13_0__ctor_m8F2D1733A044CAB323EC721F55EF8CF934305373 (U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * __this, const RuntimeMethod* method); // System.Int32 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::RemoveAll(System.Predicate`1<!0>) inline int32_t List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * ___match0, const RuntimeMethod* method) { return (( int32_t (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD *, const RuntimeMethod*))List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10_gshared)(__this, ___match0, method); } // System.Int32 UnityEngine.XR.WSA.SpatialMappingContext::GetInFlightIndexFromSD(UnityEngine.XR.WSA.SurfaceData) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingContext_GetInFlightIndexFromSD_mD5589ADEDEB5864958872B01F3668CEE8066F9D9 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___sd0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingContext::PropagateDataReadyEventToComponents(UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_PropagateDataReadyEventToComponents_m16907610BA5CF7D52CF280FD949E783E9ECFD5CA (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___sd0, bool ___outputWritten1, float ___elapsedBakeTimeSeconds2, int32_t ___inFlightIndex3, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingContext::UpdateInFlightRecords(System.Int32,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_UpdateInFlightRecords_mB8AD8D918F398F51B66087489675B921FC57BD21 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, int32_t ___inFlightIndex0, float ___elapsedBakeTimeSeconds1, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingContext::RequestMeshPriorityFromComponents() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest::IsClear() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C (SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * __this, const RuntimeMethod* method); // UnityEngine.XR.WSA.SpatialMappingBase/LODType UnityEngine.XR.WSA.SpatialMappingBase::GetLODFromTPCM(System.Double) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_GetLODFromTPCM_mB942609B9A2BE4201CFF14AD29E3833D04AC17D8 (double ___trianglesPerCubicMeter0, const RuntimeMethod* method); // UnityEngine.XR.WSA.SpatialMappingBase UnityEngine.XR.WSA.SpatialMappingContext::GetSMComponentFromInFlightIndex(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * SpatialMappingContext_GetSMComponentFromInFlightIndex_mF28F6A135A6D8C4FA7D76EEB7A98D62714C498F6 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, int32_t ___inFlightIndex0, const RuntimeMethod* method); // System.Collections.Generic.List`1/Enumerator<!0> System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::GetEnumerator() inline Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method) { return (( Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, const RuntimeMethod*))List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537_gshared)(__this, method); } // !0 System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Current() inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_inline (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method) { return (( SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C (*) (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *, const RuntimeMethod*))Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_gshared_inline)(__this, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingBase/SurfaceDataReadyCallback::Invoke(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyCallback_Invoke_mD9CA9D1746AF5AE4D247404CF4E49DA5FEC086A0 (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___requester0, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData1, bool ___outputWritten2, float ___elapsedBakeTimeSeconds3, const RuntimeMethod* method); // System.Boolean System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::MoveNext() inline bool Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method) { return (( bool (*) (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *, const RuntimeMethod*))Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD_gshared)(__this, method); } // System.Void System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Dispose() inline void Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method) { (( void (*) (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *, const RuntimeMethod*))Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A_gshared)(__this, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest::Clear() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMBakeRequest_Clear_m86306BA81672224B59FAF4E222F232C6D2CC7946 (SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * __this, const RuntimeMethod* method); // !0 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Item(System.Int32) inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, int32_t ___index0, const RuntimeMethod* method) { return (( SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, int32_t, const RuntimeMethod*))List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_gshared_inline)(__this, ___index0, method); } // System.Boolean UnityEngine.XR.WSA.SpatialMappingContext/GetHighestPriorityCallback::Invoke(UnityEngine.XR.WSA.SurfaceData&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool GetHighestPriorityCallback_Invoke_m26851E34E8F7F00E6D82EB593811F3230E8CB3E3 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * ___dataRequest0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SurfaceObserver/SurfaceDataReadyDelegate::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyDelegate__ctor_mB653644D30A5B829714DDEE56B57C2C01AE263E2 (SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method); // System.Boolean UnityEngine.XR.WSA.SurfaceObserver::RequestMeshAsync(UnityEngine.XR.WSA.SurfaceData,UnityEngine.XR.WSA.SurfaceObserver/SurfaceDataReadyDelegate) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SurfaceObserver_RequestMeshAsync_mF7815161E179CE34FBB9FC52127DAE4B39FEBE95 (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___dataRequest0, SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092 * ___onDataReady1, const RuntimeMethod* method); // System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::RemoveAt(System.Int32) inline void List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, int32_t ___index0, const RuntimeMethod* method) { (( void (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, int32_t, const RuntimeMethod*))List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342_gshared)(__this, ___index0, method); } // System.Int32 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Count() inline int32_t List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method) { return (( int32_t (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, const RuntimeMethod*))List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_gshared_inline)(__this, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingContext::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext__ctor_mE213514204AEFCDC1130E4496A75CAC9C190EEC9 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord::Clear() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMComponentRecord_Clear_m415CCE1F9F6B4654D3505256EFE05B49589A78DF (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord::IsClear() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6 (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord::.ctor(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SpatialMappingBase/SurfaceDataReadyCallback,UnityEngine.XR.WSA.SpatialMappingContext/GetHighestPriorityCallback,UnityEngine.XR.WSA.SurfaceObserver) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMComponentRecord__ctor_m0D1ED3535BE9E9E7A81A16BE623A843126E9F723 (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___comp0, SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___onDataReady1, GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___getHighestPri2, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___observer3, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::ApplyPropertiesToCachedSurfaces() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method); // UnityEngine.MeshRenderer UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_meshRenderer() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method); // !!0 UnityEngine.GameObject::GetComponent<UnityEngine.MeshRenderer>() inline MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * GameObject_GetComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m91C1D9637A332988C72E62D52DFCFE89A6DDAB72 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method) { return (( MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mE03C66715289D7957CA068A675826B7EE0887BE3_gshared)(__this, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_meshRenderer(UnityEngine.MeshRenderer) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___value0, const RuntimeMethod* method); // !!0 UnityEngine.GameObject::AddComponent<UnityEngine.MeshRenderer>() inline MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * GameObject_AddComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m16409C054F66125E0380BDDDB1454118A3BAD60E (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method) { return (( MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared)(__this, method); } // System.Void UnityEngine.Renderer::set_receiveShadows(System.Boolean) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Renderer_set_receiveShadows_mD2BD2FF58156E328677EAE5E175D2069BC2925A0 (Renderer_t0556D67DD582620D1F495627EDE30D03284151F4 * __this, bool ___value0, const RuntimeMethod* method); // System.Void UnityEngine.Renderer::set_shadowCastingMode(UnityEngine.Rendering.ShadowCastingMode) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Renderer_set_shadowCastingMode_mC7E601EE9B32B63097B216C78ED4F854B0AF21EC (Renderer_t0556D67DD582620D1F495627EDE30D03284151F4 * __this, int32_t ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::ApplyRenderSettings(UnityEngine.MeshRenderer) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___meshRenderer0, const RuntimeMethod* method); // System.Void UnityEngine.Renderer::set_enabled(System.Boolean) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303 (Renderer_t0556D67DD582620D1F495627EDE30D03284151F4 * __this, bool ___value0, const RuntimeMethod* method); // UnityEngine.XR.WSA.SpatialMappingRenderer/RenderState UnityEngine.XR.WSA.SpatialMappingRenderer::get_renderState() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingRenderer_get_renderState_m1ECB7DED90F00AF9947CC552372FACC39692D84D_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method); // UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::get_occlusionMaterial() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_occlusionMaterial_m7F15BD9F8CEA72EA91A03FBE74B8DEA2E3ADB609_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method); // System.Void UnityEngine.Renderer::set_sharedMaterial(UnityEngine.Material) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Renderer_set_sharedMaterial_mC94A354D9B0FCA081754A7CB51AEE5A9AD3946A3 (Renderer_t0556D67DD582620D1F495627EDE30D03284151F4 * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method); // UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::get_visualMaterial() IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_visualMaterial_mBFDEB3C06FA62BF6BA399F46B98FECC0E11F9AAC_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase/Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_DestroySurface_m61864CCED61827A61A95FA29FAD6ED9920F67E04 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::set_occlusionMaterial(UnityEngine.Material) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_occlusionMaterial_m6600CD1C60856651B8E939DA904984ED9DD82D51_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::set_visualMaterial(UnityEngine.Material) IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_visualMaterial_m439EE5826EC8650A9051CE8878A4DE6E62BAA37E_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnDestroy() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnDestroy_mAF2456D391A059BD21C03AC4F8D0CC1119677E54 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void UnityEngine.XR.WSA.SpatialMappingBase::Reset() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_Reset_m2DB6F9468DCD37B2364AC0E1638C2D8C16A0B411 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method); // System.Void System.ThrowHelper::ThrowArgumentOutOfRangeException() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ThrowHelper_ThrowArgumentOutOfRangeException_mBA2AF20A35144E0C43CD721A22EAC9FCA15D6550 (const RuntimeMethod* method); #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Audio.AudioSpatializerMicrosoft_RoomSize UnityEngine.Audio.AudioSpatializerMicrosoft::get_roomSize() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t AudioSpatializerMicrosoft_get_roomSize_m4827F4A5B17D45A01A3552978A6D2D2809882379 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method) { { // return m_RoomSize; int32_t L_0 = __this->get_m_RoomSize_4(); return L_0; } } // System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::set_roomSize(UnityEngine.Audio.AudioSpatializerMicrosoft_RoomSize) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_set_roomSize_mE355175404ECCF0B728E9447B0AAA95284B02B0A (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, int32_t ___value0, const RuntimeMethod* method) { { // m_RoomSize = value; int32_t L_0 = ___value0; __this->set_m_RoomSize_4(L_0); // SetSpatializerRoomSize(); AudioSpatializerMicrosoft_SetSpatializerRoomSize_mBD4BA990B3FBF49ACF1220A219E2133D6F1062F0(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::Awake() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_Awake_mEA2D1DF056CDDA98FCFD46EE15952FEA8331FD26 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method) { { // SetSpatializerFloats(); AudioSpatializerMicrosoft_SetSpatializerFloats_m9581DC69ADD7393EC63278A2C44C7B5203812140(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::OnValidate() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_OnValidate_m07EE8BEF5426A15DA16A10E2CC6B77995F6E8664 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method) { { // SetSpatializerFloats(); AudioSpatializerMicrosoft_SetSpatializerFloats_m9581DC69ADD7393EC63278A2C44C7B5203812140(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::OnDidAnimateProperty() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_OnDidAnimateProperty_mA94E559F87C7B9DFF1B4BE680226E38FF0D86830 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method) { { // SetSpatializerFloats(); AudioSpatializerMicrosoft_SetSpatializerFloats_m9581DC69ADD7393EC63278A2C44C7B5203812140(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::SetSpatializerFloats() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_SetSpatializerFloats_m9581DC69ADD7393EC63278A2C44C7B5203812140 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method) { { // SetSpatializerRoomSize(); AudioSpatializerMicrosoft_SetSpatializerRoomSize_mBD4BA990B3FBF49ACF1220A219E2133D6F1062F0(__this, /*hidden argument*/NULL); // } return; } } // UnityEngine.AudioSource UnityEngine.Audio.AudioSpatializerMicrosoft::get_audioSource() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * AudioSpatializerMicrosoft_get_audioSource_m64394B367E4F22778216B603971AC6CB0666FE26 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (AudioSpatializerMicrosoft_get_audioSource_m64394B367E4F22778216B603971AC6CB0666FE26_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // get { return GetComponent<AudioSource>(); } AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * L_0 = Component_GetComponent_TisAudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C_m04C8E98F2393C77979C9D8F6DE1D98343EF025E8(__this, /*hidden argument*/Component_GetComponent_TisAudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C_m04C8E98F2393C77979C9D8F6DE1D98343EF025E8_RuntimeMethod_var); return L_0; } } // System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::SetSpatializerRoomSize() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_SetSpatializerRoomSize_mBD4BA990B3FBF49ACF1220A219E2133D6F1062F0 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method) { { // audioSource.SetSpatializerFloat(0, (float)m_RoomSize); AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * L_0 = AudioSpatializerMicrosoft_get_audioSource_m64394B367E4F22778216B603971AC6CB0666FE26(__this, /*hidden argument*/NULL); int32_t L_1 = __this->get_m_RoomSize_4(); NullCheck(L_0); AudioSource_SetSpatializerFloat_mA34E8E88A05FF3682B00E1D29D80581AFED8098F(L_0, 0, (((float)((float)L_1))), /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft__ctor_m139A4F404C376F22B54D67E9EB81262F85B6DE36 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method) { { MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97(__this, /*hidden argument*/NULL); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Boolean UnityEngine.EventSystems.HoloLensInput::get_mousePresent() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_get_mousePresent_m445B5A9C2B183623EB77C27B3A0CC27EB5A4B892 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { { // get { return true; } return (bool)1; } } // System.Boolean UnityEngine.EventSystems.HoloLensInput::GetMouseButtonDown(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_GetMouseButtonDown_mE112D2A4EF2FD55EDD82449FE628F7BFFF669D07 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, int32_t ___button0, const RuntimeMethod* method) { { // return button == 0 && !m_IsEmulatedMouseDownPrev && m_IsEmulatedMouseDownCurr; int32_t L_0 = ___button0; if (L_0) { goto IL_0012; } } { bool L_1 = __this->get_m_IsEmulatedMouseDownPrev_5(); if (L_1) { goto IL_0012; } } { bool L_2 = __this->get_m_IsEmulatedMouseDownCurr_4(); return L_2; } IL_0012: { return (bool)0; } } // System.Boolean UnityEngine.EventSystems.HoloLensInput::GetMouseButtonUp(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_GetMouseButtonUp_m04A47C917982B5A55221FC6D1249527B6C6BC66D (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, int32_t ___button0, const RuntimeMethod* method) { { // return button == 0 && m_IsEmulatedMouseDownPrev && !m_IsEmulatedMouseDownCurr; int32_t L_0 = ___button0; if (L_0) { goto IL_0015; } } { bool L_1 = __this->get_m_IsEmulatedMouseDownPrev_5(); if (!L_1) { goto IL_0015; } } { bool L_2 = __this->get_m_IsEmulatedMouseDownCurr_4(); return (bool)((((int32_t)L_2) == ((int32_t)0))? 1 : 0); } IL_0015: { return (bool)0; } } // System.Boolean UnityEngine.EventSystems.HoloLensInput::GetMouseButton(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_GetMouseButton_mA1312EC3E2BAAD1DA8ACC4D6486B90A1848D3B36 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, int32_t ___button0, const RuntimeMethod* method) { { // return button == 0 && m_IsEmulatedMouseDownCurr; int32_t L_0 = ___button0; if (L_0) { goto IL_000a; } } { bool L_1 = __this->get_m_IsEmulatedMouseDownCurr_4(); return L_1; } IL_000a: { return (bool)0; } } // UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::get_mousePosition() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_get_mousePosition_m5BBF2B8E53FFF5437FDA49DE51CB9E40B73388C4 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { { // get { return GetGazeAndGestureScreenPosition(); } Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_0 = HoloLensInput_GetGazeAndGestureScreenPosition_m7DB2FDF3835B4EDD8C9B8D8FB11D73FB54CDEE2B(__this, /*hidden argument*/NULL); return L_0; } } // UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::get_mouseScrollDelta() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_get_mouseScrollDelta_m7C418980EFFC028FF1C8287613CE80301EA245D6 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { { // get { return GetGestureScrollDelta(); } Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_0 = HoloLensInput_GetGestureScrollDelta_m24FDE0BFC26D5173002FBABAD945914E206602B8(__this, /*hidden argument*/NULL); return L_0; } } // System.Boolean UnityEngine.EventSystems.HoloLensInput::get_touchSupported() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_get_touchSupported_mD02A566487EF2C625FC37ACE638C6470510338AC (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { { // get { return false; } return (bool)0; } } // System.Int32 UnityEngine.EventSystems.HoloLensInput::get_touchCount() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t HoloLensInput_get_touchCount_mC653A720B65DC5E383BEB487C64CB7D6531668C0 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { { // get { return 0; } return 0; } } // System.Void UnityEngine.EventSystems.HoloLensInput::Awake() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_Awake_m70BA1043D113FABE7F7C06271F3B7998A0BB45F5 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HoloLensInput_Awake_m70BA1043D113FABE7F7C06271F3B7998A0BB45F5_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // base.Awake(); UIBehaviour_Awake_m5DD9E48E9933AA28DAE1978B5FCC6B90BAF06FDC(__this, /*hidden argument*/NULL); // m_Module = GetComponent<HoloLensInputModule>(); HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = Component_GetComponent_TisHoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB_m5EB41AF0200183B780E6DECD1274962F1367CF1D(__this, /*hidden argument*/Component_GetComponent_TisHoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB_m5EB41AF0200183B780E6DECD1274962F1367CF1D_RuntimeMethod_var); __this->set_m_Module_11(L_0); // m_GestureRecognizer = new GestureRecognizer(); GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_1 = (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE *)il2cpp_codegen_object_new(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE_il2cpp_TypeInfo_var); GestureRecognizer__ctor_m4EC0013B225C0189D0ACB2DC77092C809764F1D5(L_1, /*hidden argument*/NULL); __this->set_m_GestureRecognizer_12(L_1); // m_GestureRecognizer.Tapped += GestureHandler_OnTapped; GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_2 = __this->get_m_GestureRecognizer_12(); Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * L_3 = (Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 *)il2cpp_codegen_object_new(Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12_il2cpp_TypeInfo_var); Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0(L_3, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnTapped_mB3A4E46BB674B671E6A2047E4F2253DA34B9026E_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0_RuntimeMethod_var); NullCheck(L_2); GestureRecognizer_add_Tapped_mD5587B3F0115F9AC0599D555E2988E63136DA3EC(L_2, L_3, /*hidden argument*/NULL); // m_GestureRecognizer.NavigationStarted += GestureHandler_OnNavigationStarted; GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_4 = __this->get_m_GestureRecognizer_12(); Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * L_5 = (Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E *)il2cpp_codegen_object_new(Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E_il2cpp_TypeInfo_var); Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031(L_5, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031_RuntimeMethod_var); NullCheck(L_4); GestureRecognizer_add_NavigationStarted_mB4E1B0FCB384F37BD9A9309C7C5B0AFADFA3EB1C(L_4, L_5, /*hidden argument*/NULL); // m_GestureRecognizer.NavigationUpdated += GestureHandler_OnNavigationUpdated; GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_6 = __this->get_m_GestureRecognizer_12(); Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * L_7 = (Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C *)il2cpp_codegen_object_new(Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C_il2cpp_TypeInfo_var); Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F(L_7, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationUpdated_m7FD257B72D8CC5551DEF9E75CD686E59B42F38F0_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F_RuntimeMethod_var); NullCheck(L_6); GestureRecognizer_add_NavigationUpdated_mA509F2737D18188204C6E04154B1A1070F8E711C(L_6, L_7, /*hidden argument*/NULL); // m_GestureRecognizer.NavigationCompleted += GestureHandler_OnNavigationCompleted; GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_8 = __this->get_m_GestureRecognizer_12(); Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * L_9 = (Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 *)il2cpp_codegen_object_new(Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1_il2cpp_TypeInfo_var); Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7(L_9, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationCompleted_m8F16371E94B150666B4A4397203E9CF9B4FB5BED_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7_RuntimeMethod_var); NullCheck(L_8); GestureRecognizer_add_NavigationCompleted_mD39CFD50E1AD8B673AB866EA8EAB7E22F2DBDCB3(L_8, L_9, /*hidden argument*/NULL); // m_GestureRecognizer.NavigationCanceled += GestureHandler_OnNavigationCanceled; GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_10 = __this->get_m_GestureRecognizer_12(); Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * L_11 = (Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B *)il2cpp_codegen_object_new(Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B_il2cpp_TypeInfo_var); Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F(L_11, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationCanceled_m67FD466D3B261B148F061CBB032BA5B7FA2F6963_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F_RuntimeMethod_var); NullCheck(L_10); GestureRecognizer_add_NavigationCanceled_m457599DCA92748E915C75C3D858C757D21C5FD4B(L_10, L_11, /*hidden argument*/NULL); // m_GestureRecognizer.SetRecognizableGestures( // GestureSettings.Tap // | GestureSettings.NavigationX // | GestureSettings.NavigationY // | GestureSettings.NavigationZ); GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_12 = __this->get_m_GestureRecognizer_12(); NullCheck(L_12); GestureRecognizer_SetRecognizableGestures_mF459BAE914B9B2E01E7B1652ACF23C5C2722DA68(L_12, ((int32_t)113), /*hidden argument*/NULL); // m_GestureRecognizer.StartCapturingGestures(); GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_13 = __this->get_m_GestureRecognizer_12(); NullCheck(L_13); GestureRecognizer_StartCapturingGestures_mD02F289C8263C8EACB47B4593E55C8B767C524FA(L_13, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.EventSystems.HoloLensInput::OnDestroy() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_OnDestroy_m0D0E7BB08EE4B8029E6ACBF59E6AFAAC548BE482 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HoloLensInput_OnDestroy_m0D0E7BB08EE4B8029E6ACBF59E6AFAAC548BE482_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // m_GestureRecognizer.StopCapturingGestures(); GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_0 = __this->get_m_GestureRecognizer_12(); NullCheck(L_0); GestureRecognizer_StopCapturingGestures_mBA5D5DFFC507CE972150A242E9DFC59B06121D61(L_0, /*hidden argument*/NULL); // m_GestureRecognizer.Tapped -= GestureHandler_OnTapped; GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_1 = __this->get_m_GestureRecognizer_12(); Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * L_2 = (Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 *)il2cpp_codegen_object_new(Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12_il2cpp_TypeInfo_var); Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0(L_2, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnTapped_mB3A4E46BB674B671E6A2047E4F2253DA34B9026E_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0_RuntimeMethod_var); NullCheck(L_1); GestureRecognizer_remove_Tapped_mB7FCD101CEEA7DF998931E64E4358F734A06F840(L_1, L_2, /*hidden argument*/NULL); // m_GestureRecognizer.NavigationStarted -= GestureHandler_OnNavigationStarted; GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_3 = __this->get_m_GestureRecognizer_12(); Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * L_4 = (Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E *)il2cpp_codegen_object_new(Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E_il2cpp_TypeInfo_var); Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031(L_4, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031_RuntimeMethod_var); NullCheck(L_3); GestureRecognizer_remove_NavigationStarted_m2456D056E789D6F4FC6BB8477658352C1550E8FF(L_3, L_4, /*hidden argument*/NULL); // m_GestureRecognizer.NavigationUpdated -= GestureHandler_OnNavigationUpdated; GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_5 = __this->get_m_GestureRecognizer_12(); Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * L_6 = (Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C *)il2cpp_codegen_object_new(Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C_il2cpp_TypeInfo_var); Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F(L_6, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationUpdated_m7FD257B72D8CC5551DEF9E75CD686E59B42F38F0_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F_RuntimeMethod_var); NullCheck(L_5); GestureRecognizer_remove_NavigationUpdated_m279E228CE0E46516F24A472998BC0F5B854EF4E8(L_5, L_6, /*hidden argument*/NULL); // m_GestureRecognizer.NavigationCompleted -= GestureHandler_OnNavigationCompleted; GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_7 = __this->get_m_GestureRecognizer_12(); Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * L_8 = (Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 *)il2cpp_codegen_object_new(Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1_il2cpp_TypeInfo_var); Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7(L_8, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationCompleted_m8F16371E94B150666B4A4397203E9CF9B4FB5BED_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7_RuntimeMethod_var); NullCheck(L_7); GestureRecognizer_remove_NavigationCompleted_m549BC4069ABD075D8077660FB94C32235306AA03(L_7, L_8, /*hidden argument*/NULL); // m_GestureRecognizer.NavigationCanceled -= GestureHandler_OnNavigationCanceled; GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_9 = __this->get_m_GestureRecognizer_12(); Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * L_10 = (Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B *)il2cpp_codegen_object_new(Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B_il2cpp_TypeInfo_var); Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F(L_10, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationCanceled_m67FD466D3B261B148F061CBB032BA5B7FA2F6963_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F_RuntimeMethod_var); NullCheck(L_9); GestureRecognizer_remove_NavigationCanceled_m7F24255B9515ACE9F80A55864A9923D085ED5E32(L_9, L_10, /*hidden argument*/NULL); // base.OnDestroy(); UIBehaviour_OnDestroy_mAC124B1C2131BDD6B17D70DB2A90632A2355F498(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.EventSystems.HoloLensInput::UpdateInput() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_UpdateInput_m6731D6E86EB7A3FF3A1117D89C680811435BF85D (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { { // if (MouseEmulationMode.Tap == m_MouseEmulationMode && m_LastTapTime + m_Module.timeToPressOnTap < Time.time) int32_t L_0 = __this->get_m_MouseEmulationMode_6(); if ((!(((uint32_t)2) == ((uint32_t)L_0)))) { goto IL_0029; } } { float L_1 = __this->get_m_LastTapTime_10(); HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_2 = __this->get_m_Module_11(); NullCheck(L_2); float L_3 = HoloLensInputModule_get_timeToPressOnTap_m98D628A1BA4ADD84B66268FC108B32F6FC8B1FC0_inline(L_2, /*hidden argument*/NULL); float L_4 = Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8(/*hidden argument*/NULL); if ((!(((float)((float)il2cpp_codegen_add((float)L_1, (float)L_3))) < ((float)L_4)))) { goto IL_0029; } } { // m_MouseEmulationMode = MouseEmulationMode.Inactive; __this->set_m_MouseEmulationMode_6(0); } IL_0029: { // m_IsEmulatedMouseDownPrev = m_IsEmulatedMouseDownCurr; bool L_5 = __this->get_m_IsEmulatedMouseDownCurr_4(); __this->set_m_IsEmulatedMouseDownPrev_5(L_5); // m_IsEmulatedMouseDownCurr = m_MouseEmulationMode != MouseEmulationMode.Inactive; int32_t L_6 = __this->get_m_MouseEmulationMode_6(); __this->set_m_IsEmulatedMouseDownCurr_4((bool)((!(((uint32_t)L_6) <= ((uint32_t)0)))? 1 : 0)); // } return; } } // System.Boolean UnityEngine.EventSystems.HoloLensInput::AllowDrag() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_AllowDrag_m629C213EC2A00C394A67A0989E437EB230A16E3D (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { { // return m_MouseEmulationMode == MouseEmulationMode.Navigation; int32_t L_0 = __this->get_m_MouseEmulationMode_6(); return (bool)((((int32_t)L_0) == ((int32_t)1))? 1 : 0); } } // System.Boolean UnityEngine.EventSystems.HoloLensInput::TryGetAnchorWorldSpace(UnityEngine.Vector3&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * ___anchor0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002_MetadataUsageId); s_Il2CppMethodInitialized = true; } GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * V_0 = NULL; RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * V_1 = NULL; { // GameObject focus = m_Module.Internal_GetCurrentFocusedGameObject(); HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = __this->get_m_Module_11(); NullCheck(L_0); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = HoloLensInputModule_Internal_GetCurrentFocusedGameObject_mF8696D11EC99BA6CCAEEF50628ACF1D47D142DF8(L_0, /*hidden argument*/NULL); V_0 = L_1; // if (focus == null) GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_2 = V_0; IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_3 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_2, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_3) { goto IL_0022; } } { // anchor = Vector3.zero; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_4 = ___anchor0; IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_5 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL); *(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_4 = L_5; // return false; return (bool)0; } IL_0022: { // RectTransform rectTransform = focus.GetComponent<RectTransform>(); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = V_0; NullCheck(L_6); RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_7 = GameObject_GetComponent_TisRectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_m2E5F02DDA13C176AF75B4E7C1DB801D89E053B2C(L_6, /*hidden argument*/GameObject_GetComponent_TisRectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_m2E5F02DDA13C176AF75B4E7C1DB801D89E053B2C_RuntimeMethod_var); V_1 = L_7; // if (rectTransform == null) RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_8 = V_1; IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_9 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_8, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_9) { goto IL_003f; } } { // anchor = Vector3.zero; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_10 = ___anchor0; IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_11 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL); *(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_10 = L_11; // return false; return (bool)0; } IL_003f: { // return RectTransformUtility.ScreenPointToWorldPointInRectangle(rectTransform, GetGazeScreenPosition(), Camera.main, out anchor); RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_12 = V_1; Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_13 = HoloLensInput_GetGazeScreenPosition_m9073CFAB427427D2CF716229652E87F8DC58C231(/*hidden argument*/NULL); Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_14 = Camera_get_main_m9256A9F84F92D7ED73F3E6C4E2694030AD8B61FA(/*hidden argument*/NULL); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_15 = ___anchor0; IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var); bool L_16 = RectTransformUtility_ScreenPointToWorldPointInRectangle_m821FF925C5B70477F153B4C053AE9E36A04A774F(L_12, L_13, L_14, (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_15, /*hidden argument*/NULL); return L_16; } } // System.Void UnityEngine.EventSystems.HoloLensInput::GestureHandler_OnTapped(UnityEngine.XR.WSA.Input.TappedEventArgs) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_GestureHandler_OnTapped_mB3A4E46BB674B671E6A2047E4F2253DA34B9026E (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6 ___eventArgs0, const RuntimeMethod* method) { { // m_Module.Internal_GestureNotifier(); HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = __this->get_m_Module_11(); NullCheck(L_0); HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7(L_0, /*hidden argument*/NULL); // if (!TryGetAnchorWorldSpace(out m_TapAnchorWorldSpace)) Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_1 = __this->get_address_of_m_TapAnchorWorldSpace_9(); bool L_2 = HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002(__this, (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_1, /*hidden argument*/NULL); if (L_2) { goto IL_001a; } } { // return; return; } IL_001a: { // m_MouseEmulationMode = MouseEmulationMode.Tap; __this->set_m_MouseEmulationMode_6(2); // m_LastTapTime = Time.time; float L_3 = Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8(/*hidden argument*/NULL); __this->set_m_LastTapTime_10(L_3); // } return; } } // System.Void UnityEngine.EventSystems.HoloLensInput::GestureHandler_OnNavigationStarted(UnityEngine.XR.WSA.Input.NavigationStartedEventArgs) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, NavigationStartedEventArgs_t834E02E24343414BB48A9099C7CF0C331C859339 ___eventArgs0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // m_Module.Internal_GestureNotifier(); HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = __this->get_m_Module_11(); NullCheck(L_0); HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7(L_0, /*hidden argument*/NULL); // if (!TryGetAnchorWorldSpace(out m_NavigationAnchorWorldSpace)) Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_1 = __this->get_address_of_m_NavigationAnchorWorldSpace_8(); bool L_2 = HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002(__this, (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_1, /*hidden argument*/NULL); if (L_2) { goto IL_001a; } } { // return; return; } IL_001a: { // m_MouseEmulationMode = MouseEmulationMode.Navigation; __this->set_m_MouseEmulationMode_6(1); // m_NavigationNormalizedOffset = Vector3.zero; IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_3 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL); __this->set_m_NavigationNormalizedOffset_7(L_3); // } return; } } // System.Void UnityEngine.EventSystems.HoloLensInput::GestureHandler_OnNavigationUpdated(UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_GestureHandler_OnNavigationUpdated_m7FD257B72D8CC5551DEF9E75CD686E59B42F38F0 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA ___eventArgs0, const RuntimeMethod* method) { { // m_Module.Internal_GestureNotifier(); HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = __this->get_m_Module_11(); NullCheck(L_0); HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7(L_0, /*hidden argument*/NULL); // m_NavigationNormalizedOffset = eventArgs.normalizedOffset; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = NavigationUpdatedEventArgs_get_normalizedOffset_m63EFB136CBEC39D4BC004FC814B93FBA69760C02((NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA *)(&___eventArgs0), /*hidden argument*/NULL); __this->set_m_NavigationNormalizedOffset_7(L_1); // } return; } } // System.Void UnityEngine.EventSystems.HoloLensInput::GestureHandler_OnNavigationCompleted(UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_GestureHandler_OnNavigationCompleted_m8F16371E94B150666B4A4397203E9CF9B4FB5BED (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39 ___eventArgs0, const RuntimeMethod* method) { { // OnNavigationCompletedOrCanceled(); HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.EventSystems.HoloLensInput::GestureHandler_OnNavigationCanceled(UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_GestureHandler_OnNavigationCanceled_m67FD466D3B261B148F061CBB032BA5B7FA2F6963 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, NavigationCanceledEventArgs_tC2B533AD31373B31AF9FDC354D3A07C749FC9760 ___eventArgs0, const RuntimeMethod* method) { { // OnNavigationCompletedOrCanceled(); HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.EventSystems.HoloLensInput::OnNavigationCompletedOrCanceled() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // m_Module.Internal_GestureNotifier(); HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = __this->get_m_Module_11(); NullCheck(L_0); HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7(L_0, /*hidden argument*/NULL); // m_NavigationNormalizedOffset = Vector3.zero; IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL); __this->set_m_NavigationNormalizedOffset_7(L_1); // m_MouseEmulationMode = MouseEmulationMode.Inactive; __this->set_m_MouseEmulationMode_6(0); // } return; } } // UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGazeScreenPosition() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGazeScreenPosition_m9073CFAB427427D2CF716229652E87F8DC58C231 (const RuntimeMethod* method) { { // return new Vector2(0.5f * Screen.width, 0.5f * Screen.height); int32_t L_0 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL); int32_t L_1 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL); Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_2; memset((&L_2), 0, sizeof(L_2)); Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0((&L_2), ((float)il2cpp_codegen_multiply((float)(0.5f), (float)(((float)((float)L_0))))), ((float)il2cpp_codegen_multiply((float)(0.5f), (float)(((float)((float)L_1))))), /*hidden argument*/NULL); return L_2; } } // UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::EmulateMousePosition(UnityEngine.Vector3,UnityEngine.Vector2) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___anchorWorldspace0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___finalOffset1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // Vector2 anchorScreenSpace = Camera.main.WorldToScreenPoint(anchorWorldspace); Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = Camera_get_main_m9256A9F84F92D7ED73F3E6C4E2694030AD8B61FA(/*hidden argument*/NULL); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = ___anchorWorldspace0; NullCheck(L_0); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_2 = Camera_WorldToScreenPoint_m880F9611E4848C11F21FDF1A1D307B401C61B1BF(L_0, L_1, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var); Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_3 = Vector2_op_Implicit_mEA1F75961E3D368418BA8CEB9C40E55C25BA3C28(L_2, /*hidden argument*/NULL); // return anchorScreenSpace + finalOffset; Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_4 = ___finalOffset1; Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_5 = Vector2_op_Addition_m81A4D928B8E399DA3A4E3ACD8937EDFDCB014682(L_3, L_4, /*hidden argument*/NULL); return L_5; } } // UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGazeAndGestureScreenPosition() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGazeAndGestureScreenPosition_m7DB2FDF3835B4EDD8C9B8D8FB11D73FB54CDEE2B (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HoloLensInput_GetGazeAndGestureScreenPosition_m7DB2FDF3835B4EDD8C9B8D8FB11D73FB54CDEE2B_MetadataUsageId); s_Il2CppMethodInitialized = true; } int32_t V_0 = 0; { // switch (m_MouseEmulationMode) int32_t L_0 = __this->get_m_MouseEmulationMode_6(); V_0 = L_0; int32_t L_1 = V_0; if ((((int32_t)L_1) == ((int32_t)1))) { goto IL_0011; } } { int32_t L_2 = V_0; if ((((int32_t)L_2) == ((int32_t)2))) { goto IL_0049; } } { goto IL_005b; } IL_0011: { // return EmulateMousePosition(m_NavigationAnchorWorldSpace, m_Module.normalizedNavigationToScreenOffsetScalar * new Vector2(m_NavigationNormalizedOffset.x, m_NavigationNormalizedOffset.y)); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_3 = __this->get_m_NavigationAnchorWorldSpace_8(); HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_4 = __this->get_m_Module_11(); NullCheck(L_4); float L_5 = HoloLensInputModule_get_normalizedNavigationToScreenOffsetScalar_mE683140D392D6E0CC4161770428E8BDF5C69BC6E_inline(L_4, /*hidden argument*/NULL); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_6 = __this->get_address_of_m_NavigationNormalizedOffset_7(); float L_7 = L_6->get_x_2(); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_8 = __this->get_address_of_m_NavigationNormalizedOffset_7(); float L_9 = L_8->get_y_3(); Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_10; memset((&L_10), 0, sizeof(L_10)); Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0((&L_10), L_7, L_9, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var); Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_11 = Vector2_op_Multiply_m2E30A54E315810911DFC2E25C700757A68AC1F38(L_5, L_10, /*hidden argument*/NULL); Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_12 = HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB(__this, L_3, L_11, /*hidden argument*/NULL); return L_12; } IL_0049: { // return EmulateMousePosition(m_TapAnchorWorldSpace, Vector2.zero); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_13 = __this->get_m_TapAnchorWorldSpace_9(); IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var); Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_14 = Vector2_get_zero_mFE0C3213BB698130D6C5247AB4B887A59074D0A8(/*hidden argument*/NULL); Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_15 = HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB(__this, L_13, L_14, /*hidden argument*/NULL); return L_15; } IL_005b: { // return GetGazeScreenPosition(); Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_16 = HoloLensInput_GetGazeScreenPosition_m9073CFAB427427D2CF716229652E87F8DC58C231(/*hidden argument*/NULL); return L_16; } } // UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGestureScrollDelta() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGestureScrollDelta_m24FDE0BFC26D5173002FBABAD945914E206602B8 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HoloLensInput_GetGestureScrollDelta_m24FDE0BFC26D5173002FBABAD945914E206602B8_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // return MouseEmulationMode.Navigation == m_MouseEmulationMode // ? new Vector2(0.0f, m_NavigationNormalizedOffset.z) // : Vector2.zero; int32_t L_0 = __this->get_m_MouseEmulationMode_6(); if ((((int32_t)1) == ((int32_t)L_0))) { goto IL_000f; } } { IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var); Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_1 = Vector2_get_zero_mFE0C3213BB698130D6C5247AB4B887A59074D0A8(/*hidden argument*/NULL); return L_1; } IL_000f: { Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_2 = __this->get_address_of_m_NavigationNormalizedOffset_7(); float L_3 = L_2->get_z_4(); Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_4; memset((&L_4), 0, sizeof(L_4)); Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0((&L_4), (0.0f), L_3, /*hidden argument*/NULL); return L_4; } } // System.Void UnityEngine.EventSystems.HoloLensInput::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput__ctor_m029C51F216AAC03C235E01412E8F174E95D42634 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HoloLensInput__ctor_m029C51F216AAC03C235E01412E8F174E95D42634_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // private Vector3 m_NavigationNormalizedOffset = Vector3.zero; IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL); __this->set_m_NavigationNormalizedOffset_7(L_0); // private Vector3 m_NavigationAnchorWorldSpace = Vector3.zero; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL); __this->set_m_NavigationAnchorWorldSpace_8(L_1); // private Vector3 m_TapAnchorWorldSpace = Vector3.zero; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_2 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL); __this->set_m_TapAnchorWorldSpace_9(L_2); BaseInput__ctor_m097A1D35CC42538881FAF0E45AFF6FB974377F19(__this, /*hidden argument*/NULL); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Single UnityEngine.EventSystems.HoloLensInputModule::get_normalizedNavigationToScreenOffsetScalar() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float HoloLensInputModule_get_normalizedNavigationToScreenOffsetScalar_mE683140D392D6E0CC4161770428E8BDF5C69BC6E (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // get { return m_NormalizedNavigationToScreenOffsetScalar; } float L_0 = __this->get_m_NormalizedNavigationToScreenOffsetScalar_30(); return L_0; } } // System.Void UnityEngine.EventSystems.HoloLensInputModule::set_normalizedNavigationToScreenOffsetScalar(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_set_normalizedNavigationToScreenOffsetScalar_m576CEEC602DBE976D05B89E9256776C47D44DF49 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, float ___value0, const RuntimeMethod* method) { { // set { m_NormalizedNavigationToScreenOffsetScalar = value; } float L_0 = ___value0; __this->set_m_NormalizedNavigationToScreenOffsetScalar_30(L_0); // set { m_NormalizedNavigationToScreenOffsetScalar = value; } return; } } // System.Single UnityEngine.EventSystems.HoloLensInputModule::get_timeToPressOnTap() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float HoloLensInputModule_get_timeToPressOnTap_m98D628A1BA4ADD84B66268FC108B32F6FC8B1FC0 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // get { return m_TimeToPressOnTap; } float L_0 = __this->get_m_TimeToPressOnTap_31(); return L_0; } } // System.Void UnityEngine.EventSystems.HoloLensInputModule::set_timeToPressOnTap(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_set_timeToPressOnTap_mA98569B88F970B41C62689206D2A6CD4DD3DD2C3 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, float ___value0, const RuntimeMethod* method) { { // set { m_TimeToPressOnTap = value; } float L_0 = ___value0; __this->set_m_TimeToPressOnTap_31(L_0); // set { m_TimeToPressOnTap = value; } return; } } // System.Void UnityEngine.EventSystems.HoloLensInputModule::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule__ctor_mC92DEA3EDD3097EEBEE5B3F1ACF0F3F9456E2DAE (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // private float m_NormalizedNavigationToScreenOffsetScalar = 500.0f; __this->set_m_NormalizedNavigationToScreenOffsetScalar_30((500.0f)); // private float m_TimeToPressOnTap = 0.3f; __this->set_m_TimeToPressOnTap_31((0.3f)); // protected HoloLensInputModule() StandaloneInputModule__ctor_m53DF966585A2888088BF07BB7DDE26BA84BA67D0(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.EventSystems.HoloLensInputModule::Awake() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_Awake_m0F48A620040126693CDC656386383B668941B587 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HoloLensInputModule_Awake_m0F48A620040126693CDC656386383B668941B587_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // base.Awake(); UIBehaviour_Awake_m5DD9E48E9933AA28DAE1978B5FCC6B90BAF06FDC(__this, /*hidden argument*/NULL); // m_HoloLensInput = GetComponent<HoloLensInput>(); HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_0 = Component_GetComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_m698FB9682EE309CAAA265B29C21BF06A62F6C9B2(__this, /*hidden argument*/Component_GetComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_m698FB9682EE309CAAA265B29C21BF06A62F6C9B2_RuntimeMethod_var); __this->set_m_HoloLensInput_32(L_0); // if (!m_HoloLensInput) HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_1 = __this->get_m_HoloLensInput_32(); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_2 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_1, /*hidden argument*/NULL); if (L_2) { goto IL_0030; } } { // m_HoloLensInput = gameObject.AddComponent<HoloLensInput>(); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_3 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(__this, /*hidden argument*/NULL); NullCheck(L_3); HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_4 = GameObject_AddComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_mF50CC95A955F7405B540971920DE4739BE47684B(L_3, /*hidden argument*/GameObject_AddComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_mF50CC95A955F7405B540971920DE4739BE47684B_RuntimeMethod_var); __this->set_m_HoloLensInput_32(L_4); } IL_0030: { // m_InputOverride = m_HoloLensInput; HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_5 = __this->get_m_HoloLensInput_32(); ((BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 *)__this)->set_m_InputOverride_8(L_5); // } return; } } // System.Boolean UnityEngine.EventSystems.HoloLensInputModule::IsModuleSupported() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInputModule_IsModuleSupported_mBAAC8841B1C755DBC0FB705C4A33E686B863D2A2 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HoloLensInputModule_IsModuleSupported_mBAAC8841B1C755DBC0FB705C4A33E686B863D2A2_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // return base.IsModuleSupported() && string.Equals(UnityEngine.XR.XRSettings.loadedDeviceName, "WindowsMR"); bool L_0 = StandaloneInputModule_IsModuleSupported_m44C18E994D6B97CDFBD841A9D7314B26B7AA340A(__this, /*hidden argument*/NULL); if (!L_0) { goto IL_0018; } } { String_t* L_1 = XRSettings_get_loadedDeviceName_m952D46346306FD9477B13992E5797A85CCD3C98C(/*hidden argument*/NULL); bool L_2 = String_Equals_m90EB651A751C3444BADBBD5401109CE05B3E1CFB(L_1, _stringLiteral0BA701B50A5948064432E087F10E47BBBB8F47F6, /*hidden argument*/NULL); return L_2; } IL_0018: { return (bool)0; } } // System.Boolean UnityEngine.EventSystems.HoloLensInputModule::ShouldActivateModule() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInputModule_ShouldActivateModule_mC48780B615E225A3BBD57789522FBE601EBCB950 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // return forceModuleActive || m_HasGestureToProcess || !m_HasBeenActivated; bool L_0 = StandaloneInputModule_get_forceModuleActive_m7C481C9C4D478CB162E289F9D038859990973E6E_inline(__this, /*hidden argument*/NULL); if (L_0) { goto IL_001a; } } { bool L_1 = __this->get_m_HasGestureToProcess_34(); if (L_1) { goto IL_001a; } } { bool L_2 = __this->get_m_HasBeenActivated_33(); return (bool)((((int32_t)L_2) == ((int32_t)0))? 1 : 0); } IL_001a: { return (bool)1; } } // System.Void UnityEngine.EventSystems.HoloLensInputModule::ActivateModule() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_ActivateModule_m61441015A758E80F603BCEA33668EF15A3F6AD77 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // m_HasBeenActivated = true; __this->set_m_HasBeenActivated_33((bool)1); // base.ActivateModule(); StandaloneInputModule_ActivateModule_m75B8C7CF41074D98F23DBCBADBEC12204F101F04(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.EventSystems.HoloLensInputModule::UpdateModule() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_UpdateModule_mFCBE0C79226FECAD9A47F8A4AD51ED1F02A79BBE (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // m_HoloLensInput.UpdateInput(); HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_0 = __this->get_m_HoloLensInput_32(); NullCheck(L_0); HoloLensInput_UpdateInput_m6731D6E86EB7A3FF3A1117D89C680811435BF85D(L_0, /*hidden argument*/NULL); // base.UpdateModule(); StandaloneInputModule_UpdateModule_m6BE8C301BEB10BD653F0D0EEB6522E3A8F3221BA(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.EventSystems.HoloLensInputModule::ProcessDrag(UnityEngine.EventSystems.PointerEventData) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_ProcessDrag_mA9CED6438A86CE5B19AA3FC8811EB111104E43AB (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * ___pointerEvent0, const RuntimeMethod* method) { { // if (m_HoloLensInput.AllowDrag()) HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_0 = __this->get_m_HoloLensInput_32(); NullCheck(L_0); bool L_1 = HoloLensInput_AllowDrag_m629C213EC2A00C394A67A0989E437EB230A16E3D(L_0, /*hidden argument*/NULL); if (!L_1) { goto IL_0014; } } { // base.ProcessDrag(pointerEvent); PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * L_2 = ___pointerEvent0; PointerInputModule_ProcessDrag_m2A544286EF20A04D6E42FFCFD0F73DD89F9614A2(__this, L_2, /*hidden argument*/NULL); } IL_0014: { // } return; } } // UnityEngine.GameObject UnityEngine.EventSystems.HoloLensInputModule::Internal_GetCurrentFocusedGameObject() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * HoloLensInputModule_Internal_GetCurrentFocusedGameObject_mF8696D11EC99BA6CCAEEF50628ACF1D47D142DF8 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // return GetCurrentFocusedGameObject(); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = StandaloneInputModule_GetCurrentFocusedGameObject_mA354FCB4E2546E1F49D165207705A26D29EBB3D7_inline(__this, /*hidden argument*/NULL); return L_0; } } // System.Void UnityEngine.EventSystems.HoloLensInputModule::Internal_GestureNotifier() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // m_HasGestureToProcess = true; __this->set_m_HasGestureToProcess_34((bool)1); // } return; } } // System.Void UnityEngine.EventSystems.HoloLensInputModule::HoloLensInput_GestureNotifier() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_HoloLensInput_GestureNotifier_m312C815CC60A71B53A691F32A56FC8135759E6E8 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // } return; } } // UnityEngine.EventSystems.EventSystem UnityEngine.EventSystems.HoloLensInputModule::HoloLensInput_GetEventSystem() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * HoloLensInputModule_HoloLensInput_GetEventSystem_m91808F60323CDAE7DE8243F10985A1B2032AAEB0 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // return eventSystem; EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * L_0 = BaseInputModule_get_eventSystem_mEF6DEC17FF56D786AA217A52FCCFE8C6F38546BE_inline(__this, /*hidden argument*/NULL); return L_0; } } // System.Single UnityEngine.EventSystems.HoloLensInputModule::HoloLensInput_GetScreenOffsetScalar() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float HoloLensInputModule_HoloLensInput_GetScreenOffsetScalar_m0135136E7959863F4C1860CEA2C4205EB9BC520B (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // return normalizedNavigationToScreenOffsetScalar; float L_0 = HoloLensInputModule_get_normalizedNavigationToScreenOffsetScalar_mE683140D392D6E0CC4161770428E8BDF5C69BC6E_inline(__this, /*hidden argument*/NULL); return L_0; } } // System.Single UnityEngine.EventSystems.HoloLensInputModule::HoloLensInput_GetTimeToPressOnTap() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float HoloLensInputModule_HoloLensInput_GetTimeToPressOnTap_mAE7710B28103A0038065D0E2290168EBCE21D308 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // return timeToPressOnTap; float L_0 = HoloLensInputModule_get_timeToPressOnTap_m98D628A1BA4ADD84B66268FC108B32F6FC8B1FC0_inline(__this, /*hidden argument*/NULL); return L_0; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceParent() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_SurfaceParent; } GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_m_SurfaceParent_7(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceParent(UnityEngine.GameObject) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParent_mEA691909114179FEFB851F5A3BA8897A41626B7D (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method) { { // set { m_SurfaceParent = value; } GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = ___value0; __this->set_m_SurfaceParent_7(L_0); // set { m_SurfaceParent = value; } return; } } // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_freezeUpdates() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_freezeUpdates_m10DAC55A998837D64FE4BB84A4E29D8A852014F2 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_FreezeUpdates; } bool L_0 = __this->get_m_FreezeUpdates_8(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_freezeUpdates(System.Boolean) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_freezeUpdates_m71283A8642C61D3B281590D9DB68B99E19CA37F2 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method) { { // set { m_FreezeUpdates = value; } bool L_0 = ___value0; __this->set_m_FreezeUpdates_8(L_0); // set { m_FreezeUpdates = value; } return; } } // UnityEngine.XR.WSA.SpatialMappingBase_VolumeType UnityEngine.XR.WSA.SpatialMappingBase::get_volumeType() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_VolumeType; } int32_t L_0 = __this->get_m_VolumeType_9(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_volumeType(UnityEngine.XR.WSA.SpatialMappingBase_VolumeType) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_volumeType_mEBB8681679F9E6175DA61AA547953DFAE5D88E8A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method) { { // set { m_VolumeType = value; } int32_t L_0 = ___value0; __this->set_m_VolumeType_9(L_0); // set { m_VolumeType = value; } return; } } // System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_sphereRadius() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_SphereRadius; } float L_0 = __this->get_m_SphereRadius_10(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_sphereRadius(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_sphereRadius_mB80949A123DEA71B0D5DC8D9652524D5C526011C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, float ___value0, const RuntimeMethod* method) { { // set { m_SphereRadius = value; } float L_0 = ___value0; __this->set_m_SphereRadius_10(L_0); // set { m_SphereRadius = value; } return; } } // UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::get_halfBoxExtents() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_HalfBoxExtents; } Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = __this->get_m_HalfBoxExtents_11(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_halfBoxExtents(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_halfBoxExtents_m05B08C712E1FC96E29ACC2D4B23C6A1ED3450A33 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method) { { // set { m_HalfBoxExtents = value; } Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = ___value0; __this->set_m_HalfBoxExtents_11(L_0); // set { m_HalfBoxExtents = value; } return; } } // UnityEngine.XR.WSA.SpatialMappingBase_LODType UnityEngine.XR.WSA.SpatialMappingBase::get_lodType() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_LodType; } int32_t L_0 = __this->get_m_LodType_12(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_lodType(UnityEngine.XR.WSA.SpatialMappingBase_LODType) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_lodType_mE15AE07981E0997DA01FB4FEFD988089301137D9 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method) { { // set { m_LodType = value; } int32_t L_0 = ___value0; __this->set_m_LodType_12(L_0); // set { m_LodType = value; } return; } } // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::get_numUpdatesBeforeRemoval() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_numUpdatesBeforeRemoval_m6F510DAD1B7465439C2D15C640FF4F0C2FB004BA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_NumUpdatesBeforeRemoval; } int32_t L_0 = __this->get_m_NumUpdatesBeforeRemoval_13(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_numUpdatesBeforeRemoval(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_numUpdatesBeforeRemoval_m7E148F9CA6DEBA1A3D91F7599DA082941AED41D9 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method) { { // set { m_NumUpdatesBeforeRemoval = value; } int32_t L_0 = ___value0; __this->set_m_NumUpdatesBeforeRemoval_13(L_0); // set { m_NumUpdatesBeforeRemoval = value; } return; } } // System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_secondsBetweenUpdates() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float SpatialMappingBase_get_secondsBetweenUpdates_m08248C91683C82EAF76C2B78F18A6156DA5AD13A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_SecondsBetweenUpdates; } float L_0 = __this->get_m_SecondsBetweenUpdates_14(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_secondsBetweenUpdates(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_secondsBetweenUpdates_mA45FCEA50727DE86AE99BDEF275BC325366BC2AA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, float ___value0, const RuntimeMethod* method) { { // set { m_SecondsBetweenUpdates = value; } float L_0 = ___value0; __this->set_m_SecondsBetweenUpdates_14(L_0); // set { m_SecondsBetweenUpdates = value; } return; } } // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_bakePhysics() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // return m_BakePhysics; bool L_0 = __this->get_m_BakePhysics_15(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_bakePhysics(System.Boolean) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bakePhysics_m33D62027F99886807A3AD366148A4605E0DF45BB (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method) { { // m_BakePhysics = value; bool L_0 = ___value0; __this->set_m_BakePhysics_15(L_0); // } return; } } // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::get_observerId() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_observerId_m11215996E1207E53F6F0C1218CA50AD058B80495 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected int observerId { get; set; } int32_t L_0 = __this->get_U3CobserverIdU3Ek__BackingField_16(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_observerId(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_observerId_m6AFBE2E2DD43BE4877B51B515994535F544E1E07 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method) { { // protected int observerId { get; set; } int32_t L_0 = ___value0; __this->set_U3CobserverIdU3Ek__BackingField_16(L_0); return; } } // UnityEngine.XR.WSA.SurfaceObserver UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceObserver() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected SurfaceObserver surfaceObserver { get; set; } SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_0 = __this->get_U3CsurfaceObserverU3Ek__BackingField_17(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceObserver(UnityEngine.XR.WSA.SurfaceObserver) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObserver_mDDE2BC259C50248E17B85DDB4C68097E7C97B9DE (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___value0, const RuntimeMethod* method) { { // protected SurfaceObserver surfaceObserver { get; set; } SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_0 = ___value0; __this->set_U3CsurfaceObserverU3Ek__BackingField_17(L_0); return; } } // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface> UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceObjects() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected Dictionary<int, Surface> surfaceObjects { get; set; } Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = __this->get_U3CsurfaceObjectsU3Ek__BackingField_18(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceObjects(System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObjects_m034B1632BAC1CE797ADE3EF453B3BF7F0C0B8E90 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___value0, const RuntimeMethod* method) { { // protected Dictionary<int, Surface> surfaceObjects { get; set; } Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = ___value0; __this->set_U3CsurfaceObjectsU3Ek__BackingField_18(L_0); return; } } // UnityEngine.Bounds UnityEngine.XR.WSA.SpatialMappingBase::get_bounds() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 SpatialMappingBase_get_bounds_m555A8D615D0643F8FB75D086714A5A5D6AA371D2 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected Bounds bounds { get; set; } Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_0 = __this->get_U3CboundsU3Ek__BackingField_19(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_bounds(UnityEngine.Bounds) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bounds_m537FDB6EDF4E405E7D140CFE44828BCB753C60EE (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 ___value0, const RuntimeMethod* method) { { // protected Bounds bounds { get; set; } Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_0 = ___value0; __this->set_U3CboundsU3Ek__BackingField_19(L_0); return; } } // UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::get_lastUpdatedObserverPosition() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_lastUpdatedObserverPosition_mDA859EDB4C79D8D0E51EE5E1F5AB66C66A0FA88B (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected Vector3 lastUpdatedObserverPosition { get; set; } Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = __this->get_U3ClastUpdatedObserverPositionU3Ek__BackingField_20(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_lastUpdatedObserverPosition(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_lastUpdatedObserverPosition_mFE6057264FC068449849BDAA7481A917B2FB75F8 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method) { { // protected Vector3 lastUpdatedObserverPosition { get; set; } Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = ___value0; __this->set_U3ClastUpdatedObserverPositionU3Ek__BackingField_20(L_0); return; } } // UnityEngine.Camera UnityEngine.XR.WSA.SpatialMappingBase::get_selectedCamera() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * SpatialMappingBase_get_selectedCamera_mE3E4571F7EAF1DF70B6762BC57B6CBAFCB17E834 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected Camera selectedCamera { get; set; } Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = __this->get_U3CselectedCameraU3Ek__BackingField_21(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_selectedCamera(UnityEngine.Camera) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_selectedCamera_m571711921F39F8AC923BF9964A3E559DEF2455A2 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___value0, const RuntimeMethod* method) { { // protected Camera selectedCamera { get; set; } Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = ___value0; __this->set_U3CselectedCameraU3Ek__BackingField_21(L_0); return; } } // System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_nextSurfaceChangeUpdateTime() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float SpatialMappingBase_get_nextSurfaceChangeUpdateTime_mAB42AB4923890CE64BE6EC93A19002886CC88FAA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected float nextSurfaceChangeUpdateTime { get; set; } float L_0 = __this->get_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_nextSurfaceChangeUpdateTime(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_nextSurfaceChangeUpdateTime_m6EC9BA4E9FFDEE3AA5687571ABA564FB59BF590E (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, float ___value0, const RuntimeMethod* method) { { // protected float nextSurfaceChangeUpdateTime { get; set; } float L_0 = ___value0; __this->set_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22(L_0); return; } } // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface> UnityEngine.XR.WSA.SpatialMappingBase::get_pendingSurfacesForEviction() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // return m_PendingSurfacesForEviction; Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = __this->get_m_PendingSurfacesForEviction_23(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_pendingSurfacesForEviction(System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_pendingSurfacesForEviction_m371E42A047ADBCF42AB6DB206EF93099564264AE (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___value0, const RuntimeMethod* method) { { // m_PendingSurfacesForEviction = value; Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = ___value0; __this->set_m_PendingSurfacesForEviction_23(L_0); // } return; } } // System.Collections.Generic.List`1<System.Int32> UnityEngine.XR.WSA.SpatialMappingBase::get_surfacesToRemoveFromDict() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // return m_SurfacesToRemoveFromDict; List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_0 = __this->get_m_SurfacesToRemoveFromDict_24(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfacesToRemoveFromDict(System.Collections.Generic.List`1<System.Int32>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfacesToRemoveFromDict_m11D7CF138798EB1D3BBB76ABD4E6509A6D30A7E0 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * ___value0, const RuntimeMethod* method) { { // m_SurfacesToRemoveFromDict = value; List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_0 = ___value0; __this->set_m_SurfacesToRemoveFromDict_24(L_0); // } return; } } // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceParentWasDynamicallyCreated() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_surfaceParentWasDynamicallyCreated_mBC600B152C29512A2F47D435843B491F0A23A338 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // return m_SurfaceParentWasDynamicallyCreated; bool L_0 = __this->get_m_SurfaceParentWasDynamicallyCreated_25(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceParentWasDynamicallyCreated(System.Boolean) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParentWasDynamicallyCreated_mAD419F4D32525643B8F2FF5823F130360DA915A1 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method) { { // m_SurfaceParentWasDynamicallyCreated = value; bool L_0 = ___value0; __this->set_m_SurfaceParentWasDynamicallyCreated_25(L_0); // } return; } } // System.Int32[] UnityEngine.XR.WSA.SpatialMappingBase::get_lodToPcm() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // return s_LodToPcm; IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var); Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_0 = ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->get_s_LodToPcm_26(); return L_0; } } // UnityEngine.XR.WSA.SpatialMappingBase_LODType UnityEngine.XR.WSA.SpatialMappingBase::GetLODFromTPCM(System.Double) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_GetLODFromTPCM_mB942609B9A2BE4201CFF14AD29E3833D04AC17D8 (double ___trianglesPerCubicMeter0, const RuntimeMethod* method) { { // if (trianglesPerCubicMeter >= 1999.0) double L_0 = ___trianglesPerCubicMeter0; if ((!(((double)L_0) >= ((double)(1999.0))))) { goto IL_000e; } } { // return LODType.High; return (int32_t)(0); } IL_000e: { // else if (trianglesPerCubicMeter >= 749.0 && trianglesPerCubicMeter <= 751.0) double L_1 = ___trianglesPerCubicMeter0; if ((!(((double)L_1) >= ((double)(749.0))))) { goto IL_0028; } } { double L_2 = ___trianglesPerCubicMeter0; if ((!(((double)L_2) <= ((double)(751.0))))) { goto IL_0028; } } { // return LODType.Medium; return (int32_t)(1); } IL_0028: { // return LODType.Low; return (int32_t)(2); } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::Awake() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_Awake_m67B42E703C44CDBC08F7E193207CE23184A90052 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::Start() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_Start_m63DC442935AE91EEDD3F0EA013E8CDC49B51E44B (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_Start_m63DC442935AE91EEDD3F0EA013E8CDC49B51E44B_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // observerId = s_ObserverIdCounter++; IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var); int32_t L_0 = ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->get_s_ObserverIdCounter_6(); int32_t L_1 = L_0; ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->set_s_ObserverIdCounter_6(((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)1))); SpatialMappingBase_set_observerId_m6AFBE2E2DD43BE4877B51B515994535F544E1E07_inline(__this, L_1, /*hidden argument*/NULL); // surfaceObjects = new Dictionary<int, Surface>(); Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_2 = (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *)il2cpp_codegen_object_new(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10_il2cpp_TypeInfo_var); Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA(L_2, /*hidden argument*/Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA_RuntimeMethod_var); SpatialMappingBase_set_surfaceObjects_m034B1632BAC1CE797ADE3EF453B3BF7F0C0B8E90_inline(__this, L_2, /*hidden argument*/NULL); // selectedCamera = Camera.main; Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_3 = Camera_get_main_m9256A9F84F92D7ED73F3E6C4E2694030AD8B61FA(/*hidden argument*/NULL); SpatialMappingBase_set_selectedCamera_m571711921F39F8AC923BF9964A3E559DEF2455A2_inline(__this, L_3, /*hidden argument*/NULL); // nextSurfaceChangeUpdateTime = float.MinValue; SpatialMappingBase_set_nextSurfaceChangeUpdateTime_m6EC9BA4E9FFDEE3AA5687571ABA564FB59BF590E_inline(__this, (-(std::numeric_limits<float>::max)()), /*hidden argument*/NULL); // surfaceObserver = new SurfaceObserver(); SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_4 = (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 *)il2cpp_codegen_object_new(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_il2cpp_TypeInfo_var); SurfaceObserver__ctor_mBDC4FE3EC359DB3F2481186A400EB613B9C63E90(L_4, /*hidden argument*/NULL); SpatialMappingBase_set_surfaceObserver_mDDE2BC259C50248E17B85DDB4C68097E7C97B9DE_inline(__this, L_4, /*hidden argument*/NULL); // SpatialMappingContext.Instance.RegisterComponent(this, OnSurfaceDataReady, TryGetHighestPriorityRequest, surfaceObserver); IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var); SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_5 = SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_inline(/*hidden argument*/NULL); SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_6 = (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 *)il2cpp_codegen_object_new(SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592_il2cpp_TypeInfo_var); SurfaceDataReadyCallback__ctor_m34CF9585F05EE122494CB1FC3151AC877FED820B(L_6, __this, (intptr_t)((intptr_t)GetVirtualMethodInfo(__this, 12)), /*hidden argument*/NULL); GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_7 = (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 *)il2cpp_codegen_object_new(GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6_il2cpp_TypeInfo_var); GetHighestPriorityCallback__ctor_m47258A0A36E0E79506F872C8E03AB33D8A666B47(L_7, __this, (intptr_t)((intptr_t)GetVirtualMethodInfo(__this, 14)), /*hidden argument*/NULL); SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_8 = SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline(__this, /*hidden argument*/NULL); NullCheck(L_5); SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4(L_5, __this, L_6, L_7, L_8, /*hidden argument*/NULL); // bounds = new Bounds(this.transform.position, halfBoxExtents); Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_9 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL); NullCheck(L_9); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_10 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_9, /*hidden argument*/NULL); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_11 = SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F_inline(__this, /*hidden argument*/NULL); Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_12; memset((&L_12), 0, sizeof(L_12)); Bounds__ctor_m294E77A20EC1A3E96985FE1A925CB271D1B5266D((&L_12), L_10, L_11, /*hidden argument*/NULL); SpatialMappingBase_set_bounds_m537FDB6EDF4E405E7D140CFE44828BCB753C60EE_inline(__this, L_12, /*hidden argument*/NULL); // UpdatePosition(); SpatialMappingBase_UpdatePosition_m03871BCE86A0E5912CB8DAE5174F807FEBA2C613(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnEnable() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnEnable_m0AE105AB92958A9BDAB9089065C05341B5BEA907 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_OnEnable_m0AE105AB92958A9BDAB9089065C05341B5BEA907_MetadataUsageId); s_Il2CppMethodInitialized = true; } Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0; memset((&V_0), 0, sizeof(V_0)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1; memset((&V_1), 0, sizeof(V_1)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2; memset((&V_2), 0, sizeof(V_2)); Exception_t * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); void* __leave_targets_storage = alloca(sizeof(int32_t) * 2); il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage); NO_UNUSED_WARNING (__leave_targets); { // if (surfaceObjects != null && surfaceObjects.Count > 0) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); if (!L_0) { goto IL_006b; } } { Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_1); int32_t L_2 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_1, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var); if ((((int32_t)L_2) <= ((int32_t)0))) { goto IL_006b; } } { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_3 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_3); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_4 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_3, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_0 = L_4; } IL_0022: try { // begin try (depth: 1) { goto IL_0052; } IL_0024: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_5 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_1 = L_5; // if (kvp.Value.gameObject != null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_6); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_6, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_8 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_7, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_8) { goto IL_0052; } } IL_0040: { // kvp.Value.gameObject.SetActive(true); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_9 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_9); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_10 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_9, /*hidden argument*/NULL); NullCheck(L_10); GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_10, (bool)1, /*hidden argument*/NULL); } IL_0052: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) bool L_11 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_11) { goto IL_0024; } } IL_005b: { IL2CPP_LEAVE(0x6B, FINALLY_005d); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_005d; } FINALLY_005d: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(93) } // end finally (depth: 1) IL2CPP_CLEANUP(93) { IL2CPP_JUMP_TBL(0x6B, IL_006b) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_006b: { // if (pendingSurfacesForEviction != null && pendingSurfacesForEviction.Count > 0) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_12 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); if (!L_12) { goto IL_00f6; } } { Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_13 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); NullCheck(L_13); int32_t L_14 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_13, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var); if ((((int32_t)L_14) <= ((int32_t)0))) { goto IL_00f6; } } { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_15 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); NullCheck(L_15); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_16 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_15, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_0 = L_16; } IL_0090: try { // begin try (depth: 1) { goto IL_00dd; } IL_0092: { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_17 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_2 = L_17; // if (kvp.Value.gameObject == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_18 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_18); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_19 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_18, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_20 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_19, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_20) { goto IL_00cb; } } IL_00ae: { // Debug.LogWarning(string.Format("Can not activate the surface id \"{0}\" because its GameObject is null.", kvp.Key)); int32_t L_21 = KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_RuntimeMethod_var); int32_t L_22 = L_21; RuntimeObject * L_23 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_22); String_t* L_24 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteral31CF5C222B7921A07D0A9EF275277FC32788832F, L_23, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var); Debug_LogWarning_m37338644DC81F640CCDFEAE35A223F0E965F0568(L_24, /*hidden argument*/NULL); // continue; goto IL_00dd; } IL_00cb: { // kvp.Value.gameObject.SetActive(true); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_25); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_26 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_25, /*hidden argument*/NULL); NullCheck(L_26); GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_26, (bool)1, /*hidden argument*/NULL); } IL_00dd: { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) bool L_27 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_27) { goto IL_0092; } } IL_00e6: { IL2CPP_LEAVE(0xF6, FINALLY_00e8); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_00e8; } FINALLY_00e8: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(232) } // end finally (depth: 1) IL2CPP_CLEANUP(232) { IL2CPP_JUMP_TBL(0xF6, IL_00f6) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_00f6: { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnDisable() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnDisable_mB17047369711C050E2A6C4725FFE888A4530A32D (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_OnDisable_mB17047369711C050E2A6C4725FFE888A4530A32D_MetadataUsageId); s_Il2CppMethodInitialized = true; } Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0; memset((&V_0), 0, sizeof(V_0)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1; memset((&V_1), 0, sizeof(V_1)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2; memset((&V_2), 0, sizeof(V_2)); Exception_t * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); void* __leave_targets_storage = alloca(sizeof(int32_t) * 2); il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage); NO_UNUSED_WARNING (__leave_targets); { // if (surfaceObjects != null && surfaceObjects.Count > 0) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); if (!L_0) { goto IL_006b; } } { Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_1); int32_t L_2 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_1, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var); if ((((int32_t)L_2) <= ((int32_t)0))) { goto IL_006b; } } { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_3 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_3); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_4 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_3, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_0 = L_4; } IL_0022: try { // begin try (depth: 1) { goto IL_0052; } IL_0024: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_5 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_1 = L_5; // if (kvp.Value.gameObject != null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_6); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_6, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_8 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_7, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_8) { goto IL_0052; } } IL_0040: { // kvp.Value.gameObject.SetActive(false); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_9 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_9); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_10 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_9, /*hidden argument*/NULL); NullCheck(L_10); GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_10, (bool)0, /*hidden argument*/NULL); } IL_0052: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) bool L_11 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_11) { goto IL_0024; } } IL_005b: { IL2CPP_LEAVE(0x6B, FINALLY_005d); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_005d; } FINALLY_005d: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(93) } // end finally (depth: 1) IL2CPP_CLEANUP(93) { IL2CPP_JUMP_TBL(0x6B, IL_006b) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_006b: { // if (pendingSurfacesForEviction != null && pendingSurfacesForEviction.Count > 0) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_12 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); if (!L_12) { goto IL_00d6; } } { Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_13 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); NullCheck(L_13); int32_t L_14 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_13, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var); if ((((int32_t)L_14) <= ((int32_t)0))) { goto IL_00d6; } } { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_15 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); NullCheck(L_15); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_16 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_15, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_0 = L_16; } IL_008d: try { // begin try (depth: 1) { goto IL_00bd; } IL_008f: { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_17 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_2 = L_17; // if (kvp.Value.gameObject == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_18 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_18); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_19 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_18, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_20 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_19, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (L_20) { goto IL_00bd; } } IL_00ab: { // kvp.Value.gameObject.SetActive(false); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_21 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_21); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_22 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_21, /*hidden argument*/NULL); NullCheck(L_22); GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_22, (bool)0, /*hidden argument*/NULL); } IL_00bd: { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) bool L_23 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_23) { goto IL_008f; } } IL_00c6: { IL2CPP_LEAVE(0xD6, FINALLY_00c8); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_00c8; } FINALLY_00c8: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(200) } // end finally (depth: 1) IL2CPP_CLEANUP(200) { IL2CPP_JUMP_TBL(0xD6, IL_00d6) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_00d6: { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnDestroy() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnDestroy_mAF2456D391A059BD21C03AC4F8D0CC1119677E54 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_OnDestroy_mAF2456D391A059BD21C03AC4F8D0CC1119677E54_MetadataUsageId); s_Il2CppMethodInitialized = true; } Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0; memset((&V_0), 0, sizeof(V_0)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1; memset((&V_1), 0, sizeof(V_1)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2; memset((&V_2), 0, sizeof(V_2)); Exception_t * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); void* __leave_targets_storage = alloca(sizeof(int32_t) * 2); il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage); NO_UNUSED_WARNING (__leave_targets); { // SpatialMappingContext.Instance.DeregisterComponent(this); IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var); SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_0 = SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_inline(/*hidden argument*/NULL); NullCheck(L_0); SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF(L_0, __this, /*hidden argument*/NULL); // if (surfaceObjects != null && surfaceObjects.Count > 0) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); if (!L_1) { goto IL_0068; } } { Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_2 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_2); int32_t L_3 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_2, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var); if ((((int32_t)L_3) <= ((int32_t)0))) { goto IL_0068; } } { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_4 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_4); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_5 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_4, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_0 = L_5; } IL_002d: try { // begin try (depth: 1) { goto IL_0044; } IL_002f: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_6 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_1 = L_6; // DestroySurface(kvp.Value); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(13 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_7); } IL_0044: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) bool L_8 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_8) { goto IL_002f; } } IL_004d: { IL2CPP_LEAVE(0x5D, FINALLY_004f); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_004f; } FINALLY_004f: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(79) } // end finally (depth: 1) IL2CPP_CLEANUP(79) { IL2CPP_JUMP_TBL(0x5D, IL_005d) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_005d: { // surfaceObjects.Clear(); Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_9 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_9); Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C(L_9, /*hidden argument*/Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C_RuntimeMethod_var); } IL_0068: { // if (pendingSurfacesForEviction != null && pendingSurfacesForEviction.Count > 0) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_10 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); if (!L_10) { goto IL_00d9; } } { Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_11 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); NullCheck(L_11); int32_t L_12 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_11, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var); if ((((int32_t)L_12) <= ((int32_t)0))) { goto IL_00d9; } } { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_13 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); NullCheck(L_13); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_14 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_13, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_0 = L_14; } IL_008a: try { // begin try (depth: 1) { goto IL_00b5; } IL_008c: { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_15 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_2 = L_15; // if (kvp.Value.gameObject == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_16 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_16); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_17 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_16, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_18 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_17, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (L_18) { goto IL_00b5; } } IL_00a8: { // DestroySurface(kvp.Value); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_19 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(13 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_19); } IL_00b5: { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) bool L_20 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_20) { goto IL_008c; } } IL_00be: { IL2CPP_LEAVE(0xCE, FINALLY_00c0); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_00c0; } FINALLY_00c0: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(192) } // end finally (depth: 1) IL2CPP_CLEANUP(192) { IL2CPP_JUMP_TBL(0xCE, IL_00ce) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_00ce: { // pendingSurfacesForEviction.Clear(); Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_21 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); NullCheck(L_21); Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C(L_21, /*hidden argument*/Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C_RuntimeMethod_var); } IL_00d9: { // if (surfaceParentWasDynamicallyCreated) bool L_22 = SpatialMappingBase_get_surfaceParentWasDynamicallyCreated_mBC600B152C29512A2F47D435843B491F0A23A338_inline(__this, /*hidden argument*/NULL); if (!L_22) { goto IL_00f3; } } { // Destroy(surfaceParent); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_23 = SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC_inline(__this, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_23, /*hidden argument*/NULL); // surfaceParent = null; SpatialMappingBase_set_surfaceParent_mEA691909114179FEFB851F5A3BA8897A41626B7D_inline(__this, (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)NULL, /*hidden argument*/NULL); } IL_00f3: { // surfaceObserver.Dispose(); SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_24 = SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline(__this, /*hidden argument*/NULL); NullCheck(L_24); SurfaceObserver_Dispose_mA842C19181453E384E1BCE368468F8762CBB9B1E(L_24, /*hidden argument*/NULL); // surfaceObserver = null; SpatialMappingBase_set_surfaceObserver_mDDE2BC259C50248E17B85DDB4C68097E7C97B9DE_inline(__this, (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 *)NULL, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::Update() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_Update_m2A9E883E6650605A6615668798362076DE627665 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_Update_m2A9E883E6650605A6615668798362076DE627665_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // if (Vector3.SqrMagnitude(lastUpdatedObserverPosition - this.transform.position) > s_MovementUpdateThresholdSqr) Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = SpatialMappingBase_get_lastUpdatedObserverPosition_mDA859EDB4C79D8D0E51EE5E1F5AB66C66A0FA88B_inline(__this, /*hidden argument*/NULL); Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_1 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL); NullCheck(L_1); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_2 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_1, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_3 = Vector3_op_Subtraction_mF9846B723A5034F8B9F5F5DCB78E3D67649143D3(L_0, L_2, /*hidden argument*/NULL); float L_4 = Vector3_SqrMagnitude_mBE7ED92F28BBE09310975CDF329913C04EA9500E(L_3, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var); float L_5 = ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->get_s_MovementUpdateThresholdSqr_4(); if ((!(((float)L_4) > ((float)L_5)))) { goto IL_0028; } } { // UpdatePosition(); SpatialMappingBase_UpdatePosition_m03871BCE86A0E5912CB8DAE5174F807FEBA2C613(__this, /*hidden argument*/NULL); } IL_0028: { // if (!freezeUpdates) bool L_6 = SpatialMappingBase_get_freezeUpdates_m10DAC55A998837D64FE4BB84A4E29D8A852014F2_inline(__this, /*hidden argument*/NULL); if (L_6) { goto IL_0076; } } { // if (Time.time >= nextSurfaceChangeUpdateTime) float L_7 = Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8(/*hidden argument*/NULL); float L_8 = SpatialMappingBase_get_nextSurfaceChangeUpdateTime_mAB42AB4923890CE64BE6EC93A19002886CC88FAA_inline(__this, /*hidden argument*/NULL); if ((!(((float)L_7) >= ((float)L_8)))) { goto IL_0076; } } { // surfaceObserver.Update(OnSurfaceChanged); SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_9 = SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline(__this, /*hidden argument*/NULL); SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1 * L_10 = (SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1 *)il2cpp_codegen_object_new(SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1_il2cpp_TypeInfo_var); SurfaceChangedDelegate__ctor_mC4E2CDAB64B92D5032E1AA39880F73F045D9B714(L_10, __this, (intptr_t)((intptr_t)SpatialMappingBase_OnSurfaceChanged_m8DF08A2DABB49D3C56628EF2E199D128A50F3E3A_RuntimeMethod_var), /*hidden argument*/NULL); NullCheck(L_9); SurfaceObserver_Update_m08AD5357474ED266F8242C2CE6B42BCC9C131A29(L_9, L_10, /*hidden argument*/NULL); // ProcessEvictedObjects(); SpatialMappingBase_ProcessEvictedObjects_m2717BF741005C02CDBB9137EDF32C6EE4E088AD4(__this, /*hidden argument*/NULL); // nextSurfaceChangeUpdateTime = Time.time + secondsBetweenUpdates; float L_11 = Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8(/*hidden argument*/NULL); float L_12 = SpatialMappingBase_get_secondsBetweenUpdates_m08248C91683C82EAF76C2B78F18A6156DA5AD13A_inline(__this, /*hidden argument*/NULL); SpatialMappingBase_set_nextSurfaceChangeUpdateTime_m6EC9BA4E9FFDEE3AA5687571ABA564FB59BF590E_inline(__this, ((float)il2cpp_codegen_add((float)L_11, (float)L_12)), /*hidden argument*/NULL); // SpatialMappingContext.Instance.ComponentHasDataRequests(); IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var); SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_13 = SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_inline(/*hidden argument*/NULL); NullCheck(L_13); SpatialMappingContext_ComponentHasDataRequests_m5529DEFB30F2B54DF0D7A2D293AFC2B1EF7B6C67(L_13, /*hidden argument*/NULL); } IL_0076: { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::UpdatePosition() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_UpdatePosition_m03871BCE86A0E5912CB8DAE5174F807FEBA2C613 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 V_0; memset((&V_0), 0, sizeof(V_0)); { // if (volumeType == VolumeType.Sphere) int32_t L_0 = SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline(__this, /*hidden argument*/NULL); if (L_0) { goto IL_0026; } } { // surfaceObserver.SetVolumeAsSphere(this.transform.position, sphereRadius); SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_1 = SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline(__this, /*hidden argument*/NULL); Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_2 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL); NullCheck(L_2); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_3 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_2, /*hidden argument*/NULL); float L_4 = SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100_inline(__this, /*hidden argument*/NULL); NullCheck(L_1); SurfaceObserver_SetVolumeAsSphere_m8CC38FF7980EDDCC4D4B9FDB312DB622325BFD70(L_1, L_3, L_4, /*hidden argument*/NULL); // } goto IL_0078; } IL_0026: { // else if (volumeType == VolumeType.AxisAlignedBox) int32_t L_5 = SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline(__this, /*hidden argument*/NULL); if ((!(((uint32_t)L_5) == ((uint32_t)1)))) { goto IL_0078; } } { // surfaceObserver.SetVolumeAsAxisAlignedBox(this.transform.position, halfBoxExtents); SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_6 = SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline(__this, /*hidden argument*/NULL); Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_7 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL); NullCheck(L_7); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_8 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_7, /*hidden argument*/NULL); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_9 = SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F_inline(__this, /*hidden argument*/NULL); NullCheck(L_6); SurfaceObserver_SetVolumeAsAxisAlignedBox_m26D27F3DBEC734594B04C75A37CE28017CB47340(L_6, L_8, L_9, /*hidden argument*/NULL); // Bounds tempBounds = bounds; Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_10 = SpatialMappingBase_get_bounds_m555A8D615D0643F8FB75D086714A5A5D6AA371D2_inline(__this, /*hidden argument*/NULL); V_0 = L_10; // tempBounds.center = this.transform.position; Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_11 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL); NullCheck(L_11); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_12 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_11, /*hidden argument*/NULL); Bounds_set_center_mAD29DD80FD631F83AF4E7558BB27A0398E8FD841((Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 *)(&V_0), L_12, /*hidden argument*/NULL); // tempBounds.extents = halfBoxExtents; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_13 = SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F_inline(__this, /*hidden argument*/NULL); Bounds_set_extents_mC83719146B06D0575A160CDDE9997202A1192B35((Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 *)(&V_0), L_13, /*hidden argument*/NULL); // bounds = tempBounds; Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_14 = V_0; SpatialMappingBase_set_bounds_m537FDB6EDF4E405E7D140CFE44828BCB753C60EE_inline(__this, L_14, /*hidden argument*/NULL); } IL_0078: { // lastUpdatedObserverPosition = this.transform.position; Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_15 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL); NullCheck(L_15); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_16 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_15, /*hidden argument*/NULL); SpatialMappingBase_set_lastUpdatedObserverPosition_mFE6057264FC068449849BDAA7481A917B2FB75F8_inline(__this, L_16, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnSurfaceChanged(UnityEngine.XR.WSA.SurfaceId,UnityEngine.XR.WSA.SurfaceChange,UnityEngine.Bounds,System.DateTime) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnSurfaceChanged_m8DF08A2DABB49D3C56628EF2E199D128A50F3E3A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, int32_t ___changeType1, Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 ___bounds2, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___updateTime3, const RuntimeMethod* method) { { // switch (changeType) int32_t L_0 = ___changeType1; if ((!(((uint32_t)L_0) > ((uint32_t)1)))) { goto IL_0009; } } { int32_t L_1 = ___changeType1; if ((((int32_t)L_1) == ((int32_t)2))) { goto IL_0019; } } { return; } IL_0009: { // OnAddOrUpdateSurface(surfaceId, updateTime, bakePhysics); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_2 = ___surfaceId0; DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_3 = ___updateTime3; bool L_4 = SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA_inline(__this, /*hidden argument*/NULL); SpatialMappingBase_OnAddOrUpdateSurface_m88092554E531DD3FEF57CE0272920428FFF44A8A(__this, L_2, L_3, L_4, /*hidden argument*/NULL); // break; return; } IL_0019: { // OnRemoveSurface(surfaceId); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_5 = ___surfaceId0; SpatialMappingBase_OnRemoveSurface_m170B065EDEEE321145D9AFE0FDE9C3202F63B134(__this, L_5, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnAddOrUpdateSurface(UnityEngine.XR.WSA.SurfaceId,System.DateTime,System.Boolean) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnAddOrUpdateSurface_m88092554E531DD3FEF57CE0272920428FFF44A8A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___updateTime1, bool ___bakePhysics2, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_OnAddOrUpdateSurface_m88092554E531DD3FEF57CE0272920428FFF44A8A_MetadataUsageId); s_Il2CppMethodInitialized = true; } Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_0 = NULL; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_1; memset((&V_1), 0, sizeof(V_1)); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_2; memset((&V_2), 0, sizeof(V_2)); { // Surface surface = null; V_0 = (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *)NULL; // if (pendingSurfacesForEviction.ContainsKey(surfaceId.handle)) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_1 = ___surfaceId0; int32_t L_2 = L_1.get_handle_0(); NullCheck(L_0); bool L_3 = Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5(L_0, L_2, /*hidden argument*/Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5_RuntimeMethod_var); if (!L_3) { goto IL_004b; } } { // surfaceObjects[surfaceId.handle] = pendingSurfacesForEviction[surfaceId.handle]; Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_4 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_5 = ___surfaceId0; int32_t L_6 = L_5.get_handle_0(); Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_7 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_8 = ___surfaceId0; int32_t L_9 = L_8.get_handle_0(); NullCheck(L_7); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC(L_7, L_9, /*hidden argument*/Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC_RuntimeMethod_var); NullCheck(L_4); Dictionary_2_set_Item_m4EF301E32DD6BA510761DF9393AB9EA87C5CB686(L_4, L_6, L_10, /*hidden argument*/Dictionary_2_set_Item_m4EF301E32DD6BA510761DF9393AB9EA87C5CB686_RuntimeMethod_var); // pendingSurfacesForEviction.Remove(surfaceId.handle); Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_11 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_12 = ___surfaceId0; int32_t L_13 = L_12.get_handle_0(); NullCheck(L_11); Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953(L_11, L_13, /*hidden argument*/Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953_RuntimeMethod_var); // } goto IL_0087; } IL_004b: { // else if (!surfaceObjects.ContainsKey(surfaceId.handle)) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_14 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_15 = ___surfaceId0; int32_t L_16 = L_15.get_handle_0(); NullCheck(L_14); bool L_17 = Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5(L_14, L_16, /*hidden argument*/Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5_RuntimeMethod_var); if (L_17) { goto IL_0087; } } { // surface = CreateSurface(surfaceId); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_18 = ___surfaceId0; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_19 = SpatialMappingBase_CreateSurface_m4B108724636C35394AE9D686FCB8C39517C6671C(__this, L_18, /*hidden argument*/NULL); V_0 = L_19; // surface.surfaceData = new SurfaceData(); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_20 = V_0; il2cpp_codegen_initobj((&V_2), sizeof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 )); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_21 = V_2; NullCheck(L_20); Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_20, L_21, /*hidden argument*/NULL); // surfaceObjects.Add(surfaceId.handle, surface); Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_22 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_23 = ___surfaceId0; int32_t L_24 = L_23.get_handle_0(); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = V_0; NullCheck(L_22); Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53(L_22, L_24, L_25, /*hidden argument*/Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53_RuntimeMethod_var); } IL_0087: { // if (surface == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_26 = V_0; if (L_26) { goto IL_009c; } } { // surface = surfaceObjects[surfaceId.handle]; Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_27 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_28 = ___surfaceId0; int32_t L_29 = L_28.get_handle_0(); NullCheck(L_27); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_30 = Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC(L_27, L_29, /*hidden argument*/Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC_RuntimeMethod_var); V_0 = L_30; } IL_009c: { // SurfaceData tempSurfaceData = surface.surfaceData; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_31 = V_0; NullCheck(L_31); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_32 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_31, /*hidden argument*/NULL); V_1 = L_32; // tempSurfaceData.id = surfaceId; SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_33 = ___surfaceId0; (&V_1)->set_id_0(L_33); // tempSurfaceData.bakeCollider = bakePhysics; bool L_34 = ___bakePhysics2; (&V_1)->set_bakeCollider_5(L_34); // tempSurfaceData.trianglesPerCubicMeter = lodToPcm[(int)lodType]; IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var); Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_35 = SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_inline(/*hidden argument*/NULL); int32_t L_36 = SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C_inline(__this, /*hidden argument*/NULL); NullCheck(L_35); int32_t L_37 = L_36; int32_t L_38 = (L_35)->GetAt(static_cast<il2cpp_array_size_t>(L_37)); (&V_1)->set_trianglesPerCubicMeter_4((((float)((float)L_38)))); // surface.surfaceData = tempSurfaceData; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_39 = V_0; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_40 = V_1; NullCheck(L_39); Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_39, L_40, /*hidden argument*/NULL); // surface.awaitingBake = true; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_41 = V_0; NullCheck(L_41); Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline(L_41, (bool)1, /*hidden argument*/NULL); // surface.updateTime = updateTime; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_42 = V_0; DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_43 = ___updateTime1; NullCheck(L_42); Surface_set_updateTime_m8FDDAF318259294A7184AE968CBC52051BE225F2_inline(L_42, L_43, /*hidden argument*/NULL); // AddRequiredComponentsForBaking(surface); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_44 = V_0; VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(10 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::AddRequiredComponentsForBaking(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_44); // } return; } } // UnityEngine.XR.WSA.SpatialMappingBase_Surface UnityEngine.XR.WSA.SpatialMappingBase::CreateSurface(UnityEngine.XR.WSA.SurfaceId) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * SpatialMappingBase_CreateSurface_m4B108724636C35394AE9D686FCB8C39517C6671C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_CreateSurface_m4B108724636C35394AE9D686FCB8C39517C6671C_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // Surface surface = new Surface(); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *)il2cpp_codegen_object_new(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D_il2cpp_TypeInfo_var); Surface__ctor_m5034101390586B7DF34E820D9CC592A45C6D5D01(L_0, /*hidden argument*/NULL); // surface.surfaceId = surfaceId; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_1 = L_0; SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_2 = ___surfaceId0; NullCheck(L_1); Surface_set_surfaceId_m0B776CEC7A925E7780973C2E0D787C58B28439F1_inline(L_1, L_2, /*hidden argument*/NULL); // surface.awaitingBake = false; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_3 = L_1; NullCheck(L_3); Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline(L_3, (bool)0, /*hidden argument*/NULL); // return surface; return L_3; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::CloneBakedComponents(UnityEngine.XR.WSA.SurfaceData,UnityEngine.XR.WSA.SpatialMappingBase_Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___target1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // if (target == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___target1; if (L_0) { goto IL_0004; } } { // return; return; } IL_0004: { // if (bakedData.outputMesh != null && target.meshFilter != null) SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_1 = ___bakedData0; MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_2 = L_1.get_outputMesh_1(); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_3 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_2, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_3) { goto IL_0046; } } { Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_4 = ___target1; NullCheck(L_4); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_5 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_4, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_6 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_5, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_6) { goto IL_0046; } } { // Destroy(target.meshFilter.mesh); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = ___target1; NullCheck(L_7); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_8 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_7, /*hidden argument*/NULL); NullCheck(L_8); Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * L_9 = MeshFilter_get_mesh_m0311B393009B408197013C5EBCB42A1E3EC3B7D5(L_8, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_9, /*hidden argument*/NULL); // target.meshFilter.mesh = bakedData.outputMesh.sharedMesh; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___target1; NullCheck(L_10); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_11 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_10, /*hidden argument*/NULL); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_12 = ___bakedData0; MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_13 = L_12.get_outputMesh_1(); NullCheck(L_13); Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * L_14 = MeshFilter_get_sharedMesh_mC076FD5461BFBBAD3BE49D25263CF140700D9902(L_13, /*hidden argument*/NULL); NullCheck(L_11); MeshFilter_set_mesh_mA18AA96C75CC91CF0917BA1F437626499FAAF496(L_11, L_14, /*hidden argument*/NULL); } IL_0046: { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::AddRequiredComponentsForBaking(UnityEngine.XR.WSA.SpatialMappingBase_Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_AddRequiredComponentsForBaking_m39F67F97247869F12E9E806B6D21AB100AA9F7EA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_AddRequiredComponentsForBaking_m39F67F97247869F12E9E806B6D21AB100AA9F7EA_MetadataUsageId); s_Il2CppMethodInitialized = true; } SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_0; memset((&V_0), 0, sizeof(V_0)); { // if (surfaceParent == null) GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC_inline(__this, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_1) { goto IL_0035; } } { // surfaceParent = new GameObject(string.Format("Surface Parent{0}", observerId)); int32_t L_2 = SpatialMappingBase_get_observerId_m11215996E1207E53F6F0C1218CA50AD058B80495_inline(__this, /*hidden argument*/NULL); int32_t L_3 = L_2; RuntimeObject * L_4 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_3); String_t* L_5 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteralEB6EF0B99606BAD040095156CE2B1FAAC0C59C6A, L_4, /*hidden argument*/NULL); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)il2cpp_codegen_object_new(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_il2cpp_TypeInfo_var); GameObject__ctor_mBB454E679AD9CF0B84D3609A01E6A9753ACF4686(L_6, L_5, /*hidden argument*/NULL); SpatialMappingBase_set_surfaceParent_mEA691909114179FEFB851F5A3BA8897A41626B7D_inline(__this, L_6, /*hidden argument*/NULL); // surfaceParentWasDynamicallyCreated = true; SpatialMappingBase_set_surfaceParentWasDynamicallyCreated_mAD419F4D32525643B8F2FF5823F130360DA915A1_inline(__this, (bool)1, /*hidden argument*/NULL); } IL_0035: { // if (surface.gameObject == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = ___surface0; NullCheck(L_7); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_7, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_9 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_8, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_9) { goto IL_008e; } } { // surface.gameObject = new GameObject(string.Format("spatial-mapping-surface{0}_{1}", observerId, surface.surfaceId.handle)); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___surface0; int32_t L_11 = SpatialMappingBase_get_observerId_m11215996E1207E53F6F0C1218CA50AD058B80495_inline(__this, /*hidden argument*/NULL); int32_t L_12 = L_11; RuntimeObject * L_13 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_12); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_14 = ___surface0; NullCheck(L_14); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_15 = Surface_get_surfaceId_mAD37AE571E345D3B6850E57137292FE70E6F388B_inline(L_14, /*hidden argument*/NULL); int32_t L_16 = L_15.get_handle_0(); int32_t L_17 = L_16; RuntimeObject * L_18 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_17); String_t* L_19 = String_Format_m19325298DBC61AAC016C16F7B3CF97A8A3DEA34A(_stringLiteral05C07D1FCAF258FA9A5BB24E01F6316B3F11BE63, L_13, L_18, /*hidden argument*/NULL); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_20 = (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)il2cpp_codegen_object_new(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_il2cpp_TypeInfo_var); GameObject__ctor_mBB454E679AD9CF0B84D3609A01E6A9753ACF4686(L_20, L_19, /*hidden argument*/NULL); NullCheck(L_10); Surface_set_gameObject_mA485C86A72C7B313E831FD5F2853338DF24C87F4_inline(L_10, L_20, /*hidden argument*/NULL); // surface.gameObject.transform.parent = surfaceParent.transform; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_21 = ___surface0; NullCheck(L_21); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_22 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_21, /*hidden argument*/NULL); NullCheck(L_22); Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_23 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_22, /*hidden argument*/NULL); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_24 = SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC_inline(__this, /*hidden argument*/NULL); NullCheck(L_24); Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_25 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_24, /*hidden argument*/NULL); NullCheck(L_23); Transform_set_parent_m65B8E4660B2C554069C57A957D9E55FECA7AA73E(L_23, L_25, /*hidden argument*/NULL); } IL_008e: { // if (surface.meshFilter == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_26 = ___surface0; NullCheck(L_26); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_27 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_26, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_28 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_27, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_28) { goto IL_00cc; } } { // surface.meshFilter = surface.gameObject.GetComponent<MeshFilter>(); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_29 = ___surface0; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_30 = ___surface0; NullCheck(L_30); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_31 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_30, /*hidden argument*/NULL); NullCheck(L_31); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_32 = GameObject_GetComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_mD1BA4FFEB800AB3D102141CD0A0ECE237EA70FB4(L_31, /*hidden argument*/GameObject_GetComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_mD1BA4FFEB800AB3D102141CD0A0ECE237EA70FB4_RuntimeMethod_var); NullCheck(L_29); Surface_set_meshFilter_m09D0BD0AB6A36F2DB45400E12EE2D6CCE0FDF7A1_inline(L_29, L_32, /*hidden argument*/NULL); // if (surface.meshFilter == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_33 = ___surface0; NullCheck(L_33); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_34 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_33, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_35 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_34, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_35) { goto IL_00cc; } } { // surface.meshFilter = surface.gameObject.AddComponent<MeshFilter>(); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_36 = ___surface0; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_37 = ___surface0; NullCheck(L_37); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_38 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_37, /*hidden argument*/NULL); NullCheck(L_38); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_39 = GameObject_AddComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_m98AEA1EDDC59492203D06FA2912152C37C4164E4(L_38, /*hidden argument*/GameObject_AddComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_m98AEA1EDDC59492203D06FA2912152C37C4164E4_RuntimeMethod_var); NullCheck(L_36); Surface_set_meshFilter_m09D0BD0AB6A36F2DB45400E12EE2D6CCE0FDF7A1_inline(L_36, L_39, /*hidden argument*/NULL); } IL_00cc: { // SurfaceData tempSurfaceData = surface.surfaceData; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_40 = ___surface0; NullCheck(L_40); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_41 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_40, /*hidden argument*/NULL); V_0 = L_41; // tempSurfaceData.outputMesh = surface.meshFilter; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_42 = ___surface0; NullCheck(L_42); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_43 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_42, /*hidden argument*/NULL); (&V_0)->set_outputMesh_1(L_43); // if (surface.worldAnchor == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_44 = ___surface0; NullCheck(L_44); WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_45 = Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669_inline(L_44, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_46 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_45, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_46) { goto IL_011e; } } { // surface.worldAnchor = surface.gameObject.GetComponent<WorldAnchor>(); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_47 = ___surface0; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_48 = ___surface0; NullCheck(L_48); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_49 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_48, /*hidden argument*/NULL); NullCheck(L_49); WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_50 = GameObject_GetComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_mEC8104A64D5255720AC2B56454CD4B573B4B2971(L_49, /*hidden argument*/GameObject_GetComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_mEC8104A64D5255720AC2B56454CD4B573B4B2971_RuntimeMethod_var); NullCheck(L_47); Surface_set_worldAnchor_m89D7EAB5602CF873669A9D4FFAC3D3B8528C3CEE_inline(L_47, L_50, /*hidden argument*/NULL); // if (surface.worldAnchor == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_51 = ___surface0; NullCheck(L_51); WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_52 = Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669_inline(L_51, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_53 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_52, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_53) { goto IL_011e; } } { // surface.worldAnchor = surface.gameObject.AddComponent<WorldAnchor>(); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_54 = ___surface0; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_55 = ___surface0; NullCheck(L_55); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_56 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_55, /*hidden argument*/NULL); NullCheck(L_56); WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_57 = GameObject_AddComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_m41101CD1505A6B6B9717C15FACAEE0DD4D1E9CEF(L_56, /*hidden argument*/GameObject_AddComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_m41101CD1505A6B6B9717C15FACAEE0DD4D1E9CEF_RuntimeMethod_var); NullCheck(L_54); Surface_set_worldAnchor_m89D7EAB5602CF873669A9D4FFAC3D3B8528C3CEE_inline(L_54, L_57, /*hidden argument*/NULL); } IL_011e: { // tempSurfaceData.outputAnchor = surface.worldAnchor; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_58 = ___surface0; NullCheck(L_58); WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_59 = Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669_inline(L_58, /*hidden argument*/NULL); (&V_0)->set_outputAnchor_2(L_59); // surface.surfaceData = tempSurfaceData; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_60 = ___surface0; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_61 = V_0; NullCheck(L_60); Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_60, L_61, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnRemoveSurface(UnityEngine.XR.WSA.SurfaceId) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnRemoveSurface_m170B065EDEEE321145D9AFE0FDE9C3202F63B134 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_OnRemoveSurface_m170B065EDEEE321145D9AFE0FDE9C3202F63B134_MetadataUsageId); s_Il2CppMethodInitialized = true; } Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_0 = NULL; { // if (surfaceObjects == null || surfaceObjects.Count == 0) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); if (!L_0) { goto IL_0015; } } { Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_1); int32_t L_2 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_1, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var); if (L_2) { goto IL_0016; } } IL_0015: { // return; return; } IL_0016: { // if (!surfaceObjects.TryGetValue(surfaceId.handle, out sd)) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_3 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_4 = ___surfaceId0; int32_t L_5 = L_4.get_handle_0(); NullCheck(L_3); bool L_6 = Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8(L_3, L_5, (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D **)(&V_0), /*hidden argument*/Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8_RuntimeMethod_var); if (L_6) { goto IL_0046; } } { // Debug.LogWarning(string.Format("Can not remove the surface id \"{0}\" because it is not an active surface.", surfaceId.handle)); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_7 = ___surfaceId0; int32_t L_8 = L_7.get_handle_0(); int32_t L_9 = L_8; RuntimeObject * L_10 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_9); String_t* L_11 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteral19EA9A5EB531CE393DCA73F73B60048CF49D5D7E, L_10, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var); Debug_LogWarning_m37338644DC81F640CCDFEAE35A223F0E965F0568(L_11, /*hidden argument*/NULL); // return; return; } IL_0046: { // surfaceObjects.Remove(surfaceId.handle); Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_12 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_13 = ___surfaceId0; int32_t L_14 = L_13.get_handle_0(); NullCheck(L_12); Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953(L_12, L_14, /*hidden argument*/Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953_RuntimeMethod_var); // if (numUpdatesBeforeRemoval < 1) int32_t L_15 = SpatialMappingBase_get_numUpdatesBeforeRemoval_m6F510DAD1B7465439C2D15C640FF4F0C2FB004BA_inline(__this, /*hidden argument*/NULL); if ((((int32_t)L_15) >= ((int32_t)1))) { goto IL_0069; } } { // DestroySurface(sd); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_16 = V_0; VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(13 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_16); // return; return; } IL_0069: { // OnBeginSurfaceEviction(ShouldRemainActiveWhileBeingRemoved(sd), sd); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_17 = V_0; bool L_18 = SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6(__this, L_17, /*hidden argument*/NULL); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_19 = V_0; VirtActionInvoker2< bool, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(11 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnBeginSurfaceEviction(System.Boolean,UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_18, L_19); // sd.remainingUpdatesToLive = numUpdatesBeforeRemoval + 1; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_20 = V_0; int32_t L_21 = SpatialMappingBase_get_numUpdatesBeforeRemoval_m6F510DAD1B7465439C2D15C640FF4F0C2FB004BA_inline(__this, /*hidden argument*/NULL); NullCheck(L_20); Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537_inline(L_20, ((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)1)), /*hidden argument*/NULL); // pendingSurfacesForEviction.Add(surfaceId.handle, sd); Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_22 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_23 = ___surfaceId0; int32_t L_24 = L_23.get_handle_0(); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = V_0; NullCheck(L_22); Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53(L_22, L_24, L_25, /*hidden argument*/Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53_RuntimeMethod_var); // } return; } } // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::ShouldRemainActiveWhileBeingRemoved(UnityEngine.XR.WSA.SpatialMappingBase_Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6_MetadataUsageId); s_Il2CppMethodInitialized = true; } GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * V_0 = NULL; bool V_1 = false; Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * V_2 = NULL; { // if (surface.gameObject == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0; NullCheck(L_0); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_0, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_2 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_2) { goto IL_0010; } } { // return false; return (bool)0; } IL_0010: { // GameObject mainCameraGameObject = selectedCamera.gameObject; Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_3 = SpatialMappingBase_get_selectedCamera_mE3E4571F7EAF1DF70B6762BC57B6CBAFCB17E834_inline(__this, /*hidden argument*/NULL); NullCheck(L_3); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_4 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_3, /*hidden argument*/NULL); V_0 = L_4; // bool parentedToCamera = surface.gameObject == mainCameraGameObject; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_5 = ___surface0; NullCheck(L_5); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_5, /*hidden argument*/NULL); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = V_0; IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_8 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_6, L_7, /*hidden argument*/NULL); V_1 = L_8; // Transform currentTransform = surface.gameObject.transform.parent; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_9 = ___surface0; NullCheck(L_9); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_10 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_9, /*hidden argument*/NULL); NullCheck(L_10); Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_11 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_10, /*hidden argument*/NULL); NullCheck(L_11); Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_12 = Transform_get_parent_m8FA24E38A1FA29D90CBF3CDC9F9F017C65BB3403(L_11, /*hidden argument*/NULL); V_2 = L_12; goto IL_0055; } IL_003c: { // if (currentTransform.gameObject == mainCameraGameObject) Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_13 = V_2; NullCheck(L_13); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_14 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_13, /*hidden argument*/NULL); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_15 = V_0; IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_16 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_14, L_15, /*hidden argument*/NULL); if (!L_16) { goto IL_004e; } } { // parentedToCamera = true; V_1 = (bool)1; // break; goto IL_0061; } IL_004e: { // currentTransform = currentTransform.parent; Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_17 = V_2; NullCheck(L_17); Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_18 = Transform_get_parent_m8FA24E38A1FA29D90CBF3CDC9F9F017C65BB3403(L_17, /*hidden argument*/NULL); V_2 = L_18; } IL_0055: { // while (!parentedToCamera && currentTransform != null) bool L_19 = V_1; if (L_19) { goto IL_0061; } } { Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_20 = V_2; IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_21 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_20, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (L_21) { goto IL_003c; } } IL_0061: { // if (parentedToCamera == true) bool L_22 = V_1; if (!L_22) { goto IL_0066; } } { // return false; return (bool)0; } IL_0066: { // if (BoundsContains(surface.gameObject.transform.position)) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_23 = ___surface0; NullCheck(L_23); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_24 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_23, /*hidden argument*/NULL); NullCheck(L_24); Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_25 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_24, /*hidden argument*/NULL); NullCheck(L_25); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_26 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_25, /*hidden argument*/NULL); bool L_27 = SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C(__this, L_26, /*hidden argument*/NULL); if (!L_27) { goto IL_0080; } } { // return false; return (bool)0; } IL_0080: { // return true; return (bool)1; } } // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::BoundsContains(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C_MetadataUsageId); s_Il2CppMethodInitialized = true; } Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 V_0; memset((&V_0), 0, sizeof(V_0)); { // if (volumeType == VolumeType.Sphere) int32_t L_0 = SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline(__this, /*hidden argument*/NULL); if (L_0) { goto IL_002f; } } { // if (Vector3.SqrMagnitude(position - this.transform.position) <= sphereRadius * sphereRadius) Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = ___position0; Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_2 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL); NullCheck(L_2); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_3 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_2, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_4 = Vector3_op_Subtraction_mF9846B723A5034F8B9F5F5DCB78E3D67649143D3(L_1, L_3, /*hidden argument*/NULL); float L_5 = Vector3_SqrMagnitude_mBE7ED92F28BBE09310975CDF329913C04EA9500E(L_4, /*hidden argument*/NULL); float L_6 = SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100_inline(__this, /*hidden argument*/NULL); float L_7 = SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100_inline(__this, /*hidden argument*/NULL); if ((!(((float)L_5) <= ((float)((float)il2cpp_codegen_multiply((float)L_6, (float)L_7)))))) { goto IL_0048; } } { // return true; return (bool)1; } IL_002f: { // else if (volumeType == VolumeType.AxisAlignedBox) int32_t L_8 = SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline(__this, /*hidden argument*/NULL); if ((!(((uint32_t)L_8) == ((uint32_t)1)))) { goto IL_0048; } } { // return bounds.Contains(position); Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_9 = SpatialMappingBase_get_bounds_m555A8D615D0643F8FB75D086714A5A5D6AA371D2_inline(__this, /*hidden argument*/NULL); V_0 = L_9; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_10 = ___position0; bool L_11 = Bounds_Contains_mD0387F6A414484534BE1E50E0FC55EDE1E138319((Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 *)(&V_0), L_10, /*hidden argument*/NULL); return L_11; } IL_0048: { // return false; return (bool)0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase_Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_DestroySurface_m61864CCED61827A61A95FA29FAD6ED9920F67E04 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_DestroySurface_m61864CCED61827A61A95FA29FAD6ED9920F67E04_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // surface.remainingUpdatesToLive = -1; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0; NullCheck(L_0); Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537_inline(L_0, (-1), /*hidden argument*/NULL); // if (surface.meshFilter != null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_1 = ___surface0; NullCheck(L_1); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_2 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_1, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_3 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_2, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_3) { goto IL_0038; } } { // if (surface.meshFilter.mesh != null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_4 = ___surface0; NullCheck(L_4); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_5 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_4, /*hidden argument*/NULL); NullCheck(L_5); Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * L_6 = MeshFilter_get_mesh_m0311B393009B408197013C5EBCB42A1E3EC3B7D5(L_5, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_7 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_6, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_7) { goto IL_0038; } } { // Destroy(surface.meshFilter.mesh); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_8 = ___surface0; NullCheck(L_8); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_9 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_8, /*hidden argument*/NULL); NullCheck(L_9); Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * L_10 = MeshFilter_get_mesh_m0311B393009B408197013C5EBCB42A1E3EC3B7D5(L_9, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_10, /*hidden argument*/NULL); } IL_0038: { // GameObject.Destroy(surface.gameObject); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_11 = ___surface0; NullCheck(L_11); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_12 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_11, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_12, /*hidden argument*/NULL); // surface.gameObject = null; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_13 = ___surface0; NullCheck(L_13); Surface_set_gameObject_mA485C86A72C7B313E831FD5F2853338DF24C87F4_inline(L_13, (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)NULL, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::ProcessEvictedObjects() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_ProcessEvictedObjects_m2717BF741005C02CDBB9137EDF32C6EE4E088AD4 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_ProcessEvictedObjects_m2717BF741005C02CDBB9137EDF32C6EE4E088AD4_MetadataUsageId); s_Il2CppMethodInitialized = true; } Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0; memset((&V_0), 0, sizeof(V_0)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1; memset((&V_1), 0, sizeof(V_1)); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_2 = NULL; Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 V_3; memset((&V_3), 0, sizeof(V_3)); int32_t V_4 = 0; int32_t V_5 = 0; Exception_t * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); void* __leave_targets_storage = alloca(sizeof(int32_t) * 1); il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage); NO_UNUSED_WARNING (__leave_targets); { // if (pendingSurfacesForEviction == null || pendingSurfacesForEviction.Count == 0) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); if (!L_0) { goto IL_0015; } } { Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); NullCheck(L_1); int32_t L_2 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_1, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var); if (L_2) { goto IL_0016; } } IL_0015: { // return; return; } IL_0016: { // surfacesToRemoveFromDict.Clear(); List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_3 = SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline(__this, /*hidden argument*/NULL); NullCheck(L_3); List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477(L_3, /*hidden argument*/List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477_RuntimeMethod_var); // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_4 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); NullCheck(L_4); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_5 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_4, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_0 = L_5; } IL_002d: try { // begin try (depth: 1) { goto IL_00d1; } IL_0032: { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_6 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_1 = L_6; // if (kvp.Value.gameObject == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_7); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_7, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_9 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_8, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_9) { goto IL_0062; } } IL_004e: { // surfacesToRemoveFromDict.Add(kvp.Key); List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_10 = SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline(__this, /*hidden argument*/NULL); int32_t L_11 = KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_RuntimeMethod_var); NullCheck(L_10); List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771(L_10, L_11, /*hidden argument*/List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771_RuntimeMethod_var); // continue; goto IL_00d1; } IL_0062: { // Surface evictionObject = kvp.Value; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_12 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); V_2 = L_12; // Vector3 surfacePosition = evictionObject.gameObject.transform.position; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_13 = V_2; NullCheck(L_13); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_14 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_13, /*hidden argument*/NULL); NullCheck(L_14); Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_15 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_14, /*hidden argument*/NULL); NullCheck(L_15); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_16 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_15, /*hidden argument*/NULL); V_3 = L_16; // if (!BoundsContains(surfacePosition) || // Vector3.SqrMagnitude(surfacePosition - this.transform.position) <= s_EvictionUpdateTickThresholdSqr) Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_17 = V_3; bool L_18 = SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C(__this, L_17, /*hidden argument*/NULL); if (!L_18) { goto IL_00a1; } } IL_0084: { Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_19 = V_3; Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_20 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL); NullCheck(L_20); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_21 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_20, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_22 = Vector3_op_Subtraction_mF9846B723A5034F8B9F5F5DCB78E3D67649143D3(L_19, L_21, /*hidden argument*/NULL); float L_23 = Vector3_SqrMagnitude_mBE7ED92F28BBE09310975CDF329913C04EA9500E(L_22, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var); float L_24 = ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->get_s_EvictionUpdateTickThresholdSqr_5(); if ((!(((float)L_23) <= ((float)L_24)))) { goto IL_00d1; } } IL_00a1: { // if (evictionObject.remainingUpdatesToLive-- <= 0) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = V_2; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_26 = L_25; NullCheck(L_26); int32_t L_27 = Surface_get_remainingUpdatesToLive_m5D45BD30D4CCCAF01FDC1E4D6ACA402AF2E5C1B4_inline(L_26, /*hidden argument*/NULL); V_4 = L_27; int32_t L_28 = V_4; NullCheck(L_26); Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537_inline(L_26, ((int32_t)il2cpp_codegen_subtract((int32_t)L_28, (int32_t)1)), /*hidden argument*/NULL); int32_t L_29 = V_4; if ((((int32_t)L_29) > ((int32_t)0))) { goto IL_00d1; } } IL_00b8: { // DestroySurface(evictionObject); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_30 = V_2; VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(13 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_30); // surfacesToRemoveFromDict.Add(kvp.Key); List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_31 = SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline(__this, /*hidden argument*/NULL); int32_t L_32 = KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_RuntimeMethod_var); NullCheck(L_31); List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771(L_31, L_32, /*hidden argument*/List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771_RuntimeMethod_var); } IL_00d1: { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) bool L_33 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_33) { goto IL_0032; } } IL_00dd: { IL2CPP_LEAVE(0xED, FINALLY_00df); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_00df; } FINALLY_00df: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(223) } // end finally (depth: 1) IL2CPP_CLEANUP(223) { IL2CPP_JUMP_TBL(0xED, IL_00ed) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_00ed: { // for (int i = 0; i < surfacesToRemoveFromDict.Count; ++i) V_5 = 0; goto IL_0111; } IL_00f2: { // pendingSurfacesForEviction.Remove(surfacesToRemoveFromDict[i]); Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_34 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_35 = SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline(__this, /*hidden argument*/NULL); int32_t L_36 = V_5; NullCheck(L_35); int32_t L_37 = List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_inline(L_35, L_36, /*hidden argument*/List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_RuntimeMethod_var); NullCheck(L_34); Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953(L_34, L_37, /*hidden argument*/Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953_RuntimeMethod_var); // for (int i = 0; i < surfacesToRemoveFromDict.Count; ++i) int32_t L_38 = V_5; V_5 = ((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1)); } IL_0111: { // for (int i = 0; i < surfacesToRemoveFromDict.Count; ++i) int32_t L_39 = V_5; List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_40 = SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline(__this, /*hidden argument*/NULL); NullCheck(L_40); int32_t L_41 = List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_inline(L_40, /*hidden argument*/List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_RuntimeMethod_var); if ((((int32_t)L_39) < ((int32_t)L_41))) { goto IL_00f2; } } { // } return; } } // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::TryGetHighestPriorityRequest(UnityEngine.XR.WSA.SurfaceData&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_TryGetHighestPriorityRequest_m13220FB84B555EBE712CAB161B61F380D5849A70 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * ___bestSurfaceData0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_TryGetHighestPriorityRequest_m13220FB84B555EBE712CAB161B61F380D5849A70_MetadataUsageId); s_Il2CppMethodInitialized = true; } Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_0 = NULL; Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_1; memset((&V_1), 0, sizeof(V_1)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2; memset((&V_2), 0, sizeof(V_2)); Exception_t * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); void* __leave_targets_storage = alloca(sizeof(int32_t) * 1); il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage); NO_UNUSED_WARNING (__leave_targets); { // bestSurfaceData = bestSurfaceDataNull; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * L_0 = ___bestSurfaceData0; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_1 = __this->get_bestSurfaceDataNull_27(); *(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_0 = L_1; Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_0)->___outputMesh_1), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_0)->___outputAnchor_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_0)->___outputCollider_3), (void*)NULL); #endif // if (surfaceObjects == null || surfaceObjects.Count == 0) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_2 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); if (!L_2) { goto IL_0021; } } { Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_3 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_3); int32_t L_4 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_3, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var); if (L_4) { goto IL_0023; } } IL_0021: { // return false; return (bool)0; } IL_0023: { // Surface bestSurface = null; V_0 = (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *)NULL; // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_5 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_5); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_6 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_5, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_1 = L_6; } IL_0031: try { // begin try (depth: 1) { goto IL_0077; } IL_0033: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_7 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_1), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_2 = L_7; // if (!kvp.Value.awaitingBake) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_8 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_8); bool L_9 = Surface_get_awaitingBake_m3B199586E0066144D8986804B73E5BDE97FEEB40_inline(L_8, /*hidden argument*/NULL); if (!L_9) { goto IL_0077; } } IL_0049: { // if (bestSurface == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = V_0; if (L_10) { goto IL_0056; } } IL_004c: { // bestSurface = kvp.Value; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_11 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); V_0 = L_11; // continue; goto IL_0077; } IL_0056: { // if (kvp.Value.updateTime < bestSurface.updateTime) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_12 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_12); DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_13 = Surface_get_updateTime_m580ACCD9FDFE2AFE4A982ED12B8B1FC47FACE842_inline(L_12, /*hidden argument*/NULL); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_14 = V_0; NullCheck(L_14); DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_15 = Surface_get_updateTime_m580ACCD9FDFE2AFE4A982ED12B8B1FC47FACE842_inline(L_14, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_il2cpp_TypeInfo_var); bool L_16 = DateTime_op_LessThan_m75DE4F8CC5F5EE392829A9B37C5C98B7FC97061A(L_13, L_15, /*hidden argument*/NULL); if (!L_16) { goto IL_0077; } } IL_006f: { // bestSurface = kvp.Value; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_17 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); V_0 = L_17; } IL_0077: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) bool L_18 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_1), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_18) { goto IL_0033; } } IL_0080: { IL2CPP_LEAVE(0x90, FINALLY_0082); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_0082; } FINALLY_0082: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_1), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(130) } // end finally (depth: 1) IL2CPP_CLEANUP(130) { IL2CPP_JUMP_TBL(0x90, IL_0090) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_0090: { // if (bestSurface == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_19 = V_0; if (L_19) { goto IL_0095; } } { // return false; return (bool)0; } IL_0095: { // AddRequiredComponentsForBaking(bestSurface); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_20 = V_0; VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(10 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::AddRequiredComponentsForBaking(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_20); // UpdateSurfaceData(bestSurface); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_21 = V_0; VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(15 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::UpdateSurfaceData(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_21); // bestSurfaceData = bestSurface.surfaceData; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * L_22 = ___bestSurfaceData0; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_23 = V_0; NullCheck(L_23); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_24 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_23, /*hidden argument*/NULL); *(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_22 = L_24; Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_22)->___outputMesh_1), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_22)->___outputAnchor_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_22)->___outputCollider_3), (void*)NULL); #endif // return true; return (bool)1; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::UpdateSurfaceData(UnityEngine.XR.WSA.SpatialMappingBase_Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_UpdateSurfaceData_m54007C547C0BEA915A1178C572AA8F8D2BF598B4 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_UpdateSurfaceData_m54007C547C0BEA915A1178C572AA8F8D2BF598B4_MetadataUsageId); s_Il2CppMethodInitialized = true; } SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_0; memset((&V_0), 0, sizeof(V_0)); { // SurfaceData tempSurfaceData = surface.surfaceData; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0; NullCheck(L_0); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_1 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_0, /*hidden argument*/NULL); V_0 = L_1; // tempSurfaceData.id = surface.surfaceId; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_2 = ___surface0; NullCheck(L_2); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_3 = Surface_get_surfaceId_mAD37AE571E345D3B6850E57137292FE70E6F388B_inline(L_2, /*hidden argument*/NULL); (&V_0)->set_id_0(L_3); // tempSurfaceData.trianglesPerCubicMeter = lodToPcm[(int)lodType]; IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var); Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_4 = SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_inline(/*hidden argument*/NULL); int32_t L_5 = SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C_inline(__this, /*hidden argument*/NULL); NullCheck(L_4); int32_t L_6 = L_5; int32_t L_7 = (L_4)->GetAt(static_cast<il2cpp_array_size_t>(L_6)); (&V_0)->set_trianglesPerCubicMeter_4((((float)((float)L_7)))); // tempSurfaceData.bakeCollider = false; (&V_0)->set_bakeCollider_5((bool)0); // tempSurfaceData.outputMesh = surface.meshFilter; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_8 = ___surface0; NullCheck(L_8); MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_9 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_8, /*hidden argument*/NULL); (&V_0)->set_outputMesh_1(L_9); // surface.surfaceData = tempSurfaceData; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___surface0; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_11 = V_0; NullCheck(L_10); Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_10, L_11, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::ForEachSurfaceInCache(System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase_Surface>) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_ForEachSurfaceInCache_mE2BFDBAD198BBC7314E600477E1209864D8C2F12 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * ___callback0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_ForEachSurfaceInCache_mE2BFDBAD198BBC7314E600477E1209864D8C2F12_MetadataUsageId); s_Il2CppMethodInitialized = true; } Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0; memset((&V_0), 0, sizeof(V_0)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1; memset((&V_1), 0, sizeof(V_1)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2; memset((&V_2), 0, sizeof(V_2)); Exception_t * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); void* __leave_targets_storage = alloca(sizeof(int32_t) * 2); il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage); NO_UNUSED_WARNING (__leave_targets); { // if (callback == null) Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * L_0 = ___callback0; if (L_0) { goto IL_0004; } } { // return; return; } IL_0004: { // if (surfaceObjects == null || surfaceObjects.Count == 0) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); if (!L_1) { goto IL_0019; } } { Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_2 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_2); int32_t L_3 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_2, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var); if (L_3) { goto IL_001a; } } IL_0019: { // return; return; } IL_001a: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_4 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_4); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_5 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_4, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_0 = L_5; } IL_0026: try { // begin try (depth: 1) { goto IL_003d; } IL_0028: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_6 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_1 = L_6; // callback(kvp.Value); Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * L_7 = ___callback0; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_8 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_7); Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63(L_7, L_8, /*hidden argument*/Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63_RuntimeMethod_var); } IL_003d: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) bool L_9 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_9) { goto IL_0028; } } IL_0046: { IL2CPP_LEAVE(0x56, FINALLY_0048); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_0048; } FINALLY_0048: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(72) } // end finally (depth: 1) IL2CPP_CLEANUP(72) { IL2CPP_JUMP_TBL(0x56, IL_0056) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_0056: { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_10 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); NullCheck(L_10); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_11 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_10, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_0 = L_11; } IL_0062: try { // begin try (depth: 1) { goto IL_0088; } IL_0064: { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_12 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_2 = L_12; // if (ShouldRemainActiveWhileBeingRemoved(kvp.Value)) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_13 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); bool L_14 = SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6(__this, L_13, /*hidden argument*/NULL); if (!L_14) { goto IL_0088; } } IL_007b: { // callback(kvp.Value); Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * L_15 = ___callback0; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_16 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_15); Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63(L_15, L_16, /*hidden argument*/Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63_RuntimeMethod_var); } IL_0088: { // foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction) bool L_17 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_17) { goto IL_0064; } } IL_0091: { IL2CPP_LEAVE(0xA1, FINALLY_0093); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_0093; } FINALLY_0093: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(147) } // end finally (depth: 1) IL2CPP_CLEANUP(147) { IL2CPP_JUMP_TBL(0xA1, IL_00a1) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_00a1: { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnResetProperties() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnResetProperties_mD42F9367CEA98C6FABE37B83736BD9C6E405AE5A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnDidApplyAnimationProperties() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnDidApplyAnimationProperties_mDF9C4A11854855CF3707AD567177A009731AE03F (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // OnResetProperties(); VirtActionInvoker0::Invoke(16 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnResetProperties() */, __this); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::Reset() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_Reset_m2DB6F9468DCD37B2364AC0E1638C2D8C16A0B411 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // OnResetProperties(); VirtActionInvoker0::Invoke(16 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnResetProperties() */, __this); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // VolumeType m_VolumeType = VolumeType.AxisAlignedBox; __this->set_m_VolumeType_9(1); // float m_SphereRadius = 2.0f; __this->set_m_SphereRadius_10((2.0f)); // Vector3 m_HalfBoxExtents = Vector3.one * 4.0f; IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = Vector3_get_one_mA11B83037CB269C6076CBCF754E24C8F3ACEC2AB(/*hidden argument*/NULL); Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = Vector3_op_Multiply_m1C5F07723615156ACF035D88A1280A9E8F35A04E(L_0, (4.0f), /*hidden argument*/NULL); __this->set_m_HalfBoxExtents_11(L_1); // LODType m_LodType = LODType.Medium; __this->set_m_LodType_12(1); // int m_NumUpdatesBeforeRemoval = 10; __this->set_m_NumUpdatesBeforeRemoval_13(((int32_t)10)); // float m_SecondsBetweenUpdates = 2.5f; __this->set_m_SecondsBetweenUpdates_14((2.5f)); // private Dictionary<int, Surface> m_PendingSurfacesForEviction = new Dictionary<int, Surface>(); Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_2 = (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *)il2cpp_codegen_object_new(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10_il2cpp_TypeInfo_var); Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA(L_2, /*hidden argument*/Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA_RuntimeMethod_var); __this->set_m_PendingSurfacesForEviction_23(L_2); // private List<int> m_SurfacesToRemoveFromDict = new List<int>(); List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_3 = (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *)il2cpp_codegen_object_new(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226_il2cpp_TypeInfo_var); List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4(L_3, /*hidden argument*/List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4_RuntimeMethod_var); __this->set_m_SurfacesToRemoveFromDict_24(L_3); MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97(__this, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase::.cctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase__cctor_mDE92F7F277D10B7F98485323B7E58847C05CB24B (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase__cctor_mDE92F7F277D10B7F98485323B7E58847C05CB24B_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // static readonly float s_MovementUpdateThresholdSqr = 0.0001f; ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->set_s_MovementUpdateThresholdSqr_4((0.0001f)); // static readonly float s_EvictionUpdateTickThresholdSqr = 100.0f; // 10 * 10 ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->set_s_EvictionUpdateTickThresholdSqr_5((100.0f)); // static int s_ObserverIdCounter = 0; ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->set_s_ObserverIdCounter_6(0); // private static readonly int[] s_LodToPcm = { 2000, 750, 200 }; Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_0 = (Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)SZArrayNew(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83_il2cpp_TypeInfo_var, (uint32_t)3); Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_1 = L_0; RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF L_2 = { reinterpret_cast<intptr_t> (U3CPrivateImplementationDetailsU3E_tBE168E59272B45F7A94B1F451A29AE3BCD661A15____D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0_FieldInfo_var) }; RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A((RuntimeArray *)(RuntimeArray *)L_1, L_2, /*hidden argument*/NULL); ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->set_s_LodToPcm_26(L_1); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.XR.WSA.SurfaceId UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_surfaceId() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF Surface_get_surfaceId_mAD37AE571E345D3B6850E57137292FE70E6F388B (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public SurfaceId surfaceId { get; set; } SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_0 = __this->get_U3CsurfaceIdU3Ek__BackingField_0(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_surfaceId(UnityEngine.XR.WSA.SurfaceId) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_surfaceId_m0B776CEC7A925E7780973C2E0D787C58B28439F1 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___value0, const RuntimeMethod* method) { { // public SurfaceId surfaceId { get; set; } SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_0 = ___value0; __this->set_U3CsurfaceIdU3Ek__BackingField_0(L_0); return; } } // System.DateTime UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_updateTime() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 Surface_get_updateTime_m580ACCD9FDFE2AFE4A982ED12B8B1FC47FACE842 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public System.DateTime updateTime { get; set; } DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_0 = __this->get_U3CupdateTimeU3Ek__BackingField_1(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_updateTime(System.DateTime) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_updateTime_m8FDDAF318259294A7184AE968CBC52051BE225F2 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___value0, const RuntimeMethod* method) { { // public System.DateTime updateTime { get; set; } DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_0 = ___value0; __this->set_U3CupdateTimeU3Ek__BackingField_1(L_0); return; } } // UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_gameObject() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public GameObject gameObject { get; set; } GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_U3CgameObjectU3Ek__BackingField_2(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_gameObject(UnityEngine.GameObject) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_gameObject_mA485C86A72C7B313E831FD5F2853338DF24C87F4 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method) { { // public GameObject gameObject { get; set; } GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = ___value0; __this->set_U3CgameObjectU3Ek__BackingField_2(L_0); return; } } // UnityEngine.XR.WSA.SurfaceData UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_surfaceData() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public SurfaceData surfaceData { get; set; } SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = __this->get_U3CsurfaceDataU3Ek__BackingField_3(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_surfaceData(UnityEngine.XR.WSA.SurfaceData) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___value0, const RuntimeMethod* method) { { // public SurfaceData surfaceData { get; set; } SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = ___value0; __this->set_U3CsurfaceDataU3Ek__BackingField_3(L_0); return; } } // System.Int32 UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_remainingUpdatesToLive() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Surface_get_remainingUpdatesToLive_m5D45BD30D4CCCAF01FDC1E4D6ACA402AF2E5C1B4 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public int remainingUpdatesToLive { get; set; } int32_t L_0 = __this->get_U3CremainingUpdatesToLiveU3Ek__BackingField_4(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_remainingUpdatesToLive(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, int32_t ___value0, const RuntimeMethod* method) { { // public int remainingUpdatesToLive { get; set; } int32_t L_0 = ___value0; __this->set_U3CremainingUpdatesToLiveU3Ek__BackingField_4(L_0); return; } } // System.Boolean UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_awaitingBake() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Surface_get_awaitingBake_m3B199586E0066144D8986804B73E5BDE97FEEB40 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public bool awaitingBake { get; set; } bool L_0 = __this->get_U3CawaitingBakeU3Ek__BackingField_5(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_awaitingBake(System.Boolean) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, bool ___value0, const RuntimeMethod* method) { { // public bool awaitingBake { get; set; } bool L_0 = ___value0; __this->set_U3CawaitingBakeU3Ek__BackingField_5(L_0); return; } } // UnityEngine.MeshFilter UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_meshFilter() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public MeshFilter meshFilter { get; set; } MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_0 = __this->get_U3CmeshFilterU3Ek__BackingField_6(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_meshFilter(UnityEngine.MeshFilter) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_meshFilter_m09D0BD0AB6A36F2DB45400E12EE2D6CCE0FDF7A1 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___value0, const RuntimeMethod* method) { { // public MeshFilter meshFilter { get; set; } MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_0 = ___value0; __this->set_U3CmeshFilterU3Ek__BackingField_6(L_0); return; } } // UnityEngine.MeshRenderer UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_meshRenderer() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public MeshRenderer meshRenderer { get; set; } MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_0 = __this->get_U3CmeshRendererU3Ek__BackingField_7(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_meshRenderer(UnityEngine.MeshRenderer) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___value0, const RuntimeMethod* method) { { // public MeshRenderer meshRenderer { get; set; } MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_0 = ___value0; __this->set_U3CmeshRendererU3Ek__BackingField_7(L_0); return; } } // UnityEngine.MeshCollider UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_meshCollider() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public MeshCollider meshCollider { get; set; } MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_0 = __this->get_U3CmeshColliderU3Ek__BackingField_8(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_meshCollider(UnityEngine.MeshCollider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_meshCollider_m2928D4F59FDD43EDBA2C0A46D5B66BFFB80DAD5B (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___value0, const RuntimeMethod* method) { { // public MeshCollider meshCollider { get; set; } MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_0 = ___value0; __this->set_U3CmeshColliderU3Ek__BackingField_8(L_0); return; } } // UnityEngine.XR.WSA.WorldAnchor UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_worldAnchor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public WorldAnchor worldAnchor { get; set; } WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_0 = __this->get_U3CworldAnchorU3Ek__BackingField_9(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_worldAnchor(UnityEngine.XR.WSA.WorldAnchor) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_worldAnchor_m89D7EAB5602CF873669A9D4FFAC3D3B8528C3CEE (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___value0, const RuntimeMethod* method) { { // public WorldAnchor worldAnchor { get; set; } WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_0 = ___value0; __this->set_U3CworldAnchorU3Ek__BackingField_9(L_0); return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface__ctor_m5034101390586B7DF34E820D9CC592A45C6D5D01 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyCallback__ctor_m34CF9585F05EE122494CB1FC3151AC877FED820B (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback::Invoke(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyCallback_Invoke_mD9CA9D1746AF5AE4D247404CF4E49DA5FEC086A0 (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___requester0, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData1, bool ___outputWritten2, float ___elapsedBakeTimeSeconds3, const RuntimeMethod* method) { DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* delegateArrayToInvoke = __this->get_delegates_11(); Delegate_t** delegatesToInvoke; il2cpp_array_size_t length; if (delegateArrayToInvoke != NULL) { length = delegateArrayToInvoke->max_length; delegatesToInvoke = reinterpret_cast<Delegate_t**>(delegateArrayToInvoke->GetAddressAtUnchecked(0)); } else { length = 1; delegatesToInvoke = reinterpret_cast<Delegate_t**>(&__this); } for (il2cpp_array_size_t i = 0; i < length; i++) { Delegate_t* currentDelegate = delegatesToInvoke[i]; Il2CppMethodPointer targetMethodPointer = currentDelegate->get_method_ptr_0(); RuntimeObject* targetThis = currentDelegate->get_m_target_2(); RuntimeMethod* targetMethod = (RuntimeMethod*)(currentDelegate->get_method_3()); if (!il2cpp_codegen_method_is_virtual(targetMethod)) { il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); } bool ___methodIsStatic = MethodIsStatic(targetMethod); int ___parameterCount = il2cpp_codegen_method_parameter_count(targetMethod); if (___methodIsStatic) { if (___parameterCount == 4) { // open typedef void (*FunctionPointerType) (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3, targetMethod); } else { // closed typedef void (*FunctionPointerType) (void*, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3, targetMethod); } } else if (___parameterCount != 4) { // open if (il2cpp_codegen_method_is_virtual(targetMethod) && !il2cpp_codegen_object_is_of_sealed_type(targetThis) && il2cpp_codegen_delegate_has_invoker((Il2CppDelegate*)__this)) { if (il2cpp_codegen_method_is_generic_instance(targetMethod)) { if (il2cpp_codegen_method_is_interface_method(targetMethod)) GenericInterfaceActionInvoker3< SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(targetMethod, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3); else GenericVirtActionInvoker3< SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(targetMethod, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3); } else { if (il2cpp_codegen_method_is_interface_method(targetMethod)) InterfaceActionInvoker3< SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), il2cpp_codegen_method_get_declaring_type(targetMethod), ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3); else VirtActionInvoker3< SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3); } } else { typedef void (*FunctionPointerType) (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3, targetMethod); } } else { // closed if (il2cpp_codegen_method_is_virtual(targetMethod) && !il2cpp_codegen_object_is_of_sealed_type(targetThis) && il2cpp_codegen_delegate_has_invoker((Il2CppDelegate*)__this)) { if (targetThis == NULL) { typedef void (*FunctionPointerType) (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3, targetMethod); } else if (il2cpp_codegen_method_is_generic_instance(targetMethod)) { if (il2cpp_codegen_method_is_interface_method(targetMethod)) GenericInterfaceActionInvoker4< SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(targetMethod, targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3); else GenericVirtActionInvoker4< SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(targetMethod, targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3); } else { if (il2cpp_codegen_method_is_interface_method(targetMethod)) InterfaceActionInvoker4< SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), il2cpp_codegen_method_get_declaring_type(targetMethod), targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3); else VirtActionInvoker4< SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3); } } else { typedef void (*FunctionPointerType) (void*, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3, targetMethod); } } } } // System.IAsyncResult UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback::BeginInvoke(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single,System.AsyncCallback,System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* SurfaceDataReadyCallback_BeginInvoke_mB767F35E7B337B4AC98E4294929A4E0262A964DB (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___requester0, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData1, bool ___outputWritten2, float ___elapsedBakeTimeSeconds3, AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4 * ___callback4, RuntimeObject * ___object5, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SurfaceDataReadyCallback_BeginInvoke_mB767F35E7B337B4AC98E4294929A4E0262A964DB_MetadataUsageId); s_Il2CppMethodInitialized = true; } void *__d_args[5] = {0}; __d_args[0] = ___requester0; __d_args[1] = Box(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_il2cpp_TypeInfo_var, &___bakedData1); __d_args[2] = Box(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_il2cpp_TypeInfo_var, &___outputWritten2); __d_args[3] = Box(Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1_il2cpp_TypeInfo_var, &___elapsedBakeTimeSeconds3); return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback4, (RuntimeObject*)___object5); } // System.Void UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback::EndInvoke(System.IAsyncResult) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyCallback_EndInvoke_m118FFFA0EFF39D860366ACDF1FD91B7AC9F55051 (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Int32 UnityEngine.XR.WSA.SpatialMappingCollider::get_layer() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method) { { // return m_Layer; int32_t L_0 = __this->get_m_Layer_28(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::set_layer(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_set_layer_m520AEB5C0C3BA60A2A2D575A855E434FE7880E99 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, int32_t ___value0, const RuntimeMethod* method) { { // m_Layer = value; int32_t L_0 = ___value0; __this->set_m_Layer_28(L_0); // ApplyPropertiesToCachedSurfaces(); SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F(__this, /*hidden argument*/NULL); // } return; } } // UnityEngine.PhysicMaterial UnityEngine.XR.WSA.SpatialMappingCollider::get_material() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method) { { // return m_Material; PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_0 = __this->get_m_Material_29(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::set_material(UnityEngine.PhysicMaterial) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_set_material_m6A2C956014D43440480A2D68997C166DDE2F6220 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * ___value0, const RuntimeMethod* method) { { // m_Material = value; PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_0 = ___value0; __this->set_m_Material_29(L_0); // ApplyPropertiesToCachedSurfaces(); SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F(__this, /*hidden argument*/NULL); // } return; } } // System.Boolean UnityEngine.XR.WSA.SpatialMappingCollider::get_enableCollisions() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingCollider_get_enableCollisions_m7F553859CFEE41A8A022EC44E5132A57EB557164 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method) { { // return m_EnableCollisions; bool L_0 = __this->get_m_EnableCollisions_30(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::set_enableCollisions(System.Boolean) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_set_enableCollisions_m8E888DD954EE93E7672DA14F0ADFA52CACACB1DD (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, bool ___value0, const RuntimeMethod* method) { { // m_EnableCollisions = value; bool L_0 = ___value0; __this->set_m_EnableCollisions_30(L_0); // ApplyPropertiesToCachedSurfaces(); SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::Awake() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_Awake_mD0F91D9DF846C1C8CE1F5D602FC43F065A7E1F10 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method) { { // bakePhysics = true; SpatialMappingBase_set_bakePhysics_m33D62027F99886807A3AD366148A4605E0DF45BB_inline(__this, (bool)1, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::OnSurfaceDataReady(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_OnSurfaceDataReady_m091E11BE2C56B1B6DEEF271012886CE195B90950 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___requester0, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData1, bool ___outputWritten2, float ___elapsedBakeTimeSeconds3, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingCollider_OnSurfaceDataReady_m091E11BE2C56B1B6DEEF271012886CE195B90950_MetadataUsageId); s_Il2CppMethodInitialized = true; } Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_0 = NULL; { // if (!surfaceObjects.TryGetValue(bakedData.id.handle, out surfaceData)) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_1 = ___bakedData1; SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_2 = L_1.get_id_0(); int32_t L_3 = L_2.get_handle_0(); NullCheck(L_0); bool L_4 = Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8(L_0, L_3, (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D **)(&V_0), /*hidden argument*/Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8_RuntimeMethod_var); if (L_4) { goto IL_001b; } } { // return; return; } IL_001b: { // surfaceData.awaitingBake = false; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_5 = V_0; NullCheck(L_5); Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline(L_5, (bool)0, /*hidden argument*/NULL); // if (!outputWritten) bool L_6 = ___outputWritten2; if (L_6) { goto IL_0026; } } { // return; return; } IL_0026: { // if (surfaceData.gameObject == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = V_0; NullCheck(L_7); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_7, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_9 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_8, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_9) { goto IL_0054; } } { // Debug.LogError(string.Format("A SpatialMappingCollider component can not apply baked data to the surface with id \"{0}\" because its GameObject is null.", bakedData.id.handle)); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_10 = ___bakedData1; SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_11 = L_10.get_id_0(); int32_t L_12 = L_11.get_handle_0(); int32_t L_13 = L_12; RuntimeObject * L_14 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_13); String_t* L_15 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteralDD1FA74A105812D05EDBBA6CA1731A9A0C697ED4, L_14, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var); Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(L_15, /*hidden argument*/NULL); // return; return; } IL_0054: { // if (bakedData.outputCollider == null) SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_16 = ___bakedData1; MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_17 = L_16.get_outputCollider_3(); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_18 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_17, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_18) { goto IL_0063; } } { // return; return; } IL_0063: { // if (requester != this) SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_19 = ___requester0; IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_20 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_19, __this, /*hidden argument*/NULL); if (!L_20) { goto IL_0074; } } { // CloneBakedComponents(bakedData, surfaceData); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_21 = ___bakedData1; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_22 = V_0; SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC(__this, L_21, L_22, /*hidden argument*/NULL); } IL_0074: { // bakedData.outputCollider.gameObject.layer = layer; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_23 = ___bakedData1; MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_24 = L_23.get_outputCollider_3(); NullCheck(L_24); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_25 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_24, /*hidden argument*/NULL); int32_t L_26 = SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174_inline(__this, /*hidden argument*/NULL); NullCheck(L_25); GameObject_set_layer_mDAC8037FCFD0CE62DB66004C4342EA20CF604907(L_25, L_26, /*hidden argument*/NULL); // if (material != null) PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_27 = SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline(__this, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_28 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_27, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_28) { goto IL_00a9; } } { // bakedData.outputCollider.material = material; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_29 = ___bakedData1; MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_30 = L_29.get_outputCollider_3(); PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_31 = SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline(__this, /*hidden argument*/NULL); NullCheck(L_30); Collider_set_material_m2978E803DF20381466E0BD1F41F759DA015C5E74(L_30, L_31, /*hidden argument*/NULL); } IL_00a9: { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::OnBeginSurfaceEviction(System.Boolean,UnityEngine.XR.WSA.SpatialMappingBase_Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_OnBeginSurfaceEviction_m21A70B520DA8C193B777EE78E39AE86AE103CACF (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, bool ___shouldBeActiveWhileRemoved0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surfaceData1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingCollider_OnBeginSurfaceEviction_m21A70B520DA8C193B777EE78E39AE86AE103CACF_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // if (surfaceData.gameObject == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surfaceData1; NullCheck(L_0); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_0, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_2 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_2) { goto IL_000f; } } { // return; return; } IL_000f: { // if (surfaceData.meshCollider == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_3 = ___surfaceData1; NullCheck(L_3); MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_4 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_3, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_5 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_4, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_5) { goto IL_001e; } } { // return; return; } IL_001e: { // surfaceData.meshCollider.enabled = shouldBeActiveWhileRemoved; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = ___surfaceData1; NullCheck(L_6); MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_7 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_6, /*hidden argument*/NULL); bool L_8 = ___shouldBeActiveWhileRemoved0; NullCheck(L_7); Collider_set_enabled_mF84DE8B0C8CAF33ACDB7F29BC055D9C8CFACB57B(L_7, L_8, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::UpdateSurfaceData(UnityEngine.XR.WSA.SpatialMappingBase_Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_UpdateSurfaceData_mBC5EB61B9080BAB2C3D645A22A30C907AD5972CD (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method) { SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_0; memset((&V_0), 0, sizeof(V_0)); { // base.UpdateSurfaceData(surface); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0; SpatialMappingBase_UpdateSurfaceData_m54007C547C0BEA915A1178C572AA8F8D2BF598B4(__this, L_0, /*hidden argument*/NULL); // SurfaceData tempSurfaceData = surface.surfaceData; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_1 = ___surface0; NullCheck(L_1); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_2 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_1, /*hidden argument*/NULL); V_0 = L_2; // tempSurfaceData.bakeCollider = bakePhysics; bool L_3 = SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA_inline(__this, /*hidden argument*/NULL); (&V_0)->set_bakeCollider_5(L_3); // tempSurfaceData.outputCollider = surface.meshCollider; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_4 = ___surface0; NullCheck(L_4); MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_5 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_4, /*hidden argument*/NULL); (&V_0)->set_outputCollider_3(L_5); // surface.surfaceData = tempSurfaceData; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = ___surface0; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_7 = V_0; NullCheck(L_6); Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_6, L_7, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::AddRequiredComponentsForBaking(UnityEngine.XR.WSA.SpatialMappingBase_Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_AddRequiredComponentsForBaking_m713A141669C87A26C040C213FBDC53A0AFEAB7BC (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingCollider_AddRequiredComponentsForBaking_m713A141669C87A26C040C213FBDC53A0AFEAB7BC_MetadataUsageId); s_Il2CppMethodInitialized = true; } SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_0; memset((&V_0), 0, sizeof(V_0)); { // base.AddRequiredComponentsForBaking(surface); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0; SpatialMappingBase_AddRequiredComponentsForBaking_m39F67F97247869F12E9E806B6D21AB100AA9F7EA(__this, L_0, /*hidden argument*/NULL); // if (surface.meshCollider == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_1 = ___surface0; NullCheck(L_1); MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_2 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_1, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_3 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_2, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_3) { goto IL_0026; } } { // surface.meshCollider = surface.gameObject.AddComponent<MeshCollider>() as MeshCollider; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_4 = ___surface0; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_5 = ___surface0; NullCheck(L_5); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_5, /*hidden argument*/NULL); NullCheck(L_6); MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_7 = GameObject_AddComponent_TisMeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE_m38A789A66BD8A824B7D5FF46C20C4BD3CE0F3B3C(L_6, /*hidden argument*/GameObject_AddComponent_TisMeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE_m38A789A66BD8A824B7D5FF46C20C4BD3CE0F3B3C_RuntimeMethod_var); NullCheck(L_4); Surface_set_meshCollider_m2928D4F59FDD43EDBA2C0A46D5B66BFFB80DAD5B_inline(L_4, L_7, /*hidden argument*/NULL); } IL_0026: { // SurfaceData tempSurfaceData = surface.surfaceData; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_8 = ___surface0; NullCheck(L_8); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_9 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_8, /*hidden argument*/NULL); V_0 = L_9; // tempSurfaceData.outputCollider = surface.meshCollider; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___surface0; NullCheck(L_10); MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_11 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_10, /*hidden argument*/NULL); (&V_0)->set_outputCollider_3(L_11); // surface.surfaceData = tempSurfaceData; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_12 = ___surface0; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_13 = V_0; NullCheck(L_12); Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_12, L_13, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::ApplyPropertiesToCachedSurfaces() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // if (material == null) PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_0 = SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline(__this, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_1) { goto IL_000f; } } { // return; return; } IL_000f: { // ForEachSurfaceInCache(delegate(SpatialMappingBase.Surface surface) // { // if (surface.meshCollider == null) // { // return; // } // // if (surface.gameObject != null) // { // if (surface.gameObject.layer != layer) // { // surface.gameObject.layer = layer; // } // } // // if (surface.meshCollider.material != material) // { // surface.meshCollider.material = material; // } // // if (surface.meshCollider.enabled != enableCollisions) // { // surface.meshCollider.enabled = enableCollisions; // } // }); Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * L_2 = (Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 *)il2cpp_codegen_object_new(Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4_il2cpp_TypeInfo_var); Action_1__ctor_m03B4ABDDD2484F8DD29BC579D18F63D2D69B8CBC(L_2, __this, (intptr_t)((intptr_t)SpatialMappingCollider_U3CApplyPropertiesToCachedSurfacesU3Eb__17_0_m4986DE9A169D6A444E7FD3CAD56479EFB9E761AE_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_m03B4ABDDD2484F8DD29BC579D18F63D2D69B8CBC_RuntimeMethod_var); SpatialMappingBase_ForEachSurfaceInCache_mE2BFDBAD198BBC7314E600477E1209864D8C2F12(__this, L_2, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::OnResetProperties() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_OnResetProperties_m357A522F32322A1A4F06A66F085B4E03DE456312 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method) { { // base.OnResetProperties(); SpatialMappingBase_OnResetProperties_mD42F9367CEA98C6FABE37B83736BD9C6E405AE5A(__this, /*hidden argument*/NULL); // ApplyPropertiesToCachedSurfaces(); SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider__ctor_mF5B1E8581795F2235B94D2192D5370FE2691E781 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingCollider__ctor_mF5B1E8581795F2235B94D2192D5370FE2691E781_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // bool m_EnableCollisions = true; __this->set_m_EnableCollisions_30((bool)1); IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var); SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448(__this, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingCollider::<ApplyPropertiesToCachedSurfaces>b__17_0(UnityEngine.XR.WSA.SpatialMappingBase_Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_U3CApplyPropertiesToCachedSurfacesU3Eb__17_0_m4986DE9A169D6A444E7FD3CAD56479EFB9E761AE (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingCollider_U3CApplyPropertiesToCachedSurfacesU3Eb__17_0_m4986DE9A169D6A444E7FD3CAD56479EFB9E761AE_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // if (surface.meshCollider == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0; NullCheck(L_0); MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_1 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_0, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_2 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_2) { goto IL_000f; } } { // return; return; } IL_000f: { // if (surface.gameObject != null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_3 = ___surface0; NullCheck(L_3); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_4 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_3, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_5 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_4, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_5) { goto IL_0041; } } { // if (surface.gameObject.layer != layer) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = ___surface0; NullCheck(L_6); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_6, /*hidden argument*/NULL); NullCheck(L_7); int32_t L_8 = GameObject_get_layer_m0DE90D8A3D3AA80497A3A80FBEAC2D207C16B9C8(L_7, /*hidden argument*/NULL); int32_t L_9 = SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174_inline(__this, /*hidden argument*/NULL); if ((((int32_t)L_8) == ((int32_t)L_9))) { goto IL_0041; } } { // surface.gameObject.layer = layer; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___surface0; NullCheck(L_10); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_11 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_10, /*hidden argument*/NULL); int32_t L_12 = SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174_inline(__this, /*hidden argument*/NULL); NullCheck(L_11); GameObject_set_layer_mDAC8037FCFD0CE62DB66004C4342EA20CF604907(L_11, L_12, /*hidden argument*/NULL); } IL_0041: { // if (surface.meshCollider.material != material) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_13 = ___surface0; NullCheck(L_13); MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_14 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_13, /*hidden argument*/NULL); NullCheck(L_14); PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_15 = Collider_get_material_m4F6B81A3CD1B3B579579EF2DBA73CEF29072766A(L_14, /*hidden argument*/NULL); PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_16 = SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline(__this, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_17 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_15, L_16, /*hidden argument*/NULL); if (!L_17) { goto IL_006a; } } { // surface.meshCollider.material = material; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_18 = ___surface0; NullCheck(L_18); MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_19 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_18, /*hidden argument*/NULL); PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_20 = SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline(__this, /*hidden argument*/NULL); NullCheck(L_19); Collider_set_material_m2978E803DF20381466E0BD1F41F759DA015C5E74(L_19, L_20, /*hidden argument*/NULL); } IL_006a: { // if (surface.meshCollider.enabled != enableCollisions) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_21 = ___surface0; NullCheck(L_21); MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_22 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_21, /*hidden argument*/NULL); NullCheck(L_22); bool L_23 = Collider_get_enabled_mED644D98C6AC2DF95BD86145E8D31AD7081C76EB(L_22, /*hidden argument*/NULL); bool L_24 = SpatialMappingCollider_get_enableCollisions_m7F553859CFEE41A8A022EC44E5132A57EB557164_inline(__this, /*hidden argument*/NULL); if ((((int32_t)L_23) == ((int32_t)L_24))) { goto IL_008e; } } { // surface.meshCollider.enabled = enableCollisions; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = ___surface0; NullCheck(L_25); MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_26 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_25, /*hidden argument*/NULL); bool L_27 = SpatialMappingCollider_get_enableCollisions_m7F553859CFEE41A8A022EC44E5132A57EB557164_inline(__this, /*hidden argument*/NULL); NullCheck(L_26); Collider_set_enabled_mF84DE8B0C8CAF33ACDB7F29BC055D9C8CFACB57B(L_26, L_27, /*hidden argument*/NULL); } IL_008e: { // }); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.XR.WSA.SpatialMappingContext::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext__ctor_mE213514204AEFCDC1130E4496A75CAC9C190EEC9 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingContext__ctor_mE213514204AEFCDC1130E4496A75CAC9C190EEC9_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // private List<SMComponentRecord> m_Components = new List<SMComponentRecord>(); // registered component list List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_0 = (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *)il2cpp_codegen_object_new(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0_il2cpp_TypeInfo_var); List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52(L_0, /*hidden argument*/List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52_RuntimeMethod_var); __this->set_m_Components_2(L_0); // private SMBakeRequest[] m_InFlightRequests = new SMBakeRequest[kIdealInFlightSurfaceCount]; // in-flight requests SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_1 = (SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD*)(SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD*)SZArrayNew(SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD_il2cpp_TypeInfo_var, (uint32_t)2); __this->set_m_InFlightRequests_3(L_1); // private SpatialMappingContext() {} Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL); // private SpatialMappingContext() {} return; } } // UnityEngine.XR.WSA.SpatialMappingContext UnityEngine.XR.WSA.SpatialMappingContext::get_Instance() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010 (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // get { return instance; } IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var); SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_0 = ((SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var))->get_instance_0(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingContext::RegisterComponent(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback,UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback,UnityEngine.XR.WSA.SurfaceObserver) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent0, SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___onDataReady1, GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___getHighestPri2, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___observer3, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_MetadataUsageId); s_Il2CppMethodInitialized = true; } U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * V_0 = NULL; SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C V_1; memset((&V_1), 0, sizeof(V_1)); { U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * L_0 = (U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692_il2cpp_TypeInfo_var); U3CU3Ec__DisplayClass12_0__ctor_mF948151007C0E6D8E5A56D07390BB18A0EFEC22E(L_0, /*hidden argument*/NULL); V_0 = L_0; U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * L_1 = V_0; SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_2 = ___smComponent0; NullCheck(L_1); L_1->set_smComponent_0(L_2); // if (smComponent == null) U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * L_3 = V_0; NullCheck(L_3); SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_4 = L_3->get_smComponent_0(); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_5 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_4, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_5) { goto IL_0026; } } { // throw new ArgumentNullException("smComponent"); ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * L_6 = (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD *)il2cpp_codegen_object_new(ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var); ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED(L_6, _stringLiteral85EE1AFFF61EEAA487746F3F8C1685BB1C03665C, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, NULL, SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var); } IL_0026: { // if (onDataReady == null) SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_7 = ___onDataReady1; if (L_7) { goto IL_0034; } } { // throw new ArgumentNullException("onDataReady"); ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * L_8 = (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD *)il2cpp_codegen_object_new(ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var); ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED(L_8, _stringLiteralB782D9835143821E697B67407CCFB082FE6322A9, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_8, NULL, SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var); } IL_0034: { // if (getHighestPri == null) GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_9 = ___getHighestPri2; if (L_9) { goto IL_0042; } } { // throw new ArgumentNullException("getHighestPri"); ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * L_10 = (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD *)il2cpp_codegen_object_new(ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var); ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED(L_10, _stringLiteralA5720A5DE163F01678ACB0606AF0EEED421C94EB, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, NULL, SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var); } IL_0042: { // if (observer == null) SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_11 = ___observer3; if (L_11) { goto IL_0051; } } { // throw new ArgumentNullException("observer"); ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * L_12 = (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD *)il2cpp_codegen_object_new(ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var); ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED(L_12, _stringLiteral307527C227AC648BB119BCB457EBB8466E79827C, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var); } IL_0051: { // SMComponentRecord findResult = m_Components.Find(record => record.m_Component == smComponent); List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_13 = __this->get_m_Components_2(); U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * L_14 = V_0; Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * L_15 = (Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD *)il2cpp_codegen_object_new(Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD_il2cpp_TypeInfo_var); Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972(L_15, L_14, (intptr_t)((intptr_t)U3CU3Ec__DisplayClass12_0_U3CRegisterComponentU3Eb__0_m1F1967D704E5FE3AD22823A3F582232B7CB9E811_RuntimeMethod_var), /*hidden argument*/Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972_RuntimeMethod_var); NullCheck(L_13); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_16 = List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52(L_13, L_15, /*hidden argument*/List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52_RuntimeMethod_var); // if (findResult.m_Component != null) SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_17 = L_16.get_m_Component_0(); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_18 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_17, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_18) { goto IL_0080; } } { // throw new ArgumentException("RegisterComponent on a component already registered!"); ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 * L_19 = (ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 *)il2cpp_codegen_object_new(ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1_il2cpp_TypeInfo_var); ArgumentException__ctor_m9A85EF7FEFEC21DDD525A67E831D77278E5165B7(L_19, _stringLiteral44A541D01189AFFA834A25E0A93A328341730C75, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_19, NULL, SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var); } IL_0080: { // rec.m_Component = smComponent; U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * L_20 = V_0; NullCheck(L_20); SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_21 = L_20->get_smComponent_0(); (&V_1)->set_m_Component_0(L_21); // rec.m_OnDataReady = onDataReady; SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_22 = ___onDataReady1; (&V_1)->set_m_OnDataReady_1(L_22); // rec.m_GetHighestPri = getHighestPri; GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_23 = ___getHighestPri2; (&V_1)->set_m_GetHighestPri_2(L_23); // rec.m_SurfaceObserver = observer; SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_24 = ___observer3; (&V_1)->set_m_SurfaceObserver_3(L_24); // m_Components.Add(rec); List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_25 = __this->get_m_Components_2(); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_26 = V_1; NullCheck(L_25); List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009(L_25, L_26, /*hidden argument*/List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009_RuntimeMethod_var); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingContext::DeregisterComponent(UnityEngine.XR.WSA.SpatialMappingBase) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF_MetadataUsageId); s_Il2CppMethodInitialized = true; } U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * V_0 = NULL; { U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * L_0 = (U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89_il2cpp_TypeInfo_var); U3CU3Ec__DisplayClass13_0__ctor_m8F2D1733A044CAB323EC721F55EF8CF934305373(L_0, /*hidden argument*/NULL); V_0 = L_0; U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * L_1 = V_0; SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_2 = ___smComponent0; NullCheck(L_1); L_1->set_smComponent_0(L_2); // int removeCount = m_Components.RemoveAll(record => record.m_Component == smComponent); List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_3 = __this->get_m_Components_2(); U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * L_4 = V_0; Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * L_5 = (Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD *)il2cpp_codegen_object_new(Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD_il2cpp_TypeInfo_var); Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972(L_5, L_4, (intptr_t)((intptr_t)U3CU3Ec__DisplayClass13_0_U3CDeregisterComponentU3Eb__0_m531DFED41F5A4968FD1E2672AA38C55D49452F22_RuntimeMethod_var), /*hidden argument*/Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972_RuntimeMethod_var); NullCheck(L_3); int32_t L_6 = List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10(L_3, L_5, /*hidden argument*/List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10_RuntimeMethod_var); // if (removeCount == 0) if (L_6) { goto IL_0031; } } { // throw new ArgumentException("DeregisterComponent for a component not registered!"); ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 * L_7 = (ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 *)il2cpp_codegen_object_new(ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1_il2cpp_TypeInfo_var); ArgumentException__ctor_m9A85EF7FEFEC21DDD525A67E831D77278E5165B7(L_7, _stringLiteral3D9A40DDD9AF3D33ED1C157EA10B0DD27C405802, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF_RuntimeMethod_var); } IL_0031: { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingContext::OnSurfaceDataReady(UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_OnSurfaceDataReady_m504770F8B83EB20DF9020AAE149461207F847D4C (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___sd0, bool ___outputWritten1, float ___elapsedBakeTimeSeconds2, const RuntimeMethod* method) { int32_t V_0 = 0; { // int inFlightIdx = GetInFlightIndexFromSD(sd); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = ___sd0; int32_t L_1 = SpatialMappingContext_GetInFlightIndexFromSD_mD5589ADEDEB5864958872B01F3668CEE8066F9D9(__this, L_0, /*hidden argument*/NULL); V_0 = L_1; // PropagateDataReadyEventToComponents(sd, outputWritten, elapsedBakeTimeSeconds, inFlightIdx); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_2 = ___sd0; bool L_3 = ___outputWritten1; float L_4 = ___elapsedBakeTimeSeconds2; int32_t L_5 = V_0; SpatialMappingContext_PropagateDataReadyEventToComponents_m16907610BA5CF7D52CF280FD949E783E9ECFD5CA(__this, L_2, L_3, L_4, L_5, /*hidden argument*/NULL); // UpdateInFlightRecords(inFlightIdx, elapsedBakeTimeSeconds); int32_t L_6 = V_0; float L_7 = ___elapsedBakeTimeSeconds2; SpatialMappingContext_UpdateInFlightRecords_mB8AD8D918F398F51B66087489675B921FC57BD21(__this, L_6, L_7, /*hidden argument*/NULL); // RequestMeshPriorityFromComponents(); SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705(__this, /*hidden argument*/NULL); // } return; } } // System.Int32 UnityEngine.XR.WSA.SpatialMappingContext::GetInFlightIndexFromSD(UnityEngine.XR.WSA.SurfaceData) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingContext_GetInFlightIndexFromSD_mD5589ADEDEB5864958872B01F3668CEE8066F9D9 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___sd0, const RuntimeMethod* method) { int32_t V_0 = 0; SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 V_1; memset((&V_1), 0, sizeof(V_1)); { // for (int inFlightIndex = 0; inFlightIndex < m_InFlightRequests.Length; ++inFlightIndex) V_0 = 0; goto IL_005a; } IL_0004: { // SMBakeRequest rq = m_InFlightRequests[inFlightIndex]; SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_0 = __this->get_m_InFlightRequests_3(); int32_t L_1 = V_0; NullCheck(L_0); int32_t L_2 = L_1; SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 L_3 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_2)); V_1 = L_3; // if (rq.m_RequestData.id.handle == sd.id.handle && // rq.m_RequestData.trianglesPerCubicMeter == sd.trianglesPerCubicMeter && // rq.m_RequestData.bakeCollider == sd.bakeCollider) SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 L_4 = V_1; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_5 = L_4.get_m_RequestData_0(); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_6 = L_5.get_id_0(); int32_t L_7 = L_6.get_handle_0(); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_8 = ___sd0; SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_9 = L_8.get_id_0(); int32_t L_10 = L_9.get_handle_0(); if ((!(((uint32_t)L_7) == ((uint32_t)L_10)))) { goto IL_0056; } } { SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 L_11 = V_1; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_12 = L_11.get_m_RequestData_0(); float L_13 = L_12.get_trianglesPerCubicMeter_4(); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_14 = ___sd0; float L_15 = L_14.get_trianglesPerCubicMeter_4(); if ((!(((float)L_13) == ((float)L_15)))) { goto IL_0056; } } { SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 L_16 = V_1; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_17 = L_16.get_m_RequestData_0(); bool L_18 = L_17.get_bakeCollider_5(); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_19 = ___sd0; bool L_20 = L_19.get_bakeCollider_5(); if ((!(((uint32_t)L_18) == ((uint32_t)L_20)))) { goto IL_0056; } } { // return inFlightIndex; int32_t L_21 = V_0; return L_21; } IL_0056: { // for (int inFlightIndex = 0; inFlightIndex < m_InFlightRequests.Length; ++inFlightIndex) int32_t L_22 = V_0; V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_22, (int32_t)1)); } IL_005a: { // for (int inFlightIndex = 0; inFlightIndex < m_InFlightRequests.Length; ++inFlightIndex) int32_t L_23 = V_0; SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_24 = __this->get_m_InFlightRequests_3(); NullCheck(L_24); if ((((int32_t)L_23) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_24)->max_length))))))) { goto IL_0004; } } { // return -1; return (-1); } } // UnityEngine.XR.WSA.SpatialMappingBase UnityEngine.XR.WSA.SpatialMappingContext::GetSMComponentFromInFlightIndex(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * SpatialMappingContext_GetSMComponentFromInFlightIndex_mF28F6A135A6D8C4FA7D76EEB7A98D62714C498F6 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, int32_t ___inFlightIndex0, const RuntimeMethod* method) { { // if (inFlightIndex < 0) int32_t L_0 = ___inFlightIndex0; if ((((int32_t)L_0) >= ((int32_t)0))) { goto IL_0006; } } { // return null; return (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *)NULL; } IL_0006: { // if (m_InFlightRequests == null || // inFlightIndex >= m_InFlightRequests.Length || // m_InFlightRequests[inFlightIndex].IsClear()) SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_1 = __this->get_m_InFlightRequests_3(); if (!L_1) { goto IL_002c; } } { int32_t L_2 = ___inFlightIndex0; SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_3 = __this->get_m_InFlightRequests_3(); NullCheck(L_3); if ((((int32_t)L_2) >= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_3)->max_length))))))) { goto IL_002c; } } { SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_4 = __this->get_m_InFlightRequests_3(); int32_t L_5 = ___inFlightIndex0; NullCheck(L_4); bool L_6 = SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C((SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5))), /*hidden argument*/NULL); if (!L_6) { goto IL_002e; } } IL_002c: { // return null; return (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *)NULL; } IL_002e: { // return m_InFlightRequests[inFlightIndex].m_Requester.m_Component; SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_7 = __this->get_m_InFlightRequests_3(); int32_t L_8 = ___inFlightIndex0; NullCheck(L_7); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * L_9 = ((L_7)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_8)))->get_address_of_m_Requester_1(); SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_10 = L_9->get_m_Component_0(); return L_10; } } // System.Void UnityEngine.XR.WSA.SpatialMappingContext::PropagateDataReadyEventToComponents(UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_PropagateDataReadyEventToComponents_m16907610BA5CF7D52CF280FD949E783E9ECFD5CA (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___sd0, bool ___outputWritten1, float ___elapsedBakeTimeSeconds2, int32_t ___inFlightIndex3, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingContext_PropagateDataReadyEventToComponents_m16907610BA5CF7D52CF280FD949E783E9ECFD5CA_MetadataUsageId); s_Il2CppMethodInitialized = true; } int32_t V_0 = 0; SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * V_1 = NULL; Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 V_2; memset((&V_2), 0, sizeof(V_2)); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C V_3; memset((&V_3), 0, sizeof(V_3)); Exception_t * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); void* __leave_targets_storage = alloca(sizeof(int32_t) * 1); il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage); NO_UNUSED_WARNING (__leave_targets); { // SpatialMappingBase.LODType lod = SpatialMappingBase.GetLODFromTPCM(sd.trianglesPerCubicMeter); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = ___sd0; float L_1 = L_0.get_trianglesPerCubicMeter_4(); IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var); int32_t L_2 = SpatialMappingBase_GetLODFromTPCM_mB942609B9A2BE4201CFF14AD29E3833D04AC17D8((((double)((double)(double)L_1))), /*hidden argument*/NULL); V_0 = L_2; // SpatialMappingBase requester = GetSMComponentFromInFlightIndex(inFlightIndex); int32_t L_3 = ___inFlightIndex3; SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_4 = SpatialMappingContext_GetSMComponentFromInFlightIndex_mF28F6A135A6D8C4FA7D76EEB7A98D62714C498F6(__this, L_3, /*hidden argument*/NULL); V_1 = L_4; // if (outputWritten) bool L_5 = ___outputWritten1; if (!L_5) { goto IL_0078; } } { // foreach (SMComponentRecord comp in m_Components) List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_6 = __this->get_m_Components_2(); NullCheck(L_6); Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 L_7 = List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537(L_6, /*hidden argument*/List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537_RuntimeMethod_var); V_2 = L_7; } IL_0025: try { // begin try (depth: 1) { goto IL_005f; } IL_0027: { // foreach (SMComponentRecord comp in m_Components) SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_8 = Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_inline((Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *)(&V_2), /*hidden argument*/Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_RuntimeMethod_var); V_3 = L_8; // if (comp.m_Component.lodType == lod && comp.m_Component.bakePhysics == sd.bakeCollider) SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_9 = V_3; SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_10 = L_9.get_m_Component_0(); NullCheck(L_10); int32_t L_11 = SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C_inline(L_10, /*hidden argument*/NULL); int32_t L_12 = V_0; if ((!(((uint32_t)L_11) == ((uint32_t)L_12)))) { goto IL_005f; } } IL_003d: { SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_13 = V_3; SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_14 = L_13.get_m_Component_0(); NullCheck(L_14); bool L_15 = SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA_inline(L_14, /*hidden argument*/NULL); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_16 = ___sd0; bool L_17 = L_16.get_bakeCollider_5(); if ((!(((uint32_t)L_15) == ((uint32_t)L_17)))) { goto IL_005f; } } IL_0050: { // comp.m_OnDataReady(requester, sd, outputWritten, elapsedBakeTimeSeconds); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_18 = V_3; SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_19 = L_18.get_m_OnDataReady_1(); SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_20 = V_1; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_21 = ___sd0; bool L_22 = ___outputWritten1; float L_23 = ___elapsedBakeTimeSeconds2; NullCheck(L_19); SurfaceDataReadyCallback_Invoke_mD9CA9D1746AF5AE4D247404CF4E49DA5FEC086A0(L_19, L_20, L_21, L_22, L_23, /*hidden argument*/NULL); } IL_005f: { // foreach (SMComponentRecord comp in m_Components) bool L_24 = Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD((Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *)(&V_2), /*hidden argument*/Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD_RuntimeMethod_var); if (L_24) { goto IL_0027; } } IL_0068: { IL2CPP_LEAVE(0xBD, FINALLY_006a); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_006a; } FINALLY_006a: { // begin finally (depth: 1) Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A((Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *)(&V_2), /*hidden argument*/Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A_RuntimeMethod_var); IL2CPP_END_FINALLY(106) } // end finally (depth: 1) IL2CPP_CLEANUP(106) { IL2CPP_JUMP_TBL(0xBD, IL_00bd) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_0078: { // if (inFlightIndex != -1) int32_t L_25 = ___inFlightIndex3; if ((((int32_t)L_25) == ((int32_t)(-1)))) { goto IL_009e; } } { // m_InFlightRequests[inFlightIndex].m_Requester.m_OnDataReady(requester, sd, outputWritten, elapsedBakeTimeSeconds); SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_26 = __this->get_m_InFlightRequests_3(); int32_t L_27 = ___inFlightIndex3; NullCheck(L_26); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * L_28 = ((L_26)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_27)))->get_address_of_m_Requester_1(); SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_29 = L_28->get_m_OnDataReady_1(); SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_30 = V_1; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_31 = ___sd0; bool L_32 = ___outputWritten1; float L_33 = ___elapsedBakeTimeSeconds2; NullCheck(L_29); SurfaceDataReadyCallback_Invoke_mD9CA9D1746AF5AE4D247404CF4E49DA5FEC086A0(L_29, L_30, L_31, L_32, L_33, /*hidden argument*/NULL); // } return; } IL_009e: { // Debug.LogError(System.String.Format("SpatialMappingContext unable to notify a component about a failure to cook surface {0}!", sd.id.handle)); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_34 = ___sd0; SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_35 = L_34.get_id_0(); int32_t L_36 = L_35.get_handle_0(); int32_t L_37 = L_36; RuntimeObject * L_38 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_37); String_t* L_39 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteralAE9F75EABE0850F0B8A701C7B2478D0F8C395D79, L_38, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var); Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(L_39, /*hidden argument*/NULL); } IL_00bd: { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingContext::UpdateInFlightRecords(System.Int32,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_UpdateInFlightRecords_mB8AD8D918F398F51B66087489675B921FC57BD21 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, int32_t ___inFlightIndex0, float ___elapsedBakeTimeSeconds1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingContext_UpdateInFlightRecords_mB8AD8D918F398F51B66087489675B921FC57BD21_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // if (inFlightIndex == 0 || inFlightIndex == 1) int32_t L_0 = ___inFlightIndex0; if (!L_0) { goto IL_0007; } } { int32_t L_1 = ___inFlightIndex0; if ((!(((uint32_t)L_1) == ((uint32_t)1)))) { goto IL_0055; } } IL_0007: { // if (m_InFlightSurfaces <= 0) int32_t L_2 = __this->get_m_InFlightSurfaces_4(); if ((((int32_t)L_2) > ((int32_t)0))) { goto IL_001c; } } { // Debug.LogError("SMContext: unexpectedly got a data ready event with too few in flight surfaces!"); IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var); Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(_stringLiteralAC5BF571DE9975A9AA7E383FF7EA6E291929C5DE, /*hidden argument*/NULL); // } goto IL_002a; } IL_001c: { // m_InFlightSurfaces--; int32_t L_3 = __this->get_m_InFlightSurfaces_4(); __this->set_m_InFlightSurfaces_4(((int32_t)il2cpp_codegen_subtract((int32_t)L_3, (int32_t)1))); } IL_002a: { // m_InFlightRequests[inFlightIndex].Clear(); SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_4 = __this->get_m_InFlightRequests_3(); int32_t L_5 = ___inFlightIndex0; NullCheck(L_4); SMBakeRequest_Clear_m86306BA81672224B59FAF4E222F232C6D2CC7946((SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5))), /*hidden argument*/NULL); // if (!m_InFlightRequests[inFlightIndex].IsClear()) SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_6 = __this->get_m_InFlightRequests_3(); int32_t L_7 = ___inFlightIndex0; NullCheck(L_6); SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C((SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *)((L_6)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_7))), /*hidden argument*/NULL); // m_NextIndex = inFlightIndex; int32_t L_8 = ___inFlightIndex0; __this->set_m_NextIndex_5(L_8); // } return; } IL_0055: { // Debug.LogError(System.String.Format("SMContext: unable to update in flight record for an invalid index {0}!", inFlightIndex)); int32_t L_9 = ___inFlightIndex0; int32_t L_10 = L_9; RuntimeObject * L_11 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_10); String_t* L_12 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteral82AA2F03AC2CF34CF663318762D43CC36CFFC6C1, L_11, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var); Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(L_12, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingContext::RequestMeshPriorityFromComponents() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705_MetadataUsageId); s_Il2CppMethodInitialized = true; } int32_t V_0 = 0; SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C V_1; memset((&V_1), 0, sizeof(V_1)); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_2; memset((&V_2), 0, sizeof(V_2)); SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * G_B9_0 = NULL; SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * G_B8_0 = NULL; int32_t G_B10_0 = 0; SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * G_B10_1 = NULL; { // if (m_InFlightSurfaces < kIdealInFlightSurfaceCount) int32_t L_0 = __this->get_m_InFlightSurfaces_4(); if ((((int32_t)L_0) >= ((int32_t)2))) { goto IL_0110; } } { // for (int ii = 0; ii < m_Components.Count; ++ii) V_0 = 0; goto IL_00ff; } IL_0013: { // SMComponentRecord comp = m_Components[ii]; List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_1 = __this->get_m_Components_2(); int32_t L_2 = V_0; NullCheck(L_1); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_3 = List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_inline(L_1, L_2, /*hidden argument*/List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_RuntimeMethod_var); V_1 = L_3; // if (comp.m_GetHighestPri(out nextRequest)) SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_4 = V_1; GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_5 = L_4.get_m_GetHighestPri_2(); NullCheck(L_5); bool L_6 = GetHighestPriorityCallback_Invoke_m26851E34E8F7F00E6D82EB593811F3230E8CB3E3(L_5, (SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)(&V_2), /*hidden argument*/NULL); if (!L_6) { goto IL_00fb; } } { // if (-1 == m_NextIndex || !m_InFlightRequests[m_NextIndex].IsClear()) int32_t L_7 = __this->get_m_NextIndex_5(); if ((((int32_t)(-1)) == ((int32_t)L_7))) { goto IL_0053; } } { SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_8 = __this->get_m_InFlightRequests_3(); int32_t L_9 = __this->get_m_NextIndex_5(); NullCheck(L_8); bool L_10 = SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C((SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *)((L_8)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_9))), /*hidden argument*/NULL); if (L_10) { goto IL_006e; } } IL_0053: { // Debug.LogError(System.String.Format("SMContext: next index {0} may not be clear!", m_NextIndex)); int32_t L_11 = __this->get_m_NextIndex_5(); int32_t L_12 = L_11; RuntimeObject * L_13 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_12); String_t* L_14 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteralF9641356B56AB3E220318DB9A52C7620EC3E8076, L_13, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var); Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(L_14, /*hidden argument*/NULL); // } return; } IL_006e: { // if (comp.m_SurfaceObserver.RequestMeshAsync(nextRequest, OnSurfaceDataReady)) SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_15 = V_1; SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_16 = L_15.get_m_SurfaceObserver_3(); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_17 = V_2; SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092 * L_18 = (SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092 *)il2cpp_codegen_object_new(SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092_il2cpp_TypeInfo_var); SurfaceDataReadyDelegate__ctor_mB653644D30A5B829714DDEE56B57C2C01AE263E2(L_18, __this, (intptr_t)((intptr_t)SpatialMappingContext_OnSurfaceDataReady_m504770F8B83EB20DF9020AAE149461207F847D4C_RuntimeMethod_var), /*hidden argument*/NULL); NullCheck(L_16); bool L_19 = SurfaceObserver_RequestMeshAsync_mF7815161E179CE34FBB9FC52127DAE4B39FEBE95(L_16, L_17, L_18, /*hidden argument*/NULL); if (!L_19) { goto IL_00f0; } } { // m_InFlightRequests[m_NextIndex].m_RequestData = nextRequest; SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_20 = __this->get_m_InFlightRequests_3(); int32_t L_21 = __this->get_m_NextIndex_5(); NullCheck(L_20); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_22 = V_2; ((L_20)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_21)))->set_m_RequestData_0(L_22); // m_InFlightRequests[m_NextIndex].m_Requester = comp; SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_23 = __this->get_m_InFlightRequests_3(); int32_t L_24 = __this->get_m_NextIndex_5(); NullCheck(L_23); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_25 = V_1; ((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->set_m_Requester_1(L_25); // m_InFlightSurfaces++; int32_t L_26 = __this->get_m_InFlightSurfaces_4(); __this->set_m_InFlightSurfaces_4(((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1))); // m_NextIndex = m_NextIndex == 1 ? 0 : 1; int32_t L_27 = __this->get_m_NextIndex_5(); G_B8_0 = __this; if ((((int32_t)L_27) == ((int32_t)1))) { G_B9_0 = __this; goto IL_00d1; } } { G_B10_0 = 1; G_B10_1 = G_B8_0; goto IL_00d2; } IL_00d1: { G_B10_0 = 0; G_B10_1 = G_B9_0; } IL_00d2: { NullCheck(G_B10_1); G_B10_1->set_m_NextIndex_5(G_B10_0); // m_Components.RemoveAt(ii); List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_28 = __this->get_m_Components_2(); int32_t L_29 = V_0; NullCheck(L_28); List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342(L_28, L_29, /*hidden argument*/List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342_RuntimeMethod_var); // m_Components.Add(comp); List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_30 = __this->get_m_Components_2(); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_31 = V_1; NullCheck(L_30); List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009(L_30, L_31, /*hidden argument*/List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009_RuntimeMethod_var); // break; return; } IL_00f0: { // Debug.LogError("SMContext: unexpected failure requesting mesh bake!"); IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var); Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(_stringLiteral83D748A4D24B0945189E5C60B86FCDCF5E71A290, /*hidden argument*/NULL); // break; return; } IL_00fb: { // for (int ii = 0; ii < m_Components.Count; ++ii) int32_t L_32 = V_0; V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_32, (int32_t)1)); } IL_00ff: { // for (int ii = 0; ii < m_Components.Count; ++ii) int32_t L_33 = V_0; List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_34 = __this->get_m_Components_2(); NullCheck(L_34); int32_t L_35 = List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_inline(L_34, /*hidden argument*/List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_RuntimeMethod_var); if ((((int32_t)L_33) < ((int32_t)L_35))) { goto IL_0013; } } IL_0110: { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingContext::ComponentHasDataRequests() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_ComponentHasDataRequests_m5529DEFB30F2B54DF0D7A2D293AFC2B1EF7B6C67 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method) { { // RequestMeshPriorityFromComponents(); SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingContext::.cctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext__cctor_mE1027CD21E2DC2792C377C0FAC92F4A42B5506CD (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingContext__cctor_mE1027CD21E2DC2792C377C0FAC92F4A42B5506CD_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // private static readonly SpatialMappingContext instance = new SpatialMappingContext(); SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_0 = (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 *)il2cpp_codegen_object_new(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var); SpatialMappingContext__ctor_mE213514204AEFCDC1130E4496A75CAC9C190EEC9(L_0, /*hidden argument*/NULL); ((SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var))->set_instance_0(L_0); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass12_0::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass12_0__ctor_mF948151007C0E6D8E5A56D07390BB18A0EFEC22E (U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * __this, const RuntimeMethod* method) { { Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL); return; } } // System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass12_0::<RegisterComponent>b__0(UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool U3CU3Ec__DisplayClass12_0_U3CRegisterComponentU3Eb__0_m1F1967D704E5FE3AD22823A3F582232B7CB9E811 (U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * __this, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___record0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass12_0_U3CRegisterComponentU3Eb__0_m1F1967D704E5FE3AD22823A3F582232B7CB9E811_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // SMComponentRecord findResult = m_Components.Find(record => record.m_Component == smComponent); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_0 = ___record0; SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_1 = L_0.get_m_Component_0(); SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_2 = __this->get_smComponent_0(); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_3 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, L_2, /*hidden argument*/NULL); return L_3; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass13_0::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass13_0__ctor_m8F2D1733A044CAB323EC721F55EF8CF934305373 (U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * __this, const RuntimeMethod* method) { { Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL); return; } } // System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass13_0::<DeregisterComponent>b__0(UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool U3CU3Ec__DisplayClass13_0_U3CDeregisterComponentU3Eb__0_m531DFED41F5A4968FD1E2672AA38C55D49452F22 (U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * __this, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___record0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass13_0_U3CDeregisterComponentU3Eb__0_m531DFED41F5A4968FD1E2672AA38C55D49452F22_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // int removeCount = m_Components.RemoveAll(record => record.m_Component == smComponent); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_0 = ___record0; SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_1 = L_0.get_m_Component_0(); SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_2 = __this->get_smComponent_0(); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_3 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, L_2, /*hidden argument*/NULL); return L_3; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback::.ctor(System.Object,System.IntPtr) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GetHighestPriorityCallback__ctor_m47258A0A36E0E79506F872C8E03AB33D8A666B47 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback::Invoke(UnityEngine.XR.WSA.SurfaceData&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool GetHighestPriorityCallback_Invoke_m26851E34E8F7F00E6D82EB593811F3230E8CB3E3 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * ___dataRequest0, const RuntimeMethod* method) { bool result = false; DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* delegateArrayToInvoke = __this->get_delegates_11(); Delegate_t** delegatesToInvoke; il2cpp_array_size_t length; if (delegateArrayToInvoke != NULL) { length = delegateArrayToInvoke->max_length; delegatesToInvoke = reinterpret_cast<Delegate_t**>(delegateArrayToInvoke->GetAddressAtUnchecked(0)); } else { length = 1; delegatesToInvoke = reinterpret_cast<Delegate_t**>(&__this); } for (il2cpp_array_size_t i = 0; i < length; i++) { Delegate_t* currentDelegate = delegatesToInvoke[i]; Il2CppMethodPointer targetMethodPointer = currentDelegate->get_method_ptr_0(); RuntimeObject* targetThis = currentDelegate->get_m_target_2(); RuntimeMethod* targetMethod = (RuntimeMethod*)(currentDelegate->get_method_3()); if (!il2cpp_codegen_method_is_virtual(targetMethod)) { il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); } bool ___methodIsStatic = MethodIsStatic(targetMethod); int ___parameterCount = il2cpp_codegen_method_parameter_count(targetMethod); if (___methodIsStatic) { if (___parameterCount == 1) { // open typedef bool (*FunctionPointerType) (SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *, const RuntimeMethod*); result = ((FunctionPointerType)targetMethodPointer)(___dataRequest0, targetMethod); } else { // closed typedef bool (*FunctionPointerType) (void*, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *, const RuntimeMethod*); result = ((FunctionPointerType)targetMethodPointer)(targetThis, ___dataRequest0, targetMethod); } } else { // closed if (il2cpp_codegen_method_is_virtual(targetMethod) && !il2cpp_codegen_object_is_of_sealed_type(targetThis) && il2cpp_codegen_delegate_has_invoker((Il2CppDelegate*)__this)) { if (targetThis == NULL) { typedef bool (*FunctionPointerType) (SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *, const RuntimeMethod*); result = ((FunctionPointerType)targetMethodPointer)(___dataRequest0, targetMethod); } else if (il2cpp_codegen_method_is_generic_instance(targetMethod)) { if (il2cpp_codegen_method_is_interface_method(targetMethod)) result = GenericInterfaceFuncInvoker1< bool, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * >::Invoke(targetMethod, targetThis, ___dataRequest0); else result = GenericVirtFuncInvoker1< bool, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * >::Invoke(targetMethod, targetThis, ___dataRequest0); } else { if (il2cpp_codegen_method_is_interface_method(targetMethod)) result = InterfaceFuncInvoker1< bool, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), il2cpp_codegen_method_get_declaring_type(targetMethod), targetThis, ___dataRequest0); else result = VirtFuncInvoker1< bool, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), targetThis, ___dataRequest0); } } else { typedef bool (*FunctionPointerType) (void*, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *, const RuntimeMethod*); result = ((FunctionPointerType)targetMethodPointer)(targetThis, ___dataRequest0, targetMethod); } } } return result; } // System.IAsyncResult UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback::BeginInvoke(UnityEngine.XR.WSA.SurfaceData&,System.AsyncCallback,System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* GetHighestPriorityCallback_BeginInvoke_m1CE22675CEE0E13C0A8E683B62D6CE4B3E1DEB80 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * ___dataRequest0, AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4 * ___callback1, RuntimeObject * ___object2, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (GetHighestPriorityCallback_BeginInvoke_m1CE22675CEE0E13C0A8E683B62D6CE4B3E1DEB80_MetadataUsageId); s_Il2CppMethodInitialized = true; } void *__d_args[2] = {0}; __d_args[0] = Box(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_il2cpp_TypeInfo_var, &*___dataRequest0); return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback1, (RuntimeObject*)___object2); } // System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback::EndInvoke(UnityEngine.XR.WSA.SurfaceData&,System.IAsyncResult) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool GetHighestPriorityCallback_EndInvoke_m24E6E8AA7D5216421B258A5A146EDF5E80A16845 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * ___dataRequest0, RuntimeObject* ___result1, const RuntimeMethod* method) { void* ___out_args[] = { ___dataRequest0, }; RuntimeObject *__result = il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result1, ___out_args); return *(bool*)UnBox ((RuntimeObject*)__result); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // Conversion methods for marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_pinvoke(const SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059& unmarshaled, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_pinvoke& marshaled) { Exception_t* ___m_RequestData_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_RequestData' of type 'SMBakeRequest'."); IL2CPP_RAISE_MANAGED_EXCEPTION(___m_RequestData_0Exception, NULL, NULL); } IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_pinvoke_back(const SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_pinvoke& marshaled, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059& unmarshaled) { Exception_t* ___m_RequestData_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_RequestData' of type 'SMBakeRequest'."); IL2CPP_RAISE_MANAGED_EXCEPTION(___m_RequestData_0Exception, NULL, NULL); } // Conversion method for clean up from marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_pinvoke_cleanup(SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_pinvoke& marshaled) { } // Conversion methods for marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_com(const SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059& unmarshaled, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_com& marshaled) { Exception_t* ___m_RequestData_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_RequestData' of type 'SMBakeRequest'."); IL2CPP_RAISE_MANAGED_EXCEPTION(___m_RequestData_0Exception, NULL, NULL); } IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_com_back(const SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_com& marshaled, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059& unmarshaled) { Exception_t* ___m_RequestData_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_RequestData' of type 'SMBakeRequest'."); IL2CPP_RAISE_MANAGED_EXCEPTION(___m_RequestData_0Exception, NULL, NULL); } // Conversion method for clean up from marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_com_cleanup(SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_com& marshaled) { } // System.Void UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest::Clear() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMBakeRequest_Clear_m86306BA81672224B59FAF4E222F232C6D2CC7946 (SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * __this, const RuntimeMethod* method) { { // m_RequestData.id.handle = 0; SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * L_0 = __this->get_address_of_m_RequestData_0(); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF * L_1 = L_0->get_address_of_id_0(); L_1->set_handle_0(0); // m_Requester.Clear(); SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * L_2 = __this->get_address_of_m_Requester_1(); SMComponentRecord_Clear_m415CCE1F9F6B4654D3505256EFE05B49589A78DF((SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C *)L_2, /*hidden argument*/NULL); // } return; } } IL2CPP_EXTERN_C void SMBakeRequest_Clear_m86306BA81672224B59FAF4E222F232C6D2CC7946_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * _thisAdjusted = reinterpret_cast<SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *>(__this + 1); SMBakeRequest_Clear_m86306BA81672224B59FAF4E222F232C6D2CC7946(_thisAdjusted, method); } // System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest::IsClear() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C (SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * __this, const RuntimeMethod* method) { { // return (m_RequestData.id.handle == 0 && m_Requester.IsClear()); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * L_0 = __this->get_address_of_m_RequestData_0(); SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF * L_1 = L_0->get_address_of_id_0(); int32_t L_2 = L_1->get_handle_0(); if (L_2) { goto IL_001e; } } { SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * L_3 = __this->get_address_of_m_Requester_1(); bool L_4 = SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6((SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C *)L_3, /*hidden argument*/NULL); return L_4; } IL_001e: { return (bool)0; } } IL2CPP_EXTERN_C bool SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * _thisAdjusted = reinterpret_cast<SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *>(__this + 1); return SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C(_thisAdjusted, method); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // Conversion methods for marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled) { Exception_t* ___m_Component_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_Component' of type 'SMComponentRecord': Reference type field marshaling is not supported."); IL2CPP_RAISE_MANAGED_EXCEPTION(___m_Component_0Exception, NULL, NULL); } IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke_back(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled) { Exception_t* ___m_Component_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_Component' of type 'SMComponentRecord': Reference type field marshaling is not supported."); IL2CPP_RAISE_MANAGED_EXCEPTION(___m_Component_0Exception, NULL, NULL); } // Conversion method for clean up from marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke_cleanup(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled) { } // Conversion methods for marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled) { Exception_t* ___m_Component_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_Component' of type 'SMComponentRecord': Reference type field marshaling is not supported."); IL2CPP_RAISE_MANAGED_EXCEPTION(___m_Component_0Exception, NULL, NULL); } IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com_back(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled) { Exception_t* ___m_Component_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_Component' of type 'SMComponentRecord': Reference type field marshaling is not supported."); IL2CPP_RAISE_MANAGED_EXCEPTION(___m_Component_0Exception, NULL, NULL); } // Conversion method for clean up from marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com_cleanup(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled) { } // System.Void UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::.ctor(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback,UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback,UnityEngine.XR.WSA.SurfaceObserver) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMComponentRecord__ctor_m0D1ED3535BE9E9E7A81A16BE623A843126E9F723 (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___comp0, SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___onDataReady1, GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___getHighestPri2, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___observer3, const RuntimeMethod* method) { { // m_Component = comp; SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_0 = ___comp0; __this->set_m_Component_0(L_0); // m_OnDataReady = onDataReady; SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_1 = ___onDataReady1; __this->set_m_OnDataReady_1(L_1); // m_GetHighestPri = getHighestPri; GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_2 = ___getHighestPri2; __this->set_m_GetHighestPri_2(L_2); // m_SurfaceObserver = observer; SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_3 = ___observer3; __this->set_m_SurfaceObserver_3(L_3); // } return; } } IL2CPP_EXTERN_C void SMComponentRecord__ctor_m0D1ED3535BE9E9E7A81A16BE623A843126E9F723_AdjustorThunk (RuntimeObject * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___comp0, SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___onDataReady1, GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___getHighestPri2, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___observer3, const RuntimeMethod* method) { SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * _thisAdjusted = reinterpret_cast<SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C *>(__this + 1); SMComponentRecord__ctor_m0D1ED3535BE9E9E7A81A16BE623A843126E9F723(_thisAdjusted, ___comp0, ___onDataReady1, ___getHighestPri2, ___observer3, method); } // System.Void UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::Clear() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMComponentRecord_Clear_m415CCE1F9F6B4654D3505256EFE05B49589A78DF (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, const RuntimeMethod* method) { { // m_Component = null; __this->set_m_Component_0((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *)NULL); // m_OnDataReady = null; __this->set_m_OnDataReady_1((SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 *)NULL); // m_GetHighestPri = null; __this->set_m_GetHighestPri_2((GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 *)NULL); // m_SurfaceObserver = null; __this->set_m_SurfaceObserver_3((SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 *)NULL); // } return; } } IL2CPP_EXTERN_C void SMComponentRecord_Clear_m415CCE1F9F6B4654D3505256EFE05B49589A78DF_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * _thisAdjusted = reinterpret_cast<SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C *>(__this + 1); SMComponentRecord_Clear_m415CCE1F9F6B4654D3505256EFE05B49589A78DF(_thisAdjusted, method); } // System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::IsClear() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6 (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // return m_Component == null // && m_OnDataReady == null // && m_GetHighestPri == null // && m_SurfaceObserver == null; SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_0 = __this->get_m_Component_0(); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_1) { goto IL_0028; } } { SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_2 = __this->get_m_OnDataReady_1(); if (L_2) { goto IL_0028; } } { GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_3 = __this->get_m_GetHighestPri_2(); if (L_3) { goto IL_0028; } } { SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_4 = __this->get_m_SurfaceObserver_3(); return (bool)((((RuntimeObject*)(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 *)L_4) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0); } IL_0028: { return (bool)0; } } IL2CPP_EXTERN_C bool SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * _thisAdjusted = reinterpret_cast<SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C *>(__this + 1); return SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6(_thisAdjusted, method); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.XR.WSA.SpatialMappingRenderer_RenderState UnityEngine.XR.WSA.SpatialMappingRenderer::get_renderState() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingRenderer_get_renderState_m1ECB7DED90F00AF9947CC552372FACC39692D84D (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method) { { // return m_CurrentRenderState; int32_t L_0 = __this->get_m_CurrentRenderState_28(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::set_renderState(UnityEngine.XR.WSA.SpatialMappingRenderer_RenderState) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_renderState_m8450524C7413463F34521D71AF035D5558C220A2 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, int32_t ___value0, const RuntimeMethod* method) { { // m_CurrentRenderState = value; int32_t L_0 = ___value0; __this->set_m_CurrentRenderState_28(L_0); // ApplyPropertiesToCachedSurfaces(); SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248(__this, /*hidden argument*/NULL); // } return; } } // UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::get_visualMaterial() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_visualMaterial_mBFDEB3C06FA62BF6BA399F46B98FECC0E11F9AAC (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method) { { // return m_VisualMaterial; Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = __this->get_m_VisualMaterial_29(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::set_visualMaterial(UnityEngine.Material) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_visualMaterial_m439EE5826EC8650A9051CE8878A4DE6E62BAA37E (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method) { { // m_VisualMaterial = value; Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = ___value0; __this->set_m_VisualMaterial_29(L_0); // } return; } } // UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::get_occlusionMaterial() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_occlusionMaterial_m7F15BD9F8CEA72EA91A03FBE74B8DEA2E3ADB609 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method) { { // return m_OcclusionMaterial; Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = __this->get_m_OcclusionMaterial_30(); return L_0; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::set_occlusionMaterial(UnityEngine.Material) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_occlusionMaterial_m6600CD1C60856651B8E939DA904984ED9DD82D51 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method) { { // m_OcclusionMaterial = value; Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = ___value0; __this->set_m_OcclusionMaterial_30(L_0); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::OnSurfaceDataReady(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_OnSurfaceDataReady_m420A3B0A5C033BCC60642E85BAF41408A07B0BFA (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___requester0, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData1, bool ___outputWritten2, float ___elapsedBakeTimeSeconds3, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingRenderer_OnSurfaceDataReady_m420A3B0A5C033BCC60642E85BAF41408A07B0BFA_MetadataUsageId); s_Il2CppMethodInitialized = true; } Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_0 = NULL; { // if (!surfaceObjects.TryGetValue(bakedData.id.handle, out surface)) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_1 = ___bakedData1; SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_2 = L_1.get_id_0(); int32_t L_3 = L_2.get_handle_0(); NullCheck(L_0); bool L_4 = Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8(L_0, L_3, (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D **)(&V_0), /*hidden argument*/Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8_RuntimeMethod_var); if (L_4) { goto IL_001b; } } { // return; return; } IL_001b: { // surface.awaitingBake = false; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_5 = V_0; NullCheck(L_5); Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline(L_5, (bool)0, /*hidden argument*/NULL); // if (!outputWritten) bool L_6 = ___outputWritten2; if (L_6) { goto IL_0026; } } { // return; return; } IL_0026: { // if (surface.gameObject == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = V_0; NullCheck(L_7); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_7, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_9 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_8, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_9) { goto IL_0054; } } { // Debug.LogError(string.Format("A SpatialMappingRenderer component can not apply baked data to a surface with id \"{0}\" because its GameObject is null.", bakedData.id.handle)); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_10 = ___bakedData1; SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_11 = L_10.get_id_0(); int32_t L_12 = L_11.get_handle_0(); int32_t L_13 = L_12; RuntimeObject * L_14 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_13); String_t* L_15 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteral62234BEF4038675D8DA131376AEB172897EAB03D, L_14, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var); Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(L_15, /*hidden argument*/NULL); // return; return; } IL_0054: { // if (requester != this) SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_16 = ___requester0; IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_17 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_16, __this, /*hidden argument*/NULL); if (!L_17) { goto IL_0065; } } { // CloneBakedComponents(bakedData, surface); SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_18 = ___bakedData1; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_19 = V_0; SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC(__this, L_18, L_19, /*hidden argument*/NULL); } IL_0065: { // if (surface.meshRenderer == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_20 = V_0; NullCheck(L_20); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_21 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_20, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_22 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_21, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_22) { goto IL_00bb; } } { // surface.meshRenderer = surface.gameObject.GetComponent<MeshRenderer>(); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_23 = V_0; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_24 = V_0; NullCheck(L_24); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_25 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_24, /*hidden argument*/NULL); NullCheck(L_25); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_26 = GameObject_GetComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m91C1D9637A332988C72E62D52DFCFE89A6DDAB72(L_25, /*hidden argument*/GameObject_GetComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m91C1D9637A332988C72E62D52DFCFE89A6DDAB72_RuntimeMethod_var); NullCheck(L_23); Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112_inline(L_23, L_26, /*hidden argument*/NULL); // if (surface.meshRenderer == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_27 = V_0; NullCheck(L_27); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_28 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_27, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_29 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_28, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_29) { goto IL_00a3; } } { // surface.meshRenderer = surface.gameObject.AddComponent<MeshRenderer>(); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_30 = V_0; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_31 = V_0; NullCheck(L_31); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_32 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_31, /*hidden argument*/NULL); NullCheck(L_32); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_33 = GameObject_AddComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m16409C054F66125E0380BDDDB1454118A3BAD60E(L_32, /*hidden argument*/GameObject_AddComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m16409C054F66125E0380BDDDB1454118A3BAD60E_RuntimeMethod_var); NullCheck(L_30); Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112_inline(L_30, L_33, /*hidden argument*/NULL); } IL_00a3: { // surface.meshRenderer.receiveShadows = false; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_34 = V_0; NullCheck(L_34); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_35 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_34, /*hidden argument*/NULL); NullCheck(L_35); Renderer_set_receiveShadows_mD2BD2FF58156E328677EAE5E175D2069BC2925A0(L_35, (bool)0, /*hidden argument*/NULL); // surface.meshRenderer.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_36 = V_0; NullCheck(L_36); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_37 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_36, /*hidden argument*/NULL); NullCheck(L_37); Renderer_set_shadowCastingMode_mC7E601EE9B32B63097B216C78ED4F854B0AF21EC(L_37, 0, /*hidden argument*/NULL); } IL_00bb: { // ApplyRenderSettings(surface.meshRenderer); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_38 = V_0; NullCheck(L_38); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_39 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_38, /*hidden argument*/NULL); SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50(__this, L_39, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::OnBeginSurfaceEviction(System.Boolean,UnityEngine.XR.WSA.SpatialMappingBase_Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_OnBeginSurfaceEviction_mCD9F24ED93F611DFA1A51A198CC5CC00D5291AFE (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, bool ___shouldBeActiveWhileRemoved0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingRenderer_OnBeginSurfaceEviction_mCD9F24ED93F611DFA1A51A198CC5CC00D5291AFE_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // if (surface.gameObject == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface1; NullCheck(L_0); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_0, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_2 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_2) { goto IL_000f; } } { // return; return; } IL_000f: { // if (surface.meshRenderer == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_3 = ___surface1; NullCheck(L_3); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_4 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_3, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_5 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_4, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_5) { goto IL_001e; } } { // return; return; } IL_001e: { // surface.meshRenderer.enabled = shouldBeActiveWhileRemoved; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = ___surface1; NullCheck(L_6); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_7 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_6, /*hidden argument*/NULL); bool L_8 = ___shouldBeActiveWhileRemoved0; NullCheck(L_7); Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_7, L_8, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::ApplyPropertiesToCachedSurfaces() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248_MetadataUsageId); s_Il2CppMethodInitialized = true; } Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0; memset((&V_0), 0, sizeof(V_0)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1; memset((&V_1), 0, sizeof(V_1)); KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2; memset((&V_2), 0, sizeof(V_2)); Exception_t * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); void* __leave_targets_storage = alloca(sizeof(int32_t) * 2); il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage); NO_UNUSED_WARNING (__leave_targets); { // if (surfaceObjects == null || surfaceObjects.Count == 0) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); if (!L_0) { goto IL_0015; } } { Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_1); int32_t L_2 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_1, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var); if (L_2) { goto IL_0016; } } IL_0015: { // return; return; } IL_0016: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_3 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL); NullCheck(L_3); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_4 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_3, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_0 = L_4; } IL_0022: try { // begin try (depth: 1) { goto IL_0066; } IL_0024: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_5 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_1 = L_5; // GameObject go = kvp.Value.gameObject; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_6); GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_6, /*hidden argument*/NULL); // if (go == null) IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_8 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_7, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (L_8) { goto IL_0066; } } IL_0040: { // if (kvp.Value.meshRenderer == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_9 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_9); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_10 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_9, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_11 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_10, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (L_11) { goto IL_0066; } } IL_0054: { // ApplyRenderSettings(kvp.Value.meshRenderer); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_12 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_12); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_13 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_12, /*hidden argument*/NULL); SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50(__this, L_13, /*hidden argument*/NULL); } IL_0066: { // foreach (KeyValuePair<int, Surface> kvp in surfaceObjects) bool L_14 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_14) { goto IL_0024; } } IL_006f: { IL2CPP_LEAVE(0x7F, FINALLY_0071); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_0071; } FINALLY_0071: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(113) } // end finally (depth: 1) IL2CPP_CLEANUP(113) { IL2CPP_JUMP_TBL(0x7F, IL_007f) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_007f: { // foreach (KeyValuePair<int, SpatialMappingBase.Surface> kvp in pendingSurfacesForEviction) Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_15 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL); NullCheck(L_15); Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_16 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_15, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var); V_0 = L_16; } IL_008b: try { // begin try (depth: 1) { goto IL_00e4; } IL_008d: { // foreach (KeyValuePair<int, SpatialMappingBase.Surface> kvp in pendingSurfacesForEviction) KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_17 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var); V_2 = L_17; // if (kvp.Value.meshRenderer == null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_18 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_18); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_19 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_18, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_20 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_19, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (L_20) { goto IL_00e4; } } IL_00a9: { // ApplyRenderSettings(kvp.Value.meshRenderer); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_21 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_21); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_22 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_21, /*hidden argument*/NULL); SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50(__this, L_22, /*hidden argument*/NULL); // if (ShouldRemainActiveWhileBeingRemoved(kvp.Value)) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_23 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); bool L_24 = SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6(__this, L_23, /*hidden argument*/NULL); if (!L_24) { goto IL_00e4; } } IL_00ca: { // kvp.Value.meshRenderer.enabled = renderState != RenderState.None; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var); NullCheck(L_25); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_26 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_25, /*hidden argument*/NULL); int32_t L_27 = SpatialMappingRenderer_get_renderState_m1ECB7DED90F00AF9947CC552372FACC39692D84D_inline(__this, /*hidden argument*/NULL); NullCheck(L_26); Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_26, (bool)((!(((uint32_t)L_27) <= ((uint32_t)0)))? 1 : 0), /*hidden argument*/NULL); } IL_00e4: { // foreach (KeyValuePair<int, SpatialMappingBase.Surface> kvp in pendingSurfacesForEviction) bool L_28 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var); if (L_28) { goto IL_008d; } } IL_00ed: { IL2CPP_LEAVE(0xFD, FINALLY_00ef); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t *)e.ex; goto FINALLY_00ef; } FINALLY_00ef: { // begin finally (depth: 1) Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var); IL2CPP_END_FINALLY(239) } // end finally (depth: 1) IL2CPP_CLEANUP(239) { IL2CPP_JUMP_TBL(0xFD, IL_00fd) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *) } IL_00fd: { // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::ApplyRenderSettings(UnityEngine.MeshRenderer) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___meshRenderer0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50_MetadataUsageId); s_Il2CppMethodInitialized = true; } int32_t V_0 = 0; { // if (meshRenderer == null) MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_0 = ___meshRenderer0; IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_1) { goto IL_000a; } } { // return; return; } IL_000a: { // switch (renderState) int32_t L_2 = SpatialMappingRenderer_get_renderState_m1ECB7DED90F00AF9947CC552372FACC39692D84D_inline(__this, /*hidden argument*/NULL); V_0 = L_2; int32_t L_3 = V_0; switch (L_3) { case 0: { goto IL_004c; } case 1: { goto IL_0024; } case 2: { goto IL_0038; } } } { return; } IL_0024: { // meshRenderer.sharedMaterial = occlusionMaterial; MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_4 = ___meshRenderer0; Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_5 = SpatialMappingRenderer_get_occlusionMaterial_m7F15BD9F8CEA72EA91A03FBE74B8DEA2E3ADB609_inline(__this, /*hidden argument*/NULL); NullCheck(L_4); Renderer_set_sharedMaterial_mC94A354D9B0FCA081754A7CB51AEE5A9AD3946A3(L_4, L_5, /*hidden argument*/NULL); // meshRenderer.enabled = true; MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_6 = ___meshRenderer0; NullCheck(L_6); Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_6, (bool)1, /*hidden argument*/NULL); // break; return; } IL_0038: { // meshRenderer.sharedMaterial = visualMaterial; MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_7 = ___meshRenderer0; Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_8 = SpatialMappingRenderer_get_visualMaterial_mBFDEB3C06FA62BF6BA399F46B98FECC0E11F9AAC_inline(__this, /*hidden argument*/NULL); NullCheck(L_7); Renderer_set_sharedMaterial_mC94A354D9B0FCA081754A7CB51AEE5A9AD3946A3(L_7, L_8, /*hidden argument*/NULL); // meshRenderer.enabled = true; MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_9 = ___meshRenderer0; NullCheck(L_9); Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_9, (bool)1, /*hidden argument*/NULL); // break; return; } IL_004c: { // meshRenderer.enabled = false; MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_10 = ___meshRenderer0; NullCheck(L_10); Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_10, (bool)0, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase_Surface) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_DestroySurface_mD0C57EF7CC663F5487EC4AB804E6AED68460E2BA (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingRenderer_DestroySurface_mD0C57EF7CC663F5487EC4AB804E6AED68460E2BA_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // if (surface.meshRenderer != null) Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0; NullCheck(L_0); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_1 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_0, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); bool L_2 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_1, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL); if (!L_2) { goto IL_0038; } } { // surface.meshRenderer.sharedMaterial = null; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_3 = ___surface0; NullCheck(L_3); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_4 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_3, /*hidden argument*/NULL); NullCheck(L_4); Renderer_set_sharedMaterial_mC94A354D9B0FCA081754A7CB51AEE5A9AD3946A3(L_4, (Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 *)NULL, /*hidden argument*/NULL); // surface.meshRenderer.enabled = false; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_5 = ___surface0; NullCheck(L_5); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_6 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_5, /*hidden argument*/NULL); NullCheck(L_6); Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_6, (bool)0, /*hidden argument*/NULL); // Destroy(surface.meshRenderer); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = ___surface0; NullCheck(L_7); MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_8 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_7, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var); Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_8, /*hidden argument*/NULL); // surface.meshRenderer = null; Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_9 = ___surface0; NullCheck(L_9); Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112_inline(L_9, (MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED *)NULL, /*hidden argument*/NULL); } IL_0038: { // base.DestroySurface(surface); Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___surface0; SpatialMappingBase_DestroySurface_m61864CCED61827A61A95FA29FAD6ED9920F67E04(__this, L_10, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::OnDestroy() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_OnDestroy_m9D860213004344023EA62B0F871F9034B73B1435 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method) { { // occlusionMaterial = null; SpatialMappingRenderer_set_occlusionMaterial_m6600CD1C60856651B8E939DA904984ED9DD82D51_inline(__this, (Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 *)NULL, /*hidden argument*/NULL); // visualMaterial = null; SpatialMappingRenderer_set_visualMaterial_m439EE5826EC8650A9051CE8878A4DE6E62BAA37E_inline(__this, (Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 *)NULL, /*hidden argument*/NULL); // base.OnDestroy(); SpatialMappingBase_OnDestroy_mAF2456D391A059BD21C03AC4F8D0CC1119677E54(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::OnResetProperties() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_OnResetProperties_m3FBB23E78FA0835DA1938EA25F0C526EDB114CF3 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method) { { // base.OnResetProperties(); SpatialMappingBase_OnResetProperties_mD42F9367CEA98C6FABE37B83736BD9C6E405AE5A(__this, /*hidden argument*/NULL); // ApplyPropertiesToCachedSurfaces(); SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::Reset() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_Reset_m34D8765E9CDCDF837994F9D19748F16054304DEF (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method) { { // base.Reset(); SpatialMappingBase_Reset_m2DB6F9468DCD37B2364AC0E1638C2D8C16A0B411(__this, /*hidden argument*/NULL); // } return; } } // System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer__ctor_m14922A96C242112D7063A6D099A62FAE3683AA77 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingRenderer__ctor_m14922A96C242112D7063A6D099A62FAE3683AA77_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // private RenderState m_CurrentRenderState = RenderState.Occlusion; __this->set_m_CurrentRenderState_28(1); IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var); SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448(__this, /*hidden argument*/NULL); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float HoloLensInputModule_get_timeToPressOnTap_m98D628A1BA4ADD84B66268FC108B32F6FC8B1FC0_inline (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // get { return m_TimeToPressOnTap; } float L_0 = __this->get_m_TimeToPressOnTap_31(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float HoloLensInputModule_get_normalizedNavigationToScreenOffsetScalar_mE683140D392D6E0CC4161770428E8BDF5C69BC6E_inline (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method) { { // get { return m_NormalizedNavigationToScreenOffsetScalar; } float L_0 = __this->get_m_NormalizedNavigationToScreenOffsetScalar_30(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool StandaloneInputModule_get_forceModuleActive_m7C481C9C4D478CB162E289F9D038859990973E6E_inline (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method) { { // get { return m_ForceModuleActive; } bool L_0 = __this->get_m_ForceModuleActive_29(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * StandaloneInputModule_GetCurrentFocusedGameObject_mA354FCB4E2546E1F49D165207705A26D29EBB3D7_inline (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method) { { // return m_CurrentFocusedGameObject; GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_m_CurrentFocusedGameObject_21(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * BaseInputModule_get_eventSystem_mEF6DEC17FF56D786AA217A52FCCFE8C6F38546BE_inline (BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 * __this, const RuntimeMethod* method) { { // get { return m_EventSystem; } EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * L_0 = __this->get_m_EventSystem_6(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_observerId_m6AFBE2E2DD43BE4877B51B515994535F544E1E07_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method) { { // protected int observerId { get; set; } int32_t L_0 = ___value0; __this->set_U3CobserverIdU3Ek__BackingField_16(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObjects_m034B1632BAC1CE797ADE3EF453B3BF7F0C0B8E90_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___value0, const RuntimeMethod* method) { { // protected Dictionary<int, Surface> surfaceObjects { get; set; } Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = ___value0; __this->set_U3CsurfaceObjectsU3Ek__BackingField_18(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_selectedCamera_m571711921F39F8AC923BF9964A3E559DEF2455A2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___value0, const RuntimeMethod* method) { { // protected Camera selectedCamera { get; set; } Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = ___value0; __this->set_U3CselectedCameraU3Ek__BackingField_21(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_nextSurfaceChangeUpdateTime_m6EC9BA4E9FFDEE3AA5687571ABA564FB59BF590E_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, float ___value0, const RuntimeMethod* method) { { // protected float nextSurfaceChangeUpdateTime { get; set; } float L_0 = ___value0; __this->set_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObserver_mDDE2BC259C50248E17B85DDB4C68097E7C97B9DE_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___value0, const RuntimeMethod* method) { { // protected SurfaceObserver surfaceObserver { get; set; } SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_0 = ___value0; __this->set_U3CsurfaceObserverU3Ek__BackingField_17(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_inline (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010Unity_XR_WindowsMR_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // get { return instance; } IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var); SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_0 = ((SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var))->get_instance_0(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected SurfaceObserver surfaceObserver { get; set; } SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_0 = __this->get_U3CsurfaceObserverU3Ek__BackingField_17(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_HalfBoxExtents; } Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = __this->get_m_HalfBoxExtents_11(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bounds_m537FDB6EDF4E405E7D140CFE44828BCB753C60EE_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 ___value0, const RuntimeMethod* method) { { // protected Bounds bounds { get; set; } Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_0 = ___value0; __this->set_U3CboundsU3Ek__BackingField_19(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected Dictionary<int, Surface> surfaceObjects { get; set; } Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = __this->get_U3CsurfaceObjectsU3Ek__BackingField_18(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public GameObject gameObject { get; set; } GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_U3CgameObjectU3Ek__BackingField_2(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // return m_PendingSurfacesForEviction; Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = __this->get_m_PendingSurfacesForEviction_23(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_surfaceParentWasDynamicallyCreated_mBC600B152C29512A2F47D435843B491F0A23A338_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // return m_SurfaceParentWasDynamicallyCreated; bool L_0 = __this->get_m_SurfaceParentWasDynamicallyCreated_25(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_SurfaceParent; } GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_m_SurfaceParent_7(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParent_mEA691909114179FEFB851F5A3BA8897A41626B7D_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method) { { // set { m_SurfaceParent = value; } GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = ___value0; __this->set_m_SurfaceParent_7(L_0); // set { m_SurfaceParent = value; } return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_lastUpdatedObserverPosition_mDA859EDB4C79D8D0E51EE5E1F5AB66C66A0FA88B_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected Vector3 lastUpdatedObserverPosition { get; set; } Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = __this->get_U3ClastUpdatedObserverPositionU3Ek__BackingField_20(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_freezeUpdates_m10DAC55A998837D64FE4BB84A4E29D8A852014F2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_FreezeUpdates; } bool L_0 = __this->get_m_FreezeUpdates_8(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_nextSurfaceChangeUpdateTime_mAB42AB4923890CE64BE6EC93A19002886CC88FAA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected float nextSurfaceChangeUpdateTime { get; set; } float L_0 = __this->get_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_secondsBetweenUpdates_m08248C91683C82EAF76C2B78F18A6156DA5AD13A_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_SecondsBetweenUpdates; } float L_0 = __this->get_m_SecondsBetweenUpdates_14(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_VolumeType; } int32_t L_0 = __this->get_m_VolumeType_9(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_SphereRadius; } float L_0 = __this->get_m_SphereRadius_10(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 SpatialMappingBase_get_bounds_m555A8D615D0643F8FB75D086714A5A5D6AA371D2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected Bounds bounds { get; set; } Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_0 = __this->get_U3CboundsU3Ek__BackingField_19(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_lastUpdatedObserverPosition_mFE6057264FC068449849BDAA7481A917B2FB75F8_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method) { { // protected Vector3 lastUpdatedObserverPosition { get; set; } Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = ___value0; __this->set_U3ClastUpdatedObserverPositionU3Ek__BackingField_20(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // return m_BakePhysics; bool L_0 = __this->get_m_BakePhysics_15(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___value0, const RuntimeMethod* method) { { // public SurfaceData surfaceData { get; set; } SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = ___value0; __this->set_U3CsurfaceDataU3Ek__BackingField_3(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public SurfaceData surfaceData { get; set; } SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = __this->get_U3CsurfaceDataU3Ek__BackingField_3(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_inline (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1BUnity_XR_WindowsMR_MetadataUsageId); s_Il2CppMethodInitialized = true; } { // return s_LodToPcm; IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var); Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_0 = ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->get_s_LodToPcm_26(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_LodType; } int32_t L_0 = __this->get_m_LodType_12(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, bool ___value0, const RuntimeMethod* method) { { // public bool awaitingBake { get; set; } bool L_0 = ___value0; __this->set_U3CawaitingBakeU3Ek__BackingField_5(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_updateTime_m8FDDAF318259294A7184AE968CBC52051BE225F2_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___value0, const RuntimeMethod* method) { { // public System.DateTime updateTime { get; set; } DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_0 = ___value0; __this->set_U3CupdateTimeU3Ek__BackingField_1(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_surfaceId_m0B776CEC7A925E7780973C2E0D787C58B28439F1_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___value0, const RuntimeMethod* method) { { // public SurfaceId surfaceId { get; set; } SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_0 = ___value0; __this->set_U3CsurfaceIdU3Ek__BackingField_0(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public MeshFilter meshFilter { get; set; } MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_0 = __this->get_U3CmeshFilterU3Ek__BackingField_6(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_observerId_m11215996E1207E53F6F0C1218CA50AD058B80495_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected int observerId { get; set; } int32_t L_0 = __this->get_U3CobserverIdU3Ek__BackingField_16(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParentWasDynamicallyCreated_mAD419F4D32525643B8F2FF5823F130360DA915A1_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method) { { // m_SurfaceParentWasDynamicallyCreated = value; bool L_0 = ___value0; __this->set_m_SurfaceParentWasDynamicallyCreated_25(L_0); // } return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF Surface_get_surfaceId_mAD37AE571E345D3B6850E57137292FE70E6F388B_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public SurfaceId surfaceId { get; set; } SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_0 = __this->get_U3CsurfaceIdU3Ek__BackingField_0(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_gameObject_mA485C86A72C7B313E831FD5F2853338DF24C87F4_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method) { { // public GameObject gameObject { get; set; } GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = ___value0; __this->set_U3CgameObjectU3Ek__BackingField_2(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshFilter_m09D0BD0AB6A36F2DB45400E12EE2D6CCE0FDF7A1_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___value0, const RuntimeMethod* method) { { // public MeshFilter meshFilter { get; set; } MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_0 = ___value0; __this->set_U3CmeshFilterU3Ek__BackingField_6(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public WorldAnchor worldAnchor { get; set; } WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_0 = __this->get_U3CworldAnchorU3Ek__BackingField_9(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_worldAnchor_m89D7EAB5602CF873669A9D4FFAC3D3B8528C3CEE_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___value0, const RuntimeMethod* method) { { // public WorldAnchor worldAnchor { get; set; } WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_0 = ___value0; __this->set_U3CworldAnchorU3Ek__BackingField_9(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_numUpdatesBeforeRemoval_m6F510DAD1B7465439C2D15C640FF4F0C2FB004BA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // get { return m_NumUpdatesBeforeRemoval; } int32_t L_0 = __this->get_m_NumUpdatesBeforeRemoval_13(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, int32_t ___value0, const RuntimeMethod* method) { { // public int remainingUpdatesToLive { get; set; } int32_t L_0 = ___value0; __this->set_U3CremainingUpdatesToLiveU3Ek__BackingField_4(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * SpatialMappingBase_get_selectedCamera_mE3E4571F7EAF1DF70B6762BC57B6CBAFCB17E834_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // protected Camera selectedCamera { get; set; } Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = __this->get_U3CselectedCameraU3Ek__BackingField_21(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method) { { // return m_SurfacesToRemoveFromDict; List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_0 = __this->get_m_SurfacesToRemoveFromDict_24(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t Surface_get_remainingUpdatesToLive_m5D45BD30D4CCCAF01FDC1E4D6ACA402AF2E5C1B4_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public int remainingUpdatesToLive { get; set; } int32_t L_0 = __this->get_U3CremainingUpdatesToLiveU3Ek__BackingField_4(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool Surface_get_awaitingBake_m3B199586E0066144D8986804B73E5BDE97FEEB40_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public bool awaitingBake { get; set; } bool L_0 = __this->get_U3CawaitingBakeU3Ek__BackingField_5(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 Surface_get_updateTime_m580ACCD9FDFE2AFE4A982ED12B8B1FC47FACE842_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public System.DateTime updateTime { get; set; } DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_0 = __this->get_U3CupdateTimeU3Ek__BackingField_1(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bakePhysics_m33D62027F99886807A3AD366148A4605E0DF45BB_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method) { { // m_BakePhysics = value; bool L_0 = ___value0; __this->set_m_BakePhysics_15(L_0); // } return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method) { { // return m_Layer; int32_t L_0 = __this->get_m_Layer_28(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method) { { // return m_Material; PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_0 = __this->get_m_Material_29(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public MeshCollider meshCollider { get; set; } MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_0 = __this->get_U3CmeshColliderU3Ek__BackingField_8(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshCollider_m2928D4F59FDD43EDBA2C0A46D5B66BFFB80DAD5B_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___value0, const RuntimeMethod* method) { { // public MeshCollider meshCollider { get; set; } MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_0 = ___value0; __this->set_U3CmeshColliderU3Ek__BackingField_8(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingCollider_get_enableCollisions_m7F553859CFEE41A8A022EC44E5132A57EB557164_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method) { { // return m_EnableCollisions; bool L_0 = __this->get_m_EnableCollisions_30(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method) { { // public MeshRenderer meshRenderer { get; set; } MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_0 = __this->get_U3CmeshRendererU3Ek__BackingField_7(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___value0, const RuntimeMethod* method) { { // public MeshRenderer meshRenderer { get; set; } MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_0 = ___value0; __this->set_U3CmeshRendererU3Ek__BackingField_7(L_0); return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingRenderer_get_renderState_m1ECB7DED90F00AF9947CC552372FACC39692D84D_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method) { { // return m_CurrentRenderState; int32_t L_0 = __this->get_m_CurrentRenderState_28(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_occlusionMaterial_m7F15BD9F8CEA72EA91A03FBE74B8DEA2E3ADB609_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method) { { // return m_OcclusionMaterial; Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = __this->get_m_OcclusionMaterial_30(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_visualMaterial_mBFDEB3C06FA62BF6BA399F46B98FECC0E11F9AAC_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method) { { // return m_VisualMaterial; Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = __this->get_m_VisualMaterial_29(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_occlusionMaterial_m6600CD1C60856651B8E939DA904984ED9DD82D51_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method) { { // m_OcclusionMaterial = value; Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = ___value0; __this->set_m_OcclusionMaterial_30(L_0); // } return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_visualMaterial_m439EE5826EC8650A9051CE8878A4DE6E62BAA37E_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method) { { // m_VisualMaterial = value; Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = ___value0; __this->set_m_VisualMaterial_29(L_0); // } return; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE Enumerator_get_Current_mD6B1E9D5866E377F8CAD19D88CECDB8AA7016553_gshared_inline (Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF * __this, const RuntimeMethod* method) { { KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE L_0 = (KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE )__this->get_current_3(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR RuntimeObject * KeyValuePair_2_get_Value_m6111F7FFB9F9E80C559084882040115B4F3DFF8E_gshared_inline (KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE * __this, const RuntimeMethod* method) { { RuntimeObject * L_0 = (RuntimeObject *)__this->get_value_1(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t KeyValuePair_2_get_Key_m3A05638ECF11AC4B452C86801F0A7263344AB2AC_gshared_inline (KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE * __this, const RuntimeMethod* method) { { int32_t L_0 = (int32_t)__this->get_key_0(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_gshared_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, int32_t ___index0, const RuntimeMethod* method) { { int32_t L_0 = ___index0; int32_t L_1 = (int32_t)__this->get__size_2(); if ((!(((uint32_t)L_0) >= ((uint32_t)L_1)))) { goto IL_000e; } } { ThrowHelper_ThrowArgumentOutOfRangeException_mBA2AF20A35144E0C43CD721A22EAC9FCA15D6550(/*hidden argument*/NULL); } IL_000e: { Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_2 = (Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)__this->get__items_1(); int32_t L_3 = ___index0; int32_t L_4 = IL2CPP_ARRAY_UNSAFE_LOAD((Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)L_2, (int32_t)L_3); return L_4; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_gshared_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method) { { int32_t L_0 = (int32_t)__this->get__size_2(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_gshared_inline (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method) { { SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_0 = (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C )__this->get_current_3(); return L_0; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_gshared_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, int32_t ___index0, const RuntimeMethod* method) { { int32_t L_0 = ___index0; int32_t L_1 = (int32_t)__this->get__size_2(); if ((!(((uint32_t)L_0) >= ((uint32_t)L_1)))) { goto IL_000e; } } { ThrowHelper_ThrowArgumentOutOfRangeException_mBA2AF20A35144E0C43CD721A22EAC9FCA15D6550(/*hidden argument*/NULL); } IL_000e: { SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* L_2 = (SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1*)__this->get__items_1(); int32_t L_3 = ___index0; SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_4 = IL2CPP_ARRAY_UNSAFE_LOAD((SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1*)L_2, (int32_t)L_3); return L_4; } } IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_gshared_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method) { { int32_t L_0 = (int32_t)__this->get__size_2(); return L_0; } }
59.397708
556
0.85588
helenchg
8116917d295839056760121833fb24df9da26bde
587
hpp
C++
pythran/pythonic/__builtin__/str/startswith.hpp
Pikalchemist/Pythran
17d4108b56b3b365e089a4e1b01a09eb7e12942b
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/__builtin__/str/startswith.hpp
Pikalchemist/Pythran
17d4108b56b3b365e089a4e1b01a09eb7e12942b
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/__builtin__/str/startswith.hpp
Pikalchemist/Pythran
17d4108b56b3b365e089a4e1b01a09eb7e12942b
[ "BSD-3-Clause" ]
1
2017-03-12T20:32:36.000Z
2017-03-12T20:32:36.000Z
#ifndef PYTHONIC_STR_STARTSWITH_HPP #define PYTHONIC_STR_STARTSWITH_HPP #include "pythonic/utils/proxy.hpp" #include "pythonic/types/str.hpp" namespace pythonic { namespace __builtin__ { namespace str { bool startswith(types::str const& s, types::str const& prefix, long start=0, size_t end=std::string::npos) { if(end == std::string::npos) end = s.size(); return (end - start) >= prefix.size() and s.compare(start, prefix.size(), prefix) == 0; } PROXY(pythonic::__builtin__::str, startswith); } } } #endif
24.458333
116
0.635434
Pikalchemist
81169223eefcf79d0dd3c76c611547a51587916b
866
cpp
C++
1.6/src/main.cpp
ckilimci/Questions
1d9ffaccd96c9ad2d7fa5e6c88e1c729b255d54a
[ "MIT" ]
null
null
null
1.6/src/main.cpp
ckilimci/Questions
1d9ffaccd96c9ad2d7fa5e6c88e1c729b255d54a
[ "MIT" ]
null
null
null
1.6/src/main.cpp
ckilimci/Questions
1d9ffaccd96c9ad2d7fa5e6c88e1c729b255d54a
[ "MIT" ]
null
null
null
#include <iostream> #include <sstream> using namespace std; string shrinkString(string s) { stringstream ss; int count=0; char current=0, reg=0; for(int i=0; i<s.length(); i++) { current = s[i]; if (current == reg) { count++; continue; } else if (reg != 0) { ss << reg << count; } reg = current; count = 1; } ss << reg << count; string result = ss.str(); if (result.length() < s.length()) { return result; } return s; } int main(int argc, char const *argv[]) { cout<< "Question 6:" << endl; cout<< "Shrink string with repetitive letters." << endl; string s = "aabccccccccccccccccddaab"; cout << "The original string: " << s << endl; cout << "The shrunk string : " << shrinkString(s) << endl; return 0; }
22.205128
63
0.518476
ckilimci
811afd2702651d93ded2d6997e8ce546af8a7855
347
cpp
C++
mgasa.cpp
jhembe/cp_111_assignments
415dc777d8e4704485b5c5092b56726a1ab063ae
[ "MIT" ]
null
null
null
mgasa.cpp
jhembe/cp_111_assignments
415dc777d8e4704485b5c5092b56726a1ab063ae
[ "MIT" ]
null
null
null
mgasa.cpp
jhembe/cp_111_assignments
415dc777d8e4704485b5c5092b56726a1ab063ae
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; int main(){ int numb1; int numb2; int numb3; int sum; cout<<"Enter numb1"<<endl; cin>>numb1; cout<<"Enter numb2"<<endl; cin>>numb2; cout<<"Enter numb3"<<endl; cin>>numb3; sum=(numb1+numb2+numb3); cout<<"the value of sum:"<<sum<<endl; return 0; }
14.458333
42
0.564841
jhembe
81230662ad67feb5f68974392aceb162c4a7bf77
1,299
cpp
C++
src/engine/ResultTable.cpp
Tobias-Buerger/QLever
6376b0e2022da702417e15bbc9701fedf35c31d0
[ "Apache-2.0" ]
6
2016-12-22T12:45:22.000Z
2018-01-11T05:40:39.000Z
src/engine/ResultTable.cpp
Tobias-Buerger/QLever
6376b0e2022da702417e15bbc9701fedf35c31d0
[ "Apache-2.0" ]
24
2017-01-03T00:01:37.000Z
2018-03-05T09:03:11.000Z
src/engine/ResultTable.cpp
Tobias-Buerger/QLever
6376b0e2022da702417e15bbc9701fedf35c31d0
[ "Apache-2.0" ]
5
2017-04-27T07:19:05.000Z
2018-03-08T10:43:35.000Z
// Copyright 2015, University of Freiburg, // Chair of Algorithms and Data Structures. // Author: Björn Buchhold ([email protected]) #include "./ResultTable.h" #include <cassert> // _____________________________________________________________________________ ResultTable::ResultTable() : _sortedBy(), _resultTypes(), _localVocab(std::make_shared<std::vector<std::string>>()), _status(ResultTable::IN_PROGRESS) {} // _____________________________________________________________________________ void ResultTable::clear() { _localVocab = nullptr; _data.clear(); _status = IN_PROGRESS; } // _____________________________________________________________________________ ResultTable::~ResultTable() { clear(); } // _____________________________________________________________________________ string ResultTable::asDebugString() const { std::ostringstream os; os << "First (up to) 5 rows of result with size:\n"; for (size_t i = 0; i < std::min<size_t>(5, _data.size()); ++i) { for (size_t j = 0; j < _data.cols(); ++j) { os << _data(i, j) << '\t'; } os << '\n'; } return os.str(); } // _____________________________________________________________________________ size_t ResultTable::size() const { return _data.size(); }
32.475
80
0.732102
Tobias-Buerger
8124ef82aea1bec48968752c59b8c5f796046319
2,035
cpp
C++
ParamedicCommander.cpp
yarden7696/wargame
03f9b0b61388c99790a6ef188777fbca75de29ae
[ "MIT" ]
null
null
null
ParamedicCommander.cpp
yarden7696/wargame
03f9b0b61388c99790a6ef188777fbca75de29ae
[ "MIT" ]
null
null
null
ParamedicCommander.cpp
yarden7696/wargame
03f9b0b61388c99790a6ef188777fbca75de29ae
[ "MIT" ]
null
null
null
#include "ParamedicCommander.hpp" using namespace std; // .כמו חובש, אבל כשהוא זז, כל החובשים של אותו שחקן מרפאים את החיילים שנמצאים לידם void ParamedicCommander :: attack(vector<vector<Soldier *>> &board, pair<int, int> location) { Soldier *prmdComndr_src = board[location.first][location.second]; // the ParamedicCommander (that need to shoot) in location position int i=location.first; int j=location.second; for (int i = 0; i < board.size(); i++) { for (int j = 0; j < board[0].size(); j++) { Soldier *s_temp = board[i][j]; // create solider in (i,j) position if(s_temp != nullptr) { // if (i,j) position!= nullptr so- if(Paramedic *pemdc = dynamic_cast<Paramedic*> (s_temp)) { //check if s_temp from type Paramedic, is true we do casting // that s_temp pointer with type Paramedic ParamedicCommander *prmdComndr_temp = dynamic_cast<ParamedicCommander*> (s_temp); //check if s_temp from type ParamedicCommander, // if false we get nullptr, else- we do casting that s_temp pointer with type ParamedicCommander(we wont false) if (prmdComndr_temp == nullptr || ( i == location.first && j == location.second)) { // if we found prmdComndr_src position or prmdComndr_temp == nullptr if (pemdc->getNum() == prmdComndr_src->getNum()) { // if they in the same group, so- if (pemdc != nullptr){ // thats mean its Paramedic there pemdc->Paramedic::attack(board , {i,j}); // now pemdc cure caz he is Paramedic } } } } } } } }
50.875
195
0.499754
yarden7696
81258ce8d398c47b1ced3a83fc9996396df76a3e
11,331
cc
C++
source/mutableSources32/marbles/ramp/ramp_extractor.cc
v7b1/vb.mi-dev
af141104699fba2aa35938f33300f5e3b42dffb4
[ "MIT" ]
47
2020-05-11T09:45:44.000Z
2022-03-17T22:12:53.000Z
source/mutableSources32/marbles/ramp/ramp_extractor.cc
robtherich/vb.mi-dev
4497b5917ed9680a170d3c9b87ac34e525e65978
[ "MIT" ]
2
2021-04-07T09:14:37.000Z
2022-01-25T09:00:07.000Z
source/mutableSources32/marbles/ramp/ramp_extractor.cc
robtherich/vb.mi-dev
4497b5917ed9680a170d3c9b87ac34e525e65978
[ "MIT" ]
6
2020-08-06T11:09:18.000Z
2021-12-10T14:37:02.000Z
// Copyright 2015 Emilie Gillet. // // Author: Emilie Gillet ([email protected]) // // 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. // // See http://creativecommons.org/licenses/MIT/ for more information. // // ----------------------------------------------------------------------------- // // Recovers a ramp from a clock input by guessing at what time the next edge // will occur. Prediction strategies: // - Moving average of previous intervals. // - Trigram model on quantized intervals. // - Periodic rhythmic pattern. // - Assume that the pulse width is constant, deduct the period from the on time // and the pulse width. #include "marbles/ramp/ramp_extractor.h" #include <algorithm> #include "marbles/ramp/ramp.h" #include "stmlib/dsp/dsp.h" namespace marbles { using namespace std; using namespace stmlib; const float kLogOneFourth = 1.189207115f; const float kPulseWidthTolerance = 0.05f; inline bool IsWithinTolerance(float x, float y, float error) { return x >= y * (1.0f - error) && x <= y * (1.0f + error); } void RampExtractor::Init(float max_frequency) { max_frequency_ = max_frequency; audio_rate_period_ = 1.0f / (100.0f / 32000.0f); audio_rate_period_hysteresis_ = audio_rate_period_; Reset(); } void RampExtractor::Reset() { audio_rate_ = false; train_phase_ = 0.0f; target_frequency_ = frequency_ = 0.0001f; lp_coefficient_ = 0.5f; next_max_train_phase_ = max_train_phase_ = 0.999f; next_f_ratio_ = f_ratio_ = 1.0f; reset_counter_ = 1; reset_frequency_ = 0.0f; reset_interval_ = 32000 * 3; Pulse p; p.bucket = 1; p.on_duration = 2000; p.total_duration = 4000; p.pulse_width = 0.5f; fill(&history_[0], &history_[kHistorySize], p); current_pulse_ = 0; next_bucket_ = 48.0f; average_pulse_width_ = 0.0f; fill(&predicted_period_[0], &predicted_period_[PREDICTOR_LAST], 4000.0f); fill(&prediction_accuracy_[0], &prediction_accuracy_[PREDICTOR_LAST], 0.0f); fill( &prediction_hash_table_[0], &prediction_hash_table_[kHashTableSize], 0.0f); } float RampExtractor::ComputeAveragePulseWidth(float tolerance) const { float sum = 0.0f; for (size_t i = 0; i < kHistorySize; ++i) { if (!IsWithinTolerance(history_[i].pulse_width, history_[current_pulse_].pulse_width, tolerance)) { return 0.0f; } sum += history_[i].pulse_width; } return sum / static_cast<float>(kHistorySize); } RampExtractor::Prediction RampExtractor::PredictNextPeriod() { float last_period = static_cast<float>(history_[current_pulse_].total_duration); Predictor best_predictor = PREDICTOR_FAST_MOVING_AVERAGE; for (int i = PREDICTOR_FAST_MOVING_AVERAGE; i < PREDICTOR_LAST; ++i) { float error = (predicted_period_[i] - last_period) / (last_period + 0.01f); // Scoring function: 10% error is half as good as 0% error. float accuracy = 1.0f / (1.0f + 100.0f * error * error); // Slowly trust good predictors, quickly demote predictors who make errors. SLOPE(prediction_accuracy_[i], accuracy, 0.1f, 0.5f); // (Ugly code but I don't want virtuals for these.) switch (i) { case PREDICTOR_SLOW_MOVING_AVERAGE: ONE_POLE(predicted_period_[i], last_period, 0.1f); break; case PREDICTOR_FAST_MOVING_AVERAGE: ONE_POLE(predicted_period_[i], last_period, 0.5f); break; case PREDICTOR_HASH: { size_t t_2 = (current_pulse_ - 2 + kHistorySize) % kHistorySize; size_t t_1 = (current_pulse_ - 1 + kHistorySize) % kHistorySize; size_t t_0 = current_pulse_; size_t hash = history_[t_1].bucket + 17 * history_[t_2].bucket; ONE_POLE( prediction_hash_table_[hash % kHashTableSize], last_period, 0.5f); hash = history_[t_0].bucket + 17 * history_[t_1].bucket; predicted_period_[i] = prediction_hash_table_[hash % kHashTableSize]; if (predicted_period_[i] == 0.0f) { predicted_period_[i] = last_period; } } break; default: { // Periodicity detector. size_t candidate_period = i - PREDICTOR_PERIOD_1 + 1; size_t t = current_pulse_ + 1 + kHistorySize - candidate_period; predicted_period_[i] = history_[t % kHistorySize].total_duration; } break; } if (prediction_accuracy_[i] >= prediction_accuracy_[best_predictor]) { best_predictor = Predictor(i); } } Prediction p; p.period = predicted_period_[best_predictor]; p.accuracy = prediction_accuracy_[best_predictor]; return p; } bool RampExtractor::Process( Ratio ratio, bool always_ramp_to_maximum, const GateFlags* gate_flags, float* ramp, size_t size) { bool reset_observed = false; while (size--) { GateFlags flags = *gate_flags++; // We are done with the previous pulse. if (flags & GATE_FLAG_RISING) { Pulse& p = history_[current_pulse_]; const bool record_pulse = p.total_duration < reset_interval_; if (!record_pulse) { // Quite a long pause - the clock has probably been stopped // and restarted. reset_frequency_ = 0.0f; train_phase_ = 0.0f; reset_counter_ = ratio.q; reset_interval_ = 4 * p.total_duration; reset_observed = true; } else { float period = float(p.total_duration); if (period <= audio_rate_period_hysteresis_) { audio_rate_ = true; audio_rate_period_hysteresis_ = audio_rate_period_ * 1.1f; average_pulse_width_ = 0.0f; bool no_glide = f_ratio_ != ratio.to_float(); f_ratio_ = ratio.to_float(); float frequency = 1.0f / period; target_frequency_ = std::min(f_ratio_ * frequency, max_frequency_); float up_tolerance = (1.02f + 2.0f * frequency) * frequency_; float down_tolerance = (0.98f - 2.0f * frequency) * frequency_; no_glide |= target_frequency_ > up_tolerance || target_frequency_ < down_tolerance; lp_coefficient_ = no_glide ? 1.0f : period * 0.00001f; } else { audio_rate_ = false; audio_rate_period_hysteresis_ = audio_rate_period_; // Compute the pulse width of the previous pulse, and check if the // PW has been consistent over the past pulses. p.pulse_width = static_cast<float>(p.on_duration) / period; average_pulse_width_ = ComputeAveragePulseWidth(kPulseWidthTolerance); if (p.on_duration < 32) { average_pulse_width_ = 0.0f; } // Try to predict the next interval between pulses. If the prediction // has been reliable over the past pulses, or if the PW is steady, // we'll be able to make reliable prediction about the time at which // the next pulse will occur Prediction prediction = PredictNextPeriod(); frequency_ = 1.0f / prediction.period; --reset_counter_; if (!reset_counter_) { next_f_ratio_ = ratio.to_float() * kMaxRampValue; next_max_train_phase_ = static_cast<float>(ratio.q); if (always_ramp_to_maximum && train_phase_ < max_train_phase_) { reset_frequency_ = \ (0.01f + max_train_phase_ - train_phase_) * 0.0625f; } else { reset_frequency_ = 0.0f; train_phase_ = 0.0f; f_ratio_ = next_f_ratio_; max_train_phase_ = next_max_train_phase_; } reset_counter_ = ratio.q; } else { float expected = max_train_phase_ - static_cast<float>(reset_counter_); float warp = expected - train_phase_ + 1.0f; frequency_ *= max(warp, 0.01f); } } reset_interval_ = static_cast<uint32_t>( std::max(4.0f / target_frequency_, 32000 * 3.0f)); current_pulse_ = (current_pulse_ + 1) % kHistorySize; } history_[current_pulse_].on_duration = 0; history_[current_pulse_].total_duration = 0; history_[current_pulse_].bucket = 0; next_bucket_ = 48.0f; } // Update history buffer with total duration and on duration. ++history_[current_pulse_].total_duration; if (flags & GATE_FLAG_HIGH) { ++history_[current_pulse_].on_duration; } if (float(history_[current_pulse_].total_duration) >= next_bucket_) { ++history_[current_pulse_].bucket; next_bucket_ *= kLogOneFourth; } // If the pulse width is constant, and if a clock falling edge is // detected, estimate the period using the on time and the pulse width, // and correct the phase increment accordingly. if ((flags & GATE_FLAG_FALLING) && average_pulse_width_ > 0.0f) { float t_on = static_cast<float>(history_[current_pulse_].on_duration); float next = max_train_phase_ - static_cast<float>(reset_counter_) + 1.0f; float pw = average_pulse_width_; frequency_ = max((next - train_phase_), 0.0f) * pw / ((1.0f - pw) * t_on); } if (audio_rate_) { ONE_POLE(frequency_, target_frequency_, lp_coefficient_); train_phase_ += frequency_; if (train_phase_ >= 1.0f) { train_phase_ -= 1.0f; } *ramp++ = train_phase_; } else { if (reset_frequency_) { train_phase_ += reset_frequency_; if (train_phase_ >= max_train_phase_) { train_phase_ = 0.0f; reset_frequency_ = 0.0f; f_ratio_ = next_f_ratio_; max_train_phase_ = next_max_train_phase_; } } else { train_phase_ += frequency_; if (train_phase_ >= max_train_phase_) { if (frequency_ == max_frequency_) { train_phase_ -= max_train_phase_; } else { train_phase_ = max_train_phase_; } } } float output_phase = train_phase_ * f_ratio_; output_phase -= static_cast<float>(static_cast<int>(output_phase)); *ramp++ = output_phase; } } return reset_observed; } } // namespace marbles
35.857595
83
0.639043
v7b1
81259d02f302215e3b7c4124436ddb712fd48748
257
cpp
C++
deps/unrar/smallfn.cpp
Masha/hashcat
178003d692ab72abfd9588fdce9e4f569d2b1aa7
[ "MIT" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
deps/unrar/smallfn.cpp
Masha/hashcat
178003d692ab72abfd9588fdce9e4f569d2b1aa7
[ "MIT" ]
2,014
2015-12-04T16:45:36.000Z
2022-03-31T21:02:58.000Z
deps/unrar/smallfn.cpp
Masha/hashcat
178003d692ab72abfd9588fdce9e4f569d2b1aa7
[ "MIT" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#include "rar.hpp" int ToPercent(int64 N1,int64 N2) { if (N2<N1) return 100; return ToPercentUnlim(N1,N2); } // Allows the percent larger than 100. int ToPercentUnlim(int64 N1,int64 N2) { if (N2==0) return 0; return (int)(N1*100/N2); }
12.85
38
0.645914
Masha
81280d632353b1e8418ffcab4c954f356fe2a864
5,716
cpp
C++
Game Engine/src/NetworkManager.cpp
aprithul/Prengine
7aff20bb73ab21e9e11dda1985e6b22992479f0d
[ "BSD-3-Clause" ]
1
2019-10-08T05:20:30.000Z
2019-10-08T05:20:30.000Z
Game Engine/src/NetworkManager.cpp
aprithul/PrEngine
7aff20bb73ab21e9e11dda1985e6b22992479f0d
[ "BSD-3-Clause" ]
null
null
null
Game Engine/src/NetworkManager.cpp
aprithul/PrEngine
7aff20bb73ab21e9e11dda1985e6b22992479f0d
[ "BSD-3-Clause" ]
null
null
null
#if PLATFORM != PLATFORM_WINDOWS #include "NetworkManager.hpp" namespace PrEngine { bool InitializeSockets() { #if PLATFORM == PLATFORM_WINDOWS WSADATA WsaData; return WSAStartup( MAKEWORD(2,2), &WsaData ) == NO_ERROR; #else return true; #endif } void ShutdownSockets() { #if PLATFORM == PLATFORM_WINDOWS WSACleanup(); #endif } Socket::Socket() { InitializeSockets(); // create a socket handle = socket( AF_INET, SOCK_DGRAM, IPPROTO_UDP ); if ( handle <= 0 ) { LOG( LOGTYPE_ERROR, "failed to create socket" ); } else LOG(LOGTYPE_GENERAL, "Socket handle: ", std::to_string(handle)); } Socket::~Socket() { ShutdownSockets(); #if PLATFORM == PLATFORM_MAC || PLATFORM == PLATFORM_UNIX close( handle ); #elif PLATFORM == PLATFORM_WINDOWS closesocket( handle ); #endif } bool Socket::Open(unsigned short port) { sockaddr_in address; address.sin_family = AF_INET; address.sin_addr.s_addr = INADDR_ANY; address.sin_port = htons( (unsigned short) port ); if ( bind( handle, (const sockaddr*) &address, sizeof(sockaddr_in) ) < 0 ) { LOG( LOGTYPE_ERROR, "failed to bind socket : ", std::to_string(errno), std::string(" | "),std::string(strerror(errno))); return false; } #if PLATFORM == PLATFORM_MAC || PLATFORM == PLATFORM_UNIX int nonBlocking = 1; if ( fcntl( handle, F_SETFL, O_NONBLOCK, nonBlocking ) == -1 ) { printf( "failed to set non-blocking\n" ); return false; } #elif PLATFORM == PLATFORM_WINDOWS DWORD nonBlocking = 1; if ( ioctlsocket( handle, FIONBIO, &nonBlocking ) != 0 ) { printf( "failed to set non-blocking\n" ); return false; } #endif return true; } bool Socket::Send(const Address& destination, const Packet* packet, int size) { int sent_bytes = sendto( handle, packet, size, 0, (sockaddr*)&(destination.address), sizeof(sockaddr_in) ); if ( sent_bytes != size ) { LOG( LOGTYPE_ERROR, "failed to send packet" ); return false; } else { LOG( LOGTYPE_GENERAL, "packet sent"); } } int Socket::Receive(Address &sender, Packet* packet, int size) { return -1; } int Socket::Receive(Address & sender, Packet * packet, int size) { #if PLATFORM == PLATFORM_WINDOWS typedef int socklen_t; #endif sockaddr_in from; socklen_t fromLength = sizeof( from ); int bytes = recvfrom( handle, packet, size, 0, (sockaddr*)&from, &fromLength ); if ( bytes <= 0 ) return 0; unsigned int from_address = ntohl( from.sin_addr.s_addr ); unsigned int from_port = ntohs( from.sin_port ); return bytes; } //////////////??ADDRESS///////// Address::Address(unsigned char a, unsigned char b, unsigned char c, unsigned char d, unsigned short port) { unsigned int _address = ( a << 24 ) | ( b << 16 ) | ( c << 8 ) | d; address.sin_family = AF_INET; address.sin_addr.s_addr = htonl( _address ); address.sin_port = htons( port ); } Address::Address() { } NetworkManager::NetworkManager(const std::string& name, int priority) :Module(name,priority) { } NetworkManager::~NetworkManager() { } void NetworkManager::start() { if ( !socket.Open( port ) ) { printf( "failed to create socket!\n" ); return; } // send a packet Packet packet; packet.protocl_id = 1100; packet.sequence_number = 1; packet.ack = 0; packet.bit_filed = 0x00; packet.data[0] = 'H'; packet.data[1] = 'E'; packet.data[2] = 'L'; packet.data[3] = 'L'; packet.data[4] = 'O'; packet.data[5] = '\0'; std::cout<<"sending: "<<sizeof( packet )<<" bytes"<<std::endl; socket.Send( Address(127,0,0,1,port), &packet, sizeof( packet ) ); } void NetworkManager::update() { Address sender; Packet packet; int bytes_read = socket.Receive( sender, &packet, sizeof( packet ) ); //if ( !bytes_read ) if( bytes_read > 96) { LOG(LOGTYPE_GENERAL, "Data received! ",std::to_string(bytes_read)); std::cout<<packet.data<<std::endl; std::cout<<std::endl; } // process packet } void NetworkManager::end() { } } #endif
24.960699
133
0.455913
aprithul
81285d1a83485d388a7d0290e843707c3fad95c6
1,421
hpp
C++
boost/test/utils/runtime/cla/fwd.hpp
UnPourTous/boost-159-for-rn
47e2c37fcbd5e1b25561e5a4fc81bc4f31d2cbf4
[ "BSL-1.0" ]
2
2021-08-08T02:06:56.000Z
2021-12-20T02:16:44.000Z
include/boost/test/utils/runtime/cla/fwd.hpp
Acidburn0zzz/PopcornTorrent-1
c12a30ef9e971059dae5f7ce24a8c37fef83c0c4
[ "MIT" ]
null
null
null
include/boost/test/utils/runtime/cla/fwd.hpp
Acidburn0zzz/PopcornTorrent-1
c12a30ef9e971059dae5f7ce24a8c37fef83c0c4
[ "MIT" ]
1
2017-04-09T17:04:14.000Z
2017-04-09T17:04:14.000Z
// (C) Copyright Gennadiy Rozental 2005-2014. // Use, modification, and distribution are subject to 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) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // // Version : $Revision$ // // Description : cla subsystem forward declarations // *************************************************************************** #ifndef BOOST_TEST_UTILS_RUNTIME_CLA_FWD_HPP #define BOOST_TEST_UTILS_RUNTIME_CLA_FWD_HPP // Boost.Runtime.Parameter #include <boost/test/utils/runtime/config.hpp> // Boost #include <boost/shared_ptr.hpp> namespace boost { namespace BOOST_TEST_UTILS_RUNTIME_PARAM_NAMESPACE { namespace cla { class parser; class parameter; typedef shared_ptr<parameter> parameter_ptr; class naming_policy; typedef shared_ptr<naming_policy> naming_policy_ptr; class argv_traverser; namespace rt_cla_detail { template<typename T> class const_generator; template<typename T> class ref_generator; template<typename T> class assigner; class named_parameter_base; class positional_parameter_base; } // namespace rt_cla_detail } // namespace cla } // namespace BOOST_TEST_UTILS_RUNTIME_PARAM_NAMESPACE } // namespace boost #endif // BOOST_TEST_UTILS_RUNTIME_CLA_FWD_HPP
25.375
79
0.707248
UnPourTous
812c39fc7afee61f2f54bd8815b5a4a0fed9cd6c
4,843
cpp
C++
src/cli/cmd_option_value.cpp
tangzhenquan/atframe_utils
94a41a89cbc65a62102a8ac0f98b4b340b2bb8ef
[ "MIT" ]
null
null
null
src/cli/cmd_option_value.cpp
tangzhenquan/atframe_utils
94a41a89cbc65a62102a8ac0f98b4b340b2bb8ef
[ "MIT" ]
null
null
null
src/cli/cmd_option_value.cpp
tangzhenquan/atframe_utils
94a41a89cbc65a62102a8ac0f98b4b340b2bb8ef
[ "MIT" ]
null
null
null
/* * cmd_option_value.cpp * * Created on: 2011-12-29 * Author: OWenT * * 应用程序命令处理 * */ #include "cli/cmd_option_value.h" #include <algorithm> namespace util { namespace cli { namespace detail { static char tolower(char c) { if (c >= 'A' && c <= 'Z') { return c - 'A' + 'a'; } return c; } } LIBATFRAME_UTILS_API cmd_option_value::cmd_option_value(const char *str_data) : data_(str_data) {} LIBATFRAME_UTILS_API cmd_option_value::cmd_option_value(const char *begin, const char *end) { data_.assign(begin, end); } LIBATFRAME_UTILS_API cmd_option_value::cmd_option_value(const std::string& str_data) { data_ = str_data; } LIBATFRAME_UTILS_API const std::string &cmd_option_value::to_cpp_string() const { return data_; } LIBATFRAME_UTILS_API bool cmd_option_value::to_bool() const { return to<bool>(); } LIBATFRAME_UTILS_API char cmd_option_value::to_char() const { return to<char>(); } LIBATFRAME_UTILS_API short cmd_option_value::to_short() const { return to<short>(); } LIBATFRAME_UTILS_API int cmd_option_value::to_int() const { return to<int>(); } LIBATFRAME_UTILS_API long cmd_option_value::to_long() const { return to<long>(); } LIBATFRAME_UTILS_API long long cmd_option_value::to_longlong() const { return to<long long>(); } LIBATFRAME_UTILS_API double cmd_option_value::to_double() const { return to<double>(); } LIBATFRAME_UTILS_API float cmd_option_value::to_float() const { return to<float>(); } LIBATFRAME_UTILS_API const char *cmd_option_value::to_string() const { return data_.c_str(); } // ============ unsigned ============ LIBATFRAME_UTILS_API unsigned char cmd_option_value::to_uchar() const { return to<unsigned char>(); } LIBATFRAME_UTILS_API unsigned short cmd_option_value::to_ushort() const { return to<unsigned short>(); } LIBATFRAME_UTILS_API unsigned int cmd_option_value::to_uint() const { return to<unsigned int>(); } LIBATFRAME_UTILS_API unsigned long cmd_option_value::to_ulong() const { return to<unsigned long>(); } LIBATFRAME_UTILS_API unsigned long long cmd_option_value::to_ulonglong() const { return to<unsigned long long>(); } LIBATFRAME_UTILS_API int8_t cmd_option_value::to_int8() const { return static_cast<int8_t>(to_int()); } LIBATFRAME_UTILS_API uint8_t cmd_option_value::to_uint8() const { return static_cast<uint8_t>(to_uint()); } LIBATFRAME_UTILS_API int16_t cmd_option_value::to_int16() const { return to<int16_t>(); } LIBATFRAME_UTILS_API uint16_t cmd_option_value::to_uint16() const { return to<uint16_t>(); } LIBATFRAME_UTILS_API int32_t cmd_option_value::to_int32() const { return to<int32_t>(); } LIBATFRAME_UTILS_API uint32_t cmd_option_value::to_uint32() const { return to<uint32_t>(); } LIBATFRAME_UTILS_API int64_t cmd_option_value::to_int64() const { return to<int64_t>(); } LIBATFRAME_UTILS_API uint64_t cmd_option_value::to_uint64() const { return to<uint64_t>(); } LIBATFRAME_UTILS_API bool cmd_option_value::to_logic_bool() const { std::string lowercase_content = data_; std::transform(lowercase_content.begin(), lowercase_content.end(), lowercase_content.begin(), detail::tolower); if (lowercase_content.empty()) { return false; } if ("no" == lowercase_content || "false" == lowercase_content || "disabled" == lowercase_content || "disable" == lowercase_content || "0" == lowercase_content) { return false; } return true; } LIBATFRAME_UTILS_API void cmd_option_value::split(char delim, std::vector<cmd_option_value>& out) { size_t len = 1; for (size_t i = 0; i < data_.size(); ++ i) { if (delim == data_[i]) { ++ len; } } out.reserve(len); size_t begin_pos = 0; size_t end_pos = 0; while (end_pos != std::string::npos && begin_pos < data_.size()) { end_pos = data_.find(delim, begin_pos); if (end_pos == std::string::npos && begin_pos < data_.size()) { out.push_back(cmd_option_value(&data_[begin_pos])); begin_pos = end_pos; } else { out.push_back(cmd_option_value(&data_[begin_pos], &data_[end_pos])); begin_pos = end_pos + 1; } } } } }
41.042373
130
0.604584
tangzhenquan
812d4827f4ecc97274ec8637d697331f3810a84b
11,784
cc
C++
engine/source/game/gameConnection.cc
Sednari/twitch-tutorial-flappy-birds
9aaed1cea2ef24ef6a5212c3350db17a017142fe
[ "MIT" ]
1,309
2015-01-01T02:46:14.000Z
2022-03-14T04:56:02.000Z
engine/source/game/gameConnection.cc
Sednari/twitch-tutorial-flappy-birds
9aaed1cea2ef24ef6a5212c3350db17a017142fe
[ "MIT" ]
155
2015-01-11T19:26:32.000Z
2021-11-22T04:08:55.000Z
engine/source/game/gameConnection.cc
Sednari/twitch-tutorial-flappy-birds
9aaed1cea2ef24ef6a5212c3350db17a017142fe
[ "MIT" ]
1,595
2015-01-01T23:19:48.000Z
2022-02-17T07:00:52.000Z
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // 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 "platform/platform.h" #include "network/connectionProtocol.h" #include "console/consoleTypes.h" #include "sim/simBase.h" #include "io/bitStream.h" #include "game/gameConnection.h" #include "io/resource/resourceManager.h" #include "gameConnection_ScriptBinding.h" //---------------------------------------------------------------------------- #define MAX_MOVE_PACKET_SENDS 4 #define ControlRequestTime 5000 const U32 GameConnection::CurrentProtocolVersion = 12; const U32 GameConnection::MinRequiredProtocolVersion = 12; //---------------------------------------------------------------------------- IMPLEMENT_CONOBJECT(GameConnection); S32 GameConnection::mLagThresholdMS = 0; //---------------------------------------------------------------------------- GameConnection::GameConnection() { mLagging = false; mAuthInfo = NULL; mConnectArgc = 0; for(U32 i = 0; i < MaxConnectArgs; i++) mConnectArgv[i] = 0; mJoinPassword = NULL; mDisconnectReason[0] = 0; } GameConnection::~GameConnection() { delete mAuthInfo; for(U32 i = 0; i < mConnectArgc; i++) dFree(mConnectArgv[i]); dFree(mJoinPassword); } //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- bool GameConnection::canRemoteCreate() { return true; } void GameConnection::setConnectArgs(U32 argc, const char **argv) { if(argc > MaxConnectArgs) argc = MaxConnectArgs; mConnectArgc = argc; for(U32 i = 0; i < mConnectArgc; i++) mConnectArgv[i] = dStrdup(argv[i]); } void GameConnection::setJoinPassword(const char *password) { mJoinPassword = dStrdup(password); } void GameConnection::onTimedOut() { if(isConnectionToServer()) { Con::printf("Connection to server timed out"); Con::executef(this, 1, "onConnectionTimedOut"); } else { Con::printf("Client %d timed out.", getId()); setDisconnectReason("TimedOut"); } } void GameConnection::onConnectionEstablished(bool isInitiator) { if(isInitiator) { setGhostFrom(false); setGhostTo(true); setSendingEvents(true); setTranslatesStrings(true); setIsConnectionToServer(); mServerConnection = this; Con::printf("Connection established %d", getId()); Con::executef(this, 1, "onConnectionAccepted"); } else { setGhostFrom(true); setGhostTo(false); setSendingEvents(true); setTranslatesStrings(true); Sim::getClientGroup()->addObject(this); const char *argv[MaxConnectArgs + 2]; argv[0] = "onConnect"; for(U32 i = 0; i < mConnectArgc; i++) argv[i + 2] = mConnectArgv[i]; Con::execute(this, mConnectArgc + 2, argv); } } void GameConnection::onConnectTimedOut() { Con::executef(this, 1, "onConnectRequestTimedOut"); } void GameConnection::onDisconnect(const char *reason) { if(isConnectionToServer()) { Con::printf("Connection with server lost."); Con::executef(this, 2, "onConnectionDropped", reason); } else { Con::printf("Client %d disconnected.", getId()); setDisconnectReason(reason); } } void GameConnection::onConnectionRejected(const char *reason) { Con::executef(this, 2, "onConnectRequestRejected", reason); } void GameConnection::handleStartupError(const char *errorString) { Con::executef(this, 2, "onConnectRequestRejected", errorString); } void GameConnection::writeConnectAccept(BitStream *stream) { Parent::writeConnectAccept(stream); stream->write(getProtocolVersion()); } bool GameConnection::readConnectAccept(BitStream *stream, const char **errorString) { if(!Parent::readConnectAccept(stream, errorString)) return false; U32 protocolVersion; stream->read(&protocolVersion); if(protocolVersion < MinRequiredProtocolVersion || protocolVersion > CurrentProtocolVersion) { *errorString = "CHR_PROTOCOL"; // this should never happen unless someone is faking us out. return false; } return true; } void GameConnection::writeConnectRequest(BitStream *stream) { Parent::writeConnectRequest(stream); stream->writeString(GameString); stream->write(CurrentProtocolVersion); stream->write(MinRequiredProtocolVersion); stream->writeString(mJoinPassword); stream->write(mConnectArgc); for(U32 i = 0; i < mConnectArgc; i++) stream->writeString(mConnectArgv[i]); } bool GameConnection::readConnectRequest(BitStream *stream, const char **errorString) { if(!Parent::readConnectRequest(stream, errorString)) return false; U32 currentProtocol, minProtocol; char gameString[256]; stream->readString(gameString); if(dStrcmp(gameString, GameString)) { *errorString = "CHR_GAME"; return false; } stream->read(&currentProtocol); stream->read(&minProtocol); char joinPassword[256]; stream->readString(joinPassword); if(currentProtocol < MinRequiredProtocolVersion) { *errorString = "CHR_PROTOCOL_LESS"; return false; } if(minProtocol > CurrentProtocolVersion) { *errorString = "CHR_PROTOCOL_GREATER"; return false; } setProtocolVersion(currentProtocol < CurrentProtocolVersion ? currentProtocol : CurrentProtocolVersion); const char *serverPassword = Con::getVariable("Pref::Server::Password"); if(serverPassword[0]) { if(dStrcmp(joinPassword, serverPassword)) { *errorString = "CHR_PASSWORD"; return false; } } stream->read(&mConnectArgc); if(mConnectArgc > MaxConnectArgs) { *errorString = "CR_INVALID_ARGS"; return false; } const char *connectArgv[MaxConnectArgs + 3]; for(U32 i = 0; i < mConnectArgc; i++) { char argString[256]; stream->readString(argString); mConnectArgv[i] = dStrdup(argString); connectArgv[i + 3] = mConnectArgv[i]; } connectArgv[0] = "onConnectRequest"; char buffer[256]; Net::addressToString(getNetAddress(), buffer); connectArgv[2] = buffer; const char *ret = Con::execute(this, mConnectArgc + 3, connectArgv); if(ret[0]) { *errorString = ret; return false; } return true; } //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- void GameConnection::connectionError(const char *errorString) { if(isConnectionToServer()) { Con::printf("Connection error: %s.", errorString); Con::executef(this, 2, "onConnectionError", errorString); } else { Con::printf("Client %d packet error: %s.", getId(), errorString); setDisconnectReason("Packet Error."); } deleteObject(); } void GameConnection::setAuthInfo(const AuthInfo *info) { mAuthInfo = new AuthInfo; *mAuthInfo = *info; } const AuthInfo *GameConnection::getAuthInfo() { return mAuthInfo; } //---------------------------------------------------------------------------- bool GameConnection::onAdd() { if (!Parent::onAdd()) return false; return true; } void GameConnection::onRemove() { if(isNetworkConnection()) { sendDisconnectPacket(mDisconnectReason); } if(!isConnectionToServer()) Con::executef(this, 2, "onDrop", mDisconnectReason); Parent::onRemove(); } void GameConnection::setDisconnectReason(const char *str) { dStrncpy(mDisconnectReason, str, sizeof(mDisconnectReason) - 1); mDisconnectReason[sizeof(mDisconnectReason) - 1] = 0; } //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- void GameConnection::readPacket(BitStream *bstream) { //Con::printf("GameConnection::handlePacket - readPacket ---"); char stringBuf[256]; stringBuf[0] = 0; bstream->setStringBuffer(stringBuf); bstream->clearCompressionPoint(); Parent::readPacket(bstream); bstream->clearCompressionPoint(); bstream->setStringBuffer(NULL); } void GameConnection::writePacket(BitStream *bstream, PacketNotify *note) { char stringBuf[256]; bstream->clearCompressionPoint(); stringBuf[0] = 0; bstream->setStringBuffer(stringBuf); Parent::writePacket(bstream, note); bstream->clearCompressionPoint(); bstream->setStringBuffer(NULL); } void GameConnection::detectLag() { //see if we're lagging... S32 curTime = Sim::getCurrentTime(); if (curTime - mLastPacketTime > mLagThresholdMS) { if (!mLagging) { mLagging = true; Con::executef(this, 2, "setLagIcon", "true"); } } else if (mLagging) { mLagging = false; Con::executef(this, 2, "setLagIcon", "false"); } } GameConnection::GamePacketNotify::GamePacketNotify() { // need to fill in empty notifes for demo start block } NetConnection::PacketNotify *GameConnection::allocNotify() { return new GamePacketNotify; } void GameConnection::packetReceived(PacketNotify *note) { //record the time so we can tell if we're lagging... mLastPacketTime = Sim::getCurrentTime(); Parent::packetReceived(note); } void GameConnection::packetDropped(PacketNotify *note) { Parent::packetDropped(note); } //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- void GameConnection::handleConnectionMessage(U32 message, U32 sequence, U32 ghostCount) { Parent::handleConnectionMessage(message, sequence, ghostCount); } //-------------------------------------------------------------------------- void GameConnection::consoleInit() { Con::addVariable("Pref::Net::LagThreshold", TypeS32, &mLagThresholdMS); }
28.395181
108
0.583333
Sednari
812d64a7944482bf656ee29bc1d2b756da5a9b66
5,719
cpp
C++
src/Frameworks/Gleam/Gleam_Buffer_Direct3D11.cpp
Connway/Shibboleth
23dda9a066db8dfaf8c8d56cb1e3d9929b6ced35
[ "MIT" ]
1
2020-04-06T17:35:47.000Z
2020-04-06T17:35:47.000Z
src/Frameworks/Gleam/Gleam_Buffer_Direct3D11.cpp
Connway/Shibboleth
23dda9a066db8dfaf8c8d56cb1e3d9929b6ced35
[ "MIT" ]
null
null
null
src/Frameworks/Gleam/Gleam_Buffer_Direct3D11.cpp
Connway/Shibboleth
23dda9a066db8dfaf8c8d56cb1e3d9929b6ced35
[ "MIT" ]
null
null
null
/************************************************************************************ Copyright (C) 2021 by Nicholas LaCroix 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. ************************************************************************************/ #if defined(_WIN32) || defined(_WIN64) #include "Gleam_Buffer_Direct3D11.h" #include "Gleam_RenderDevice_Direct3D11.h" #include "Gleam_IRenderDevice.h" #include "Gleam_IncludeD3D11.h" NS_GLEAM static const D3D11_BIND_FLAG g_type_map[static_cast<size_t>(IBuffer::Type::Count)] = { D3D11_BIND_VERTEX_BUFFER, D3D11_BIND_INDEX_BUFFER, D3D11_BIND_CONSTANT_BUFFER, D3D11_BIND_SHADER_RESOURCE }; static const D3D11_MAP g_map_map[static_cast<size_t>(IBuffer::MapType::Count)] = { D3D11_MAP_READ, D3D11_MAP_READ, D3D11_MAP_WRITE_DISCARD, D3D11_MAP_WRITE_NO_OVERWRITE, D3D11_MAP_READ_WRITE }; BufferD3D11::BufferD3D11(void): _buffer(nullptr) { } BufferD3D11::~BufferD3D11(void) { destroy(); } bool BufferD3D11::init(IRenderDevice& rd, const Settings& buffer_settings) { GAFF_ASSERT(rd.getRendererType() == RendererType::DIRECT3D11 && !_buffer); RenderDeviceD3D11& rd3d = static_cast<RenderDeviceD3D11&>(rd); ID3D11Device5* const device = rd3d.getDevice(); D3D11_BUFFER_DESC desc; desc.BindFlags = g_type_map[static_cast<size_t>(buffer_settings.type)]; desc.ByteWidth = static_cast<UINT>(buffer_settings.size); desc.MiscFlags = (buffer_settings.type == Type::StructuredData) ? D3D11_RESOURCE_MISC_BUFFER_STRUCTURED : 0; desc.StructureByteStride = (buffer_settings.type == Type::StructuredData) ? static_cast<UINT>(buffer_settings.stride) : 0; desc.CPUAccessFlags = 0; const bool cpu_read = (buffer_settings.cpu_access == MapType::Read) || (buffer_settings.cpu_access == MapType::ReadWrite); const bool cpu_write = (buffer_settings.cpu_access == MapType::ReadWrite) || (buffer_settings.cpu_access == MapType::Write) || (buffer_settings.cpu_access == MapType::WriteNoOverwrite); if (buffer_settings.gpu_read_only) { if (cpu_read) { desc.Usage = D3D11_USAGE_STAGING; } else if (cpu_write) { desc.Usage = D3D11_USAGE_DYNAMIC; } else { desc.Usage = D3D11_USAGE_IMMUTABLE; } } else { if (cpu_read || cpu_write) { desc.Usage = D3D11_USAGE_STAGING; } else { desc.Usage = D3D11_USAGE_DEFAULT; } } if (cpu_read) { desc.CPUAccessFlags |= D3D11_CPU_ACCESS_READ; } if (cpu_write) { desc.CPUAccessFlags |= D3D11_CPU_ACCESS_WRITE; } _buffer_type = buffer_settings.type; _elem_size = buffer_settings.element_size; _stride = buffer_settings.stride; _size = buffer_settings.size; if (buffer_settings.data) { D3D11_SUBRESOURCE_DATA subres_data; subres_data.pSysMem = buffer_settings.data; subres_data.SysMemPitch = 0; subres_data.SysMemSlicePitch = 0; return SUCCEEDED(device->CreateBuffer(&desc, &subres_data, &_buffer)); } return SUCCEEDED(device->CreateBuffer(&desc, nullptr, &_buffer)); } void BufferD3D11::destroy(void) { SAFERELEASE(_buffer) } bool BufferD3D11::update(IRenderDevice& rd, const void* data, size_t size, size_t offset) { GAFF_ASSERT(rd.getRendererType() == RendererType::DIRECT3D11 && data && size); RenderDeviceD3D11& rd3d = static_cast<RenderDeviceD3D11&>(rd); ID3D11DeviceContext3* const context = rd3d.getDeviceContext(); D3D11_MAPPED_SUBRESOURCE mapped_resource; const HRESULT result = context->Map(_buffer, 0, (offset) ? D3D11_MAP_WRITE_NO_OVERWRITE : D3D11_MAP_WRITE_DISCARD, 0, &mapped_resource); RETURNIFFAILED(result) memcpy(reinterpret_cast<int8_t*>(mapped_resource.pData) + offset, data, size); context->Unmap(_buffer, 0); return true; } void* BufferD3D11::map(IRenderDevice& rd, MapType map_type) { GAFF_ASSERT((rd.getRendererType() == RendererType::DIRECT3D11) && (map_type != MapType::None)); RenderDeviceD3D11& rd3d = static_cast<RenderDeviceD3D11&>(rd); ID3D11DeviceContext3* const context = rd3d.getDeviceContext(); D3D11_MAPPED_SUBRESOURCE mapped_resource; const HRESULT result = context->Map(_buffer, 0, g_map_map[static_cast<size_t>(map_type)], 0, &mapped_resource); return (FAILED(result)) ? nullptr : mapped_resource.pData; } void BufferD3D11::unmap(IRenderDevice& rd) { GAFF_ASSERT(rd.getRendererType() == RendererType::DIRECT3D11); RenderDeviceD3D11& rd3d = static_cast<RenderDeviceD3D11&>(rd); ID3D11DeviceContext3* const context = rd3d.getDeviceContext(); context->Unmap(_buffer, 0); } RendererType BufferD3D11::getRendererType(void) const { return RendererType::DIRECT3D11; } ID3D11Buffer* BufferD3D11::getBuffer(void) const { return _buffer; } NS_END #endif
33.444444
138
0.728274
Connway
813372c9ddb35276cd4bd5371f3f2ee4e0c87dcc
1,508
cpp
C++
UVA/11926 - Multitasking.cpp
Mhmd-Hisham/Problem-Solving
7ce0955b697e735c5ccb37347d9bec83e57339b5
[ "MIT" ]
null
null
null
UVA/11926 - Multitasking.cpp
Mhmd-Hisham/Problem-Solving
7ce0955b697e735c5ccb37347d9bec83e57339b5
[ "MIT" ]
null
null
null
UVA/11926 - Multitasking.cpp
Mhmd-Hisham/Problem-Solving
7ce0955b697e735c5ccb37347d9bec83e57339b5
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> /* Problem: 11926 - Multitasking Link : https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=3077 Solution by: Mohamed Hisham El-Banna Gmail : [email protected] Github : www.github.com/Mhmd-Hisham LinkedIn: www.linkedin.com/in/Mhmd-Hisham */ using namespace std; typedef signed long long ll; typedef unsigned long long ull; #define fastio ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); int N, M; bitset<1000002> calendar; bool testRange(int start, int end){ for (int i = start+1; i <= end; ++i){ if (calendar.test(i)) return true; else calendar.set(i); } return false; } int main () { fastio; while ( cin >> N >> M && (N || M)){ bool conflict = false; int start, end, interval; calendar.reset(); while ((N--)){ cin >> start >> end; conflict |= testRange(start, end); } while ((M--)){ cin >> start >> end >> interval; while ((start < 1000000)){ conflict |= testRange(start, end); start += interval; end = min(end+interval, 1000000); } } cout << (conflict? "CONFLICT" : "NO CONFLICT" ) << '\n'; } return 0; } /* Sample input:- ----------------- Sample output:- ----------------- Resources:- ------------- Explanation: --------------- */
19.333333
121
0.529841
Mhmd-Hisham
8134a77ab597dce053369caf5455287331b84cb2
1,505
cpp
C++
Example/TRLSL_Example/Main.cpp
morrow1nd/TRL
24023dc0a1c227c8987a484aed68fbc1775d8d0a
[ "MIT" ]
null
null
null
Example/TRLSL_Example/Main.cpp
morrow1nd/TRL
24023dc0a1c227c8987a484aed68fbc1775d8d0a
[ "MIT" ]
null
null
null
Example/TRLSL_Example/Main.cpp
morrow1nd/TRL
24023dc0a1c227c8987a484aed68fbc1775d8d0a
[ "MIT" ]
null
null
null
#include <iostream> #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyUtility/DataStream/MemoryDataStream.h" #include "ToyUtility/DataStream/FileDataStream.h" #include "TRL/details/TRLSL/TRLSLParser.h" #include "TRL/details/TRLSL/TRLSLTokener.h" using namespace ToyUtility; using namespace TRL; int main() { const ToyUtility::String code = R"( uniform vec4 Pos; void main() { Pos = vec4(1, 2, 3, 4); if(1 == Pos.x) { Pos.y = 4; } } )"; TRL::TRLSLTokener tokener; //bool res = tokener.Prepare(MemoryDataStream((void*)code.c_str(), code.size() + 1, false)); bool res = tokener.Prepare(FileDataStream("simple.trlsl")); //bool res = tokener.Prepare(FileDataStream("trlsl_full_example.trlsl")); if (!res) { std::cout << "tokener error: " << tokener.GetError().ErrorInfo << std::endl; return 2; } { MemoryDataStream stream(10240); //if (0) //{ // GLSLGenerator generator; // //HLSLGenerator generator; // TRLSLParser parser(generator); // parser.Parse(tokener); // generator.GenerateCode(stream); // std::cout << stream.GetAsString() << std::endl; //} //else //{ // DebugGenerator generator; // TRLSLParser parser(generator); // parser.Parse(tokener); //} } std::cout << "TRL SL Example >> End" << std::endl; system("pause"); return 0; }
22.132353
96
0.581395
morrow1nd
8137c708a4c945b7b68d252dc36837fceac76f24
5,148
cpp
C++
source/worksheet/range_reference.cpp
Polymedia/xlnt
c214c6ca0b2533a799c8d788c8697d69639a224f
[ "Unlicense" ]
null
null
null
source/worksheet/range_reference.cpp
Polymedia/xlnt
c214c6ca0b2533a799c8d788c8697d69639a224f
[ "Unlicense" ]
null
null
null
source/worksheet/range_reference.cpp
Polymedia/xlnt
c214c6ca0b2533a799c8d788c8697d69639a224f
[ "Unlicense" ]
1
2019-03-05T01:07:08.000Z
2019-03-05T01:07:08.000Z
// Copyright (c) 2014-2017 Thomas Fussell // // 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, WRISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE // // @license: http://www.opensource.org/licenses/mit-license.php // @author: see AUTHORS file #include <locale> #include <xlnt/worksheet/range_reference.hpp> namespace xlnt { range_reference range_reference::make_absolute(const xlnt::range_reference &relative) { range_reference copy = relative; copy.top_left_.make_absolute(true, true); copy.bottom_right_.make_absolute(true, true); return copy; } range_reference::range_reference() : range_reference("A1") { } range_reference::range_reference(const char *range_string) : range_reference(std::string(range_string)) { } range_reference::range_reference(const std::string &range_string) : top_left_("A1"), bottom_right_("A1") { auto colon_index = range_string.find(':'); if (colon_index != std::string::npos) { top_left_ = cell_reference(range_string.substr(0, colon_index)); bottom_right_ = cell_reference(range_string.substr(colon_index + 1)); } else { top_left_ = cell_reference(range_string); bottom_right_ = cell_reference(range_string); } } range_reference::range_reference(const cell_reference &top_left, const cell_reference &bottom_right) : top_left_(top_left), bottom_right_(bottom_right) { } range_reference::range_reference(column_t column_index_start, row_t row_index_start, column_t column_index_end, row_t row_index_end) : top_left_(column_index_start, row_index_start), bottom_right_(column_index_end, row_index_end) { } range_reference range_reference::make_offset(int column_offset, int row_offset) const { auto top_left = top_left_.make_offset(column_offset, row_offset); auto bottom_right = bottom_right_.make_offset(column_offset, row_offset); return top_left, bottom_right; // lol } std::size_t range_reference::height() const { return bottom_right_.row() - top_left_.row(); } std::size_t range_reference::width() const { return (bottom_right_.column() - top_left_.column()).index; } bool range_reference::is_single_cell() const { return width() == 0 && height() == 0; } std::string range_reference::to_string() const { return top_left_.to_string() + ":" + bottom_right_.to_string(); } bool range_reference::operator==(const range_reference &comparand) const { return comparand.top_left_ == top_left_ && comparand.bottom_right_ == bottom_right_; } bool range_reference::operator!=(const range_reference &comparand) const { return comparand.top_left_ != top_left_ || comparand.bottom_right_ != bottom_right_; } cell_reference range_reference::top_left() const { return top_left_; } cell_reference range_reference::top_right() const { return cell_reference(bottom_right_.column(), top_left_.row()); } cell_reference range_reference::bottom_left() const { return cell_reference(top_left_.column(), bottom_right_.row()); } cell_reference range_reference::bottom_right() const { return bottom_right_; } bool range_reference::operator==(const std::string &reference_string) const { return *this == range_reference(reference_string); } bool range_reference::operator==(const char *reference_string) const { return *this == std::string(reference_string); } bool range_reference::operator!=(const std::string &reference_string) const { return *this != range_reference(reference_string); } bool range_reference::operator!=(const char *reference_string) const { return *this != std::string(reference_string); } XLNT_API bool operator==(const std::string &reference_string, const range_reference &ref) { return ref == reference_string; } XLNT_API bool operator==(const char *reference_string, const range_reference &ref) { return ref == reference_string; } XLNT_API bool operator!=(const std::string &reference_string, const range_reference &ref) { return ref != reference_string; } XLNT_API bool operator!=(const char *reference_string, const range_reference &ref) { return ref != reference_string; } } // namespace xlnt
28.285714
89
0.744367
Polymedia
813837762849dc9d9805a2597acc7eddf6b0ba26
1,245
hpp
C++
boost/numeric/bindings/blas/level1.hpp
rabauke/numeric_bindings
f4de93bd7a01a8b31c9367fad35c81d086768f99
[ "BSL-1.0" ]
null
null
null
boost/numeric/bindings/blas/level1.hpp
rabauke/numeric_bindings
f4de93bd7a01a8b31c9367fad35c81d086768f99
[ "BSL-1.0" ]
null
null
null
boost/numeric/bindings/blas/level1.hpp
rabauke/numeric_bindings
f4de93bd7a01a8b31c9367fad35c81d086768f99
[ "BSL-1.0" ]
null
null
null
// // Copyright (c) 2009 Rutger ter Borg // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_HPP #define BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_HPP #include <boost/numeric/bindings/blas/level1/asum.hpp> #include <boost/numeric/bindings/blas/level1/axpy.hpp> #include <boost/numeric/bindings/blas/level1/copy.hpp> #include <boost/numeric/bindings/blas/level1/dotc.hpp> #include <boost/numeric/bindings/blas/level1/dot.hpp> #include <boost/numeric/bindings/blas/level1/dotu.hpp> #include <boost/numeric/bindings/blas/level1/doth.hpp> #include <boost/numeric/bindings/blas/level1/iamax.hpp> #include <boost/numeric/bindings/blas/level1/nrm2.hpp> #include <boost/numeric/bindings/blas/level1/prec_dot.hpp> #include <boost/numeric/bindings/blas/level1/rotg.hpp> #include <boost/numeric/bindings/blas/level1/rot.hpp> #include <boost/numeric/bindings/blas/level1/rotmg.hpp> #include <boost/numeric/bindings/blas/level1/rotm.hpp> #include <boost/numeric/bindings/blas/level1/scal.hpp> #include <boost/numeric/bindings/blas/level1/set.hpp> #include <boost/numeric/bindings/blas/level1/swap.hpp> #endif
40.16129
61
0.794378
rabauke
813ad25b44dc4bd63a76670c8985ae40c07d9483
682
cpp
C++
samples/snippets/cpp/VS_Snippets_Data/XslTRansform.Transform7/CPP/trans_snip4.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
421
2018-04-01T01:57:50.000Z
2022-03-28T15:24:42.000Z
samples/snippets/cpp/VS_Snippets_Data/XslTRansform.Transform7/CPP/trans_snip4.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
5,797
2018-04-02T21:12:23.000Z
2022-03-31T23:54:38.000Z
samples/snippets/cpp/VS_Snippets_Data/XslTRansform.Transform7/CPP/trans_snip4.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
1,482
2018-03-31T11:26:20.000Z
2022-03-30T22:36:45.000Z
#using <System.Xml.dll> #using <System.dll> using namespace System; using namespace System::IO; using namespace System::Xml; using namespace System::Xml::Xsl; int main() { //<snippet1> // Create a resolver with default credentials. XmlUrlResolver^ resolver = gcnew XmlUrlResolver; resolver->Credentials = System::Net::CredentialCache::DefaultCredentials; // Create the XslTransform object. XslTransform^ xslt = gcnew XslTransform; // Load the stylesheet. xslt->Load( "http://myServer/data/authors.xsl", resolver ); // Transform the file. xslt->Transform( "books.xml", "books.html", resolver ); //</snippet1> }
26.230769
77
0.670088
hamarb123
8140b91b3b1cc4a6bddd6d526275b5ced5198f3a
219
cpp
C++
Game/Client/WXClient/Network/PacketHandler/CGUseAbilityHandler.cpp
hackerlank/SourceCode
b702c9e0a9ca5d86933f3c827abb02a18ffc9a59
[ "MIT" ]
4
2021-07-31T13:56:01.000Z
2021-11-13T02:55:10.000Z
Game/Client/WXClient/Network/PacketHandler/CGUseAbilityHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
null
null
null
Game/Client/WXClient/Network/PacketHandler/CGUseAbilityHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
7
2021-08-31T14:34:23.000Z
2022-01-19T08:25:58.000Z
#include "StdAfx.h" #include "CGUseAbility.h" uint CGUseAbilityHandler::Execute(CGUseAbility* pPacket,Player* pPlayer) { __ENTER_FUNCTION return PACKET_EXE_CONTINUE; __LEAVE_FUNCTION return PACKET_EXE_ERROR; }
14.6
72
0.799087
hackerlank
8143adae3f1c11eae4809957553d6be45b20e7d1
3,322
cpp
C++
firmware/stm32/f746/src/mcu/quadratureTimer.cpp
AlanFord/self-balancing-stick
c805f3136effbceed71b7b6fe086c471a698899b
[ "MIT" ]
64
2018-08-13T07:02:33.000Z
2022-03-18T09:21:28.000Z
firmware/stm32/f746/src/mcu/quadratureTimer.cpp
AlanFord/self-balancing-stick
c805f3136effbceed71b7b6fe086c471a698899b
[ "MIT" ]
7
2019-04-29T15:11:33.000Z
2022-02-19T14:15:25.000Z
firmware/stm32/f746/src/mcu/quadratureTimer.cpp
AlanFord/self-balancing-stick
c805f3136effbceed71b7b6fe086c471a698899b
[ "MIT" ]
15
2019-01-22T20:53:44.000Z
2021-11-26T14:53:20.000Z
/* timer.cpp - Implementation file for the Timer class. */ #include <nodate.h> #include "quadratureTimer.h" /*---------------------------------------------------------------------------*/ /** @brief TIMER PWM Timer Initialization This configures a timer perpheral in PWM output mode. */ QuadratureTimer::QuadratureTimer(TimerDevice device, GPIO_pin pinA, uint16_t psc, uint32_t arr, uint32_t ccr, EncoderMode mode) : Timer(device) { this->device = device; Timer_device &instance = TimerList[this->device]; // make sure arr isn't too large for a 16-bit timer // 0xFFFFFFFF is ok as it is the reset value for the 32-bit register (upper 16-bits are ignored) if (!(IS_TIM_32B_COUNTER_INSTANCE(instance.regs)) && (arr != 0xFFFFFFFF)) { if (arr > 0xFFFF) { instance.active = false; return; } } // configure the appropriate GPIO pins if (!GPIO::set_af(pinA.port, pinA.pin, pinA.af)) { Rcc::disablePort((RccPort) pinA.port); instance.active = false; } // Start timer clock if needed. if (!instance.active) { if (Rcc::enable(instance.per)) { instance.active = true; } } // Configure the timer // turn the counter off instance.regs->CR1 &= ~(TIM_CR1_CEN); // reset the peripheral Rcc::reset(instance.per); // set the prescaler and autoreload values instance.regs->PSC = psc; instance.regs->ARR = arr; // setup for pwm instance.regs->CCR1 = ccr; instance.regs->CCMR1 &= ~TIM_CCMR1_CC1S; // CC4 channel is configured as output instance.regs->CCER &= ~TIM_CCER_CC1P; // Output Polarity set to Active High instance.regs->CCMR1 &= ~TIM_CCMR1_OC1M; // Output Compare 4 Mode set as PWM Mode 1. instance.regs->CCMR1 |= TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_2; // Output Compare 4 Mode set as PWM Mode 1. instance.regs->CCMR1 |= TIM_CCMR1_OC1PE; // Enable the corresponding preload register instance.regs->CCER |= TIM_CCER_CC1E; // Capture/Compare 4 Output Enable instance.regs->EGR |= TIM_EGR_UG; // Before starting the counter, you have to initialize all the registers instance.regs->BDTR |= TIM_BDTR_MOE; instance.regs->CR1 |= TIM_CR1_CEN; // Start Timer // select both TI1 and TI2 inputs instance.regs->CCMR1 &= ~(TIM_CCMR1_CC1S_Msk); instance.regs->CCMR1 |= 0x01 << TIM_CCMR1_CC1S_Pos; instance.regs->CCMR1 &= ~(TIM_CCMR1_CC2S_Msk); instance.regs->CCMR1 |= 0x01 << TIM_CCMR1_CC2S_Pos; // set input polarities instance.regs->CCER &= ~(TIM_CCER_CC1P_Msk); instance.regs->CCER &= ~(TIM_CCER_CC1NP_Msk); instance.regs->CCER &= ~(TIM_CCER_CC2P_Msk); instance.regs->CCER &= ~(TIM_CCER_CC1NP_Msk); // set encoder mode switch (mode) { case Mode1: instance.regs->SMCR &= ~(TIM_SMCR_SMS_Msk); instance.regs->SMCR |= 0x01 << TIM_SMCR_SMS_Pos;; case Mode2: instance.regs->SMCR &= ~(TIM_SMCR_SMS_Msk); instance.regs->SMCR |= 0x10 << TIM_SMCR_SMS_Pos;; case Mode3: instance.regs->SMCR &= ~(TIM_SMCR_SMS_Msk); instance.regs->SMCR |= 0x11 << TIM_SMCR_SMS_Pos;; default: instance.active = false; } //TODO: enable the timer, but can't use 'start' PSC and ARR should be cleared } /*---------------------------------------------------------------------------*/ /** @brief TIMER Destructor This configures a timer perpheral in PWM output mode. */ QuadratureTimer::~QuadratureTimer() { // TODO: release the associated peripheral }
33.22
145
0.674293
AlanFord
8144d1d8d9d4cc9fe3abade76beadea112159d0a
923
cpp
C++
src/binary_tree.cpp
israni/CPP2
b917c85dbde217360ba3c469e6a4aa2c5e794716
[ "MIT" ]
null
null
null
src/binary_tree.cpp
israni/CPP2
b917c85dbde217360ba3c469e6a4aa2c5e794716
[ "MIT" ]
null
null
null
src/binary_tree.cpp
israni/CPP2
b917c85dbde217360ba3c469e6a4aa2c5e794716
[ "MIT" ]
null
null
null
#include<iostream> #include"node.h" int main() { node<int> mynode1(10); node<int> mynode2 (20); std::cout << mynode1.get_data() << "," << mynode2.get_data() << std::endl; if (mynode1==mynode2){ std::cout << "EQUAL" << std::endl; } else{ std::cout << "NOT EQUAL" << std::endl; } std::cout << "mynode1: " << mynode1 << std::endl; // The data attribute is deep copied as it is defined in the stack at compile time. node<int> mynode3(30); std::cout << "mynode3: " << mynode3 << std::endl; mynode3 = mynode1; std::cout << "mynode3: " << mynode3 << std::endl; mynode3.set_data(50); std::cout << "mynode3: " << mynode3 << std::endl; std::cout << "mynode1: " << mynode1 << std::endl; // Need to show that the pointers left, right would not be deep copied as they would be defined in the heap. std::cout << "Done" << std::endl; }
28.84375
112
0.566631
israni
8144ed50732ba0b82562bd70868885087d717e49
3,719
cpp
C++
src/Output/Output_Flux.cpp
zhulianhua/Daino
db88f5738aba76fa8a28d7672450e0c5c832b3de
[ "MIT" ]
3
2019-04-13T02:08:01.000Z
2020-11-17T12:45:37.000Z
src/Output/Output_Flux.cpp
zhulianhua/Daino
db88f5738aba76fa8a28d7672450e0c5c832b3de
[ "MIT" ]
null
null
null
src/Output/Output_Flux.cpp
zhulianhua/Daino
db88f5738aba76fa8a28d7672450e0c5c832b3de
[ "MIT" ]
2
2019-11-12T02:00:20.000Z
2019-12-09T14:52:31.000Z
#include "DAINO.h" //------------------------------------------------------------------------------------------------------- // Function : Output_Flux // Description : Output the flux of a single patch // // Parameter : lv : Targeted refinement level // PID : Targeted patch ID // Sib : Targeted sibling direction of the flux : ( 0,1,2,3,4,5 ) <--> ( -x,+x,-y,+y,-z,+z ) // comment : String to attach to the end of the file name //------------------------------------------------------------------------------------------------------- void Output_Flux( const int lv, const int PID, const int Sib, const char *comment ) { // check if ( lv < 0 || lv >= NLEVEL ) Aux_Error( ERROR_INFO, "incorrect parameter %s = %d !!\n", "lv", lv ); if ( PID < 0 || PID >= MAX_PATCH ) Aux_Error( ERROR_INFO, "incorrect parameter %s = %d (MAX_PATCH = %d) !!\n", "PID", PID, MAX_PATCH ); if ( !patch->WithFlux ) Aux_Message( stderr, "WARNING : invoking %s is useless since no flux is required !!\n", __FUNCTION__ ); if ( patch->ptr[0][lv][PID] == NULL ) { Aux_Message( stderr, "WARNING : level = %d, PID = %d does NOT exist !!\n", lv, PID ); return; } patch_t *Relation = patch->ptr[0][lv][PID]; char FileName[100]; sprintf( FileName, "Flux_r%d_lv%d_p%d%c%c", DAINO_RANK, lv, PID, 45-2*(Sib%2), 120+Sib/2 ); if ( comment != NULL ) { strcat( FileName, "_" ); strcat( FileName, comment ); } FILE *File_Check = fopen( FileName, "r" ); if ( File_Check != NULL ) { Aux_Message( stderr, "WARNING : the file \"%s\" already exists and will be overwritten !!\n", FileName ); fclose( File_Check ); } real (*FluxPtr)[PATCH_SIZE][PATCH_SIZE] = patch->ptr[0][lv][PID]->flux[Sib]; char label[2] = { '?', '?' }; switch ( Sib ) { case 0: case 1: label[0] = 'y'; label[1] = 'z'; break; case 2: case 3: label[0] = 'z'; label[1] = 'x'; break; case 4: case 5: label[0] = 'x'; label[1] = 'y'; break; default: Aux_Error( ERROR_INFO, "incorrect parameter %s = %d !!\n", "Sib", Sib ); } // output header FILE *File = fopen( FileName, "w" ); fprintf( File, "Rank %d Level %d Patch %d Local ID %d Time %13.7e Counter %u\n", DAINO_RANK, lv, PID, PID%8, Time[lv], AdvanceCounter[lv] ); fprintf( File, "Father %d Son %d Corner (%4d,%4d,%4d)\n\n", Relation->father, Relation->son, Relation->corner[0], Relation->corner[1], Relation->corner[2] ); fprintf( File, "Flux at %c%c surface\n\n", 45-2*(Sib%2), 120+Sib/2 ); // output flux if ( FluxPtr != NULL ) { # if ( MODEL == HYDRO ) fprintf( File, "( %c, %c )%16s%16s%16s%16s%16s\n", label[0], label[1], "Density Flux", "Px Flux", "Py Flux", "Pz Flux", "Energy Flux" ); # elif ( MODEL == MHD ) # warning : WAIT MHD !!! # elif ( MODEL != ELBDM ) # warning : WARNING : DO YOU WANT TO ADD the FILE HEADER HERE FOR THE NEW MODEL ?? # endif // MODEL for (int m=0; m<PATCH_SIZE; m++) for (int n=0; n<PATCH_SIZE; n++) { fprintf( File, "( %d, %d )", n, m ); for (int v=0; v<NCOMP; v++) fprintf( File, " %14.7e", FluxPtr[v][m][n] ); fprintf( File, "\n" ); } } // if ( FluxPtr != NULL ) else { fprintf( File, "\nNULL\n" ); Aux_Message( stderr, "WARNING : lv %d, PID %d, Sib %d, the requested flux does NOT exist !!\n", lv, PID, Sib ); } fclose( File ); } // FUNCTION : Output_Flux
33.809091
112
0.491799
zhulianhua
81465f3944cfea695e3e5bf03dd2cc3a7a109860
4,953
hpp
C++
include/sobfu/solver.hpp
LuyaooChen/sobfu
688e06a2e81fdf30bd2d019516dc025a951bcbc2
[ "BSD-3-Clause" ]
142
2019-01-10T14:38:03.000Z
2022-03-18T08:45:30.000Z
include/sobfu/solver.hpp
GucciPrada/sobfu
c83646582a146a3f4b8d8ad62de31ec60f8004d6
[ "BSD-3-Clause" ]
17
2019-01-18T05:15:33.000Z
2021-12-22T15:00:44.000Z
include/sobfu/solver.hpp
GucciPrada/sobfu
c83646582a146a3f4b8d8ad62de31ec60f8004d6
[ "BSD-3-Clause" ]
27
2019-02-16T10:11:49.000Z
2021-11-02T19:51:28.000Z
#pragma once /* kinfu incldues */ #include <kfusion/cuda/tsdf_volume.hpp> #include <kfusion/safe_call.hpp> /* sobfu includes */ #include <sobfu/reductor.hpp> #include <sobfu/scalar_fields.hpp> #include <sobfu/vector_fields.hpp> /* * SOLVER PARAMETERS */ struct SolverParams { int verbosity, max_iter, s; float max_update_norm, lambda, alpha, w_reg; }; /* * SDF'S USED IN THE SOLVER */ struct SDFs { SDFs(kfusion::device::TsdfVolume &phi_global_, kfusion::device::TsdfVolume &phi_global_psi_inv_, kfusion::device::TsdfVolume &phi_n_, kfusion::device::TsdfVolume &phi_n_psi_) : phi_global(phi_global_), phi_global_psi_inv(phi_global_psi_inv_), phi_n(phi_n_), phi_n_psi(phi_n_psi_) {} kfusion::device::TsdfVolume phi_global, phi_global_psi_inv, phi_n, phi_n_psi; }; /* * SPATIAL DIFFERENTIATORS */ struct Differentiators { Differentiators(sobfu::device::TsdfDifferentiator &tsdf_diff_, sobfu::device::Differentiator &diff_, sobfu::device::Differentiator &diff_inv_, sobfu::device::SecondOrderDifferentiator &second_order_diff_) : tsdf_diff(tsdf_diff_), diff(diff_), diff_inv(diff_inv_), second_order_diff(second_order_diff_) {} sobfu::device::TsdfDifferentiator tsdf_diff; sobfu::device::Differentiator diff, diff_inv; sobfu::device::SecondOrderDifferentiator second_order_diff; }; namespace sobfu { namespace cuda { /* * SOLVER */ class Solver { public: /* constructor */ Solver(Params &params); /* destructor */ ~Solver(); void estimate_psi(const cv::Ptr<kfusion::cuda::TsdfVolume> phi_global, cv::Ptr<kfusion::cuda::TsdfVolume> phi_global_psi_inv, const cv::Ptr<kfusion::cuda::TsdfVolume> phi_n, cv::Ptr<kfusion::cuda::TsdfVolume> phi_n_psi, std::shared_ptr<sobfu::cuda::DeformationField> psi, std::shared_ptr<sobfu::cuda::DeformationField> psi_inv); private: /* volume params */ int3 dims; float3 voxel_sizes; int no_voxels; float trunc_dist, eta, max_weight; /* solver params */ SolverParams solver_params; /* gradients */ sobfu::cuda::SpatialGradients *spatial_grads; sobfu::device::SpatialGradients *spatial_grads_device; sobfu::device::TsdfGradient *nabla_phi_n, *nabla_phi_n_o_psi; sobfu::device::Jacobian *J, *J_inv; sobfu::device::Laplacian *L, *L_o_psi_inv; sobfu::device::PotentialGradient *nabla_U, *nabla_U_S; /* used to calculate value of the energy functional */ sobfu::device::Reductor *r; /* sobolev filter */ float *h_S_i, *d_S_i; }; /* get 3d sobolev filter */ static void get_3d_sobolev_filter(SolverParams &params, float *h_S_i); /* calculate 1d filters from a separable 3d filter */ static void decompose_sobolev_filter(SolverParams &params, float *h_S_i); } // namespace cuda namespace device { /* potential gradient */ __global__ void calculate_potential_gradient_kernel(float2 *phi_n_psi, float2 *phi_global, float4 *nabla_phi_n_o_psi, float4 *L, float4 *nabla_U, float w_reg, int dim_x, int dim_y, int dim_z); void calculate_potential_gradient(kfusion::device::TsdfVolume &phi_n_psi, kfusion::device::TsdfVolume &phi_global, sobfu::device::TsdfGradient &nabla_phi_n_o_psi, sobfu::device::Laplacian &L, sobfu::device::PotentialGradient &nabla_U, float w_reg); /* estimate psi */ void estimate_psi(SDFs &sdfs, sobfu::device::DeformationField &psi, sobfu::device::DeformationField &psi_inv, sobfu::device::SpatialGradients *spatial_grads, Differentiators &diffs, float *d_S_i, sobfu::device::Reductor *r, SolverParams &params); /* DEFORMATION FIELD UPDATES */ __global__ void update_psi_kernel(float4 *psi, float4 *nabla_U_S, float4 *updates, float alpha, int dim_x, int dim_y, int dim_z); void update_psi(sobfu::device::DeformationField &psi, sobfu::device::PotentialGradient &nabla_U_S, float4 *updates, float alpha); /* * CONVOLUTIONS */ void set_convolution_kernel(float *d_kernel); __global__ void convolution_rows_kernel(float4 *d_dst, float4 *d_src, int image_w, int image_h, int image_d); __global__ void convolution_columns_kernel(float4 *d_dst, float4 *d_src, int image_w, int image_h, int image_d); __global__ void convolution_depth_kernel(float4 *d_dst, float4 *d_src, int image_w, int image_h, int image_d); void convolution_rows(float4 *d_dst, float4 *updates, int image_w, int image_h, int image_d); void convolution_columns(float4 *d_dst, float4 *updates, int image_w, int image_h, int image_d); void convolution_depth(float4 *d_dst, float4 *updates, int image_w, int image_h, int image_d); } // namespace device } // namespace sobfu
35.378571
117
0.689885
LuyaooChen
8147c0ad2a81e17f7cdda544e1bb7bdc1be524cd
3,431
cpp
C++
tests/services_unit/check_adaptation.cpp
alashworth/stan-monorepo
75596bc1f860ededd7b3e9ae9002aea97ee1cd46
[ "BSD-3-Clause" ]
1
2019-09-06T15:53:17.000Z
2019-09-06T15:53:17.000Z
tests/services_unit/check_adaptation.cpp
alashworth/stan-monorepo
75596bc1f860ededd7b3e9ae9002aea97ee1cd46
[ "BSD-3-Clause" ]
8
2019-01-17T18:51:16.000Z
2019-01-17T18:51:39.000Z
tests/services_unit/check_adaptation.cpp
alashworth/stan-monorepo
75596bc1f860ededd7b3e9ae9002aea97ee1cd46
[ "BSD-3-Clause" ]
null
null
null
#include "check_adaptation.hpp" double stan::test::unit::stod(const std::string& val) { char tmp[val.length()]; strcpy(tmp, val.c_str()); return atof(tmp); } void stan::test::unit::check_adaptation( const size_t& num_params, const std::vector<double>& param_vals, stan::test::unit::instrumented_writer& report, const double& err_margin) { std::vector<std::string> param_strings = report.string_values(); size_t offset = 0; for (size_t i = 0; i < param_strings.size(); i++) { offset++; if (param_strings[i].find("lements of inverse mass matrix:") != std::string::npos) { break; } } std::vector<std::string> strs; boost::split(strs, param_strings[offset], boost::is_any_of(", "), boost::token_compress_on); EXPECT_EQ(num_params, strs.size()); for (size_t i = 0; i < num_params; i++) { ASSERT_NEAR(param_vals[i], test::unit::stod(strs[i]), err_margin); } } void stan::test::unit::check_adaptation( const size_t& num_rows, const size_t& num_cols, const std::vector<double>& param_vals, stan::test::unit::instrumented_writer& report, const double& err_margin) { std::vector<std::string> param_strings = report.string_values(); size_t offset = 0; for (size_t i = 0; i < param_strings.size(); i++) { offset++; if (param_strings[i].find("lements of inverse mass matrix:") != std::string::npos) { break; } } for (size_t i = 0, ij = 0; i < num_rows; i++) { std::vector<std::string> strs; boost::split(strs, param_strings[offset + i], boost::is_any_of(", "), boost::token_compress_on); EXPECT_EQ(num_cols, strs.size()); for (size_t j = 0; j < num_cols; j++, ij++) { ASSERT_NEAR(param_vals[ij], test::unit::stod(strs[j]), err_margin); } } } void stan::test::unit::check_different( const size_t& num_params, const std::vector<double>& param_vals, stan::test::unit::instrumented_writer& report, const double& margin) { std::vector<std::string> param_strings = report.string_values(); size_t offset = 0; for (size_t i = 0; i < param_strings.size(); i++) { offset++; if (param_strings[i].find("lements of inverse mass matrix:") != std::string::npos) { break; } } std::vector<std::string> strs; boost::split(strs, param_strings[offset], boost::is_any_of(", "), boost::token_compress_on); EXPECT_EQ(num_params, strs.size()); for (size_t i = 0; i < num_params; i++) { ASSERT_GT(fabs(param_vals[i] - test::unit::stod(strs[i])), margin); } } void stan::test::unit::check_different( const size_t& num_rows, const size_t& num_cols, const std::vector<double>& param_vals, stan::test::unit::instrumented_writer& report, const double& margin) { std::vector<std::string> param_strings = report.string_values(); size_t offset = 0; for (size_t i = 0; i < param_strings.size(); i++) { offset++; if (param_strings[i].find("lements of inverse mass matrix:") != std::string::npos) { break; } } for (size_t i = 0, ij = 0; i < num_rows; i++) { std::vector<std::string> strs; boost::split(strs, param_strings[offset + i], boost::is_any_of(", "), boost::token_compress_on); EXPECT_EQ(num_cols, strs.size()); for (size_t j = 0; j < num_cols; j++, ij++) { ASSERT_GT(fabs(param_vals[ij] - test::unit::stod(strs[j])), margin); } } }
35.010204
78
0.628097
alashworth
814899dbbbf43143638a90b8eec6cbfd933041e1
323
inl
C++
args/core/math/glm/gtx/normal.inl
Developer-The-Great/Args-Engine
1eee1eaadc5e203778896c803e8fa4e9f52b4f7b
[ "MIT" ]
null
null
null
args/core/math/glm/gtx/normal.inl
Developer-The-Great/Args-Engine
1eee1eaadc5e203778896c803e8fa4e9f52b4f7b
[ "MIT" ]
null
null
null
args/core/math/glm/gtx/normal.inl
Developer-The-Great/Args-Engine
1eee1eaadc5e203778896c803e8fa4e9f52b4f7b
[ "MIT" ]
null
null
null
/// @ref gtx_normal namespace args::core::math::detail::glm { template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<3, T, Q> triangleNormal ( vec<3, T, Q> const& p1, vec<3, T, Q> const& p2, vec<3, T, Q> const& p3 ) { return normalize(cross(p1 - p2, p1 - p3)); } }//namespace args::core::math::detail::glm
20.1875
47
0.634675
Developer-The-Great
814acf2c8156d42d7e1bd760d51c914f75c62762
617
hpp
C++
unit-tests/test-files/template/full-base.hpp
Mirinth/Plexiglass
d5e1e83a4863ae764c951d79a574ab5f4970793e
[ "Unlicense" ]
null
null
null
unit-tests/test-files/template/full-base.hpp
Mirinth/Plexiglass
d5e1e83a4863ae764c951d79a574ab5f4970793e
[ "Unlicense" ]
39
2021-10-10T20:50:02.000Z
2021-11-29T01:42:09.000Z
unit-tests/test-files/template/full-base.hpp
Mirinth/Plexiglass
d5e1e83a4863ae764c951d79a574ab5f4970793e
[ "Unlicense" ]
null
null
null
#pragma once #include <filesystem> #include <string> #include <string_view> enum class LexerState; enum class TokenType { __eof__, __jam__, __nothing__, secondToken, }; std::string ToString(TokenType type, const std::string& text); class full { public: full(const std::filesystem::path& path); size_t PeekLine() const; TokenType PeekToken() const; std::string PeekText() const; void Shift(); private: std::string m_reference; std::string_view m_view; LexerState m_state; size_t m_line; TokenType m_type; std::string m_text; void ShiftHelper(); };
16.675676
62
0.677472
Mirinth
814e9c0a2e5498b167b42b6d991997f4f76585f9
1,292
hpp
C++
android-31/android/app/LocalActivityManager.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-28/android/app/LocalActivityManager.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-30/android/app/LocalActivityManager.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#pragma once #include "../../JObject.hpp" namespace android::app { class Activity; } namespace android::content { class Intent; } namespace android::os { class Bundle; } namespace android::view { class Window; } class JString; namespace android::app { class LocalActivityManager : public JObject { public: // Fields // QJniObject forward template<typename ...Ts> explicit LocalActivityManager(const char *className, const char *sig, Ts...agv) : JObject(className, sig, std::forward<Ts>(agv)...) {} LocalActivityManager(QJniObject obj); // Constructors LocalActivityManager(android::app::Activity arg0, jboolean arg1); // Methods android::view::Window destroyActivity(JString arg0, jboolean arg1) const; void dispatchCreate(android::os::Bundle arg0) const; void dispatchDestroy(jboolean arg0) const; void dispatchPause(jboolean arg0) const; void dispatchResume() const; void dispatchStop() const; android::app::Activity getActivity(JString arg0) const; android::app::Activity getCurrentActivity() const; JString getCurrentId() const; void removeAllActivities() const; android::os::Bundle saveInstanceState() const; android::view::Window startActivity(JString arg0, android::content::Intent arg1) const; }; } // namespace android::app
24.377358
161
0.736842
YJBeetle
814ea14782e84bacbc2ba747321dee746bc44d2c
1,514
cpp
C++
scratch/src/resources/shader_library.cpp
jaideng123/Scratch
91ff6de4f9f1e4f801441d3da45a4a001871a7ac
[ "MIT", "Unlicense" ]
null
null
null
scratch/src/resources/shader_library.cpp
jaideng123/Scratch
91ff6de4f9f1e4f801441d3da45a4a001871a7ac
[ "MIT", "Unlicense" ]
null
null
null
scratch/src/resources/shader_library.cpp
jaideng123/Scratch
91ff6de4f9f1e4f801441d3da45a4a001871a7ac
[ "MIT", "Unlicense" ]
null
null
null
// // Created by JJJai on 12/18/2021. // #include <iostream> #include <utilities/assert.h> #include "shader_library.h" std::shared_ptr<scratch::Shader> scratch::ShaderLibrary::addShader(const std::string &name, const std::string &vertexPath, const std::string &fragPath) { std::cout << "Loading Shader: " << name << std::endl; XXH64_hash_t hash = XXH64(name.c_str(), name.length(), HASH_SEED); std::cout << "Generated Hash:" << std::to_string(hash) << std::endl; std::shared_ptr<scratch::Shader> shader = std::make_shared<scratch::Shader>(hash, name, vertexPath, fragPath); if (loadedShaders.find(hash) != loadedShaders.end()) { std::cout << "Warning: Shader already loaded, replacing..." << std::to_string(hash) << std::endl; } loadedShaders.insert({hash, shader}); return shader; } std::shared_ptr<scratch::Shader> scratch::ShaderLibrary::findShader(const std::string &name) { std::cout << "Looking Up Shader: " << name << std::endl; XXH64_hash_t hash = XXH64(name.c_str(), name.length(), HASH_SEED); std::cout << "Generated Hash:" << std::to_string(hash) << std::endl; if (loadedShaders.find(hash) != loadedShaders.end()) { return loadedShaders[hash]; } else { SCRATCH_ASSERT_NEVER("Could not find shader: " + name); } } void scratch::ShaderLibrary::reloadAllShaders() { for (auto pair: loadedShaders) { pair.second->reload(); } }
38.820513
120
0.622853
jaideng123
8154d0d229468dcfc47708c22f46ea0367c975e9
5,853
cpp
C++
lib/ST_Anything/IS_DoorControl.cpp
hansaya/GarageDoorOpener
946b1431143d4c5b1c9493f951f6d8f09a7e52f5
[ "MIT" ]
1
2020-12-07T22:32:27.000Z
2020-12-07T22:32:27.000Z
lib/ST_Anything/IS_DoorControl.cpp
hansaya/GarageDoorOpener
946b1431143d4c5b1c9493f951f6d8f09a7e52f5
[ "MIT" ]
null
null
null
lib/ST_Anything/IS_DoorControl.cpp
hansaya/GarageDoorOpener
946b1431143d4c5b1c9493f951f6d8f09a7e52f5
[ "MIT" ]
null
null
null
//****************************************************************************************** // File: IS_DoorControl.h // Authors: Dan G Ogorchock & Daniel J Ogorchock (Father and Son) // // Summary: IS_DoorControl is a class which implements the SmartThings "Door Control" device capability. It features // an automatic-turn-off time delay for a relay to actuate a button press. This is useful for controlling // a garage door. Use the input to monitor a magnetic door contact sensor. Use the output to control a relay to // "press the garage door button" to open/close the garage door. // // It inherits from the st::InterruptSensor class and clones much from the st::Executor Class // // Create an instance of this class in your sketch's global variable section // For Example: st::IS_DoorControl sensor3(F("doorControl1"), PIN_CONTACT_DOOR_1, LOW, true, PIN_RELAY_DOOR_1, LOW, true, 1000, 1000, true); // // st::IS_DoorControl() constructor requires the following arguments // - String &name - REQUIRED - the name of the object - must match the Groovy ST_Anything DeviceType tile name // - byte pinInput - REQUIRED - the Arduino Pin to be used as a digital input // - bool iState - REQUIRED - LOW or HIGH - determines which value indicates the interrupt is true // - bool internalPullup - REQUIRED - true == INTERNAL_PULLUP // - byte pinOutput - REQUIRED - the Arduino Pin to be used as a digital output // - bool startingState - REQUIRED - the value desired for the initial state of the switch. LOW = "off", HIGH = "on" // - bool invertLogic - REQUIRED - determines whether the Arduino Digital Output should use inverted logic // - long delayTime - REQUIRED - the number of milliseconds to keep the output on // - long numReqCounts - OPTIONAL - number of counts before changing state of input (prevent false alarms) // - bool useMomentary - OPTIONAL - use momentary output (true) or standard switch (false) (defaults to true) // // Change History: // // Date Who What // ---- --- ---- // 2015-01-07 Dan Ogorchock Original Creation // 2018-08-30 Dan Ogorchock Modified comment section above to comply with new Parent/Child Device Handler requirements // 2018-11-07 Dan Ogorchock Added optional "numReqCounts" constructor argument/capability // 2019-07-24 Dan Ogorchock Added parameter to use output as a simple switch instead of momentary output // // //****************************************************************************************** #include "IS_DoorControl.h" #include "Constants.h" #include "Everything.h" namespace st { //private void IS_DoorControl::writeStateToPin() { digitalWrite(m_nOutputPin, m_bInvertLogic ? !m_bCurrentState : m_bCurrentState); } //public //constructor IS_DoorControl::IS_DoorControl(const __FlashStringHelper *name, byte pinInput, bool iState, bool pullup, byte pinOutput, bool startingState, bool invertLogic, unsigned long delayTime, long numReqCounts, bool useMomentary) : InterruptSensor(name, pinInput, iState, pullup, numReqCounts), //use parent class' constructor m_bCurrentState(startingState), m_bInvertLogic(invertLogic), m_lDelayTime(delayTime), m_bUseMomentary(useMomentary), m_lTimeTurnedOn(0), m_bTimerPending(false) { setOutputPin(pinOutput); } //destructor IS_DoorControl::~IS_DoorControl() { } void IS_DoorControl::init() { //get current status of contact sensor by calling parent class's init() routine - no need to duplicate it here! InterruptSensor::init(); } //update function void IS_DoorControl::update() { if (m_bTimerPending) { //Turn off digital output if timer has expired if ((m_bCurrentState == HIGH) && (millis() - m_lTimeTurnedOn >= m_lDelayTime)) { m_bCurrentState = LOW; writeStateToPin(); //Decrement number of active timers if (st::Everything::bTimersPending > 0) st::Everything::bTimersPending--; m_bTimerPending = false; } } //check to see if input pin has changed state InterruptSensor::update(); } void IS_DoorControl::beSmart(const String &str) { String s = str.substring(str.indexOf(' ') + 1); if (st::InterruptSensor::debug) { Serial.print(F("IS_ContactRelay::beSmart s = ")); Serial.println(s); } if ( (s == F("on")) || (m_bUseMomentary && (s == F("off")))) { m_bCurrentState = HIGH; if (m_bUseMomentary) { //Save time turned on m_lTimeTurnedOn = millis(); //Increment number of active timers if (!m_bTimerPending) { st::Everything::bTimersPending++; m_bTimerPending = true; } } if (m_bUseMomentary) { //Queue the door status update the ST Cloud Everything::sendSmartStringNow(getName() + (getStatus() ? F(" opening") : F(" closing"))); } } else if (s == F("off")) { m_bCurrentState = LOW; //Decrement number of active timers if (st::Everything::bTimersPending > 0) st::Everything::bTimersPending--; m_bTimerPending = false; } //update the digital output writeStateToPin(); } //called periodically by Everything class to ensure ST Cloud is kept consistent with the state of the contact sensor void IS_DoorControl::refresh() { Everything::sendSmartString(getName() + (getStatus() ? F(" closed") : F(" open"))); } void IS_DoorControl::runInterrupt() { //add the "closed" event to the buffer to be queued for transfer to the ST Shield Everything::sendSmartString(getName() + F(" closed")); } void IS_DoorControl::runInterruptEnded() { //add the "open" event to the buffer to be queued for transfer to the ST Shield Everything::sendSmartString(getName() + F(" open")); } void IS_DoorControl::setOutputPin(byte pin) { m_nOutputPin = pin; pinMode(m_nOutputPin, OUTPUT); writeStateToPin(); } }
36.12963
224
0.676064
hansaya
815502270af86215db65534b43b0d1f9e277c0f2
2,807
cpp
C++
ass4/testdepartment.cpp
starcraft66/COEN243-Fall-2019-Assignments
66caa4d6bf0f960218c86288e1c17bdae16b22b1
[ "BSD-3-Clause" ]
2
2021-07-24T15:01:50.000Z
2022-01-17T21:49:09.000Z
ass4/testdepartment.cpp
starcraft66/COEN243-Fall-2019-Assignments
66caa4d6bf0f960218c86288e1c17bdae16b22b1
[ "BSD-3-Clause" ]
null
null
null
ass4/testdepartment.cpp
starcraft66/COEN243-Fall-2019-Assignments
66caa4d6bf0f960218c86288e1c17bdae16b22b1
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <array> #include "department.hpp" int main(int argc, char *argv[]) { Employee lastemp; std::string id_number, name, history; std::cout << "Enter the name of the department: "; std::getline(std::cin, name); std::cout << "Enter the department's identification number: "; std::getline(std::cin, id_number); std::cout << "Enter the department's history: "; std::getline(std::cin, history); Department department = Department(id_number, name, history); for(int i = 0; i < 5; i++) { int id, year_hired, tel_area_code; std::string first_name, last_name, dob, address, tel_number; double salary; std::cout << "Entering information for employee #" << i + 1 << std::endl; std::cout << "Enter the first name: "; std::getline(std::cin, first_name); std::cout << "Enter the last name: "; std::getline(std::cin, last_name); std::cout << "Enter the address: "; std::getline(std::cin, address); std::cout << "Enter the id (int): "; std::cin >> id; std::cout << "Enter the year hired: "; std::cin >> year_hired; std::cout << "Enter the phone number area code (int): "; std::cin >> tel_area_code; std::cout << "Enter the phone number: "; std::getline(std::cin, tel_number); std::cout << "Enter the salary: "; std::cin >> salary; std::cout << "Enter the date of birth: "; std::getline(std::cin, dob); Employee emp = Employee(id, first_name, last_name, dob, address, year_hired, salary, tel_area_code, tel_number); department.AddEmployee(emp); lastemp = emp; } std::cout << "Department information" << std::endl; std::cout << "Identification Number: " << department.GetIdNumber() << std::endl; std::cout << "Name: " << department.GetName() << std::endl; std::cout << "History: " << department.GetHistory() << std::endl; std::cout << "Enter the new name of the department: "; std::getline(std::cin, name); department.SetName(name); std::cout << "Enter the department's new history: "; std::getline(std::cin, history); department.SetHistory(history); department.RemoveEmployee(lastemp); std::cout << "Removed the last employee" << std::endl; if(department.DoesEmployeeWorkInDepartment(2)) { std::cout << "Employee 2 works in the department." << std::endl; } else { std::cout << "Employee 2 doesn't work in the department." << std::endl; } std::cout << "List of employees working in the department:" << std::endl; department.PrintEmployeeList(); std::cout << "Number of employees working in the department: "; department.PrintNumberOfEmployees(); }
41.279412
120
0.604916
starcraft66
8155065d74e25fe0011fb3788409b9be64d6a4f5
699
cc
C++
geometry.cc
Computational-Camera/OPENCV_Tricks
e79957306ce8f267cc725f869769ffda92f47e7c
[ "MIT" ]
1
2019-10-30T06:07:52.000Z
2019-10-30T06:07:52.000Z
geometry.cc
Computational-Camera/OPENCV_Tricks
e79957306ce8f267cc725f869769ffda92f47e7c
[ "MIT" ]
null
null
null
geometry.cc
Computational-Camera/OPENCV_Tricks
e79957306ce8f267cc725f869769ffda92f47e7c
[ "MIT" ]
1
2019-11-19T05:56:19.000Z
2019-11-19T05:56:19.000Z
//=== Convert Point vector to Mat=== vector<Point2f> pt_vec; Mat pt_mat = Mat(pt_vec).clone(); //==== Convert Mat to vector === Point *pts = (const Point*) Mat(contour).data; //=== Warp image ==== warpPerspective ( src, dst, T, Size(w,h), INTER_LINEAR, BORDER_CONSTANT); //=== Points Transformation perspectiveTransform(p1, p2, T);//for points! src p1, dst p2 //=== Calculate distantce double cost = norm(Mat(p1), Mat(p2), NORM_L2); //=== Homography matrix estimation ==== findHomography( src_pt, dst_pt, RANSAC ); //=== Perspective matrix estimation ==== getPerspectiveTransform(const Point2f src[], const Point2f dst[]) //===Resize=== resize(src, dst, dst.size(), 0, 0, interpolation);
27.96
73
0.672389
Computational-Camera
8156392c8abad48c94d44fc3bb753aaa80872ca4
7,405
cpp
C++
test-suite/businessdayconventions.cpp
urgu00/QuantLib
fecce0abb0ff3d50da29c129f8f9e73176e20ab9
[ "BSD-3-Clause" ]
1
2020-10-13T09:57:04.000Z
2020-10-13T09:57:04.000Z
test-suite/businessdayconventions.cpp
urgu00/QuantLib
fecce0abb0ff3d50da29c129f8f9e73176e20ab9
[ "BSD-3-Clause" ]
19
2020-11-23T08:36:10.000Z
2022-03-28T10:06:53.000Z
test-suite/businessdayconventions.cpp
urgu00/QuantLib
fecce0abb0ff3d50da29c129f8f9e73176e20ab9
[ "BSD-3-Clause" ]
5
2020-06-04T15:19:22.000Z
2020-06-18T08:24:37.000Z
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modify it under the terms of the QuantLib license. You should have received a copy of the license along with this program; if not, please email <[email protected]>. The license is also available online at <http://quantlib.org/license.shtml>. 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 license for more details. */ #include "businessdayconventions.hpp" #include "utilities.hpp" #include <ql/time/businessdayconvention.hpp> #include <ql/time/daycounter.hpp> #include <ql/time/calendars/southafrica.hpp> #include <ql/time/period.hpp> using namespace QuantLib; using namespace boost::unit_test_framework; namespace business_day_conventions_test { struct SingleCase { SingleCase(const Calendar& calendar, const BusinessDayConvention& convention, const Date& start, const Period& period, const bool endOfMonth, Date result) : calendar(calendar), convention(convention), start(start), period(period), endOfMonth(endOfMonth), result(result) {} Calendar calendar; BusinessDayConvention convention; Date start; Period period; bool endOfMonth; Date result; }; } void BusinessDayConventionTest::testConventions() { BOOST_TEST_MESSAGE("Testing business day conventions..."); using namespace business_day_conventions_test; SingleCase testCases[] = { // Following SingleCase(SouthAfrica(), Following, Date(3,February,2015), Period(1,Months), false, Date(3,March,2015)), SingleCase(SouthAfrica(), Following, Date(3,February,2015), Period(4,Days), false, Date(9,February,2015)), SingleCase(SouthAfrica(), Following, Date(31,January,2015), Period(1,Months), true, Date(27,February,2015)), SingleCase(SouthAfrica(), Following, Date(31,January,2015), Period(1,Months), false, Date(2,March,2015)), //ModifiedFollowing SingleCase(SouthAfrica(), ModifiedFollowing, Date(3,February,2015), Period(1,Months), false, Date(3,March,2015)), SingleCase(SouthAfrica(), ModifiedFollowing, Date(3,February,2015), Period(4,Days), false, Date(9,February,2015)), SingleCase(SouthAfrica(), ModifiedFollowing, Date(31,January,2015), Period(1,Months), true, Date(27,February,2015)), SingleCase(SouthAfrica(), ModifiedFollowing, Date(31,January,2015), Period(1,Months), false, Date(27,February,2015)), SingleCase(SouthAfrica(), ModifiedFollowing, Date(25,March,2015), Period(1,Months), false, Date(28,April,2015)), SingleCase(SouthAfrica(), ModifiedFollowing, Date(7,February,2015), Period(1,Months), false, Date(9,March,2015)), //Preceding SingleCase(SouthAfrica(), Preceding, Date(3,March,2015), Period(-1,Months), false, Date(3,February,2015)), SingleCase(SouthAfrica(), Preceding, Date(3,February,2015), Period(-2,Days), false, Date(30,January,2015)), SingleCase(SouthAfrica(), Preceding, Date(1,March,2015), Period(-1,Months), true, Date(30,January,2015)), SingleCase(SouthAfrica(), Preceding, Date(1,March,2015), Period(-1,Months), false, Date(30,January,2015)), //ModifiedPreceding SingleCase(SouthAfrica(), ModifiedPreceding, Date(3,March,2015), Period(-1,Months), false, Date(3,February,2015)), SingleCase(SouthAfrica(), ModifiedPreceding, Date(3,February,2015), Period(-2,Days), false, Date(30,January,2015)), SingleCase(SouthAfrica(), ModifiedPreceding, Date(1,March,2015), Period(-1,Months), true, Date(2,February,2015)), SingleCase(SouthAfrica(), ModifiedPreceding, Date(1,March,2015), Period(-1,Months), false, Date(2,February,2015)), //Unadjusted SingleCase(SouthAfrica(), Unadjusted, Date(3,February,2015), Period(1,Months), false, Date(3,March,2015)), SingleCase(SouthAfrica(), Unadjusted, Date(3,February,2015), Period(4,Days), false, Date(9,February,2015)), SingleCase(SouthAfrica(), Unadjusted, Date(31,January,2015), Period(1,Months), true, Date(27,February,2015)), SingleCase(SouthAfrica(), Unadjusted, Date(31,January,2015), Period(1,Months), false, Date(28,February,2015)), //HalfMonthModifiedFollowing SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(3,February,2015), Period(1,Months), false, Date(3,March,2015)), SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(3,February,2015), Period(4,Days), false, Date(9,February,2015)), SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(31,January,2015), Period(1,Months), true, Date(27,February,2015)), SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(31,January,2015), Period(1,Months), false, Date(27,February,2015)), SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(3,January,2015), Period(1,Weeks), false, Date(12,January,2015)), SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(21,March,2015), Period(1,Weeks), false, Date(30,March,2015)), SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(7,February,2015), Period(1,Months), false, Date(9,March,2015)), //Nearest SingleCase(SouthAfrica(), Nearest, Date(3,February,2015), Period(1,Months), false, Date(3,March,2015)), SingleCase(SouthAfrica(), Nearest, Date(3,February,2015), Period(4,Days), false, Date(9,February,2015)), SingleCase(SouthAfrica(), Nearest, Date(16,April,2015), Period(1,Months), false, Date(15,May,2015)), SingleCase(SouthAfrica(), Nearest, Date(17,April,2015), Period(1,Months), false, Date(18,May,2015)), SingleCase(SouthAfrica(), Nearest, Date(4,March,2015), Period(1,Months), false, Date(2,April,2015)), SingleCase(SouthAfrica(), Nearest, Date(2,April,2015), Period(1,Months), false, Date(4,May,2015)) }; Size n = sizeof(testCases)/sizeof(SingleCase); for (Size i=0; i<n; i++) { Calendar calendar(testCases[i].calendar); Date result = calendar.advance( testCases[i].start, testCases[i].period, testCases[i].convention, testCases[i].endOfMonth); BOOST_CHECK_MESSAGE(result == testCases[i].result, "\ncase " << i << ":\n" //<< j << " ("<< desc << "): " << "start date: " << testCases[i].start << "\n" << "calendar: " << calendar << "\n" << "period: " << testCases[i].period << ", end of month: " << testCases[i].endOfMonth << "\n" << "convention: " << testCases[i].convention << "\n" << "expected: " << testCases[i].result << " vs. actual: " << result); } } test_suite* BusinessDayConventionTest::suite() { test_suite* suite = BOOST_TEST_SUITE("Business day convention tests"); suite->add(QUANTLIB_TEST_CASE(&BusinessDayConventionTest::testConventions)); return suite; }
56.098485
134
0.669413
urgu00
815725f6f0c76658b1c9bbb9f3e517267dd67b44
511
cpp
C++
SVEngine/src/detect/SVDetectBase.cpp
SVEChina/SVEngine
56174f479a3096e57165448142c1822e7db8c02f
[ "MIT" ]
34
2018-09-28T08:28:27.000Z
2022-01-15T10:31:41.000Z
SVEngine/src/detect/SVDetectBase.cpp
SVEChina/SVEngine
56174f479a3096e57165448142c1822e7db8c02f
[ "MIT" ]
null
null
null
SVEngine/src/detect/SVDetectBase.cpp
SVEChina/SVEngine
56174f479a3096e57165448142c1822e7db8c02f
[ "MIT" ]
8
2018-10-11T13:36:35.000Z
2021-04-01T09:29:34.000Z
// // SVDetectBase.cpp // SVEngine // Copyright 2017-2020 // yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li // #include "SVDetectBase.h" #include "SVPerson.h" SVDetectBase::SVDetectBase(SVInst *_app) :SVListenBase(_app) { } SVDetectBase::~SVDetectBase() { } void SVDetectBase::update(f32 _dt){ } void SVDetectBase::pushData(void *_faceData){ } s32 SVDetectBase::transformIndex(s32 index) { return 0; } BINDREGION SVDetectBase::getIndexRegion(s32 index) { return BD_REGION_CENTER; }
15.96875
62
0.729941
SVEChina
8158b3b9570f392bc42ac6e73e216775910e2b5c
38,558
hpp
C++
include/pstore/core/hamt_map_types.hpp
paulhuggett/pstore
067be94d87c87fce524c8d76c6f47c347d8f1853
[ "Apache-2.0" ]
null
null
null
include/pstore/core/hamt_map_types.hpp
paulhuggett/pstore
067be94d87c87fce524c8d76c6f47c347d8f1853
[ "Apache-2.0" ]
1
2021-03-09T21:33:38.000Z
2021-03-09T21:33:38.000Z
include/pstore/core/hamt_map_types.hpp
paulhuggett/pstore
067be94d87c87fce524c8d76c6f47c347d8f1853
[ "Apache-2.0" ]
null
null
null
//===- include/pstore/core/hamt_map_types.hpp -------------*- mode: C++ -*-===// //* _ _ _ * //* | |__ __ _ _ __ ___ | |_ _ __ ___ __ _ _ __ | |_ _ _ _ __ ___ ___ * //* | '_ \ / _` | '_ ` _ \| __| | '_ ` _ \ / _` | '_ \ | __| | | | '_ \ / _ \/ __| * //* | | | | (_| | | | | | | |_ | | | | | | (_| | |_) | | |_| |_| | |_) | __/\__ \ * //* |_| |_|\__,_|_| |_| |_|\__| |_| |_| |_|\__,_| .__/ \__|\__, | .__/ \___||___/ * //* |_| |___/|_| * //===----------------------------------------------------------------------===// // // Part of the pstore project, under the Apache License v2.0 with LLVM Exceptions. // See https://github.com/SNSystems/pstore/blob/master/LICENSE.txt for license // information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// \file hamt_map_types.hpp #ifndef PSTORE_CORE_HAMT_MAP_TYPES_HPP #define PSTORE_CORE_HAMT_MAP_TYPES_HPP #include "pstore/adt/chunked_sequence.hpp" #include "pstore/core/array_stack.hpp" #include "pstore/core/db_archive.hpp" namespace pstore { class transaction_base; namespace index { namespace details { using hash_type = std::uint64_t; /// The number of bits in hash_type. This is the maximum number of children that an /// internal-node can carry. constexpr auto const hash_size = sizeof (hash_type) * 8; #ifdef _MSC_VER // TODO: VC2015RC won't allow pop_count to be constexpr. Sigh. This forces a (very // crude) population count implementation namespace details_count { constexpr inline unsigned bit_set (std::size_t v, unsigned bit) { return (v & (std::size_t{1} << bit)) >> bit; } constexpr inline unsigned crude_pop_count (std::size_t v) { return bit_set (v, 0x00) + bit_set (v, 0x01) + bit_set (v, 0x02) + bit_set (v, 0x03) + bit_set (v, 0x04) + bit_set (v, 0x05) + bit_set (v, 0x06) + bit_set (v, 0x07) + bit_set (v, 0x08) + bit_set (v, 0x09) + bit_set (v, 0x0A) + bit_set (v, 0x0B) + bit_set (v, 0x0C) + bit_set (v, 0x0D) + bit_set (v, 0x0E) + bit_set (v, 0x0F); } } // namespace details_count constexpr unsigned hash_index_bits = details_count::crude_pop_count (hash_size - 1); #else /// The number of bits that it takes to represent hash_size. constexpr unsigned hash_index_bits = bit_count::pop_count (hash_size - 1); #endif constexpr unsigned max_hash_bits = (hash_size + 7) / hash_index_bits * hash_index_bits; constexpr unsigned hash_index_mask = (1U << hash_index_bits) - 1U; constexpr unsigned max_internal_depth = max_hash_bits / hash_index_bits; /// The max depth of the hash trees include several levels internal nodes /// (max_internal_depth), one linear node and one leaf node. constexpr unsigned max_tree_depth = max_internal_depth + 2U; /// Using LSB for marking internal nodes constexpr std::uintptr_t internal_node_bit = 1; /// Using second LSB for marking newly allocated internal nodes constexpr std::uintptr_t heap_node_bit = 2; } // end namespace details //* _ _ _ _ _ * //* | |_ ___ __ _ __| |___ _ _ | |__| |___ __| |__ * //* | ' \/ -_) _` / _` / -_) '_| | '_ \ / _ \/ _| / / * //* |_||_\___\__,_\__,_\___|_| |_.__/_\___/\__|_\_\ * //* * /// The address of an instance of this type is passed to the hamt_map ctor to load an /// existing index, and it is returned by a call to hamt_map::flush(). struct header_block { std::array<std::uint8_t, 8> signature; /// The number of keys stored in the tree. std::uint64_t size; /// The store address of the tree's root node. address root; }; PSTORE_STATIC_ASSERT (sizeof (header_block) == 24); PSTORE_STATIC_ASSERT (offsetof (header_block, signature) == 0); PSTORE_STATIC_ASSERT (offsetof (header_block, size) == 8); PSTORE_STATIC_ASSERT (offsetof (header_block, root) == 16); namespace details { std::size_t const not_found = std::numeric_limits<std::size_t>::max (); class internal_node; class linear_node; constexpr bool depth_is_internal_node (unsigned const shift) noexcept { return shift < details::max_hash_bits; } struct nchildren { std::size_t n; }; //* _ _ _ _ * //* (_)_ _ __| |_____ __ _ __ ___(_)_ _| |_ ___ _ _ * //* | | ' \/ _` / -_) \ / | '_ \/ _ \ | ' \ _/ -_) '_| * //* |_|_||_\__,_\___/_\_\ | .__/\___/_|_||_\__\___|_| * //* |_| * /// An index pointer is either a database address or a pointer to volatile RAM. /// The type information (which of the two fields applies) is carried externally. union index_pointer { index_pointer () noexcept : internal{nullptr} {} explicit index_pointer (address const a) noexcept : addr (a) {} explicit index_pointer (typed_address<internal_node> const a) noexcept : addr (a.to_address ()) {} explicit index_pointer (typed_address<linear_node> const a) noexcept : addr (a.to_address ()) {} explicit index_pointer (internal_node * const p) noexcept : internal{tag_node (p)} {} explicit index_pointer (linear_node * const p) noexcept : linear{tag_node (p)} {} index_pointer (index_pointer const &) noexcept = default; index_pointer (index_pointer &&) noexcept = default; index_pointer & operator= (index_pointer const &) = default; index_pointer & operator= (index_pointer &&) noexcept = default; index_pointer & operator= (address const & a) noexcept { addr = a; return *this; } index_pointer & operator= (typed_address<internal_node> const & a) noexcept { addr = a.to_address (); return *this; } index_pointer & operator= (typed_address<linear_node> const & a) noexcept { addr = a.to_address (); return *this; } index_pointer & operator= (internal_node * const p) noexcept { internal = tag_node (p); return *this; } index_pointer & operator= (linear_node * const l) noexcept { linear = tag_node (l); return *this; } bool operator== (index_pointer const & other) const noexcept { return addr == other.addr; } bool operator!= (index_pointer const & other) const noexcept { return !operator== (other); } explicit operator bool () const noexcept { return !this->is_empty (); } /// Returns true if the index_pointer is pointing to an internal node, false /// otherwise. /// \sa is_leaf bool is_internal () const noexcept { return (reinterpret_cast<std::uintptr_t> (internal) & internal_node_bit) != 0; } /// Returns true if the index_pointer is pointing to a linear node, false otherwise. /// \sa is_leaf /// \note A linear node is always found at max_internal_depth. This function will /// return true for internal nodes at lower tree levels. bool is_linear () const noexcept { return is_internal (); } /// Returns true if the index_pointer is pointing to a value address in the store, /// false otherwise. /// \sa is_internal bool is_leaf () const noexcept { return !is_internal (); } /// Returns true if the index_pointer is pointing to a heap node, false otherwise. /// \sa is_addr bool is_heap () const noexcept { return (reinterpret_cast<std::uintptr_t> (internal) & heap_node_bit) != 0; } /// Returns true if the index_pointer is pointing to a store node, false otherwise. /// \sa is_heap bool is_address () const noexcept { return !is_heap (); } bool is_empty () const noexcept { return internal == nullptr; } template <typename T> T tag_node () const noexcept { return reinterpret_cast<T> (tag ()); } template <typename T> T untag_node () const noexcept { return reinterpret_cast<T> (untag ()); } typed_address<internal_node> untag_internal_address () const noexcept { return typed_address<internal_node>::make (addr.absolute () & ~internal_node_bit); } typed_address<linear_node> untag_linear_address () const noexcept { return typed_address<linear_node>::make (addr.absolute () & ~internal_node_bit); } address addr; internal_node * internal; linear_node * linear; private: static std::uintptr_t tag (void * const p) noexcept { return reinterpret_cast<std::uintptr_t> (p) | internal_node_bit | heap_node_bit; } std::uintptr_t tag () const noexcept { return tag (internal); } static internal_node * tag_node (internal_node * const p) noexcept { return reinterpret_cast<internal_node *> (tag (p)); } static linear_node * tag_node (linear_node * const p) noexcept { return reinterpret_cast<linear_node *> (tag (p)); } std::uintptr_t untag () const noexcept { return reinterpret_cast<std::uintptr_t> (internal) & ~internal_node_bit & ~heap_node_bit; } }; PSTORE_STATIC_ASSERT (sizeof (index_pointer) == 8); PSTORE_STATIC_ASSERT (alignof (index_pointer) == 8); PSTORE_STATIC_ASSERT (offsetof (index_pointer, addr) == 0); PSTORE_STATIC_ASSERT (sizeof (index_pointer::internal) == sizeof (index_pointer::addr)); PSTORE_STATIC_ASSERT (offsetof (index_pointer, internal) == 0); PSTORE_STATIC_ASSERT (sizeof (index_pointer::linear) == sizeof (index_pointer::addr)); PSTORE_STATIC_ASSERT (offsetof (index_pointer, linear) == 0); //* _ _ * //* _ __ __ _ _ _ ___ _ _| |_ | |_ _ _ _ __ ___ * //* | '_ \/ _` | '_/ -_) ' \ _| | _| || | '_ \/ -_) * //* | .__/\__,_|_| \___|_||_\__| \__|\_, | .__/\___| * //* |_| |__/|_| * /// \brief A class used to keep the pointer to parent node and the child slot. class parent_type { public: parent_type () = default; /// Constructs a parent type object. /// \param idx The pointer to either the parent node or a leaf node. /// \param pos If idx is a leaf node address, pos is set to the default value /// (not_found). Otherwise, pos refers to the child slot. parent_type (index_pointer const idx, std::size_t const pos = not_found) noexcept : node (idx) , position (pos) {} bool operator== (parent_type const & other) const { return position == other.position && node == other.node; } bool operator!= (parent_type const & other) const { return !operator== (other); } index_pointer node; std::size_t position = 0; }; using parent_stack = array_stack<parent_type, max_tree_depth>; //* _ _ _ * //* | (_)_ _ ___ __ _ _ _ _ _ ___ __| |___ * //* | | | ' \/ -_) _` | '_| | ' \/ _ \/ _` / -_) * //* |_|_|_||_\___\__,_|_| |_||_\___/\__,_\___| * //* * /// \brief A linear node. /// Linear nodes as used as the place of last resort for entries which cannot be /// distinguished by their hash value. class linear_node { public: using iterator = address *; using const_iterator = address const *; void * operator new (std::size_t) = delete; void operator delete (void * p); ~linear_node () noexcept = default; linear_node & operator= (linear_node const & rhs) = delete; linear_node & operator= (linear_node && rhs) = delete; /// \name Construction ///@{ /// \brief Allocates a new linear node in memory and copy the contents of an /// existing node into it. The new node is allocated with sufficient storage for the /// child of the supplied node plus the number passed in the 'extra_children' /// parameter. /// /// \param orig_node A node whose contents will be copied into the newly allocated /// linear node. /// \param extra_children The number of extra child for which space will be /// allocated. This number is added to the number of children in 'orig_node' in /// calculating the amount of storage to be allocated. /// \result A pointer to the newly allocated linear node. static std::unique_ptr<linear_node> allocate_from (linear_node const & orig_node, std::size_t extra_children); /// \brief Allocates a new in-memory linear node based on the contents of an /// existing store node. /// /// \param db The database from which the source node should be loaded. /// \param node A reference to the source node which may be either in-heap or /// in-store. /// \param extra_children The number of additional child nodes for which storage /// should be allocated. /// \result A pointer to the newly allocated linear node. static std::unique_ptr<linear_node> allocate_from (database const & db, index_pointer const node, std::size_t extra_children); /// \brief Allocates a new linear node in memory with sufficient space for two leaf /// addresses. /// /// \param a The first leaf address for the new linear node. /// \param b The second leaf address for the new linear node. /// \result A pointer to the newly allocated linear node. static std::unique_ptr<linear_node> allocate (address a, address b); /// \brief Returns a pointer to a linear node which may be in-heap or in-store. /// /// If the supplied index_pointer points to a heap-resident linear node then returns /// a pair whose first member is nullptr and whose second member contains the node /// pointer. If the index_pointer references an in-store linear node then the node /// is fetched and the function returns a pair whose first member is the store's /// shared_ptr and whose second member is the equivalent raw pointer (i.e. /// result.first.get () == result.second). In this case, the second pointer is only /// valid as long as the first pointer is "live". /// /// \param db The database from which the node should be loaded. /// \param node A pointer to the node location: either in the heap or in the store. /// \result A pair holding a pointer to the node in-store memory (if necessary) and /// its raw pointer. static auto get_node (database const & db, index_pointer const node) -> std::pair<std::shared_ptr<linear_node const>, linear_node const *>; ///@} /// \name Element access ///@{ address operator[] (std::size_t const i) const noexcept { PSTORE_ASSERT (i < size_); return leaves_[i]; } address & operator[] (std::size_t const i) noexcept { PSTORE_ASSERT (i < size_); return leaves_[i]; } ///@} /// \name Iterators ///@{ iterator begin () { return leaves_; } const_iterator begin () const { return leaves_; } const_iterator cbegin () const { return this->begin (); } iterator end () { return leaves_ + size_; } const_iterator end () const { return leaves_ + size_; } const_iterator cend () const { return this->end (); } ///@} /// \name Capacity ///@{ /// Checks whether the container is empty. bool empty () const { return size_ == 0; } /// Returns the number of elements. std::size_t size () const { return size_; } ///@} /// \name Storage ///@{ /// Returns the number of bytes of storage required for the node. std::size_t size_bytes () const { return linear_node::size_bytes (this->size ()); } /// Returns the number of bytes of storage required for a linear node with 'size' /// children. static constexpr std::size_t size_bytes (std::uint64_t const size) { return sizeof (linear_node) - sizeof (linear_node::leaves_) + sizeof (linear_node::leaves_[0]) * size; } ///@} /// Write this linear node to the store. /// /// \param transaction The transaction to which the linear node will be appended. /// \result The address at which the node was written. address flush (transaction_base & transaction) const; /// Search the linear node and return the child slot if the key exists. /// Otherwise, return the {nullptr, not_found} pair. /// \tparam KeyType The type of the keys stored in the linear node. /// \tparam OtherKeyType A type whose serialized value is compatible with KeyType /// \tparam KeyEqual The type of the key-comparison function. /// \param db The dataase instance from which child nodes should be loaded. /// \param key The key to be located. /// \param equal A comparison function which will be called to compare child nodes /// to the supplied key value. It should return true if the keys match and false /// otherwise. /// \result If found, returns an `index_pointer` reference to the child node and the /// position within the linear node instance of the child record. If not found, /// returns the pair index_pointer (), details::not_found. template <typename KeyType, typename OtherKeyType, typename KeyEqual, typename = typename std::enable_if< serialize::is_compatible<KeyType, OtherKeyType>::value>::type> auto lookup (database const & db, OtherKeyType const & key, KeyEqual equal) const -> std::pair<index_pointer const, std::size_t>; private: using signature_type = std::array<std::uint8_t, 8>; static signature_type const node_signature_; /// A placement-new implementation which allocates sufficient storage for a linear /// node with the number of children given by the size parameter. void * operator new (std::size_t s, nchildren size); // Non-allocating placement allocation functions. void * operator new (std::size_t const size, void * const ptr) noexcept { return ::operator new (size, ptr); } void operator delete (void * p, nchildren size); void operator delete (void * const p, void * const ptr) noexcept { ::operator delete (p, ptr); } /// \param size The capacity of this linear node. explicit linear_node (std::size_t size); linear_node (linear_node const & rhs); linear_node (linear_node && rhs) = delete; /// Allocates a new linear node in memory. /// /// \param num_children Sufficient space is allocated for the number of child nodes /// specified in this parameter. /// \param from_node A node whose contents will be copied into the new node. If the /// number of children requested is greater than the number of children in /// from_node, the remaining entries are zeroed; if less then the child node /// collection is truncated after the specified number of entries. /// \result A pointer to the newly allocated linear node. static std::unique_ptr<linear_node> allocate (std::size_t num_children, linear_node const & from_node); signature_type signature_ = node_signature_; std::uint64_t size_; address leaves_[1]; }; // lookup // ~~~~~~ template <typename KeyType, typename OtherKeyType, typename KeyEqual, typename> auto linear_node::lookup (database const & db, OtherKeyType const & key, KeyEqual equal) const -> std::pair<index_pointer const, std::size_t> { // Linear search. TODO: perhaps we should sort the nodes and use a binary // search? This would require a template compare method. std::size_t cnum = 0; for (auto const & child : *this) { KeyType const existing_key = serialize::read<KeyType> (serialize::archive::database_reader{db, child}); if (equal (existing_key, key)) { return {index_pointer{child}, cnum}; } ++cnum; } // Not found return {index_pointer (), details::not_found}; } //* _ _ _ _ * //* (_)_ _| |_ ___ _ _ _ _ __ _| | ___ ___ __| |___ * //* | | ' \ _/ -_) '_| ' \/ _` | | | \/ _ \/ _` / -_) * //* |_|_||_\__\___|_| |_||_\__,_|_| |_|\_\___/\__,_\___| * //* * /// An internal trie node. class internal_node { public: using iterator = index_pointer *; using const_iterator = index_pointer const *; /// Construct an internal node with a child. internal_node (index_pointer const & leaf, hash_type hash); /// Construct the internal node with two children. internal_node (index_pointer const & existing_leaf, index_pointer const & new_leaf, hash_type existing_hash, hash_type new_hash); internal_node (internal_node const & rhs); internal_node (internal_node && rhs) = delete; ~internal_node () noexcept = default; internal_node & operator= (internal_node const & rhs) = delete; internal_node & operator= (internal_node && rhs) = delete; /// Construct an internal node from existing internal-node instance. This may be /// used, for example, when copying an in-store node into memory in preparation for /// modifying it. /// /// \tparam SequenceContainer A container of internal_node instances which supports /// emplace_back(). /// \param container Points to the container which will own the new internal node /// instance. /// \param other A existing internal_node whose contents are copied into the newly /// allocated instance. /// \returns A new instance of internal_node which is owned by *container. template <typename SequenceContainer, typename = typename std::enable_if<std::is_same< typename SequenceContainer::value_type, internal_node>::value>::type> static internal_node * allocate (SequenceContainer * const container, internal_node const & other) { container->emplace_back (other); // TODO: in C++17 we can use the emplace_back return value. return &container->back (); } /// Construct an internal node with a single child. /// /// \tparam SequenceContainer A container of internal_node instances which supports /// emplace_back(). /// \param container Points to the container which will own the new internal node /// instance. /// \param leaf The child of the newly allocated internal node. /// \param hash The hash associated with the child node. /// \returns A new instance of internal_node which is owned by *container. template <typename SequenceContainer, typename = typename std::enable_if<std::is_same< typename SequenceContainer::value_type, internal_node>::value>::type> static internal_node * allocate (SequenceContainer * container, index_pointer const & leaf, hash_type const hash) { container->emplace_back (leaf, hash); // TODO: in C++17 we can use the emplace_back return value. return &container->back (); } /// Construct an internal node with two children. /// /// \tparam SequenceContainer A container of internal_node instances which supports /// emplace_back(). /// \param container Points to the container which will own the new internal node /// instance. /// \param existing_leaf One of the two child nodes of the new internal node. /// \param new_leaf One of the two child nodes of the new internal node. /// \param existing_hash The hash associated with the \p existing_leaf node. /// \param new_hash The hash associated with the \p new_leaf node. /// \returns A new instance of internal_node which is owned by *container. template <typename SequenceContainer, typename = typename std::enable_if<std::is_same< typename SequenceContainer::value_type, internal_node>::value>::type> static internal_node * allocate (SequenceContainer * container, index_pointer const & existing_leaf, index_pointer const & new_leaf, hash_type const existing_hash, hash_type const new_hash) { container->emplace_back (existing_leaf, new_leaf, existing_hash, new_hash); // TODO: in C++17 we can use the emplace_back return value. return &container->back (); } /// Return a pointer to an internal node. If the node is in-store, it is loaded and /// the internal heap node pointer if \p node is a heap internal node. /// Otherwise return the pointer which is pointed to the store node. /// /// \param db The database containing the node. /// \param node The node's location: either in-store or in-heap. /// \return A pair of which the first element is a in-store pointer to the node /// body. This may be null if called on a heap-resident node. The second element is /// the raw node pointer, that is, the address of a heap node or the result of /// calling .get() on the store-pointer. static auto get_node (database const & db, index_pointer const node) -> std::pair<std::shared_ptr<internal_node const>, internal_node const *>; /// Load an internal node from the store. static auto read_node (database const & db, typed_address<internal_node> const addr) -> std::shared_ptr<internal_node const>; /// Returns a writable reference to an internal node. If the \p node parameter /// references an in-heap node, then this pointer is returned otherwise a copy of /// the \p internal parameter is placed in heap-allocated memory. /// /// \note It is expected that both \p node and \p internal are references to the /// same node. /// /// \tparam SequenceContainer A container of internal_node instances which supports /// emplace_back(). /// \param container Points to the container which will own the new internal node /// instance. /// \param node A reference to an internal node. This may be either in-store on the /// heap. If on the heap the returned value is the underlying pointer. /// \param internal A read-only instance of an internal node. If the \p node /// parameter is in-store then a copy of this value is placed on the heap. /// \result See above. template <typename SequenceContainer, typename = typename std::enable_if<std::is_same< typename SequenceContainer::value_type, internal_node>::value>::type> static internal_node * make_writable (SequenceContainer * const container, index_pointer const node, internal_node const & internal) { if (node.is_heap ()) { internal_node * const inode = node.untag_node<internal_node *> (); PSTORE_ASSERT (inode->signature_ == node_signature_); return inode; } return allocate (container, internal); } /// Returns the number of bytes occupied by an in-store internal node with the given /// number of child nodes. Note that the storage occupied by an in-heap internal /// node with the same number of children may be greater. /// /// \param num_children The number of children to assume for the purpose of /// computing the number of bytes occupied. /// \return The number of bytes occupied by an in-store internal node with the given /// number of child nodes. static constexpr std::size_t size_bytes (std::size_t const num_children) noexcept { PSTORE_ASSERT (num_children > 0 && num_children <= hash_size); return sizeof (internal_node) - sizeof (internal_node::children_) + sizeof (decltype (internal_node::children_[0])) * num_children; } /// Returns the number of children contained by this node. unsigned size () const noexcept { PSTORE_ASSERT (this->bitmap_ != hash_type{0}); return bit_count::pop_count (this->bitmap_); } /// Return the new leaf child index number. static unsigned get_new_index (hash_type const new_hash, hash_type const existing_hash) noexcept { return static_cast<unsigned> (new_hash >= existing_hash); } std::pair<index_pointer, std::size_t> lookup (hash_type hash_index) const; /// Insert a child into the internal node (this). void insert_child (hash_type const hash, index_pointer const leaf, gsl::not_null<parent_stack *> parents); /// Write an internal node and its children into a store. address flush (transaction_base & transaction, unsigned shifts); index_pointer const & operator[] (std::size_t const i) const { PSTORE_ASSERT (i < size ()); return children_[i]; } index_pointer & operator[] (std::size_t const i) { PSTORE_ASSERT (i < size ()); return children_[i]; } hash_type get_bitmap () const noexcept { return bitmap_; } /// A function for deliberately creating illegal internal nodes in the unit test. DO /// NOT USE except for that purpose! void set_bitmap (hash_type const bm) noexcept { bitmap_ = bm; } /// \name Iterators ///@{ iterator begin () noexcept { return &children_[0]; } const_iterator begin () const { return &children_[0]; } const_iterator cbegin () const { return &children_[0]; } iterator end () noexcept { return this->begin () + this->size (); } const_iterator end () const { return this->begin () + this->size (); } const_iterator cend () const { return this->cbegin () + this->size (); } ///@} private: static bool validate_after_load (internal_node const & internal, typed_address<internal_node> const addr); /// Appends the internal node (which refers to a node in heap memory) to the /// store. Returns a new (in-store) internal store address. address store_node (transaction_base & transaction) const; using signature_type = std::array<std::uint8_t, 8>; static signature_type const node_signature_; /// A magic number for internal nodes in the store. Acts as a quick integrity test /// for the index structures. signature_type signature_ = node_signature_; /// For each index in the children array, the corresponding bit is set in this field /// if it is a reference to an internal node or an leaf node. In a linear node, the /// bitmap field contains the number of elements in the array. hash_type bitmap_ = 0; /// \brief The array of child node references. /// Each child may be in-memory or in-store. index_pointer children_[1U]; }; // lookup // ~~~~~~ inline auto internal_node::lookup (hash_type const hash_index) const -> std::pair<index_pointer, std::size_t> { PSTORE_ASSERT (hash_index < (hash_type{1} << hash_index_bits)); auto const bit_pos = hash_type{1} << hash_index; if ((bitmap_ & bit_pos) != 0) { //! OCLINT(PH - bitwise in conditional is ok) std::size_t const index = bit_count::pop_count (bitmap_ & (bit_pos - 1U)); return {children_[index], index}; } return {index_pointer{}, not_found}; } } // namespace details } // namespace index } // namespace pstore #endif // PSTORE_CORE_HAMT_MAP_TYPES_HPP
52.891632
100
0.518595
paulhuggett
815e6b183d2acb5cedfe2d6291338ba75c426576
1,339
hpp
C++
include/unifex/detail/unifex_fwd.hpp
ChuanqiXu9/libunifex
33c48459a86029e38a376f1d74799a0caee252a0
[ "Apache-2.0" ]
null
null
null
include/unifex/detail/unifex_fwd.hpp
ChuanqiXu9/libunifex
33c48459a86029e38a376f1d74799a0caee252a0
[ "Apache-2.0" ]
null
null
null
include/unifex/detail/unifex_fwd.hpp
ChuanqiXu9/libunifex
33c48459a86029e38a376f1d74799a0caee252a0
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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. */ #pragma once namespace unifex { namespace detail { template <typename, typename = void> extern const bool _is_executor; template <typename E, typename R, typename = void> extern const bool _can_execute; template <typename S, typename F, typename = void> extern const bool _can_submit; } // detail namespace _execute_cpo { extern const struct _fn execute; } // namespace _execute_cpo using _execute_cpo::execute; namespace _submit_cpo { extern const struct _fn submit; } // namespace _submit_cpo using _submit_cpo::submit; namespace _connect_cpo { extern const struct _fn connect; } // namespace _connect_cpo using _connect_cpo::connect; } // namespace unifex
29.108696
75
0.725915
ChuanqiXu9