hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
109
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
48.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
36678073975dc73c6804ed2c9a56ebf006b42802
840
cpp
C++
copyconst2.cpp
maansisrivastava/Practice-code-C-
23f8c3798c15725bf14bb1215c01e7ad857a11b6
[ "MIT" ]
null
null
null
copyconst2.cpp
maansisrivastava/Practice-code-C-
23f8c3798c15725bf14bb1215c01e7ad857a11b6
[ "MIT" ]
null
null
null
copyconst2.cpp
maansisrivastava/Practice-code-C-
23f8c3798c15725bf14bb1215c01e7ad857a11b6
[ "MIT" ]
null
null
null
#include<iostream> #include<conio.h> using namespace std; class inte { public: int m; public: inte(inte &i); inte(int x) { m=x; } void show() { cout<<"\t m :"<<m; } }; inte::inte(inte &i) { m=i.m; } main() { inte i1(10); inte i2(i1); i2.show(); inte i3=i2; i3.show(); getch(); return 0; }
23.333333
36
0.204762
maansisrivastava
3667da790b0729903f6897de14053076ab5d0bb7
2,015
cpp
C++
arch/platform/platform-x86_64.cpp
IGR2014/kernale
a8b43cf7d89c3d92b14ffdb88683023048f4bf78
[ "MIT" ]
4
2019-08-09T09:20:40.000Z
2021-09-10T00:59:30.000Z
arch/platform/platform-x86_64.cpp
IGR2014/kernale
a8b43cf7d89c3d92b14ffdb88683023048f4bf78
[ "MIT" ]
12
2017-10-24T14:22:46.000Z
2020-07-17T16:20:39.000Z
arch/platform/platform-x86_64.cpp
IGR2014/kernale
a8b43cf7d89c3d92b14ffdb88683023048f4bf78
[ "MIT" ]
1
2019-08-01T07:49:36.000Z
2019-08-01T07:49:36.000Z
//////////////////////////////////////////////////////////////// // // Platform description for x86_64 // // File: platform-x86_64.cpp // Date: 24 Sep 2021 // // Copyright (c) 2017 - 2021, Igor Baklykov // All rights reserved. // // #include <platform.hpp> #include <arch/x86_64/types.hpp> #include <arch/x86_64/idt.hpp> #include <arch/x86_64/exceptions.hpp> #include <arch/x86_64/gdt.hpp> #include <arch/x86_64/paging.hpp> #include <arch/x86_64/irq.hpp> #include <klib/kprint.hpp> // x86_64 namespace namespace igros::x86_64 { // Initialize x86_64 void x86_64Init() noexcept { klib::kprintf("Initializing x86_64 platform...", __func__); // Setup Interrupts Descriptor Table x86_64::idt::init(); // Init exceptions x86_64::except::init(); // Setup Global Descriptors Table x86_64::gdt::init(); // Setup paging (And identity map first 4MB where kernel physically is) x86_64::paging::init(); // Init interrupts x86_64::irq::init(); // Enable interrupts x86_64::irq::enable(); } // Finalize x86_64 void x86_64Finalize() noexcept { klib::kprintf("%s:\tNot implemented yet!", __func__); } // Shutdown x86_64 void x86_64Shutdown() noexcept { klib::kprintf("%s:\tNot implemented yet!", __func__); } // Reboot x86_64 void x86_64Reboot() noexcept { klib::kprintf("%s:\tNot implemented yet!", __func__); } // Suspend x86_64 void x86_64Suspend() noexcept { klib::kprintf("%s:\tNot implemented yet!", __func__); } // Wakeup x86_64 void x86_64Wakeup() noexcept { klib::kprintf("%s:\tNot implemented yet!", __func__); } } // namespace igros::x86_64 // OS platform namespace igros::platform { // Platform description const description_t CURRENT_PLATFORM { "x86_64", x86_64::x86_64Init, x86_64::x86_64Finalize, x86_64::x86_64Shutdown, x86_64::x86_64Reboot, x86_64::x86_64Suspend, x86_64::x86_64Wakeup }; } // namespace igros::platform
20.353535
74
0.636228
IGR2014
366b7c8e205c89332ae99e76b0b21345896461b8
3,366
cpp
C++
src/kernel.cpp
Codesmith512/Apex
c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b
[ "MIT" ]
1
2021-04-01T09:34:26.000Z
2021-04-01T09:34:26.000Z
src/kernel.cpp
Codesmith512/Apex
c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b
[ "MIT" ]
null
null
null
src/kernel.cpp
Codesmith512/Apex
c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b
[ "MIT" ]
null
null
null
/* Kernel */ #include "mem_manager" #include "multiboot2" #include "page_manager" #include "pic" #include "ports" #include "interrupts" /* IO */ #include <keyboard> #include <vga_screen> /* STL */ #include <array> #include <std_external> #include <tuple> #include <vector> /* APEX */ #include <helpers> #include <stack_string> /* Get a static pager with static memory & no constructor call */ static char pager_memory[sizeof(page_manager)]; static page_manager& pager = *reinterpret_cast<page_manager*>(pager_memory); /* Get a static memory manager with static memory & no constructor call */ static char m_manager_memory[sizeof(mem_manager)]; static mem_manager& m_manager = *reinterpret_cast<mem_manager*>(m_manager_memory); /** * The kernel initialization point * Supported Features * - Stack * - GDT * * Initializes * - Paging * - Dynamic Memory/Heap * - Global static variables (after this function returns) */ extern "C" void kernel_init(page_manager::page_directory* page_dir, const multiboot2::tag_entry* tags) { /* Initialize Paging */ pager.init(page_dir); /* Parse Multiboot Tags */ for(const multiboot2::tag_generic* tag = tags->first(); tag->type != 0; tag = tag->next()) { switch(tag->type) { case 6: { /* Read the memory map */ const multiboot2::tag_memory_map* mmap = reinterpret_cast<const multiboot2::tag_memory_map*>(tag); const multiboot2::tag_memory_map::Entry* entry = mmap->first_entry(); for(unsigned int i = 0; i < mmap->entry_count(); ++i, entry = entry->next()) { /* Send to the pager */ if(entry->get_length_32() >= 0x400000) for(uintptr_t page = apex::ceil(entry->get_base_32(), static_cast<uint32_t>(0x400000)); page < entry->get_base_32() + entry->get_length_32(); page += 0x400000) pager.free_phys_page(page); } } break; } } /* Enable paging */ void* kernel_addr = reinterpret_cast<void*>(&kernel_init); pager.alloc_page(kernel_addr, kernel_addr); pager.enable_paging(); /* Enable the memory manager */ m_manager.init(&pager); } /** * Second-round init function, happens after _init * * Initializes * - Interrupts/PIC */ extern "C" void kernel_init2() { /* Setup interrupts */ interrupts::setup(); interrupts::enable_hw_interrupts(); pic::initialize(); } /** * Kernel main function -- do whatever you want! * C++ is already as setup as it's going to get * * @return 0 on success, other on error */ extern "C" int kernel_main() { /* Setup Screen */ io::screen::vga_manager manager({80,25}); io::screen::vga_screen& debug_screen = manager.create_screen({0,0}, {80,25}, "Debug"); manager.set_active(debug_screen); /* Setup Keyboard */ io::keyboard::enable(); io::keyboard::register_callback(&io::screen::vga_manager::global_event); /* Hang w/ interrupts */ for(;;); /* Success! */ return 0; } /** * Define classic C functions for STL */ STL_BEGIN extern "C" { /* Malloc */ void* malloc(size_t size) { return m_manager.malloc(size); } /* Aligned Malloc -- not sure why, but align comes first in std c */ void* aligned_alloc(size_t alloc, size_t size) { return m_manager.malloc(size, alloc); } /* Free */ void free(void* ptr) { m_manager.free(ptr); } } STL_END
24.391304
106
0.656269
Codesmith512
36752084da4967101bdfdc135f6aea986d786708
1,683
cpp
C++
email/src/gid.cpp
christophebedard/rmw_email
c0110b6fc6a61f389ec58f54496c39f6026a4a13
[ "Apache-2.0" ]
14
2021-09-19T02:04:37.000Z
2022-02-24T08:15:50.000Z
email/src/gid.cpp
christophebedard/rmw_email
c0110b6fc6a61f389ec58f54496c39f6026a4a13
[ "Apache-2.0" ]
5
2021-09-18T23:50:02.000Z
2022-02-21T14:44:49.000Z
email/src/gid.cpp
christophebedard/rmw_email
c0110b6fc6a61f389ec58f54496c39f6026a4a13
[ "Apache-2.0" ]
2
2021-09-20T13:56:38.000Z
2021-12-10T09:00:24.000Z
// Copyright 2021 Christophe Bedard // // 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 <atomic> #include <optional> // NOLINT cpplint mistakes <optional> for a C system header #include <random> #include <string> #include "email/gid.hpp" #include "email/utils.hpp" namespace email { Gid Gid::new_gid() { return Gid(Gid::new_value()); } Gid::Gid(const GidValue value) : value_(value), value_string_(Gid::to_string(value_)) {} Gid::~Gid() {} GidValue Gid::value() const { return value_; } const std::string & Gid::to_string() const { return value_string_; } std::optional<Gid> Gid::from_string(const std::string & str) { auto value_opt = utils::optional_stoul(str); if (!value_opt) { return std::nullopt; } return Gid(value_opt.value()); } GidValue Gid::new_value() { // Generate random prefix static std::random_device random_device; static std::mt19937 gen(random_device()); static auto prefix = gen(); // Add sequence sequence number to prefix static std::atomic<GidValue> sequence; return prefix + sequence++; } std::string Gid::to_string(const GidValue value) { return std::to_string(value); } } // namespace email
21.0375
80
0.714201
christophebedard
3679b029f1751825abfbe164b306c33b1f00a4be
11,895
hpp
C++
private/inc/rtprocessingfwx/IasAudioChannelBundle.hpp
juimonen/SmartXbar
033f521a5dba5bce5e097df9c98af5b2cc2636dd
[ "BSD-3-Clause" ]
5
2018-11-05T07:37:58.000Z
2022-03-04T06:40:09.000Z
private/inc/rtprocessingfwx/IasAudioChannelBundle.hpp
juimonen/SmartXbar
033f521a5dba5bce5e097df9c98af5b2cc2636dd
[ "BSD-3-Clause" ]
null
null
null
private/inc/rtprocessingfwx/IasAudioChannelBundle.hpp
juimonen/SmartXbar
033f521a5dba5bce5e097df9c98af5b2cc2636dd
[ "BSD-3-Clause" ]
7
2018-12-04T07:32:19.000Z
2021-02-17T11:28:28.000Z
/* * Copyright (C) 2018 Intel Corporation.All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /** * @file IasAudioChannelBundle.hpp * @date 2012 * @brief The definition of the IasAudioChannelBundle class. */ #ifndef IASAUDIOCHANNELBUNDLE_HPP_ #define IASAUDIOCHANNELBUNDLE_HPP_ #include "audio/smartx/rtprocessingfwx/IasProcessingTypes.hpp" #include "avbaudiomodules/internal/audio/common/IasAudioLogging.hpp" namespace IasAudio { static const uint32_t cIasNumChannelsPerBundle = 4; //!< The maximum number of channels in one bundle. /** * @class IasAudioChannelBundle * * An audio channel bundle provides the data buffer for four interleaved audio data channels * with 32-bit floating point format. This data layout provides the best optimization possibilities for SIMD * operations. The class provides mechanisms to reserve channels, interleave data into the bundle, deinterleave * data out of the bundle and get a pointer to directly access the audio data. */ class IAS_AUDIO_PUBLIC IasAudioChannelBundle { public: /** * @brief Constructor. */ IasAudioChannelBundle(uint32_t FrameLength); /** * @brief Destructor, virtual by default. */ virtual ~IasAudioChannelBundle(); /** * @brief Initializes an audio bundle. * * This method is used to allocate memory for the audio data * carried by the bundle. This function must be called before a bundle * is used. * * @returns The result indicating success (eIasAudioCompOK) or failure (eIasAudioCompInitializationFailed) */ IasAudioProcessingResult init(); /** * @brief Resets an audio bundle. * * This method is used to reset the internal states of an audio bundle. */ void reset(); /** * @brief Clear the complete audio buffer of this bundle. * * This method clears ALL samples of all four channels inside the bundle to zero. */ void clear(); /** * @brief Return a pointer to the audio data memory. * * @returns Returns the pointer to mAudioData if the audio channel bundle is initialized or NULL if audio channel bundle is not initialized. */ inline float* getAudioDataPointer() const { return mAudioData; } /** * @brief Gets the number of free audio within the bundle. * * @returns Returns the free audio channels within the bundle. */ inline uint32_t getNumFreeChannels() const { return mNumFreeChannels; } /** * @brief Gets the number of used audio within the bundle. * * @returns Returns the used audio channels within the bundle. */ inline uint32_t getNumUsedChannels() const { return cIasNumChannelsPerBundle-mNumFreeChannels; } /** * @brief Reserves a number of channels in this bundle. * * The number of channels that will be reserved are all sequentially ordered * * @param[in] numberChannels The number of channels to reserve. * @param[out] startIndex The index of the first reserved channel inside the bundle. * * @returns The result indication success (eIasAudioProcOK) or an error when no space is left (eIasAudioProcNoSpaceLeft). */ IasAudioProcessingResult reserveChannels(uint32_t numberChannels, uint32_t* startIndex); /** * @brief Interleaves one channel into the bundle ('Bundling'). * * The originating data is in non-interleaved order and will be interleaved into the bundle. * * @param[in] offset The offset in the bundle were the channel shall be placed. * @param[in] channel A pointer to the samples in non-interleaved order to be copied into the bundle. */ void writeOneChannelFromNonInterleaved(uint32_t offset, const float *channel); /** * @brief Interleaves two channels into the bundle ('Bundling'). * * The originating data is in non-interleaved order and will be interleaved into the bundle. * The offset defines the location of the first channel and all other channels will be added adjacent to the first. * * @param[in] offset The offset in the bundle were the first channel shall be placed. * @param[in] channel0 A pointer to the samples of the first channel in non-interleaved order to be copied into the bundle. * @param[in] channel1 A pointer to the samples of the second channel in non-interleaved order to be copied into the bundle. */ void writeTwoChannelsFromNonInterleaved(uint32_t offset, const float *channel0, const float *channel1); /** * @brief Interleaves three channels into the bundle ('Bundling'). * * The originating data is in non-interleaved order and will be interleaved into the bundle. * The offset defines the location of the first channel and all other channels will be added adjacent to the first. * * @param[in] offset The offset in the bundle were the first channel shall be placed. * @param[in] channel0 A pointer to the samples of the first channel in non-interleaved order to be copied into the bundle. * @param[in] channel1 A pointer to the samples of the second channel in non-interleaved order to be copied into the bundle. * @param[in] channel2 A pointer to the samples of the third channel in non-interleaved order to be copied into the bundle. */ void writeThreeChannelsFromNonInterleaved(uint32_t offset, const float *channel0, const float *channel1, const float *channel2); /** * @brief Interleaves four channels into the bundle ('Bundling'). * * The originating data is in non-interleaved order and will be interleaved into the bundle. * * @param[in] channel0 A pointer to the samples of the first channel in non-interleaved order to be copied into the bundle. * @param[in] channel1 A pointer to the samples of the second channel in non-interleaved order to be copied into the bundle. * @param[in] channel2 A pointer to the samples of the third channel in non-interleaved order to be copied into the bundle. * @param[in] channel3 A pointer to the samples of the fourth channel in non-interleaved order to be copied into the bundle. */ void writeFourChannelsFromNonInterleaved(const float *channel0, const float *channel1, const float *channel2, const float *channel3); /** * @brief Interleaves two channels into the bundle ('Bundling'). * * The originating data is in interleaved order and will be interleaved into the bundle. * The offset defines the location of the first channel and all other channels will be added adjacent to the first. * * @param[in] offset The offset in the bundle were the first channel shall be placed. * @param[in] srcStride The stride of the source channels * @param[in] channel A pointer to the samples of the first channel in interleaved order to be copied into the bundle. */ void writeTwoChannelsFromInterleaved(uint32_t offset, uint32_t srcStride, const float *channel); /** * @brief Interleaves three channels into the bundle ('Bundling'). * * The originating data is in interleaved order and will be interleaved into the bundle. * The offset defines the location of the first channel and all other channels will be added adjacent to the first. * * @param[in] offset The offset in the bundle were the first channel shall be placed. * @param[in] srcStride The stride of the source channels * @param[in] channel A pointer to the samples of the first channel in interleaved order to be copied into the bundle. */ void writeThreeChannelsFromInterleaved(uint32_t offset, uint32_t srcStride, const float *channel); /** * @brief Interleaves four channels into the bundle ('Bundling'). * * The originating data is in interleaved order and will be interleaved into the bundle. * * @param[in] srcStride The stride of the source channels * @param[in] channel A pointer to the samples of the first channel in interleaved order to be copied into the bundle. */ void writeFourChannelsFromInterleaved(uint32_t srcStride, const float *channel); /** * @brief Deinterleaves one channel out of the bundle ('Unbundling'). * * The data in the bundle is in interleaved order and will be deinterleaved into the pointer given as parameter. * * @param[in] offset The offset in the bundle were the channel shall be read from. * @param[in] channel A pointer where the samples shall be deinterleaved to. */ void readOneChannel(uint32_t offset, float *channel) const; /** * @brief Deinterleaves two channels out of the bundle ('Unbundling'). * * The data in the bundle is in interleaved order and will be deinterleaved into the pointers given as parameters. * The offset defines the location of the first channel and all other channels will be read adjacent from the first. * * @param[in] offset The offset in the bundle were the first channel shall be read from. * @param[in] channel0 A pointer where the samples of the first channel shall be deinterleaved to. * @param[in] channel1 A pointer where the samples of the second channel shall be deinterleaved to. */ void readTwoChannels(uint32_t offset, float *channel0, float *channel1) const; /** * @brief Deinterleaves three channels out of the bundle ('Unbundling'). * * The data in the bundle is in interleaved order and will be deinterleaved into the pointers given as parameters. * The offset defines the location of the first channel and all other channels will be read adjacent from the first. * * @param[in] offset The offset in the bundle were the first channel shall be read from. * @param[in] channel0 A pointer where the samples of the first channel shall be deinterleaved to. * @param[in] channel1 A pointer where the samples of the second channel shall be deinterleaved to. * @param[in] channel2 A pointer where the samples of the third channel shall be deinterleaved to. */ void readThreeChannels(uint32_t offset, float *channel0, float *channel1, float *channel2) const; /** * @brief Deinterleaves four channels out of the bundle ('Unbundling'). * * The data in the bundle is in interleaved order and will be deinterleaved into the pointers given as parameters. * * @param[in] channel0 A pointer where the samples of the first channel shall be deinterleaved to. * @param[in] channel1 A pointer where the samples of the second channel shall be deinterleaved to. * @param[in] channel2 A pointer where the samples of the third channel shall be deinterleaved to. * @param[in] channel3 A pointer where the samples of the fourth channel shall be deinterleaved to. */ void readFourChannels(float *channel0, float *channel1, float *channel2, float *channel3) const; private: /** * @brief Copy constructor, private unimplemented to prevent misuse. */ IasAudioChannelBundle(IasAudioChannelBundle const &other); //lint !e1704 /** * @brief Assignment operator, private unimplemented to prevent misuse. */ IasAudioChannelBundle& operator=(IasAudioChannelBundle const &other); //lint !e1704 // Member variables uint32_t mNumFreeChannels; //!< Number of free audio channels within a bundle. Must be updated by the audio component. uint32_t mFrameLength; //!< frame length of one audio frame. float *mAudioData; //!< Pointer to the begin of the audio data memory float *mAudioDataEnd; //!< Pointer to the end of the audio data memory DltContext *mLogContext; //!< The log context }; } //namespace IasAudio #endif /* IASAUDIOCHANNELBUNDLE_HPP_ */
47.390438
144
0.707524
juimonen
3679f439012e51728095825be0d272517e71bc36
2,896
cpp
C++
Chapter06-game-object/player_ship.cpp
focusright/Hands-On-Game-Development-with-WebAssembly
8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a
[ "MIT" ]
71
2019-05-13T23:30:39.000Z
2022-03-08T15:28:20.000Z
Chapter06-game-object/player_ship.cpp
focusright/Hands-On-Game-Development-with-WebAssembly
8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a
[ "MIT" ]
4
2019-10-20T19:18:04.000Z
2021-01-15T15:41:53.000Z
Chapter06-game-object/player_ship.cpp
focusright/Hands-On-Game-Development-with-WebAssembly
8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a
[ "MIT" ]
23
2019-05-10T14:25:59.000Z
2021-10-03T07:19:28.000Z
#include "game.hpp" PlayerShip::PlayerShip() { m_X = 160.0; m_Y = 100.0; m_Rotation = PI; m_DX = 0.0; m_DY = 1.0; m_VX = 0.0; m_VY = 0.0; m_LastLaunchTime = current_time; SDL_Surface *temp_surface = IMG_Load( c_SpriteFile ); if( !temp_surface ) { printf("failed to load image: %s\n", IMG_GetError() ); return; } m_SpriteTexture = SDL_CreateTextureFromSurface( renderer, temp_surface ); if( !m_SpriteTexture ) { printf("failed to create texture: %s\n", IMG_GetError() ); return; } SDL_FreeSurface( temp_surface ); } void PlayerShip::RotateLeft() { m_Rotation -= delta_time; if( m_Rotation < 0.0 ) { m_Rotation += TWO_PI; } m_DX = sin(m_Rotation); m_DY = -cos(m_Rotation); } void PlayerShip::RotateRight() { m_Rotation += delta_time; if( m_Rotation >= TWO_PI ) { m_Rotation -= TWO_PI; } m_DX = sin(m_Rotation); m_DY = -cos(m_Rotation); } void PlayerShip::Accelerate() { m_VX += m_DX * delta_time; m_VY += m_DY * delta_time; } void PlayerShip::Decelerate() { m_VX -= (m_DX * delta_time) / 2.0; m_VY -= (m_DY * delta_time) / 2.0; } void PlayerShip::CapVelocity() { double vel = sqrt( m_VX * m_VX + m_VY * m_VY ); if( vel > MAX_VELOCITY ) { m_VX /= vel; m_VY /= vel; m_VX *= MAX_VELOCITY; m_VY *= MAX_VELOCITY; } } void PlayerShip::Move() { current_time = SDL_GetTicks(); diff_time = current_time - last_time; delta_time = (double)diff_time / 1000.0; last_time = current_time; if( left_key_down ) { RotateLeft(); } if( right_key_down ) { RotateRight(); } if( up_key_down ) { Accelerate(); } if( down_key_down ) { Decelerate(); } CapVelocity(); m_X += m_VX; if( m_X > 320 ) { m_X = -16; } else if( m_X < -16 ) { m_X = 320; } m_Y += m_VY; if( m_Y > 200 ) { m_Y = -16; } else if( m_Y < -16 ) { m_Y = 200; } if( space_key_down ) { Projectile* projectile; if( current_time - m_LastLaunchTime >= c_MinLaunchTime ) { m_LastLaunchTime = current_time; projectile = projectile_pool->GetFreeProjectile(); if( projectile != NULL ) { projectile->Launch( m_X, m_Y, m_DX, m_DY ); } } } } void PlayerShip::Render() { dest.x = (int)m_X; dest.y = (int)m_Y; dest.w = c_Width; dest.h = c_Height; double degrees = (m_Rotation / PI) * 180.0; int return_code = SDL_RenderCopyEx( renderer, m_SpriteTexture, NULL, &dest, degrees, NULL, SDL_FLIP_NONE ); if( return_code != 0 ) { printf("failed to render image: %s\n", IMG_GetError() ); } }
20.539007
77
0.541091
focusright
367c5ff01773ddd2658478b32871cdb49b71c119
651
cpp
C++
oop_ex33.cpp
85105/HW
2161a1a7ac1082a85454672d359c00f2d42ef21f
[ "MIT" ]
null
null
null
oop_ex33.cpp
85105/HW
2161a1a7ac1082a85454672d359c00f2d42ef21f
[ "MIT" ]
null
null
null
oop_ex33.cpp
85105/HW
2161a1a7ac1082a85454672d359c00f2d42ef21f
[ "MIT" ]
null
null
null
/* cpp_ex33.cpp Using call by reference to return multiple values */ #include <iostream> using namespace std; void fourop(const double& x, const double& y, double& a, double& s, double& m, double& d) { a = x + y; s = x - y; m = x * y; d = x / y; //x = y; } void main() { cout << "Please enter two numbers:" << endl; double x, y; double add, min, mult, div; cin >> x >> y; fourop(x, y, add, min, mult, div); cout << x << " + " << y << " = " << add << endl; cout << x << " - " << y << " = " << min << endl; cout << x << " * " << y << " = " << mult << endl; cout << x << " / " << y << " = " << div << endl; system("pause"); }
15.878049
89
0.483871
85105
367cded62f280bb284ced6066b4da0056f2f9e67
25,321
cpp
C++
inc/control.cpp
HiSER/LCD-SSD1963-TOUCH
a2e4f51789710f5dbed00495b7306de376e0b5dc
[ "MIT" ]
null
null
null
inc/control.cpp
HiSER/LCD-SSD1963-TOUCH
a2e4f51789710f5dbed00495b7306de376e0b5dc
[ "MIT" ]
null
null
null
inc/control.cpp
HiSER/LCD-SSD1963-TOUCH
a2e4f51789710f5dbed00495b7306de376e0b5dc
[ "MIT" ]
null
null
null
/** * HiSER (c)2018 Litvin Artem Vasilyevich * Date 31.08.2019 * [email protected], +79130258565 * License MIT */ #include <control.hpp> #include <lcd.hpp> CONTROL::CONTROL(tArea* area, bool visible, bool group, bool background, bool events) { child = NULL; childCount = 0; me.x = 0; me.y = 0; me.width = 100; me.height = 100; me.target = etLeftTop; if (area != NULL) memcpy(&this->me, area, sizeof(tArea)); this->visible = visible; this->events = events; this->background = background; bgnormal = ecGray; bgactive = ecGray; bgdisable = ecDarkGray; frnormal = ecBlack; fractive = ecBlack; frdisable = ecWhite; enable = true; active = false; redraw = false; _isChange = false; this->group = group; owner = NULL; tag = NULL; text = NULL; value = 0; valueD = 0; font = NULL; onClick = onNull; onPressed = onNull; onPress = onNull; state = esPaint; //DBGF("CONTROL %ix%i, %ix%i", x, y, width, height); } CONTROL::~CONTROL(void) { removeAll(); } bool CONTROL::testChild(tEvent* event) { bool flag = true; if (child != NULL) { uint16 i; for (i = 0; i < childCount; i++) { flag = child[i]->test(event); if (!flag) break; } } return flag; } void CONTROL::threadChild(void) { uint16 i; if (child != NULL) { for (i = 0; i < childCount; i++) { child[i]->thread(); } } } bool CONTROL::test(tEvent* event) { if (visible && enable) { bool flag = testChild(event); if (events && flag) { sint16 xS = me.x; sint16 yS = me.y; switch (me.target) { case etLeftTop: case etDefault: break; case etLeftBottom: yS -= me.height; break; case etCenter: xS -= me.width / 2; yS -= me.height / 2; break; case etRightTop: xS -= me.width; break; case etRightBottom: xS -= me.width; yS -= me.height; break; } sint16 xE = xS + me.width; sint16 yE = yS + me.height; if (event->x >= xS && event->x <= xE && event->y >= yS && event->y <= yE) { switch (event->type) { case eetStart: active = true; state = esPaint; break; case eetEnd: active = false; state = esPaint; break; default: break; } flag = onTouch(event->type); } } return flag; } return true; } void CONTROL::thread(void) { bool flag = true; if (state != esIdle) { uint16 i; switch (state) { case esPaint: paint(); if (group && child != NULL) { for (i = 0; i < childCount; i++) { child[i]->state = esPaint; } } threadChild(); break; case esUpdate: update(); break; case esHidden: flag = false; threadChild(); if (owner != NULL) { owner->paint(&me); } break; default: DBGP_WARNING("CONTROL::Thread error eState"); break; } /*if (child != NULL) { for (i = 0; i < childCount; i++) { child[i]->thread(); } }*/ state = esIdle; } if (flag) threadChild(); } void CONTROL::append(CONTROL* control) { if (control == NULL) return; control->owner = this; if (child == NULL) { child = (CONTROL**)malloc(sizeof(CONTROL*)); child[0] = control; childCount = 1; } else { CONTROL** tmp = (CONTROL**)malloc(sizeof(CONTROL*) * (childCount + 1)); memcpy(tmp, child, sizeof(CONTROL*) * childCount); tmp[childCount] = control; childCount++; free(child); child = tmp; } } void CONTROL::remove(CONTROL* control) { if (child == NULL || control == NULL) return; uint16 i; for (i = 0; i < childCount; i++) { if (control == child[i]) { control->Visible(false); control->thread(); control->owner = NULL; childCount--; if (childCount == 0) { free(child); child = NULL; } else { CONTROL** tmp = (CONTROL**)malloc(sizeof(CONTROL*) * childCount); memcpy(tmp, child, sizeof(CONTROL*) * i); memcpy(&tmp[i], &child[i + 1], sizeof(CONTROL*) * (childCount - i)); free(child); child = tmp; } delete(control); break; } } } void CONTROL::removeAll(void) { if (child != NULL) { uint16 i; for (i = 0; i < childCount; i++) { child[i]->Visible(false); child[i]->thread(); child[i]->owner = NULL; delete(child[i]); } free(child); child = NULL; } } void CONTROL::update() { if (visible) onUpdate(); threadChild(); state = esIdle; } void CONTROL::paint(tArea* area) { if (visible) onPaint(area); state = esIdle; } void CONTROL::Visible(bool visible) { if (this->visible == visible) return; this->visible = visible; if (!visible) active = false; if (child != NULL) { uint16 i; for (i = 0; i < childCount; i++) { child[i]->Visible(visible); } } state = ((visible) ? esPaint : esHidden); } bool CONTROL::Visible(void) { return visible; } void CONTROL::Enable(bool enable) { if (this->enable == enable) return; this->enable = enable; if (!enable) active = false; if (child != NULL) { uint16 i; for (i = 0; i < childCount; i++) { child[i]->Enable(enable); } } state = esPaint; } bool CONTROL::Enable(void) { return enable; } void CONTROL::Text(const char* text) { if (this->text == text) return; if (this->text != NULL && isAddressOfHeap(this->text)) { free((char*)this->text); } this->text = text; /*if (child != NULL) { uint16 i; for (i = 0; i < childCount; i++) { child[i]->state = esUpdate; } }*/ _isChange = true; state = esUpdate; } const char* CONTROL::getText(bool changeReset) { if (changeReset) _isChange = false; return text; } void CONTROL::Tag(void* tag) { this->tag = tag; } void* CONTROL::Tag(void) { return tag; } void CONTROL::Value(int value) { if (this->value == value) return; this->value = value; _isChange = true; state = esUpdate; } int CONTROL::Value(bool changeReset) { if (changeReset) _isChange = false; return value; } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wfloat-equal" void CONTROL::Value(double value) { if (valueD == value) return; valueD = value; _isChange = true; state = esUpdate; } #pragma GCC diagnostic pop double CONTROL::ValueD(bool changeReset) { if (changeReset) _isChange = false; return valueD; } bool CONTROL::isChange(void) { return _isChange; } void CONTROL::Area(tArea* area) { if (area != NULL) { if (visible && owner != NULL && !owner->group) { owner->paint(&me); } memcpy(&me, area, sizeof(tArea)); onArea(); state = esPaint; } } CONTROL::tArea* CONTROL::Area(void) { tArea* area = (tArea*)malloc(sizeof(tArea)); memcpy(area, &me, sizeof(tArea)); return area; } void CONTROL::BackGround(eColor all) { BackGround(all, all, all); } void CONTROL::BackGround(eColor normal, eColor active) { BackGround(normal, active, active); } void CONTROL::BackGround(eColor normal, eColor disable, eColor active) { bgnormal = normal; bgactive = active; bgdisable = disable; state = esPaint; } void CONTROL::ForeGround(eColor all) { ForeGround(all, all, all); } void CONTROL::ForeGround(eColor normal, eColor active) { ForeGround(normal, active, active); } void CONTROL::ForeGround(eColor normal, eColor disable, eColor active) { frnormal = normal; fractive = active; frdisable = disable; state = esPaint; } void CONTROL::onPaint(tArea* area) { if (background) { eColor color = ((enable) ? ((active) ? bgactive : bgnormal) : bgdisable); if (area == NULL) { LCD::fill(me.x, me.y, me.width, me.height, me.target, color); } else { LCD::fill(area->x, area->y, area->width, area->height, area->target, color); } } } bool CONTROL::onTouch(eEventType event) { switch (event) { case eetEnd: onClick(tag); break; case eetPressed: onPressed(tag); break; case eetPress: onPress(tag); break; default: break; } return false; } void CONTROL::onUpdate(void) { if (redraw && owner != NULL) { owner->paint(&me); } paint(); } BACKGROUND::BACKGROUND(sint16 width, sint16 height) : CONTROL(NULL, true) { background = true; bgnormal = bgactive = ecWhite; bgdisable = ecBlack; me.x = me.y = 0; me.width = width; me.height = height; me.target = etLeftTop; }; /*void BACKGROUND::onPaint(tArea* area) { CONTROL::onPaint(area); }*/ BUTTON::BUTTON(const char* text, tArea* area, const tFontHeader* font, bool visible, uint8 lines) : CONTROL(area, visible) { events = true; background = true; bgnormal = ecBlue; bgactive = ecLightBlue; bgdisable = ecGray; frnormal = ecWhite; this->text = text; this->tag = tag; this->font = font; this->lines = lines; } void BUTTON::onPaint(tArea* area) { CONTROL::onPaint(area); switch (me.target) { case etLeftTop: case etRightTop: default: LCD::text(text, me.x, me.y + (me.height - font->height * lines) / 2, me.target, font, frnormal, etaCenter, me.width, lines); break; case etCenter: LCD::text(text, me.x, me.y, me.target, font, frnormal, etaCenter, me.width, lines); break; case etLeftBottom: case etRightBottom: LCD::text(text, me.x, me.y - (me.height - font->height * lines) / 2, me.target, font, frnormal, etaCenter, me.width, lines); break; } } TEXT::TEXT(const char* text, tArea* area, const tFontHeader* font, eTextAlign align, bool border, bool visible, bool background, bool events) : CONTROL(area, visible), border(border), align(align) { group = true; this->events = events; this->background = background; bgnormal = ecWhite; bgdisable = ecGray; frnormal = ecBlack; frdisable = ecWhite; this->text = text; this->font = font; isFloat = false; setUnit(NULL); if (me.height <= 20) { if (me.height == 0) me.height = 1; me.height *= font->height; } }; void TEXT::setUnit(const char* unit) { if (unit == NULL) { this->unit = ""; } else { this->unit = unit; } } void TEXT::setValue(int value) { if (!isFloat && text != NULL && this->value == value) return; isFloat = false; this->value = value; char* tmp; tmp = (char*)malloc(32); sprintf(tmp, "%i%s", value, unit); Text(tmp); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wfloat-equal" void TEXT::setValue(double value, int digit) { if (isFloat && text != NULL && this->valueD == value) return; isFloat = true; this->valueD = value; char* tmp; tmp = (char*)malloc(32); dtoa(tmp, value, digit); strcat(tmp, unit); Text(tmp); } #pragma GCC diagnostic pop void TEXT::onPaint(tArea* area) { CONTROL::onPaint(area); int margin = ((border) ? marginBorder : marginNoBorder); int margin2 = margin * 2; if (border) LCD::rect(me.x, me.y, me.width, me.height, me.target, 1, ((enable) ? ecBlack : ecGray)); uint16 right = LCD::text(text, me.x + margin, me.y, me.target, font, ((enable) ? frnormal : frdisable), align, me.width - margin2, me.height / font->height); if (child != NULL) { uint8 i; tArea* a; right += me.x + margin + font->space; for (i = 0; i < childCount; i++) { a = child[i]->Area(); a->x = right; right += a->width + font->space; child[i]->Area(a); free(a); } } } IMAGE::IMAGE(const tImgHeader* image, tArea* area, float scale, bool visible, bool events, bool redraw) : CONTROL(area, visible) { group = true; this->image = image; this->imageDisable = NULL; this->scale = scale; this->events = events; this->redraw = redraw; me.width = image->width * scale; me.height = image->height * scale; } void IMAGE::setImage(const tImgHeader* image) { if (this->image == image) return; this->image = image; state = esPaint; } void IMAGE::setImageDisable(const tImgHeader* image) { this->imageDisable = ((image == NULL) ? this->image : image); } void IMAGE::onPaint(tArea* area __UNUSED) { LCD::image(((enable) ? image : imageDisable), me.x, me.y, me.target, scale); } BUTTONIMG::BUTTONIMG(const tImgHeader* image, tArea* area, bool visible) : CONTROL(area, visible) { events = true; group = true; background = true; bgnormal = ecBlue; bgactive = ecLightBlue; bgdisable = ecGray; frnormal = ecWhite; this->tag = tag; tArea a; a.target = etCenter; a.x = me.x + me.width / 2; a.y = me.y + me.height / 2; IMAGE* img = new IMAGE(image, &a); img->setImageDisable(); append(img); } NUMBER::NUMBER(int value, int min, int max, tArea* area, const tFontHeader* font, const char** list, bool visible, bool cyclic, bool buttons) : CONTROL(area, visible), onChange(onNull), min(min), max(max) { tArea a; group = true; background = true; bgnormal = ecWhite; bgactive = ecBlue; bgdisable = ecLightBlue; frnormal = ecBlack; fractive = ecWhite; frdisable = ecGray; this->value = value; this->list = list; this->tag = tag; this->font = font; this->cyclic = cyclic; _isFloat = false; onKeyboard = CONTROL::onNull; a.target = etLeftTop; a.x = me.x; a.y = me.y; a.width = me.width; if (buttons) { a.height = (me.height - font->height - margin * 2) / 2; up = new BUTTONIMG(&lcdArrowUp2, &a, visible); up->Tag(this); up->ForeGround(fractive, frdisable, fractive); up->BackGround(bgactive, bgdisable, bgdisable); up->onClick = onClickUp; up->onPress = onPressUp; append(up); a.y += a.height + margin; } a.height = 0; textValue = new TEXT(NULL, &a, font, etaCenter, false, visible, true, true); textValue->Tag(this); textValue->ForeGround(frnormal, frdisable, frnormal); textValue->BackGround(bgnormal, bgnormal, bgnormal); textValue->onClick = onClickText; append(textValue); if (buttons) { a.y += font->height + margin; a.height = (me.height - font->height - margin * 2) / 2; down = new BUTTONIMG(&lcdArrowDown2, &a, visible); down->Tag(this); down->ForeGround(fractive, frdisable, fractive); down->BackGround(bgactive, bgdisable, bgdisable); down->onClick = onClickDown; down->onPress = onPressDown; append(down); } else { up = NULL; down = NULL; } resetInterval(); } void NUMBER::BackGround(eColor normal, eColor disable, eColor active) { CONTROL::BackGround(normal, disable, active); if (up != NULL) up->BackGround(bgactive, bgdisable, bgdisable); if (down != NULL) down->BackGround(bgactive, bgdisable, bgdisable); textValue->BackGround(bgnormal, bgnormal, bgnormal); } void NUMBER::ForeGround(eColor normal, eColor disable, eColor active) { CONTROL::ForeGround(normal, disable, active); if (up != NULL) up->ForeGround(fractive, frdisable, fractive); if (down != NULL) down->ForeGround(fractive, frdisable, fractive); textValue->ForeGround(frnormal, frdisable, frnormal); } void NUMBER::onArea(void) { tArea a; a.target = etLeftTop; a.x = me.x; a.y = me.y; a.width = me.width; a.height = (me.height - font->height - margin * 2) / 2; up->Area(&a); a.y += a.height + margin; a.height = 0; textValue->Area(&a); a.y += font->height + margin; a.height = (me.height - font->height - margin * 2) / 2; down->Area(&a); } void NUMBER::onPaint(tArea* area) { CONTROL::onPaint(area); onUpdate(); } void NUMBER::onUpdate(void) { if (list == NULL) { if (_isFloat) { textValue->setValue(valueD); } else { textValue->setValue(value); } } else { textValue->Text(list[value]); } } void NUMBER::onClickText(void* tag) { ((NUMBER*)tag)->onKeyboard(((NUMBER*)tag)->Tag()); } int NUMBER::Min(void) { return min; } int NUMBER::Max(void) { return max; } void NUMBER::setFloat(double value, double min, double max) { _isFloat = true; valueD = value; minD = min; maxD = max; if (state != esPaint) state = esUpdate; } bool NUMBER::isFloat(void) { return _isFloat; } double NUMBER::MinD(void) { return minD; } double NUMBER::MaxD(void) { return maxD; } void NUMBER::doMath(int interval) { if (_isFloat) { double tmp = valueD + interval; if (tmp > maxD) tmp = ((cyclic) ? minD : maxD); if (tmp < minD) tmp = ((cyclic) ? maxD : minD); Value(tmp); } else { int tmp = value + interval; if (tmp > max) tmp = ((cyclic) ? min : max); if (tmp < min) tmp = ((cyclic) ? max : min); Value(tmp); } } int NUMBER::interval; int NUMBER::tick; void NUMBER::resetInterval(void) { interval = 1; tick = 0; } void NUMBER::incInterval(void) { tick++; if (interval == 1 && tick >= 70) { tick = 0; interval = 5; } else if (interval == 5 && tick >= 100) { tick = 0; interval = 50; } else if (interval == 50 && tick >= 150) { tick = 0; interval = 5000; } } void NUMBER::onClickUp(void* tag) { resetInterval(); ((NUMBER*)tag)->doMath(interval); } void NUMBER::onClickDown(void* tag) { resetInterval(); ((NUMBER*)tag)->doMath(-interval); } void NUMBER::onPressUp(void* tag) { incInterval(); ((NUMBER*)tag)->doMath(interval); } void NUMBER::onPressDown(void* tag) { incInterval(); ((NUMBER*)tag)->doMath(-interval); } LIST::LIST(tArea* area, const tFontHeader* font, const tFontHeader* fontHeader, bool visible) : CONTROL(area, visible) { background = true; group = true; number = NULL; header = NULL; list = NULL; this->font = font; this->fontHeader = fontHeader; heightCount = (me.height - fontHeader->height - padding * 3 + margin) / (font->height + margin); position = 0; onKeyboard = CONTROL::onNull; onItemChange = onItemChangeNull; } LIST::~LIST() { reset(); } LIST::tHeader* LIST::createHeader(int count) { tHeader* h = NULL; if (count > 0) { int w = (me.width - padding * 2) / count; h = (tHeader*)malloc(sizeof(tHeader)); h->column = (tCol*)calloc(sizeof(tCol), count); h->count = count; for (int i = 0; i < count; i++) { h->column[i].text = NULL; h->column[i].width = w; h->column[i].type = etcText; h->column[i].min = -1000000; h->column[i].max = 1000000; h->column[i].minD = -1000000; h->column[i].maxD = 1000000; h->column[i].isEdit = false; } } return h; } LIST::tList* LIST::createList(int count) { tList* l = NULL; if (count > 0 && header != NULL) { l = (tList*)malloc(sizeof(tList)); l->row = (tRow*)calloc(sizeof(tRow), count); l->count = count; for (int i = 0; i < count; i++) { l->row[i].item = (tItem*)calloc(sizeof(tItem), header->count); for (int n = 0; n < header->count; n++) { l->row[i].item[n].flag = eifNull; } } } return l; } void LIST::setHeader(tHeader* header) { if (this->header != NULL || list != NULL) { reset(); } this->header = header; position = 0; number = (NUMBER***)calloc(sizeof(NUMBER**), header->count); int i, n; tArea a; a.target = etLeftTop; a.x = me.x + padding; a.height = font->height; for (i = 0; i < header->count; i++) { a.x += ((i == 0) ? 0 : header->column[i - 1].width); if (header->column[i].isEdit && header->column[i].type != etcFloat && header->column[i].type != etcInt) { header->column[i].isEdit = false; } if (header->column[i].isEdit) { number[i] = (NUMBER**)calloc(sizeof(NUMBER*), heightCount); a.y = me.y + padding * 2 + fontHeader->height + margin / 2; a.width = header->column[i].width; for (n = 0; n < heightCount; n++) { number[i][n] = new NUMBER(0, header->column[i].min, header->column[i].max, &a, font, NULL, visible, false, false); number[i][n]->BackGround(bgnormal, bgnormal, bgnormal); number[i][n]->ForeGround(frnormal, frnormal, frnormal); if (header->column[i].type == etcFloat) number[i][n]->setFloat(0, header->column[i].minD, header->column[i].maxD); number[i][n]->onKeyboard = onKeyboard; tTagNumber* tag = (tTagNumber*)malloc(sizeof(tTagNumber)); tag->control = number[i][n]; number[i][n]->Tag(tag); append(number[i][n]); a.y += font->height + margin; } } else { number[i] = NULL; } } if (state != esPaint) state = esUpdate; } void LIST::setList(tList* list) { if (header != NULL) { resetList(); this->list = list; position = 0; if (state != esPaint) state = esUpdate; } } void LIST::cutList(int count) { if (list != NULL && count < list->count) { if (count < 0) count = 0; for (int i = count; i < list->count; i++) { for (int n = 0; n < header->count; n++) { if (header->column[n].type == etcText && list->row[i].item[n].text != NULL && isAddressOfHeap(list->row[i].item[n].text)) { free((char*)list->row[i].item[n].text); } } free(list->row[i].item); } list->count = count; if (count <= heightCount) { position = 0; } else if (count <= position) { position = count - 1; } if (state != esPaint) state = esUpdate; } } void LIST::reverseList(void) { if (list != NULL && list->count > 1) { int count2 = list->count / 2; int i, n; tItem* item; for (i = 0, n = list->count - 1; i < count2; i++, n--) { item = list->row[i].item; list->row[i].item = list->row[n].item; list->row[n].item = item; } if (state != esPaint) state = esUpdate; } } void LIST::resetList(void) { if (list != NULL) { cutList(0); free(list->row); free(list); list = NULL; if (state != esPaint) state = esUpdate; } } bool LIST::isList(void) { return (list != NULL); } LIST::tList* LIST::getList(void) { return list; } void LIST::reset(void) { resetList(); if (header != NULL) { for (int i = 0; i < header->count; i++) { if (number[i] != NULL) { for (int n = 0; n < heightCount; n++) { free(number[i][n]->Tag()); remove(number[i][n]); delete(number[i][n]); } free(number[i]); } } free(number); number = NULL; for (int i = 0; i < header->count; i++) { if (header->column[i].text != NULL && isAddressOfHeap(header->column[i].text)) { free((char*)header->column[i].text); } } free(header->column); free(header); header = NULL; } } bool LIST::scrollUp(void) { if (list != NULL) { position--; if (position < 0) position = 0; state = esUpdate; return (position != 0); } else { return false; } } bool LIST::scrollDown(void) { if (list != NULL) { int max = list->count - heightCount; if (max < 0) max = 0; position++; if (position > max) position = max; state = esUpdate; return (position != max); } else { return false; } } void LIST::onPaint(tArea* area) { CONTROL::onPaint(area); if (header == NULL) return; int x, y, i, n; x = me.x + padding; y = me.y + padding; for (i = 0; i < header->count; i++) { x += ((i == 0) ? 0 : header->column[i - 1].width); LCD::text(header->column[i].text, x, y, etLeftTop, fontHeader, fractive, etaLeft, header->column[i].width, 1); } x = me.x + padding; y = me.y + padding * 2 + fontHeader->height + margin / 2 - 1; for (n = 0; n < heightCount; n++) { if (n != (heightCount - 1)) LCD::fill(x, y + font->height + margin / 2, me.width - padding * 2, 1, etLeftTop, bgactive); y += font->height + margin; } onUpdate(); } void LIST::onUpdate(void) { if (list == NULL || !enable) return; int x, y, i, n, p; tRow* row; bool reupdate; char* tmp = (char*)malloc(32); const char* tmp2; RRTC::tDateTime* datetime; y = me.y + padding * 2 + fontHeader->height + margin / 2; for (p = 0, n = position; p < heightCount && n < list->count; p++, n++) { reupdate = false; row = &list->row[n]; x = me.x + padding; for (i = 0; i < header->count; i++) { x += ((i == 0) ? 0 : header->column[i - 1].width); if (header->column[i].isEdit) { tTagNumber* tag = (tTagNumber*)number[i][p]->Tag(); tag->index = n; if (number[i][p]->isChange()) { if (header->column[i].type == etcFloat) { row->item[i].valueD = number[i][p]->ValueD(); } else { row->item[i].valueD = number[i][p]->Value(); } reupdate = onItemChange(n); if (reupdate) break; } else { if (header->column[i].type == etcFloat) { number[i][p]->Value(row->item[i].valueD); } else { number[i][p]->Value(row->item[i].value); } number[i][p]->Value(); } } else { LCD::fill(x, y, header->column[i].width, font->height, etLeftTop, ((enable) ? bgnormal : bgdisable)); tmp2 = tmp; switch (header->column[i].type) { case etcText: tmp2 = row->item[i].text; break; case etcFloat: dtoa(tmp, row->item[i].valueD, 3); break; case etcInt: sprintf(tmp, "%i", row->item[i].value); break; case etcDate: datetime = RRTC::mkDateTime(row->item[i].datetime); sprintf(tmp, "%02u.%02u.%04u", datetime->date, datetime->month, 2000 + datetime->year); free(datetime); break; case etcTime: datetime = RRTC::mkDateTime(row->item[i].datetime); sprintf(tmp, "%02u:%02u", datetime->hour, datetime->minute); free(datetime); break; case etcTimeWithSecond: datetime = RRTC::mkDateTime(row->item[i].datetime); sprintf(tmp, "%02u:%02u:%02u", datetime->hour, datetime->minute, datetime->second); free(datetime); break; case etcTimeWeekHour: datetime = RRTC::mkDateTime(row->item[i].datetime, true); sprintf(tmp, "%02u:%02u", datetime->hour, datetime->minute); free(datetime); break; } switch (row->item[i].flag) { case eifNull: break; case eifHyphen: LCD::text("-", x, y, etLeftTop, font, ((enable) ? frnormal : frdisable), etaLeft, header->column[i].width, 1); break; default: LCD::text(tmp2, x, y, etLeftTop, font, ((enable) ? frnormal : frdisable), etaLeft, header->column[i].width, 1); break; } } } if (reupdate) { p--; n--; } else { y += font->height + margin; } } free(tmp); }
19.552896
158
0.606888
HiSER
367d0c71430acdcf2a9f99dead7c1d56b3622f31
1,062
hpp
C++
include/natalie/managed_vector.hpp
philberty/natalie
8c10132a07fa2cdd23dc718dbc8020079a8df130
[ "MIT" ]
null
null
null
include/natalie/managed_vector.hpp
philberty/natalie
8c10132a07fa2cdd23dc718dbc8020079a8df130
[ "MIT" ]
null
null
null
include/natalie/managed_vector.hpp
philberty/natalie
8c10132a07fa2cdd23dc718dbc8020079a8df130
[ "MIT" ]
null
null
null
#pragma once #include "natalie/gc.hpp" #include "tm/vector.hpp" namespace Natalie { template <typename T> class ManagedVector : public Cell, public TM::Vector<T> { public: using TM::Vector<T>::Vector; ManagedVector(const Vector<T> &other) : ManagedVector {} { for (auto item : other) this->push(item); } virtual ~ManagedVector() { } virtual void visit_children(Visitor &visitor) override final { for (auto it = TM::Vector<T>::begin(); it != TM::Vector<T>::end(); ++it) { visitor.visit(*it); } } virtual void gc_print() override { size_t the_size = TM::Vector<T>::size(); fprintf(stderr, "<ManagedVector %p size=%zu [", this, the_size); size_t index = 0; for (auto it = TM::Vector<T>::begin(); it != TM::Vector<T>::end(); ++it) { auto item = *it; item->gc_print(); if (index + 1 < the_size) fprintf(stderr, ", "); ++index; } fprintf(stderr, "]>"); } }; }
24.697674
82
0.531073
philberty
367e44585a3669facc0846fa77da60b0a651ea88
5,687
cpp
C++
cap05/cap05-03-01-class_students.cpp
ggaaaff/think_like_a_programmer--test_code
fb081d24d70db6dd503608562625b84607c7a3ab
[ "MIT" ]
1
2020-12-08T10:54:39.000Z
2020-12-08T10:54:39.000Z
cap05/cap05-03-01-class_students.cpp
ggaaaff/think_like_a_programmer--test_code
fb081d24d70db6dd503608562625b84607c7a3ab
[ "MIT" ]
null
null
null
cap05/cap05-03-01-class_students.cpp
ggaaaff/think_like_a_programmer--test_code
fb081d24d70db6dd503608562625b84607c7a3ab
[ "MIT" ]
null
null
null
//2014.07.20 - 2014.07.21 - 2014.07.22 Gustaf-37 - CTG. /* PROBLEM : T R A C K I N G A N U N K N O W N Q U A N T I T Y O F S TU D E N T R E C O R D S In this problem, you will write a class with methods to store and manipulate a collection of student records. A student record contains a student number and a grade, both integers, and a string for the student name. The following functions are to be implemented: addRecord This method takes a student number, name, and grade and adds a new record with this data to the collection. recordWithNumber This function takes a student number and retrieves the record with that student number from the collection. removeRecord This function takes a student number and removes the record with that student number from the collection. The collection can be of any size. The addRecord operation is expected to be called frequently, so it must be implemented efficiently. === PLAN === OK - Reuse class studentRecord from code: /cap05-02-02-class_roster-support_methods.cpp - */ #include <iostream> #include <string> using namespace std; // ----------------------------------------------------------------------------- class studentRecord { public: studentRecord(); studentRecord(int newGrade, int newID, string newName); int grade(); void setGrade(int newGrade); int studentID(); void setStudentID(int newID); string name(); void setName(string newName); // Support Methods string letterGrade(); protected: bool isValidGrade(int grade); private: int _grade; int _studentID; string _name; }; // -- Public Methods -- studentRecord::studentRecord() { // Values that indicate the object is not properly initialized. setGrade(0); setStudentID(-1); //Notice: invalid ID. setName(""); } studentRecord::studentRecord(int newGrade, int newID, string newName) { setGrade(newGrade); setStudentID(newID); setName(newName); } int studentRecord::grade() { return _grade; } void studentRecord::setGrade(int newGrade) { if (isValidGrade(newGrade)) { _grade = newGrade; } } int studentRecord::studentID() { return _studentID; } void studentRecord::setStudentID(int newID) { _studentID = newID; } string studentRecord::name() { return _name; } void studentRecord::setName(string newName) { _name = newName; } string studentRecord::letterGrade() { if (!isValidGrade(_grade)) return "ERROR"; const int NUMBER_CATEGORIES = 11; const string GRADE_LETTER[] = {"F", "D", "D+", "C-", "C", "C+", "B-", "B", "B+", "A-", "A"}; const int LOWEST_GRADE_SCORE[] = {0, 60, 67, 70, 73, 77, 80, 83, 87, 90, 93}; int category = 0; while (category < NUMBER_CATEGORIES && LOWEST_GRADE_SCORE[category] <= _grade) category++; return GRADE_LETTER[category - 1]; } // -- Protected Methods -- bool studentRecord::isValidGrade(int grade) { if ((grade >= 0) && (grade <= 100)) return true; else return false; } // ----------------------------------------------------------------------------- class studentCollection { private: struct studentNode { studentRecord studentData; studentNode *next; }; public: studentCollection(); // constructor ~studentCollection(); // destructor void addRecord(studentRecord newStudent); void removeRecord(int idNum); studentRecord recordWithNumber(int idNum); private: typedef studentNode *studentList; studentList _listHead; void deleteList(studentList &listPtr); }; studentCollection::studentCollection() { _listHead = NULL; // initialization. } studentCollection::~studentCollection() { deleteList(_listHead); // cleans memory. } void studentCollection::addRecord(studentRecord newStudent) { studentNode *newNode = new studentNode; newNode -> studentData = newStudent; // Link at the beginning newNode -> next = _listHead; _listHead = newNode; } studentRecord studentCollection::recordWithNumber(int idNum) { /* WARNING: The function that calls this method is responsible for checking the studentRecord that comes back and making sure it’s not the dummy record before further processing. */ studentNode *loopPtr = _listHead; while ( (loopPtr != NULL) && (loopPtr -> studentData.studentID() != idNum) ) { loopPtr = loopPtr -> next; } if (loopPtr == NULL) { // If the list is empty or couldn't find the ID, then creates a fake record. studentRecord dummyRecord(-1, -1, ""); return dummyRecord; } else { return loopPtr -> studentData; } } void studentCollection::removeRecord(int idNum) { studentNode *trailing = NULL; // Finding the ID studentNode *loopPtr = _listHead; while (loopPtr != NULL && loopPtr -> studentData.studentID() != idNum) { trailing = loopPtr; loopPtr = loopPtr -> next; } // list is empty or couldn't find the ID. if (loopPtr == NULL) return; // New link that "removes" the node. if (trailing == NULL) { _listHead = _listHead -> next; } else { trailing -> next = loopPtr -> next; } delete loopPtr; // Clean memory. } void studentCollection::deleteList(studentList &listPtr) { while (listPtr != NULL) { studentNode *temp = listPtr; listPtr = listPtr -> next; delete temp; } } int main() { cout << "Tracking students records (with a linked list wrapped out by a class)." << endl; // Test I studentCollection s; studentRecord stu3(84, 1152, "Sue"); studentRecord stu2(75, 4875, "Ed"); studentRecord stu1(98, 2938, "Todd"); s.addRecord(stu3); s.addRecord(stu2); s.addRecord(stu1); s.removeRecord(4875); cout << endl; return 0; }
18.227564
94
0.662388
ggaaaff
368876e5c495ecb67be9e4a6d6d80a7d2bb17f00
12,250
cpp
C++
deep500/frameworks/reference/custom_operators/cpp/operators/batchnormalization_op_training.cpp
khoaideptrai/deep500
0953038f64bc73c8d41d01796e07d3a23ca97822
[ "BSD-3-Clause" ]
90
2019-01-02T22:49:08.000Z
2022-02-17T21:11:38.000Z
deep500/frameworks/reference/custom_operators/cpp/operators/batchnormalization_op_training.cpp
khoaideptrai/deep500
0953038f64bc73c8d41d01796e07d3a23ca97822
[ "BSD-3-Clause" ]
4
2019-02-14T16:19:06.000Z
2022-01-11T17:54:42.000Z
deep500/frameworks/reference/custom_operators/cpp/operators/batchnormalization_op_training.cpp
khoaideptrai/deep500
0953038f64bc73c8d41d01796e07d3a23ca97822
[ "BSD-3-Clause" ]
24
2019-01-09T18:09:44.000Z
2022-01-10T13:04:42.000Z
#include <deque> #include "deep500/deep500.h" #include "../utility/tensor/copy_data.hpp" #include "../utility/tensor/set_all.hpp" #include "../utility/math/mean.hpp" #include "../utility/math/variance.hpp" #include <iostream> //batchnormalization - training mode template<typename T> class BatchNormalizationLayerTraining : public deep500::CustomOperator{ protected: const float m_epsilon; const float m_momentum; const int m_spatial; int m_initalized; //running mean and running var are init. in first call of forward const std::deque<uint32_t> m_input_shape; uint32_t m_input_size; public: //constructor BatchNormalizationLayerTraining( const std::deque<uint32_t> input_shape, const float epsilon, const float momentum, const int spatial) : m_epsilon(epsilon), m_momentum(momentum), m_spatial(spatial), m_input_shape(input_shape) { //compute numpber of elements in input m_input_size = 1; for(const auto& elem: input_shape) m_input_size *= elem; } //copy constructor //destructor virtual ~BatchNormalizationLayerTraining() {} //member functions virtual bool supports_cuda() { return false; } void forward( const T *input_tensor, const T *input_tensor2, const T *input_tensor3, const T *input_tensor4, const T *input_tensor5, T *output_tensor, T *output_tensor2, T *output_tensor3, T *output_tensor4, T *output_tensor5) { /* ONNX notation: X = input1 scale = input2 B = input3 mean = input4 var = input5 Y = output */ //compute mean of minibatch utilityMath::compute_mean(m_input_shape, input_tensor, output_tensor4); //compute variance of minibatch utilityMath::compute_variance(m_input_shape, input_tensor, output_tensor4, output_tensor5); for(size_t i = 0; i < m_input_shape[1]; i++) { //compute running mean output_tensor2[i] = input_tensor2[i] * m_momentum + input_tensor4[i] * (1 - m_momentum); //compute running var output_tensor3[i] = input_tensor3[i] * m_momentum + input_tensor5[i] * (1 - m_momentum); } size_t num_blocks; size_t length_block; size_t num_elements; size_t spacing; size_t initial_offset; size_t temp; num_blocks = m_input_shape[0]; temp = 1; for(size_t j = 2; j < m_input_shape.size(); j++) { temp *= m_input_shape[j]; } length_block = temp; num_elements = num_blocks * length_block; spacing = m_input_shape[1] * length_block; //compute standard deviation of minibatch //m_input_shape[1] = size of saved_mean T sqrtvar[m_input_shape[1]]; for(size_t i = 0; i < m_input_shape[1]; i++) { sqrtvar[i] = std::sqrt(output_tensor5[i] + m_epsilon); } //compute output //assume: T output_tensor[m_input_size]; for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { output_tensor[initial_offset + k * spacing + l] = input_tensor2[i] * (input_tensor[initial_offset + k * spacing + l] - output_tensor4[i]) / sqrtvar[i] + input_tensor3[i]; } } } return; } void backward( const T *nextop_grad, const T *nextop_grad2, const T *nextop_grad3, const T *nextop_grad4, const T *nextop_grad5, const T *fwd_input_tensor, const T *fwd_input_tensor2, const T *fwd_input_tensor3, const T *fwd_input_tensor4, const T *fwd_input_tensor5, const T *fwd_output_tensor, const T *fwd_output_tensor2, const T *fwd_output_tensor3, const T *fwd_output_tensor4, const T *fwd_output_tensor5, T *input_tensor_grad, T *input_tensor2_grad, T *input_tensor3_grad, T *input_tensor4_grad, T *input_tensor5_grad) { utilityTensor::set_all_zero(m_input_size, input_tensor_grad); utilityTensor::set_all_zero(m_input_shape[1], input_tensor2_grad); utilityTensor::set_all_zero(m_input_shape[1], input_tensor3_grad); utilityTensor::set_all_zero(m_input_shape[1], input_tensor4_grad); utilityTensor::set_all_zero(m_input_shape[1], input_tensor5_grad); size_t num_blocks; size_t length_block; size_t num_elements; size_t spacing; size_t initial_offset; size_t temp; num_blocks = m_input_shape[0]; temp = 1; for(size_t j = 2; j < m_input_shape.size(); j++) { temp *= m_input_shape[j]; } length_block = temp; //number of elements in minibatch per channel num_elements = num_blocks * length_block; spacing = m_input_shape[1] * length_block; T x_min_mu[m_input_size]; for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { x_min_mu[initial_offset + k * spacing + l] = fwd_input_tensor[initial_offset + k * spacing + l] - fwd_output_tensor4[i]; } } } T sqrtvar[m_input_shape[1]]; for(size_t i = 0; i < m_input_shape[1]; i++) { sqrtvar[i] = std::sqrt(fwd_output_tensor5[i] + m_epsilon); } T ivar[m_input_shape[1]]; for(size_t i = 0; i < m_input_shape[1]; i++) { ivar[i] = 1. / sqrtvar[i]; } T x_hat[m_input_size]; T d_x_hat[m_input_size]; for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { x_hat[initial_offset + k * spacing + l] = x_min_mu[initial_offset + k * spacing + l] * ivar[i]; d_x_hat[initial_offset + k * spacing + l] = fwd_input_tensor2[i] * nextop_grad[initial_offset + k * spacing + l]; } } } T d_w[m_input_shape[1]]; T d_b[m_input_shape[1]]; utilityTensor::set_all_zero(m_input_shape[1], d_w); utilityTensor::set_all_zero(m_input_shape[1], d_b); for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { d_w[i] += nextop_grad[initial_offset + k * spacing + l] * x_hat[initial_offset + k * spacing + l]; d_b[i] += nextop_grad[initial_offset + k * spacing + l]; } } } T d_ivar[m_input_shape[1]]; utilityTensor::set_all_zero(m_input_shape[1], d_ivar); for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { d_ivar[i] += d_x_hat[initial_offset + k * spacing + l] * x_min_mu[initial_offset + k * spacing + l]; } } } T d_xmu1[m_input_size]; for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { d_xmu1[initial_offset + k * spacing + l] = d_x_hat[initial_offset + k * spacing + l] * ivar[i]; } } } T d_sqrtvar[m_input_shape[1]]; for(size_t i = 0; i < m_input_shape[1]; i++) { d_sqrtvar[i] = -1. / std::pow(sqrtvar[i], 2) * d_ivar[i]; } T d_var[m_input_shape[1]]; for(size_t i = 0; i < m_input_shape[1]; i++) { d_var[i] = 0.5 * 1. / sqrtvar[i] * d_sqrtvar[i]; } T d_sq[m_input_size]; for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { d_sq[initial_offset + k * spacing + l] = 1. / (T) num_elements * d_var[i]; } } } T d_xmu2[m_input_size]; for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { d_xmu2[initial_offset + k * spacing + l] = 2 * x_min_mu[initial_offset + k * spacing + l] * d_sq[initial_offset + k * spacing + l]; } } } T d_x1[m_input_size]; for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { d_x1[initial_offset + k * spacing + l] = d_xmu1[initial_offset + k * spacing + l] + d_xmu2[initial_offset + k * spacing + l]; } } } T d_mu[m_input_shape[1]]; utilityTensor::set_all_zero(m_input_shape[1], d_mu); for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { d_mu[i] += (-1.) * (d_xmu1[initial_offset + k * spacing + l] + d_xmu2[initial_offset + k * spacing + l]); } } } T d_x2[m_input_size]; for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { d_x2[initial_offset + k * spacing + l] = 1. / (T) num_elements * d_mu[i]; } } } //bwd_params for(size_t i = 0; i < m_input_shape[1]; i++) { initial_offset = i * length_block; for(size_t k = 0; k < num_blocks; k++) { for(size_t l = 0; l < length_block; l++) { input_tensor2_grad[i] += nextop_grad[initial_offset + k * spacing + l] * (fwd_input_tensor[ initial_offset + k * spacing + l] - fwd_output_tensor4[i]) / sqrtvar[i]; input_tensor3_grad[i] += nextop_grad[initial_offset + k * spacing + l]; } } } for(size_t i = 0; i < m_input_size; i++) { input_tensor_grad[i] = d_x1[i] + d_x2[i]; } utilityTensor::set_all_zero(m_input_shape[1], input_tensor4_grad); utilityTensor::set_all_zero(m_input_shape[1], input_tensor5_grad); return; } }; D500_EXPORTED void *create_new_op(deep500::tensor_t *input_descriptors, int num_inputs, deep500::tensor_t *param_descriptors, int num_params, deep500::tensor_t *output_descriptors, int num_outputs) { std::deque<uint32_t> input_tensor_shape( input_descriptors[0].sizes, input_descriptors[0].sizes + input_descriptors[0].dims ); return new BatchNormalizationLayerTraining<DTYPE>(input_tensor_shape, EPSILON, MOMENTUM, SPATIAL); } D500_REGISTER_OP(BatchNormalizationLayerTraining<DTYPE>);
35.100287
151
0.535592
khoaideptrai
368a9c681bb6654cad78e79a3a798703c643e134
4,598
cpp
C++
jlp_wxplot/jlp_wxplot_plot/jlp_wxlogbook.cpp
jlprieur/jlplib
6073d7a7eb76d916662b1f8a4eb54f345cf7c772
[ "MIT" ]
null
null
null
jlp_wxplot/jlp_wxplot_plot/jlp_wxlogbook.cpp
jlprieur/jlplib
6073d7a7eb76d916662b1f8a4eb54f345cf7c772
[ "MIT" ]
null
null
null
jlp_wxplot/jlp_wxplot_plot/jlp_wxlogbook.cpp
jlprieur/jlplib
6073d7a7eb76d916662b1f8a4eb54f345cf7c772
[ "MIT" ]
1
2020-07-09T00:20:49.000Z
2020-07-09T00:20:49.000Z
/****************************************************************************** * Name: jlp_wxlogbook.cpp (GpdLogbook class) * Purpose: Logbook utilities * Author: JLP * Version: 03/01/2015 ******************************************************************************/ #include "jlp_wxlogbook.h" #include "jlp_wxspeckle1_dlg.h" // JLP_wxSpeckle1_Dlg /* JLP_wxLogbook(wxWindow *window, const wxString title, const int iwidth, const int iheight); ~JLP_wxLogbook(); int SaveLogbook(wxString save_filename) void Clear() void Clean() int WriteToLogbook(wxString str1, bool SaveToFile); int BinariesSaveMeasurements(wxString m_full_filename1); */ BEGIN_EVENT_TABLE(JLP_wxLogbook, wxTextCtrl) END_EVENT_TABLE() /********************************************************************** * JLP_wxLogbook constructor * * INPUT: * xx,yy : size of created window * ***********************************************************************/ JLP_wxLogbook::JLP_wxLogbook(wxWindow *window, const wxString title, const int xx, const int yy) : wxTextCtrl(window, wxID_ANY, title, wxPoint(-1, -1), wxSize(xx, yy), wxTE_MULTILINE | wxTE_READONLY /* | wxTE_RICH */) { return; } /********************************************************************** * JLP_wxLogbook destructor * * INPUT: * xx,yy : size of created window * ***********************************************************************/ JLP_wxLogbook::~JLP_wxLogbook() { return; } /************************************************************************ * Save useful content of logbook to file * Input: * save_filename: wxString whose value is set in gdp_frame_menu.cpp ************************************************************************/ int JLP_wxLogbook::SaveLogbook(wxString save_filename) { int status = 0; wxFile *m_log_file; m_log_file = new wxFile(); // Overwrite = true: m_log_file->Create(save_filename, true); if(!m_log_file->IsOpened()) { wxLogError(_T("Error opening log file!\n")); status = -1; } else { m_log_file->Write(m_LogString); m_log_file->Close(); delete m_log_file; } return(status); } /******************************************************************* * Clear the logbook: erase all its content ********************************************************************/ void JLP_wxLogbook::Clear() { m_LogString.Clear(); SetValue(m_LogString); return; } /******************************************************************* * Clean the logbook: only keep its useful content ********************************************************************/ void JLP_wxLogbook::Clean() { wxString str1; // First erase screen: str1 = wxString(""); SetValue(str1); // Then display usefull content: SetValue(m_LogString); } /******************************************************************* * Write a string to the logbook ********************************************************************/ int JLP_wxLogbook::WriteToLogbook(wxString str1, bool SaveToFile) { int status = 0; if(SaveToFile) m_LogString.Append(str1); *this << str1; return(status); } /************************************************************************** * Binaries: process and saving measurements to Latex file * * INPUT: * original_fits_fname: FITS file obtained from the observations * (full name with directory and extension) * processed_fits_fname: processed FITS file used for the measurements * (name without directory and extension) * **************************************************************************/ int JLP_wxLogbook::BinariesSaveMeasurements(wxString original_fits_fname, wxString processed_fits_fname) { double font_width; int status = -1; // One possibility is: // iwFont = wxNORMAL_FONT->GetPointSize(); // wxFont m_Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT); font_width = m_Font.GetPointSize(); // Smaller width if font width is not a fixed: if(!m_Font.IsFixedWidth()) font_width *= 0.8; wxSize size1 = wxSize((int)(80. * font_width), (int)(32. * font_width)); // Speckle, DVA mode or Lucky imaging: // process and save measurements to Latex file // Read the header of the FITS file to fill the result latex line if( (new JLP_wxSpeckle1_Dlg((wxFrame *)this, m_LogString, original_fits_fname, processed_fits_fname, _T("Processing and saving measurements"), size1))->ShowModal() == wxID_OK) status = 0; return(status); }
32.380282
96
0.514572
jlprieur
368f49394200baccc9da366ae59691bd796f553c
72
hpp
C++
Addons/e12_tools/script_component.hpp
Echo12/e12_tools_ace3
41ae1e76a6c0177b73f9f0eef65f19a911f09099
[ "MIT" ]
1
2015-06-04T17:53:30.000Z
2015-06-04T17:53:30.000Z
Addons/e12_tools/script_component.hpp
Echo12/e12_tools_ace3
41ae1e76a6c0177b73f9f0eef65f19a911f09099
[ "MIT" ]
17
2015-06-04T19:27:03.000Z
2020-04-17T19:47:35.000Z
Addons/e12_tools/script_component.hpp
Echo12/e12_tools_ace3
41ae1e76a6c0177b73f9f0eef65f19a911f09099
[ "MIT" ]
2
2015-06-08T14:18:36.000Z
2016-07-12T18:14:54.000Z
#define COMPONENT tools #define PREFIX e12 #include "script_macros.hpp"
18
28
0.805556
Echo12
3691f3e0762f55a980cef62b2af0d06ad85933cb
5,474
cpp
C++
rocAL/rocAL/source/meta_node_rotate.cpp
Indumathi31/MIVisionX
e58c8b63d51e3f857d5f1c8750433d1ec887d7f0
[ "MIT" ]
null
null
null
rocAL/rocAL/source/meta_node_rotate.cpp
Indumathi31/MIVisionX
e58c8b63d51e3f857d5f1c8750433d1ec887d7f0
[ "MIT" ]
8
2021-12-10T14:07:28.000Z
2022-03-04T02:53:11.000Z
rocAL/rocAL/source/meta_node_rotate.cpp
Indumathi31/MIVisionX
e58c8b63d51e3f857d5f1c8750433d1ec887d7f0
[ "MIT" ]
2
2021-06-01T09:42:51.000Z
2021-11-09T14:35:36.000Z
/* Copyright (c) 2019 - 2022 Advanced Micro Devices, Inc. All rights reserved. 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 "meta_node_rotate.h" void RotateMetaNode::initialize() { _src_height_val.resize(_batch_size); _src_width_val.resize(_batch_size); _angle_val.resize(_batch_size); } void RotateMetaNode::update_parameters(MetaDataBatch* input_meta_data) { initialize(); if(_batch_size != input_meta_data->size()) { _batch_size = input_meta_data->size(); } _src_width = _node->get_src_width(); _src_height = _node->get_src_height(); _dst_width = _node->get_dst_width(); _dst_height = _node->get_dst_height(); _angle = _node->get_angle(); vxCopyArrayRange((vx_array)_src_width, 0, _batch_size, sizeof(uint),_src_width_val.data(), VX_READ_ONLY, VX_MEMORY_TYPE_HOST); vxCopyArrayRange((vx_array)_src_height, 0, _batch_size, sizeof(uint),_src_height_val.data(), VX_READ_ONLY, VX_MEMORY_TYPE_HOST); vxCopyArrayRange((vx_array)_angle, 0, _batch_size, sizeof(float),_angle_val.data(), VX_READ_ONLY, VX_MEMORY_TYPE_HOST); BoundingBoxCord temp_box = {0, 0, 1, 1}; for(int i = 0; i < _batch_size; i++) { auto bb_count = input_meta_data->get_bb_labels_batch()[i].size(); int labels_buf[bb_count]; float coords_buf[bb_count*4]; memcpy(labels_buf, input_meta_data->get_bb_labels_batch()[i].data(), sizeof(int)*bb_count); memcpy(coords_buf, input_meta_data->get_bb_cords_batch()[i].data(), input_meta_data->get_bb_cords_batch()[i].size() * sizeof(BoundingBoxCord)); BoundingBoxCords bb_coords; BoundingBoxLabels bb_labels; BoundingBoxCord dest_image; dest_image.l = dest_image.t = 0; dest_image.r = _dst_width; dest_image.b = _dst_height; for(uint j = 0, m = 0; j < bb_count; j++) { BoundingBoxCord box; float src_bb_x, src_bb_y, bb_w, bb_h; float dest_cx, dest_cy, src_cx, src_cy; float x1, y1, x2, y2, x3, y3, x4, y4, min_x, min_y; float rotate[4]; float radian = RAD(_angle_val[i]); rotate[0] = rotate[3] = cos(radian); rotate[1] = sin(radian); rotate[2] = -1 * rotate[1]; dest_cx = _dst_width / 2; dest_cy = _dst_height / 2; src_cx = _src_width_val[i]/2; src_cy = _src_height_val[i]/2; src_bb_x = (coords_buf[m++]); src_bb_y = (coords_buf[m++]); bb_w = (coords_buf[m++]); bb_h = (coords_buf[m++]); x1 = (rotate[0] * (src_bb_x - src_cx)) + (rotate[1] * (src_bb_y - src_cy)) + dest_cx; y1 = (rotate[2] * (src_bb_x - src_cx)) + (rotate[3] * (src_bb_y - src_cy)) + dest_cy; x2 = (rotate[0] * ((src_bb_x + bb_w) - src_cx))+( rotate[1] * (src_bb_y - src_cy)) + dest_cx; y2 = (rotate[2] * ((src_bb_x + bb_w) - src_cx))+( rotate[3] * (src_bb_y - src_cy)) + dest_cy; x3 = (rotate[0] * (src_bb_x - src_cx)) + (rotate[1] * ((src_bb_y + bb_h) - src_cy)) + dest_cx; y3 = (rotate[2] * (src_bb_x - src_cx)) + (rotate[3] * ((src_bb_y + bb_h) - src_cy)) + dest_cy; x4 = (rotate[0] * ((src_bb_x + bb_w) - src_cx))+( rotate[1] * ((src_bb_y + bb_h) - src_cy)) + dest_cx; y4 = (rotate[2] * ((src_bb_x + bb_w) - src_cx))+( rotate[3] * ((src_bb_y + bb_h) - src_cy)) + dest_cy; min_x = std::min(x1, std::min(x2, std::min(x3, x4))); min_y = std::min(y1, std::min(y2, std::min(y3, y4))); box.l = std::max(min_x, 0.0f); box.t = std::max(min_y, 0.0f); box.r = std::max(x1, std::max(x2, std::max(x3, x4))); ; box.b = std::max(y1, std::max(y2, std::max(y3, y4))); if (BBoxIntersectionOverUnion(box, dest_image) >= _iou_threshold) { box.l = std::max(dest_image.l, box.l); box.t = std::max(dest_image.t, box.t); box.r = std::min(dest_image.r, box.r); box.b = std::min(dest_image.b, box.b); bb_coords.push_back(box); bb_labels.push_back(labels_buf[j]); } } if(bb_coords.size() == 0) { bb_coords.push_back(temp_box); bb_labels.push_back(0); } input_meta_data->get_bb_cords_batch()[i] = bb_coords; input_meta_data->get_bb_labels_batch()[i] = bb_labels; } }
49.315315
151
0.620935
Indumathi31
369947a42f5980121c03baf7cb2e4bab1ecad920
2,918
hpp
C++
plugin/com.blackberry.push/src/blackberry10/native/push_ndk.hpp
timwindsor/cordova-blackberry-plugins
a3e9e7d22f54d464647e60ef3ec574b324a5972e
[ "Apache-2.0" ]
5
2015-03-04T00:17:54.000Z
2019-06-27T13:36:05.000Z
plugin/com.blackberry.push/src/blackberry10/native/push_ndk.hpp
timwindsor/cordova-blackberry-plugins
a3e9e7d22f54d464647e60ef3ec574b324a5972e
[ "Apache-2.0" ]
6
2015-02-09T21:33:52.000Z
2017-06-02T16:19:26.000Z
plugin/com.blackberry.push/src/blackberry10/native/push_ndk.hpp
timwindsor/cordova-blackberry-plugins
a3e9e7d22f54d464647e60ef3ec574b324a5972e
[ "Apache-2.0" ]
10
2015-01-27T22:58:19.000Z
2019-02-15T19:07:01.000Z
/* * Copyright 2012 Research In Motion 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. */ #ifndef PUSH_NDK_H_ #define PUSH_NDK_H_ #include <bb/communications/push/PushErrno.hpp> #include <bb/communications/push/PushService.hpp> #include <pthread.h> #include <string> #include "../common/plugin.h" #define INVALID_PPS_FILE_DESCRIPTOR -1 class Push; namespace webworks { enum PipeFileDescriptor { PIPE_READ_FD = 0, PIPE_WRITE_FD, PIPE_FD_SIZE }; typedef bb::communications::push::PushListener PushListener; typedef bb::communications::push::PushService PushService; typedef bb::communications::push::PushStatus PushStatus; typedef bb::communications::push::PushPayload PushPayload; typedef bb::communications::push::PushCommand PushCommand; class PushNDK: public PushListener { public: explicit PushNDK(Push *parent); virtual ~PushNDK(); void StartService(const std::string& invokeTargetId, const std::string& appId, const std::string& ppgUrl); void CreateChannel(); void DestroyChannel(); std::string ExtractPushPayload(const std::string& invokeData); void RegisterToLaunch(); void UnregisterFromLaunch(); void Acknowledge(const std::string& payloadId, bool shouldAccept); static void* MonitorMessagesStartThread(void* parent); void MonitorMessages(); // Interfaces defined in PushListener virtual void onCreateSessionComplete(const PushStatus& status); virtual void onCreateChannelComplete(const PushStatus& status, const std::string& token); virtual void onDestroyChannelComplete(const PushStatus& status); virtual void onRegisterToLaunchComplete(const PushStatus& status); virtual void onUnregisterFromLaunchComplete(const PushStatus& status); virtual void onSimChange(); virtual void onPushTransportReady(PushCommand command); private: void stopService(); int startMonitorThread(); std::string decodeBase64(const std::string& encodedString); private: Push *m_parent; std::string m_invokeTargetId; std::string m_appId; std::string m_ppgUrl; PushService* m_pPushService; int m_fileDescriptor; // Push service file descriptor pthread_t m_monitorThread; int m_pipeFileDescriptors[PIPE_FD_SIZE]; // pipe to write dummy data to wake up select bool m_shutdownThread; }; } // namespace webworks #endif /* PUSH_NDK_H_ */
32.422222
110
0.746059
timwindsor
369b399ba774a134189ef45d65f93dcdc50cd32f
468
cpp
C++
simulation_code/src/matplotlib-cpp/examples/scatter.cpp
lottegr/project_simulation
b95d88114a3d2611073d1977393884062f63bdab
[ "Apache-2.0" ]
58
2019-12-30T19:39:52.000Z
2022-03-27T15:55:10.000Z
simulation_code/src/matplotlib-cpp/examples/scatter.cpp
lottegr/project_simulation
b95d88114a3d2611073d1977393884062f63bdab
[ "Apache-2.0" ]
3
2021-08-25T13:22:52.000Z
2022-03-20T18:26:01.000Z
simulation_code/src/matplotlib-cpp/examples/scatter.cpp
lottegr/project_simulation
b95d88114a3d2611073d1977393884062f63bdab
[ "Apache-2.0" ]
39
2020-02-26T11:37:14.000Z
2022-03-22T09:50:24.000Z
#define _USE_MATH_DEFINES #include <cmath> #include <vector> #include "../matplotlibcpp.h" namespace plt = matplotlibcpp; void plot() { const unsigned n = 100; std::vector<double> x(n), y(n); #include <iostream> for (unsigned i = 0; i < n; ++i) { x[i] = sin(2 * M_PI * i / n); y[i] = cos(2 * M_PI * i / n); } plt::scatter(x, y, {{"color", "red"}, {"label", "a circle!"}}); plt::legend(); plt::show(); } int main() { plot(); return 0; }
18
65
0.553419
lottegr
36a094dbc76b7b0a88755d149665033df62acfd8
1,465
cpp
C++
lib/Target/Sophon/BM188x/Compute/AveragePool.cpp
LiuLeif/onnc
3f69e46172a9c33cc04541ff7fd78d5d7b6bdbba
[ "BSD-3-Clause" ]
450
2018-08-03T08:17:03.000Z
2022-03-17T17:21:06.000Z
lib/Target/Sophon/BM188x/Compute/AveragePool.cpp
ffk0716/onnc
91e4955ade64b479db17aaeccacf4b7339fe44d2
[ "BSD-3-Clause" ]
104
2018-08-13T07:31:50.000Z
2021-08-24T11:24:40.000Z
lib/Target/Sophon/BM188x/Compute/AveragePool.cpp
ffk0716/onnc
91e4955ade64b479db17aaeccacf4b7339fe44d2
[ "BSD-3-Clause" ]
100
2018-08-12T04:27:39.000Z
2022-03-11T04:17:42.000Z
//===- AveragePool.cpp ----------------------------------------------------===// // // The ONNC Project // // See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #define DEBUG_TYPE "tg_averagepool" #include "AveragePool.h" #include "../BM188xVisitor.h" using namespace onnc; using namespace onnc::BM188X; char BM188X::AveragePool::ID = 0; //===----------------------------------------------------------------------===// // AveragePool //===----------------------------------------------------------------------===// BM188X::AveragePool::AveragePool(const IntsAttr& pKernelShape) : onnc::AveragePool(pKernelShape), m_EnableRelu(0), m_RShiftWidth(0), m_ThresholdXQuantized(0) { setID(ID); setPads(IntsAttr(4, 0)); //< fill constructor {0, 0, 0, 0} setStrides(IntsAttr(2, 1)); //< fill constructor {1, 1} } void BM188X::AveragePool::print(std::ostream& pOS) const { // TODO } void BM188X::AveragePool::accept(ComputeVisitor& pV) { BM188xVisitor* visitor = dyn_cast<BM188xVisitor>(&pV); if (nullptr != visitor) visitor->visit(*this); } void BM188X::AveragePool::accept(ComputeVisitor& pV) const { BM188xVisitor* visitor = dyn_cast<BM188xVisitor>(&pV); if (nullptr != visitor) visitor->visit(*this); } bool BM188X::AveragePool::classof(const ComputeOperator* pOp) { if (nullptr == pOp) return false; return (pOp->getID() == &ID); }
27.12963
80
0.536519
LiuLeif
36a2f395a7966b144f786d9d006fbdbf6938b656
693,984
cpp
C++
unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs74.cpp
leeenglestone/mrtk
e9c81815e5cdfba3315bb72f16400a80383a3b63
[ "MIT" ]
null
null
null
unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs74.cpp
leeenglestone/mrtk
e9c81815e5cdfba3315bb72f16400a80383a3b63
[ "MIT" ]
null
null
null
unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs74.cpp
leeenglestone/mrtk
e9c81815e5cdfba3315bb72f16400a80383a3b63
[ "MIT" ]
null
null
null
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <limits> #include "vm/CachedCCWBase.h" #include "utils/New.h" template <typename R> struct VirtFuncInvoker0 { typedef R (*Func)(void*, const RuntimeMethod*); static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); return ((Func)invokeData.methodPtr)(obj, invokeData.method); } }; // System.Action`1<System.Collections.Generic.IEnumerable`1<System.String>> struct Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439; // System.Action`1<System.Object> struct Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC; // System.Action`1<System.String> struct Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3; // System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,System.UInt32> struct Dictionary_2_tB877F46A6C20A56DEA8ED6DC3E004A3171647E3B; // System.Collections.Generic.Dictionary`2<UnityEngine.XR.InputDevice,Microsoft.MixedReality.Toolkit.XRSDK.Input.GenericXRSDKController> struct Dictionary_2_t2FB6B87AE845471F5ACC7900099F9B8BFE071E0E; // System.Collections.Generic.Dictionary`2<System.Int32,System.Threading.Tasks.Task> struct Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8; // System.Collections.Generic.Dictionary`2<System.String,System.Resources.ResourceLocator> struct Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA; // System.Collections.Generic.Dictionary`2<System.Type,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.BaseEventSystem/EventHandlerEntry>> struct Dictionary_2_t9C346C961DA726D2E935BCA9F27BF39FE4EB463B; // UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<Microsoft.MixedReality.Toolkit.Teleport.IMixedRealityTeleportHandler> struct EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246; // System.Func`1<System.Threading.Tasks.Task/ContingentProperties> struct Func_1_tBCF42601FA307876E83080BE4204110820F8BF3B; // System.Func`2<System.Object,System.Int32> struct Func_2_t0CEE9D1C856153BA9C23BB9D7E929D577AF37A2C; // System.Func`2<System.Object,System.String> struct Func_2_t060A650AB95DEF14D4F579FA5999ACEFEEE0FD82; // System.Collections.Generic.List`1<System.Tuple`2<Microsoft.MixedReality.Toolkit.BaseEventSystem/Action,UnityEngine.GameObject>> struct List_1_tFBD74CBAB85AF6A2E49F61373B8A7503C022E2CD; // System.Collections.Generic.List`1<System.Tuple`3<Microsoft.MixedReality.Toolkit.BaseEventSystem/Action,System.Type,UnityEngine.EventSystems.IEventSystemHandler>> struct List_1_tB2338FC47817B39A67EDF98A81C666A585CBB1B0; // System.Collections.Generic.List`1<UnityEngine.GameObject> struct List_1_t6D0A10F47F3440798295D2FFFC6D016477AF38E5; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider> struct List_1_t94FC783F2185B5CB832CD245C5E89430CC6533D4; // System.Collections.Generic.List`1<UnityEngine.XR.InputDevice> struct List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F; // System.Collections.Generic.List`1<UnityEngine.XR.InputDeviceCharacteristics> struct List_1_tD812850D83CCFFD34E9A310E2AE62B198E513F2C; // System.Collections.Generic.List`1<UnityEngine.Ray> struct List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B; // Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessEventData`1<Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject> struct MixedRealitySpatialAwarenessEventData_1_t7ED8A8C4F13DE7DA0CDB49A53184152431B8337F; // System.Predicate`1<System.Object> struct Predicate_1_t5C96B81B31A697B11C4C3767E3298773AF25DFEB; // System.Predicate`1<System.Threading.Tasks.Task> struct Predicate_1_tC0DBBC8498BD1EE6ABFFAA5628024105FA7D11BD; // System.Threading.Tasks.Task`1<System.Boolean> struct Task_1_t9C1FE9F18F52F3409B9E970FA38801A443AE7849; // System.Byte[] struct ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726; // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; // System.Int32[] struct Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32; // System.Object[] struct ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE; // System.RuntimeType[] struct RuntimeTypeU5BU5D_t826186B59A32B687978751BFE46041623BCF4BA4; // Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager/PointerConfig[] struct PointerConfigU5BU5D_t17182F245D18BDE8E16CCF14BC0FF2793EF9B08E; // System.Action struct Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6; // System.Collections.ArrayList struct ArrayList_t6C1A49839DC1F0D568E8E11FA1626FCF0EC06575; // Microsoft.MixedReality.Toolkit.BaseMixedRealityProfile struct BaseMixedRealityProfile_tC5DBD7146B1E1D467DE81BA1EAB45133408A59E1; // System.Runtime.Serialization.Formatters.Binary.BinaryFormatter struct BinaryFormatter_tAA0465FE94B272FAC7C99F6AD38120E9319C5F55; // System.IO.BinaryReader struct BinaryReader_t4F45C15FF44F8E1C105704A21FFBE58D60015128; // System.Byte struct Byte_t0111FAB8B8685667EDDAF77683F0D8F86B659056; // System.Threading.ContextCallback struct ContextCallback_t93707E0430F4FF3E15E1FB5A4844BE89C657AE8B; // System.Globalization.CultureInfo struct CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98; // System.Text.Decoder struct Decoder_t91B2ED8AEC25AA24D23A00265203BE992B12C370; // System.Text.Encoding struct Encoding_tE901442411E2E70039D2A4AE77FB81C3D6064827; // UnityEngine.GameObject struct GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319; // System.Collections.Hashtable struct Hashtable_t7565AB92A12227AD5BADD6911F10D87EE52509AC; // System.Collections.IComparer struct IComparer_t624EE667DCB0D3765FF034F7150DA71B361B82C0; // System.IFormatProvider struct IFormatProvider_tF2AECC4B14F41D36718920D67F930CED940412DF; // Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSystem struct IMixedRealityInputSystem_t0EDEF390D5E8DB56C2251E372228BADDA9F6CF24; // Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar struct IMixedRealityServiceRegistrar_t81B35976BCAABB86634D8CAB6C5EBECE36D65D3A; // Microsoft.Win32.IRegistryApi struct IRegistryApi_t3B05FA1782C2EFEE5A2A5251BB4CE24F61272463; // System.Resources.IResourceReader struct IResourceReader_tB5A7F9D51AB1F5FEC29628E2E541338D44A88379; // System.Int32 struct Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046; // System.Threading.ManualResetEvent struct ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA; // Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystemProfile struct MixedRealitySpatialAwarenessSystemProfile_tFA00D9B0001845CDB1DEB2D3E3BB08CB3A553891; // Microsoft.MixedReality.Toolkit.Input.UnityInput.MouseController struct MouseController_t3A7451F1C270293BDDED7C6012F92C6023F21E0C; // System.Security.Cryptography.RandomNumberGenerator struct RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50; // System.Resources.ResourceReader struct ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492; // System.Security.Cryptography.SHA1Internal struct SHA1Internal_t5D0A95A55E32BCC8976D5B91649E6C13C8334CD6; // System.Runtime.InteropServices.SafeBuffer struct SafeBuffer_tABA0D0B754FCCF3625CD905D535296E353C630D2; // Microsoft.Win32.SafeHandles.SafeRegistryHandle struct SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545; // Microsoft.Win32.SafeHandles.SafeWaitHandle struct SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1; // System.Threading.SemaphoreSlim struct SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385; // System.Threading.Tasks.StackGuard struct StackGuard_t88E1EE4741AD02CA5FEA04A4EB2CC70F230E0E6D; // System.IO.Stream struct Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB; // System.String struct String_t; // System.Threading.Tasks.Task struct Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60; // System.Threading.Tasks.TaskFactory struct TaskFactory_t22D999A05A967C31A4B5FFBD08864809BF35EA3B; // System.Threading.Tasks.TaskScheduler struct TaskScheduler_t74FBEEEDBDD5E0088FF0EEC18F45CD866B098D5D; // Microsoft.MixedReality.Toolkit.Teleport.TeleportEventData struct TeleportEventData_tD38237F467954AFE4C5D13E66D5BFBAB826AAAC2; // System.Type struct Type_t; // System.IO.UnmanagedMemoryStream struct UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5; // Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem/SceneContentTracker struct SceneContentTracker_t63E7FA6D49DD34641F8A8975B6808FFC39383B65; // Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem/SceneLightingExecutor struct SceneLightingExecutor_t284A3495A5AF7E28B3778E8605ACF1806F2A1556; // UnityEngine.RectTransform/ReapplyDrivenProperties struct ReapplyDrivenProperties_t1441259DADA8FE33A95334AC24C017DFA3DEB4CE; // Mono.RuntimeStructs/GPtrArray struct GPtrArray_t481A0359CDF30AF32FB5B6D0DDBA2C26F55E3555; // System.Threading.SemaphoreSlim/TaskNode struct TaskNode_tD3014A57510D018F890E6524AC62F9417E2E6C4E; // System.Collections.SortedList/KeyList struct KeyList_t90FF026A62D56329DEFC1B768358977E70839881; // System.Collections.SortedList/ValueList struct ValueList_t3A0529729679D12F7F3AF77C48E10D5E6009CD3D; // System.IO.Stream/ReadWriteTask struct ReadWriteTask_t32CD2C230786712954C1DB518DBE420A1F4C7974; // System.Threading.Tasks.Task/ContingentProperties struct ContingentProperties_t1E249C737B8B8644ED1D60EEFA101D326B199EA0; IL2CPP_EXTERN_C RuntimeClass* OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Rect_tC45F1DDF39812623644DE296D8057A4958176627_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* String_t_il2cpp_TypeInfo_var; struct DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ; struct Guid_t ; struct IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB; struct IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C; struct Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ; struct Rect_tC45F1DDF39812623644DE296D8057A4958176627 ; struct Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ; struct TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ; 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 // Windows.Foundation.Collections.IIterable`1<System.Object> struct NOVTABLE IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) = 0; }; // Windows.Foundation.IReference`1<System.Single> struct NOVTABLE IReference_1_tD4026FABBA608F648777776BC282618C51E2AF46 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m82E1812FB137290B0EE35532E1008D32226FE5F3(float* comReturnValue) = 0; }; // Windows.UI.Xaml.Interop.IBindableIterable struct NOVTABLE IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) = 0; }; // Windows.Foundation.IClosable struct NOVTABLE IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() = 0; }; // System.Object // System.Runtime.ConstrainedExecution.CriticalFinalizerObject struct CriticalFinalizerObject_tA3367C832FFE7434EB3C15C7136AF25524150997 : public RuntimeObject { public: public: }; // System.Security.Cryptography.HashAlgorithm struct HashAlgorithm_t7F831BEF35F9D0AF5016FFB0E474AF9F93908F31 : public RuntimeObject { public: // System.Int32 System.Security.Cryptography.HashAlgorithm::HashSizeValue int32_t ___HashSizeValue_0; // System.Byte[] System.Security.Cryptography.HashAlgorithm::HashValue ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___HashValue_1; // System.Int32 System.Security.Cryptography.HashAlgorithm::State int32_t ___State_2; // System.Boolean System.Security.Cryptography.HashAlgorithm::m_bDisposed bool ___m_bDisposed_3; public: inline static int32_t get_offset_of_HashSizeValue_0() { return static_cast<int32_t>(offsetof(HashAlgorithm_t7F831BEF35F9D0AF5016FFB0E474AF9F93908F31, ___HashSizeValue_0)); } inline int32_t get_HashSizeValue_0() const { return ___HashSizeValue_0; } inline int32_t* get_address_of_HashSizeValue_0() { return &___HashSizeValue_0; } inline void set_HashSizeValue_0(int32_t value) { ___HashSizeValue_0 = value; } inline static int32_t get_offset_of_HashValue_1() { return static_cast<int32_t>(offsetof(HashAlgorithm_t7F831BEF35F9D0AF5016FFB0E474AF9F93908F31, ___HashValue_1)); } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get_HashValue_1() const { return ___HashValue_1; } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of_HashValue_1() { return &___HashValue_1; } inline void set_HashValue_1(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value) { ___HashValue_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___HashValue_1), (void*)value); } inline static int32_t get_offset_of_State_2() { return static_cast<int32_t>(offsetof(HashAlgorithm_t7F831BEF35F9D0AF5016FFB0E474AF9F93908F31, ___State_2)); } inline int32_t get_State_2() const { return ___State_2; } inline int32_t* get_address_of_State_2() { return &___State_2; } inline void set_State_2(int32_t value) { ___State_2 = value; } inline static int32_t get_offset_of_m_bDisposed_3() { return static_cast<int32_t>(offsetof(HashAlgorithm_t7F831BEF35F9D0AF5016FFB0E474AF9F93908F31, ___m_bDisposed_3)); } inline bool get_m_bDisposed_3() const { return ___m_bDisposed_3; } inline bool* get_address_of_m_bDisposed_3() { return &___m_bDisposed_3; } inline void set_m_bDisposed_3(bool value) { ___m_bDisposed_3 = value; } }; // System.MarshalByRefObject struct MarshalByRefObject_tD4DF91B488B284F899417EC468D8E50E933306A8 : public RuntimeObject { public: // System.Object System.MarshalByRefObject::_identity RuntimeObject * ____identity_0; public: inline static int32_t get_offset_of__identity_0() { return static_cast<int32_t>(offsetof(MarshalByRefObject_tD4DF91B488B284F899417EC468D8E50E933306A8, ____identity_0)); } inline RuntimeObject * get__identity_0() const { return ____identity_0; } inline RuntimeObject ** get_address_of__identity_0() { return &____identity_0; } inline void set__identity_0(RuntimeObject * value) { ____identity_0 = value; Il2CppCodeGenWriteBarrier((void**)(&____identity_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.MarshalByRefObject struct MarshalByRefObject_tD4DF91B488B284F899417EC468D8E50E933306A8_marshaled_pinvoke { Il2CppIUnknown* ____identity_0; }; // Native definition for COM marshalling of System.MarshalByRefObject struct MarshalByRefObject_tD4DF91B488B284F899417EC468D8E50E933306A8_marshaled_com { Il2CppIUnknown* ____identity_0; }; // System.Security.Cryptography.OidCollection struct OidCollection_tA091E185B8840648BE96A6C547F0C26F88E3A902 : public RuntimeObject { public: // System.Collections.ArrayList System.Security.Cryptography.OidCollection::m_list ArrayList_t6C1A49839DC1F0D568E8E11FA1626FCF0EC06575 * ___m_list_0; public: inline static int32_t get_offset_of_m_list_0() { return static_cast<int32_t>(offsetof(OidCollection_tA091E185B8840648BE96A6C547F0C26F88E3A902, ___m_list_0)); } inline ArrayList_t6C1A49839DC1F0D568E8E11FA1626FCF0EC06575 * get_m_list_0() const { return ___m_list_0; } inline ArrayList_t6C1A49839DC1F0D568E8E11FA1626FCF0EC06575 ** get_address_of_m_list_0() { return &___m_list_0; } inline void set_m_list_0(ArrayList_t6C1A49839DC1F0D568E8E11FA1626FCF0EC06575 * value) { ___m_list_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_list_0), (void*)value); } }; // System.Collections.Queue struct Queue_t66723C58C7422102C36F8570BE048BD0CC489E52 : public RuntimeObject { public: // System.Object[] System.Collections.Queue::_array ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* ____array_0; // System.Int32 System.Collections.Queue::_head int32_t ____head_1; // System.Int32 System.Collections.Queue::_tail int32_t ____tail_2; // System.Int32 System.Collections.Queue::_size int32_t ____size_3; // System.Int32 System.Collections.Queue::_growFactor int32_t ____growFactor_4; // System.Int32 System.Collections.Queue::_version int32_t ____version_5; // System.Object System.Collections.Queue::_syncRoot RuntimeObject * ____syncRoot_6; public: inline static int32_t get_offset_of__array_0() { return static_cast<int32_t>(offsetof(Queue_t66723C58C7422102C36F8570BE048BD0CC489E52, ____array_0)); } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* get__array_0() const { return ____array_0; } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE** get_address_of__array_0() { return &____array_0; } inline void set__array_0(ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* value) { ____array_0 = value; Il2CppCodeGenWriteBarrier((void**)(&____array_0), (void*)value); } inline static int32_t get_offset_of__head_1() { return static_cast<int32_t>(offsetof(Queue_t66723C58C7422102C36F8570BE048BD0CC489E52, ____head_1)); } inline int32_t get__head_1() const { return ____head_1; } inline int32_t* get_address_of__head_1() { return &____head_1; } inline void set__head_1(int32_t value) { ____head_1 = value; } inline static int32_t get_offset_of__tail_2() { return static_cast<int32_t>(offsetof(Queue_t66723C58C7422102C36F8570BE048BD0CC489E52, ____tail_2)); } inline int32_t get__tail_2() const { return ____tail_2; } inline int32_t* get_address_of__tail_2() { return &____tail_2; } inline void set__tail_2(int32_t value) { ____tail_2 = value; } inline static int32_t get_offset_of__size_3() { return static_cast<int32_t>(offsetof(Queue_t66723C58C7422102C36F8570BE048BD0CC489E52, ____size_3)); } inline int32_t get__size_3() const { return ____size_3; } inline int32_t* get_address_of__size_3() { return &____size_3; } inline void set__size_3(int32_t value) { ____size_3 = value; } inline static int32_t get_offset_of__growFactor_4() { return static_cast<int32_t>(offsetof(Queue_t66723C58C7422102C36F8570BE048BD0CC489E52, ____growFactor_4)); } inline int32_t get__growFactor_4() const { return ____growFactor_4; } inline int32_t* get_address_of__growFactor_4() { return &____growFactor_4; } inline void set__growFactor_4(int32_t value) { ____growFactor_4 = value; } inline static int32_t get_offset_of__version_5() { return static_cast<int32_t>(offsetof(Queue_t66723C58C7422102C36F8570BE048BD0CC489E52, ____version_5)); } inline int32_t get__version_5() const { return ____version_5; } inline int32_t* get_address_of__version_5() { return &____version_5; } inline void set__version_5(int32_t value) { ____version_5 = value; } inline static int32_t get_offset_of__syncRoot_6() { return static_cast<int32_t>(offsetof(Queue_t66723C58C7422102C36F8570BE048BD0CC489E52, ____syncRoot_6)); } inline RuntimeObject * get__syncRoot_6() const { return ____syncRoot_6; } inline RuntimeObject ** get_address_of__syncRoot_6() { return &____syncRoot_6; } inline void set__syncRoot_6(RuntimeObject * value) { ____syncRoot_6 = value; Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_6), (void*)value); } }; // System.Security.Cryptography.RandomNumberGenerator struct RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 : public RuntimeObject { public: public: }; // System.Resources.ResourceFallbackManager struct ResourceFallbackManager_t519E633959AC8EE890105625261272326BED6652 : public RuntimeObject { public: // System.Globalization.CultureInfo System.Resources.ResourceFallbackManager::m_startingCulture CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * ___m_startingCulture_0; // System.Globalization.CultureInfo System.Resources.ResourceFallbackManager::m_neutralResourcesCulture CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * ___m_neutralResourcesCulture_1; // System.Boolean System.Resources.ResourceFallbackManager::m_useParents bool ___m_useParents_2; public: inline static int32_t get_offset_of_m_startingCulture_0() { return static_cast<int32_t>(offsetof(ResourceFallbackManager_t519E633959AC8EE890105625261272326BED6652, ___m_startingCulture_0)); } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * get_m_startingCulture_0() const { return ___m_startingCulture_0; } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 ** get_address_of_m_startingCulture_0() { return &___m_startingCulture_0; } inline void set_m_startingCulture_0(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * value) { ___m_startingCulture_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_startingCulture_0), (void*)value); } inline static int32_t get_offset_of_m_neutralResourcesCulture_1() { return static_cast<int32_t>(offsetof(ResourceFallbackManager_t519E633959AC8EE890105625261272326BED6652, ___m_neutralResourcesCulture_1)); } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * get_m_neutralResourcesCulture_1() const { return ___m_neutralResourcesCulture_1; } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 ** get_address_of_m_neutralResourcesCulture_1() { return &___m_neutralResourcesCulture_1; } inline void set_m_neutralResourcesCulture_1(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * value) { ___m_neutralResourcesCulture_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_neutralResourcesCulture_1), (void*)value); } inline static int32_t get_offset_of_m_useParents_2() { return static_cast<int32_t>(offsetof(ResourceFallbackManager_t519E633959AC8EE890105625261272326BED6652, ___m_useParents_2)); } inline bool get_m_useParents_2() const { return ___m_useParents_2; } inline bool* get_address_of_m_useParents_2() { return &___m_useParents_2; } inline void set_m_useParents_2(bool value) { ___m_useParents_2 = value; } }; // System.Resources.ResourceReader struct ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492 : public RuntimeObject { public: // System.IO.BinaryReader System.Resources.ResourceReader::_store BinaryReader_t4F45C15FF44F8E1C105704A21FFBE58D60015128 * ____store_0; // System.Collections.Generic.Dictionary`2<System.String,System.Resources.ResourceLocator> System.Resources.ResourceReader::_resCache Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA * ____resCache_1; // System.Int64 System.Resources.ResourceReader::_nameSectionOffset int64_t ____nameSectionOffset_2; // System.Int64 System.Resources.ResourceReader::_dataSectionOffset int64_t ____dataSectionOffset_3; // System.Int32[] System.Resources.ResourceReader::_nameHashes Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ____nameHashes_4; // System.Int32* System.Resources.ResourceReader::_nameHashesPtr int32_t* ____nameHashesPtr_5; // System.Int32[] System.Resources.ResourceReader::_namePositions Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ____namePositions_6; // System.Int32* System.Resources.ResourceReader::_namePositionsPtr int32_t* ____namePositionsPtr_7; // System.RuntimeType[] System.Resources.ResourceReader::_typeTable RuntimeTypeU5BU5D_t826186B59A32B687978751BFE46041623BCF4BA4* ____typeTable_8; // System.Int32[] System.Resources.ResourceReader::_typeNamePositions Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ____typeNamePositions_9; // System.Runtime.Serialization.Formatters.Binary.BinaryFormatter System.Resources.ResourceReader::_objFormatter BinaryFormatter_tAA0465FE94B272FAC7C99F6AD38120E9319C5F55 * ____objFormatter_10; // System.Int32 System.Resources.ResourceReader::_numResources int32_t ____numResources_11; // System.IO.UnmanagedMemoryStream System.Resources.ResourceReader::_ums UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62 * ____ums_12; // System.Int32 System.Resources.ResourceReader::_version int32_t ____version_13; public: inline static int32_t get_offset_of__store_0() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____store_0)); } inline BinaryReader_t4F45C15FF44F8E1C105704A21FFBE58D60015128 * get__store_0() const { return ____store_0; } inline BinaryReader_t4F45C15FF44F8E1C105704A21FFBE58D60015128 ** get_address_of__store_0() { return &____store_0; } inline void set__store_0(BinaryReader_t4F45C15FF44F8E1C105704A21FFBE58D60015128 * value) { ____store_0 = value; Il2CppCodeGenWriteBarrier((void**)(&____store_0), (void*)value); } inline static int32_t get_offset_of__resCache_1() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____resCache_1)); } inline Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA * get__resCache_1() const { return ____resCache_1; } inline Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA ** get_address_of__resCache_1() { return &____resCache_1; } inline void set__resCache_1(Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA * value) { ____resCache_1 = value; Il2CppCodeGenWriteBarrier((void**)(&____resCache_1), (void*)value); } inline static int32_t get_offset_of__nameSectionOffset_2() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____nameSectionOffset_2)); } inline int64_t get__nameSectionOffset_2() const { return ____nameSectionOffset_2; } inline int64_t* get_address_of__nameSectionOffset_2() { return &____nameSectionOffset_2; } inline void set__nameSectionOffset_2(int64_t value) { ____nameSectionOffset_2 = value; } inline static int32_t get_offset_of__dataSectionOffset_3() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____dataSectionOffset_3)); } inline int64_t get__dataSectionOffset_3() const { return ____dataSectionOffset_3; } inline int64_t* get_address_of__dataSectionOffset_3() { return &____dataSectionOffset_3; } inline void set__dataSectionOffset_3(int64_t value) { ____dataSectionOffset_3 = value; } inline static int32_t get_offset_of__nameHashes_4() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____nameHashes_4)); } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get__nameHashes_4() const { return ____nameHashes_4; } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of__nameHashes_4() { return &____nameHashes_4; } inline void set__nameHashes_4(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value) { ____nameHashes_4 = value; Il2CppCodeGenWriteBarrier((void**)(&____nameHashes_4), (void*)value); } inline static int32_t get_offset_of__nameHashesPtr_5() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____nameHashesPtr_5)); } inline int32_t* get__nameHashesPtr_5() const { return ____nameHashesPtr_5; } inline int32_t** get_address_of__nameHashesPtr_5() { return &____nameHashesPtr_5; } inline void set__nameHashesPtr_5(int32_t* value) { ____nameHashesPtr_5 = value; } inline static int32_t get_offset_of__namePositions_6() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____namePositions_6)); } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get__namePositions_6() const { return ____namePositions_6; } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of__namePositions_6() { return &____namePositions_6; } inline void set__namePositions_6(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value) { ____namePositions_6 = value; Il2CppCodeGenWriteBarrier((void**)(&____namePositions_6), (void*)value); } inline static int32_t get_offset_of__namePositionsPtr_7() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____namePositionsPtr_7)); } inline int32_t* get__namePositionsPtr_7() const { return ____namePositionsPtr_7; } inline int32_t** get_address_of__namePositionsPtr_7() { return &____namePositionsPtr_7; } inline void set__namePositionsPtr_7(int32_t* value) { ____namePositionsPtr_7 = value; } inline static int32_t get_offset_of__typeTable_8() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____typeTable_8)); } inline RuntimeTypeU5BU5D_t826186B59A32B687978751BFE46041623BCF4BA4* get__typeTable_8() const { return ____typeTable_8; } inline RuntimeTypeU5BU5D_t826186B59A32B687978751BFE46041623BCF4BA4** get_address_of__typeTable_8() { return &____typeTable_8; } inline void set__typeTable_8(RuntimeTypeU5BU5D_t826186B59A32B687978751BFE46041623BCF4BA4* value) { ____typeTable_8 = value; Il2CppCodeGenWriteBarrier((void**)(&____typeTable_8), (void*)value); } inline static int32_t get_offset_of__typeNamePositions_9() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____typeNamePositions_9)); } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get__typeNamePositions_9() const { return ____typeNamePositions_9; } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of__typeNamePositions_9() { return &____typeNamePositions_9; } inline void set__typeNamePositions_9(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value) { ____typeNamePositions_9 = value; Il2CppCodeGenWriteBarrier((void**)(&____typeNamePositions_9), (void*)value); } inline static int32_t get_offset_of__objFormatter_10() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____objFormatter_10)); } inline BinaryFormatter_tAA0465FE94B272FAC7C99F6AD38120E9319C5F55 * get__objFormatter_10() const { return ____objFormatter_10; } inline BinaryFormatter_tAA0465FE94B272FAC7C99F6AD38120E9319C5F55 ** get_address_of__objFormatter_10() { return &____objFormatter_10; } inline void set__objFormatter_10(BinaryFormatter_tAA0465FE94B272FAC7C99F6AD38120E9319C5F55 * value) { ____objFormatter_10 = value; Il2CppCodeGenWriteBarrier((void**)(&____objFormatter_10), (void*)value); } inline static int32_t get_offset_of__numResources_11() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____numResources_11)); } inline int32_t get__numResources_11() const { return ____numResources_11; } inline int32_t* get_address_of__numResources_11() { return &____numResources_11; } inline void set__numResources_11(int32_t value) { ____numResources_11 = value; } inline static int32_t get_offset_of__ums_12() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____ums_12)); } inline UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62 * get__ums_12() const { return ____ums_12; } inline UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62 ** get_address_of__ums_12() { return &____ums_12; } inline void set__ums_12(UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62 * value) { ____ums_12 = value; Il2CppCodeGenWriteBarrier((void**)(&____ums_12), (void*)value); } inline static int32_t get_offset_of__version_13() { return static_cast<int32_t>(offsetof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492, ____version_13)); } inline int32_t get__version_13() const { return ____version_13; } inline int32_t* get_address_of__version_13() { return &____version_13; } inline void set__version_13(int32_t value) { ____version_13 = value; } }; // System.Resources.ResourceSet struct ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F : public RuntimeObject { public: // System.Resources.IResourceReader System.Resources.ResourceSet::Reader RuntimeObject* ___Reader_0; // System.Collections.Hashtable System.Resources.ResourceSet::Table Hashtable_t7565AB92A12227AD5BADD6911F10D87EE52509AC * ___Table_1; // System.Collections.Hashtable System.Resources.ResourceSet::_caseInsensitiveTable Hashtable_t7565AB92A12227AD5BADD6911F10D87EE52509AC * ____caseInsensitiveTable_2; public: inline static int32_t get_offset_of_Reader_0() { return static_cast<int32_t>(offsetof(ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F, ___Reader_0)); } inline RuntimeObject* get_Reader_0() const { return ___Reader_0; } inline RuntimeObject** get_address_of_Reader_0() { return &___Reader_0; } inline void set_Reader_0(RuntimeObject* value) { ___Reader_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___Reader_0), (void*)value); } inline static int32_t get_offset_of_Table_1() { return static_cast<int32_t>(offsetof(ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F, ___Table_1)); } inline Hashtable_t7565AB92A12227AD5BADD6911F10D87EE52509AC * get_Table_1() const { return ___Table_1; } inline Hashtable_t7565AB92A12227AD5BADD6911F10D87EE52509AC ** get_address_of_Table_1() { return &___Table_1; } inline void set_Table_1(Hashtable_t7565AB92A12227AD5BADD6911F10D87EE52509AC * value) { ___Table_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___Table_1), (void*)value); } inline static int32_t get_offset_of__caseInsensitiveTable_2() { return static_cast<int32_t>(offsetof(ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F, ____caseInsensitiveTable_2)); } inline Hashtable_t7565AB92A12227AD5BADD6911F10D87EE52509AC * get__caseInsensitiveTable_2() const { return ____caseInsensitiveTable_2; } inline Hashtable_t7565AB92A12227AD5BADD6911F10D87EE52509AC ** get_address_of__caseInsensitiveTable_2() { return &____caseInsensitiveTable_2; } inline void set__caseInsensitiveTable_2(Hashtable_t7565AB92A12227AD5BADD6911F10D87EE52509AC * value) { ____caseInsensitiveTable_2 = value; Il2CppCodeGenWriteBarrier((void**)(&____caseInsensitiveTable_2), (void*)value); } }; // System.Collections.SortedList struct SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165 : public RuntimeObject { public: // System.Object[] System.Collections.SortedList::keys ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* ___keys_0; // System.Object[] System.Collections.SortedList::values ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* ___values_1; // System.Int32 System.Collections.SortedList::_size int32_t ____size_2; // System.Int32 System.Collections.SortedList::version int32_t ___version_3; // System.Collections.IComparer System.Collections.SortedList::comparer RuntimeObject* ___comparer_4; // System.Collections.SortedList/KeyList System.Collections.SortedList::keyList KeyList_t90FF026A62D56329DEFC1B768358977E70839881 * ___keyList_5; // System.Collections.SortedList/ValueList System.Collections.SortedList::valueList ValueList_t3A0529729679D12F7F3AF77C48E10D5E6009CD3D * ___valueList_6; // System.Object System.Collections.SortedList::_syncRoot RuntimeObject * ____syncRoot_7; public: inline static int32_t get_offset_of_keys_0() { return static_cast<int32_t>(offsetof(SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165, ___keys_0)); } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* get_keys_0() const { return ___keys_0; } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE** get_address_of_keys_0() { return &___keys_0; } inline void set_keys_0(ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* value) { ___keys_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___keys_0), (void*)value); } inline static int32_t get_offset_of_values_1() { return static_cast<int32_t>(offsetof(SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165, ___values_1)); } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* get_values_1() const { return ___values_1; } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE** get_address_of_values_1() { return &___values_1; } inline void set_values_1(ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* value) { ___values_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___values_1), (void*)value); } inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165, ____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(SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165, ___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_comparer_4() { return static_cast<int32_t>(offsetof(SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165, ___comparer_4)); } inline RuntimeObject* get_comparer_4() const { return ___comparer_4; } inline RuntimeObject** get_address_of_comparer_4() { return &___comparer_4; } inline void set_comparer_4(RuntimeObject* value) { ___comparer_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___comparer_4), (void*)value); } inline static int32_t get_offset_of_keyList_5() { return static_cast<int32_t>(offsetof(SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165, ___keyList_5)); } inline KeyList_t90FF026A62D56329DEFC1B768358977E70839881 * get_keyList_5() const { return ___keyList_5; } inline KeyList_t90FF026A62D56329DEFC1B768358977E70839881 ** get_address_of_keyList_5() { return &___keyList_5; } inline void set_keyList_5(KeyList_t90FF026A62D56329DEFC1B768358977E70839881 * value) { ___keyList_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___keyList_5), (void*)value); } inline static int32_t get_offset_of_valueList_6() { return static_cast<int32_t>(offsetof(SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165, ___valueList_6)); } inline ValueList_t3A0529729679D12F7F3AF77C48E10D5E6009CD3D * get_valueList_6() const { return ___valueList_6; } inline ValueList_t3A0529729679D12F7F3AF77C48E10D5E6009CD3D ** get_address_of_valueList_6() { return &___valueList_6; } inline void set_valueList_6(ValueList_t3A0529729679D12F7F3AF77C48E10D5E6009CD3D * value) { ___valueList_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___valueList_6), (void*)value); } inline static int32_t get_offset_of__syncRoot_7() { return static_cast<int32_t>(offsetof(SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165, ____syncRoot_7)); } inline RuntimeObject * get__syncRoot_7() const { return ____syncRoot_7; } inline RuntimeObject ** get_address_of__syncRoot_7() { return &____syncRoot_7; } inline void set__syncRoot_7(RuntimeObject * value) { ____syncRoot_7 = value; Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_7), (void*)value); } }; struct SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165_StaticFields { public: // System.Object[] System.Collections.SortedList::emptyArray ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* ___emptyArray_9; public: inline static int32_t get_offset_of_emptyArray_9() { return static_cast<int32_t>(offsetof(SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165_StaticFields, ___emptyArray_9)); } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* get_emptyArray_9() const { return ___emptyArray_9; } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE** get_address_of_emptyArray_9() { return &___emptyArray_9; } inline void set_emptyArray_9(ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* value) { ___emptyArray_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___emptyArray_9), (void*)value); } }; // System.Collections.Stack struct Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8 : public RuntimeObject { public: // System.Object[] System.Collections.Stack::_array ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* ____array_0; // System.Int32 System.Collections.Stack::_size int32_t ____size_1; // System.Int32 System.Collections.Stack::_version int32_t ____version_2; // System.Object System.Collections.Stack::_syncRoot RuntimeObject * ____syncRoot_3; public: inline static int32_t get_offset_of__array_0() { return static_cast<int32_t>(offsetof(Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8, ____array_0)); } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* get__array_0() const { return ____array_0; } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE** get_address_of__array_0() { return &____array_0; } inline void set__array_0(ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* value) { ____array_0 = value; Il2CppCodeGenWriteBarrier((void**)(&____array_0), (void*)value); } inline static int32_t get_offset_of__size_1() { return static_cast<int32_t>(offsetof(Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8, ____size_1)); } inline int32_t get__size_1() const { return ____size_1; } inline int32_t* get_address_of__size_1() { return &____size_1; } inline void set__size_1(int32_t value) { ____size_1 = value; } inline static int32_t get_offset_of__version_2() { return static_cast<int32_t>(offsetof(Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8, ____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__syncRoot_3() { return static_cast<int32_t>(offsetof(Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8, ____syncRoot_3)); } inline RuntimeObject * get__syncRoot_3() const { return ____syncRoot_3; } inline RuntimeObject ** get_address_of__syncRoot_3() { return &____syncRoot_3; } inline void set__syncRoot_3(RuntimeObject * value) { ____syncRoot_3 = value; Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_3), (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_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject { public: public: }; // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com { }; // System.Nullable`1<System.Boolean> struct Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 { public: // T System.Nullable`1::value bool ___value_0; // System.Boolean System.Nullable`1::has_value bool ___has_value_1; public: inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3, ___value_0)); } inline bool get_value_0() const { return ___value_0; } inline bool* get_address_of_value_0() { return &___value_0; } inline void set_value_0(bool value) { ___value_0 = value; } inline static int32_t get_offset_of_has_value_1() { return static_cast<int32_t>(offsetof(Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3, ___has_value_1)); } inline bool get_has_value_1() const { return ___has_value_1; } inline bool* get_address_of_has_value_1() { return &___has_value_1; } inline void set_has_value_1(bool value) { ___has_value_1 = value; } }; // System.Boolean struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37 { 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_t07D1E3F34E4813023D64F584DFF7B34C9D922F37, ___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_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_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_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_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_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_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); } }; // Windows.Foundation.DateTime struct DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C { public: // System.Int64 Windows.Foundation.DateTime::UniversalTime int64_t ___UniversalTime_0; public: inline static int32_t get_offset_of_UniversalTime_0() { return static_cast<int32_t>(offsetof(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C, ___UniversalTime_0)); } inline int64_t get_UniversalTime_0() const { return ___UniversalTime_0; } inline int64_t* get_address_of_UniversalTime_0() { return &___UniversalTime_0; } inline void set_UniversalTime_0(int64_t value) { ___UniversalTime_0 = value; } }; // System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA : public ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 { public: public: }; struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields { public: // System.Char[] System.Enum::enumSeperatorCharArray CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___enumSeperatorCharArray_0; public: inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields, ___enumSeperatorCharArray_0)); } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; } inline void set_enumSeperatorCharArray_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value) { ___enumSeperatorCharArray_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_com { }; // System.Runtime.InteropServices.GCHandle struct GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603 { public: // System.Int32 System.Runtime.InteropServices.GCHandle::handle int32_t ___handle_0; public: inline static int32_t get_offset_of_handle_0() { return static_cast<int32_t>(offsetof(GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603, ___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; } }; // System.Guid struct Guid_t { public: // System.Int32 System.Guid::_a int32_t ____a_1; // System.Int16 System.Guid::_b int16_t ____b_2; // System.Int16 System.Guid::_c int16_t ____c_3; // System.Byte System.Guid::_d uint8_t ____d_4; // System.Byte System.Guid::_e uint8_t ____e_5; // System.Byte System.Guid::_f uint8_t ____f_6; // System.Byte System.Guid::_g uint8_t ____g_7; // System.Byte System.Guid::_h uint8_t ____h_8; // System.Byte System.Guid::_i uint8_t ____i_9; // System.Byte System.Guid::_j uint8_t ____j_10; // System.Byte System.Guid::_k uint8_t ____k_11; public: inline static int32_t get_offset_of__a_1() { return static_cast<int32_t>(offsetof(Guid_t, ____a_1)); } inline int32_t get__a_1() const { return ____a_1; } inline int32_t* get_address_of__a_1() { return &____a_1; } inline void set__a_1(int32_t value) { ____a_1 = value; } inline static int32_t get_offset_of__b_2() { return static_cast<int32_t>(offsetof(Guid_t, ____b_2)); } inline int16_t get__b_2() const { return ____b_2; } inline int16_t* get_address_of__b_2() { return &____b_2; } inline void set__b_2(int16_t value) { ____b_2 = value; } inline static int32_t get_offset_of__c_3() { return static_cast<int32_t>(offsetof(Guid_t, ____c_3)); } inline int16_t get__c_3() const { return ____c_3; } inline int16_t* get_address_of__c_3() { return &____c_3; } inline void set__c_3(int16_t value) { ____c_3 = value; } inline static int32_t get_offset_of__d_4() { return static_cast<int32_t>(offsetof(Guid_t, ____d_4)); } inline uint8_t get__d_4() const { return ____d_4; } inline uint8_t* get_address_of__d_4() { return &____d_4; } inline void set__d_4(uint8_t value) { ____d_4 = value; } inline static int32_t get_offset_of__e_5() { return static_cast<int32_t>(offsetof(Guid_t, ____e_5)); } inline uint8_t get__e_5() const { return ____e_5; } inline uint8_t* get_address_of__e_5() { return &____e_5; } inline void set__e_5(uint8_t value) { ____e_5 = value; } inline static int32_t get_offset_of__f_6() { return static_cast<int32_t>(offsetof(Guid_t, ____f_6)); } inline uint8_t get__f_6() const { return ____f_6; } inline uint8_t* get_address_of__f_6() { return &____f_6; } inline void set__f_6(uint8_t value) { ____f_6 = value; } inline static int32_t get_offset_of__g_7() { return static_cast<int32_t>(offsetof(Guid_t, ____g_7)); } inline uint8_t get__g_7() const { return ____g_7; } inline uint8_t* get_address_of__g_7() { return &____g_7; } inline void set__g_7(uint8_t value) { ____g_7 = value; } inline static int32_t get_offset_of__h_8() { return static_cast<int32_t>(offsetof(Guid_t, ____h_8)); } inline uint8_t get__h_8() const { return ____h_8; } inline uint8_t* get_address_of__h_8() { return &____h_8; } inline void set__h_8(uint8_t value) { ____h_8 = value; } inline static int32_t get_offset_of__i_9() { return static_cast<int32_t>(offsetof(Guid_t, ____i_9)); } inline uint8_t get__i_9() const { return ____i_9; } inline uint8_t* get_address_of__i_9() { return &____i_9; } inline void set__i_9(uint8_t value) { ____i_9 = value; } inline static int32_t get_offset_of__j_10() { return static_cast<int32_t>(offsetof(Guid_t, ____j_10)); } inline uint8_t get__j_10() const { return ____j_10; } inline uint8_t* get_address_of__j_10() { return &____j_10; } inline void set__j_10(uint8_t value) { ____j_10 = value; } inline static int32_t get_offset_of__k_11() { return static_cast<int32_t>(offsetof(Guid_t, ____k_11)); } inline uint8_t get__k_11() const { return ____k_11; } inline uint8_t* get_address_of__k_11() { return &____k_11; } inline void set__k_11(uint8_t value) { ____k_11 = value; } }; struct Guid_t_StaticFields { public: // System.Guid System.Guid::Empty Guid_t ___Empty_0; // System.Object System.Guid::_rngAccess RuntimeObject * ____rngAccess_12; // System.Security.Cryptography.RandomNumberGenerator System.Guid::_rng RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * ____rng_13; // System.Security.Cryptography.RandomNumberGenerator System.Guid::_fastRng RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * ____fastRng_14; public: inline static int32_t get_offset_of_Empty_0() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ___Empty_0)); } inline Guid_t get_Empty_0() const { return ___Empty_0; } inline Guid_t * get_address_of_Empty_0() { return &___Empty_0; } inline void set_Empty_0(Guid_t value) { ___Empty_0 = value; } inline static int32_t get_offset_of__rngAccess_12() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____rngAccess_12)); } inline RuntimeObject * get__rngAccess_12() const { return ____rngAccess_12; } inline RuntimeObject ** get_address_of__rngAccess_12() { return &____rngAccess_12; } inline void set__rngAccess_12(RuntimeObject * value) { ____rngAccess_12 = value; Il2CppCodeGenWriteBarrier((void**)(&____rngAccess_12), (void*)value); } inline static int32_t get_offset_of__rng_13() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____rng_13)); } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * get__rng_13() const { return ____rng_13; } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 ** get_address_of__rng_13() { return &____rng_13; } inline void set__rng_13(RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * value) { ____rng_13 = value; Il2CppCodeGenWriteBarrier((void**)(&____rng_13), (void*)value); } inline static int32_t get_offset_of__fastRng_14() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____fastRng_14)); } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * get__fastRng_14() const { return ____fastRng_14; } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 ** get_address_of__fastRng_14() { return &____fastRng_14; } inline void set__fastRng_14(RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * value) { ____fastRng_14 = value; Il2CppCodeGenWriteBarrier((void**)(&____fastRng_14), (void*)value); } }; // UnityEngine.XR.InputDevice struct InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E { public: // System.UInt64 UnityEngine.XR.InputDevice::m_DeviceId uint64_t ___m_DeviceId_0; // System.Boolean UnityEngine.XR.InputDevice::m_Initialized bool ___m_Initialized_1; public: inline static int32_t get_offset_of_m_DeviceId_0() { return static_cast<int32_t>(offsetof(InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E, ___m_DeviceId_0)); } inline uint64_t get_m_DeviceId_0() const { return ___m_DeviceId_0; } inline uint64_t* get_address_of_m_DeviceId_0() { return &___m_DeviceId_0; } inline void set_m_DeviceId_0(uint64_t value) { ___m_DeviceId_0 = value; } inline static int32_t get_offset_of_m_Initialized_1() { return static_cast<int32_t>(offsetof(InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E, ___m_Initialized_1)); } inline bool get_m_Initialized_1() const { return ___m_Initialized_1; } inline bool* get_address_of_m_Initialized_1() { return &___m_Initialized_1; } inline void set_m_Initialized_1(bool value) { ___m_Initialized_1 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.XR.InputDevice struct InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E_marshaled_pinvoke { uint64_t ___m_DeviceId_0; int32_t ___m_Initialized_1; }; // Native definition for COM marshalling of UnityEngine.XR.InputDevice struct InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E_marshaled_com { uint64_t ___m_DeviceId_0; int32_t ___m_Initialized_1; }; // System.Int32 struct Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046 { 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_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046, ___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; } }; // Windows.Foundation.Point struct Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 { public: // System.Single Windows.Foundation.Point::_x float ____x_0; // System.Single Windows.Foundation.Point::_y float ____y_1; public: inline static int32_t get_offset_of__x_0() { return static_cast<int32_t>(offsetof(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578, ____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(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578, ____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; } }; // Windows.Foundation.Point struct Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB { public: // System.Single Windows.Foundation.Point::X float ___X_0; // System.Single Windows.Foundation.Point::Y float ___Y_1; public: inline static int32_t get_offset_of_X_0() { return static_cast<int32_t>(offsetof(Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB, ___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(Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB, ___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; } }; // System.Numerics.Quaternion struct Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C { public: // System.Single System.Numerics.Quaternion::X float ___X_0; // System.Single System.Numerics.Quaternion::Y float ___Y_1; // System.Single System.Numerics.Quaternion::Z float ___Z_2; // System.Single System.Numerics.Quaternion::W float ___W_3; public: inline static int32_t get_offset_of_X_0() { return static_cast<int32_t>(offsetof(Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C, ___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_tE38335092171ED778CFD631B55A5C81347A93E8C, ___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_tE38335092171ED778CFD631B55A5C81347A93E8C, ___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_tE38335092171ED778CFD631B55A5C81347A93E8C, ___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; } }; // Windows.Foundation.Numerics.Quaternion struct Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22 { public: // System.Single Windows.Foundation.Numerics.Quaternion::X float ___X_0; // System.Single Windows.Foundation.Numerics.Quaternion::Y float ___Y_1; // System.Single Windows.Foundation.Numerics.Quaternion::Z float ___Z_2; // System.Single Windows.Foundation.Numerics.Quaternion::W float ___W_3; public: inline static int32_t get_offset_of_X_0() { return static_cast<int32_t>(offsetof(Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22, ___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_tEA023D1069B1229FB3B43923B6DB22090B599B22, ___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_tEA023D1069B1229FB3B43923B6DB22090B599B22, ___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_tEA023D1069B1229FB3B43923B6DB22090B599B22, ___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; } }; // Windows.Foundation.Rect struct Rect_tC45F1DDF39812623644DE296D8057A4958176627 { public: // System.Single Windows.Foundation.Rect::_x float ____x_0; // System.Single Windows.Foundation.Rect::_y float ____y_1; // System.Single Windows.Foundation.Rect::_width float ____width_2; // System.Single Windows.Foundation.Rect::_height float ____height_3; public: inline static int32_t get_offset_of__x_0() { return static_cast<int32_t>(offsetof(Rect_tC45F1DDF39812623644DE296D8057A4958176627, ____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(Rect_tC45F1DDF39812623644DE296D8057A4958176627, ____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__width_2() { return static_cast<int32_t>(offsetof(Rect_tC45F1DDF39812623644DE296D8057A4958176627, ____width_2)); } inline float get__width_2() const { return ____width_2; } inline float* get_address_of__width_2() { return &____width_2; } inline void set__width_2(float value) { ____width_2 = value; } inline static int32_t get_offset_of__height_3() { return static_cast<int32_t>(offsetof(Rect_tC45F1DDF39812623644DE296D8057A4958176627, ____height_3)); } inline float get__height_3() const { return ____height_3; } inline float* get_address_of__height_3() { return &____height_3; } inline void set__height_3(float value) { ____height_3 = value; } }; // Windows.Foundation.Rect struct Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891 { public: // System.Single Windows.Foundation.Rect::X float ___X_0; // System.Single Windows.Foundation.Rect::Y float ___Y_1; // System.Single Windows.Foundation.Rect::Width float ___Width_2; // System.Single Windows.Foundation.Rect::Height float ___Height_3; public: inline static int32_t get_offset_of_X_0() { return static_cast<int32_t>(offsetof(Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891, ___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(Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891, ___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_Width_2() { return static_cast<int32_t>(offsetof(Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891, ___Width_2)); } inline float get_Width_2() const { return ___Width_2; } inline float* get_address_of_Width_2() { return &___Width_2; } inline void set_Width_2(float value) { ___Width_2 = value; } inline static int32_t get_offset_of_Height_3() { return static_cast<int32_t>(offsetof(Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891, ___Height_3)); } inline float get_Height_3() const { return ___Height_3; } inline float* get_address_of_Height_3() { return &___Height_3; } inline void set_Height_3(float value) { ___Height_3 = value; } }; // Microsoft.Win32.RegistryKey struct RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268 : public MarshalByRefObject_tD4DF91B488B284F899417EC468D8E50E933306A8 { public: // System.Object Microsoft.Win32.RegistryKey::handle RuntimeObject * ___handle_1; // Microsoft.Win32.SafeHandles.SafeRegistryHandle Microsoft.Win32.RegistryKey::safe_handle SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545 * ___safe_handle_2; // System.Object Microsoft.Win32.RegistryKey::hive RuntimeObject * ___hive_3; // System.String Microsoft.Win32.RegistryKey::qname String_t* ___qname_4; // System.Boolean Microsoft.Win32.RegistryKey::isRemoteRoot bool ___isRemoteRoot_5; // System.Boolean Microsoft.Win32.RegistryKey::isWritable bool ___isWritable_6; public: inline static int32_t get_offset_of_handle_1() { return static_cast<int32_t>(offsetof(RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268, ___handle_1)); } inline RuntimeObject * get_handle_1() const { return ___handle_1; } inline RuntimeObject ** get_address_of_handle_1() { return &___handle_1; } inline void set_handle_1(RuntimeObject * value) { ___handle_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___handle_1), (void*)value); } inline static int32_t get_offset_of_safe_handle_2() { return static_cast<int32_t>(offsetof(RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268, ___safe_handle_2)); } inline SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545 * get_safe_handle_2() const { return ___safe_handle_2; } inline SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545 ** get_address_of_safe_handle_2() { return &___safe_handle_2; } inline void set_safe_handle_2(SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545 * value) { ___safe_handle_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___safe_handle_2), (void*)value); } inline static int32_t get_offset_of_hive_3() { return static_cast<int32_t>(offsetof(RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268, ___hive_3)); } inline RuntimeObject * get_hive_3() const { return ___hive_3; } inline RuntimeObject ** get_address_of_hive_3() { return &___hive_3; } inline void set_hive_3(RuntimeObject * value) { ___hive_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___hive_3), (void*)value); } inline static int32_t get_offset_of_qname_4() { return static_cast<int32_t>(offsetof(RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268, ___qname_4)); } inline String_t* get_qname_4() const { return ___qname_4; } inline String_t** get_address_of_qname_4() { return &___qname_4; } inline void set_qname_4(String_t* value) { ___qname_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___qname_4), (void*)value); } inline static int32_t get_offset_of_isRemoteRoot_5() { return static_cast<int32_t>(offsetof(RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268, ___isRemoteRoot_5)); } inline bool get_isRemoteRoot_5() const { return ___isRemoteRoot_5; } inline bool* get_address_of_isRemoteRoot_5() { return &___isRemoteRoot_5; } inline void set_isRemoteRoot_5(bool value) { ___isRemoteRoot_5 = value; } inline static int32_t get_offset_of_isWritable_6() { return static_cast<int32_t>(offsetof(RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268, ___isWritable_6)); } inline bool get_isWritable_6() const { return ___isWritable_6; } inline bool* get_address_of_isWritable_6() { return &___isWritable_6; } inline void set_isWritable_6(bool value) { ___isWritable_6 = value; } }; struct RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268_StaticFields { public: // Microsoft.Win32.IRegistryApi Microsoft.Win32.RegistryKey::RegistryApi RuntimeObject* ___RegistryApi_7; public: inline static int32_t get_offset_of_RegistryApi_7() { return static_cast<int32_t>(offsetof(RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268_StaticFields, ___RegistryApi_7)); } inline RuntimeObject* get_RegistryApi_7() const { return ___RegistryApi_7; } inline RuntimeObject** get_address_of_RegistryApi_7() { return &___RegistryApi_7; } inline void set_RegistryApi_7(RuntimeObject* value) { ___RegistryApi_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___RegistryApi_7), (void*)value); } }; // Mono.RuntimeGPtrArrayHandle struct RuntimeGPtrArrayHandle_tFFF90E5789EADA37BC5B24EE93680549771445B7 { public: // Mono.RuntimeStructs/GPtrArray* Mono.RuntimeGPtrArrayHandle::value GPtrArray_t481A0359CDF30AF32FB5B6D0DDBA2C26F55E3555 * ___value_0; public: inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeGPtrArrayHandle_tFFF90E5789EADA37BC5B24EE93680549771445B7, ___value_0)); } inline GPtrArray_t481A0359CDF30AF32FB5B6D0DDBA2C26F55E3555 * get_value_0() const { return ___value_0; } inline GPtrArray_t481A0359CDF30AF32FB5B6D0DDBA2C26F55E3555 ** get_address_of_value_0() { return &___value_0; } inline void set_value_0(GPtrArray_t481A0359CDF30AF32FB5B6D0DDBA2C26F55E3555 * value) { ___value_0 = value; } }; // System.Resources.RuntimeResourceSet struct RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A : public ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F { public: // System.Collections.Generic.Dictionary`2<System.String,System.Resources.ResourceLocator> System.Resources.RuntimeResourceSet::_resCache Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA * ____resCache_4; // System.Resources.ResourceReader System.Resources.RuntimeResourceSet::_defaultReader ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492 * ____defaultReader_5; // System.Collections.Generic.Dictionary`2<System.String,System.Resources.ResourceLocator> System.Resources.RuntimeResourceSet::_caseInsensitiveTable Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA * ____caseInsensitiveTable_6; // System.Boolean System.Resources.RuntimeResourceSet::_haveReadFromReader bool ____haveReadFromReader_7; public: inline static int32_t get_offset_of__resCache_4() { return static_cast<int32_t>(offsetof(RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A, ____resCache_4)); } inline Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA * get__resCache_4() const { return ____resCache_4; } inline Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA ** get_address_of__resCache_4() { return &____resCache_4; } inline void set__resCache_4(Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA * value) { ____resCache_4 = value; Il2CppCodeGenWriteBarrier((void**)(&____resCache_4), (void*)value); } inline static int32_t get_offset_of__defaultReader_5() { return static_cast<int32_t>(offsetof(RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A, ____defaultReader_5)); } inline ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492 * get__defaultReader_5() const { return ____defaultReader_5; } inline ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492 ** get_address_of__defaultReader_5() { return &____defaultReader_5; } inline void set__defaultReader_5(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492 * value) { ____defaultReader_5 = value; Il2CppCodeGenWriteBarrier((void**)(&____defaultReader_5), (void*)value); } inline static int32_t get_offset_of__caseInsensitiveTable_6() { return static_cast<int32_t>(offsetof(RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A, ____caseInsensitiveTable_6)); } inline Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA * get__caseInsensitiveTable_6() const { return ____caseInsensitiveTable_6; } inline Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA ** get_address_of__caseInsensitiveTable_6() { return &____caseInsensitiveTable_6; } inline void set__caseInsensitiveTable_6(Dictionary_2_t46A02F90A8D65228E634FEFFC9BE32C560592BBA * value) { ____caseInsensitiveTable_6 = value; Il2CppCodeGenWriteBarrier((void**)(&____caseInsensitiveTable_6), (void*)value); } inline static int32_t get_offset_of__haveReadFromReader_7() { return static_cast<int32_t>(offsetof(RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A, ____haveReadFromReader_7)); } inline bool get__haveReadFromReader_7() const { return ____haveReadFromReader_7; } inline bool* get_address_of__haveReadFromReader_7() { return &____haveReadFromReader_7; } inline void set__haveReadFromReader_7(bool value) { ____haveReadFromReader_7 = value; } }; // System.Security.Cryptography.SHA1 struct SHA1_t15B592B9935E19EC3FD5679B969239AC572E2C0E : public HashAlgorithm_t7F831BEF35F9D0AF5016FFB0E474AF9F93908F31 { public: public: }; // System.Single struct Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E { 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_tE07797BA3C98D4CA9B5A19413C19A76688AB899E, ___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; } }; // Windows.Foundation.Size struct Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 { public: // System.Single Windows.Foundation.Size::_width float ____width_0; // System.Single Windows.Foundation.Size::_height float ____height_1; public: inline static int32_t get_offset_of__width_0() { return static_cast<int32_t>(offsetof(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92, ____width_0)); } inline float get__width_0() const { return ____width_0; } inline float* get_address_of__width_0() { return &____width_0; } inline void set__width_0(float value) { ____width_0 = value; } inline static int32_t get_offset_of__height_1() { return static_cast<int32_t>(offsetof(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92, ____height_1)); } inline float get__height_1() const { return ____height_1; } inline float* get_address_of__height_1() { return &____height_1; } inline void set__height_1(float value) { ____height_1 = value; } }; // Windows.Foundation.Size struct Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5 { public: // System.Single Windows.Foundation.Size::Width float ___Width_0; // System.Single Windows.Foundation.Size::Height float ___Height_1; public: inline static int32_t get_offset_of_Width_0() { return static_cast<int32_t>(offsetof(Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5, ___Width_0)); } inline float get_Width_0() const { return ___Width_0; } inline float* get_address_of_Width_0() { return &___Width_0; } inline void set_Width_0(float value) { ___Width_0 = value; } inline static int32_t get_offset_of_Height_1() { return static_cast<int32_t>(offsetof(Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5, ___Height_1)); } inline float get_Height_1() const { return ___Height_1; } inline float* get_address_of_Height_1() { return &___Height_1; } inline void set_Height_1(float value) { ___Height_1 = value; } }; // System.IO.Stream struct Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB : public MarshalByRefObject_tD4DF91B488B284F899417EC468D8E50E933306A8 { public: // System.IO.Stream/ReadWriteTask System.IO.Stream::_activeReadWriteTask ReadWriteTask_t32CD2C230786712954C1DB518DBE420A1F4C7974 * ____activeReadWriteTask_2; // System.Threading.SemaphoreSlim System.IO.Stream::_asyncActiveSemaphore SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385 * ____asyncActiveSemaphore_3; public: inline static int32_t get_offset_of__activeReadWriteTask_2() { return static_cast<int32_t>(offsetof(Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB, ____activeReadWriteTask_2)); } inline ReadWriteTask_t32CD2C230786712954C1DB518DBE420A1F4C7974 * get__activeReadWriteTask_2() const { return ____activeReadWriteTask_2; } inline ReadWriteTask_t32CD2C230786712954C1DB518DBE420A1F4C7974 ** get_address_of__activeReadWriteTask_2() { return &____activeReadWriteTask_2; } inline void set__activeReadWriteTask_2(ReadWriteTask_t32CD2C230786712954C1DB518DBE420A1F4C7974 * value) { ____activeReadWriteTask_2 = value; Il2CppCodeGenWriteBarrier((void**)(&____activeReadWriteTask_2), (void*)value); } inline static int32_t get_offset_of__asyncActiveSemaphore_3() { return static_cast<int32_t>(offsetof(Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB, ____asyncActiveSemaphore_3)); } inline SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385 * get__asyncActiveSemaphore_3() const { return ____asyncActiveSemaphore_3; } inline SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385 ** get_address_of__asyncActiveSemaphore_3() { return &____asyncActiveSemaphore_3; } inline void set__asyncActiveSemaphore_3(SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385 * value) { ____asyncActiveSemaphore_3 = value; Il2CppCodeGenWriteBarrier((void**)(&____asyncActiveSemaphore_3), (void*)value); } }; struct Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB_StaticFields { public: // System.IO.Stream System.IO.Stream::Null Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB * ___Null_1; public: inline static int32_t get_offset_of_Null_1() { return static_cast<int32_t>(offsetof(Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB_StaticFields, ___Null_1)); } inline Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB * get_Null_1() const { return ___Null_1; } inline Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB ** get_address_of_Null_1() { return &___Null_1; } inline void set_Null_1(Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB * value) { ___Null_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___Null_1), (void*)value); } }; // System.IO.TextReader struct TextReader_t25B06DCA1906FEAD02150DB14313EBEA4CD78D2F : public MarshalByRefObject_tD4DF91B488B284F899417EC468D8E50E933306A8 { public: public: }; struct TextReader_t25B06DCA1906FEAD02150DB14313EBEA4CD78D2F_StaticFields { public: // System.Func`2<System.Object,System.String> System.IO.TextReader::_ReadLineDelegate Func_2_t060A650AB95DEF14D4F579FA5999ACEFEEE0FD82 * ____ReadLineDelegate_1; // System.Func`2<System.Object,System.Int32> System.IO.TextReader::_ReadDelegate Func_2_t0CEE9D1C856153BA9C23BB9D7E929D577AF37A2C * ____ReadDelegate_2; // System.IO.TextReader System.IO.TextReader::Null TextReader_t25B06DCA1906FEAD02150DB14313EBEA4CD78D2F * ___Null_3; public: inline static int32_t get_offset_of__ReadLineDelegate_1() { return static_cast<int32_t>(offsetof(TextReader_t25B06DCA1906FEAD02150DB14313EBEA4CD78D2F_StaticFields, ____ReadLineDelegate_1)); } inline Func_2_t060A650AB95DEF14D4F579FA5999ACEFEEE0FD82 * get__ReadLineDelegate_1() const { return ____ReadLineDelegate_1; } inline Func_2_t060A650AB95DEF14D4F579FA5999ACEFEEE0FD82 ** get_address_of__ReadLineDelegate_1() { return &____ReadLineDelegate_1; } inline void set__ReadLineDelegate_1(Func_2_t060A650AB95DEF14D4F579FA5999ACEFEEE0FD82 * value) { ____ReadLineDelegate_1 = value; Il2CppCodeGenWriteBarrier((void**)(&____ReadLineDelegate_1), (void*)value); } inline static int32_t get_offset_of__ReadDelegate_2() { return static_cast<int32_t>(offsetof(TextReader_t25B06DCA1906FEAD02150DB14313EBEA4CD78D2F_StaticFields, ____ReadDelegate_2)); } inline Func_2_t0CEE9D1C856153BA9C23BB9D7E929D577AF37A2C * get__ReadDelegate_2() const { return ____ReadDelegate_2; } inline Func_2_t0CEE9D1C856153BA9C23BB9D7E929D577AF37A2C ** get_address_of__ReadDelegate_2() { return &____ReadDelegate_2; } inline void set__ReadDelegate_2(Func_2_t0CEE9D1C856153BA9C23BB9D7E929D577AF37A2C * value) { ____ReadDelegate_2 = value; Il2CppCodeGenWriteBarrier((void**)(&____ReadDelegate_2), (void*)value); } inline static int32_t get_offset_of_Null_3() { return static_cast<int32_t>(offsetof(TextReader_t25B06DCA1906FEAD02150DB14313EBEA4CD78D2F_StaticFields, ___Null_3)); } inline TextReader_t25B06DCA1906FEAD02150DB14313EBEA4CD78D2F * get_Null_3() const { return ___Null_3; } inline TextReader_t25B06DCA1906FEAD02150DB14313EBEA4CD78D2F ** get_address_of_Null_3() { return &___Null_3; } inline void set_Null_3(TextReader_t25B06DCA1906FEAD02150DB14313EBEA4CD78D2F * value) { ___Null_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___Null_3), (void*)value); } }; // UnityEngine.Vector3 struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E { 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_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___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_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___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_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___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_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields { public: // UnityEngine.Vector3 UnityEngine.Vector3::zeroVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___zeroVector_5; // UnityEngine.Vector3 UnityEngine.Vector3::oneVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___oneVector_6; // UnityEngine.Vector3 UnityEngine.Vector3::upVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___upVector_7; // UnityEngine.Vector3 UnityEngine.Vector3::downVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___downVector_8; // UnityEngine.Vector3 UnityEngine.Vector3::leftVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___leftVector_9; // UnityEngine.Vector3 UnityEngine.Vector3::rightVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___rightVector_10; // UnityEngine.Vector3 UnityEngine.Vector3::forwardVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___forwardVector_11; // UnityEngine.Vector3 UnityEngine.Vector3::backVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___backVector_12; // UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___positiveInfinityVector_13; // UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___negativeInfinityVector_14; public: inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___zeroVector_5)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_zeroVector_5() const { return ___zeroVector_5; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_zeroVector_5() { return &___zeroVector_5; } inline void set_zeroVector_5(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___zeroVector_5 = value; } inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___oneVector_6)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_oneVector_6() const { return ___oneVector_6; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_oneVector_6() { return &___oneVector_6; } inline void set_oneVector_6(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___oneVector_6 = value; } inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___upVector_7)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_upVector_7() const { return ___upVector_7; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_upVector_7() { return &___upVector_7; } inline void set_upVector_7(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___upVector_7 = value; } inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___downVector_8)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_downVector_8() const { return ___downVector_8; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_downVector_8() { return &___downVector_8; } inline void set_downVector_8(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___downVector_8 = value; } inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___leftVector_9)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_leftVector_9() const { return ___leftVector_9; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_leftVector_9() { return &___leftVector_9; } inline void set_leftVector_9(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___leftVector_9 = value; } inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___rightVector_10)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_rightVector_10() const { return ___rightVector_10; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_rightVector_10() { return &___rightVector_10; } inline void set_rightVector_10(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___rightVector_10 = value; } inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___forwardVector_11)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_forwardVector_11() const { return ___forwardVector_11; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_forwardVector_11() { return &___forwardVector_11; } inline void set_forwardVector_11(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___forwardVector_11 = value; } inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___backVector_12)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_backVector_12() const { return ___backVector_12; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_backVector_12() { return &___backVector_12; } inline void set_backVector_12(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___backVector_12 = value; } inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___positiveInfinityVector_13)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; } inline void set_positiveInfinityVector_13(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___positiveInfinityVector_13 = value; } inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___negativeInfinityVector_14)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; } inline void set_negativeInfinityVector_14(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___negativeInfinityVector_14 = value; } }; // Windows.Foundation.IReference`1<Windows.Foundation.Point> struct NOVTABLE IReference_1_t7F259CA808F8CA00C0A7F31D57D93E94ABE7FD38 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m6BBE84644D81C739672BB5FE7BD65AD8AD6C044B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) = 0; }; // Windows.Foundation.IReference`1<Windows.Foundation.Point> struct NOVTABLE IReference_1_t22FB8AE92DF2358ED21FB1C7C5B2FFCAEB97C590 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m0FC3B384D7E37F93935DFB33EA2D44E3FC3E8F49(Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB * comReturnValue) = 0; }; // Windows.Foundation.IReference`1<System.Numerics.Quaternion> struct NOVTABLE IReference_1_t33EFD59F5EFEE8E48055FF4CB9A75732C6EA2E31 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_mC9B0A6358249758D52E8655254FFC53AB4E48D2F(Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * comReturnValue) = 0; }; // Windows.Foundation.IReference`1<Windows.Foundation.Numerics.Quaternion> struct NOVTABLE IReference_1_t3A0E57B1670337C77F71EEB98E7BC1AFBB35812A : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m223D1D22BBB08115FECD12012F70419914365276(Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22 * comReturnValue) = 0; }; // Windows.Foundation.IReference`1<Windows.Foundation.Rect> struct NOVTABLE IReference_1_tBCFA9924A47B56774AFEF690310BA37E1A800808 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m64387D2D55E86DABEC832FDADDA12CBF1C7C1D5E(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) = 0; }; // Windows.Foundation.IReference`1<Windows.Foundation.Rect> struct NOVTABLE IReference_1_t6C2C9667B4A9B53CCB0776745CBB938B87C32F2E : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m96AACCD499BB14F3DBACD6CA120C283ABCE73263(Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891 * comReturnValue) = 0; }; // Windows.Foundation.IReference`1<Windows.Foundation.Size> struct NOVTABLE IReference_1_t6AF48AEDBAB54EEF81D7BE93983928A632CEA6B7 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m4E45D3537EF0FB1FFE8AF3B2DCB63DB98A3A45AA(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) = 0; }; // Windows.Foundation.IReference`1<Windows.Foundation.Size> struct NOVTABLE IReference_1_tF1450FE2A758CB62295758B955692AA1A5A3CCA9 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m3496400E5AB203A0F7596D49F46B68601F66DD77(Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5 * comReturnValue) = 0; }; // Microsoft.MixedReality.Toolkit.BaseService struct BaseService_tF2C2512816D1D0EE872AC911E3BAF7F9E5A44C16 : public RuntimeObject { public: // System.String Microsoft.MixedReality.Toolkit.BaseService::<Name>k__BackingField String_t* ___U3CNameU3Ek__BackingField_1; // System.UInt32 Microsoft.MixedReality.Toolkit.BaseService::<Priority>k__BackingField uint32_t ___U3CPriorityU3Ek__BackingField_2; // Microsoft.MixedReality.Toolkit.BaseMixedRealityProfile Microsoft.MixedReality.Toolkit.BaseService::<ConfigurationProfile>k__BackingField BaseMixedRealityProfile_tC5DBD7146B1E1D467DE81BA1EAB45133408A59E1 * ___U3CConfigurationProfileU3Ek__BackingField_3; // System.Nullable`1<System.Boolean> Microsoft.MixedReality.Toolkit.BaseService::isInitialized Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 ___isInitialized_4; // System.Nullable`1<System.Boolean> Microsoft.MixedReality.Toolkit.BaseService::isEnabled Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 ___isEnabled_5; // System.Nullable`1<System.Boolean> Microsoft.MixedReality.Toolkit.BaseService::isMarkedDestroyed Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 ___isMarkedDestroyed_6; // System.Boolean Microsoft.MixedReality.Toolkit.BaseService::disposed bool ___disposed_7; public: inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(BaseService_tF2C2512816D1D0EE872AC911E3BAF7F9E5A44C16, ___U3CNameU3Ek__BackingField_1)); } inline String_t* get_U3CNameU3Ek__BackingField_1() const { return ___U3CNameU3Ek__BackingField_1; } inline String_t** get_address_of_U3CNameU3Ek__BackingField_1() { return &___U3CNameU3Ek__BackingField_1; } inline void set_U3CNameU3Ek__BackingField_1(String_t* value) { ___U3CNameU3Ek__BackingField_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CNameU3Ek__BackingField_1), (void*)value); } inline static int32_t get_offset_of_U3CPriorityU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(BaseService_tF2C2512816D1D0EE872AC911E3BAF7F9E5A44C16, ___U3CPriorityU3Ek__BackingField_2)); } inline uint32_t get_U3CPriorityU3Ek__BackingField_2() const { return ___U3CPriorityU3Ek__BackingField_2; } inline uint32_t* get_address_of_U3CPriorityU3Ek__BackingField_2() { return &___U3CPriorityU3Ek__BackingField_2; } inline void set_U3CPriorityU3Ek__BackingField_2(uint32_t value) { ___U3CPriorityU3Ek__BackingField_2 = value; } inline static int32_t get_offset_of_U3CConfigurationProfileU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(BaseService_tF2C2512816D1D0EE872AC911E3BAF7F9E5A44C16, ___U3CConfigurationProfileU3Ek__BackingField_3)); } inline BaseMixedRealityProfile_tC5DBD7146B1E1D467DE81BA1EAB45133408A59E1 * get_U3CConfigurationProfileU3Ek__BackingField_3() const { return ___U3CConfigurationProfileU3Ek__BackingField_3; } inline BaseMixedRealityProfile_tC5DBD7146B1E1D467DE81BA1EAB45133408A59E1 ** get_address_of_U3CConfigurationProfileU3Ek__BackingField_3() { return &___U3CConfigurationProfileU3Ek__BackingField_3; } inline void set_U3CConfigurationProfileU3Ek__BackingField_3(BaseMixedRealityProfile_tC5DBD7146B1E1D467DE81BA1EAB45133408A59E1 * value) { ___U3CConfigurationProfileU3Ek__BackingField_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CConfigurationProfileU3Ek__BackingField_3), (void*)value); } inline static int32_t get_offset_of_isInitialized_4() { return static_cast<int32_t>(offsetof(BaseService_tF2C2512816D1D0EE872AC911E3BAF7F9E5A44C16, ___isInitialized_4)); } inline Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 get_isInitialized_4() const { return ___isInitialized_4; } inline Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 * get_address_of_isInitialized_4() { return &___isInitialized_4; } inline void set_isInitialized_4(Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 value) { ___isInitialized_4 = value; } inline static int32_t get_offset_of_isEnabled_5() { return static_cast<int32_t>(offsetof(BaseService_tF2C2512816D1D0EE872AC911E3BAF7F9E5A44C16, ___isEnabled_5)); } inline Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 get_isEnabled_5() const { return ___isEnabled_5; } inline Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 * get_address_of_isEnabled_5() { return &___isEnabled_5; } inline void set_isEnabled_5(Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 value) { ___isEnabled_5 = value; } inline static int32_t get_offset_of_isMarkedDestroyed_6() { return static_cast<int32_t>(offsetof(BaseService_tF2C2512816D1D0EE872AC911E3BAF7F9E5A44C16, ___isMarkedDestroyed_6)); } inline Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 get_isMarkedDestroyed_6() const { return ___isMarkedDestroyed_6; } inline Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 * get_address_of_isMarkedDestroyed_6() { return &___isMarkedDestroyed_6; } inline void set_isMarkedDestroyed_6(Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 value) { ___isMarkedDestroyed_6 = value; } inline static int32_t get_offset_of_disposed_7() { return static_cast<int32_t>(offsetof(BaseService_tF2C2512816D1D0EE872AC911E3BAF7F9E5A44C16, ___disposed_7)); } inline bool get_disposed_7() const { return ___disposed_7; } inline bool* get_address_of_disposed_7() { return &___disposed_7; } inline void set_disposed_7(bool value) { ___disposed_7 = value; } }; // UnityEngine.Windows.WebCam.CapturePixelFormat struct CapturePixelFormat_t862C8DB99BB8A10907BDC63453CD3DAD3E422A61 { public: // System.Int32 UnityEngine.Windows.WebCam.CapturePixelFormat::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CapturePixelFormat_t862C8DB99BB8A10907BDC63453CD3DAD3E422A61, ___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; } }; // System.IO.FileAccess struct FileAccess_t09E176678AB8520C44024354E0DB2F01D40A2F5B { public: // System.Int32 System.IO.FileAccess::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(FileAccess_t09E176678AB8520C44024354E0DB2F01D40A2F5B, ___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.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A : 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_tF2F3778131EFF286AF62B7B013A170F95A91571A, ___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_tF2F3778131EFF286AF62B7B013A170F95A91571A_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_tF2F3778131EFF286AF62B7B013A170F95A91571A_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_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_pinvoke { intptr_t ___m_CachedPtr_0; }; // Native definition for COM marshalling of UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_com { intptr_t ___m_CachedPtr_0; }; // UnityEngine.Windows.WebCam.PhotoCapture struct PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74 : public RuntimeObject { public: // System.IntPtr UnityEngine.Windows.WebCam.PhotoCapture::m_NativePtr intptr_t ___m_NativePtr_0; public: inline static int32_t get_offset_of_m_NativePtr_0() { return static_cast<int32_t>(offsetof(PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74, ___m_NativePtr_0)); } inline intptr_t get_m_NativePtr_0() const { return ___m_NativePtr_0; } inline intptr_t* get_address_of_m_NativePtr_0() { return &___m_NativePtr_0; } inline void set_m_NativePtr_0(intptr_t value) { ___m_NativePtr_0 = value; } }; struct PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74_StaticFields { public: // System.Int64 UnityEngine.Windows.WebCam.PhotoCapture::HR_SUCCESS int64_t ___HR_SUCCESS_1; public: inline static int32_t get_offset_of_HR_SUCCESS_1() { return static_cast<int32_t>(offsetof(PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74_StaticFields, ___HR_SUCCESS_1)); } inline int64_t get_HR_SUCCESS_1() const { return ___HR_SUCCESS_1; } inline int64_t* get_address_of_HR_SUCCESS_1() { return &___HR_SUCCESS_1; } inline void set_HR_SUCCESS_1(int64_t value) { ___HR_SUCCESS_1 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.Windows.WebCam.PhotoCapture struct PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74_marshaled_pinvoke { intptr_t ___m_NativePtr_0; }; // Native definition for COM marshalling of UnityEngine.Windows.WebCam.PhotoCapture struct PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74_marshaled_com { intptr_t ___m_NativePtr_0; }; // Unity.Profiling.ProfilerMarker struct ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 { public: // System.IntPtr Unity.Profiling.ProfilerMarker::m_Ptr intptr_t ___m_Ptr_0; public: inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1, ___m_Ptr_0)); } inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; } inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; } inline void set_m_Ptr_0(intptr_t value) { ___m_Ptr_0 = value; } }; // Windows.Foundation.PropertyType struct PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808 { public: // System.Int32 Windows.Foundation.PropertyType::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808, ___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; } }; // System.Security.Cryptography.RNGCryptoServiceProvider struct RNGCryptoServiceProvider_t696D1B0DFED446BE4718F7E18ABFFBB6E5A8A5A1 : public RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 { public: // System.IntPtr System.Security.Cryptography.RNGCryptoServiceProvider::_handle intptr_t ____handle_1; public: inline static int32_t get_offset_of__handle_1() { return static_cast<int32_t>(offsetof(RNGCryptoServiceProvider_t696D1B0DFED446BE4718F7E18ABFFBB6E5A8A5A1, ____handle_1)); } inline intptr_t get__handle_1() const { return ____handle_1; } inline intptr_t* get_address_of__handle_1() { return &____handle_1; } inline void set__handle_1(intptr_t value) { ____handle_1 = value; } }; struct RNGCryptoServiceProvider_t696D1B0DFED446BE4718F7E18ABFFBB6E5A8A5A1_StaticFields { public: // System.Object System.Security.Cryptography.RNGCryptoServiceProvider::_lock RuntimeObject * ____lock_0; public: inline static int32_t get_offset_of__lock_0() { return static_cast<int32_t>(offsetof(RNGCryptoServiceProvider_t696D1B0DFED446BE4718F7E18ABFFBB6E5A8A5A1_StaticFields, ____lock_0)); } inline RuntimeObject * get__lock_0() const { return ____lock_0; } inline RuntimeObject ** get_address_of__lock_0() { return &____lock_0; } inline void set__lock_0(RuntimeObject * value) { ____lock_0 = value; Il2CppCodeGenWriteBarrier((void**)(&____lock_0), (void*)value); } }; // UnityEngine.Ray struct Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 { public: // UnityEngine.Vector3 UnityEngine.Ray::m_Origin Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___m_Origin_0; // UnityEngine.Vector3 UnityEngine.Ray::m_Direction Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___m_Direction_1; public: inline static int32_t get_offset_of_m_Origin_0() { return static_cast<int32_t>(offsetof(Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6, ___m_Origin_0)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_m_Origin_0() const { return ___m_Origin_0; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_m_Origin_0() { return &___m_Origin_0; } inline void set_m_Origin_0(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___m_Origin_0 = value; } inline static int32_t get_offset_of_m_Direction_1() { return static_cast<int32_t>(offsetof(Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6, ___m_Direction_1)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_m_Direction_1() const { return ___m_Direction_1; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_m_Direction_1() { return &___m_Direction_1; } inline void set_m_Direction_1(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___m_Direction_1 = value; } }; // System.Security.Cryptography.SHA1CryptoServiceProvider struct SHA1CryptoServiceProvider_tFCC9EF75A0DCF3E1A50E64B525EA9599E5927EF7 : public SHA1_t15B592B9935E19EC3FD5679B969239AC572E2C0E { public: // System.Security.Cryptography.SHA1Internal System.Security.Cryptography.SHA1CryptoServiceProvider::sha SHA1Internal_t5D0A95A55E32BCC8976D5B91649E6C13C8334CD6 * ___sha_4; public: inline static int32_t get_offset_of_sha_4() { return static_cast<int32_t>(offsetof(SHA1CryptoServiceProvider_tFCC9EF75A0DCF3E1A50E64B525EA9599E5927EF7, ___sha_4)); } inline SHA1Internal_t5D0A95A55E32BCC8976D5B91649E6C13C8334CD6 * get_sha_4() const { return ___sha_4; } inline SHA1Internal_t5D0A95A55E32BCC8976D5B91649E6C13C8334CD6 ** get_address_of_sha_4() { return &___sha_4; } inline void set_sha_4(SHA1Internal_t5D0A95A55E32BCC8976D5B91649E6C13C8334CD6 * value) { ___sha_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___sha_4), (void*)value); } }; // Mono.SafeGPtrArrayHandle struct SafeGPtrArrayHandle_tAEC97FDEAA1FFF2E1C1475EECB98B945EF86141A { public: // Mono.RuntimeGPtrArrayHandle Mono.SafeGPtrArrayHandle::handle RuntimeGPtrArrayHandle_tFFF90E5789EADA37BC5B24EE93680549771445B7 ___handle_0; public: inline static int32_t get_offset_of_handle_0() { return static_cast<int32_t>(offsetof(SafeGPtrArrayHandle_tAEC97FDEAA1FFF2E1C1475EECB98B945EF86141A, ___handle_0)); } inline RuntimeGPtrArrayHandle_tFFF90E5789EADA37BC5B24EE93680549771445B7 get_handle_0() const { return ___handle_0; } inline RuntimeGPtrArrayHandle_tFFF90E5789EADA37BC5B24EE93680549771445B7 * get_address_of_handle_0() { return &___handle_0; } inline void set_handle_0(RuntimeGPtrArrayHandle_tFFF90E5789EADA37BC5B24EE93680549771445B7 value) { ___handle_0 = value; } }; // System.Runtime.InteropServices.SafeHandle struct SafeHandle_tC07DCA2CABF6988953342757EFB1547363E5A36B : public CriticalFinalizerObject_tA3367C832FFE7434EB3C15C7136AF25524150997 { public: // System.IntPtr System.Runtime.InteropServices.SafeHandle::handle intptr_t ___handle_0; // System.Int32 System.Runtime.InteropServices.SafeHandle::_state int32_t ____state_1; // System.Boolean System.Runtime.InteropServices.SafeHandle::_ownsHandle bool ____ownsHandle_2; // System.Boolean System.Runtime.InteropServices.SafeHandle::_fullyInitialized bool ____fullyInitialized_3; public: inline static int32_t get_offset_of_handle_0() { return static_cast<int32_t>(offsetof(SafeHandle_tC07DCA2CABF6988953342757EFB1547363E5A36B, ___handle_0)); } inline intptr_t get_handle_0() const { return ___handle_0; } inline intptr_t* get_address_of_handle_0() { return &___handle_0; } inline void set_handle_0(intptr_t value) { ___handle_0 = value; } inline static int32_t get_offset_of__state_1() { return static_cast<int32_t>(offsetof(SafeHandle_tC07DCA2CABF6988953342757EFB1547363E5A36B, ____state_1)); } inline int32_t get__state_1() const { return ____state_1; } inline int32_t* get_address_of__state_1() { return &____state_1; } inline void set__state_1(int32_t value) { ____state_1 = value; } inline static int32_t get_offset_of__ownsHandle_2() { return static_cast<int32_t>(offsetof(SafeHandle_tC07DCA2CABF6988953342757EFB1547363E5A36B, ____ownsHandle_2)); } inline bool get__ownsHandle_2() const { return ____ownsHandle_2; } inline bool* get_address_of__ownsHandle_2() { return &____ownsHandle_2; } inline void set__ownsHandle_2(bool value) { ____ownsHandle_2 = value; } inline static int32_t get_offset_of__fullyInitialized_3() { return static_cast<int32_t>(offsetof(SafeHandle_tC07DCA2CABF6988953342757EFB1547363E5A36B, ____fullyInitialized_3)); } inline bool get__fullyInitialized_3() const { return ____fullyInitialized_3; } inline bool* get_address_of__fullyInitialized_3() { return &____fullyInitialized_3; } inline void set__fullyInitialized_3(bool value) { ____fullyInitialized_3 = value; } }; // Mono.SafeStringMarshal struct SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E { public: // System.String Mono.SafeStringMarshal::str String_t* ___str_0; // System.IntPtr Mono.SafeStringMarshal::marshaled_string intptr_t ___marshaled_string_1; public: inline static int32_t get_offset_of_str_0() { return static_cast<int32_t>(offsetof(SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E, ___str_0)); } inline String_t* get_str_0() const { return ___str_0; } inline String_t** get_address_of_str_0() { return &___str_0; } inline void set_str_0(String_t* value) { ___str_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___str_0), (void*)value); } inline static int32_t get_offset_of_marshaled_string_1() { return static_cast<int32_t>(offsetof(SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E, ___marshaled_string_1)); } inline intptr_t get_marshaled_string_1() const { return ___marshaled_string_1; } inline intptr_t* get_address_of_marshaled_string_1() { return &___marshaled_string_1; } inline void set_marshaled_string_1(intptr_t value) { ___marshaled_string_1 = value; } }; // Native definition for P/Invoke marshalling of Mono.SafeStringMarshal struct SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E_marshaled_pinvoke { char* ___str_0; intptr_t ___marshaled_string_1; }; // Native definition for COM marshalling of Mono.SafeStringMarshal struct SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E_marshaled_com { Il2CppChar* ___str_0; intptr_t ___marshaled_string_1; }; // System.Threading.SemaphoreSlim struct SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385 : public RuntimeObject { public: // System.Int32 modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.SemaphoreSlim::m_currentCount int32_t ___m_currentCount_0; // System.Int32 System.Threading.SemaphoreSlim::m_maxCount int32_t ___m_maxCount_1; // System.Int32 modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.SemaphoreSlim::m_waitCount int32_t ___m_waitCount_2; // System.Object System.Threading.SemaphoreSlim::m_lockObj RuntimeObject * ___m_lockObj_3; // System.Threading.ManualResetEvent modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.SemaphoreSlim::m_waitHandle ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA * ___m_waitHandle_4; // System.Threading.SemaphoreSlim/TaskNode System.Threading.SemaphoreSlim::m_asyncHead TaskNode_tD3014A57510D018F890E6524AC62F9417E2E6C4E * ___m_asyncHead_5; // System.Threading.SemaphoreSlim/TaskNode System.Threading.SemaphoreSlim::m_asyncTail TaskNode_tD3014A57510D018F890E6524AC62F9417E2E6C4E * ___m_asyncTail_6; public: inline static int32_t get_offset_of_m_currentCount_0() { return static_cast<int32_t>(offsetof(SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385, ___m_currentCount_0)); } inline int32_t get_m_currentCount_0() const { return ___m_currentCount_0; } inline int32_t* get_address_of_m_currentCount_0() { return &___m_currentCount_0; } inline void set_m_currentCount_0(int32_t value) { ___m_currentCount_0 = value; } inline static int32_t get_offset_of_m_maxCount_1() { return static_cast<int32_t>(offsetof(SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385, ___m_maxCount_1)); } inline int32_t get_m_maxCount_1() const { return ___m_maxCount_1; } inline int32_t* get_address_of_m_maxCount_1() { return &___m_maxCount_1; } inline void set_m_maxCount_1(int32_t value) { ___m_maxCount_1 = value; } inline static int32_t get_offset_of_m_waitCount_2() { return static_cast<int32_t>(offsetof(SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385, ___m_waitCount_2)); } inline int32_t get_m_waitCount_2() const { return ___m_waitCount_2; } inline int32_t* get_address_of_m_waitCount_2() { return &___m_waitCount_2; } inline void set_m_waitCount_2(int32_t value) { ___m_waitCount_2 = value; } inline static int32_t get_offset_of_m_lockObj_3() { return static_cast<int32_t>(offsetof(SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385, ___m_lockObj_3)); } inline RuntimeObject * get_m_lockObj_3() const { return ___m_lockObj_3; } inline RuntimeObject ** get_address_of_m_lockObj_3() { return &___m_lockObj_3; } inline void set_m_lockObj_3(RuntimeObject * value) { ___m_lockObj_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_lockObj_3), (void*)value); } inline static int32_t get_offset_of_m_waitHandle_4() { return static_cast<int32_t>(offsetof(SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385, ___m_waitHandle_4)); } inline ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA * get_m_waitHandle_4() const { return ___m_waitHandle_4; } inline ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA ** get_address_of_m_waitHandle_4() { return &___m_waitHandle_4; } inline void set_m_waitHandle_4(ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA * value) { ___m_waitHandle_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_waitHandle_4), (void*)value); } inline static int32_t get_offset_of_m_asyncHead_5() { return static_cast<int32_t>(offsetof(SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385, ___m_asyncHead_5)); } inline TaskNode_tD3014A57510D018F890E6524AC62F9417E2E6C4E * get_m_asyncHead_5() const { return ___m_asyncHead_5; } inline TaskNode_tD3014A57510D018F890E6524AC62F9417E2E6C4E ** get_address_of_m_asyncHead_5() { return &___m_asyncHead_5; } inline void set_m_asyncHead_5(TaskNode_tD3014A57510D018F890E6524AC62F9417E2E6C4E * value) { ___m_asyncHead_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_asyncHead_5), (void*)value); } inline static int32_t get_offset_of_m_asyncTail_6() { return static_cast<int32_t>(offsetof(SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385, ___m_asyncTail_6)); } inline TaskNode_tD3014A57510D018F890E6524AC62F9417E2E6C4E * get_m_asyncTail_6() const { return ___m_asyncTail_6; } inline TaskNode_tD3014A57510D018F890E6524AC62F9417E2E6C4E ** get_address_of_m_asyncTail_6() { return &___m_asyncTail_6; } inline void set_m_asyncTail_6(TaskNode_tD3014A57510D018F890E6524AC62F9417E2E6C4E * value) { ___m_asyncTail_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_asyncTail_6), (void*)value); } }; struct SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385_StaticFields { public: // System.Threading.Tasks.Task`1<System.Boolean> System.Threading.SemaphoreSlim::s_trueTask Task_1_t9C1FE9F18F52F3409B9E970FA38801A443AE7849 * ___s_trueTask_7; // System.Action`1<System.Object> System.Threading.SemaphoreSlim::s_cancellationTokenCanceledEventHandler Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC * ___s_cancellationTokenCanceledEventHandler_8; public: inline static int32_t get_offset_of_s_trueTask_7() { return static_cast<int32_t>(offsetof(SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385_StaticFields, ___s_trueTask_7)); } inline Task_1_t9C1FE9F18F52F3409B9E970FA38801A443AE7849 * get_s_trueTask_7() const { return ___s_trueTask_7; } inline Task_1_t9C1FE9F18F52F3409B9E970FA38801A443AE7849 ** get_address_of_s_trueTask_7() { return &___s_trueTask_7; } inline void set_s_trueTask_7(Task_1_t9C1FE9F18F52F3409B9E970FA38801A443AE7849 * value) { ___s_trueTask_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_trueTask_7), (void*)value); } inline static int32_t get_offset_of_s_cancellationTokenCanceledEventHandler_8() { return static_cast<int32_t>(offsetof(SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385_StaticFields, ___s_cancellationTokenCanceledEventHandler_8)); } inline Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC * get_s_cancellationTokenCanceledEventHandler_8() const { return ___s_cancellationTokenCanceledEventHandler_8; } inline Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC ** get_address_of_s_cancellationTokenCanceledEventHandler_8() { return &___s_cancellationTokenCanceledEventHandler_8; } inline void set_s_cancellationTokenCanceledEventHandler_8(Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC * value) { ___s_cancellationTokenCanceledEventHandler_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_cancellationTokenCanceledEventHandler_8), (void*)value); } }; // Windows.UI.Input.Spatial.SpatialInteractionSourceHandedness struct SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B { public: // System.Int32 Windows.UI.Input.Spatial.SpatialInteractionSourceHandedness::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B, ___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; } }; // Windows.UI.Input.Spatial.SpatialInteractionSourceKind struct SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7 { public: // System.Int32 Windows.UI.Input.Spatial.SpatialInteractionSourceKind::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7, ___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; } }; // System.IO.StreamReader struct StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3 : public TextReader_t25B06DCA1906FEAD02150DB14313EBEA4CD78D2F { public: // System.IO.Stream System.IO.StreamReader::stream Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB * ___stream_5; // System.Text.Encoding System.IO.StreamReader::encoding Encoding_tE901442411E2E70039D2A4AE77FB81C3D6064827 * ___encoding_6; // System.Text.Decoder System.IO.StreamReader::decoder Decoder_t91B2ED8AEC25AA24D23A00265203BE992B12C370 * ___decoder_7; // System.Byte[] System.IO.StreamReader::byteBuffer ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___byteBuffer_8; // System.Char[] System.IO.StreamReader::charBuffer CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___charBuffer_9; // System.Byte[] System.IO.StreamReader::_preamble ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ____preamble_10; // System.Int32 System.IO.StreamReader::charPos int32_t ___charPos_11; // System.Int32 System.IO.StreamReader::charLen int32_t ___charLen_12; // System.Int32 System.IO.StreamReader::byteLen int32_t ___byteLen_13; // System.Int32 System.IO.StreamReader::bytePos int32_t ___bytePos_14; // System.Int32 System.IO.StreamReader::_maxCharsPerBuffer int32_t ____maxCharsPerBuffer_15; // System.Boolean System.IO.StreamReader::_detectEncoding bool ____detectEncoding_16; // System.Boolean System.IO.StreamReader::_checkPreamble bool ____checkPreamble_17; // System.Boolean System.IO.StreamReader::_isBlocked bool ____isBlocked_18; // System.Boolean System.IO.StreamReader::_closable bool ____closable_19; // System.Threading.Tasks.Task modreq(System.Runtime.CompilerServices.IsVolatile) System.IO.StreamReader::_asyncReadTask Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * ____asyncReadTask_20; public: inline static int32_t get_offset_of_stream_5() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ___stream_5)); } inline Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB * get_stream_5() const { return ___stream_5; } inline Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB ** get_address_of_stream_5() { return &___stream_5; } inline void set_stream_5(Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB * value) { ___stream_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___stream_5), (void*)value); } inline static int32_t get_offset_of_encoding_6() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ___encoding_6)); } inline Encoding_tE901442411E2E70039D2A4AE77FB81C3D6064827 * get_encoding_6() const { return ___encoding_6; } inline Encoding_tE901442411E2E70039D2A4AE77FB81C3D6064827 ** get_address_of_encoding_6() { return &___encoding_6; } inline void set_encoding_6(Encoding_tE901442411E2E70039D2A4AE77FB81C3D6064827 * value) { ___encoding_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___encoding_6), (void*)value); } inline static int32_t get_offset_of_decoder_7() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ___decoder_7)); } inline Decoder_t91B2ED8AEC25AA24D23A00265203BE992B12C370 * get_decoder_7() const { return ___decoder_7; } inline Decoder_t91B2ED8AEC25AA24D23A00265203BE992B12C370 ** get_address_of_decoder_7() { return &___decoder_7; } inline void set_decoder_7(Decoder_t91B2ED8AEC25AA24D23A00265203BE992B12C370 * value) { ___decoder_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___decoder_7), (void*)value); } inline static int32_t get_offset_of_byteBuffer_8() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ___byteBuffer_8)); } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get_byteBuffer_8() const { return ___byteBuffer_8; } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of_byteBuffer_8() { return &___byteBuffer_8; } inline void set_byteBuffer_8(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value) { ___byteBuffer_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___byteBuffer_8), (void*)value); } inline static int32_t get_offset_of_charBuffer_9() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ___charBuffer_9)); } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_charBuffer_9() const { return ___charBuffer_9; } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_charBuffer_9() { return &___charBuffer_9; } inline void set_charBuffer_9(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value) { ___charBuffer_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___charBuffer_9), (void*)value); } inline static int32_t get_offset_of__preamble_10() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ____preamble_10)); } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get__preamble_10() const { return ____preamble_10; } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of__preamble_10() { return &____preamble_10; } inline void set__preamble_10(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value) { ____preamble_10 = value; Il2CppCodeGenWriteBarrier((void**)(&____preamble_10), (void*)value); } inline static int32_t get_offset_of_charPos_11() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ___charPos_11)); } inline int32_t get_charPos_11() const { return ___charPos_11; } inline int32_t* get_address_of_charPos_11() { return &___charPos_11; } inline void set_charPos_11(int32_t value) { ___charPos_11 = value; } inline static int32_t get_offset_of_charLen_12() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ___charLen_12)); } inline int32_t get_charLen_12() const { return ___charLen_12; } inline int32_t* get_address_of_charLen_12() { return &___charLen_12; } inline void set_charLen_12(int32_t value) { ___charLen_12 = value; } inline static int32_t get_offset_of_byteLen_13() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ___byteLen_13)); } inline int32_t get_byteLen_13() const { return ___byteLen_13; } inline int32_t* get_address_of_byteLen_13() { return &___byteLen_13; } inline void set_byteLen_13(int32_t value) { ___byteLen_13 = value; } inline static int32_t get_offset_of_bytePos_14() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ___bytePos_14)); } inline int32_t get_bytePos_14() const { return ___bytePos_14; } inline int32_t* get_address_of_bytePos_14() { return &___bytePos_14; } inline void set_bytePos_14(int32_t value) { ___bytePos_14 = value; } inline static int32_t get_offset_of__maxCharsPerBuffer_15() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ____maxCharsPerBuffer_15)); } inline int32_t get__maxCharsPerBuffer_15() const { return ____maxCharsPerBuffer_15; } inline int32_t* get_address_of__maxCharsPerBuffer_15() { return &____maxCharsPerBuffer_15; } inline void set__maxCharsPerBuffer_15(int32_t value) { ____maxCharsPerBuffer_15 = value; } inline static int32_t get_offset_of__detectEncoding_16() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ____detectEncoding_16)); } inline bool get__detectEncoding_16() const { return ____detectEncoding_16; } inline bool* get_address_of__detectEncoding_16() { return &____detectEncoding_16; } inline void set__detectEncoding_16(bool value) { ____detectEncoding_16 = value; } inline static int32_t get_offset_of__checkPreamble_17() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ____checkPreamble_17)); } inline bool get__checkPreamble_17() const { return ____checkPreamble_17; } inline bool* get_address_of__checkPreamble_17() { return &____checkPreamble_17; } inline void set__checkPreamble_17(bool value) { ____checkPreamble_17 = value; } inline static int32_t get_offset_of__isBlocked_18() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ____isBlocked_18)); } inline bool get__isBlocked_18() const { return ____isBlocked_18; } inline bool* get_address_of__isBlocked_18() { return &____isBlocked_18; } inline void set__isBlocked_18(bool value) { ____isBlocked_18 = value; } inline static int32_t get_offset_of__closable_19() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ____closable_19)); } inline bool get__closable_19() const { return ____closable_19; } inline bool* get_address_of__closable_19() { return &____closable_19; } inline void set__closable_19(bool value) { ____closable_19 = value; } inline static int32_t get_offset_of__asyncReadTask_20() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3, ____asyncReadTask_20)); } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * get__asyncReadTask_20() const { return ____asyncReadTask_20; } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 ** get_address_of__asyncReadTask_20() { return &____asyncReadTask_20; } inline void set__asyncReadTask_20(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * value) { ____asyncReadTask_20 = value; Il2CppCodeGenWriteBarrier((void**)(&____asyncReadTask_20), (void*)value); } }; struct StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3_StaticFields { public: // System.IO.StreamReader System.IO.StreamReader::Null StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3 * ___Null_4; public: inline static int32_t get_offset_of_Null_4() { return static_cast<int32_t>(offsetof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3_StaticFields, ___Null_4)); } inline StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3 * get_Null_4() const { return ___Null_4; } inline StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3 ** get_address_of_Null_4() { return &___Null_4; } inline void set_Null_4(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3 * value) { ___Null_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___Null_4), (void*)value); } }; // System.Threading.Tasks.Task struct Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 : public RuntimeObject { public: // System.Int32 modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.Tasks.Task::m_taskId int32_t ___m_taskId_4; // System.Object System.Threading.Tasks.Task::m_action RuntimeObject * ___m_action_5; // System.Object System.Threading.Tasks.Task::m_stateObject RuntimeObject * ___m_stateObject_6; // System.Threading.Tasks.TaskScheduler System.Threading.Tasks.Task::m_taskScheduler TaskScheduler_t74FBEEEDBDD5E0088FF0EEC18F45CD866B098D5D * ___m_taskScheduler_7; // System.Threading.Tasks.Task System.Threading.Tasks.Task::m_parent Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * ___m_parent_8; // System.Int32 modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.Tasks.Task::m_stateFlags int32_t ___m_stateFlags_9; // System.Object modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.Tasks.Task::m_continuationObject RuntimeObject * ___m_continuationObject_10; // System.Threading.Tasks.Task/ContingentProperties modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.Tasks.Task::m_contingentProperties ContingentProperties_t1E249C737B8B8644ED1D60EEFA101D326B199EA0 * ___m_contingentProperties_15; public: inline static int32_t get_offset_of_m_taskId_4() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_taskId_4)); } inline int32_t get_m_taskId_4() const { return ___m_taskId_4; } inline int32_t* get_address_of_m_taskId_4() { return &___m_taskId_4; } inline void set_m_taskId_4(int32_t value) { ___m_taskId_4 = value; } inline static int32_t get_offset_of_m_action_5() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_action_5)); } inline RuntimeObject * get_m_action_5() const { return ___m_action_5; } inline RuntimeObject ** get_address_of_m_action_5() { return &___m_action_5; } inline void set_m_action_5(RuntimeObject * value) { ___m_action_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_action_5), (void*)value); } inline static int32_t get_offset_of_m_stateObject_6() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_stateObject_6)); } inline RuntimeObject * get_m_stateObject_6() const { return ___m_stateObject_6; } inline RuntimeObject ** get_address_of_m_stateObject_6() { return &___m_stateObject_6; } inline void set_m_stateObject_6(RuntimeObject * value) { ___m_stateObject_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_stateObject_6), (void*)value); } inline static int32_t get_offset_of_m_taskScheduler_7() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_taskScheduler_7)); } inline TaskScheduler_t74FBEEEDBDD5E0088FF0EEC18F45CD866B098D5D * get_m_taskScheduler_7() const { return ___m_taskScheduler_7; } inline TaskScheduler_t74FBEEEDBDD5E0088FF0EEC18F45CD866B098D5D ** get_address_of_m_taskScheduler_7() { return &___m_taskScheduler_7; } inline void set_m_taskScheduler_7(TaskScheduler_t74FBEEEDBDD5E0088FF0EEC18F45CD866B098D5D * value) { ___m_taskScheduler_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_taskScheduler_7), (void*)value); } inline static int32_t get_offset_of_m_parent_8() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_parent_8)); } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * get_m_parent_8() const { return ___m_parent_8; } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 ** get_address_of_m_parent_8() { return &___m_parent_8; } inline void set_m_parent_8(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * value) { ___m_parent_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_parent_8), (void*)value); } inline static int32_t get_offset_of_m_stateFlags_9() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_stateFlags_9)); } inline int32_t get_m_stateFlags_9() const { return ___m_stateFlags_9; } inline int32_t* get_address_of_m_stateFlags_9() { return &___m_stateFlags_9; } inline void set_m_stateFlags_9(int32_t value) { ___m_stateFlags_9 = value; } inline static int32_t get_offset_of_m_continuationObject_10() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_continuationObject_10)); } inline RuntimeObject * get_m_continuationObject_10() const { return ___m_continuationObject_10; } inline RuntimeObject ** get_address_of_m_continuationObject_10() { return &___m_continuationObject_10; } inline void set_m_continuationObject_10(RuntimeObject * value) { ___m_continuationObject_10 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_continuationObject_10), (void*)value); } inline static int32_t get_offset_of_m_contingentProperties_15() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_contingentProperties_15)); } inline ContingentProperties_t1E249C737B8B8644ED1D60EEFA101D326B199EA0 * get_m_contingentProperties_15() const { return ___m_contingentProperties_15; } inline ContingentProperties_t1E249C737B8B8644ED1D60EEFA101D326B199EA0 ** get_address_of_m_contingentProperties_15() { return &___m_contingentProperties_15; } inline void set_m_contingentProperties_15(ContingentProperties_t1E249C737B8B8644ED1D60EEFA101D326B199EA0 * value) { ___m_contingentProperties_15 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_contingentProperties_15), (void*)value); } }; struct Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields { public: // System.Int32 System.Threading.Tasks.Task::s_taskIdCounter int32_t ___s_taskIdCounter_2; // System.Threading.Tasks.TaskFactory System.Threading.Tasks.Task::s_factory TaskFactory_t22D999A05A967C31A4B5FFBD08864809BF35EA3B * ___s_factory_3; // System.Object System.Threading.Tasks.Task::s_taskCompletionSentinel RuntimeObject * ___s_taskCompletionSentinel_11; // System.Boolean System.Threading.Tasks.Task::s_asyncDebuggingEnabled bool ___s_asyncDebuggingEnabled_12; // System.Collections.Generic.Dictionary`2<System.Int32,System.Threading.Tasks.Task> System.Threading.Tasks.Task::s_currentActiveTasks Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 * ___s_currentActiveTasks_13; // System.Object System.Threading.Tasks.Task::s_activeTasksLock RuntimeObject * ___s_activeTasksLock_14; // System.Action`1<System.Object> System.Threading.Tasks.Task::s_taskCancelCallback Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC * ___s_taskCancelCallback_16; // System.Func`1<System.Threading.Tasks.Task/ContingentProperties> System.Threading.Tasks.Task::s_createContingentProperties Func_1_tBCF42601FA307876E83080BE4204110820F8BF3B * ___s_createContingentProperties_17; // System.Threading.Tasks.Task System.Threading.Tasks.Task::s_completedTask Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * ___s_completedTask_18; // System.Predicate`1<System.Threading.Tasks.Task> System.Threading.Tasks.Task::s_IsExceptionObservedByParentPredicate Predicate_1_tC0DBBC8498BD1EE6ABFFAA5628024105FA7D11BD * ___s_IsExceptionObservedByParentPredicate_19; // System.Threading.ContextCallback System.Threading.Tasks.Task::s_ecCallback ContextCallback_t93707E0430F4FF3E15E1FB5A4844BE89C657AE8B * ___s_ecCallback_20; // System.Predicate`1<System.Object> System.Threading.Tasks.Task::s_IsTaskContinuationNullPredicate Predicate_1_t5C96B81B31A697B11C4C3767E3298773AF25DFEB * ___s_IsTaskContinuationNullPredicate_21; public: inline static int32_t get_offset_of_s_taskIdCounter_2() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_taskIdCounter_2)); } inline int32_t get_s_taskIdCounter_2() const { return ___s_taskIdCounter_2; } inline int32_t* get_address_of_s_taskIdCounter_2() { return &___s_taskIdCounter_2; } inline void set_s_taskIdCounter_2(int32_t value) { ___s_taskIdCounter_2 = value; } inline static int32_t get_offset_of_s_factory_3() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_factory_3)); } inline TaskFactory_t22D999A05A967C31A4B5FFBD08864809BF35EA3B * get_s_factory_3() const { return ___s_factory_3; } inline TaskFactory_t22D999A05A967C31A4B5FFBD08864809BF35EA3B ** get_address_of_s_factory_3() { return &___s_factory_3; } inline void set_s_factory_3(TaskFactory_t22D999A05A967C31A4B5FFBD08864809BF35EA3B * value) { ___s_factory_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_factory_3), (void*)value); } inline static int32_t get_offset_of_s_taskCompletionSentinel_11() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_taskCompletionSentinel_11)); } inline RuntimeObject * get_s_taskCompletionSentinel_11() const { return ___s_taskCompletionSentinel_11; } inline RuntimeObject ** get_address_of_s_taskCompletionSentinel_11() { return &___s_taskCompletionSentinel_11; } inline void set_s_taskCompletionSentinel_11(RuntimeObject * value) { ___s_taskCompletionSentinel_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_taskCompletionSentinel_11), (void*)value); } inline static int32_t get_offset_of_s_asyncDebuggingEnabled_12() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_asyncDebuggingEnabled_12)); } inline bool get_s_asyncDebuggingEnabled_12() const { return ___s_asyncDebuggingEnabled_12; } inline bool* get_address_of_s_asyncDebuggingEnabled_12() { return &___s_asyncDebuggingEnabled_12; } inline void set_s_asyncDebuggingEnabled_12(bool value) { ___s_asyncDebuggingEnabled_12 = value; } inline static int32_t get_offset_of_s_currentActiveTasks_13() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_currentActiveTasks_13)); } inline Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 * get_s_currentActiveTasks_13() const { return ___s_currentActiveTasks_13; } inline Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 ** get_address_of_s_currentActiveTasks_13() { return &___s_currentActiveTasks_13; } inline void set_s_currentActiveTasks_13(Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 * value) { ___s_currentActiveTasks_13 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_currentActiveTasks_13), (void*)value); } inline static int32_t get_offset_of_s_activeTasksLock_14() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_activeTasksLock_14)); } inline RuntimeObject * get_s_activeTasksLock_14() const { return ___s_activeTasksLock_14; } inline RuntimeObject ** get_address_of_s_activeTasksLock_14() { return &___s_activeTasksLock_14; } inline void set_s_activeTasksLock_14(RuntimeObject * value) { ___s_activeTasksLock_14 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_activeTasksLock_14), (void*)value); } inline static int32_t get_offset_of_s_taskCancelCallback_16() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_taskCancelCallback_16)); } inline Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC * get_s_taskCancelCallback_16() const { return ___s_taskCancelCallback_16; } inline Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC ** get_address_of_s_taskCancelCallback_16() { return &___s_taskCancelCallback_16; } inline void set_s_taskCancelCallback_16(Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC * value) { ___s_taskCancelCallback_16 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_taskCancelCallback_16), (void*)value); } inline static int32_t get_offset_of_s_createContingentProperties_17() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_createContingentProperties_17)); } inline Func_1_tBCF42601FA307876E83080BE4204110820F8BF3B * get_s_createContingentProperties_17() const { return ___s_createContingentProperties_17; } inline Func_1_tBCF42601FA307876E83080BE4204110820F8BF3B ** get_address_of_s_createContingentProperties_17() { return &___s_createContingentProperties_17; } inline void set_s_createContingentProperties_17(Func_1_tBCF42601FA307876E83080BE4204110820F8BF3B * value) { ___s_createContingentProperties_17 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_createContingentProperties_17), (void*)value); } inline static int32_t get_offset_of_s_completedTask_18() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_completedTask_18)); } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * get_s_completedTask_18() const { return ___s_completedTask_18; } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 ** get_address_of_s_completedTask_18() { return &___s_completedTask_18; } inline void set_s_completedTask_18(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * value) { ___s_completedTask_18 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_completedTask_18), (void*)value); } inline static int32_t get_offset_of_s_IsExceptionObservedByParentPredicate_19() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_IsExceptionObservedByParentPredicate_19)); } inline Predicate_1_tC0DBBC8498BD1EE6ABFFAA5628024105FA7D11BD * get_s_IsExceptionObservedByParentPredicate_19() const { return ___s_IsExceptionObservedByParentPredicate_19; } inline Predicate_1_tC0DBBC8498BD1EE6ABFFAA5628024105FA7D11BD ** get_address_of_s_IsExceptionObservedByParentPredicate_19() { return &___s_IsExceptionObservedByParentPredicate_19; } inline void set_s_IsExceptionObservedByParentPredicate_19(Predicate_1_tC0DBBC8498BD1EE6ABFFAA5628024105FA7D11BD * value) { ___s_IsExceptionObservedByParentPredicate_19 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_IsExceptionObservedByParentPredicate_19), (void*)value); } inline static int32_t get_offset_of_s_ecCallback_20() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_ecCallback_20)); } inline ContextCallback_t93707E0430F4FF3E15E1FB5A4844BE89C657AE8B * get_s_ecCallback_20() const { return ___s_ecCallback_20; } inline ContextCallback_t93707E0430F4FF3E15E1FB5A4844BE89C657AE8B ** get_address_of_s_ecCallback_20() { return &___s_ecCallback_20; } inline void set_s_ecCallback_20(ContextCallback_t93707E0430F4FF3E15E1FB5A4844BE89C657AE8B * value) { ___s_ecCallback_20 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_ecCallback_20), (void*)value); } inline static int32_t get_offset_of_s_IsTaskContinuationNullPredicate_21() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_IsTaskContinuationNullPredicate_21)); } inline Predicate_1_t5C96B81B31A697B11C4C3767E3298773AF25DFEB * get_s_IsTaskContinuationNullPredicate_21() const { return ___s_IsTaskContinuationNullPredicate_21; } inline Predicate_1_t5C96B81B31A697B11C4C3767E3298773AF25DFEB ** get_address_of_s_IsTaskContinuationNullPredicate_21() { return &___s_IsTaskContinuationNullPredicate_21; } inline void set_s_IsTaskContinuationNullPredicate_21(Predicate_1_t5C96B81B31A697B11C4C3767E3298773AF25DFEB * value) { ___s_IsTaskContinuationNullPredicate_21 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_IsTaskContinuationNullPredicate_21), (void*)value); } }; struct Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_ThreadStaticFields { public: // System.Threading.Tasks.Task System.Threading.Tasks.Task::t_currentTask Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * ___t_currentTask_0; // System.Threading.Tasks.StackGuard System.Threading.Tasks.Task::t_stackGuard StackGuard_t88E1EE4741AD02CA5FEA04A4EB2CC70F230E0E6D * ___t_stackGuard_1; public: inline static int32_t get_offset_of_t_currentTask_0() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_ThreadStaticFields, ___t_currentTask_0)); } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * get_t_currentTask_0() const { return ___t_currentTask_0; } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 ** get_address_of_t_currentTask_0() { return &___t_currentTask_0; } inline void set_t_currentTask_0(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * value) { ___t_currentTask_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___t_currentTask_0), (void*)value); } inline static int32_t get_offset_of_t_stackGuard_1() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_ThreadStaticFields, ___t_stackGuard_1)); } inline StackGuard_t88E1EE4741AD02CA5FEA04A4EB2CC70F230E0E6D * get_t_stackGuard_1() const { return ___t_stackGuard_1; } inline StackGuard_t88E1EE4741AD02CA5FEA04A4EB2CC70F230E0E6D ** get_address_of_t_stackGuard_1() { return &___t_stackGuard_1; } inline void set_t_stackGuard_1(StackGuard_t88E1EE4741AD02CA5FEA04A4EB2CC70F230E0E6D * value) { ___t_stackGuard_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___t_stackGuard_1), (void*)value); } }; // System.TimeSpan struct TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 { public: // System.Int64 System.TimeSpan::_ticks int64_t ____ticks_3; public: inline static int32_t get_offset_of__ticks_3() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203, ____ticks_3)); } inline int64_t get__ticks_3() const { return ____ticks_3; } inline int64_t* get_address_of__ticks_3() { return &____ticks_3; } inline void set__ticks_3(int64_t value) { ____ticks_3 = value; } }; struct TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields { public: // System.TimeSpan System.TimeSpan::Zero TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___Zero_0; // System.TimeSpan System.TimeSpan::MaxValue TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___MaxValue_1; // System.TimeSpan System.TimeSpan::MinValue TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___MinValue_2; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.TimeSpan::_legacyConfigChecked bool ____legacyConfigChecked_4; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.TimeSpan::_legacyMode bool ____legacyMode_5; public: inline static int32_t get_offset_of_Zero_0() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ___Zero_0)); } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 get_Zero_0() const { return ___Zero_0; } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * get_address_of_Zero_0() { return &___Zero_0; } inline void set_Zero_0(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 value) { ___Zero_0 = value; } inline static int32_t get_offset_of_MaxValue_1() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ___MaxValue_1)); } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 get_MaxValue_1() const { return ___MaxValue_1; } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * get_address_of_MaxValue_1() { return &___MaxValue_1; } inline void set_MaxValue_1(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 value) { ___MaxValue_1 = value; } inline static int32_t get_offset_of_MinValue_2() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ___MinValue_2)); } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 get_MinValue_2() const { return ___MinValue_2; } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * get_address_of_MinValue_2() { return &___MinValue_2; } inline void set_MinValue_2(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 value) { ___MinValue_2 = value; } inline static int32_t get_offset_of__legacyConfigChecked_4() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ____legacyConfigChecked_4)); } inline bool get__legacyConfigChecked_4() const { return ____legacyConfigChecked_4; } inline bool* get_address_of__legacyConfigChecked_4() { return &____legacyConfigChecked_4; } inline void set__legacyConfigChecked_4(bool value) { ____legacyConfigChecked_4 = value; } inline static int32_t get_offset_of__legacyMode_5() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ____legacyMode_5)); } inline bool get__legacyMode_5() const { return ____legacyMode_5; } inline bool* get_address_of__legacyMode_5() { return &____legacyMode_5; } inline void set__legacyMode_5(bool value) { ____legacyMode_5 = value; } }; // System.Threading.WaitHandle struct WaitHandle_t1D7DD8480FD5DA4E3AF92F569890FB972D9B1842 : public MarshalByRefObject_tD4DF91B488B284F899417EC468D8E50E933306A8 { public: // System.IntPtr System.Threading.WaitHandle::waitHandle intptr_t ___waitHandle_3; // Microsoft.Win32.SafeHandles.SafeWaitHandle modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.WaitHandle::safeWaitHandle SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1 * ___safeWaitHandle_4; // System.Boolean System.Threading.WaitHandle::hasThreadAffinity bool ___hasThreadAffinity_5; public: inline static int32_t get_offset_of_waitHandle_3() { return static_cast<int32_t>(offsetof(WaitHandle_t1D7DD8480FD5DA4E3AF92F569890FB972D9B1842, ___waitHandle_3)); } inline intptr_t get_waitHandle_3() const { return ___waitHandle_3; } inline intptr_t* get_address_of_waitHandle_3() { return &___waitHandle_3; } inline void set_waitHandle_3(intptr_t value) { ___waitHandle_3 = value; } inline static int32_t get_offset_of_safeWaitHandle_4() { return static_cast<int32_t>(offsetof(WaitHandle_t1D7DD8480FD5DA4E3AF92F569890FB972D9B1842, ___safeWaitHandle_4)); } inline SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1 * get_safeWaitHandle_4() const { return ___safeWaitHandle_4; } inline SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1 ** get_address_of_safeWaitHandle_4() { return &___safeWaitHandle_4; } inline void set_safeWaitHandle_4(SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1 * value) { ___safeWaitHandle_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___safeWaitHandle_4), (void*)value); } inline static int32_t get_offset_of_hasThreadAffinity_5() { return static_cast<int32_t>(offsetof(WaitHandle_t1D7DD8480FD5DA4E3AF92F569890FB972D9B1842, ___hasThreadAffinity_5)); } inline bool get_hasThreadAffinity_5() const { return ___hasThreadAffinity_5; } inline bool* get_address_of_hasThreadAffinity_5() { return &___hasThreadAffinity_5; } inline void set_hasThreadAffinity_5(bool value) { ___hasThreadAffinity_5 = value; } }; struct WaitHandle_t1D7DD8480FD5DA4E3AF92F569890FB972D9B1842_StaticFields { public: // System.IntPtr System.Threading.WaitHandle::InvalidHandle intptr_t ___InvalidHandle_10; public: inline static int32_t get_offset_of_InvalidHandle_10() { return static_cast<int32_t>(offsetof(WaitHandle_t1D7DD8480FD5DA4E3AF92F569890FB972D9B1842_StaticFields, ___InvalidHandle_10)); } inline intptr_t get_InvalidHandle_10() const { return ___InvalidHandle_10; } inline intptr_t* get_address_of_InvalidHandle_10() { return &___InvalidHandle_10; } inline void set_InvalidHandle_10(intptr_t value) { ___InvalidHandle_10 = value; } }; // Native definition for P/Invoke marshalling of System.Threading.WaitHandle struct WaitHandle_t1D7DD8480FD5DA4E3AF92F569890FB972D9B1842_marshaled_pinvoke : public MarshalByRefObject_tD4DF91B488B284F899417EC468D8E50E933306A8_marshaled_pinvoke { intptr_t ___waitHandle_3; void* ___safeWaitHandle_4; int32_t ___hasThreadAffinity_5; }; // Native definition for COM marshalling of System.Threading.WaitHandle struct WaitHandle_t1D7DD8480FD5DA4E3AF92F569890FB972D9B1842_marshaled_com : public MarshalByRefObject_tD4DF91B488B284F899417EC468D8E50E933306A8_marshaled_com { intptr_t ___waitHandle_3; void* ___safeWaitHandle_4; int32_t ___hasThreadAffinity_5; }; // Microsoft.MixedReality.Toolkit.BaseDataProvider`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSystem> struct BaseDataProvider_1_t3589CFF3526B1A6A8BD790F9940DB1CA28C43A02 : public BaseService_tF2C2512816D1D0EE872AC911E3BAF7F9E5A44C16 { public: // Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar Microsoft.MixedReality.Toolkit.BaseDataProvider`1::<Registrar>k__BackingField RuntimeObject* ___U3CRegistrarU3Ek__BackingField_8; // T Microsoft.MixedReality.Toolkit.BaseDataProvider`1::<Service>k__BackingField RuntimeObject* ___U3CServiceU3Ek__BackingField_9; public: inline static int32_t get_offset_of_U3CRegistrarU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(BaseDataProvider_1_t3589CFF3526B1A6A8BD790F9940DB1CA28C43A02, ___U3CRegistrarU3Ek__BackingField_8)); } inline RuntimeObject* get_U3CRegistrarU3Ek__BackingField_8() const { return ___U3CRegistrarU3Ek__BackingField_8; } inline RuntimeObject** get_address_of_U3CRegistrarU3Ek__BackingField_8() { return &___U3CRegistrarU3Ek__BackingField_8; } inline void set_U3CRegistrarU3Ek__BackingField_8(RuntimeObject* value) { ___U3CRegistrarU3Ek__BackingField_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CRegistrarU3Ek__BackingField_8), (void*)value); } inline static int32_t get_offset_of_U3CServiceU3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(BaseDataProvider_1_t3589CFF3526B1A6A8BD790F9940DB1CA28C43A02, ___U3CServiceU3Ek__BackingField_9)); } inline RuntimeObject* get_U3CServiceU3Ek__BackingField_9() const { return ___U3CServiceU3Ek__BackingField_9; } inline RuntimeObject** get_address_of_U3CServiceU3Ek__BackingField_9() { return &___U3CServiceU3Ek__BackingField_9; } inline void set_U3CServiceU3Ek__BackingField_9(RuntimeObject* value) { ___U3CServiceU3Ek__BackingField_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CServiceU3Ek__BackingField_9), (void*)value); } }; // Windows.Foundation.IReference`1<Windows.Foundation.PropertyType> struct NOVTABLE IReference_1_tA4E67817B79498EFBA69D3B855B0D877416F6A8B : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_mAFDC3A521A2D5078E107CAAA4F124AFC2D25F526(int32_t* comReturnValue) = 0; }; // Windows.Foundation.IReference`1<Windows.UI.Input.Spatial.SpatialInteractionSourceHandedness> struct NOVTABLE IReference_1_t0976D6A3C4B3A2296DE9EC238663EBCA4B18240B : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m31DA5B4095EA7D9AC3547820AEF5AC55A293E816(int32_t* comReturnValue) = 0; }; // Windows.Foundation.IReference`1<Windows.UI.Input.Spatial.SpatialInteractionSourceKind> struct NOVTABLE IReference_1_tFBF6EDC09F056C59D8EEFE81E5EA39206D2AF70C : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m5388021AB708A278C93226BC20DDA41AD0DF74EC(int32_t* comReturnValue) = 0; }; // System.Nullable`1<UnityEngine.Ray> struct Nullable_1_tCE70D5232DA58B57AD93CA774181BD1FAA49A963 { public: // T System.Nullable`1::value Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 ___value_0; // System.Boolean System.Nullable`1::has_value bool ___has_value_1; public: inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(Nullable_1_tCE70D5232DA58B57AD93CA774181BD1FAA49A963, ___value_0)); } inline Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 get_value_0() const { return ___value_0; } inline Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 * get_address_of_value_0() { return &___value_0; } inline void set_value_0(Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 value) { ___value_0 = value; } inline static int32_t get_offset_of_has_value_1() { return static_cast<int32_t>(offsetof(Nullable_1_tCE70D5232DA58B57AD93CA774181BD1FAA49A963, ___has_value_1)); } inline bool get_has_value_1() const { return ___has_value_1; } inline bool* get_address_of_has_value_1() { return &___has_value_1; } inline void set_has_value_1(bool value) { ___has_value_1 = value; } }; // Microsoft.MixedReality.Toolkit.BaseEventSystem struct BaseEventSystem_t3D8C69A25D5A24E2D5A9D4AA786DA498318ACBCC : public BaseService_tF2C2512816D1D0EE872AC911E3BAF7F9E5A44C16 { public: // System.Int32 Microsoft.MixedReality.Toolkit.BaseEventSystem::eventExecutionDepth int32_t ___eventExecutionDepth_9; // System.Type Microsoft.MixedReality.Toolkit.BaseEventSystem::eventSystemHandlerType Type_t * ___eventSystemHandlerType_10; // System.Collections.Generic.List`1<System.Tuple`3<Microsoft.MixedReality.Toolkit.BaseEventSystem/Action,System.Type,UnityEngine.EventSystems.IEventSystemHandler>> Microsoft.MixedReality.Toolkit.BaseEventSystem::postponedActions List_1_tB2338FC47817B39A67EDF98A81C666A585CBB1B0 * ___postponedActions_11; // System.Collections.Generic.List`1<System.Tuple`2<Microsoft.MixedReality.Toolkit.BaseEventSystem/Action,UnityEngine.GameObject>> Microsoft.MixedReality.Toolkit.BaseEventSystem::postponedObjectActions List_1_tFBD74CBAB85AF6A2E49F61373B8A7503C022E2CD * ___postponedObjectActions_12; // System.Collections.Generic.Dictionary`2<System.Type,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.BaseEventSystem/EventHandlerEntry>> Microsoft.MixedReality.Toolkit.BaseEventSystem::<EventHandlersByType>k__BackingField Dictionary_2_t9C346C961DA726D2E935BCA9F27BF39FE4EB463B * ___U3CEventHandlersByTypeU3Ek__BackingField_13; // System.Collections.Generic.List`1<UnityEngine.GameObject> Microsoft.MixedReality.Toolkit.BaseEventSystem::<EventListeners>k__BackingField List_1_t6D0A10F47F3440798295D2FFFC6D016477AF38E5 * ___U3CEventListenersU3Ek__BackingField_14; public: inline static int32_t get_offset_of_eventExecutionDepth_9() { return static_cast<int32_t>(offsetof(BaseEventSystem_t3D8C69A25D5A24E2D5A9D4AA786DA498318ACBCC, ___eventExecutionDepth_9)); } inline int32_t get_eventExecutionDepth_9() const { return ___eventExecutionDepth_9; } inline int32_t* get_address_of_eventExecutionDepth_9() { return &___eventExecutionDepth_9; } inline void set_eventExecutionDepth_9(int32_t value) { ___eventExecutionDepth_9 = value; } inline static int32_t get_offset_of_eventSystemHandlerType_10() { return static_cast<int32_t>(offsetof(BaseEventSystem_t3D8C69A25D5A24E2D5A9D4AA786DA498318ACBCC, ___eventSystemHandlerType_10)); } inline Type_t * get_eventSystemHandlerType_10() const { return ___eventSystemHandlerType_10; } inline Type_t ** get_address_of_eventSystemHandlerType_10() { return &___eventSystemHandlerType_10; } inline void set_eventSystemHandlerType_10(Type_t * value) { ___eventSystemHandlerType_10 = value; Il2CppCodeGenWriteBarrier((void**)(&___eventSystemHandlerType_10), (void*)value); } inline static int32_t get_offset_of_postponedActions_11() { return static_cast<int32_t>(offsetof(BaseEventSystem_t3D8C69A25D5A24E2D5A9D4AA786DA498318ACBCC, ___postponedActions_11)); } inline List_1_tB2338FC47817B39A67EDF98A81C666A585CBB1B0 * get_postponedActions_11() const { return ___postponedActions_11; } inline List_1_tB2338FC47817B39A67EDF98A81C666A585CBB1B0 ** get_address_of_postponedActions_11() { return &___postponedActions_11; } inline void set_postponedActions_11(List_1_tB2338FC47817B39A67EDF98A81C666A585CBB1B0 * value) { ___postponedActions_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___postponedActions_11), (void*)value); } inline static int32_t get_offset_of_postponedObjectActions_12() { return static_cast<int32_t>(offsetof(BaseEventSystem_t3D8C69A25D5A24E2D5A9D4AA786DA498318ACBCC, ___postponedObjectActions_12)); } inline List_1_tFBD74CBAB85AF6A2E49F61373B8A7503C022E2CD * get_postponedObjectActions_12() const { return ___postponedObjectActions_12; } inline List_1_tFBD74CBAB85AF6A2E49F61373B8A7503C022E2CD ** get_address_of_postponedObjectActions_12() { return &___postponedObjectActions_12; } inline void set_postponedObjectActions_12(List_1_tFBD74CBAB85AF6A2E49F61373B8A7503C022E2CD * value) { ___postponedObjectActions_12 = value; Il2CppCodeGenWriteBarrier((void**)(&___postponedObjectActions_12), (void*)value); } inline static int32_t get_offset_of_U3CEventHandlersByTypeU3Ek__BackingField_13() { return static_cast<int32_t>(offsetof(BaseEventSystem_t3D8C69A25D5A24E2D5A9D4AA786DA498318ACBCC, ___U3CEventHandlersByTypeU3Ek__BackingField_13)); } inline Dictionary_2_t9C346C961DA726D2E935BCA9F27BF39FE4EB463B * get_U3CEventHandlersByTypeU3Ek__BackingField_13() const { return ___U3CEventHandlersByTypeU3Ek__BackingField_13; } inline Dictionary_2_t9C346C961DA726D2E935BCA9F27BF39FE4EB463B ** get_address_of_U3CEventHandlersByTypeU3Ek__BackingField_13() { return &___U3CEventHandlersByTypeU3Ek__BackingField_13; } inline void set_U3CEventHandlersByTypeU3Ek__BackingField_13(Dictionary_2_t9C346C961DA726D2E935BCA9F27BF39FE4EB463B * value) { ___U3CEventHandlersByTypeU3Ek__BackingField_13 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CEventHandlersByTypeU3Ek__BackingField_13), (void*)value); } inline static int32_t get_offset_of_U3CEventListenersU3Ek__BackingField_14() { return static_cast<int32_t>(offsetof(BaseEventSystem_t3D8C69A25D5A24E2D5A9D4AA786DA498318ACBCC, ___U3CEventListenersU3Ek__BackingField_14)); } inline List_1_t6D0A10F47F3440798295D2FFFC6D016477AF38E5 * get_U3CEventListenersU3Ek__BackingField_14() const { return ___U3CEventListenersU3Ek__BackingField_14; } inline List_1_t6D0A10F47F3440798295D2FFFC6D016477AF38E5 ** get_address_of_U3CEventListenersU3Ek__BackingField_14() { return &___U3CEventListenersU3Ek__BackingField_14; } inline void set_U3CEventListenersU3Ek__BackingField_14(List_1_t6D0A10F47F3440798295D2FFFC6D016477AF38E5 * value) { ___U3CEventListenersU3Ek__BackingField_14 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CEventListenersU3Ek__BackingField_14), (void*)value); } }; struct BaseEventSystem_t3D8C69A25D5A24E2D5A9D4AA786DA498318ACBCC_StaticFields { public: // System.Boolean Microsoft.MixedReality.Toolkit.BaseEventSystem::enableDanglingHandlerDiagnostics bool ___enableDanglingHandlerDiagnostics_8; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.BaseEventSystem::TraverseEventSystemHandlerHierarchyPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___TraverseEventSystemHandlerHierarchyPerfMarker_15; public: inline static int32_t get_offset_of_enableDanglingHandlerDiagnostics_8() { return static_cast<int32_t>(offsetof(BaseEventSystem_t3D8C69A25D5A24E2D5A9D4AA786DA498318ACBCC_StaticFields, ___enableDanglingHandlerDiagnostics_8)); } inline bool get_enableDanglingHandlerDiagnostics_8() const { return ___enableDanglingHandlerDiagnostics_8; } inline bool* get_address_of_enableDanglingHandlerDiagnostics_8() { return &___enableDanglingHandlerDiagnostics_8; } inline void set_enableDanglingHandlerDiagnostics_8(bool value) { ___enableDanglingHandlerDiagnostics_8 = value; } inline static int32_t get_offset_of_TraverseEventSystemHandlerHierarchyPerfMarker_15() { return static_cast<int32_t>(offsetof(BaseEventSystem_t3D8C69A25D5A24E2D5A9D4AA786DA498318ACBCC_StaticFields, ___TraverseEventSystemHandlerHierarchyPerfMarker_15)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_TraverseEventSystemHandlerHierarchyPerfMarker_15() const { return ___TraverseEventSystemHandlerHierarchyPerfMarker_15; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_TraverseEventSystemHandlerHierarchyPerfMarker_15() { return &___TraverseEventSystemHandlerHierarchyPerfMarker_15; } inline void set_TraverseEventSystemHandlerHierarchyPerfMarker_15(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___TraverseEventSystemHandlerHierarchyPerfMarker_15 = value; } }; // UnityEngine.Component struct Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684 : public Object_tF2F3778131EFF286AF62B7B013A170F95A91571A { public: public: }; // Windows.Foundation.IPropertyValue struct NOVTABLE IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) = 0; virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) = 0; }; // System.Threading.Mutex struct Mutex_tA342933FCB3E3E679E3CD498804DE36CD81801B5 : public WaitHandle_t1D7DD8480FD5DA4E3AF92F569890FB972D9B1842 { public: public: }; // System.Threading.Tasks.ParallelForReplicaTask struct ParallelForReplicaTask_tA8EF390CFE7A34F4D940DA70CFC2925E8E10E7A6 : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // System.Object System.Threading.Tasks.ParallelForReplicaTask::m_stateForNextReplica RuntimeObject * ___m_stateForNextReplica_22; // System.Object System.Threading.Tasks.ParallelForReplicaTask::m_stateFromPreviousReplica RuntimeObject * ___m_stateFromPreviousReplica_23; // System.Threading.Tasks.Task System.Threading.Tasks.ParallelForReplicaTask::m_handedOverChildReplica Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * ___m_handedOverChildReplica_24; public: inline static int32_t get_offset_of_m_stateForNextReplica_22() { return static_cast<int32_t>(offsetof(ParallelForReplicaTask_tA8EF390CFE7A34F4D940DA70CFC2925E8E10E7A6, ___m_stateForNextReplica_22)); } inline RuntimeObject * get_m_stateForNextReplica_22() const { return ___m_stateForNextReplica_22; } inline RuntimeObject ** get_address_of_m_stateForNextReplica_22() { return &___m_stateForNextReplica_22; } inline void set_m_stateForNextReplica_22(RuntimeObject * value) { ___m_stateForNextReplica_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_stateForNextReplica_22), (void*)value); } inline static int32_t get_offset_of_m_stateFromPreviousReplica_23() { return static_cast<int32_t>(offsetof(ParallelForReplicaTask_tA8EF390CFE7A34F4D940DA70CFC2925E8E10E7A6, ___m_stateFromPreviousReplica_23)); } inline RuntimeObject * get_m_stateFromPreviousReplica_23() const { return ___m_stateFromPreviousReplica_23; } inline RuntimeObject ** get_address_of_m_stateFromPreviousReplica_23() { return &___m_stateFromPreviousReplica_23; } inline void set_m_stateFromPreviousReplica_23(RuntimeObject * value) { ___m_stateFromPreviousReplica_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_stateFromPreviousReplica_23), (void*)value); } inline static int32_t get_offset_of_m_handedOverChildReplica_24() { return static_cast<int32_t>(offsetof(ParallelForReplicaTask_tA8EF390CFE7A34F4D940DA70CFC2925E8E10E7A6, ___m_handedOverChildReplica_24)); } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * get_m_handedOverChildReplica_24() const { return ___m_handedOverChildReplica_24; } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 ** get_address_of_m_handedOverChildReplica_24() { return &___m_handedOverChildReplica_24; } inline void set_m_handedOverChildReplica_24(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * value) { ___m_handedOverChildReplica_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_handedOverChildReplica_24), (void*)value); } }; // System.Threading.Tasks.ParallelForReplicatingTask struct ParallelForReplicatingTask_t5C662CB60CF2C6AAAFD99BCE33295652B32762A9 : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // System.Int32 System.Threading.Tasks.ParallelForReplicatingTask::m_replicationDownCount int32_t ___m_replicationDownCount_22; public: inline static int32_t get_offset_of_m_replicationDownCount_22() { return static_cast<int32_t>(offsetof(ParallelForReplicatingTask_t5C662CB60CF2C6AAAFD99BCE33295652B32762A9, ___m_replicationDownCount_22)); } inline int32_t get_m_replicationDownCount_22() const { return ___m_replicationDownCount_22; } inline int32_t* get_address_of_m_replicationDownCount_22() { return &___m_replicationDownCount_22; } inline void set_m_replicationDownCount_22(int32_t value) { ___m_replicationDownCount_22 = value; } }; // UnityEngine.Windows.WebCam.PhotoCaptureFrame struct PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0 : public RuntimeObject { public: // System.IntPtr UnityEngine.Windows.WebCam.PhotoCaptureFrame::m_NativePtr intptr_t ___m_NativePtr_0; // System.Int32 UnityEngine.Windows.WebCam.PhotoCaptureFrame::<dataLength>k__BackingField int32_t ___U3CdataLengthU3Ek__BackingField_1; // System.Boolean UnityEngine.Windows.WebCam.PhotoCaptureFrame::<hasLocationData>k__BackingField bool ___U3ChasLocationDataU3Ek__BackingField_2; // UnityEngine.Windows.WebCam.CapturePixelFormat UnityEngine.Windows.WebCam.PhotoCaptureFrame::<pixelFormat>k__BackingField int32_t ___U3CpixelFormatU3Ek__BackingField_3; public: inline static int32_t get_offset_of_m_NativePtr_0() { return static_cast<int32_t>(offsetof(PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0, ___m_NativePtr_0)); } inline intptr_t get_m_NativePtr_0() const { return ___m_NativePtr_0; } inline intptr_t* get_address_of_m_NativePtr_0() { return &___m_NativePtr_0; } inline void set_m_NativePtr_0(intptr_t value) { ___m_NativePtr_0 = value; } inline static int32_t get_offset_of_U3CdataLengthU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0, ___U3CdataLengthU3Ek__BackingField_1)); } inline int32_t get_U3CdataLengthU3Ek__BackingField_1() const { return ___U3CdataLengthU3Ek__BackingField_1; } inline int32_t* get_address_of_U3CdataLengthU3Ek__BackingField_1() { return &___U3CdataLengthU3Ek__BackingField_1; } inline void set_U3CdataLengthU3Ek__BackingField_1(int32_t value) { ___U3CdataLengthU3Ek__BackingField_1 = value; } inline static int32_t get_offset_of_U3ChasLocationDataU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0, ___U3ChasLocationDataU3Ek__BackingField_2)); } inline bool get_U3ChasLocationDataU3Ek__BackingField_2() const { return ___U3ChasLocationDataU3Ek__BackingField_2; } inline bool* get_address_of_U3ChasLocationDataU3Ek__BackingField_2() { return &___U3ChasLocationDataU3Ek__BackingField_2; } inline void set_U3ChasLocationDataU3Ek__BackingField_2(bool value) { ___U3ChasLocationDataU3Ek__BackingField_2 = value; } inline static int32_t get_offset_of_U3CpixelFormatU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0, ___U3CpixelFormatU3Ek__BackingField_3)); } inline int32_t get_U3CpixelFormatU3Ek__BackingField_3() const { return ___U3CpixelFormatU3Ek__BackingField_3; } inline int32_t* get_address_of_U3CpixelFormatU3Ek__BackingField_3() { return &___U3CpixelFormatU3Ek__BackingField_3; } inline void set_U3CpixelFormatU3Ek__BackingField_3(int32_t value) { ___U3CpixelFormatU3Ek__BackingField_3 = value; } }; // Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid struct SafeHandleZeroOrMinusOneIsInvalid_t0C690C7DC958D0C04E529E2BB0F6569956328B45 : public SafeHandle_tC07DCA2CABF6988953342757EFB1547363E5A36B { public: public: }; // System.IO.UnmanagedMemoryStream struct UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62 : public Stream_t5DC87DD578C2C5298D98E7802E92DEABB66E2ECB { public: // System.Runtime.InteropServices.SafeBuffer System.IO.UnmanagedMemoryStream::_buffer SafeBuffer_tABA0D0B754FCCF3625CD905D535296E353C630D2 * ____buffer_4; // System.Byte* System.IO.UnmanagedMemoryStream::_mem uint8_t* ____mem_5; // System.Int64 System.IO.UnmanagedMemoryStream::_length int64_t ____length_6; // System.Int64 System.IO.UnmanagedMemoryStream::_capacity int64_t ____capacity_7; // System.Int64 System.IO.UnmanagedMemoryStream::_position int64_t ____position_8; // System.Int64 System.IO.UnmanagedMemoryStream::_offset int64_t ____offset_9; // System.IO.FileAccess System.IO.UnmanagedMemoryStream::_access int32_t ____access_10; // System.Boolean System.IO.UnmanagedMemoryStream::_isOpen bool ____isOpen_11; public: inline static int32_t get_offset_of__buffer_4() { return static_cast<int32_t>(offsetof(UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62, ____buffer_4)); } inline SafeBuffer_tABA0D0B754FCCF3625CD905D535296E353C630D2 * get__buffer_4() const { return ____buffer_4; } inline SafeBuffer_tABA0D0B754FCCF3625CD905D535296E353C630D2 ** get_address_of__buffer_4() { return &____buffer_4; } inline void set__buffer_4(SafeBuffer_tABA0D0B754FCCF3625CD905D535296E353C630D2 * value) { ____buffer_4 = value; Il2CppCodeGenWriteBarrier((void**)(&____buffer_4), (void*)value); } inline static int32_t get_offset_of__mem_5() { return static_cast<int32_t>(offsetof(UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62, ____mem_5)); } inline uint8_t* get__mem_5() const { return ____mem_5; } inline uint8_t** get_address_of__mem_5() { return &____mem_5; } inline void set__mem_5(uint8_t* value) { ____mem_5 = value; } inline static int32_t get_offset_of__length_6() { return static_cast<int32_t>(offsetof(UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62, ____length_6)); } inline int64_t get__length_6() const { return ____length_6; } inline int64_t* get_address_of__length_6() { return &____length_6; } inline void set__length_6(int64_t value) { ____length_6 = value; } inline static int32_t get_offset_of__capacity_7() { return static_cast<int32_t>(offsetof(UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62, ____capacity_7)); } inline int64_t get__capacity_7() const { return ____capacity_7; } inline int64_t* get_address_of__capacity_7() { return &____capacity_7; } inline void set__capacity_7(int64_t value) { ____capacity_7 = value; } inline static int32_t get_offset_of__position_8() { return static_cast<int32_t>(offsetof(UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62, ____position_8)); } inline int64_t get__position_8() const { return ____position_8; } inline int64_t* get_address_of__position_8() { return &____position_8; } inline void set__position_8(int64_t value) { ____position_8 = value; } inline static int32_t get_offset_of__offset_9() { return static_cast<int32_t>(offsetof(UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62, ____offset_9)); } inline int64_t get__offset_9() const { return ____offset_9; } inline int64_t* get_address_of__offset_9() { return &____offset_9; } inline void set__offset_9(int64_t value) { ____offset_9 = value; } inline static int32_t get_offset_of__access_10() { return static_cast<int32_t>(offsetof(UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62, ____access_10)); } inline int32_t get__access_10() const { return ____access_10; } inline int32_t* get_address_of__access_10() { return &____access_10; } inline void set__access_10(int32_t value) { ____access_10 = value; } inline static int32_t get_offset_of__isOpen_11() { return static_cast<int32_t>(offsetof(UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62, ____isOpen_11)); } inline bool get__isOpen_11() const { return ____isOpen_11; } inline bool* get_address_of__isOpen_11() { return &____isOpen_11; } inline void set__isOpen_11(bool value) { ____isOpen_11 = value; } }; // Microsoft.MixedReality.Toolkit.BaseCoreSystem struct BaseCoreSystem_tD60FB642C7AFAB28F3D023BEDD98D52A0ED105D1 : public BaseEventSystem_t3D8C69A25D5A24E2D5A9D4AA786DA498318ACBCC { public: // Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar Microsoft.MixedReality.Toolkit.BaseCoreSystem::<Registrar>k__BackingField RuntimeObject* ___U3CRegistrarU3Ek__BackingField_16; public: inline static int32_t get_offset_of_U3CRegistrarU3Ek__BackingField_16() { return static_cast<int32_t>(offsetof(BaseCoreSystem_tD60FB642C7AFAB28F3D023BEDD98D52A0ED105D1, ___U3CRegistrarU3Ek__BackingField_16)); } inline RuntimeObject* get_U3CRegistrarU3Ek__BackingField_16() const { return ___U3CRegistrarU3Ek__BackingField_16; } inline RuntimeObject** get_address_of_U3CRegistrarU3Ek__BackingField_16() { return &___U3CRegistrarU3Ek__BackingField_16; } inline void set_U3CRegistrarU3Ek__BackingField_16(RuntimeObject* value) { ___U3CRegistrarU3Ek__BackingField_16 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CRegistrarU3Ek__BackingField_16), (void*)value); } }; // Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager struct BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB : public BaseDataProvider_1_t3589CFF3526B1A6A8BD790F9940DB1CA28C43A02 { public: // System.Boolean Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager::enablePointerCache bool ___enablePointerCache_10; // Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager/PointerConfig[] Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager::pointerConfigurations PointerConfigU5BU5D_t17182F245D18BDE8E16CCF14BC0FF2793EF9B08E* ___pointerConfigurations_11; // System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,System.UInt32> Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager::activePointersToConfig Dictionary_2_tB877F46A6C20A56DEA8ED6DC3E004A3171647E3B * ___activePointersToConfig_13; public: inline static int32_t get_offset_of_enablePointerCache_10() { return static_cast<int32_t>(offsetof(BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB, ___enablePointerCache_10)); } inline bool get_enablePointerCache_10() const { return ___enablePointerCache_10; } inline bool* get_address_of_enablePointerCache_10() { return &___enablePointerCache_10; } inline void set_enablePointerCache_10(bool value) { ___enablePointerCache_10 = value; } inline static int32_t get_offset_of_pointerConfigurations_11() { return static_cast<int32_t>(offsetof(BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB, ___pointerConfigurations_11)); } inline PointerConfigU5BU5D_t17182F245D18BDE8E16CCF14BC0FF2793EF9B08E* get_pointerConfigurations_11() const { return ___pointerConfigurations_11; } inline PointerConfigU5BU5D_t17182F245D18BDE8E16CCF14BC0FF2793EF9B08E** get_address_of_pointerConfigurations_11() { return &___pointerConfigurations_11; } inline void set_pointerConfigurations_11(PointerConfigU5BU5D_t17182F245D18BDE8E16CCF14BC0FF2793EF9B08E* value) { ___pointerConfigurations_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___pointerConfigurations_11), (void*)value); } inline static int32_t get_offset_of_activePointersToConfig_13() { return static_cast<int32_t>(offsetof(BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB, ___activePointersToConfig_13)); } inline Dictionary_2_tB877F46A6C20A56DEA8ED6DC3E004A3171647E3B * get_activePointersToConfig_13() const { return ___activePointersToConfig_13; } inline Dictionary_2_tB877F46A6C20A56DEA8ED6DC3E004A3171647E3B ** get_address_of_activePointersToConfig_13() { return &___activePointersToConfig_13; } inline void set_activePointersToConfig_13(Dictionary_2_tB877F46A6C20A56DEA8ED6DC3E004A3171647E3B * value) { ___activePointersToConfig_13 = value; Il2CppCodeGenWriteBarrier((void**)(&___activePointersToConfig_13), (void*)value); } }; struct BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB_StaticFields { public: // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager::RequestPointersPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___RequestPointersPerfMarker_12; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager::RecyclePointersPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___RecyclePointersPerfMarker_14; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager::CreatePointerPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___CreatePointerPerfMarker_15; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager::CleanActivePointersPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___CleanActivePointersPerfMarker_16; public: inline static int32_t get_offset_of_RequestPointersPerfMarker_12() { return static_cast<int32_t>(offsetof(BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB_StaticFields, ___RequestPointersPerfMarker_12)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_RequestPointersPerfMarker_12() const { return ___RequestPointersPerfMarker_12; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_RequestPointersPerfMarker_12() { return &___RequestPointersPerfMarker_12; } inline void set_RequestPointersPerfMarker_12(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___RequestPointersPerfMarker_12 = value; } inline static int32_t get_offset_of_RecyclePointersPerfMarker_14() { return static_cast<int32_t>(offsetof(BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB_StaticFields, ___RecyclePointersPerfMarker_14)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_RecyclePointersPerfMarker_14() const { return ___RecyclePointersPerfMarker_14; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_RecyclePointersPerfMarker_14() { return &___RecyclePointersPerfMarker_14; } inline void set_RecyclePointersPerfMarker_14(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___RecyclePointersPerfMarker_14 = value; } inline static int32_t get_offset_of_CreatePointerPerfMarker_15() { return static_cast<int32_t>(offsetof(BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB_StaticFields, ___CreatePointerPerfMarker_15)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_CreatePointerPerfMarker_15() const { return ___CreatePointerPerfMarker_15; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_CreatePointerPerfMarker_15() { return &___CreatePointerPerfMarker_15; } inline void set_CreatePointerPerfMarker_15(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___CreatePointerPerfMarker_15 = value; } inline static int32_t get_offset_of_CleanActivePointersPerfMarker_16() { return static_cast<int32_t>(offsetof(BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB_StaticFields, ___CleanActivePointersPerfMarker_16)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_CleanActivePointersPerfMarker_16() const { return ___CleanActivePointersPerfMarker_16; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_CleanActivePointersPerfMarker_16() { return &___CleanActivePointersPerfMarker_16; } inline void set_CleanActivePointersPerfMarker_16(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___CleanActivePointersPerfMarker_16 = value; } }; // System.IO.PinnedBufferMemoryStream struct PinnedBufferMemoryStream_tDB1B8D639F3D8F7E60BA9E050BC48C575E573E78 : public UnmanagedMemoryStream_tCF65E90F0047A6F54D79A6A5E681BC98AE6C2F62 { public: // System.Byte[] System.IO.PinnedBufferMemoryStream::_array ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ____array_12; // System.Runtime.InteropServices.GCHandle System.IO.PinnedBufferMemoryStream::_pinningHandle GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603 ____pinningHandle_13; public: inline static int32_t get_offset_of__array_12() { return static_cast<int32_t>(offsetof(PinnedBufferMemoryStream_tDB1B8D639F3D8F7E60BA9E050BC48C575E573E78, ____array_12)); } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get__array_12() const { return ____array_12; } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of__array_12() { return &____array_12; } inline void set__array_12(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value) { ____array_12 = value; Il2CppCodeGenWriteBarrier((void**)(&____array_12), (void*)value); } inline static int32_t get_offset_of__pinningHandle_13() { return static_cast<int32_t>(offsetof(PinnedBufferMemoryStream_tDB1B8D639F3D8F7E60BA9E050BC48C575E573E78, ____pinningHandle_13)); } inline GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603 get__pinningHandle_13() const { return ____pinningHandle_13; } inline GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603 * get_address_of__pinningHandle_13() { return &____pinningHandle_13; } inline void set__pinningHandle_13(GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603 value) { ____pinningHandle_13 = value; } }; // Microsoft.Win32.SafeHandles.SafeFileHandle struct SafeFileHandle_tC77A9860A03C31DC46AD2C08EC10EACDC3B7A662 : public SafeHandleZeroOrMinusOneIsInvalid_t0C690C7DC958D0C04E529E2BB0F6569956328B45 { public: public: }; // Microsoft.Win32.SafeHandles.SafeFindHandle struct SafeFindHandle_t0E0D5349FC3144C1CAB2D20DCD3023B25833B8BD : public SafeHandleZeroOrMinusOneIsInvalid_t0C690C7DC958D0C04E529E2BB0F6569956328B45 { public: public: }; // Microsoft.Win32.SafeHandles.SafeRegistryHandle struct SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545 : public SafeHandleZeroOrMinusOneIsInvalid_t0C690C7DC958D0C04E529E2BB0F6569956328B45 { public: public: }; // Microsoft.Win32.SafeHandles.SafeWaitHandle struct SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1 : public SafeHandleZeroOrMinusOneIsInvalid_t0C690C7DC958D0C04E529E2BB0F6569956328B45 { public: public: }; // UnityEngine.Transform struct Transform_tA8193BB29D4D2C7EC04918F3ED1816345186C3F1 : public Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684 { public: public: }; // Microsoft.MixedReality.Toolkit.BaseDataProviderAccessCoreSystem struct BaseDataProviderAccessCoreSystem_t7A7B0A8F1AA8A4A6F16E2590B1A5125C9D6B6B47 : public BaseCoreSystem_tD60FB642C7AFAB28F3D023BEDD98D52A0ED105D1 { public: // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.IMixedRealityDataProvider> Microsoft.MixedReality.Toolkit.BaseDataProviderAccessCoreSystem::dataProviders List_1_t94FC783F2185B5CB832CD245C5E89430CC6533D4 * ___dataProviders_17; public: inline static int32_t get_offset_of_dataProviders_17() { return static_cast<int32_t>(offsetof(BaseDataProviderAccessCoreSystem_t7A7B0A8F1AA8A4A6F16E2590B1A5125C9D6B6B47, ___dataProviders_17)); } inline List_1_t94FC783F2185B5CB832CD245C5E89430CC6533D4 * get_dataProviders_17() const { return ___dataProviders_17; } inline List_1_t94FC783F2185B5CB832CD245C5E89430CC6533D4 ** get_address_of_dataProviders_17() { return &___dataProviders_17; } inline void set_dataProviders_17(List_1_t94FC783F2185B5CB832CD245C5E89430CC6533D4 * value) { ___dataProviders_17 = value; Il2CppCodeGenWriteBarrier((void**)(&___dataProviders_17), (void*)value); } }; struct BaseDataProviderAccessCoreSystem_t7A7B0A8F1AA8A4A6F16E2590B1A5125C9D6B6B47_StaticFields { public: // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.BaseDataProviderAccessCoreSystem::UpdatePerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___UpdatePerfMarker_18; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.BaseDataProviderAccessCoreSystem::LateUpdatePerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___LateUpdatePerfMarker_19; public: inline static int32_t get_offset_of_UpdatePerfMarker_18() { return static_cast<int32_t>(offsetof(BaseDataProviderAccessCoreSystem_t7A7B0A8F1AA8A4A6F16E2590B1A5125C9D6B6B47_StaticFields, ___UpdatePerfMarker_18)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_UpdatePerfMarker_18() const { return ___UpdatePerfMarker_18; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_UpdatePerfMarker_18() { return &___UpdatePerfMarker_18; } inline void set_UpdatePerfMarker_18(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___UpdatePerfMarker_18 = value; } inline static int32_t get_offset_of_LateUpdatePerfMarker_19() { return static_cast<int32_t>(offsetof(BaseDataProviderAccessCoreSystem_t7A7B0A8F1AA8A4A6F16E2590B1A5125C9D6B6B47_StaticFields, ___LateUpdatePerfMarker_19)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_LateUpdatePerfMarker_19() const { return ___LateUpdatePerfMarker_19; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_LateUpdatePerfMarker_19() { return &___LateUpdatePerfMarker_19; } inline void set_LateUpdatePerfMarker_19(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___LateUpdatePerfMarker_19 = value; } }; // Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem struct MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00 : public BaseCoreSystem_tD60FB642C7AFAB28F3D023BEDD98D52A0ED105D1 { public: // System.Boolean Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::managerSceneOpInProgress bool ___managerSceneOpInProgress_18; // System.Single Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::managerSceneOpProgress float ___managerSceneOpProgress_19; // Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem/SceneContentTracker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::contentTracker SceneContentTracker_t63E7FA6D49DD34641F8A8975B6808FFC39383B65 * ___contentTracker_20; // Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem/SceneLightingExecutor Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::lightingExecutor SceneLightingExecutor_t284A3495A5AF7E28B3778E8605ACF1806F2A1556 * ___lightingExecutor_21; // System.String Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<Name>k__BackingField String_t* ___U3CNameU3Ek__BackingField_22; // System.Action`1<System.Collections.Generic.IEnumerable`1<System.String>> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnWillLoadContent>k__BackingField Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * ___U3COnWillLoadContentU3Ek__BackingField_23; // System.Action`1<System.Collections.Generic.IEnumerable`1<System.String>> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnContentLoaded>k__BackingField Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * ___U3COnContentLoadedU3Ek__BackingField_24; // System.Action`1<System.Collections.Generic.IEnumerable`1<System.String>> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnWillUnloadContent>k__BackingField Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * ___U3COnWillUnloadContentU3Ek__BackingField_25; // System.Action`1<System.Collections.Generic.IEnumerable`1<System.String>> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnContentUnloaded>k__BackingField Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * ___U3COnContentUnloadedU3Ek__BackingField_26; // System.Action`1<System.String> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnWillLoadLighting>k__BackingField Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * ___U3COnWillLoadLightingU3Ek__BackingField_27; // System.Action`1<System.String> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnLightingLoaded>k__BackingField Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * ___U3COnLightingLoadedU3Ek__BackingField_28; // System.Action`1<System.String> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnWillUnloadLighting>k__BackingField Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * ___U3COnWillUnloadLightingU3Ek__BackingField_29; // System.Action`1<System.String> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnLightingUnloaded>k__BackingField Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * ___U3COnLightingUnloadedU3Ek__BackingField_30; // System.Action`1<System.String> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnWillLoadScene>k__BackingField Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * ___U3COnWillLoadSceneU3Ek__BackingField_31; // System.Action`1<System.String> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnSceneLoaded>k__BackingField Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * ___U3COnSceneLoadedU3Ek__BackingField_32; // System.Action`1<System.String> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnWillUnloadScene>k__BackingField Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * ___U3COnWillUnloadSceneU3Ek__BackingField_33; // System.Action`1<System.String> Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<OnSceneUnloaded>k__BackingField Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * ___U3COnSceneUnloadedU3Ek__BackingField_34; // System.Boolean Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<SceneOperationInProgress>k__BackingField bool ___U3CSceneOperationInProgressU3Ek__BackingField_35; // System.Single Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<SceneOperationProgress>k__BackingField float ___U3CSceneOperationProgressU3Ek__BackingField_36; // System.Boolean Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<LightingOperationInProgress>k__BackingField bool ___U3CLightingOperationInProgressU3Ek__BackingField_37; // System.Single Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<LightingOperationProgress>k__BackingField float ___U3CLightingOperationProgressU3Ek__BackingField_38; // System.String Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<ActiveLightingScene>k__BackingField String_t* ___U3CActiveLightingSceneU3Ek__BackingField_39; // System.Boolean Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<WaitingToProceed>k__BackingField bool ___U3CWaitingToProceedU3Ek__BackingField_40; // System.UInt32 Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<SourceId>k__BackingField uint32_t ___U3CSourceIdU3Ek__BackingField_41; // System.String Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::<SourceName>k__BackingField String_t* ___U3CSourceNameU3Ek__BackingField_42; public: inline static int32_t get_offset_of_managerSceneOpInProgress_18() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___managerSceneOpInProgress_18)); } inline bool get_managerSceneOpInProgress_18() const { return ___managerSceneOpInProgress_18; } inline bool* get_address_of_managerSceneOpInProgress_18() { return &___managerSceneOpInProgress_18; } inline void set_managerSceneOpInProgress_18(bool value) { ___managerSceneOpInProgress_18 = value; } inline static int32_t get_offset_of_managerSceneOpProgress_19() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___managerSceneOpProgress_19)); } inline float get_managerSceneOpProgress_19() const { return ___managerSceneOpProgress_19; } inline float* get_address_of_managerSceneOpProgress_19() { return &___managerSceneOpProgress_19; } inline void set_managerSceneOpProgress_19(float value) { ___managerSceneOpProgress_19 = value; } inline static int32_t get_offset_of_contentTracker_20() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___contentTracker_20)); } inline SceneContentTracker_t63E7FA6D49DD34641F8A8975B6808FFC39383B65 * get_contentTracker_20() const { return ___contentTracker_20; } inline SceneContentTracker_t63E7FA6D49DD34641F8A8975B6808FFC39383B65 ** get_address_of_contentTracker_20() { return &___contentTracker_20; } inline void set_contentTracker_20(SceneContentTracker_t63E7FA6D49DD34641F8A8975B6808FFC39383B65 * value) { ___contentTracker_20 = value; Il2CppCodeGenWriteBarrier((void**)(&___contentTracker_20), (void*)value); } inline static int32_t get_offset_of_lightingExecutor_21() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___lightingExecutor_21)); } inline SceneLightingExecutor_t284A3495A5AF7E28B3778E8605ACF1806F2A1556 * get_lightingExecutor_21() const { return ___lightingExecutor_21; } inline SceneLightingExecutor_t284A3495A5AF7E28B3778E8605ACF1806F2A1556 ** get_address_of_lightingExecutor_21() { return &___lightingExecutor_21; } inline void set_lightingExecutor_21(SceneLightingExecutor_t284A3495A5AF7E28B3778E8605ACF1806F2A1556 * value) { ___lightingExecutor_21 = value; Il2CppCodeGenWriteBarrier((void**)(&___lightingExecutor_21), (void*)value); } inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_22() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3CNameU3Ek__BackingField_22)); } inline String_t* get_U3CNameU3Ek__BackingField_22() const { return ___U3CNameU3Ek__BackingField_22; } inline String_t** get_address_of_U3CNameU3Ek__BackingField_22() { return &___U3CNameU3Ek__BackingField_22; } inline void set_U3CNameU3Ek__BackingField_22(String_t* value) { ___U3CNameU3Ek__BackingField_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CNameU3Ek__BackingField_22), (void*)value); } inline static int32_t get_offset_of_U3COnWillLoadContentU3Ek__BackingField_23() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnWillLoadContentU3Ek__BackingField_23)); } inline Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * get_U3COnWillLoadContentU3Ek__BackingField_23() const { return ___U3COnWillLoadContentU3Ek__BackingField_23; } inline Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 ** get_address_of_U3COnWillLoadContentU3Ek__BackingField_23() { return &___U3COnWillLoadContentU3Ek__BackingField_23; } inline void set_U3COnWillLoadContentU3Ek__BackingField_23(Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * value) { ___U3COnWillLoadContentU3Ek__BackingField_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnWillLoadContentU3Ek__BackingField_23), (void*)value); } inline static int32_t get_offset_of_U3COnContentLoadedU3Ek__BackingField_24() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnContentLoadedU3Ek__BackingField_24)); } inline Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * get_U3COnContentLoadedU3Ek__BackingField_24() const { return ___U3COnContentLoadedU3Ek__BackingField_24; } inline Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 ** get_address_of_U3COnContentLoadedU3Ek__BackingField_24() { return &___U3COnContentLoadedU3Ek__BackingField_24; } inline void set_U3COnContentLoadedU3Ek__BackingField_24(Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * value) { ___U3COnContentLoadedU3Ek__BackingField_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnContentLoadedU3Ek__BackingField_24), (void*)value); } inline static int32_t get_offset_of_U3COnWillUnloadContentU3Ek__BackingField_25() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnWillUnloadContentU3Ek__BackingField_25)); } inline Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * get_U3COnWillUnloadContentU3Ek__BackingField_25() const { return ___U3COnWillUnloadContentU3Ek__BackingField_25; } inline Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 ** get_address_of_U3COnWillUnloadContentU3Ek__BackingField_25() { return &___U3COnWillUnloadContentU3Ek__BackingField_25; } inline void set_U3COnWillUnloadContentU3Ek__BackingField_25(Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * value) { ___U3COnWillUnloadContentU3Ek__BackingField_25 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnWillUnloadContentU3Ek__BackingField_25), (void*)value); } inline static int32_t get_offset_of_U3COnContentUnloadedU3Ek__BackingField_26() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnContentUnloadedU3Ek__BackingField_26)); } inline Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * get_U3COnContentUnloadedU3Ek__BackingField_26() const { return ___U3COnContentUnloadedU3Ek__BackingField_26; } inline Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 ** get_address_of_U3COnContentUnloadedU3Ek__BackingField_26() { return &___U3COnContentUnloadedU3Ek__BackingField_26; } inline void set_U3COnContentUnloadedU3Ek__BackingField_26(Action_1_t8B3FD6155D04E2C2D284B5C21B863CDC18E89439 * value) { ___U3COnContentUnloadedU3Ek__BackingField_26 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnContentUnloadedU3Ek__BackingField_26), (void*)value); } inline static int32_t get_offset_of_U3COnWillLoadLightingU3Ek__BackingField_27() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnWillLoadLightingU3Ek__BackingField_27)); } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * get_U3COnWillLoadLightingU3Ek__BackingField_27() const { return ___U3COnWillLoadLightingU3Ek__BackingField_27; } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 ** get_address_of_U3COnWillLoadLightingU3Ek__BackingField_27() { return &___U3COnWillLoadLightingU3Ek__BackingField_27; } inline void set_U3COnWillLoadLightingU3Ek__BackingField_27(Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * value) { ___U3COnWillLoadLightingU3Ek__BackingField_27 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnWillLoadLightingU3Ek__BackingField_27), (void*)value); } inline static int32_t get_offset_of_U3COnLightingLoadedU3Ek__BackingField_28() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnLightingLoadedU3Ek__BackingField_28)); } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * get_U3COnLightingLoadedU3Ek__BackingField_28() const { return ___U3COnLightingLoadedU3Ek__BackingField_28; } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 ** get_address_of_U3COnLightingLoadedU3Ek__BackingField_28() { return &___U3COnLightingLoadedU3Ek__BackingField_28; } inline void set_U3COnLightingLoadedU3Ek__BackingField_28(Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * value) { ___U3COnLightingLoadedU3Ek__BackingField_28 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnLightingLoadedU3Ek__BackingField_28), (void*)value); } inline static int32_t get_offset_of_U3COnWillUnloadLightingU3Ek__BackingField_29() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnWillUnloadLightingU3Ek__BackingField_29)); } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * get_U3COnWillUnloadLightingU3Ek__BackingField_29() const { return ___U3COnWillUnloadLightingU3Ek__BackingField_29; } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 ** get_address_of_U3COnWillUnloadLightingU3Ek__BackingField_29() { return &___U3COnWillUnloadLightingU3Ek__BackingField_29; } inline void set_U3COnWillUnloadLightingU3Ek__BackingField_29(Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * value) { ___U3COnWillUnloadLightingU3Ek__BackingField_29 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnWillUnloadLightingU3Ek__BackingField_29), (void*)value); } inline static int32_t get_offset_of_U3COnLightingUnloadedU3Ek__BackingField_30() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnLightingUnloadedU3Ek__BackingField_30)); } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * get_U3COnLightingUnloadedU3Ek__BackingField_30() const { return ___U3COnLightingUnloadedU3Ek__BackingField_30; } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 ** get_address_of_U3COnLightingUnloadedU3Ek__BackingField_30() { return &___U3COnLightingUnloadedU3Ek__BackingField_30; } inline void set_U3COnLightingUnloadedU3Ek__BackingField_30(Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * value) { ___U3COnLightingUnloadedU3Ek__BackingField_30 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnLightingUnloadedU3Ek__BackingField_30), (void*)value); } inline static int32_t get_offset_of_U3COnWillLoadSceneU3Ek__BackingField_31() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnWillLoadSceneU3Ek__BackingField_31)); } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * get_U3COnWillLoadSceneU3Ek__BackingField_31() const { return ___U3COnWillLoadSceneU3Ek__BackingField_31; } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 ** get_address_of_U3COnWillLoadSceneU3Ek__BackingField_31() { return &___U3COnWillLoadSceneU3Ek__BackingField_31; } inline void set_U3COnWillLoadSceneU3Ek__BackingField_31(Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * value) { ___U3COnWillLoadSceneU3Ek__BackingField_31 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnWillLoadSceneU3Ek__BackingField_31), (void*)value); } inline static int32_t get_offset_of_U3COnSceneLoadedU3Ek__BackingField_32() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnSceneLoadedU3Ek__BackingField_32)); } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * get_U3COnSceneLoadedU3Ek__BackingField_32() const { return ___U3COnSceneLoadedU3Ek__BackingField_32; } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 ** get_address_of_U3COnSceneLoadedU3Ek__BackingField_32() { return &___U3COnSceneLoadedU3Ek__BackingField_32; } inline void set_U3COnSceneLoadedU3Ek__BackingField_32(Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * value) { ___U3COnSceneLoadedU3Ek__BackingField_32 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnSceneLoadedU3Ek__BackingField_32), (void*)value); } inline static int32_t get_offset_of_U3COnWillUnloadSceneU3Ek__BackingField_33() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnWillUnloadSceneU3Ek__BackingField_33)); } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * get_U3COnWillUnloadSceneU3Ek__BackingField_33() const { return ___U3COnWillUnloadSceneU3Ek__BackingField_33; } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 ** get_address_of_U3COnWillUnloadSceneU3Ek__BackingField_33() { return &___U3COnWillUnloadSceneU3Ek__BackingField_33; } inline void set_U3COnWillUnloadSceneU3Ek__BackingField_33(Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * value) { ___U3COnWillUnloadSceneU3Ek__BackingField_33 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnWillUnloadSceneU3Ek__BackingField_33), (void*)value); } inline static int32_t get_offset_of_U3COnSceneUnloadedU3Ek__BackingField_34() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3COnSceneUnloadedU3Ek__BackingField_34)); } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * get_U3COnSceneUnloadedU3Ek__BackingField_34() const { return ___U3COnSceneUnloadedU3Ek__BackingField_34; } inline Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 ** get_address_of_U3COnSceneUnloadedU3Ek__BackingField_34() { return &___U3COnSceneUnloadedU3Ek__BackingField_34; } inline void set_U3COnSceneUnloadedU3Ek__BackingField_34(Action_1_tC0D73E03177C82525D78670CDC2165F7CBF0A9C3 * value) { ___U3COnSceneUnloadedU3Ek__BackingField_34 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3COnSceneUnloadedU3Ek__BackingField_34), (void*)value); } inline static int32_t get_offset_of_U3CSceneOperationInProgressU3Ek__BackingField_35() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3CSceneOperationInProgressU3Ek__BackingField_35)); } inline bool get_U3CSceneOperationInProgressU3Ek__BackingField_35() const { return ___U3CSceneOperationInProgressU3Ek__BackingField_35; } inline bool* get_address_of_U3CSceneOperationInProgressU3Ek__BackingField_35() { return &___U3CSceneOperationInProgressU3Ek__BackingField_35; } inline void set_U3CSceneOperationInProgressU3Ek__BackingField_35(bool value) { ___U3CSceneOperationInProgressU3Ek__BackingField_35 = value; } inline static int32_t get_offset_of_U3CSceneOperationProgressU3Ek__BackingField_36() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3CSceneOperationProgressU3Ek__BackingField_36)); } inline float get_U3CSceneOperationProgressU3Ek__BackingField_36() const { return ___U3CSceneOperationProgressU3Ek__BackingField_36; } inline float* get_address_of_U3CSceneOperationProgressU3Ek__BackingField_36() { return &___U3CSceneOperationProgressU3Ek__BackingField_36; } inline void set_U3CSceneOperationProgressU3Ek__BackingField_36(float value) { ___U3CSceneOperationProgressU3Ek__BackingField_36 = value; } inline static int32_t get_offset_of_U3CLightingOperationInProgressU3Ek__BackingField_37() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3CLightingOperationInProgressU3Ek__BackingField_37)); } inline bool get_U3CLightingOperationInProgressU3Ek__BackingField_37() const { return ___U3CLightingOperationInProgressU3Ek__BackingField_37; } inline bool* get_address_of_U3CLightingOperationInProgressU3Ek__BackingField_37() { return &___U3CLightingOperationInProgressU3Ek__BackingField_37; } inline void set_U3CLightingOperationInProgressU3Ek__BackingField_37(bool value) { ___U3CLightingOperationInProgressU3Ek__BackingField_37 = value; } inline static int32_t get_offset_of_U3CLightingOperationProgressU3Ek__BackingField_38() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3CLightingOperationProgressU3Ek__BackingField_38)); } inline float get_U3CLightingOperationProgressU3Ek__BackingField_38() const { return ___U3CLightingOperationProgressU3Ek__BackingField_38; } inline float* get_address_of_U3CLightingOperationProgressU3Ek__BackingField_38() { return &___U3CLightingOperationProgressU3Ek__BackingField_38; } inline void set_U3CLightingOperationProgressU3Ek__BackingField_38(float value) { ___U3CLightingOperationProgressU3Ek__BackingField_38 = value; } inline static int32_t get_offset_of_U3CActiveLightingSceneU3Ek__BackingField_39() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3CActiveLightingSceneU3Ek__BackingField_39)); } inline String_t* get_U3CActiveLightingSceneU3Ek__BackingField_39() const { return ___U3CActiveLightingSceneU3Ek__BackingField_39; } inline String_t** get_address_of_U3CActiveLightingSceneU3Ek__BackingField_39() { return &___U3CActiveLightingSceneU3Ek__BackingField_39; } inline void set_U3CActiveLightingSceneU3Ek__BackingField_39(String_t* value) { ___U3CActiveLightingSceneU3Ek__BackingField_39 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CActiveLightingSceneU3Ek__BackingField_39), (void*)value); } inline static int32_t get_offset_of_U3CWaitingToProceedU3Ek__BackingField_40() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3CWaitingToProceedU3Ek__BackingField_40)); } inline bool get_U3CWaitingToProceedU3Ek__BackingField_40() const { return ___U3CWaitingToProceedU3Ek__BackingField_40; } inline bool* get_address_of_U3CWaitingToProceedU3Ek__BackingField_40() { return &___U3CWaitingToProceedU3Ek__BackingField_40; } inline void set_U3CWaitingToProceedU3Ek__BackingField_40(bool value) { ___U3CWaitingToProceedU3Ek__BackingField_40 = value; } inline static int32_t get_offset_of_U3CSourceIdU3Ek__BackingField_41() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3CSourceIdU3Ek__BackingField_41)); } inline uint32_t get_U3CSourceIdU3Ek__BackingField_41() const { return ___U3CSourceIdU3Ek__BackingField_41; } inline uint32_t* get_address_of_U3CSourceIdU3Ek__BackingField_41() { return &___U3CSourceIdU3Ek__BackingField_41; } inline void set_U3CSourceIdU3Ek__BackingField_41(uint32_t value) { ___U3CSourceIdU3Ek__BackingField_41 = value; } inline static int32_t get_offset_of_U3CSourceNameU3Ek__BackingField_42() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00, ___U3CSourceNameU3Ek__BackingField_42)); } inline String_t* get_U3CSourceNameU3Ek__BackingField_42() const { return ___U3CSourceNameU3Ek__BackingField_42; } inline String_t** get_address_of_U3CSourceNameU3Ek__BackingField_42() { return &___U3CSourceNameU3Ek__BackingField_42; } inline void set_U3CSourceNameU3Ek__BackingField_42(String_t* value) { ___U3CSourceNameU3Ek__BackingField_42 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CSourceNameU3Ek__BackingField_42), (void*)value); } }; struct MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields { public: // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::UpdatePerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___UpdatePerfMarker_43; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::LoadNextContentPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___LoadNextContentPerfMarker_44; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::LoadPrevContentPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___LoadPrevContentPerfMarker_45; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::LoadContentByTagPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___LoadContentByTagPerfMarker_46; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::UnloadContentByTagPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___UnloadContentByTagPerfMarker_47; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::LoadContentPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___LoadContentPerfMarker_48; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::UnloadContentPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___UnloadContentPerfMarker_49; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::IsContentLoadedPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___IsContentLoadedPerfMarker_50; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::SetLightingScenePerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___SetLightingScenePerfMarker_51; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::SetManagerScenePerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___SetManagerScenePerfMarker_52; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::LoadScenesInternalPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___LoadScenesInternalPerfMarker_53; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::UnloadScenesInternalPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___UnloadScenesInternalPerfMarker_54; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::InvokeLoadedActionsPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___InvokeLoadedActionsPerfMarker_55; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::InvokeWillLoadActionsPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___InvokeWillLoadActionsPerfMarker_56; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::InvokeWillUnloadActionsPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___InvokeWillUnloadActionsPerfMarker_57; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::InvokeUnloadedActionsPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___InvokeUnloadedActionsPerfMarker_58; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::GetScenePerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___GetScenePerfMarker_59; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem::GetLoadedContentScenesPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___GetLoadedContentScenesPerfMarker_60; public: inline static int32_t get_offset_of_UpdatePerfMarker_43() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___UpdatePerfMarker_43)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_UpdatePerfMarker_43() const { return ___UpdatePerfMarker_43; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_UpdatePerfMarker_43() { return &___UpdatePerfMarker_43; } inline void set_UpdatePerfMarker_43(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___UpdatePerfMarker_43 = value; } inline static int32_t get_offset_of_LoadNextContentPerfMarker_44() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___LoadNextContentPerfMarker_44)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_LoadNextContentPerfMarker_44() const { return ___LoadNextContentPerfMarker_44; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_LoadNextContentPerfMarker_44() { return &___LoadNextContentPerfMarker_44; } inline void set_LoadNextContentPerfMarker_44(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___LoadNextContentPerfMarker_44 = value; } inline static int32_t get_offset_of_LoadPrevContentPerfMarker_45() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___LoadPrevContentPerfMarker_45)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_LoadPrevContentPerfMarker_45() const { return ___LoadPrevContentPerfMarker_45; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_LoadPrevContentPerfMarker_45() { return &___LoadPrevContentPerfMarker_45; } inline void set_LoadPrevContentPerfMarker_45(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___LoadPrevContentPerfMarker_45 = value; } inline static int32_t get_offset_of_LoadContentByTagPerfMarker_46() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___LoadContentByTagPerfMarker_46)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_LoadContentByTagPerfMarker_46() const { return ___LoadContentByTagPerfMarker_46; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_LoadContentByTagPerfMarker_46() { return &___LoadContentByTagPerfMarker_46; } inline void set_LoadContentByTagPerfMarker_46(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___LoadContentByTagPerfMarker_46 = value; } inline static int32_t get_offset_of_UnloadContentByTagPerfMarker_47() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___UnloadContentByTagPerfMarker_47)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_UnloadContentByTagPerfMarker_47() const { return ___UnloadContentByTagPerfMarker_47; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_UnloadContentByTagPerfMarker_47() { return &___UnloadContentByTagPerfMarker_47; } inline void set_UnloadContentByTagPerfMarker_47(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___UnloadContentByTagPerfMarker_47 = value; } inline static int32_t get_offset_of_LoadContentPerfMarker_48() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___LoadContentPerfMarker_48)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_LoadContentPerfMarker_48() const { return ___LoadContentPerfMarker_48; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_LoadContentPerfMarker_48() { return &___LoadContentPerfMarker_48; } inline void set_LoadContentPerfMarker_48(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___LoadContentPerfMarker_48 = value; } inline static int32_t get_offset_of_UnloadContentPerfMarker_49() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___UnloadContentPerfMarker_49)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_UnloadContentPerfMarker_49() const { return ___UnloadContentPerfMarker_49; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_UnloadContentPerfMarker_49() { return &___UnloadContentPerfMarker_49; } inline void set_UnloadContentPerfMarker_49(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___UnloadContentPerfMarker_49 = value; } inline static int32_t get_offset_of_IsContentLoadedPerfMarker_50() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___IsContentLoadedPerfMarker_50)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_IsContentLoadedPerfMarker_50() const { return ___IsContentLoadedPerfMarker_50; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_IsContentLoadedPerfMarker_50() { return &___IsContentLoadedPerfMarker_50; } inline void set_IsContentLoadedPerfMarker_50(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___IsContentLoadedPerfMarker_50 = value; } inline static int32_t get_offset_of_SetLightingScenePerfMarker_51() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___SetLightingScenePerfMarker_51)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_SetLightingScenePerfMarker_51() const { return ___SetLightingScenePerfMarker_51; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_SetLightingScenePerfMarker_51() { return &___SetLightingScenePerfMarker_51; } inline void set_SetLightingScenePerfMarker_51(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___SetLightingScenePerfMarker_51 = value; } inline static int32_t get_offset_of_SetManagerScenePerfMarker_52() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___SetManagerScenePerfMarker_52)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_SetManagerScenePerfMarker_52() const { return ___SetManagerScenePerfMarker_52; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_SetManagerScenePerfMarker_52() { return &___SetManagerScenePerfMarker_52; } inline void set_SetManagerScenePerfMarker_52(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___SetManagerScenePerfMarker_52 = value; } inline static int32_t get_offset_of_LoadScenesInternalPerfMarker_53() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___LoadScenesInternalPerfMarker_53)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_LoadScenesInternalPerfMarker_53() const { return ___LoadScenesInternalPerfMarker_53; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_LoadScenesInternalPerfMarker_53() { return &___LoadScenesInternalPerfMarker_53; } inline void set_LoadScenesInternalPerfMarker_53(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___LoadScenesInternalPerfMarker_53 = value; } inline static int32_t get_offset_of_UnloadScenesInternalPerfMarker_54() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___UnloadScenesInternalPerfMarker_54)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_UnloadScenesInternalPerfMarker_54() const { return ___UnloadScenesInternalPerfMarker_54; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_UnloadScenesInternalPerfMarker_54() { return &___UnloadScenesInternalPerfMarker_54; } inline void set_UnloadScenesInternalPerfMarker_54(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___UnloadScenesInternalPerfMarker_54 = value; } inline static int32_t get_offset_of_InvokeLoadedActionsPerfMarker_55() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___InvokeLoadedActionsPerfMarker_55)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_InvokeLoadedActionsPerfMarker_55() const { return ___InvokeLoadedActionsPerfMarker_55; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_InvokeLoadedActionsPerfMarker_55() { return &___InvokeLoadedActionsPerfMarker_55; } inline void set_InvokeLoadedActionsPerfMarker_55(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___InvokeLoadedActionsPerfMarker_55 = value; } inline static int32_t get_offset_of_InvokeWillLoadActionsPerfMarker_56() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___InvokeWillLoadActionsPerfMarker_56)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_InvokeWillLoadActionsPerfMarker_56() const { return ___InvokeWillLoadActionsPerfMarker_56; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_InvokeWillLoadActionsPerfMarker_56() { return &___InvokeWillLoadActionsPerfMarker_56; } inline void set_InvokeWillLoadActionsPerfMarker_56(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___InvokeWillLoadActionsPerfMarker_56 = value; } inline static int32_t get_offset_of_InvokeWillUnloadActionsPerfMarker_57() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___InvokeWillUnloadActionsPerfMarker_57)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_InvokeWillUnloadActionsPerfMarker_57() const { return ___InvokeWillUnloadActionsPerfMarker_57; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_InvokeWillUnloadActionsPerfMarker_57() { return &___InvokeWillUnloadActionsPerfMarker_57; } inline void set_InvokeWillUnloadActionsPerfMarker_57(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___InvokeWillUnloadActionsPerfMarker_57 = value; } inline static int32_t get_offset_of_InvokeUnloadedActionsPerfMarker_58() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___InvokeUnloadedActionsPerfMarker_58)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_InvokeUnloadedActionsPerfMarker_58() const { return ___InvokeUnloadedActionsPerfMarker_58; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_InvokeUnloadedActionsPerfMarker_58() { return &___InvokeUnloadedActionsPerfMarker_58; } inline void set_InvokeUnloadedActionsPerfMarker_58(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___InvokeUnloadedActionsPerfMarker_58 = value; } inline static int32_t get_offset_of_GetScenePerfMarker_59() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___GetScenePerfMarker_59)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_GetScenePerfMarker_59() const { return ___GetScenePerfMarker_59; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_GetScenePerfMarker_59() { return &___GetScenePerfMarker_59; } inline void set_GetScenePerfMarker_59(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___GetScenePerfMarker_59 = value; } inline static int32_t get_offset_of_GetLoadedContentScenesPerfMarker_60() { return static_cast<int32_t>(offsetof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_StaticFields, ___GetLoadedContentScenesPerfMarker_60)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_GetLoadedContentScenesPerfMarker_60() const { return ___GetLoadedContentScenesPerfMarker_60; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_GetLoadedContentScenesPerfMarker_60() { return &___GetLoadedContentScenesPerfMarker_60; } inline void set_GetLoadedContentScenesPerfMarker_60(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___GetLoadedContentScenesPerfMarker_60 = value; } }; // Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem struct MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4 : public BaseCoreSystem_tD60FB642C7AFAB28F3D023BEDD98D52A0ED105D1 { public: // Microsoft.MixedReality.Toolkit.Teleport.TeleportEventData Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::teleportEventData TeleportEventData_tD38237F467954AFE4C5D13E66D5BFBAB826AAAC2 * ___teleportEventData_17; // System.Boolean Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::isTeleporting bool ___isTeleporting_18; // System.Boolean Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::isProcessingTeleportRequest bool ___isProcessingTeleportRequest_19; // UnityEngine.Vector3 Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::targetPosition Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___targetPosition_20; // UnityEngine.Vector3 Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::targetRotation Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___targetRotation_21; // UnityEngine.GameObject Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::eventSystemReference GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___eventSystemReference_22; // System.String Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::<Name>k__BackingField String_t* ___U3CNameU3Ek__BackingField_23; // System.Single Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::teleportDuration float ___teleportDuration_25; public: inline static int32_t get_offset_of_teleportEventData_17() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4, ___teleportEventData_17)); } inline TeleportEventData_tD38237F467954AFE4C5D13E66D5BFBAB826AAAC2 * get_teleportEventData_17() const { return ___teleportEventData_17; } inline TeleportEventData_tD38237F467954AFE4C5D13E66D5BFBAB826AAAC2 ** get_address_of_teleportEventData_17() { return &___teleportEventData_17; } inline void set_teleportEventData_17(TeleportEventData_tD38237F467954AFE4C5D13E66D5BFBAB826AAAC2 * value) { ___teleportEventData_17 = value; Il2CppCodeGenWriteBarrier((void**)(&___teleportEventData_17), (void*)value); } inline static int32_t get_offset_of_isTeleporting_18() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4, ___isTeleporting_18)); } inline bool get_isTeleporting_18() const { return ___isTeleporting_18; } inline bool* get_address_of_isTeleporting_18() { return &___isTeleporting_18; } inline void set_isTeleporting_18(bool value) { ___isTeleporting_18 = value; } inline static int32_t get_offset_of_isProcessingTeleportRequest_19() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4, ___isProcessingTeleportRequest_19)); } inline bool get_isProcessingTeleportRequest_19() const { return ___isProcessingTeleportRequest_19; } inline bool* get_address_of_isProcessingTeleportRequest_19() { return &___isProcessingTeleportRequest_19; } inline void set_isProcessingTeleportRequest_19(bool value) { ___isProcessingTeleportRequest_19 = value; } inline static int32_t get_offset_of_targetPosition_20() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4, ___targetPosition_20)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_targetPosition_20() const { return ___targetPosition_20; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_targetPosition_20() { return &___targetPosition_20; } inline void set_targetPosition_20(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___targetPosition_20 = value; } inline static int32_t get_offset_of_targetRotation_21() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4, ___targetRotation_21)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_targetRotation_21() const { return ___targetRotation_21; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_targetRotation_21() { return &___targetRotation_21; } inline void set_targetRotation_21(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___targetRotation_21 = value; } inline static int32_t get_offset_of_eventSystemReference_22() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4, ___eventSystemReference_22)); } inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * get_eventSystemReference_22() const { return ___eventSystemReference_22; } inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 ** get_address_of_eventSystemReference_22() { return &___eventSystemReference_22; } inline void set_eventSystemReference_22(GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * value) { ___eventSystemReference_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___eventSystemReference_22), (void*)value); } inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_23() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4, ___U3CNameU3Ek__BackingField_23)); } inline String_t* get_U3CNameU3Ek__BackingField_23() const { return ___U3CNameU3Ek__BackingField_23; } inline String_t** get_address_of_U3CNameU3Ek__BackingField_23() { return &___U3CNameU3Ek__BackingField_23; } inline void set_U3CNameU3Ek__BackingField_23(String_t* value) { ___U3CNameU3Ek__BackingField_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CNameU3Ek__BackingField_23), (void*)value); } inline static int32_t get_offset_of_teleportDuration_25() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4, ___teleportDuration_25)); } inline float get_teleportDuration_25() const { return ___teleportDuration_25; } inline float* get_address_of_teleportDuration_25() { return &___teleportDuration_25; } inline void set_teleportDuration_25(float value) { ___teleportDuration_25 = value; } }; struct MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_StaticFields { public: // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::HandleEventPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___HandleEventPerfMarker_24; // UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<Microsoft.MixedReality.Toolkit.Teleport.IMixedRealityTeleportHandler> Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::OnTeleportRequestHandler EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * ___OnTeleportRequestHandler_26; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::RaiseTeleportRequestPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___RaiseTeleportRequestPerfMarker_27; // UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<Microsoft.MixedReality.Toolkit.Teleport.IMixedRealityTeleportHandler> Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::OnTeleportStartedHandler EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * ___OnTeleportStartedHandler_28; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::RaiseTeleportStartedPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___RaiseTeleportStartedPerfMarker_29; // UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<Microsoft.MixedReality.Toolkit.Teleport.IMixedRealityTeleportHandler> Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::OnTeleportCompletedHandler EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * ___OnTeleportCompletedHandler_30; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::RaiseTeleportCompletePerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___RaiseTeleportCompletePerfMarker_31; // UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<Microsoft.MixedReality.Toolkit.Teleport.IMixedRealityTeleportHandler> Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::OnTeleportCanceledHandler EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * ___OnTeleportCanceledHandler_32; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::RaiseTeleportCanceledPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___RaiseTeleportCanceledPerfMarker_33; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem::ProcessTeleportationRequestPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___ProcessTeleportationRequestPerfMarker_34; public: inline static int32_t get_offset_of_HandleEventPerfMarker_24() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_StaticFields, ___HandleEventPerfMarker_24)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_HandleEventPerfMarker_24() const { return ___HandleEventPerfMarker_24; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_HandleEventPerfMarker_24() { return &___HandleEventPerfMarker_24; } inline void set_HandleEventPerfMarker_24(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___HandleEventPerfMarker_24 = value; } inline static int32_t get_offset_of_OnTeleportRequestHandler_26() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_StaticFields, ___OnTeleportRequestHandler_26)); } inline EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * get_OnTeleportRequestHandler_26() const { return ___OnTeleportRequestHandler_26; } inline EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 ** get_address_of_OnTeleportRequestHandler_26() { return &___OnTeleportRequestHandler_26; } inline void set_OnTeleportRequestHandler_26(EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * value) { ___OnTeleportRequestHandler_26 = value; Il2CppCodeGenWriteBarrier((void**)(&___OnTeleportRequestHandler_26), (void*)value); } inline static int32_t get_offset_of_RaiseTeleportRequestPerfMarker_27() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_StaticFields, ___RaiseTeleportRequestPerfMarker_27)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_RaiseTeleportRequestPerfMarker_27() const { return ___RaiseTeleportRequestPerfMarker_27; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_RaiseTeleportRequestPerfMarker_27() { return &___RaiseTeleportRequestPerfMarker_27; } inline void set_RaiseTeleportRequestPerfMarker_27(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___RaiseTeleportRequestPerfMarker_27 = value; } inline static int32_t get_offset_of_OnTeleportStartedHandler_28() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_StaticFields, ___OnTeleportStartedHandler_28)); } inline EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * get_OnTeleportStartedHandler_28() const { return ___OnTeleportStartedHandler_28; } inline EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 ** get_address_of_OnTeleportStartedHandler_28() { return &___OnTeleportStartedHandler_28; } inline void set_OnTeleportStartedHandler_28(EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * value) { ___OnTeleportStartedHandler_28 = value; Il2CppCodeGenWriteBarrier((void**)(&___OnTeleportStartedHandler_28), (void*)value); } inline static int32_t get_offset_of_RaiseTeleportStartedPerfMarker_29() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_StaticFields, ___RaiseTeleportStartedPerfMarker_29)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_RaiseTeleportStartedPerfMarker_29() const { return ___RaiseTeleportStartedPerfMarker_29; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_RaiseTeleportStartedPerfMarker_29() { return &___RaiseTeleportStartedPerfMarker_29; } inline void set_RaiseTeleportStartedPerfMarker_29(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___RaiseTeleportStartedPerfMarker_29 = value; } inline static int32_t get_offset_of_OnTeleportCompletedHandler_30() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_StaticFields, ___OnTeleportCompletedHandler_30)); } inline EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * get_OnTeleportCompletedHandler_30() const { return ___OnTeleportCompletedHandler_30; } inline EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 ** get_address_of_OnTeleportCompletedHandler_30() { return &___OnTeleportCompletedHandler_30; } inline void set_OnTeleportCompletedHandler_30(EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * value) { ___OnTeleportCompletedHandler_30 = value; Il2CppCodeGenWriteBarrier((void**)(&___OnTeleportCompletedHandler_30), (void*)value); } inline static int32_t get_offset_of_RaiseTeleportCompletePerfMarker_31() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_StaticFields, ___RaiseTeleportCompletePerfMarker_31)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_RaiseTeleportCompletePerfMarker_31() const { return ___RaiseTeleportCompletePerfMarker_31; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_RaiseTeleportCompletePerfMarker_31() { return &___RaiseTeleportCompletePerfMarker_31; } inline void set_RaiseTeleportCompletePerfMarker_31(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___RaiseTeleportCompletePerfMarker_31 = value; } inline static int32_t get_offset_of_OnTeleportCanceledHandler_32() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_StaticFields, ___OnTeleportCanceledHandler_32)); } inline EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * get_OnTeleportCanceledHandler_32() const { return ___OnTeleportCanceledHandler_32; } inline EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 ** get_address_of_OnTeleportCanceledHandler_32() { return &___OnTeleportCanceledHandler_32; } inline void set_OnTeleportCanceledHandler_32(EventFunction_1_t2079745996CCF03481820B14D7A046C05D966246 * value) { ___OnTeleportCanceledHandler_32 = value; Il2CppCodeGenWriteBarrier((void**)(&___OnTeleportCanceledHandler_32), (void*)value); } inline static int32_t get_offset_of_RaiseTeleportCanceledPerfMarker_33() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_StaticFields, ___RaiseTeleportCanceledPerfMarker_33)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_RaiseTeleportCanceledPerfMarker_33() const { return ___RaiseTeleportCanceledPerfMarker_33; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_RaiseTeleportCanceledPerfMarker_33() { return &___RaiseTeleportCanceledPerfMarker_33; } inline void set_RaiseTeleportCanceledPerfMarker_33(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___RaiseTeleportCanceledPerfMarker_33 = value; } inline static int32_t get_offset_of_ProcessTeleportationRequestPerfMarker_34() { return static_cast<int32_t>(offsetof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_StaticFields, ___ProcessTeleportationRequestPerfMarker_34)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_ProcessTeleportationRequestPerfMarker_34() const { return ___ProcessTeleportationRequestPerfMarker_34; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_ProcessTeleportationRequestPerfMarker_34() { return &___ProcessTeleportationRequestPerfMarker_34; } inline void set_ProcessTeleportationRequestPerfMarker_34(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___ProcessTeleportationRequestPerfMarker_34 = value; } }; // Microsoft.MixedReality.Toolkit.Input.UnityInput.MouseDeviceManager struct MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C : public BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB { public: // System.Single Microsoft.MixedReality.Toolkit.Input.UnityInput.MouseDeviceManager::cursorSpeed float ___cursorSpeed_19; // System.Single Microsoft.MixedReality.Toolkit.Input.UnityInput.MouseDeviceManager::wheelSpeed float ___wheelSpeed_20; // Microsoft.MixedReality.Toolkit.Input.UnityInput.MouseController Microsoft.MixedReality.Toolkit.Input.UnityInput.MouseDeviceManager::<Controller>k__BackingField MouseController_t3A7451F1C270293BDDED7C6012F92C6023F21E0C * ___U3CControllerU3Ek__BackingField_21; public: inline static int32_t get_offset_of_cursorSpeed_19() { return static_cast<int32_t>(offsetof(MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C, ___cursorSpeed_19)); } inline float get_cursorSpeed_19() const { return ___cursorSpeed_19; } inline float* get_address_of_cursorSpeed_19() { return &___cursorSpeed_19; } inline void set_cursorSpeed_19(float value) { ___cursorSpeed_19 = value; } inline static int32_t get_offset_of_wheelSpeed_20() { return static_cast<int32_t>(offsetof(MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C, ___wheelSpeed_20)); } inline float get_wheelSpeed_20() const { return ___wheelSpeed_20; } inline float* get_address_of_wheelSpeed_20() { return &___wheelSpeed_20; } inline void set_wheelSpeed_20(float value) { ___wheelSpeed_20 = value; } inline static int32_t get_offset_of_U3CControllerU3Ek__BackingField_21() { return static_cast<int32_t>(offsetof(MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C, ___U3CControllerU3Ek__BackingField_21)); } inline MouseController_t3A7451F1C270293BDDED7C6012F92C6023F21E0C * get_U3CControllerU3Ek__BackingField_21() const { return ___U3CControllerU3Ek__BackingField_21; } inline MouseController_t3A7451F1C270293BDDED7C6012F92C6023F21E0C ** get_address_of_U3CControllerU3Ek__BackingField_21() { return &___U3CControllerU3Ek__BackingField_21; } inline void set_U3CControllerU3Ek__BackingField_21(MouseController_t3A7451F1C270293BDDED7C6012F92C6023F21E0C * value) { ___U3CControllerU3Ek__BackingField_21 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CControllerU3Ek__BackingField_21), (void*)value); } }; struct MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C_StaticFields { public: // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.Input.UnityInput.MouseDeviceManager::UpdatePerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___UpdatePerfMarker_22; public: inline static int32_t get_offset_of_UpdatePerfMarker_22() { return static_cast<int32_t>(offsetof(MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C_StaticFields, ___UpdatePerfMarker_22)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_UpdatePerfMarker_22() const { return ___UpdatePerfMarker_22; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_UpdatePerfMarker_22() { return &___UpdatePerfMarker_22; } inline void set_UpdatePerfMarker_22(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___UpdatePerfMarker_22 = value; } }; // Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider struct OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85 : public BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB { public: // System.Boolean Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::<SmoothEyeTracking>k__BackingField bool ___U3CSmoothEyeTrackingU3Ek__BackingField_17; // System.Action Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::OnSaccade Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 * ___OnSaccade_18; // System.Action Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::OnSaccadeX Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 * ___OnSaccadeX_19; // System.Action Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::OnSaccadeY Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 * ___OnSaccadeY_20; // System.Single Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::smoothFactorNormalized float ___smoothFactorNormalized_21; // System.Single Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::saccadeThreshInDegree float ___saccadeThreshInDegree_22; // System.Nullable`1<UnityEngine.Ray> Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::oldGaze Nullable_1_tCE70D5232DA58B57AD93CA774181BD1FAA49A963 ___oldGaze_23; // System.Int32 Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::confidenceOfSaccade int32_t ___confidenceOfSaccade_24; // System.Int32 Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::confidenceOfSaccadeThreshold int32_t ___confidenceOfSaccadeThreshold_25; // UnityEngine.Ray Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::saccade_initialGazePoint Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 ___saccade_initialGazePoint_26; // System.Collections.Generic.List`1<UnityEngine.Ray> Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::saccade_newGazeCluster List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B * ___saccade_newGazeCluster_27; // UnityEngine.XR.InputDevice Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::eyeTrackingDevice InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E ___eyeTrackingDevice_29; public: inline static int32_t get_offset_of_U3CSmoothEyeTrackingU3Ek__BackingField_17() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___U3CSmoothEyeTrackingU3Ek__BackingField_17)); } inline bool get_U3CSmoothEyeTrackingU3Ek__BackingField_17() const { return ___U3CSmoothEyeTrackingU3Ek__BackingField_17; } inline bool* get_address_of_U3CSmoothEyeTrackingU3Ek__BackingField_17() { return &___U3CSmoothEyeTrackingU3Ek__BackingField_17; } inline void set_U3CSmoothEyeTrackingU3Ek__BackingField_17(bool value) { ___U3CSmoothEyeTrackingU3Ek__BackingField_17 = value; } inline static int32_t get_offset_of_OnSaccade_18() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___OnSaccade_18)); } inline Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 * get_OnSaccade_18() const { return ___OnSaccade_18; } inline Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 ** get_address_of_OnSaccade_18() { return &___OnSaccade_18; } inline void set_OnSaccade_18(Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 * value) { ___OnSaccade_18 = value; Il2CppCodeGenWriteBarrier((void**)(&___OnSaccade_18), (void*)value); } inline static int32_t get_offset_of_OnSaccadeX_19() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___OnSaccadeX_19)); } inline Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 * get_OnSaccadeX_19() const { return ___OnSaccadeX_19; } inline Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 ** get_address_of_OnSaccadeX_19() { return &___OnSaccadeX_19; } inline void set_OnSaccadeX_19(Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 * value) { ___OnSaccadeX_19 = value; Il2CppCodeGenWriteBarrier((void**)(&___OnSaccadeX_19), (void*)value); } inline static int32_t get_offset_of_OnSaccadeY_20() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___OnSaccadeY_20)); } inline Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 * get_OnSaccadeY_20() const { return ___OnSaccadeY_20; } inline Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 ** get_address_of_OnSaccadeY_20() { return &___OnSaccadeY_20; } inline void set_OnSaccadeY_20(Action_tAF41423D285AE0862865348CF6CE51CD085ABBA6 * value) { ___OnSaccadeY_20 = value; Il2CppCodeGenWriteBarrier((void**)(&___OnSaccadeY_20), (void*)value); } inline static int32_t get_offset_of_smoothFactorNormalized_21() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___smoothFactorNormalized_21)); } inline float get_smoothFactorNormalized_21() const { return ___smoothFactorNormalized_21; } inline float* get_address_of_smoothFactorNormalized_21() { return &___smoothFactorNormalized_21; } inline void set_smoothFactorNormalized_21(float value) { ___smoothFactorNormalized_21 = value; } inline static int32_t get_offset_of_saccadeThreshInDegree_22() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___saccadeThreshInDegree_22)); } inline float get_saccadeThreshInDegree_22() const { return ___saccadeThreshInDegree_22; } inline float* get_address_of_saccadeThreshInDegree_22() { return &___saccadeThreshInDegree_22; } inline void set_saccadeThreshInDegree_22(float value) { ___saccadeThreshInDegree_22 = value; } inline static int32_t get_offset_of_oldGaze_23() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___oldGaze_23)); } inline Nullable_1_tCE70D5232DA58B57AD93CA774181BD1FAA49A963 get_oldGaze_23() const { return ___oldGaze_23; } inline Nullable_1_tCE70D5232DA58B57AD93CA774181BD1FAA49A963 * get_address_of_oldGaze_23() { return &___oldGaze_23; } inline void set_oldGaze_23(Nullable_1_tCE70D5232DA58B57AD93CA774181BD1FAA49A963 value) { ___oldGaze_23 = value; } inline static int32_t get_offset_of_confidenceOfSaccade_24() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___confidenceOfSaccade_24)); } inline int32_t get_confidenceOfSaccade_24() const { return ___confidenceOfSaccade_24; } inline int32_t* get_address_of_confidenceOfSaccade_24() { return &___confidenceOfSaccade_24; } inline void set_confidenceOfSaccade_24(int32_t value) { ___confidenceOfSaccade_24 = value; } inline static int32_t get_offset_of_confidenceOfSaccadeThreshold_25() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___confidenceOfSaccadeThreshold_25)); } inline int32_t get_confidenceOfSaccadeThreshold_25() const { return ___confidenceOfSaccadeThreshold_25; } inline int32_t* get_address_of_confidenceOfSaccadeThreshold_25() { return &___confidenceOfSaccadeThreshold_25; } inline void set_confidenceOfSaccadeThreshold_25(int32_t value) { ___confidenceOfSaccadeThreshold_25 = value; } inline static int32_t get_offset_of_saccade_initialGazePoint_26() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___saccade_initialGazePoint_26)); } inline Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 get_saccade_initialGazePoint_26() const { return ___saccade_initialGazePoint_26; } inline Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 * get_address_of_saccade_initialGazePoint_26() { return &___saccade_initialGazePoint_26; } inline void set_saccade_initialGazePoint_26(Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 value) { ___saccade_initialGazePoint_26 = value; } inline static int32_t get_offset_of_saccade_newGazeCluster_27() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___saccade_newGazeCluster_27)); } inline List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B * get_saccade_newGazeCluster_27() const { return ___saccade_newGazeCluster_27; } inline List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B ** get_address_of_saccade_newGazeCluster_27() { return &___saccade_newGazeCluster_27; } inline void set_saccade_newGazeCluster_27(List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B * value) { ___saccade_newGazeCluster_27 = value; Il2CppCodeGenWriteBarrier((void**)(&___saccade_newGazeCluster_27), (void*)value); } inline static int32_t get_offset_of_eyeTrackingDevice_29() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85, ___eyeTrackingDevice_29)); } inline InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E get_eyeTrackingDevice_29() const { return ___eyeTrackingDevice_29; } inline InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E * get_address_of_eyeTrackingDevice_29() { return &___eyeTrackingDevice_29; } inline void set_eyeTrackingDevice_29(InputDevice_t69B790C68145C769BA3819DE33AA94155C77207E value) { ___eyeTrackingDevice_29 = value; } }; struct OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85_StaticFields { public: // System.Collections.Generic.List`1<UnityEngine.XR.InputDevice> Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::InputDeviceList List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * ___InputDeviceList_28; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::UpdatePerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___UpdatePerfMarker_30; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::SmoothGazePerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___SmoothGazePerfMarker_31; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider::IsSaccadingPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___IsSaccadingPerfMarker_32; public: inline static int32_t get_offset_of_InputDeviceList_28() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85_StaticFields, ___InputDeviceList_28)); } inline List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * get_InputDeviceList_28() const { return ___InputDeviceList_28; } inline List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F ** get_address_of_InputDeviceList_28() { return &___InputDeviceList_28; } inline void set_InputDeviceList_28(List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * value) { ___InputDeviceList_28 = value; Il2CppCodeGenWriteBarrier((void**)(&___InputDeviceList_28), (void*)value); } inline static int32_t get_offset_of_UpdatePerfMarker_30() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85_StaticFields, ___UpdatePerfMarker_30)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_UpdatePerfMarker_30() const { return ___UpdatePerfMarker_30; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_UpdatePerfMarker_30() { return &___UpdatePerfMarker_30; } inline void set_UpdatePerfMarker_30(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___UpdatePerfMarker_30 = value; } inline static int32_t get_offset_of_SmoothGazePerfMarker_31() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85_StaticFields, ___SmoothGazePerfMarker_31)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_SmoothGazePerfMarker_31() const { return ___SmoothGazePerfMarker_31; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_SmoothGazePerfMarker_31() { return &___SmoothGazePerfMarker_31; } inline void set_SmoothGazePerfMarker_31(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___SmoothGazePerfMarker_31 = value; } inline static int32_t get_offset_of_IsSaccadingPerfMarker_32() { return static_cast<int32_t>(offsetof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85_StaticFields, ___IsSaccadingPerfMarker_32)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_IsSaccadingPerfMarker_32() const { return ___IsSaccadingPerfMarker_32; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_IsSaccadingPerfMarker_32() { return &___IsSaccadingPerfMarker_32; } inline void set_IsSaccadingPerfMarker_32(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___IsSaccadingPerfMarker_32 = value; } }; // UnityEngine.RectTransform struct RectTransform_t8A6A306FB29A6C8C22010CF9040E319753571072 : public Transform_tA8193BB29D4D2C7EC04918F3ED1816345186C3F1 { public: public: }; struct RectTransform_t8A6A306FB29A6C8C22010CF9040E319753571072_StaticFields { public: // UnityEngine.RectTransform/ReapplyDrivenProperties UnityEngine.RectTransform::reapplyDrivenProperties ReapplyDrivenProperties_t1441259DADA8FE33A95334AC24C017DFA3DEB4CE * ___reapplyDrivenProperties_4; public: inline static int32_t get_offset_of_reapplyDrivenProperties_4() { return static_cast<int32_t>(offsetof(RectTransform_t8A6A306FB29A6C8C22010CF9040E319753571072_StaticFields, ___reapplyDrivenProperties_4)); } inline ReapplyDrivenProperties_t1441259DADA8FE33A95334AC24C017DFA3DEB4CE * get_reapplyDrivenProperties_4() const { return ___reapplyDrivenProperties_4; } inline ReapplyDrivenProperties_t1441259DADA8FE33A95334AC24C017DFA3DEB4CE ** get_address_of_reapplyDrivenProperties_4() { return &___reapplyDrivenProperties_4; } inline void set_reapplyDrivenProperties_4(ReapplyDrivenProperties_t1441259DADA8FE33A95334AC24C017DFA3DEB4CE * value) { ___reapplyDrivenProperties_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___reapplyDrivenProperties_4), (void*)value); } }; // Microsoft.MixedReality.Toolkit.XRSDK.Input.XRSDKDeviceManager struct XRSDKDeviceManager_t2A4831339BEF1FB396AA5D6BECED2EFAD7620719 : public BaseInputDeviceManager_t6A4D499FDBD693F4F9D789864B32292DB36568FB { public: // System.Collections.Generic.List`1<UnityEngine.XR.InputDevice> Microsoft.MixedReality.Toolkit.XRSDK.Input.XRSDKDeviceManager::inputDevices List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * ___inputDevices_18; // System.Collections.Generic.List`1<UnityEngine.XR.InputDevice> Microsoft.MixedReality.Toolkit.XRSDK.Input.XRSDKDeviceManager::inputDevicesSubset List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * ___inputDevicesSubset_19; // System.Collections.Generic.List`1<UnityEngine.XR.InputDevice> Microsoft.MixedReality.Toolkit.XRSDK.Input.XRSDKDeviceManager::lastInputDevices List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * ___lastInputDevices_20; // System.Collections.Generic.List`1<UnityEngine.XR.InputDeviceCharacteristics> Microsoft.MixedReality.Toolkit.XRSDK.Input.XRSDKDeviceManager::<DesiredInputCharacteristics>k__BackingField List_1_tD812850D83CCFFD34E9A310E2AE62B198E513F2C * ___U3CDesiredInputCharacteristicsU3Ek__BackingField_21; public: inline static int32_t get_offset_of_inputDevices_18() { return static_cast<int32_t>(offsetof(XRSDKDeviceManager_t2A4831339BEF1FB396AA5D6BECED2EFAD7620719, ___inputDevices_18)); } inline List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * get_inputDevices_18() const { return ___inputDevices_18; } inline List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F ** get_address_of_inputDevices_18() { return &___inputDevices_18; } inline void set_inputDevices_18(List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * value) { ___inputDevices_18 = value; Il2CppCodeGenWriteBarrier((void**)(&___inputDevices_18), (void*)value); } inline static int32_t get_offset_of_inputDevicesSubset_19() { return static_cast<int32_t>(offsetof(XRSDKDeviceManager_t2A4831339BEF1FB396AA5D6BECED2EFAD7620719, ___inputDevicesSubset_19)); } inline List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * get_inputDevicesSubset_19() const { return ___inputDevicesSubset_19; } inline List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F ** get_address_of_inputDevicesSubset_19() { return &___inputDevicesSubset_19; } inline void set_inputDevicesSubset_19(List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * value) { ___inputDevicesSubset_19 = value; Il2CppCodeGenWriteBarrier((void**)(&___inputDevicesSubset_19), (void*)value); } inline static int32_t get_offset_of_lastInputDevices_20() { return static_cast<int32_t>(offsetof(XRSDKDeviceManager_t2A4831339BEF1FB396AA5D6BECED2EFAD7620719, ___lastInputDevices_20)); } inline List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * get_lastInputDevices_20() const { return ___lastInputDevices_20; } inline List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F ** get_address_of_lastInputDevices_20() { return &___lastInputDevices_20; } inline void set_lastInputDevices_20(List_1_t476C8CC2E74FC5F7DE5B5CFE6830822665402F1F * value) { ___lastInputDevices_20 = value; Il2CppCodeGenWriteBarrier((void**)(&___lastInputDevices_20), (void*)value); } inline static int32_t get_offset_of_U3CDesiredInputCharacteristicsU3Ek__BackingField_21() { return static_cast<int32_t>(offsetof(XRSDKDeviceManager_t2A4831339BEF1FB396AA5D6BECED2EFAD7620719, ___U3CDesiredInputCharacteristicsU3Ek__BackingField_21)); } inline List_1_tD812850D83CCFFD34E9A310E2AE62B198E513F2C * get_U3CDesiredInputCharacteristicsU3Ek__BackingField_21() const { return ___U3CDesiredInputCharacteristicsU3Ek__BackingField_21; } inline List_1_tD812850D83CCFFD34E9A310E2AE62B198E513F2C ** get_address_of_U3CDesiredInputCharacteristicsU3Ek__BackingField_21() { return &___U3CDesiredInputCharacteristicsU3Ek__BackingField_21; } inline void set_U3CDesiredInputCharacteristicsU3Ek__BackingField_21(List_1_tD812850D83CCFFD34E9A310E2AE62B198E513F2C * value) { ___U3CDesiredInputCharacteristicsU3Ek__BackingField_21 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CDesiredInputCharacteristicsU3Ek__BackingField_21), (void*)value); } }; struct XRSDKDeviceManager_t2A4831339BEF1FB396AA5D6BECED2EFAD7620719_StaticFields { public: // System.Collections.Generic.Dictionary`2<UnityEngine.XR.InputDevice,Microsoft.MixedReality.Toolkit.XRSDK.Input.GenericXRSDKController> Microsoft.MixedReality.Toolkit.XRSDK.Input.XRSDKDeviceManager::ActiveControllers Dictionary_2_t2FB6B87AE845471F5ACC7900099F9B8BFE071E0E * ___ActiveControllers_17; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.XRSDK.Input.XRSDKDeviceManager::UpdatePerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___UpdatePerfMarker_22; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.XRSDK.Input.XRSDKDeviceManager::GetOrAddControllerPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___GetOrAddControllerPerfMarker_23; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.XRSDK.Input.XRSDKDeviceManager::RemoveControllerPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___RemoveControllerPerfMarker_24; public: inline static int32_t get_offset_of_ActiveControllers_17() { return static_cast<int32_t>(offsetof(XRSDKDeviceManager_t2A4831339BEF1FB396AA5D6BECED2EFAD7620719_StaticFields, ___ActiveControllers_17)); } inline Dictionary_2_t2FB6B87AE845471F5ACC7900099F9B8BFE071E0E * get_ActiveControllers_17() const { return ___ActiveControllers_17; } inline Dictionary_2_t2FB6B87AE845471F5ACC7900099F9B8BFE071E0E ** get_address_of_ActiveControllers_17() { return &___ActiveControllers_17; } inline void set_ActiveControllers_17(Dictionary_2_t2FB6B87AE845471F5ACC7900099F9B8BFE071E0E * value) { ___ActiveControllers_17 = value; Il2CppCodeGenWriteBarrier((void**)(&___ActiveControllers_17), (void*)value); } inline static int32_t get_offset_of_UpdatePerfMarker_22() { return static_cast<int32_t>(offsetof(XRSDKDeviceManager_t2A4831339BEF1FB396AA5D6BECED2EFAD7620719_StaticFields, ___UpdatePerfMarker_22)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_UpdatePerfMarker_22() const { return ___UpdatePerfMarker_22; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_UpdatePerfMarker_22() { return &___UpdatePerfMarker_22; } inline void set_UpdatePerfMarker_22(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___UpdatePerfMarker_22 = value; } inline static int32_t get_offset_of_GetOrAddControllerPerfMarker_23() { return static_cast<int32_t>(offsetof(XRSDKDeviceManager_t2A4831339BEF1FB396AA5D6BECED2EFAD7620719_StaticFields, ___GetOrAddControllerPerfMarker_23)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_GetOrAddControllerPerfMarker_23() const { return ___GetOrAddControllerPerfMarker_23; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_GetOrAddControllerPerfMarker_23() { return &___GetOrAddControllerPerfMarker_23; } inline void set_GetOrAddControllerPerfMarker_23(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___GetOrAddControllerPerfMarker_23 = value; } inline static int32_t get_offset_of_RemoveControllerPerfMarker_24() { return static_cast<int32_t>(offsetof(XRSDKDeviceManager_t2A4831339BEF1FB396AA5D6BECED2EFAD7620719_StaticFields, ___RemoveControllerPerfMarker_24)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_RemoveControllerPerfMarker_24() const { return ___RemoveControllerPerfMarker_24; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_RemoveControllerPerfMarker_24() { return &___RemoveControllerPerfMarker_24; } inline void set_RemoveControllerPerfMarker_24(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___RemoveControllerPerfMarker_24 = value; } }; // Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem struct MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90 : public BaseDataProviderAccessCoreSystem_t7A7B0A8F1AA8A4A6F16E2590B1A5125C9D6B6B47 { public: // System.String Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::<Name>k__BackingField String_t* ___U3CNameU3Ek__BackingField_20; // Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessEventData`1<Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject> Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::meshEventData MixedRealitySpatialAwarenessEventData_1_t7ED8A8C4F13DE7DA0CDB49A53184152431B8337F * ___meshEventData_21; // UnityEngine.GameObject Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::spatialAwarenessObjectParent GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___spatialAwarenessObjectParent_22; // System.UInt32 Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::nextSourceId uint32_t ___nextSourceId_23; // Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystemProfile Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::spatialAwarenessSystemProfile MixedRealitySpatialAwarenessSystemProfile_tFA00D9B0001845CDB1DEB2D3E3BB08CB3A553891 * ___spatialAwarenessSystemProfile_24; public: inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_20() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90, ___U3CNameU3Ek__BackingField_20)); } inline String_t* get_U3CNameU3Ek__BackingField_20() const { return ___U3CNameU3Ek__BackingField_20; } inline String_t** get_address_of_U3CNameU3Ek__BackingField_20() { return &___U3CNameU3Ek__BackingField_20; } inline void set_U3CNameU3Ek__BackingField_20(String_t* value) { ___U3CNameU3Ek__BackingField_20 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CNameU3Ek__BackingField_20), (void*)value); } inline static int32_t get_offset_of_meshEventData_21() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90, ___meshEventData_21)); } inline MixedRealitySpatialAwarenessEventData_1_t7ED8A8C4F13DE7DA0CDB49A53184152431B8337F * get_meshEventData_21() const { return ___meshEventData_21; } inline MixedRealitySpatialAwarenessEventData_1_t7ED8A8C4F13DE7DA0CDB49A53184152431B8337F ** get_address_of_meshEventData_21() { return &___meshEventData_21; } inline void set_meshEventData_21(MixedRealitySpatialAwarenessEventData_1_t7ED8A8C4F13DE7DA0CDB49A53184152431B8337F * value) { ___meshEventData_21 = value; Il2CppCodeGenWriteBarrier((void**)(&___meshEventData_21), (void*)value); } inline static int32_t get_offset_of_spatialAwarenessObjectParent_22() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90, ___spatialAwarenessObjectParent_22)); } inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * get_spatialAwarenessObjectParent_22() const { return ___spatialAwarenessObjectParent_22; } inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 ** get_address_of_spatialAwarenessObjectParent_22() { return &___spatialAwarenessObjectParent_22; } inline void set_spatialAwarenessObjectParent_22(GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * value) { ___spatialAwarenessObjectParent_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___spatialAwarenessObjectParent_22), (void*)value); } inline static int32_t get_offset_of_nextSourceId_23() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90, ___nextSourceId_23)); } inline uint32_t get_nextSourceId_23() const { return ___nextSourceId_23; } inline uint32_t* get_address_of_nextSourceId_23() { return &___nextSourceId_23; } inline void set_nextSourceId_23(uint32_t value) { ___nextSourceId_23 = value; } inline static int32_t get_offset_of_spatialAwarenessSystemProfile_24() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90, ___spatialAwarenessSystemProfile_24)); } inline MixedRealitySpatialAwarenessSystemProfile_tFA00D9B0001845CDB1DEB2D3E3BB08CB3A553891 * get_spatialAwarenessSystemProfile_24() const { return ___spatialAwarenessSystemProfile_24; } inline MixedRealitySpatialAwarenessSystemProfile_tFA00D9B0001845CDB1DEB2D3E3BB08CB3A553891 ** get_address_of_spatialAwarenessSystemProfile_24() { return &___spatialAwarenessSystemProfile_24; } inline void set_spatialAwarenessSystemProfile_24(MixedRealitySpatialAwarenessSystemProfile_tFA00D9B0001845CDB1DEB2D3E3BB08CB3A553891 * value) { ___spatialAwarenessSystemProfile_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___spatialAwarenessSystemProfile_24), (void*)value); } }; struct MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields { public: // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::GetObserversPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___GetObserversPerfMarker_25; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::GetObserversTPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___GetObserversTPerfMarker_26; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::GetObserverPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___GetObserverPerfMarker_27; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::GetObserverTPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___GetObserverTPerfMarker_28; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::GetDataProvidersPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___GetDataProvidersPerfMarker_29; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::GetDataProviderPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___GetDataProviderPerfMarker_30; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::ResumeObserversPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___ResumeObserversPerfMarker_31; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::ResumeObserversTPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___ResumeObserversTPerfMarker_32; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::ResumeObserverPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___ResumeObserverPerfMarker_33; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::SuspendObserversPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___SuspendObserversPerfMarker_34; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::SuspendObserversTPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___SuspendObserversTPerfMarker_35; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::SuspendObserverPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___SuspendObserverPerfMarker_36; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::ClearObservationsPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___ClearObservationsPerfMarker_37; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem::ClearObservationsTPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___ClearObservationsTPerfMarker_38; public: inline static int32_t get_offset_of_GetObserversPerfMarker_25() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___GetObserversPerfMarker_25)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_GetObserversPerfMarker_25() const { return ___GetObserversPerfMarker_25; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_GetObserversPerfMarker_25() { return &___GetObserversPerfMarker_25; } inline void set_GetObserversPerfMarker_25(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___GetObserversPerfMarker_25 = value; } inline static int32_t get_offset_of_GetObserversTPerfMarker_26() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___GetObserversTPerfMarker_26)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_GetObserversTPerfMarker_26() const { return ___GetObserversTPerfMarker_26; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_GetObserversTPerfMarker_26() { return &___GetObserversTPerfMarker_26; } inline void set_GetObserversTPerfMarker_26(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___GetObserversTPerfMarker_26 = value; } inline static int32_t get_offset_of_GetObserverPerfMarker_27() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___GetObserverPerfMarker_27)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_GetObserverPerfMarker_27() const { return ___GetObserverPerfMarker_27; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_GetObserverPerfMarker_27() { return &___GetObserverPerfMarker_27; } inline void set_GetObserverPerfMarker_27(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___GetObserverPerfMarker_27 = value; } inline static int32_t get_offset_of_GetObserverTPerfMarker_28() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___GetObserverTPerfMarker_28)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_GetObserverTPerfMarker_28() const { return ___GetObserverTPerfMarker_28; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_GetObserverTPerfMarker_28() { return &___GetObserverTPerfMarker_28; } inline void set_GetObserverTPerfMarker_28(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___GetObserverTPerfMarker_28 = value; } inline static int32_t get_offset_of_GetDataProvidersPerfMarker_29() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___GetDataProvidersPerfMarker_29)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_GetDataProvidersPerfMarker_29() const { return ___GetDataProvidersPerfMarker_29; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_GetDataProvidersPerfMarker_29() { return &___GetDataProvidersPerfMarker_29; } inline void set_GetDataProvidersPerfMarker_29(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___GetDataProvidersPerfMarker_29 = value; } inline static int32_t get_offset_of_GetDataProviderPerfMarker_30() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___GetDataProviderPerfMarker_30)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_GetDataProviderPerfMarker_30() const { return ___GetDataProviderPerfMarker_30; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_GetDataProviderPerfMarker_30() { return &___GetDataProviderPerfMarker_30; } inline void set_GetDataProviderPerfMarker_30(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___GetDataProviderPerfMarker_30 = value; } inline static int32_t get_offset_of_ResumeObserversPerfMarker_31() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___ResumeObserversPerfMarker_31)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_ResumeObserversPerfMarker_31() const { return ___ResumeObserversPerfMarker_31; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_ResumeObserversPerfMarker_31() { return &___ResumeObserversPerfMarker_31; } inline void set_ResumeObserversPerfMarker_31(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___ResumeObserversPerfMarker_31 = value; } inline static int32_t get_offset_of_ResumeObserversTPerfMarker_32() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___ResumeObserversTPerfMarker_32)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_ResumeObserversTPerfMarker_32() const { return ___ResumeObserversTPerfMarker_32; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_ResumeObserversTPerfMarker_32() { return &___ResumeObserversTPerfMarker_32; } inline void set_ResumeObserversTPerfMarker_32(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___ResumeObserversTPerfMarker_32 = value; } inline static int32_t get_offset_of_ResumeObserverPerfMarker_33() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___ResumeObserverPerfMarker_33)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_ResumeObserverPerfMarker_33() const { return ___ResumeObserverPerfMarker_33; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_ResumeObserverPerfMarker_33() { return &___ResumeObserverPerfMarker_33; } inline void set_ResumeObserverPerfMarker_33(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___ResumeObserverPerfMarker_33 = value; } inline static int32_t get_offset_of_SuspendObserversPerfMarker_34() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___SuspendObserversPerfMarker_34)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_SuspendObserversPerfMarker_34() const { return ___SuspendObserversPerfMarker_34; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_SuspendObserversPerfMarker_34() { return &___SuspendObserversPerfMarker_34; } inline void set_SuspendObserversPerfMarker_34(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___SuspendObserversPerfMarker_34 = value; } inline static int32_t get_offset_of_SuspendObserversTPerfMarker_35() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___SuspendObserversTPerfMarker_35)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_SuspendObserversTPerfMarker_35() const { return ___SuspendObserversTPerfMarker_35; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_SuspendObserversTPerfMarker_35() { return &___SuspendObserversTPerfMarker_35; } inline void set_SuspendObserversTPerfMarker_35(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___SuspendObserversTPerfMarker_35 = value; } inline static int32_t get_offset_of_SuspendObserverPerfMarker_36() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___SuspendObserverPerfMarker_36)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_SuspendObserverPerfMarker_36() const { return ___SuspendObserverPerfMarker_36; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_SuspendObserverPerfMarker_36() { return &___SuspendObserverPerfMarker_36; } inline void set_SuspendObserverPerfMarker_36(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___SuspendObserverPerfMarker_36 = value; } inline static int32_t get_offset_of_ClearObservationsPerfMarker_37() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___ClearObservationsPerfMarker_37)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_ClearObservationsPerfMarker_37() const { return ___ClearObservationsPerfMarker_37; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_ClearObservationsPerfMarker_37() { return &___ClearObservationsPerfMarker_37; } inline void set_ClearObservationsPerfMarker_37(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___ClearObservationsPerfMarker_37 = value; } inline static int32_t get_offset_of_ClearObservationsTPerfMarker_38() { return static_cast<int32_t>(offsetof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_StaticFields, ___ClearObservationsTPerfMarker_38)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_ClearObservationsTPerfMarker_38() const { return ___ClearObservationsTPerfMarker_38; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_ClearObservationsTPerfMarker_38() { return &___ClearObservationsTPerfMarker_38; } inline void set_ClearObservationsTPerfMarker_38(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___ClearObservationsTPerfMarker_38 = value; } }; // Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXRDeviceManager struct OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604 : public XRSDKDeviceManager_t2A4831339BEF1FB396AA5D6BECED2EFAD7620719 { public: // System.Nullable`1<System.Boolean> Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXRDeviceManager::isActiveLoader Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 ___isActiveLoader_25; public: inline static int32_t get_offset_of_isActiveLoader_25() { return static_cast<int32_t>(offsetof(OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604, ___isActiveLoader_25)); } inline Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 get_isActiveLoader_25() const { return ___isActiveLoader_25; } inline Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 * get_address_of_isActiveLoader_25() { return &___isActiveLoader_25; } inline void set_isActiveLoader_25(Nullable_1_t1D1CD146BFCBDC2E53E1F700889F8C5C21063EF3 value) { ___isActiveLoader_25 = value; } }; struct OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604_StaticFields { public: // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXRDeviceManager::GetOrAddControllerPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___GetOrAddControllerPerfMarker_26; // Unity.Profiling.ProfilerMarker Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXRDeviceManager::RemoveControllerPerfMarker ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 ___RemoveControllerPerfMarker_27; public: inline static int32_t get_offset_of_GetOrAddControllerPerfMarker_26() { return static_cast<int32_t>(offsetof(OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604_StaticFields, ___GetOrAddControllerPerfMarker_26)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_GetOrAddControllerPerfMarker_26() const { return ___GetOrAddControllerPerfMarker_26; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_GetOrAddControllerPerfMarker_26() { return &___GetOrAddControllerPerfMarker_26; } inline void set_GetOrAddControllerPerfMarker_26(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___GetOrAddControllerPerfMarker_26 = value; } inline static int32_t get_offset_of_RemoveControllerPerfMarker_27() { return static_cast<int32_t>(offsetof(OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604_StaticFields, ___RemoveControllerPerfMarker_27)); } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 get_RemoveControllerPerfMarker_27() const { return ___RemoveControllerPerfMarker_27; } inline ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 * get_address_of_RemoveControllerPerfMarker_27() { return &___RemoveControllerPerfMarker_27; } inline void set_RemoveControllerPerfMarker_27(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 value) { ___RemoveControllerPerfMarker_27 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif il2cpp_hresult_t IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(RuntimeObject* __this); il2cpp_hresult_t IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue); il2cpp_hresult_t IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue); // System.Byte System.Int32::System.IConvertible.ToByte(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t Int32_System_IConvertible_ToByte_mF20DC676FA2B16FA587B48C46126FF3A510FC2FE (int32_t* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.Int16 System.Int32::System.IConvertible.ToInt16(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int16_t Int32_System_IConvertible_ToInt16_m546AEA11867A3FB43C753862D37C5E5D903A998A (int32_t* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.UInt16 System.Int32::System.IConvertible.ToUInt16(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint16_t Int32_System_IConvertible_ToUInt16_m4F02D84F201B3DD4F14E0DB290FFDF6484186C1D (int32_t* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.UInt32 System.Int32::System.IConvertible.ToUInt32(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint32_t Int32_System_IConvertible_ToUInt32_m32F7902EB35E916E5066F4F8F2A62C9EE4625F61 (int32_t* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.Int64 System.Int32::System.IConvertible.ToInt64(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int64_t Int32_System_IConvertible_ToInt64_m8D333A53E7A5D76D06626647D5C323E3D7DEAF7F (int32_t* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.UInt64 System.Int32::System.IConvertible.ToUInt64(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint64_t Int32_System_IConvertible_ToUInt64_m624D1F3CF0A12FE5BA34183B454C4E87C4CA92F8 (int32_t* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.Single System.Int32::System.IConvertible.ToSingle(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Int32_System_IConvertible_ToSingle_mA4658FD9FC83A12B7A9F9D5C3663354BA768D12B (int32_t* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.Double System.Int32::System.IConvertible.ToDouble(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR double Int32_System_IConvertible_ToDouble_mBE6FF400E38A132D26CA5C073F5DF78446C0FED1 (int32_t* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.Byte System.Single::System.IConvertible.ToByte(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t Single_System_IConvertible_ToByte_m8FAE4E8EDDF055FF2F17C2C00D091EBAA0099D49 (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.Int16 System.Single::System.IConvertible.ToInt16(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int16_t Single_System_IConvertible_ToInt16_mBED24FBB9C6465ABAECDC3C894F41B7CF0E6FC6A (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.UInt16 System.Single::System.IConvertible.ToUInt16(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint16_t Single_System_IConvertible_ToUInt16_mCBB71CEDC4797B00D50B4417A96EC702076C757A (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.Int32 System.Single::System.IConvertible.ToInt32(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Single_System_IConvertible_ToInt32_mD144638A230B62184C32B38DFFFDF955353F42AC (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.UInt32 System.Single::System.IConvertible.ToUInt32(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint32_t Single_System_IConvertible_ToUInt32_mF7B0C9FE3652F3FE2E0BDEEC4B90A316099B525E (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.Int64 System.Single::System.IConvertible.ToInt64(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int64_t Single_System_IConvertible_ToInt64_mAC0D1AEA698E9A358F503A77DA9C2873465E7ADC (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.UInt64 System.Single::System.IConvertible.ToUInt64(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint64_t Single_System_IConvertible_ToUInt64_m6A235CB0548A46C28B13E14D5F62DEADE7887613 (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.Double System.Single::System.IConvertible.ToDouble(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR double Single_System_IConvertible_ToDouble_m103B0F5DD6C36D37816B2524CCFAB7A60F9781E6 (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // COM Callable Wrapper for Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystem struct MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) MixedRealitySceneSystem_t6B428DD235F4308776373BD6AE9D80A55E544E00_ComCallableWrapper(obj)); } // COM Callable Wrapper for Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystem struct MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) MixedRealitySpatialAwarenessSystem_t2CFC7DDDE794CF88F7081401B99A6FCC0DA1ED90_ComCallableWrapper(obj)); } // COM Callable Wrapper for Microsoft.MixedReality.Toolkit.Teleport.MixedRealityTeleportSystem struct MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) MixedRealityTeleportSystem_t200DD3AC8018EBB441D4AC8ADC3A24449AA541F4_ComCallableWrapper(obj)); } // COM Callable Wrapper for Microsoft.MixedReality.Toolkit.Input.UnityInput.MouseDeviceManager struct MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) MouseDeviceManager_tC79AB4661ADC2FF1D98F75AC5D3BAC744EB6AF3C_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Mutex struct Mutex_tA342933FCB3E3E679E3CD498804DE36CD81801B5_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Mutex_tA342933FCB3E3E679E3CD498804DE36CD81801B5_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Mutex_tA342933FCB3E3E679E3CD498804DE36CD81801B5_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Mutex_tA342933FCB3E3E679E3CD498804DE36CD81801B5_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Mutex_tA342933FCB3E3E679E3CD498804DE36CD81801B5(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Mutex_tA342933FCB3E3E679E3CD498804DE36CD81801B5_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Mutex_tA342933FCB3E3E679E3CD498804DE36CD81801B5_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Security.Cryptography.OidCollection struct OidCollection_tA091E185B8840648BE96A6C547F0C26F88E3A902_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<OidCollection_tA091E185B8840648BE96A6C547F0C26F88E3A902_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline OidCollection_tA091E185B8840648BE96A6C547F0C26F88E3A902_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<OidCollection_tA091E185B8840648BE96A6C547F0C26F88E3A902_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_OidCollection_tA091E185B8840648BE96A6C547F0C26F88E3A902(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(OidCollection_tA091E185B8840648BE96A6C547F0C26F88E3A902_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) OidCollection_tA091E185B8840648BE96A6C547F0C26F88E3A902_ComCallableWrapper(obj)); } // COM Callable Wrapper for Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXRDeviceManager struct OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) OpenXRDeviceManager_tC8A11DBF3A4FB6A2C7EAC7A3ACB1D6C6657D7604_ComCallableWrapper(obj)); } // COM Callable Wrapper for Microsoft.MixedReality.Toolkit.XRSDK.OpenXR.OpenXREyeGazeDataProvider struct OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) OpenXREyeGazeDataProvider_t8ADFF3E8712105A830E76D6271AD7A721A25FC85_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.ParallelForReplicaTask struct ParallelForReplicaTask_tA8EF390CFE7A34F4D940DA70CFC2925E8E10E7A6_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ParallelForReplicaTask_tA8EF390CFE7A34F4D940DA70CFC2925E8E10E7A6_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline ParallelForReplicaTask_tA8EF390CFE7A34F4D940DA70CFC2925E8E10E7A6_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ParallelForReplicaTask_tA8EF390CFE7A34F4D940DA70CFC2925E8E10E7A6_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ParallelForReplicaTask_tA8EF390CFE7A34F4D940DA70CFC2925E8E10E7A6(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ParallelForReplicaTask_tA8EF390CFE7A34F4D940DA70CFC2925E8E10E7A6_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ParallelForReplicaTask_tA8EF390CFE7A34F4D940DA70CFC2925E8E10E7A6_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.ParallelForReplicatingTask struct ParallelForReplicatingTask_t5C662CB60CF2C6AAAFD99BCE33295652B32762A9_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ParallelForReplicatingTask_t5C662CB60CF2C6AAAFD99BCE33295652B32762A9_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline ParallelForReplicatingTask_t5C662CB60CF2C6AAAFD99BCE33295652B32762A9_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ParallelForReplicatingTask_t5C662CB60CF2C6AAAFD99BCE33295652B32762A9_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ParallelForReplicatingTask_t5C662CB60CF2C6AAAFD99BCE33295652B32762A9(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ParallelForReplicatingTask_t5C662CB60CF2C6AAAFD99BCE33295652B32762A9_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ParallelForReplicatingTask_t5C662CB60CF2C6AAAFD99BCE33295652B32762A9_ComCallableWrapper(obj)); } // COM Callable Wrapper for UnityEngine.Windows.WebCam.PhotoCapture struct PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) PhotoCapture_t776617AFD6DE0F6CEE985719380EC3DB91C8BB74_ComCallableWrapper(obj)); } // COM Callable Wrapper for UnityEngine.Windows.WebCam.PhotoCaptureFrame struct PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) PhotoCaptureFrame_t70F1A58CF7A76D6B44D7CEBD65B784BB20996CD0_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.IO.PinnedBufferMemoryStream struct PinnedBufferMemoryStream_tDB1B8D639F3D8F7E60BA9E050BC48C575E573E78_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<PinnedBufferMemoryStream_tDB1B8D639F3D8F7E60BA9E050BC48C575E573E78_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline PinnedBufferMemoryStream_tDB1B8D639F3D8F7E60BA9E050BC48C575E573E78_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<PinnedBufferMemoryStream_tDB1B8D639F3D8F7E60BA9E050BC48C575E573E78_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_PinnedBufferMemoryStream_tDB1B8D639F3D8F7E60BA9E050BC48C575E573E78(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(PinnedBufferMemoryStream_tDB1B8D639F3D8F7E60BA9E050BC48C575E573E78_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) PinnedBufferMemoryStream_tDB1B8D639F3D8F7E60BA9E050BC48C575E573E78_ComCallableWrapper(obj)); } // COM Callable Wrapper for Windows.Foundation.Point struct Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578_ComCallableWrapper>, IReference_1_t7F259CA808F8CA00C0A7F31D57D93E94ABE7FD38, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_t7F259CA808F8CA00C0A7F31D57D93E94ABE7FD38::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_t7F259CA808F8CA00C0A7F31D57D93E94ABE7FD38*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_t7F259CA808F8CA00C0A7F31D57D93E94ABE7FD38::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m6BBE84644D81C739672BB5FE7BD65AD8AD6C044B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 returnValue; try { returnValue = *static_cast<Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 *>(UnBox(GetManagedObjectInline(), Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 17; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = false; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Byte"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Single"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Double"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 returnValue; try { returnValue = *static_cast<Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 *>(UnBox(GetManagedObjectInline(), Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Size"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Rect"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578_ComCallableWrapper(obj)); } // COM Callable Wrapper for Windows.Foundation.Point struct Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB_ComCallableWrapper>, IReference_1_t22FB8AE92DF2358ED21FB1C7C5B2FFCAEB97C590, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_t22FB8AE92DF2358ED21FB1C7C5B2FFCAEB97C590::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_t22FB8AE92DF2358ED21FB1C7C5B2FFCAEB97C590*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_t22FB8AE92DF2358ED21FB1C7C5B2FFCAEB97C590::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m0FC3B384D7E37F93935DFB33EA2D44E3FC3E8F49(Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB * comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB returnValue; try { returnValue = *static_cast<Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB *>(UnBox(GetManagedObjectInline(), Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 17; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = false; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Byte"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Single"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Double"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Point"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Size"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Rect"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Point", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Point_t8B0B7243DC381133E329E2DCCB319DC6F4CBF8CB_ComCallableWrapper(obj)); } // COM Callable Wrapper for Windows.Foundation.PropertyType struct PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_ComCallableWrapper>, IReference_1_tA4E67817B79498EFBA69D3B855B0D877416F6A8B, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_tA4E67817B79498EFBA69D3B855B0D877416F6A8B::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_tA4E67817B79498EFBA69D3B855B0D877416F6A8B*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_tA4E67817B79498EFBA69D3B855B0D877416F6A8B::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_mAFDC3A521A2D5078E107CAAA4F124AFC2D25F526(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 20; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = true; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint8_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Byte"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte"); } try { uint8_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToByte_mF20DC676FA2B16FA587B48C46126FF3A510FC2FE((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Byte"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int16_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var)); try { int16_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToInt16_m546AEA11867A3FB43C753862D37C5E5D903A998A((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Int16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint16_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16"); } try { uint16_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToUInt16_m4F02D84F201B3DD4F14E0DB290FFDF6484186C1D((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint32_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt32"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32"); } try { uint32_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToUInt32_m32F7902EB35E916E5066F4F8F2A62C9EE4625F61((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt32"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int64_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var)); try { int64_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToInt64_m8D333A53E7A5D76D06626647D5C323E3D7DEAF7F((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Int64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint64_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64"); } try { uint64_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToUInt64_m624D1F3CF0A12FE5BA34183B454C4E87C4CA92F8((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation float returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var)); try { float il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToSingle_mA4658FD9FC83A12B7A9F9D5C3663354BA768D12B((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Single"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation double returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_il2cpp_TypeInfo_var)); try { double il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToDouble_mBE6FF400E38A132D26CA5C073F5DF78446C0FED1((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Double"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Point"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Size"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Rect"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) PropertyType_tE0EA93A7BFC9AC532D4D960D9F87C6E0B5C4F808_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Numerics.Quaternion struct Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_ComCallableWrapper>, IReference_1_t33EFD59F5EFEE8E48055FF4CB9A75732C6EA2E31, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_t33EFD59F5EFEE8E48055FF4CB9A75732C6EA2E31::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_t33EFD59F5EFEE8E48055FF4CB9A75732C6EA2E31*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_t33EFD59F5EFEE8E48055FF4CB9A75732C6EA2E31::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_mC9B0A6358249758D52E8655254FFC53AB4E48D2F(Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C returnValue; try { returnValue = *static_cast<Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C *>(UnBox(GetManagedObjectInline(), Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 20; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = false; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Point"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Size"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Rect"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_ComCallableWrapper(obj)); } // COM Callable Wrapper for Windows.Foundation.Numerics.Quaternion struct Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22_ComCallableWrapper>, IReference_1_t3A0E57B1670337C77F71EEB98E7BC1AFBB35812A, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_t3A0E57B1670337C77F71EEB98E7BC1AFBB35812A::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_t3A0E57B1670337C77F71EEB98E7BC1AFBB35812A*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_t3A0E57B1670337C77F71EEB98E7BC1AFBB35812A::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m223D1D22BBB08115FECD12012F70419914365276(Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22 * comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22 returnValue; try { returnValue = *static_cast<Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22 *>(UnBox(GetManagedObjectInline(), Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 20; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = false; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Point"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Size"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Rect"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Quaternion_tEA023D1069B1229FB3B43923B6DB22090B599B22_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Queue struct Queue_t66723C58C7422102C36F8570BE048BD0CC489E52_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Queue_t66723C58C7422102C36F8570BE048BD0CC489E52_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline Queue_t66723C58C7422102C36F8570BE048BD0CC489E52_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Queue_t66723C58C7422102C36F8570BE048BD0CC489E52_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Queue_t66723C58C7422102C36F8570BE048BD0CC489E52(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Queue_t66723C58C7422102C36F8570BE048BD0CC489E52_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Queue_t66723C58C7422102C36F8570BE048BD0CC489E52_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Security.Cryptography.RNGCryptoServiceProvider struct RNGCryptoServiceProvider_t696D1B0DFED446BE4718F7E18ABFFBB6E5A8A5A1_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<RNGCryptoServiceProvider_t696D1B0DFED446BE4718F7E18ABFFBB6E5A8A5A1_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline RNGCryptoServiceProvider_t696D1B0DFED446BE4718F7E18ABFFBB6E5A8A5A1_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<RNGCryptoServiceProvider_t696D1B0DFED446BE4718F7E18ABFFBB6E5A8A5A1_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_RNGCryptoServiceProvider_t696D1B0DFED446BE4718F7E18ABFFBB6E5A8A5A1(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(RNGCryptoServiceProvider_t696D1B0DFED446BE4718F7E18ABFFBB6E5A8A5A1_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) RNGCryptoServiceProvider_t696D1B0DFED446BE4718F7E18ABFFBB6E5A8A5A1_ComCallableWrapper(obj)); } // COM Callable Wrapper for Windows.Foundation.Rect struct Rect_tC45F1DDF39812623644DE296D8057A4958176627_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Rect_tC45F1DDF39812623644DE296D8057A4958176627_ComCallableWrapper>, IReference_1_tBCFA9924A47B56774AFEF690310BA37E1A800808, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline Rect_tC45F1DDF39812623644DE296D8057A4958176627_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Rect_tC45F1DDF39812623644DE296D8057A4958176627_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_tBCFA9924A47B56774AFEF690310BA37E1A800808::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_tBCFA9924A47B56774AFEF690310BA37E1A800808*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_tBCFA9924A47B56774AFEF690310BA37E1A800808::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m64387D2D55E86DABEC832FDADDA12CBF1C7C1D5E(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Rect_tC45F1DDF39812623644DE296D8057A4958176627_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation Rect_tC45F1DDF39812623644DE296D8057A4958176627 returnValue; try { returnValue = *static_cast<Rect_tC45F1DDF39812623644DE296D8057A4958176627 *>(UnBox(GetManagedObjectInline(), Rect_tC45F1DDF39812623644DE296D8057A4958176627_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 19; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = false; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Byte"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Single"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Double"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Point"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Size"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Rect_tC45F1DDF39812623644DE296D8057A4958176627_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation Rect_tC45F1DDF39812623644DE296D8057A4958176627 returnValue; try { returnValue = *static_cast<Rect_tC45F1DDF39812623644DE296D8057A4958176627 *>(UnBox(GetManagedObjectInline(), Rect_tC45F1DDF39812623644DE296D8057A4958176627_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Rect_tC45F1DDF39812623644DE296D8057A4958176627(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Rect_tC45F1DDF39812623644DE296D8057A4958176627_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Rect_tC45F1DDF39812623644DE296D8057A4958176627_ComCallableWrapper(obj)); } // COM Callable Wrapper for Windows.Foundation.Rect struct Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891_ComCallableWrapper>, IReference_1_t6C2C9667B4A9B53CCB0776745CBB938B87C32F2E, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_t6C2C9667B4A9B53CCB0776745CBB938B87C32F2E::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_t6C2C9667B4A9B53CCB0776745CBB938B87C32F2E*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_t6C2C9667B4A9B53CCB0776745CBB938B87C32F2E::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m96AACCD499BB14F3DBACD6CA120C283ABCE73263(Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891 * comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891 returnValue; try { returnValue = *static_cast<Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891 *>(UnBox(GetManagedObjectInline(), Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 19; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = false; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Byte"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Single"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Double"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Point"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Size"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Rect"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Rect", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Rect_t612E465CB97C3834EF1EE6D46D56027E2BC19891_ComCallableWrapper(obj)); } // COM Callable Wrapper for UnityEngine.RectTransform struct RectTransform_t8A6A306FB29A6C8C22010CF9040E319753571072_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<RectTransform_t8A6A306FB29A6C8C22010CF9040E319753571072_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline RectTransform_t8A6A306FB29A6C8C22010CF9040E319753571072_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<RectTransform_t8A6A306FB29A6C8C22010CF9040E319753571072_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_RectTransform_t8A6A306FB29A6C8C22010CF9040E319753571072(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(RectTransform_t8A6A306FB29A6C8C22010CF9040E319753571072_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) RectTransform_t8A6A306FB29A6C8C22010CF9040E319753571072_ComCallableWrapper(obj)); } // COM Callable Wrapper for Microsoft.Win32.RegistryKey struct RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) RegistryKey_t1EF11DB6AC49AC065AF744487033109254215268_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Resources.ResourceFallbackManager struct ResourceFallbackManager_t519E633959AC8EE890105625261272326BED6652_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ResourceFallbackManager_t519E633959AC8EE890105625261272326BED6652_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ResourceFallbackManager_t519E633959AC8EE890105625261272326BED6652_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ResourceFallbackManager_t519E633959AC8EE890105625261272326BED6652_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ResourceFallbackManager_t519E633959AC8EE890105625261272326BED6652(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ResourceFallbackManager_t519E633959AC8EE890105625261272326BED6652_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ResourceFallbackManager_t519E633959AC8EE890105625261272326BED6652_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Resources.ResourceReader struct ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ResourceReader_tC8A3D1DC4FDF2CBC92782B9BD71194279D655492_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Resources.ResourceSet struct ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ResourceSet_t04B4806442F31EFE5374C485BB883BBA6F75566F_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Resources.RuntimeResourceSet struct RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) RuntimeResourceSet_tE6CEE5AD87FD9B32ABB7C6738D4B04104FE5CE3A_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Security.Cryptography.SHA1CryptoServiceProvider struct SHA1CryptoServiceProvider_tFCC9EF75A0DCF3E1A50E64B525EA9599E5927EF7_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SHA1CryptoServiceProvider_tFCC9EF75A0DCF3E1A50E64B525EA9599E5927EF7_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline SHA1CryptoServiceProvider_tFCC9EF75A0DCF3E1A50E64B525EA9599E5927EF7_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SHA1CryptoServiceProvider_tFCC9EF75A0DCF3E1A50E64B525EA9599E5927EF7_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SHA1CryptoServiceProvider_tFCC9EF75A0DCF3E1A50E64B525EA9599E5927EF7(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(SHA1CryptoServiceProvider_tFCC9EF75A0DCF3E1A50E64B525EA9599E5927EF7_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SHA1CryptoServiceProvider_tFCC9EF75A0DCF3E1A50E64B525EA9599E5927EF7_ComCallableWrapper(obj)); } // COM Callable Wrapper for Microsoft.Win32.SafeHandles.SafeFileHandle struct SafeFileHandle_tC77A9860A03C31DC46AD2C08EC10EACDC3B7A662_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SafeFileHandle_tC77A9860A03C31DC46AD2C08EC10EACDC3B7A662_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline SafeFileHandle_tC77A9860A03C31DC46AD2C08EC10EACDC3B7A662_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SafeFileHandle_tC77A9860A03C31DC46AD2C08EC10EACDC3B7A662_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SafeFileHandle_tC77A9860A03C31DC46AD2C08EC10EACDC3B7A662(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(SafeFileHandle_tC77A9860A03C31DC46AD2C08EC10EACDC3B7A662_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SafeFileHandle_tC77A9860A03C31DC46AD2C08EC10EACDC3B7A662_ComCallableWrapper(obj)); } // COM Callable Wrapper for Microsoft.Win32.SafeHandles.SafeFindHandle struct SafeFindHandle_t0E0D5349FC3144C1CAB2D20DCD3023B25833B8BD_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SafeFindHandle_t0E0D5349FC3144C1CAB2D20DCD3023B25833B8BD_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline SafeFindHandle_t0E0D5349FC3144C1CAB2D20DCD3023B25833B8BD_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SafeFindHandle_t0E0D5349FC3144C1CAB2D20DCD3023B25833B8BD_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SafeFindHandle_t0E0D5349FC3144C1CAB2D20DCD3023B25833B8BD(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(SafeFindHandle_t0E0D5349FC3144C1CAB2D20DCD3023B25833B8BD_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SafeFindHandle_t0E0D5349FC3144C1CAB2D20DCD3023B25833B8BD_ComCallableWrapper(obj)); } // COM Callable Wrapper for Mono.SafeGPtrArrayHandle struct SafeGPtrArrayHandle_tAEC97FDEAA1FFF2E1C1475EECB98B945EF86141A_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SafeGPtrArrayHandle_tAEC97FDEAA1FFF2E1C1475EECB98B945EF86141A_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline SafeGPtrArrayHandle_tAEC97FDEAA1FFF2E1C1475EECB98B945EF86141A_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SafeGPtrArrayHandle_tAEC97FDEAA1FFF2E1C1475EECB98B945EF86141A_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SafeGPtrArrayHandle_tAEC97FDEAA1FFF2E1C1475EECB98B945EF86141A(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(SafeGPtrArrayHandle_tAEC97FDEAA1FFF2E1C1475EECB98B945EF86141A_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SafeGPtrArrayHandle_tAEC97FDEAA1FFF2E1C1475EECB98B945EF86141A_ComCallableWrapper(obj)); } // COM Callable Wrapper for Microsoft.Win32.SafeHandles.SafeRegistryHandle struct SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SafeRegistryHandle_tE132711AC8880C0D375E49B50419BCE4935CC545_ComCallableWrapper(obj)); } // COM Callable Wrapper for Mono.SafeStringMarshal struct SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SafeStringMarshal_t3F5BD5E96CFBAF124814DED946144CF39A82F11E_ComCallableWrapper(obj)); } // COM Callable Wrapper for Microsoft.Win32.SafeHandles.SafeWaitHandle struct SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SafeWaitHandle_tF37EACEDF9C6F350EB4ABC1E1F869EECB0B5ABB1_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.SemaphoreSlim struct SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SemaphoreSlim_t3EF85FC980AE57957BEBB6B78E81DE2E3233D385_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Single struct Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_ComCallableWrapper>, IReference_1_tD4026FABBA608F648777776BC282618C51E2AF46, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_tD4026FABBA608F648777776BC282618C51E2AF46::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_tD4026FABBA608F648777776BC282618C51E2AF46*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_tD4026FABBA608F648777776BC282618C51E2AF46::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m82E1812FB137290B0EE35532E1008D32226FE5F3(float* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation float returnValue; try { returnValue = *static_cast<float*>(UnBox(GetManagedObjectInline(), Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 8; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = true; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint8_t returnValue; try { float value = *static_cast<float*>(UnBox(GetManagedObjectInline(), Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "Byte"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Byte"); } try { uint8_t il2cppRetVal; il2cppRetVal = Single_System_IConvertible_ToByte_m8FAE4E8EDDF055FF2F17C2C00D091EBAA0099D49((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "Byte"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Byte"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Byte"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int16_t returnValue; try { float value = *static_cast<float*>(UnBox(GetManagedObjectInline(), Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var)); try { int16_t il2cppRetVal; il2cppRetVal = Single_System_IConvertible_ToInt16_mBED24FBB9C6465ABAECDC3C894F41B7CF0E6FC6A((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "Int16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Int16"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Int16"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint16_t returnValue; try { float value = *static_cast<float*>(UnBox(GetManagedObjectInline(), Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "UInt16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt16"); } try { uint16_t il2cppRetVal; il2cppRetVal = Single_System_IConvertible_ToUInt16_mCBB71CEDC4797B00D50B4417A96EC702076C757A((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "UInt16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt16"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt16"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { float value = *static_cast<float*>(UnBox(GetManagedObjectInline(), Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var)); try { int32_t il2cppRetVal; il2cppRetVal = Single_System_IConvertible_ToInt32_mD144638A230B62184C32B38DFFFDF955353F42AC((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "Int32"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Int32"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Int32"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint32_t returnValue; try { float value = *static_cast<float*>(UnBox(GetManagedObjectInline(), Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "UInt32"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt32"); } try { uint32_t il2cppRetVal; il2cppRetVal = Single_System_IConvertible_ToUInt32_mF7B0C9FE3652F3FE2E0BDEEC4B90A316099B525E((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "UInt32"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt32"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt32"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int64_t returnValue; try { float value = *static_cast<float*>(UnBox(GetManagedObjectInline(), Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var)); try { int64_t il2cppRetVal; il2cppRetVal = Single_System_IConvertible_ToInt64_mAC0D1AEA698E9A358F503A77DA9C2873465E7ADC((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "Int64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Int64"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Int64"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint64_t returnValue; try { float value = *static_cast<float*>(UnBox(GetManagedObjectInline(), Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "UInt64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt64"); } try { uint64_t il2cppRetVal; il2cppRetVal = Single_System_IConvertible_ToUInt64_m6A235CB0548A46C28B13E14D5F62DEADE7887613((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "UInt64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt64"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt64"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation float returnValue; try { returnValue = *static_cast<float*>(UnBox(GetManagedObjectInline(), Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation double returnValue; try { float value = *static_cast<float*>(UnBox(GetManagedObjectInline(), Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var)); try { double il2cppRetVal; il2cppRetVal = Single_System_IConvertible_ToDouble_m103B0F5DD6C36D37816B2524CCFAB7A60F9781E6((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Single", "Double"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Double"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Double"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Point"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Size"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Rect"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Single", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_ComCallableWrapper(obj)); } // COM Callable Wrapper for Windows.Foundation.Size struct Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92_ComCallableWrapper>, IReference_1_t6AF48AEDBAB54EEF81D7BE93983928A632CEA6B7, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_t6AF48AEDBAB54EEF81D7BE93983928A632CEA6B7::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_t6AF48AEDBAB54EEF81D7BE93983928A632CEA6B7*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_t6AF48AEDBAB54EEF81D7BE93983928A632CEA6B7::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m4E45D3537EF0FB1FFE8AF3B2DCB63DB98A3A45AA(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 returnValue; try { returnValue = *static_cast<Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 *>(UnBox(GetManagedObjectInline(), Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 18; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = false; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Byte"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Single"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Double"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Point"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 returnValue; try { returnValue = *static_cast<Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 *>(UnBox(GetManagedObjectInline(), Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Rect"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92_ComCallableWrapper(obj)); } // COM Callable Wrapper for Windows.Foundation.Size struct Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5_ComCallableWrapper>, IReference_1_tF1450FE2A758CB62295758B955692AA1A5A3CCA9, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_tF1450FE2A758CB62295758B955692AA1A5A3CCA9::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_tF1450FE2A758CB62295758B955692AA1A5A3CCA9*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_tF1450FE2A758CB62295758B955692AA1A5A3CCA9::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m3496400E5AB203A0F7596D49F46B68601F66DD77(Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5 * comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5 returnValue; try { returnValue = *static_cast<Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5 *>(UnBox(GetManagedObjectInline(), Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 18; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = false; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Byte"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt32"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt64"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Single"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Double"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Point"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Size"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Rect"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Size", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Size_tD78415B1E3C5A20EBC460FCFAD9960781E926CE5_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.SortedList struct SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SortedList_t52B9ACC0DAA6CD074E375215F43251DE16366165_ComCallableWrapper(obj)); } // COM Callable Wrapper for Windows.UI.Input.Spatial.SpatialInteractionSourceHandedness struct SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_ComCallableWrapper>, IReference_1_t0976D6A3C4B3A2296DE9EC238663EBCA4B18240B, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_t0976D6A3C4B3A2296DE9EC238663EBCA4B18240B::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_t0976D6A3C4B3A2296DE9EC238663EBCA4B18240B*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_t0976D6A3C4B3A2296DE9EC238663EBCA4B18240B::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m31DA5B4095EA7D9AC3547820AEF5AC55A293E816(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 20; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = true; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint8_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Byte"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte"); } try { uint8_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToByte_mF20DC676FA2B16FA587B48C46126FF3A510FC2FE((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Byte"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int16_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var)); try { int16_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToInt16_m546AEA11867A3FB43C753862D37C5E5D903A998A((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Int16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint16_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16"); } try { uint16_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToUInt16_m4F02D84F201B3DD4F14E0DB290FFDF6484186C1D((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint32_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt32"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32"); } try { uint32_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToUInt32_m32F7902EB35E916E5066F4F8F2A62C9EE4625F61((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt32"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int64_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var)); try { int64_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToInt64_m8D333A53E7A5D76D06626647D5C323E3D7DEAF7F((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Int64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint64_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64"); } try { uint64_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToUInt64_m624D1F3CF0A12FE5BA34183B454C4E87C4CA92F8((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation float returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var)); try { float il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToSingle_mA4658FD9FC83A12B7A9F9D5C3663354BA768D12B((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Single"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation double returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_il2cpp_TypeInfo_var)); try { double il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToDouble_mBE6FF400E38A132D26CA5C073F5DF78446C0FED1((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Double"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Point"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Size"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Rect"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SpatialInteractionSourceHandedness_tC2409F24AA1DC3E3915DE8AA3AF09913C01FCE9B_ComCallableWrapper(obj)); } // COM Callable Wrapper for Windows.UI.Input.Spatial.SpatialInteractionSourceKind struct SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_ComCallableWrapper>, IReference_1_tFBF6EDC09F056C59D8EEFE81E5EA39206D2AF70C, IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8 { inline SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IReference_1_tFBF6EDC09F056C59D8EEFE81E5EA39206D2AF70C::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IReference_1_tFBF6EDC09F056C59D8EEFE81E5EA39206D2AF70C*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IReference_1_tFBF6EDC09F056C59D8EEFE81E5EA39206D2AF70C::IID; interfaceIds[1] = IPropertyValue_t2D61E5557FBCC9F0476CC32B5738B21EFFA483E8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IReference_1_get_Value_m5388021AB708A278C93226BC20DDA41AD0DF74EC(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_Type_m2BC440F5119A133BE4DD895657519ADAA3B34272(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = 20; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_get_IsNumericScalar_mC8DE97926668A5F2EA3F4A9B128E966CBC7B0D60(bool* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation bool returnValue; try { returnValue = true; } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8_m25D96C5F9AC133BF7B682C59FE83EE05A0075B05(uint8_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint8_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Byte"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte"); } try { uint8_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToByte_mF20DC676FA2B16FA587B48C46126FF3A510FC2FE((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Byte"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16_mBE4A7DC8A2B92F83EE058AE7515E84DADFA206AE(int16_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int16_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var)); try { int16_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToInt16_m546AEA11867A3FB43C753862D37C5E5D903A998A((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Int16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16_mCF513D800195CA7050FD5AFB4E710FB0CFB531B5(uint16_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint16_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16"); } try { uint16_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToUInt16_m4F02D84F201B3DD4F14E0DB290FFDF6484186C1D((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt16"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32_mDE5543C20D3D3C9E773CB6EDBDBC789D12CC59BA(int32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int32_t returnValue; try { returnValue = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var)); } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32_mD48C2097876EAE6D1E218D9123F58F168B374205(uint32_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint32_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt32"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32"); } try { uint32_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToUInt32_m32F7902EB35E916E5066F4F8F2A62C9EE4625F61((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt32"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64_m4BAC154BEC3584DF3E34EDA6033EEF3DB6D4132E(int64_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation int64_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var)); try { int64_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToInt64_m8D333A53E7A5D76D06626647D5C323E3D7DEAF7F((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Int64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64_m981379F85C0C44EDBDD830A293693BE0BB3F62CA(uint64_t* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation uint64_t returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var)); if (value < 0) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64"); } try { uint64_t il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToUInt64_m624D1F3CF0A12FE5BA34183B454C4E87C4CA92F8((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "UInt64"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingle_mED031D57B17B0F7BD3B4B250821D070155889F1F(float* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation float returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var)); try { float il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToSingle_mA4658FD9FC83A12B7A9F9D5C3663354BA768D12B((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Single"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDouble_mA0880A7E89CE09C2639D6F8065B18E8F77EB082F(double* comReturnValue) IL2CPP_OVERRIDE { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Managed method invocation double returnValue; try { int32_t value = *static_cast<int32_t*>(UnBox(GetManagedObjectInline(), SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_il2cpp_TypeInfo_var)); try { double il2cppRetVal; il2cppRetVal = Int32_System_IConvertible_ToDouble_mBE6FF400E38A132D26CA5C073F5DF78446C0FED1((&value), NULL, NULL); returnValue = il2cppRetVal; } catch (const Il2CppExceptionWrapper& ex) { if (IsInst((RuntimeObject*)ex.ex, OverflowException_tD1FBF4E54D81EC98EEF386B69344D336D1EC1AB9_il2cpp_TypeInfo_var)) { return il2cpp_codegen_com_handle_invalid_iproperty_conversion(GetManagedObjectInline(), "Other", "Double"); return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double"); } return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double"); } } catch (const Il2CppExceptionWrapper& ex) { memset(comReturnValue, 0, sizeof(*comReturnValue)); String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } *comReturnValue = returnValue; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16_m7B2226E30F72B0CCAE54B8EDB1AC4ACF1BE860A8(Il2CppChar* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Char16"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBoolean_m21FCEEA690B32CD86A36D40FB837FC7D894D5587(bool* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Boolean"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetString_m8D5702E4E1C67366D65DA23CA2812D6572DF819C(Il2CppHString* comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "String"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuid_m885F2850B49DB4B046564BC5FE414256801D9A11(Guid_t * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Guid"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTime_m023A766ED6FC58B347CF6F777F5C18C6AE246A3C(DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "DateTime"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpan_m063CE76264EDAF37A1DA3CA5C9CF4AF85D8FC239(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "TimeSpan"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPoint_m014D5E859273BA28DE642E38438EDCC64AB5C41B(Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Point"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSize_m0A952D186E59BEA03E6185EDEBAC26D544AFADAC(Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Size"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRect_m0A96600149C7E6A493B8420CB316938AEF9A1A06(Rect_tC45F1DDF39812623644DE296D8057A4958176627 * comReturnValue) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Rect"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt8Array_m540E0503D8CFAE2579D449884B6AA883509C79D1(uint32_t* ___value0ArraySize, uint8_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Byte[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt16Array_m279C289854DE8A2D45A6B6B09112DD9D2F0DF849(uint32_t* ___value0ArraySize, int16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt16Array_m090AA712F6BB39F869BCC5CB90236377EE8673B1(uint32_t* ___value0ArraySize, uint16_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt32Array_mADF499B8CD16185128795A7B74D63E8CFE692B9A(uint32_t* ___value0ArraySize, int32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt32Array_m9B44B8D2EA2907A9A96ED653ACEF04873D9483F8(uint32_t* ___value0ArraySize, uint32_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt32[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInt64Array_m9A04AC5F477463928280B42E2C40F13B15A1D564(uint32_t* ___value0ArraySize, int64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Int64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetUInt64Array_m776484C9C41D5A03991D89401FF84F9D425D6A5E(uint32_t* ___value0ArraySize, uint64_t** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "UInt64[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSingleArray_m1E9CE76FA942B3AFA8995FBAE605E84733917B57(uint32_t* ___value0ArraySize, float** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Single[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDoubleArray_m5DAB086BEB4816CAF7553E325B91A4B0B07953A5(uint32_t* ___value0ArraySize, double** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Double[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetChar16Array_m2C69248F68D7705FE44FA8F777B061FA77C706A1(uint32_t* ___value0ArraySize, Il2CppChar** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Char16[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetBooleanArray_m083CB5579BC465B4D1BD84CE8382CB747A9FCC8C(uint32_t* ___value0ArraySize, bool** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Boolean[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetStringArray_m680617C6226187D28C4978B710AFBB8581AAC98F(uint32_t* ___value0ArraySize, Il2CppHString** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "String[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetInspectableArray_m6DCBE370A8CAC129E6D6BD91C6503D14A8109F79(uint32_t* ___value0ArraySize, Il2CppIInspectable*** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Inspectable[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetGuidArray_mE9983D9B5EE9AC1935C3EBD2F9E82DC7188E1D07(uint32_t* ___value0ArraySize, Guid_t ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Guid[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetDateTimeArray_mEECFC6C321405CDBC425D321E2A8EF3E7BC306A7(uint32_t* ___value0ArraySize, DateTime_t7C967DBDDE4CAEAA8B5AEB61E36309BCD7D26B8C ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "DateTimeOffset[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetTimeSpanArray_mEAF3CA18AA928DAF3046F0F530B9324711650167(uint32_t* ___value0ArraySize, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "TimeSpan[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetPointArray_mD4ACB0F49C7BFEC1C03A4EE4263B23B2040CECD0(uint32_t* ___value0ArraySize, Point_t155CCDBE84DC37ABFA2CBB4649526701CA3A5578 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Point[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetSizeArray_m3C079B4191330FAC3B2131D308C825BC72A5F0DC(uint32_t* ___value0ArraySize, Size_tDA924E69AB75296FE3B5E81811B78FD56173BB92 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Size[]"); } virtual il2cpp_hresult_t STDCALL IPropertyValue_GetRectArray_m09598924D31716E1E653AE941186F8B16EA11A87(uint32_t* ___value0ArraySize, Rect_tC45F1DDF39812623644DE296D8057A4958176627 ** ___value0) IL2CPP_OVERRIDE { return il2cpp_codegen_com_handle_invalid_iproperty_conversion("Other", "Rect[]"); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) SpatialInteractionSourceKind_t812D8C730AA19BAA0BDA6CA4DA60B61AF7E88CF7_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Stack struct Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Stack_tF6DD42A42C129B014D4223010F1E0FFBECBDC3B8_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.IO.StreamReader struct StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) StreamReader_tA857ACC7ABF9AA4638E1291E6D2539C14D2963D3_ComCallableWrapper(obj)); }
46.551113
354
0.83411
leeenglestone
36a9710bcd0a857bc3709f4ca4c09e8e4c86a0d2
4,818
cpp
C++
benchmarks/mmd_permutation_benchmark.cpp
lambday/derby
83ba9b36f7fe29498339872f4dbafb1f4053ed19
[ "MIT" ]
null
null
null
benchmarks/mmd_permutation_benchmark.cpp
lambday/derby
83ba9b36f7fe29498339872f4dbafb1f4053ed19
[ "MIT" ]
null
null
null
benchmarks/mmd_permutation_benchmark.cpp
lambday/derby
83ba9b36f7fe29498339872f4dbafb1f4053ed19
[ "MIT" ]
null
null
null
/* * Copyright (c) The Shogun Machine Learning Toolbox * Written (w) 2016 Soumyajit De * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of the Shogun Development Team. */ #include <algorithm> #include <memory> #include <shogun/base/init.h> #include <shogun/lib/SGMatrix.h> #include <shogun/lib/SGVector.h> #include <shogun/features/Features.h> #include <shogun/features/DenseFeatures.h> #include <shogun/kernel/Kernel.h> #include <shogun/kernel/GaussianKernel.h> #include <shogun/statistical_testing/MMD.h> #include <shogun/statistical_testing/internals/mmd/WithinBlockPermutation.h> #include <shogun/statistical_testing/internals/mmd/WithinBlockPermutationBatch.h> #include <benchmark/benchmark.h> using namespace shogun; using namespace internal; using namespace mmd; /* * $ g++ -O3 -std=c++14 mmd_permutation_benchmark.cpp -lshogun -lbenchmark -lpthread -fopenmp * $ ./a.out * Run on (4 X 2999.95 MHz CPU s) * 2016-04-15 08:39:04 * ***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will incur extra overhead. * Benchmark Time(ns) CPU(ns) Iterations * ------------------------------------------- * BM_Batch 5176712791 15645935000 1 * BM_Serial 10088581387 31100171000 1 */ struct Data { Data() : dim(2), n(1000), m(1000), num_null_samples(250) { init_shogun_with_defaults(); SGMatrix<float64_t> data_p(dim, n); std::iota(data_p.matrix, data_p.matrix+dim*n, 1); std::for_each(data_p.matrix, data_p.matrix+dim*n, [this](float64_t& val) { val/=n; }); SGMatrix<float64_t> data_q(dim, m); std::iota(data_q.matrix, data_q.matrix+dim*m, n+1); std::for_each(data_q.matrix, data_q.matrix+dim*m, [this](float64_t& val) { val/=2*m; }); auto feats_p=new CDenseFeatures<float64_t>(data_p); auto feats_q=new CDenseFeatures<float64_t>(data_q); auto feats=feats_p->create_merged_copy(feats_q); SG_REF(feats); SG_UNREF(feats_p); SG_UNREF(feats_q); auto kernel=std::make_unique<CGaussianKernel>(); kernel->set_width(2.0); kernel->init(feats, feats); mat=kernel->get_kernel_matrix(); } ~Data() { exit_shogun(); } const index_t dim; const index_t n; const index_t m; const index_t num_null_samples; SGMatrix<float64_t> mat; }; Data data; SGVector<float64_t> batch_permutation() { const index_t& n=data.n; const index_t& m=data.m; const index_t& num_null_samples=data.num_null_samples; SGMatrix<float64_t>& mat=data.mat; WithinBlockPermutationBatch batch(n, m, num_null_samples, EStatisticType::BIASED_FULL); sg_rand->set_seed(12345); return batch(mat); } SGVector<float64_t> serial_permutation() { const index_t& n=data.n; const index_t& m=data.m; const index_t& num_null_samples=data.num_null_samples; SGMatrix<float64_t>& mat=data.mat; SGVector<float64_t> result(num_null_samples); WithinBlockPermutation compute(n, m, EStatisticType::BIASED_FULL); sg_rand->set_seed(12345); #pragma omp parallel for for (auto i=0; i<num_null_samples; ++i) { result[i]=compute(mat); } return result; } static void BM_Batch(benchmark::State& state) { while (state.KeepRunning()) { auto result=batch_permutation(); } } BENCHMARK(BM_Batch); static void BM_Serial(benchmark::State& state) { while (state.KeepRunning()) { auto result=serial_permutation(); } } BENCHMARK(BM_Serial); BENCHMARK_MAIN();
31.907285
121
0.740349
lambday
36ab3ce6b6635a07575063144c69512dca4eb212
382
cpp
C++
doc/examples/std_swap.cpp
cosmoscout/json
e4643d1f1b03fc7a1d7b65f17e012ca93680cad8
[ "MIT" ]
2
2021-10-10T08:29:39.000Z
2021-11-09T10:46:52.000Z
doc/examples/std_swap.cpp
IXIIAI/json
ef556019be51ba3db32854e2a491b4ccb540a2c8
[ "MIT" ]
2
2021-10-10T08:29:31.000Z
2021-11-18T10:59:26.000Z
doc/examples/std_swap.cpp
IXIIAI/json
ef556019be51ba3db32854e2a491b4ccb540a2c8
[ "MIT" ]
null
null
null
#include <iostream> #include <iomanip> #include <nlohmann/json.hpp> using json = nlohmann::json; int main() { // create JSON values json j1 = {{"one", 1}, {"two", 2}}; json j2 = {1, 2, 4, 8, 16}; std::cout << "j1 = " << j1 << " | j2 = " << j2 << '\n'; // swap values std::swap(j1, j2); std::cout << "j1 = " << j1 << " | j2 = " << j2 << std::endl; }
19.1
64
0.471204
cosmoscout
36ac0603d1c14b7bcc0d9f1b75f57eb9dfbfb1aa
558
cpp
C++
examples/path/ex1.cpp
friko9/PathPool
4db85f4eb0088d6b673471df31b99b03ba26ecaf
[ "MIT" ]
null
null
null
examples/path/ex1.cpp
friko9/PathPool
4db85f4eb0088d6b673471df31b99b03ba26ecaf
[ "MIT" ]
null
null
null
examples/path/ex1.cpp
friko9/PathPool
4db85f4eb0088d6b673471df31b99b03ba26ecaf
[ "MIT" ]
null
null
null
#include "path.h" #include "path_pool.h" #include <iostream> int main() { using Path = Path<ListPathPool<std::string>>; Path root; Path p1 { root, "path1" }; Path p2 { root, "path2" }; Path p3 { root, "path1" }; Path p4 { p2, "path1" }; std::cout<< (p1 == p2) << std::endl; // false std::cout<< (p1 == p3) << std::endl; // true std::cout<< (p1 == p4) << std::endl; // false std::cout<< root.get_tag() << std::endl; // '' std::cout<< p4.get_tag() << std::endl; // path1 std::cout<< p4.get_parent().get_tag() << std::endl; // path2 }
26.571429
62
0.555556
friko9
36afec8649610aeb3e4512caec96cdf379a90cb2
9,250
cpp
C++
datastore/common/objects/InterfaceNetwork.test.cpp
cmwill/netmeld
bf72a2b2954609b9767575fd2a25bf2ac81338e3
[ "MIT" ]
27
2017-11-04T23:58:54.000Z
2022-03-28T14:21:50.000Z
datastore/common/objects/InterfaceNetwork.test.cpp
cmwill/netmeld
bf72a2b2954609b9767575fd2a25bf2ac81338e3
[ "MIT" ]
64
2020-03-16T19:59:43.000Z
2022-03-18T14:49:18.000Z
datastore/common/objects/InterfaceNetwork.test.cpp
cmwill/netmeld
bf72a2b2954609b9767575fd2a25bf2ac81338e3
[ "MIT" ]
13
2019-12-01T21:32:33.000Z
2022-03-28T15:40:02.000Z
// ============================================================================= // Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // 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. // ============================================================================= // Maintained by Sandia National Laboratories <[email protected]> // ============================================================================= #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MAIN #include <boost/test/unit_test.hpp> #include <netmeld/datastore/objects/InterfaceNetwork.hpp> #include <netmeld/core/utils/StringUtilities.hpp> namespace nmdo = netmeld::datastore::objects; namespace nmcu = netmeld::core::utils; class TestInterfaceNetwork : public nmdo::InterfaceNetwork { public: TestInterfaceNetwork() : InterfaceNetwork() {}; public: std::string getDescription() const { return description; } std::string getMediaType() const { return mediaType; } bool getIsDiscoveryProtocolEnabled() const { return isDiscoveryProtocolEnabled; } nmdo::MacAddress getMacAddr() const { return macAddr; } std::string getMode() { return mode; } bool getIsPortSecurityEnabled() const { return isPortSecurityEnabled; } unsigned short getPortSecurityMaxMacAddrs() const { return portSecurityMaxMacAddrs; } std::string getPortSecurityViolationAction() const { return portSecurityViolationAction; } bool getIsPortSecurityStickyMac() const { return isPortSecurityStickyMac; } std::set<nmdo::MacAddress> getLearnedMacAddrs() const { return learnedMacAddrs; } bool getIsBpduGuardEnabled() const { return isBpduGuardEnabled; } bool getIsBpduFilterEnabled() const { return isBpduFilterEnabled; } bool getIsPortfastEnabled() const { return isPortfastEnabled; } bool getIsPartial() const { return isPartial; } std::set<nmdo::Vlan> getVlans() const { return vlans; } }; BOOST_AUTO_TEST_CASE(testConstructors) { nmdo::MacAddress macAddr; { TestInterfaceNetwork interface; BOOST_CHECK(interface.getName().empty()); BOOST_CHECK(interface.getDescription().empty()); BOOST_CHECK_EQUAL("ethernet", interface.getMediaType()); BOOST_CHECK(interface.getState()); BOOST_CHECK(interface.getIsDiscoveryProtocolEnabled()); BOOST_CHECK_EQUAL(macAddr, interface.getMacAddr()); BOOST_CHECK_EQUAL("l3", interface.getMode()); BOOST_CHECK(!interface.getIsPortSecurityEnabled()); BOOST_CHECK_EQUAL(1, interface.getPortSecurityMaxMacAddrs()); BOOST_CHECK_EQUAL("shutdown", interface.getPortSecurityViolationAction()); BOOST_CHECK(!interface.getIsPortSecurityStickyMac()); BOOST_CHECK(interface.getLearnedMacAddrs().empty()); BOOST_CHECK(!interface.getIsBpduGuardEnabled()); BOOST_CHECK(!interface.getIsBpduFilterEnabled()); BOOST_CHECK(!interface.getIsPortfastEnabled()); BOOST_CHECK(!interface.getIsPartial()); } } BOOST_AUTO_TEST_CASE(testSetters) { { TestInterfaceNetwork interface; nmdo::IpAddress ipAddr {"1.2.3.4/24"}; interface.addIpAddress(ipAddr); auto ipAddrs = interface.getIpAddresses(); BOOST_CHECK_EQUAL(1, ipAddrs.size()); BOOST_CHECK_EQUAL(ipAddr, ipAddrs[0]); } { TestInterfaceNetwork interface; nmdo::MacAddress macAddr {"00:11:22:33:44:55"}; interface.addPortSecurityStickyMac(macAddr); interface.addPortSecurityStickyMac(macAddr); auto macAddrs = interface.getLearnedMacAddrs(); BOOST_CHECK_EQUAL(1, macAddrs.size()); BOOST_CHECK_EQUAL(1, macAddrs.count(macAddr)); } { TestInterfaceNetwork interface; uint16_t vlanId {0}; interface.addVlan(vlanId); interface.addVlan(vlanId); vlanId = UINT16_MAX; interface.addVlan(vlanId); auto vlans {interface.getVlans()}; BOOST_CHECK_EQUAL(2, vlans.size()); BOOST_CHECK_EQUAL(1, vlans.count(nmdo::Vlan(vlanId))); BOOST_CHECK_EQUAL(1, vlans.count(nmdo::Vlan(vlanId))); } { TestInterfaceNetwork interface; BOOST_CHECK(interface.getIsDiscoveryProtocolEnabled()); interface.setDiscoveryProtocol(false); BOOST_CHECK(!interface.getIsDiscoveryProtocolEnabled()); interface.setDiscoveryProtocol(true); BOOST_CHECK(interface.getIsDiscoveryProtocolEnabled()); } { TestInterfaceNetwork interface; std::string text {"Some Description"}; interface.setDescription(text); BOOST_CHECK_EQUAL(text, interface.getDescription()); } { TestInterfaceNetwork interface; nmdo::MacAddress macAddr {"00:11:22:33:44:55"}; interface.setMacAddress(macAddr); BOOST_CHECK_EQUAL(macAddr, interface.getMacAddr()); } { TestInterfaceNetwork interface; std::string text {"MeDiAtYpE"}; BOOST_CHECK_EQUAL("ethernet", interface.getMediaType()); interface.setMediaType(text); BOOST_CHECK_EQUAL(nmcu::toLower(text), interface.getMediaType()); } { TestInterfaceNetwork interface; std::string text {"NaMe"}; interface.setName(text); BOOST_CHECK_EQUAL(nmcu::toLower(text), interface.getName()); } { TestInterfaceNetwork interface; BOOST_CHECK(interface.getState()); interface.setState(true); BOOST_CHECK(interface.getState()); interface.setState(false); BOOST_CHECK(!interface.getState()); } { TestInterfaceNetwork interface; std::string text {"MoDe"}; interface.setSwitchportMode(text); BOOST_CHECK_EQUAL(nmcu::toLower(text), interface.getMode()); } { TestInterfaceNetwork interface; BOOST_CHECK(!interface.getIsPortSecurityEnabled()); interface.setPortSecurity(true); BOOST_CHECK(interface.getIsPortSecurityEnabled()); interface.setPortSecurity(false); BOOST_CHECK(!interface.getIsPortSecurityEnabled()); } { TestInterfaceNetwork interface; BOOST_CHECK_EQUAL(1, interface.getPortSecurityMaxMacAddrs()); interface.setPortSecurityMaxMacAddrs(0); BOOST_CHECK_EQUAL(0, interface.getPortSecurityMaxMacAddrs()); interface.setPortSecurityMaxMacAddrs(USHRT_MAX); BOOST_CHECK_EQUAL(USHRT_MAX, interface.getPortSecurityMaxMacAddrs()); } { TestInterfaceNetwork interface; std::string text {"AcTiOn"}; BOOST_CHECK_EQUAL("shutdown", interface.getPortSecurityViolationAction()); interface.setPortSecurityViolationAction(text); BOOST_CHECK_EQUAL(nmcu::toLower(text), interface.getPortSecurityViolationAction()); } { TestInterfaceNetwork interface; BOOST_CHECK(!interface.getIsPortSecurityStickyMac()); interface.setPortSecurityStickyMac(true); BOOST_CHECK(interface.getIsPortSecurityStickyMac()); interface.setPortSecurityStickyMac(false); BOOST_CHECK(!interface.getIsPortSecurityStickyMac()); } { TestInterfaceNetwork interface; BOOST_CHECK(!interface.getIsBpduGuardEnabled()); interface.setBpduGuard(true); BOOST_CHECK(interface.getIsBpduGuardEnabled()); interface.setBpduGuard(false); BOOST_CHECK(!interface.getIsBpduGuardEnabled()); } { TestInterfaceNetwork interface; BOOST_CHECK(!interface.getIsBpduFilterEnabled()); interface.setBpduFilter(true); BOOST_CHECK(interface.getIsBpduFilterEnabled()); interface.setBpduFilter(false); BOOST_CHECK(!interface.getIsBpduFilterEnabled()); } { TestInterfaceNetwork interface; BOOST_CHECK(!interface.getIsPortfastEnabled()); interface.setPortfast(true); BOOST_CHECK(interface.getIsPortfastEnabled()); interface.setPortfast(false); BOOST_CHECK(!interface.getIsPortfastEnabled()); } { TestInterfaceNetwork interface; BOOST_CHECK(!interface.getIsPartial()); interface.setPartial(true); BOOST_CHECK(interface.getIsPartial()); interface.setPartial(false); BOOST_CHECK(!interface.getIsPartial()); } } BOOST_AUTO_TEST_CASE(testValidity) { { TestInterfaceNetwork interface; BOOST_CHECK(!interface.isValid()); interface.setName("name"); BOOST_CHECK(interface.isValid()); interface.setName(""); BOOST_CHECK(!interface.isValid()); } }
30.427632
87
0.717946
cmwill
a5e2be485ae34f75b86b7fdc6954071c9ec79997
1,523
cpp
C++
graph/createadjlist.cpp
huweihuang/data-structure-code
dacb3a036d0a4df391ce5fca9ce65f7dc2ab1b69
[ "Apache-2.0" ]
3
2019-05-17T09:09:16.000Z
2020-11-18T08:13:00.000Z
graph/createadjlist.cpp
huweihuang/data-structure-code
dacb3a036d0a4df391ce5fca9ce65f7dc2ab1b69
[ "Apache-2.0" ]
null
null
null
graph/createadjlist.cpp
huweihuang/data-structure-code
dacb3a036d0a4df391ce5fca9ce65f7dc2ab1b69
[ "Apache-2.0" ]
null
null
null
#include <stdio.h> #include <malloc.h> #define MAXVEX 100 typedef char VertexType[3]; typedef struct edgenode { int adjvex; /*邻接点序号*/ int value; /*边的权值*/ struct edgenode *next; /*下一条边的顶点*/ } ArcNode; /*每个顶点建立的单链表中结点的类型*/ typedef struct vexnode { VertexType data; /*结点信息*/ ArcNode *firstarc; /*指向第一条边结点*/ } VHeadNode; /*单链表的头结点类型*/ typedef struct { int n,e; /*n为实际顶点数,e为实际边数*/ VHeadNode adjlist[MAXVEX]; /*单链表头结点数组*/ } AdjList; /*图的邻接表类型*/ int CreateAdjList(AdjList *&G) /*建立有向图的邻接表*/ { int i,b,t,w; ArcNode *p; G=(AdjList *)malloc(sizeof(AdjList)); printf("顶点数(n),边数(e):"); scanf("%d%d",&G->n,&G->e); for (i=0;i<G->n;i++) { printf(" 序号为%d的顶点信息:", i); scanf("%s",G->adjlist[i].data); G->adjlist[i].firstarc=NULL; } for (i=0;i<G->e;i++) { printf(" 序号为边=>",i); printf(" 起点号 终点号 权值:"); scanf("%d%d%d",&b,&t,&w); if (b<G->n && t<G->n && w>0) { p=(ArcNode *)malloc(sizeof(ArcNode)); /*建立*p结点*/ p->value=w;p->adjvex=t; p->next=G->adjlist[b].firstarc; /**p插入到adjlist[b]的单链表之首*/ G->adjlist[b].firstarc=p; } else { printf("输入错误!\n"); return(0); } } return(1); } void DispAdjList(AdjList *G) { int i; ArcNode *p; printf("图的邻接表表示如下:\n"); for (i=0;i<G->n;i++) { printf(" [%d,%3s]=>",i,G->adjlist[i].data); p=G->adjlist[i].firstarc; while (p!=NULL) { printf("(%d,%d)->",p->adjvex,p->value); p=p->next; } printf("∧\n"); } } void main() { AdjList *G; CreateAdjList(G); DispAdjList(G); }
18.130952
61
0.560079
huweihuang
a5e4920d524a32dd9fa31d7088f7b66c198a2545
421
cpp
C++
src/utils/log.cpp
Metaphysical1/gamesneeze
59d31ee232bbcc80d29329e0f64ebdde599c37df
[ "MIT" ]
1,056
2020-11-17T11:49:12.000Z
2022-03-23T12:32:42.000Z
src/utils/log.cpp
dweee/gamesneeze
99f574db2617263470280125ec78afa813f27099
[ "MIT" ]
102
2021-01-15T12:05:18.000Z
2022-02-26T00:19:58.000Z
src/utils/log.cpp
dweee/gamesneeze
99f574db2617263470280125ec78afa813f27099
[ "MIT" ]
121
2020-11-18T12:08:21.000Z
2022-03-31T07:14:32.000Z
#include "../includes.hpp" /* print Logs in green */ void Log::log(logLevel level, const char* fmt, ...) { va_list args; va_start(args, fmt); switch (level) { case LOG: fputs("\e[32m[LOG] ", stdout); break; case WARN: fputs("\e[33m[WARN] ", stdout); break; case ERR: fputs("\e[31m[ERR] ", stdout); break; } vprintf(fmt, args); fputs("\e[0m\n", stdout); va_end(args); }
28.066667
57
0.562945
Metaphysical1
a5edc3d70372b7962417edba21fe1dc2defc4ad1
134
cpp
C++
QtDemoApp/QtDemoApp.cpp
F474M0R64N4/license-system
982f1297948353b58d736009a08c697c3e15a41b
[ "MIT" ]
4
2020-10-13T19:57:16.000Z
2021-09-08T11:57:12.000Z
QtDemoApp/QtDemoApp.cpp
F474M0R64N4/license-system
982f1297948353b58d736009a08c697c3e15a41b
[ "MIT" ]
null
null
null
QtDemoApp/QtDemoApp.cpp
F474M0R64N4/license-system
982f1297948353b58d736009a08c697c3e15a41b
[ "MIT" ]
null
null
null
#include "QtDemoApp.h" #include "stdafx.h" QtDemoApp::QtDemoApp(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); }
14.888889
37
0.686567
F474M0R64N4
a5ee24b372e1247559f7273726575e2525659796
1,300
hpp
C++
source/common.hpp
ThatGuyMike7/masonc
43a3a69cd64f52fda8a629360c52a222549d6368
[ "BSL-1.0" ]
3
2020-08-10T13:37:48.000Z
2021-07-06T10:14:39.000Z
source/common.hpp
ThatGuyMike7/masonc
43a3a69cd64f52fda8a629360c52a222549d6368
[ "BSL-1.0" ]
null
null
null
source/common.hpp
ThatGuyMike7/masonc
43a3a69cd64f52fda8a629360c52a222549d6368
[ "BSL-1.0" ]
null
null
null
#ifndef MASONC_COMMON_HPP #define MASONC_COMMON_HPP #include <iostream> #include <cstdint> #include <cstdlib> namespace masonc { using s8 = int8_t; using s16 = int16_t; using s32 = int32_t; using s64 = int64_t; using u8 = uint8_t; using u16 = uint16_t; using u32 = uint32_t; using u64 = uint64_t; using f32 = float; using f64 = double; void assume(bool statement, const char* msg = "", int code = -1); /* template <typename T> class result { public: result() : is_ok(false) { } result(T value) : _value(value), is_ok(true) { } ~result() { if (is_ok) _value.~T(); } explicit operator bool() const { return is_ok; } T value() { assume(is_ok, "\"is_ok\" in std::optional<T> is false"); return _value; } private: union { T _value; }; bool is_ok; }; template <typename T> class _result { public: _result() : is_ok(false) { } _result(T _value) : is_ok(true), _value(_value) { } //operator bool&() { return is_ok; } explicit operator bool() const { return is_ok; } T value() { assume(is_ok, "\"is_ok\" in std::optional<T> is false"); return _value; } private: T _value; bool is_ok; }; */ } #endif
18.055556
68
0.572308
ThatGuyMike7
a5f01c982bcd6aee3293a2863608db335b73fb03
8,146
cpp
C++
src/ioManager.cpp
maxwillf/Huffman
8de0e08050b5ada24c0114b8832fca192f8abce7
[ "MIT" ]
null
null
null
src/ioManager.cpp
maxwillf/Huffman
8de0e08050b5ada24c0114b8832fca192f8abce7
[ "MIT" ]
null
null
null
src/ioManager.cpp
maxwillf/Huffman
8de0e08050b5ada24c0114b8832fca192f8abce7
[ "MIT" ]
null
null
null
#include "../include/ioManager.h" int *IOManager::countFrequencies(std::ifstream &input) { int *ascii = new int[128]; char c = '\0'; while (input.get(c)) { if ((int) c == 10) continue; ascii[(int) c] +=1; } for (int i = 0; i < 128; ++i) { if (ascii[i] != 0) { c = i; std::cout << c << " " << ascii[i] << std::endl; } } return ascii; } void IOManager::readFile(std::ifstream &input) { int *ascii = countFrequencies(input); std::vector<Node*> orderedNodes; for (int i = 0; i < 128; ++i) { if (ascii[i] != 0) { char character = i; Node *node = new Node(ascii[i], character); insertOrd(orderedNodes, node, pred); } } insertOrd(orderedNodes, new Node(1, '$'), pred); tree = new HuffmanTree(orderedNodes); tree->printTree(); tree->fillMap(); delete [] ascii; } std::string IOManager::charBitsToString(unsigned char c) { unsigned char mask = 1; std::string bits = ""; while(byteIndex != 8){ if( (c & mask) == mask){ bits += '1'; } else { bits += '0'; } byteIndex++; c = c >> 1; } byteIndex = 0; std::reverse(bits.begin(),bits.end()); return bits; } /* TODO: get the string generated by the preOrder() method from the tree, compact it like it was done with the text in the compact() method and insert it in the beginning of the file, using '$' or some other char as the delimiter between where the tree starts and where the text starts */ void IOManager::encodeTree(std::ofstream &output) { std::string treeString = tree->preOrder(); std::string encodedString = ""; std::istringstream input(treeString); std::cout << tree->preOrder() << std::endl; char c = '\0'; while (input.get(c)) { if (c != '0' and c != '1') encodedString += charBitsToString(c); else encodedString += c; } std::cout << encodedString << std::endl; for (size_t i = 0; i < encodedString.size(); ++i) { if (encodedString[i] == '1') { c = c << 1; c += 1; } else { c = c << 1; } if(i + 1 == encodedString.size()) { while (++i % 8 != 0) c = c << 1; output << c; } else if ((i != 0 and (i + 1) % 8 == 0) or (i + 1) == encodedString.size()) { output << c; c = '\0'; } } output << (char) 255; } void IOManager::compact(std::ifstream &input, std::ofstream &output) { encodeTree(output); std::cout << tree->preOrder() << std::endl; // reset file stream input.clear(); input.seekg(0, std::ios::beg); char c = '\0'; std::string encodedString = ""; while (input.get(c)) encodedString += tree->findLetterPath(c); std::cout << encodedString << std::endl; c = '\0'; for (size_t i = 0; i < encodedString.size(); ++i) { if (encodedString[i] == '1') { c = c << 1; c += 1; } else { c = c << 1; } if(i+1 == encodedString.size()) { int it = encodedString.size() % 8; while(it++ != 8){ c = c << 1; } output << c; } else if ((i != 0 and (i + 1) % 8 == 0) or (i + 1) == encodedString.size()) { output << c; c = '\0'; } } } void IOManager::binaryToString(std::ifstream &input) { unsigned char mask = 0b10000000; unsigned char delim = (char) 255; while(input.get(byte)){ if((byte & delim) == delim){ std::cout << "broke free" << std::endl; break; } for (int i = 0; i < 8; ++i) { if( (byte & mask) == 0){ byte = byte << 1; decodingString += '0'; } else { byte = byte << 1; decodingString += '1'; } } } std::cout << decodingString << std::endl; std::vector<std::string> StringNodes; stringToVec(decodingString.begin(),StringNodes); for (auto i : StringNodes) { std::cout << i << std::endl; } std::cout << StringNodes.size() << std::endl; byteIndex = 0; delete tree; this->tree = new HuffmanTree(constructTree(StringNodes)); std::cout << tree->preOrder() << std::endl; } Node * IOManager::constructTree(std::vector<std::string> & vec) { if(byteIndex < vec.size()){ if(vec[byteIndex] == "0"){ byteIndex++; Node * left = constructTree(vec); byteIndex++; Node * right = constructTree(vec); return new Node(0,left,right); } else return new Node(0,stringToChar(vec[byteIndex])); } return nullptr; } char IOManager::stringToChar(std::string str) { unsigned char byte = 0; for (auto i = str.begin(); i < str.end(); ++i) { if(*i == '0'){ byte = byte << 1; } else { byte = byte << 1; byte += 1; } } //std::cout << byte << std::endl; return byte; } void IOManager::stringToVec(std::string::iterator curr_symbol, std::vector<std::string> & vec) { if(curr_symbol != decodingString.end()){ if(*curr_symbol == '0'){ vec.push_back("0"); stringToVec(++curr_symbol,vec); } else { curr_symbol++; int beginIndex = std::distance(decodingString.begin(),curr_symbol); std::string letter = decodingString.substr(beginIndex,8); vec.push_back(letter); stringToVec(curr_symbol+8,vec); } } } void IOManager::decodeTree(std::ifstream &input, std::ofstream &output){ binaryToString(input); readCompressed(input, output); /* delete tree; tree = new HuffmanTree(decodeTreeR(input)); std::cout << tree->preOrder();*/ } void IOManager::readCompressed(std::ifstream & input, std::ofstream &output) { unsigned char mask = 0x80; std::string file; char temp = '\0'; while(input.get(byte)){ // std::cout << byte << std::endl; for (int i = 0; i < 8; ++i) { if( (byte & mask) == mask){ //std::cout << "1"; temp = tree->searchByBit(mask); } else { //std::cout << "0" ; temp = tree->searchByBit(0); } if(temp == '$'){ break; } if (temp != (char) 255) { file += temp; } byte = byte << 1; } } output << file; } Node* IOManager::decodeTreeR(std::ifstream &input){ if(byteIndex % 8 == 0){ input.get(byte); //std::cout << "urgh" << byte << std::endl; if(byte == '\0'){ //std::cout << "null " << byte << std::endl; return nullptr; } byteIndex = 0; } unsigned char mask = 0b10000000; if( (byte & mask) == 0){ byte = byte << 1; byteIndex++; // std::cout << "ue" << std::endl; return new Node(0,decodeTreeR(input),decodeTreeR(input)); } else { nodeChar = 0; while(currentNodeIndex < 8){ if( (byte & mask) == mask){ nodeChar += 1; nodeChar = nodeChar << 1; byte = byte << 1; byteIndex++; currentNodeIndex++; } else { nodeChar = nodeChar << 1; byte = byte << 1; byteIndex++; currentNodeIndex++; } if(byteIndex % 8 == 0){ input.get(byte); if(byte == '\0'){ return nullptr; } byteIndex = 0; } } currentNodeIndex = 0; return new Node(0,nodeChar); } }
23.274286
94
0.465873
maxwillf
a5f0640634f5d138d8050e6a60263d9f048cb94f
304
cpp
C++
TimerThread.cpp
xuleilx/TimerThread
74e0759f879597ac2e9a48509af72ab12bb493d8
[ "MIT" ]
null
null
null
TimerThread.cpp
xuleilx/TimerThread
74e0759f879597ac2e9a48509af72ab12bb493d8
[ "MIT" ]
null
null
null
TimerThread.cpp
xuleilx/TimerThread
74e0759f879597ac2e9a48509af72ab12bb493d8
[ "MIT" ]
null
null
null
#include "TimerThread.h" TimerThread::TimerThread(int val, int interval, Callback cb) :_timer(val, interval, std::move(cb)), _thread(std::bind(&Timer::start, &_timer)) { } void TimerThread::start() { _thread.start(); } void TimerThread::stop() { _timer.stop(); _thread.join(); }
15.2
60
0.644737
xuleilx
57038c2c1e697f411729105cb1dab6214c993c82
2,758
cpp
C++
include/asioext/impl/file_handle.cpp
zweistein-frm2/asio-extensions
bafea77c48d674930405cb7f93bdfe65539abc39
[ "BSL-1.0" ]
17
2018-04-13T00:38:55.000Z
2022-01-21T08:38:36.000Z
include/asioext/impl/file_handle.cpp
zweistein-frm2/asio-extensions
bafea77c48d674930405cb7f93bdfe65539abc39
[ "BSL-1.0" ]
4
2017-03-16T03:34:38.000Z
2020-05-08T00:05:51.000Z
include/asioext/impl/file_handle.cpp
zweistein-frm2/asio-extensions
bafea77c48d674930405cb7f93bdfe65539abc39
[ "BSL-1.0" ]
5
2017-09-06T15:56:04.000Z
2021-09-14T07:38:02.000Z
/// @copyright Copyright (c) 2015 Tim Niederhausen ([email protected]) /// 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 "asioext/file_handle.hpp" #include "asioext/detail/throw_error.hpp" ASIOEXT_NS_BEGIN file_handle::file_handle(const native_handle_type& handle) ASIOEXT_NOEXCEPT : handle_(handle) { // ctor } file_handle::~file_handle() { } void file_handle::close() { error_code ec; close(ec); detail::throw_error(ec, "close"); } uint64_t file_handle::position() { error_code ec; uint64_t s = position(ec); detail::throw_error(ec, "position"); return s; } uint64_t file_handle::seek(seek_origin origin, int64_t offset) { error_code ec; uint64_t s = seek(origin, offset, ec); detail::throw_error(ec, "seek"); return s; } uint64_t file_handle::size() { error_code ec; uint64_t s = size(ec); detail::throw_error(ec, "size"); return s; } void file_handle::truncate(uint64_t new_size) { error_code ec; truncate(new_size, ec); detail::throw_error(ec, "truncate"); } #if defined(ASIOEXT_MSVC) && (ASIOEXT_MSVC >= 1400) \ && (!defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600) #pragma warning(push) #pragma warning(disable:4996) #endif file_perms file_handle::permissions() { error_code ec; file_perms p = permissions(ec); detail::throw_error(ec, "get_permissions"); return p; } void file_handle::permissions(file_perms perms, file_perm_options opts) { error_code ec; permissions(perms, opts, ec); detail::throw_error(ec, "set_permissions"); } void file_handle::permissions(file_perms perms, error_code& ec) ASIOEXT_NOEXCEPT { permissions(perms, file_perm_options::replace, ec); } file_attrs file_handle::attributes() { error_code ec; file_attrs a = attributes(ec); detail::throw_error(ec, "get_attributes"); return a; } void file_handle::attributes(file_attrs attrs, file_attr_options opts) { error_code ec; attributes(attrs, opts, ec); detail::throw_error(ec, "set_attributes"); } void file_handle::attributes(file_attrs attrs, error_code& ec) ASIOEXT_NOEXCEPT { attributes(attrs, file_attr_options::replace, ec); } #if defined(ASIOEXT_MSVC) && (ASIOEXT_MSVC >= 1400) \ && (!defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600) #pragma warning(pop) #endif file_times file_handle::times() { error_code ec; file_times t = times(ec); detail::throw_error(ec, "get_times"); return t; } void file_handle::times(const file_times& new_times) { error_code ec; times(new_times, ec); detail::throw_error(ec, "set_times"); } ASIOEXT_NS_END
21.215385
91
0.694344
zweistein-frm2
5712df6e00d1ab2b785c47a085d18056c5f285e7
1,490
cc
C++
src/phy/AutoGain.cc
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
8
2020-12-05T20:30:54.000Z
2022-01-22T13:32:14.000Z
src/phy/AutoGain.cc
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
3
2020-10-28T22:15:27.000Z
2021-01-27T14:43:41.000Z
src/phy/AutoGain.cc
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
null
null
null
// Copyright 2018-2020 Drexel University // Author: Geoffrey Mainland <[email protected]> #include "logging.hh" #include "phy/AutoGain.hh" void AutoGain::autoSoftGain0dBFS(float g, std::shared_ptr<IQBuf> buf) { { std::unique_lock<std::shared_mutex> lock(mutex_); if (nestimates_0dBFS_ > 0) --nestimates_0dBFS_; else return; } size_t n = buf->size(); // This should never happen, but just in case... if (n == 0) return; std::complex<float>* f = buf->data(); auto power = std::unique_ptr<float[]>(new float[n]); for (size_t i = 0; i < n; ++i) { std::complex<float> temp = f[i]; power[i] = temp.real()*temp.real() + temp.imag()*temp.imag(); } std::sort(power.get(), power.get() + n); size_t max_n = getAutoSoftTXGainClipFrac()*n; if (max_n < 0) max_n = 0; else if (max_n >= n) max_n = n - 1; float max_amp2 = power[max_n]; // Avoid division by 0! if (max_amp2 == 0.0) return; // XXX Should I^2 + Q^2 = 1.0 or 2.0? float g_estimate = sqrtf(1.0/max_amp2); // g is the gain multiplier used to produce the IQ samples { std::unique_lock<std::shared_mutex> lock(mutex_); g_0dBFS_estimate_.update(g*g_estimate); g_0dBFS_.store(*g_0dBFS_estimate_, std::memory_order_relaxed); } logAMC(LOGDEBUG-1, "updated auto-gain %0.1f", (double) getSoftTXGain0dBFS()); }
24.42623
81
0.58255
drexelwireless
5713256abe23bcd57036b18d9639c7a22c42922e
3,309
hpp
C++
src/common/global/global.hpp
mshiryaev/oneccl
fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa
[ "Apache-2.0" ]
null
null
null
src/common/global/global.hpp
mshiryaev/oneccl
fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa
[ "Apache-2.0" ]
null
null
null
src/common/global/global.hpp
mshiryaev/oneccl
fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa
[ "Apache-2.0" ]
null
null
null
/* Copyright 2016-2019 Intel Corporation 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 #include "ccl.h" #include "common/utils/utils.hpp" #include "coll/algorithms/algorithms_enum.hpp" #include <memory> #include <thread> #define COMMON_CATCH_BLOCK() \ catch (ccl::ccl_error& ccl_e) \ { \ LOG_ERROR("ccl internal error: ", ccl_e.what()); \ return ccl_status_invalid_arguments; \ } \ catch (std::exception& e) \ { \ LOG_ERROR("error: ", e.what()); \ return ccl_status_runtime_error; \ } \ catch (...) \ { \ LOG_ERROR("general error"); \ return ccl_status_runtime_error; \ } \ class ccl_comm; class ccl_stream; class ccl_atl_tag; class ccl_comm_id_storage; class ccl_executor; class ccl_sched_cache; class ccl_parallelizer; class ccl_fusion_manager; class ccl_unordered_coll_manager; template<ccl_coll_type... registered_types_id> struct ccl_algorithm_selector_wrapper; struct alignas(CACHELINE_SIZE) ccl_global_data { std::unique_ptr<ccl_comm_id_storage> comm_ids; std::shared_ptr<ccl_comm> comm; std::unique_ptr<ccl_atl_tag> atl_tag; std::unique_ptr<ccl_executor> executor; std::unique_ptr<ccl_coll_attr_t> default_coll_attr; std::unique_ptr<ccl_sched_cache> sched_cache; std::unique_ptr<ccl_parallelizer> parallelizer; std::unique_ptr<ccl_fusion_manager> fusion_manager; std::unique_ptr<ccl_unordered_coll_manager> unordered_coll_manager; std::unique_ptr<ccl_algorithm_selector_wrapper<CCL_COLL_LIST>> algorithm_selector; static thread_local bool is_worker_thread; bool is_ft_enabled; }; extern ccl_global_data global_data; #define CCL_CHECK_IS_BLOCKED() \ { \ do \ { \ if (unlikely(global_data.executor->is_locked)) \ { \ return ccl_status_blocked_due_to_resize; \ } \ } while (0); \ } void reset_for_size_update(ccl_global_data* gl_data); void ccl_init_global_objects(ccl_global_data& gl_data);
37.602273
86
0.550922
mshiryaev
5718d406a63067946b8977563d455cf8cc504621
1,180
cpp
C++
PA1/src/Scene.cpp
dowoncha/COMP575
6e48bdd80cb1a3e677c07655640efa941325e59c
[ "MIT" ]
null
null
null
PA1/src/Scene.cpp
dowoncha/COMP575
6e48bdd80cb1a3e677c07655640efa941325e59c
[ "MIT" ]
null
null
null
PA1/src/Scene.cpp
dowoncha/COMP575
6e48bdd80cb1a3e677c07655640efa941325e59c
[ "MIT" ]
null
null
null
#include "Scene.h" Scene::Scene() { } Scene::~Scene() { for (Surface* s : Surfaces) { delete s; } for (Light* l : Lights) { delete l; } } void Scene::AddSurface(Surface* s) { Surfaces.push_back(s); } void Scene::AddLight(Light* l) { Lights.push_back(l); } bool Scene::IntersectSurfaces(const Ray& ray, float tMax, HitData& data) const { bool surfacehit = false; // Intersect all surfaces using view ray // float tMin = tMax; for (Surface* s : Surfaces) { if (s->Intersect(ray, data.t, data.tMax, data.tPoint)) { data.Point = data.tPoint; data.t = data.tMax; data.HitSurface = s; data.Normal = data.HitSurface->GetNormal(data.Point); surfacehit = true; } } return surfacehit; } bool Scene::IntersectSurfaces(const Ray& ray, float tMax, const Surface *ignore) const { // Intersect all surfaces using view ray for (Surface* s : Surfaces) { if (s == ignore) continue; if (s->Intersect(ray, tMax)) { return true; } } return false; }
18.153846
86
0.545763
dowoncha
571946ce5f50cbfcefca6e36e3c4a56f6d2b1851
1,056
cpp
C++
codeforces/441div2/A/main.cpp
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
null
null
null
codeforces/441div2/A/main.cpp
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
19
2016-05-04T02:46:31.000Z
2021-11-27T06:18:33.000Z
codeforces/441div2/A/main.cpp
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
null
null
null
#include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; typedef long long int lli; typedef unsigned long long ull; typedef complex<double> point; template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first << "," << p.second << ")"; return os; } int main(int argc, char *argv[]) { ios_base::sync_with_stdio(0); cin.tie(0); int n, a, b, c; while (cin >> n >> a >> b >> c) { // Rabbit's and Owl's houses is a meters // Rabbit's and Eeyore's house is b meters // Owl's and Eeyore's house is c meters. const int N = 3; int g[N][N]; g[0][1] = g[1][0] = a; g[0][2] = g[2][0] = b; g[1][2] = g[2][1] = c; lli sum = 0; int i = 0; --n; while (n--) { int j = (i + 1) % N; int k = (i - 1 + N) % N; if (g[i][j] < g[i][k]) { sum += g[i][j]; i = j; } else { sum += g[i][k]; i = k; } } cout << sum << endl; } return 0; }
19.2
49
0.47822
Johniel
571eed7509330fe9237cc46a01edb5c9cc7a93a3
3,698
cpp
C++
firmware/modules/core/cRgbw.cpp
klaus-liebler/sensact
b8fc05eff67f23cf58c4fdf53e0026aab0966f6b
[ "Apache-2.0" ]
2
2021-02-09T16:17:43.000Z
2021-08-09T04:02:44.000Z
firmware/modules/core/cRgbw.cpp
klaus-liebler/sensact
b8fc05eff67f23cf58c4fdf53e0026aab0966f6b
[ "Apache-2.0" ]
2
2016-05-17T20:45:10.000Z
2020-03-10T07:03:39.000Z
firmware/modules/core/cRgbw.cpp
klaus-liebler/sensact
b8fc05eff67f23cf58c4fdf53e0026aab0966f6b
[ "Apache-2.0" ]
1
2020-05-24T13:37:55.000Z
2020-05-24T13:37:55.000Z
#include "cMaster.h" #include "cRgbw.h" #define LOGLEVEL LEVEL_INFO #define LOGNAME "RGBW " #include "cLog.h" namespace sensact { //targetValue absolut setzen oder aktuellen targetValue ver�ndern mit einem sint16_t //oder ausschalten, sonst geht der targetLevel nicht auf 0 cRgbw::cRgbw(const eApplicationID id, uint16_t const outputR, uint16_t const outputG, uint16_t const outputB, uint16_t const outputW, const bool lowMeansLampOn, const uint8_t *const WellKnownColors, const uint8_t WellKnownColorsLength, const eApplicationID standbyController, const Time_t autoOffIntervalMsecs) : cApplication(id), outputR(outputR), outputG(outputG), outputB(outputB), outputW(outputW), lowMeansLampOn(lowMeansLampOn), WellKnownColors(WellKnownColors), WellKnownColorsLength(WellKnownColorsLength), standbyController(standbyController), autoOffIntervalMsecs(autoOffIntervalMsecs), lastHeartbeatToStandbycontroller(0), lastColor(0), state(ePowerState::INACTIVE), changeRecorded(false), autoOffTime(TIME_MAX) { } eAppType cRgbw::GetAppType() { return eAppType::RGBW; } void cRgbw::showColorOfIndex(Time_t now, uint8_t index) { index%=WellKnownColorsLength; uint8_t* ptr = (uint8_t*)(this->WellKnownColors+4*index); lastColor=index; LOGD("Showing Color ID %d", lastColor); showColorOfRGBW(now, ptr[0], ptr[1], ptr[2], ptr[3]); } void cRgbw::showColorOfRGBW(Time_t now, uint8_t R, uint8_t G, uint8_t B, uint8_t W) { if(R==0 && G==0 && B==0 && W==0 ) { this->state = ePowerState::INACTIVE; } else { this->state = ePowerState::ACTIVE; } if(!lowMeansLampOn) { R=UINT8_MAX-R; B=UINT8_MAX-B; G=UINT8_MAX-G; W=UINT8_MAX-W; } BSP::SetDigitalOutput(this->outputR, R==255?UINT16_MAX:R<<8); BSP::SetDigitalOutput(this->outputG, G==255?UINT16_MAX:G<<8); BSP::SetDigitalOutput(this->outputB, B==255?UINT16_MAX:B<<8); if(this->outputW!=UINT16_MAX) { BSP::SetDigitalOutput(this->outputW, W==255?UINT16_MAX:W<<8); } changeRecorded=true; if(autoOffIntervalMsecs!=0) { autoOffTime=now+autoOffIntervalMsecs; } } void cRgbw::switchOff(Time_t now) { showColorOfRGBW(now, 0,0,0,0); } void cRgbw::OnSTEP_VERTICALCommand(int16_t step, Time_t now) { UNUSED(now); if(step==0) step=1; uint8_t index = ((int)(100 + lastColor + step)) % WellKnownColorsLength;//+100 um ausreichend im Positiven zu sein auch bei negativen steps showColorOfIndex(now, index); } void cRgbw::OnTOGGLECommand(Time_t now) { UNUSED(now); if(this->state == ePowerState::INACTIVE) { showColorOfIndex(now, lastColor); } else { switchOff(now); } } void cRgbw::OnSET_RGBWCommand(uint8_t R, uint8_t G, uint8_t B, uint8_t W, Time_t now) { showColorOfRGBW(now, R, G, B, W); } //Payload enth�lt 16bit wellKnownColorIndex void cRgbw::OnSET_SIGNALCommand(uint16_t signal, Time_t now) { UNUSED(now); uint8_t index = signal%WellKnownColorsLength; showColorOfIndex(now, index); } eAppCallResult cRgbw::DoEachCycle(volatile Time_t now, uint8_t *statusBuffer, size_t *statusBufferLength) { if(standbyController!=eApplicationID::NO_APPLICATION && state==ePowerState::ACTIVE && now-lastHeartbeatToStandbycontroller>10000) { cMaster::SendCommandToMessageBus(now, standbyController, eCommandType::HEARTBEAT, 0, 0); lastHeartbeatToStandbycontroller=now; } Common::WriteInt16(outputR, statusBuffer, 0); Common::WriteInt16(outputG, statusBuffer, 2); Common::WriteInt16(outputB, statusBuffer, 4); Common::WriteInt16(outputW, statusBuffer, 6); *statusBufferLength=8; eAppCallResult ret = changeRecorded?eAppCallResult::OK_CHANGED:eAppCallResult::OK; changeRecorded=false; return ret; } eAppCallResult cRgbw::Setup() { switchOff(0); return eAppCallResult::OK; } }
26.042254
312
0.751217
klaus-liebler
57204e8a0af2a07ece27f8de81c6dacb89509453
3,714
cpp
C++
gui/dialogs/pixelize-dialog.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
10
2016-12-28T22:06:31.000Z
2021-05-24T13:42:30.000Z
gui/dialogs/pixelize-dialog.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
4
2015-10-09T23:55:10.000Z
2020-04-04T08:09:22.000Z
gui/dialogs/pixelize-dialog.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
null
null
null
// -*- coding: us-ascii-unix -*- // Copyright 2013 Lukas Kemmer // // 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 "wx/dialog.h" #include "wx/sizer.h" #include "bitmap/bitmap-templates.hh" #include "gui/dialog-context.hh" #include "gui/slider.hh" #include "util/accessor.hh" #include "util-wx/fwd-wx.hh" #include "util-wx/gui-util.hh" #include "util-wx/key-codes.hh" #include "util-wx/layout-wx.hh" #include "util/command-util.hh" #include "util/optional.hh" namespace faint{ static bool enable_preview_default(const Bitmap& bmp){ return area(bmp.GetSize()) < area({2000, 2000}); } class PixelizeDialog : public wxDialog { public: PixelizeDialog(wxWindow& parent, const SliderCursors& sliderCursors, DialogFeedback& feedback) : wxDialog(&parent, wxID_ANY, "Pixelize", wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxWANTS_CHARS | wxRESIZE_BORDER), m_bitmap(feedback.GetBitmap()), m_pixelSizeSlider(nullptr), m_enablePreview(nullptr), m_feedback(feedback), m_sliderCursors(sliderCursors) { using namespace layout; // Create the member-controls in intended tab-order (placement follows) m_enablePreview = create_checkbox(this, "&Preview", enable_preview_default(m_bitmap), [&](){ if (PreviewEnabled()){ UpdatePreview(); } else{ ResetPreview(); } }); m_pixelSizeSlider = create_slider(this, BoundedInt::Mid(min_t(1), max_t(100)), SliderDir::HORIZONTAL, slider_marker_BorderedLine(), slider_bg_Rectangle(), m_sliderCursors, IntSize(200, 20)); set_sizer(this, create_column({ create_row({raw(m_enablePreview)}), grow(create_row({grow(m_pixelSizeSlider)})), center(create_row_no_pad({ make_default(this, create_ok_button(this)), create_cancel_button(this)})) })); center_over_parent(this); set_accelerators(this, { {key::F5, [=](){UpdatePreview();}}, {key::P, [=](){ toggle(m_enablePreview); }}}); events::on_slider_change(this, [&](int){ if (PreviewEnabled()){ UpdatePreview(); } }); m_pixelSizeSlider->SetFocus(); if (PreviewEnabled()){ UpdatePreview(); } } BitmapCommandPtr GetCommand(){ return get_pixelize_command(m_pixelSizeSlider->GetValue()); } bool ValuesModified() const{ return m_pixelSizeSlider->GetValue() != 1; } private: bool PreviewEnabled() const{ return get(m_enablePreview); } void ResetPreview(){ m_feedback.SetBitmap(m_bitmap); } void UpdatePreview(){ m_feedback.SetBitmap(onto_new(pixelize, m_bitmap, m_pixelSizeSlider->GetValue())); } Bitmap m_bitmap; Slider* m_pixelSizeSlider; wxCheckBox* m_enablePreview; DialogFeedback& m_feedback; const SliderCursors& m_sliderCursors; }; BitmapCommandPtr show_pixelize_dialog(wxWindow& parent, DialogContext& c, DialogFeedback& feedback) { PixelizeDialog dlg(parent, c.GetSliderCursors(), feedback); bool ok = c.ShowModal(dlg) == DialogChoice::OK && dlg.ValuesModified(); return ok ? dlg.GetCommand() : nullptr; } } // namespace
26.719424
79
0.679052
lukas-ke
5729cb383bf59af6b6ff843255dfd1cf3acd3b8e
5,258
cpp
C++
src/MultiMonteCarloTreeSearch.cpp
renewang/HexGame
21d271091c0b09dd701e1d7b61673ab944e7d45b
[ "MIT" ]
1
2015-05-05T08:35:11.000Z
2015-05-05T08:35:11.000Z
src/MultiMonteCarloTreeSearch.cpp
renewang/HexGame
21d271091c0b09dd701e1d7b61673ab944e7d45b
[ "MIT" ]
null
null
null
src/MultiMonteCarloTreeSearch.cpp
renewang/HexGame
21d271091c0b09dd701e1d7b61673ab944e7d45b
[ "MIT" ]
null
null
null
/* * MultiMonteCarloTreeSearch.cpp * This file declares a Mont Carlo Tree Search implementation for AI player * Created on: Feb 11, 2014 * Author: renewang */ #include "Global.h" #include "LockableGameTree.h" #include "MultiMonteCarloTreeSearch.h" #include <algorithm> #include <boost/thread/detail/memory.hpp> using namespace std; using namespace boost; #if __cplusplus > 199711L MultiMonteCarloTreeSearch::MultiMonteCarloTreeSearch(const HexBoard* board, const Player* aiplayer) : MultiMonteCarloTreeSearch(board, aiplayer, 8, 2048) { } MultiMonteCarloTreeSearch::MultiMonteCarloTreeSearch(const HexBoard* board, const Player* aiplayer, size_t numberofthreads) : MultiMonteCarloTreeSearch(board, aiplayer, numberofthreads, 2048) { } #else MultiMonteCarloTreeSearch::MultiMonteCarloTreeSearch(const HexBoard* board, const Player* aiplayer) : AbstractStrategyImpl(board, aiplayer), mcstimpl(MonteCarloTreeSearch(board, aiplayer)), ptrtoboard(board), ptrtoplayer(aiplayer), numberofthreads(4), numberoftrials(2048) { babywatsoncolor = mcstimpl.babywatsoncolor; oppoenetcolor = mcstimpl.oppoenetcolor; } MultiMonteCarloTreeSearch::MultiMonteCarloTreeSearch(const HexBoard* board, const Player* aiplayer, size_t numberofthreads):AbstractStrategyImpl(board, aiplayer), mcstimpl(MonteCarloTreeSearch(board, aiplayer)), ptrtoboard(board), ptrtoplayer(aiplayer), numberofthreads(numberofthreads), numberoftrials(2048) { babywatsoncolor = mcstimpl.babywatsoncolor; oppoenetcolor = mcstimpl.oppoenetcolor; } #endif MultiMonteCarloTreeSearch::MultiMonteCarloTreeSearch(const HexBoard* board, const Player* aiplayer, size_t numberofthreads, size_t numberoftrials) : AbstractStrategyImpl(board, aiplayer), mcstimpl(MonteCarloTreeSearch(board, aiplayer)), ptrtoboard(board), ptrtoplayer(aiplayer), numberofthreads(numberofthreads), numberoftrials(numberoftrials) { babywatsoncolor = mcstimpl.babywatsoncolor; oppoenetcolor = mcstimpl.oppoenetcolor; } ///Overwritten simulation method. See AbstractStrategy. int MultiMonteCarloTreeSearch::simulation(int currentempty) { hexgame::shared_ptr<bool> emptyglobal; vector<int> bwglobal, oppglobal; initGameState(emptyglobal, bwglobal, oppglobal); LockableGameTree gametree(ptrtoplayer->getViewLabel()); //shared and lockable for (size_t i = 0; i < (numberoftrials / numberofthreads); ++i) { thread_group threads; for (size_t j = 0; j < numberofthreads; ++j) threads.create_thread( boost::bind(boost::mem_fn(&MultiMonteCarloTreeSearch::task), boost::ref(*this), boost::cref(bwglobal), boost::cref(oppglobal), boost::cref(emptyglobal), currentempty, boost::ref(gametree))); assert(threads.size() == numberofthreads); threads.join_all(); } int resultmove = mcstimpl.getBestMove(gametree); //find the move with the maximal successful simulated outcome assert(resultmove != -1); return resultmove; } ///the actual task passed to each thread for execution which contains selection, expansion and backpropagation phases ///@param bwglobal is the moves made by AI player in the current actual game state ///@param oppglobal is the moves made by human player in the current actual game state ///@param emptyglobal stores indicator of a position on the hex board is empty or not which will be modified when a simulated game progresses ///@param currentempty is the current empty hexgons or positions left in the actual game state which will be the number of children nodes of root of game tree ///@param gametree is a game tree object which stores the simulation progress and result ///@return NONE void MultiMonteCarloTreeSearch::task( const std::vector<int>& bwglobal, const std::vector<int>& oppglobal, const hexgame::shared_ptr<bool>& emptyglobal, int currentempty, AbstractGameTree& gametree) { //initialize the following containers to the current progress of playing board vector<int> babywatsons(bwglobal), opponents(oppglobal); hexgame::shared_ptr<bool> emptyindicators = hexgame::shared_ptr<bool>( new bool[ptrtoboard->getSizeOfVertices()], hexgame::default_delete<bool[]>()); copy(emptyglobal.get(), emptyglobal.get() + ptrtoboard->getSizeOfVertices(), emptyindicators.get()); int proportionofempty = currentempty; //in-tree phase pair<int, int> selectresult = mcstimpl.selection(currentempty, gametree); int expandednode = mcstimpl.expansion(selectresult, emptyindicators, proportionofempty, babywatsons, opponents, gametree); //simulation phase int winner = mcstimpl.playout(emptyindicators, proportionofempty, babywatsons, opponents); assert(winner != 0); //back-propagate mcstimpl.backpropagation(expandednode, winner, gametree); }
42.747967
158
0.699696
renewang
572f0a71176a2bbdded6ad9534af864370daa235
5,922
hpp
C++
common/logging/include/claragenomics/logging/logging.hpp
billchenxi/ClaraGenomicsAnalysis
544effc5881560de6d316f39c47c87014da14d70
[ "Apache-2.0" ]
1
2020-01-21T09:07:02.000Z
2020-01-21T09:07:02.000Z
common/logging/include/claragenomics/logging/logging.hpp
billchenxi/ClaraGenomicsAnalysis
544effc5881560de6d316f39c47c87014da14d70
[ "Apache-2.0" ]
1
2020-12-04T06:24:05.000Z
2020-12-04T06:24:05.000Z
common/logging/include/claragenomics/logging/logging.hpp
billchenxi/ClaraGenomicsAnalysis
544effc5881560de6d316f39c47c87014da14d70
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this software and related documentation without an express * license agreement from NVIDIA CORPORATION is strictly prohibited. */ #pragma once /// \file /// \defgroup logging Internal logging package /// Base docs for the logging package /// This package makes use of SpdLog under the following license: /// /// The MIT License (MIT) /// /// Copyright (c) 2016 Gabi Melman. /// /// 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 <claragenomics/utils/cudaversions.hpp> /// \ingroup logging /// \{ /// \brief DEBUG log level #define cga_log_level_debug 0 /// \brief INFO log level #define cga_log_level_info 1 /// \brief WARN log level #define cga_log_level_warn 2 /// \brief ERROR log level #define cga_log_level_error 3 /// \brief CRITICAL log level #define cga_log_level_critical 4 /// \brief No logging #define cga_log_level_off 5 #ifndef CGA_LOG_LEVEL #ifndef NDEBUG /// \brief Defines the logging level used in the current module #define CGA_LOG_LEVEL cga_log_level_debug #else // NDEBUG /// \brief Defines the logging level used in the current module #define CGA_LOG_LEVEL cga_log_level_error #endif // NDEBUG #endif // CGA_LOG_LEVEL #if CGA_LOG_LEVEL == cga_log_level_info /// \brief Set log level to INFO #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO #elif CGA_LOG_LEVEL == cga_log_level_debug /// \brief Set log level to DEBUG #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG #elif CGA_LOG_LEVEL == cga_log_level_warn /// \brief Set log level to WARN #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_WARN #elif CGA_LOG_LEVEL == cga_log_level_error /// \brief Set log level to ERROR #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_ERROR #elif CGA_LOG_LEVEL == cga_log_level_critical /// \brief Set log level to CRITICAL #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_CRITICAL #else /// \brief Set log level to OFF #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_OFF #endif // MUST come after the defines of the logging level! #ifdef CGA_CUDA_BEFORE_9_2 // Due to a header file incompatibility with nvcc in CUDA 9.0 // logging through the logger class in CGA is disabled for any .cu files. #pragma message("Logging disabled for CUDA Toolkit < 9.2") #else #include <spdlog/spdlog.h> #endif namespace claragenomics { namespace logging { /// \ingroup logging /// Logging status type enum class LoggingStatus { success = 0, ///< Success cannot_open_file, ///< Initialization could not open the output file requested cannot_open_stdout ///< Stdout could not be opened for logging }; /// \ingroup logging /// Init Initialize the logging /// \param filename if specified, the path/name of the file into which logging should be placed. /// The default is stdout /// \return success or error status LoggingStatus Init(const char* filename = nullptr); /// \ingroup logging /// SetHeader Adjust the header/preface for each log message /// \param logTime if true, the detailed time will be prepended to each message. /// \param logLocation if true, the file and line location logging will be prepended to each message. /// \return success or error status LoggingStatus SetHeader(bool logTime, bool logLocation); /// \ingroup logging /// \def CGA_LOG_DEBUG /// \brief Log at debug level /// /// parameters as per https://github.com/gabime/spdlog/blob/v1.x/README.md #ifdef CGA_CUDA_BEFORE_9_2 #define CGA_LOG_DEBUG(...) #else #define CGA_LOG_DEBUG(...) SPDLOG_DEBUG(__VA_ARGS__) #endif /// \ingroup logging /// \def CGA_LOG_INFO /// \brief Log at info level /// /// parameters as per https://github.com/gabime/spdlog/blob/v1.x/README.md #ifdef CGA_CUDA_BEFORE_9_2 #define CGA_LOG_INFO(...) #else #define CGA_LOG_INFO(...) SPDLOG_INFO(__VA_ARGS__) #endif /// \ingroup logging /// \def CGA_LOG_WARN /// \brief Log at warning level /// /// parameters as per https://github.com/gabime/spdlog/blob/v1.x/README.md #ifdef CGA_CUDA_BEFORE_9_2 #define CGA_LOG_WARN(...) #else #define CGA_LOG_WARN(...) SPDLOG_WARN(__VA_ARGS__) #endif /// \ingroup logging /// \def CGA_LOG_ERROR /// \brief Log at error level /// /// parameters as per https://github.com/gabime/spdlog/blob/v1.x/README.md #ifdef CGA_CUDA_BEFORE_9_2 #define CGA_LOG_ERROR(...) #else #define CGA_LOG_ERROR(...) SPDLOG_ERROR(__VA_ARGS__) #endif /// \ingroup logging /// \def CGA_LOG_CRITICAL /// \brief Log at fatal/critical error level (does NOT exit) /// /// parameters as per https://github.com/gabime/spdlog/blob/v1.x/README.md #ifdef CGA_CUDA_BEFORE_9_2 #define CGA_LOG_CRITICAL(...) #else #define CGA_LOG_CRITICAL(...) SPDLOG_CRITICAL(__VA_ARGS__) #endif } // namespace logging } // namespace claragenomics /// \}
32.538462
101
0.756839
billchenxi
5736f5d36bbfafce59a69072822e7e335c6c639a
5,251
hpp
C++
packages/monte_carlo/collision/native/src/MonteCarlo_StandardPhotoatomicReaction.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/src/MonteCarlo_StandardPhotoatomicReaction.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/src/MonteCarlo_StandardPhotoatomicReaction.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_StandardPhotoatomicReaction.hpp //! \author Alex Robinson //! \brief The standard photoatomic reaction base class declaration //! //---------------------------------------------------------------------------// #ifndef MONTE_CARLO_STANDARD_PHOTOATOMIC_REACTION_HPP #define MONTE_CARLO_STANDARD_PHOTOATOMIC_REACTION_HPP // Trilinos Includes #include <Teuchos_ArrayRCP.hpp> // FRENSIE Includes #include "MonteCarlo_PhotoatomicReaction.hpp" #include "MonteCarlo_PhotonState.hpp" #include "MonteCarlo_ParticleBank.hpp" #include "Utility_HashBasedGridSearcher.hpp" namespace MonteCarlo{ /*! The standard photoatomic reaction base class * \details Use the InterpPolicy template parameter and the * processed_cross_section template parameter to customize the behavior of * this class. Raw cross section data from the EPDL library would use * a LogLog policy with processed_cross_section = false. Processed cross * section data from an ACE library would use a LogLog policy with * processed_cross_section = true. When data is processed, the policy is used * to indicate how the data was processed. */ template<typename InterpPolicy, bool processed_cross_section> class StandardPhotoatomicReaction : public PhotoatomicReaction { public: //! Basic constructor StandardPhotoatomicReaction( const Teuchos::ArrayRCP<const double>& incoming_energy_grid, const Teuchos::ArrayRCP<const double>& cross_section, const unsigned threshold_energy_index ); //! Constructor StandardPhotoatomicReaction( const Teuchos::ArrayRCP<const double>& incoming_energy_grid, const Teuchos::ArrayRCP<const double>& cross_section, const unsigned threshold_energy_index, const Teuchos::RCP<const Utility::HashBasedGridSearcher>& grid_searcher ); //! Destructor virtual ~StandardPhotoatomicReaction() { /* ... */ } //! Test if the energy falls within the energy grid bool isEnergyWithinEnergyGrid( const double energy ) const; //! Return the cross section at the given energy double getCrossSection( const double energy ) const; //! Return the cross section at the given energy (efficient) double getCrossSection( const double energy, const unsigned bin_index ) const; //! Return the threshold energy double getThresholdEnergy() const; protected: //! Return the head of the energy grid const double* getEnergyGridHead() const; private: // The processed incoming energy grid Teuchos::ArrayRCP<const double> d_incoming_energy_grid; // The processed cross section values evaluated on the incoming e. grid Teuchos::ArrayRCP<const double> d_cross_section; // The threshold energy unsigned d_threshold_energy_index; // The hash-based grid searcher Teuchos::RCP<const Utility::HashBasedGridSearcher> d_grid_searcher; }; //! Partial template specialization for raw data template<typename InterpPolicy> class StandardPhotoatomicReaction<InterpPolicy,false> : public PhotoatomicReaction { public: //! Basic constructor StandardPhotoatomicReaction( const Teuchos::ArrayRCP<const double>& incoming_energy_grid, const Teuchos::ArrayRCP<const double>& cross_section, const unsigned threshold_energy_index ); //! Constructor StandardPhotoatomicReaction( const Teuchos::ArrayRCP<const double>& incoming_energy_grid, const Teuchos::ArrayRCP<const double>& cross_section, const unsigned threshold_energy_index, const Teuchos::RCP<const Utility::HashBasedGridSearcher>& grid_searcher ); //! Destructor virtual ~StandardPhotoatomicReaction() { /* ... */ } //! Test if the energy falls within the energy grid bool isEnergyWithinEnergyGrid( const double energy ) const; //! Return the cross section at the given energy double getCrossSection( const double energy ) const; //! Return the cross section at the given energy (efficient) double getCrossSection( const double energy, const unsigned bin_index ) const; //! Return the threshold energy double getThresholdEnergy() const; protected: //! Return the head of the energy grid const double* getEnergyGridHead() const; private: // The incoming energy grid Teuchos::ArrayRCP<const double> d_incoming_energy_grid; // The cross section values evaluated on the incoming energy grid Teuchos::ArrayRCP<const double> d_cross_section; // The threshold energy const unsigned d_threshold_energy_index; // The hash-based grid searcher Teuchos::RCP<const Utility::HashBasedGridSearcher> d_grid_searcher; }; } // end MonteCarlo namespace //---------------------------------------------------------------------------// // Template Includes. //---------------------------------------------------------------------------// #include "MonteCarlo_StandardPhotoatomicReaction_def.hpp" //---------------------------------------------------------------------------// #endif // end MONTE_CARLO_STANDARD_PHOTOATOMIC_REACTION_HPP //---------------------------------------------------------------------------// // end MonteCarlo_StandardPhotoatomicReaction.hpp //---------------------------------------------------------------------------//
32.81875
82
0.689583
lkersting
573f5c01356eb80f9361483fd66c7b9372074c2b
5,011
cpp
C++
src/analysis.cpp
git-steb/structural-deformable-models
4706a65e0dc031d16e259e526fd6a55e805855d1
[ "MIT" ]
2
2017-03-01T20:07:09.000Z
2020-07-12T11:02:21.000Z
src/analysis.cpp
git-steb/structural-deformable-models
4706a65e0dc031d16e259e526fd6a55e805855d1
[ "MIT" ]
null
null
null
src/analysis.cpp
git-steb/structural-deformable-models
4706a65e0dc031d16e259e526fd6a55e805855d1
[ "MIT" ]
null
null
null
//this is a dump of different analysis sources //springconst tuning evaluation { ofstream os("refinestat.txt",ios::app); os << "statistics for shape refinement" << endl; os << "model\tpoint dist\tchamfer\thausdorff" << endl; do{ loadSpecies(m_DBSelector.getCurSpecies()); CHECK_THREAD(DO_ANALYSIS); cout << "hello" << endl; //do analysis here (anahere) Model refmod(*m_Geom); Model omod(*m_Geom); m_GeomMutex.lock(); if(st.getRefModel(m_CSpecies.id, refmod)) { attachBrowseData(); refmod.attachDataset(&m_Data); omod.attachDataset(&m_Data); m_GeomMutex.unlock(); os << "species id: " << m_CSpecies.id << " ppmm = " << m_Data.getPPMM() << endl; cout << "original model" << endl; *m_Geom = omod; m_Geom->adaptProperties(refmod.getProperties()); unsigned long nowticks = getMilliSeconds(); while(getMilliSeconds()-nowticks < 5*1000) CHECK_THREAD(DO_ANALYSIS); // sleep DUMP(refmod.distance(*m_Geom, Model::DIST_POINTS)); DUMP(refmod.distance(*m_Geom, Model::DIST_CPOINTS)); DUMP(refmod.distance(*m_Geom, Model::DIST_HPOINTS)); os << "orig\t" << refmod.distance(*m_Geom, Model::DIST_POINTS) /m_Data.getPPMM()<<"\t" << refmod.distance(*m_Geom, Model::DIST_CPOINTS) /m_Data.getPPMM()<<"\t" << refmod.distance(*m_Geom, Model::DIST_HPOINTS) /m_Data.getPPMM() << endl; cout << "reference model" << endl; *m_Geom = refmod; m_Geom->adaptProperties(refmod.getProperties()); nowticks = getMilliSeconds(); while(getMilliSeconds()-nowticks < 5*1000) CHECK_THREAD(DO_ANALYSIS); // sleep DUMP(refmod.distance(*m_Geom, Model::DIST_POINTS)); DUMP(refmod.distance(*m_Geom, Model::DIST_CPOINTS)); DUMP(refmod.distance(*m_Geom, Model::DIST_HPOINTS)); os << "ref\t" << refmod.distance(*m_Geom, Model::DIST_POINTS) /m_Data.getPPMM()<<"\t" << refmod.distance(*m_Geom, Model::DIST_CPOINTS) /m_Data.getPPMM()<<"\t" << refmod.distance(*m_Geom, Model::DIST_HPOINTS) /m_Data.getPPMM() << endl; static float sscs[] = {0.05, 0.1, 0.2, 0.4, 0.8, 1, 1.3, 1.5, 1.8, 2, 2.5, 3, 4, 5, 7, 10,-1}; for(int ssi = 0; sscs[ssi]>0; ssi++) { float scscale = sscs[ssi]; cout << "master model scscale = "<<scscale<< endl; st.buildMasterModel(scscale); *m_Geom = st.getModel(); m_Geom->adaptProperties(refmod.getProperties()); nowticks = getMilliSeconds(); while(getMilliSeconds()-nowticks < 5*1000) CHECK_THREAD(DO_ANALYSIS); // sleep DUMP(refmod.distance(*m_Geom,Model::DIST_POINTS)); DUMP(refmod.distance(*m_Geom,Model::DIST_CPOINTS)); DUMP(refmod.distance(*m_Geom,Model::DIST_HPOINTS)); os << scscale<<"\t" << refmod.distance(*m_Geom, Model::DIST_POINTS) /m_Data.getPPMM()<<"\t" << refmod.distance(*m_Geom, Model::DIST_CPOINTS) /m_Data.getPPMM()<<"\t" << refmod.distance(*m_Geom, Model::DIST_HPOINTS) /m_Data.getPPMM() << endl; } m_GeomMutex.lock(); } m_GeomMutex.unlock(); if(anastate == -1) { EXIT_THREAD(DO_ANALYSIS); break; } } EXIT_THREAD(DO_ANALYSIS); cout << "analysis terminated" << endl; break; }
52.197917
79
0.4089
git-steb
57451206f19d3a9216145823244259ca05bad775
849
cpp
C++
Source/Testing/tests/LTextureTest.cpp
SirRamEsq/LEngine
24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c
[ "Apache-2.0" ]
1
2020-05-24T14:04:12.000Z
2020-05-24T14:04:12.000Z
Source/Testing/tests/LTextureTest.cpp
SirRamEsq/LEngine
24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c
[ "Apache-2.0" ]
21
2017-09-20T13:39:12.000Z
2018-01-27T22:21:13.000Z
Source/Testing/tests/LTextureTest.cpp
SirRamEsq/LEngine
24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c
[ "Apache-2.0" ]
null
null
null
#include "../../Engine/Kernel.h" #include "../catch.hpp" TEST_CASE("Can Load and Bind Texture", "[resources][texture]") { Kernel::Inst(); auto initialCount = Kernel::rscTexMan.GetSize(); std::string texName = "System/testImage.png"; int expectedW = 72; int expectedH = 72; auto resource = Kernel::rscTexMan.GetLoadItem(texName, texName); REQUIRE(resource != NULL); auto name = resource->GetName(); REQUIRE(name == texName); auto width = resource->GetWidth(); REQUIRE(width == expectedW); auto height = resource->GetHeight(); REQUIRE(height == expectedH); resource->Bind(); auto id = resource->GetOpenGLID(); REQUIRE(id != 0); auto itemCount = Kernel::rscTexMan.GetSize(); REQUIRE(itemCount == initialCount + 1); Kernel::Close(); itemCount = Kernel::rscTexMan.GetSize(); REQUIRE(itemCount == 0); }
23.583333
66
0.669022
SirRamEsq
5749fc279454bcb0b1367f1c9592be679d428efa
558
cpp
C++
Online-Judge-Solution/UVA Solutions/10282(Babelfish).cpp
arifparvez14/Basic-and-competetive-programming
4cb9ee7fbed3c70307d0f63499fcede86ed3c732
[ "MIT" ]
null
null
null
Online-Judge-Solution/UVA Solutions/10282(Babelfish).cpp
arifparvez14/Basic-and-competetive-programming
4cb9ee7fbed3c70307d0f63499fcede86ed3c732
[ "MIT" ]
null
null
null
Online-Judge-Solution/UVA Solutions/10282(Babelfish).cpp
arifparvez14/Basic-and-competetive-programming
4cb9ee7fbed3c70307d0f63499fcede86ed3c732
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { map<string, string> conversion; string temp, second; getline(cin, temp); while (temp.size() !=0) { stringstream ss(temp); ss >> temp >> second; conversion[second] = temp; getline(cin, temp); } while (cin >> temp) { map<string, string>::const_iterator iter = conversion.find(temp); if (iter == conversion.end()) cout << "eh\n"; else cout << iter->second << '\n'; } return 0; }
19.928571
73
0.516129
arifparvez14
574e9007b67248a726cb0aa08f00be1de23401e3
993
cpp
C++
UVa Online Judge/11536.cpp
xiezeju/ACM-Code-Archives
db135ed0953adcf5c7ab37a00b3f9458291ce0d7
[ "MIT" ]
1
2022-02-24T12:44:30.000Z
2022-02-24T12:44:30.000Z
UVa Online Judge/11536.cpp
xiezeju/ACM-Code-Archives
db135ed0953adcf5c7ab37a00b3f9458291ce0d7
[ "MIT" ]
null
null
null
UVa Online Judge/11536.cpp
xiezeju/ACM-Code-Archives
db135ed0953adcf5c7ab37a00b3f9458291ce0d7
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; const int INF = 1e9; const long long LLINF = 4e18; const double EPS = 1e-9; const int maxn = 1e6 + 10; int a[maxn]={},f[maxn]={}; int main() { ios::sync_with_stdio(false); int t;cin>>t; int x=1; while(t--){ memset(f,0,sizeof f); int n,m,k;cin>>n>>m>>k; int ans = INF; a[1] = 1,a[2] = 2,a[3] = 3; for(int i=4;i<=n;i++) a[i]=(a[i-1]+a[i-2]+a[i-3])%m+1; int l=1,r=1,cnt=0; while(l<=r&&r<=n){ if(cnt!=k) { if(!f[a[r]]&&a[r]<=k) cnt++; f[a[r++]]++; } else { ans=min(ans,r-l); f[a[l]]--; if(!f[a[l]]&&a[l]<=k) cnt--; l++; } //cout<<l<<" "<<r<<endl; } if(ans==INF) printf("Case %d: sequence nai\n",x++); else printf("Case %d: %d\n",x++,ans); } return 0; }
19.470588
57
0.449144
xiezeju
575270c2f184dbb4b32f47c6accdf3526f8a4cd4
1,411
hpp
C++
src/nnfusion/core/operators/op_define/variable.hpp
lynex/nnfusion
6332697c71b6614ca6f04c0dac8614636882630d
[ "MIT" ]
639
2020-09-05T10:00:59.000Z
2022-03-30T08:42:39.000Z
src/nnfusion/core/operators/op_define/variable.hpp
QPC-database/nnfusion
99ada47c50f355ca278001f11bc752d1c7abcee2
[ "MIT" ]
252
2020-09-09T05:35:36.000Z
2022-03-29T04:58:41.000Z
src/nnfusion/core/operators/op_define/variable.hpp
QPC-database/nnfusion
99ada47c50f355ca278001f11bc752d1c7abcee2
[ "MIT" ]
104
2020-09-05T10:01:08.000Z
2022-03-23T10:59:13.000Z
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // 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. //***************************************************************************** // Microsoft (c) 2019, NNFusion Team #pragma once #include "../util/tensor_op.hpp" namespace nnfusion { namespace op { /// \brief Class for variables. /// class Variable : public TensorOp { public: /// \brief Constructions a tensor view-typed variable node. /// /// \param element_type The element type of the variable. /// \param pshape The partial shape of the variable. Variable(const nnfusion::element::Type& element_type, const nnfusion::Shape& shape); bool is_variable() const override { return true; } }; } }
34.414634
96
0.584692
lynex
57575ee784fca90ef995e8c1c221255cbf37b42c
3,064
cpp
C++
reconstruction/gadgetron/CS_LAB_Gadget/src/RETRO/CS_Retro_ImageCombinerGadget.cpp
alwaysbefun123/CS_MoCo_LAB
a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b
[ "BSD-2-Clause" ]
83
2017-08-11T09:18:17.000Z
2022-01-23T03:08:00.000Z
reconstruction/gadgetron/CS_LAB_Gadget/src/RETRO/CS_Retro_ImageCombinerGadget.cpp
MrYuwan/CS_MoCo_LAB
a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b
[ "BSD-2-Clause" ]
4
2017-09-19T23:02:12.000Z
2020-11-23T11:25:18.000Z
reconstruction/gadgetron/CS_LAB_Gadget/src/RETRO/CS_Retro_ImageCombinerGadget.cpp
MrYuwan/CS_MoCo_LAB
a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b
[ "BSD-2-Clause" ]
49
2017-03-19T18:41:55.000Z
2021-11-25T08:25:44.000Z
#include "CS_Retro_ImageCombinerGadget.h" #include <mri_core_data.h> using namespace Gadgetron; // class constructor CS_Retro_ImageCombinerGadget::CS_Retro_ImageCombinerGadget() { } // class destructor CS_Retro_ImageCombinerGadget::~CS_Retro_ImageCombinerGadget() { delete data_; } int CS_Retro_ImageCombinerGadget::process_config(ACE_Message_Block *mb) { return GADGET_OK; } int CS_Retro_ImageCombinerGadget::process(GadgetContainerMessage<ISMRMRD::ImageHeader> *m1, GadgetContainerMessage<hoNDArray<std::complex<float> > > *m2) { // receive [x y z resp_phases card_phases] hoNDArray<std::complex<float> > &received_data = *m2->getObjectPtr(); // handle first initialization if (data_ == NULL) { // create header for return message return_message_ = new GadgetContainerMessage<ISMRMRD::ImageHeader>(); fCopyImageHeader(return_message_, m1->getObjectPtr()); number_of_respiratory_phases_ = get_number_of_gates(m1->getObjectPtr()->user_int[0], 0); number_of_cardiac_phases_ = get_number_of_gates(m1->getObjectPtr()->user_int[0], 1); // just pass if whole data is processed at once if (received_data.get_size(3) == number_of_respiratory_phases_ && received_data.get_size(4) == number_of_cardiac_phases_) { GINFO("Whole data was processed at once, so nothing has to be combined. Gadget is bypassed.\n"); // put data on pipeline if (this->next()->putq(m1) < 0) { return GADGET_FAIL; } return GADGET_OK; } // order of array: [x y z resp_phases card_phases] data_ = new hoNDArray<std::complex<float> >(received_data.get_size(0), received_data.get_size(1), received_data.get_size(2), number_of_respiratory_phases_, number_of_cardiac_phases_); } // get current image position (which phase?) const unsigned int current_resp_phase = m1->getObjectPtr()->image_index; const unsigned int current_card_phase = m1->getObjectPtr()->image_series_index; // copy data to position const vector_td<size_t, 5> fill_offset = { static_cast<size_t>(0), static_cast<size_t>(0), static_cast<size_t>(0), current_resp_phase, current_card_phase }; fill(received_data, fill_offset, *data_); // increase receive counter receive_counter_ += received_data.get_size(3)*received_data.get_size(4); // free memory m1->release(); m1 = NULL; return GADGET_OK; } int CS_Retro_ImageCombinerGadget::close(unsigned long flags) { if (flags == 1) { GDEBUG("Finalizing array, with %d, %d, %d\n", receive_counter_, number_of_respiratory_phases_, number_of_cardiac_phases_); // create data element GadgetContainerMessage<hoNDArray<std::complex<float> > > *cm2 = new GadgetContainerMessage<hoNDArray<std::complex<float> > >(); cm2->getObjectPtr()->create(data_->get_dimensions()); memcpy(cm2->getObjectPtr()->get_data_ptr(), data_->get_data_ptr(), cm2->getObjectPtr()->get_number_of_bytes()); // concatenate data to header information return_message_->cont(cm2); // put data on pipeline this->next()->putq(return_message_); } return Gadget::close(flags); } GADGET_FACTORY_DECLARE(CS_Retro_ImageCombinerGadget)
33.67033
185
0.756854
alwaysbefun123
5759a3e5ae1c9bdff9aa1dd6605ce1a6dea911af
3,921
hh
C++
services/arena/include/fightingPit/contender/pit_contenders.hh
FreeYourSoul/FyS
123ca6e76387125909d343c23e788aa033221db5
[ "MIT" ]
9
2019-04-13T17:11:06.000Z
2020-04-23T12:06:59.000Z
services/arena/include/fightingPit/contender/pit_contenders.hh
FreeYourSoul/FyS
123ca6e76387125909d343c23e788aa033221db5
[ "MIT" ]
null
null
null
services/arena/include/fightingPit/contender/pit_contenders.hh
FreeYourSoul/FyS
123ca6e76387125909d343c23e788aa033221db5
[ "MIT" ]
2
2020-04-07T06:05:11.000Z
2020-11-07T23:26:56.000Z
// MIT License // // Copyright (c) 2021 Quentin Balland // Repository : https://github.com/FreeYourSoul/FyS // // 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. #ifndef FYS_PITCONTENDERS_HH #define FYS_PITCONTENDERS_HH #include <functional> #include <memory> #include <vector> #include <fightingPit/data/common_types.hh> #include <fightingPit/hexagon_side.hh> namespace fys::arena { template<typename T> using comparator_selection = std::function<bool(std::shared_ptr<T>, std::shared_ptr<T>)>; //forward declarations class fighting_contender; class ally_party_teams; class pit_contenders { public: pit_contenders() = default; pit_contenders(const pit_contenders& other) = delete; void execute_contender_action(const data::priority_elem& contender); [[nodiscard]] std::vector<std::shared_ptr<fighting_contender>> contenders_on_side(hexagon_side::orientation side) const; [[nodiscard]] std::vector<std::shared_ptr<fighting_contender>> changing_side_contenders() const; // scripting utility [[nodiscard]] std::shared_ptr<fighting_contender> select_suitable_contender(comparator_selection<fighting_contender> comp) const; [[nodiscard]] std::shared_ptr<fighting_contender> select_suitable_contender_on_side(hexagon_side::orientation side, comparator_selection<fighting_contender> comp) const; [[nodiscard]] std::shared_ptr<fighting_contender> select_random_contender_on_side_alive(hexagon_side::orientation side) const; [[nodiscard]] std::shared_ptr<fighting_contender> select_suitable_contender_alive(comparator_selection<fighting_contender> comp) const; [[nodiscard]] std::shared_ptr<fighting_contender> select_suitable_contender_on_side_alive(hexagon_side::orientation side, comparator_selection<fighting_contender> comp) const; [[nodiscard]] std::shared_ptr<fighting_contender> fighting_contender_at(uint pos) const { return _contenders.at(pos); } [[nodiscard]] std::size_t number_contender() const { return _contenders.size(); } [[nodiscard]] std::vector<std::shared_ptr<fighting_contender>> get_dead_contender_on_side(hexagon_side::orientation contender_ptr) const; [[nodiscard]] const std::vector<std::shared_ptr<fighting_contender>>& get_contenders() const { return _contenders; } [[nodiscard]] unsigned number_contender_on_side(hexagon_side::orientation side) const; [[nodiscard]] bool add_contender(const std::shared_ptr<fighting_contender>& contender); [[nodiscard]] bool all_dead() const; private: std::vector<std::shared_ptr<fighting_contender>> _contenders; /** * Flags determining which contenders are going to move from one side to another<br> * (only _contenders having this flag (index equivalent) set to true have their position refreshed */ std::vector<bool> _change_side_flags; }; }// namespace fys::arena #endif// !FYS_PITCONTENDERS_HH
36.64486
127
0.770212
FreeYourSoul
575d6ed1d8dd01059469bbce716f5d5ffa7918b5
2,011
cpp
C++
framework/source/wrap/descriptor_pool.cpp
wobakj/VulkanFramework
960628dbc9743f0d74bc13b7d990d0795e32a542
[ "MIT" ]
null
null
null
framework/source/wrap/descriptor_pool.cpp
wobakj/VulkanFramework
960628dbc9743f0d74bc13b7d990d0795e32a542
[ "MIT" ]
null
null
null
framework/source/wrap/descriptor_pool.cpp
wobakj/VulkanFramework
960628dbc9743f0d74bc13b7d990d0795e32a542
[ "MIT" ]
null
null
null
#include "wrap/descriptor_pool.hpp" #include "wrap/descriptor_set_layout.hpp" #include "wrap/device.hpp" #include "wrap/shader.hpp" DescriptorPool::DescriptorPool() :WrapperDescriptorPool{} ,m_device{nullptr} {} DescriptorPool::DescriptorPool(DescriptorPool && DescriptorPool) :WrapperDescriptorPool{} ,m_device{nullptr} { swap(DescriptorPool); } DescriptorPool::DescriptorPool(Device const& device, DescriptorPoolInfo const& info) :DescriptorPool{} { m_device = device; m_info = info; m_object = m_device.createDescriptorPool(info); } DescriptorPool::~DescriptorPool() { cleanup(); } void DescriptorPool::destroy() { m_device.destroyDescriptorPool(get()); } DescriptorPool& DescriptorPool::operator=(DescriptorPool&& DescriptorPool) { swap(DescriptorPool); return *this; } void DescriptorPool::swap(DescriptorPool& DescriptorPool) { WrapperDescriptorPool::swap(DescriptorPool); std::swap(m_device, DescriptorPool.m_device); } std::vector<DescriptorSet> DescriptorPool::allocate(std::vector<DescriptorSetLayout> const& layouts) const { vk::DescriptorSetAllocateInfo info_alloc{}; info_alloc.descriptorPool = get(); info_alloc.descriptorSetCount = std::uint32_t(layouts.size()); std::vector<vk::DescriptorSetLayout> vklayouts{}; for (auto const& layout : layouts) { vklayouts.emplace_back(layout.get()); } info_alloc.pSetLayouts = vklayouts.data(); auto vk_sets = m_device.allocateDescriptorSets(info_alloc); std::vector<DescriptorSet> sets{}; for (size_t i = 0; i < layouts.size(); ++i) { sets.emplace_back(m_device, std::move(vk_sets[i]), layouts[i].info(), get()); } return sets; } DescriptorSet DescriptorPool::allocate(DescriptorSetLayout const& layout) const { vk::DescriptorSetAllocateInfo info_alloc{}; info_alloc.descriptorPool = get(); info_alloc.descriptorSetCount = 1; info_alloc.pSetLayouts = &layout.get(); return DescriptorSet{m_device, std::move(m_device.allocateDescriptorSets(info_alloc)[0]), layout.info(), get()}; }
29.573529
114
0.753357
wobakj
5762b3a443c7ff4ea8613ffe47c45b51a4fb3222
5,138
cpp
C++
src/JsonRecord.cpp
ojdkbuild/contrib_update-notifier
f462fe8378a6ec21223cb01c517d95ea19dca25e
[ "Apache-2.0" ]
2
2017-05-30T01:42:32.000Z
2020-07-25T19:17:49.000Z
src/JsonRecord.cpp
ojdkbuild/contrib_update-notifier
f462fe8378a6ec21223cb01c517d95ea19dca25e
[ "Apache-2.0" ]
null
null
null
src/JsonRecord.cpp
ojdkbuild/contrib_update-notifier
f462fe8378a6ec21223cb01c517d95ea19dca25e
[ "Apache-2.0" ]
1
2020-07-25T19:17:56.000Z
2020-07-25T19:17:56.000Z
/* * Copyright 2016 Red Hat, 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. */ /* * File: JsonRecord.cpp * Author: alex * * Created on October 21, 2016, 1:49 PM */ #include "JsonRecord.hpp" #include "transform.hpp" #include "utils.hpp" namespace checker { JsonRecord::JsonRecord() : json(json_object()) { if (!json) { throw CheckerException("Cannot create empty JSON object"); } } JsonRecord::JsonRecord(json_t* json) : json(download_manager_transform(json)) { if (!this->json) { throw CheckerException("Invalid 'null' JSON specified"); } if (!json_is_object(this->json)) { throw CheckerException("Invalid 'non-object' JSON specified"); } } JsonRecord::~JsonRecord() { if (json) { json_decref(json); } } /** * Pre-C++11 move logic * * @param other */ JsonRecord::JsonRecord(const JsonRecord& other) : json(other.json) { other.json = NULL; } const json_t* JsonRecord::get() const { return json; } const char* JsonRecord::get_string(const std::string& fieldname, const std::string& defaultval) const { json_t* field = json_object_get(json, fieldname.c_str()); if (!(field && json_is_string(field))) { return defaultval.c_str(); } return json_string_value(field); } void JsonRecord::put_string(const std::string& fieldname, const std::string& value) { json_t* field = json_string(value.c_str()); if (!field) { throw CheckerException("Cannot create JSON string, field: [" + fieldname + "]," + " value: [" + value +"]"); } int err = json_object_set_new(json, fieldname.c_str(), field); if (err) { throw CheckerException("Cannot set JSON string, field: [" + fieldname + "]," + " value: [" + value + "]"); } } uint32_t JsonRecord::get_uint32(const std::string& fieldname, uint32_t defaultval) const { json_t* field = json_object_get(json, fieldname.c_str()); if (!(field && json_is_integer(field))) { return defaultval; } json_int_t res = json_integer_value(field); if (res < 0) { return defaultval; } uint64_t res_u64 = static_cast<uint64_t> (res); if (res >= std::numeric_limits<uint32_t>::max()) { return defaultval; } return static_cast<uint32_t> (res_u64); } void JsonRecord::put_uint32(const std::string& fieldname, uint32_t value) { json_t* field = json_integer(static_cast<json_int_t> (value)); if (!field) { throw CheckerException("Cannot create JSON integer, field: [" + fieldname + "]," + " value: [" + utils::to_string(value) + "]"); } int err = json_object_set_new(json, fieldname.c_str(), field); if (err) { throw CheckerException("Cannot set JSON integer, field: [" + fieldname + "]," + " value: [" + utils::to_string(value) + "]"); } } uint64_t JsonRecord::get_uint64(const std::string& fieldname, uint64_t defaultval) const { json_t* field = json_object_get(json, fieldname.c_str()); if (!(field && json_is_integer(field))) { return defaultval; } json_int_t res = json_integer_value(field); if (res < 0) { return defaultval; } return static_cast<uint64_t> (res); } void JsonRecord::put_uint64(const std::string& fieldname, uint64_t value) { json_t* field = json_integer(static_cast<json_int_t> (value)); if (!field) { throw CheckerException("Cannot create JSON integer, field: [" + fieldname + "]," + " value: [" + utils::to_string(value) + "]"); } int err = json_object_set_new(json, fieldname.c_str(), field); if (err) { throw CheckerException("Cannot set JSON integer, field: [" + fieldname + "]," + " value: [" + utils::to_string(value) + "]"); } } bool JsonRecord::get_bool(const std::string& fieldname, bool defaultval) const { json_t* field = json_object_get(json, fieldname.c_str()); if (!(field && json_is_boolean(field))) { return defaultval; } return json_is_true(field) ? true : false; } void JsonRecord::put_bool(const std::string& fieldname, bool value) { json_t* field = json_boolean(value); if (!field) { throw CheckerException("Cannot create JSON bool, field: [" + fieldname + "]," + " value: [" + utils::to_string(value) + "]"); } int err = json_object_set_new(json, fieldname.c_str(), field); if (err) { throw CheckerException("Cannot set JSON bool, field: [" + fieldname + "]," + " value: [" + utils::to_string(value) + "]"); } } } // namespace
30.951807
103
0.630012
ojdkbuild
5766eeb52049e919ed012727d98466222aa78aac
3,550
cpp
C++
forked/macrokeyboard_by_nicaqueous.cpp
saltyfishie98/MacroPad
d90601b7795676449c7d3ddb88360516e806d4ac
[ "MIT" ]
null
null
null
forked/macrokeyboard_by_nicaqueous.cpp
saltyfishie98/MacroPad
d90601b7795676449c7d3ddb88360516e806d4ac
[ "MIT" ]
null
null
null
forked/macrokeyboard_by_nicaqueous.cpp
saltyfishie98/MacroPad
d90601b7795676449c7d3ddb88360516e806d4ac
[ "MIT" ]
null
null
null
#include <Keyboard.h> // Code by youtube.com/nicaqueous // assign each key to a digital pin const int key[16] = {6, 5, 4, 3, 2, 7, 8, 9, 10, 16, 14, 15, 18, 19, 20, 21}; uint32_t previousmillis; // used for debouncing int keypressed = 0; void setup() { for (int i = 0; i < 16; i++) { pinMode(key[i], INPUT); } Serial.begin(9600); Keyboard.begin(); } void loop() { for (int i = 0; i < 16; i++) { if (digitalRead(key[i]) == 1) { if (millis() - previousmillis > 200) // debouncing { previousmillis = millis(); keypressed = i + 1; Serial.println(keypressed); switch (keypressed) { case 0: break; // assign macros here! case 1: Keyboard.press(KEY_F13); Keyboard.releaseAll(); break; case 2: Keyboard.press(KEY_F14); Keyboard.releaseAll(); break; case 3: Keyboard.press(KEY_F15); Keyboard.releaseAll(); break; case 4: Keyboard.press(KEY_F16); Keyboard.releaseAll(); break; case 5: Keyboard.press(KEY_F17); Keyboard.releaseAll(); break; case 6: Keyboard.press(KEY_F18); Keyboard.releaseAll(); break; case 7: Keyboard.press(KEY_F19); Keyboard.releaseAll(); break; case 8: Keyboard.press(KEY_F20); Keyboard.releaseAll(); break; case 9: Keyboard.press(KEY_F21); Keyboard.releaseAll(); break; case 10: Keyboard.press(KEY_F22); Keyboard.releaseAll(); break; case 11: Keyboard.press(KEY_F23); Keyboard.releaseAll(); break; case 12: // open command prompt Keyboard.press(KEY_LEFT_GUI); Keyboard.press('r'); Keyboard.releaseAll(); break; case 13: // mute/unmute Keyboard.press(KEY_LEFT_CTRL); Keyboard.press(KEY_LEFT_SHIFT); Keyboard.press('m'); Keyboard.releaseAll(); break; case 14: // deafen/undeafen Keyboard.press(KEY_LEFT_CTRL); Keyboard.press(KEY_LEFT_SHIFT); Keyboard.press('d'); Keyboard.releaseAll(); break; case 15: // switch tabs Keyboard.press(KEY_LEFT_ALT); Keyboard.press(KEY_TAB); Keyboard.releaseAll(); break; case 16: // tba break; default: keypressed = 0; break; } } } } }
33.809524
78
0.378873
saltyfishie98
576775beddf22f405f4e36cee2ec47e0a163842e
16,297
cc
C++
libgearman/add.cc
alionurdemetoglu/gearmand
dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22
[ "BSD-3-Clause" ]
712
2016-07-02T03:32:22.000Z
2022-03-23T14:23:02.000Z
libgearman/add.cc
alionurdemetoglu/gearmand
dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22
[ "BSD-3-Clause" ]
294
2016-07-03T16:17:41.000Z
2022-03-30T04:37:49.000Z
libgearman/add.cc
alionurdemetoglu/gearmand
dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22
[ "BSD-3-Clause" ]
163
2016-07-08T10:03:38.000Z
2022-01-21T05:03:48.000Z
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * * Gearmand client and server library. * * Copyright (C) 2011 Data Differential, http://datadifferential.com/ * Copyright (C) 2008 Brian Aker, Eric Day * 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. * * * The names of its contributors may not be used to endorse or * promote products derived from this software without specific prior * written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ #include "gear_config.h" #include <libgearman/common.h> #include <libgearman/universal.hpp> #include <libgearman/add.hpp> #include <libgearman/packet.hpp> #include "libgearman/assert.hpp" #include "libgearman/log.hpp" #include "libgearman/vector.h" #include "libgearman/uuid.hpp" #include "libhashkit-1.0/hashkit.h" #include <cerrno> #include <cstdio> #include <cstdlib> #include <cstring> #include <memory> namespace { bool is_background(gearman_command_t command) { switch (command) { case GEARMAN_COMMAND_SUBMIT_JOB_EPOCH: case GEARMAN_COMMAND_SUBMIT_JOB_SCHED: case GEARMAN_COMMAND_SUBMIT_JOB_BG: case GEARMAN_COMMAND_SUBMIT_JOB_LOW_BG: case GEARMAN_COMMAND_SUBMIT_JOB_HIGH_BG: case GEARMAN_COMMAND_SUBMIT_REDUCE_JOB_BACKGROUND: return true; case GEARMAN_COMMAND_SUBMIT_REDUCE_JOB: case GEARMAN_COMMAND_SUBMIT_JOB: case GEARMAN_COMMAND_SUBMIT_JOB_LOW: case GEARMAN_COMMAND_SUBMIT_JOB_HIGH: return true; case GEARMAN_COMMAND_ALL_YOURS: case GEARMAN_COMMAND_CANT_DO: case GEARMAN_COMMAND_CAN_DO: case GEARMAN_COMMAND_CAN_DO_TIMEOUT: case GEARMAN_COMMAND_ECHO_REQ: case GEARMAN_COMMAND_ECHO_RES: case GEARMAN_COMMAND_ERROR: case GEARMAN_COMMAND_GET_STATUS: case GEARMAN_COMMAND_GRAB_JOB: case GEARMAN_COMMAND_GRAB_JOB_ALL: case GEARMAN_COMMAND_GRAB_JOB_UNIQ: case GEARMAN_COMMAND_JOB_ASSIGN: case GEARMAN_COMMAND_JOB_ASSIGN_ALL: case GEARMAN_COMMAND_JOB_ASSIGN_UNIQ: case GEARMAN_COMMAND_JOB_CREATED: case GEARMAN_COMMAND_MAX: case GEARMAN_COMMAND_NOOP: case GEARMAN_COMMAND_NO_JOB: case GEARMAN_COMMAND_OPTION_REQ: case GEARMAN_COMMAND_OPTION_RES: case GEARMAN_COMMAND_PRE_SLEEP: case GEARMAN_COMMAND_RESET_ABILITIES: case GEARMAN_COMMAND_SET_CLIENT_ID: case GEARMAN_COMMAND_STATUS_RES: case GEARMAN_COMMAND_TEXT: case GEARMAN_COMMAND_UNUSED: case GEARMAN_COMMAND_WORK_COMPLETE: case GEARMAN_COMMAND_WORK_DATA: case GEARMAN_COMMAND_WORK_EXCEPTION: case GEARMAN_COMMAND_WORK_FAIL: case GEARMAN_COMMAND_WORK_STATUS: case GEARMAN_COMMAND_WORK_WARNING: case GEARMAN_COMMAND_GET_STATUS_UNIQUE: case GEARMAN_COMMAND_STATUS_RES_UNIQUE: assert(0); break; } return false; } } // namespace gearman_task_st *add_task(Client& client, void *context, gearman_command_t command, const gearman_string_t &function, gearman_unique_t &unique, const gearman_string_t &workload, time_t when, const gearman_actions_t &actions) { return add_task(client, NULL, context, command, function, unique, workload, when, actions); } gearman_task_st *add_task_ptr(Client& client, gearman_task_st *task, void *context, gearman_command_t command, const char *function_name, const char *unique, const void *workload_str, size_t workload_size, time_t when, gearman_return_t& ret_ptr, const gearman_actions_t &actions) { gearman_string_t function= { gearman_string_param_cstr(function_name) }; gearman_unique_t local_unique= gearman_unique_make(unique, unique ? strlen(unique) : 0); gearman_string_t workload= { static_cast<const char *>(workload_str), workload_size }; task= add_task(client, task, context, command, function, local_unique, workload, when, actions); if (task == NULL) { ret_ptr= client.universal.error_code(); return NULL; } ret_ptr= GEARMAN_SUCCESS; return task; } gearman_task_st *add_task(Client& client, gearman_task_st *task_shell, void *context, gearman_command_t command, const gearman_string_t &function, gearman_unique_t &unique, const gearman_string_t &workload, time_t when, const gearman_actions_t &actions) { if (gearman_size(function) == 0 or gearman_c_str(function) == NULL or gearman_size(function) > GEARMAN_FUNCTION_MAX_SIZE) { if (gearman_size(function) > GEARMAN_FUNCTION_MAX_SIZE) { gearman_error(client.universal, GEARMAN_INVALID_ARGUMENT, "function name longer then GEARMAN_MAX_FUNCTION_SIZE"); } else { gearman_error(client.universal, GEARMAN_INVALID_ARGUMENT, "invalid function"); } return NULL; } if (gearman_size(unique) > GEARMAN_MAX_UNIQUE_SIZE) { gearman_error(client.universal, GEARMAN_INVALID_ARGUMENT, "unique name longer then GEARMAN_MAX_UNIQUE_SIZE"); return NULL; } if ((gearman_size(workload) && gearman_c_str(workload) == NULL) or (gearman_size(workload) == 0 && gearman_c_str(workload))) { gearman_error(client.universal, GEARMAN_INVALID_ARGUMENT, "invalid workload"); return NULL; } task_shell= gearman_task_internal_create(&client, task_shell); if (task_shell == NULL or task_shell->impl() == NULL) { assert(client.universal.error()); return NULL; } assert(task_shell->impl()->client); Task* task= task_shell->impl(); task->context= context; task->func= actions; if (gearman_unique_is_hash(unique)) { task->unique_length= snprintf(task->unique, GEARMAN_MAX_UNIQUE_SIZE, "%u", libhashkit_murmur3(gearman_string_param(workload))); } else if ((task->unique_length= gearman_size(unique))) { if (task->unique_length >= GEARMAN_MAX_UNIQUE_SIZE) { task->unique_length= GEARMAN_MAX_UNIQUE_SIZE -1; // Leave space for NULL byte } strncpy(task->unique, gearman_c_str(unique), GEARMAN_MAX_UNIQUE_SIZE); task->unique[task->unique_length]= 0; } else { if (client.options.generate_unique or is_background(command)) { if (safe_uuid_generate(task->unique, task->unique_length) == -1) { gearman_log_debug(task->client->universal, "uuid_generate_time_safe() failed or does not exist on this platform"); } } else { task->unique_length= 0; task->unique[0]= 0; } } gearman_unique_t final_unique= gearman_unique_make(task->unique, task->unique_length); assert(task->client); gearman_return_t rc= GEARMAN_INVALID_ARGUMENT; switch (command) { case GEARMAN_COMMAND_SUBMIT_JOB: case GEARMAN_COMMAND_SUBMIT_JOB_LOW: case GEARMAN_COMMAND_SUBMIT_JOB_HIGH: rc= libgearman::protocol::submit(task->client->universal, task->send, final_unique, command, function, workload); break; case GEARMAN_COMMAND_SUBMIT_JOB_EPOCH: rc= libgearman::protocol::submit_epoch(task->client->universal, task->send, final_unique, function, workload, when); break; case GEARMAN_COMMAND_SUBMIT_JOB_BG: case GEARMAN_COMMAND_SUBMIT_JOB_LOW_BG: case GEARMAN_COMMAND_SUBMIT_JOB_HIGH_BG: rc= libgearman::protocol::submit_background(task->client->universal, task->send, final_unique, command, function, workload); break; case GEARMAN_COMMAND_SUBMIT_REDUCE_JOB: case GEARMAN_COMMAND_SUBMIT_REDUCE_JOB_BACKGROUND: rc= GEARMAN_INVALID_ARGUMENT; assert(rc != GEARMAN_INVALID_ARGUMENT); break; case GEARMAN_COMMAND_SUBMIT_JOB_SCHED: case GEARMAN_COMMAND_ALL_YOURS: case GEARMAN_COMMAND_CANT_DO: case GEARMAN_COMMAND_CAN_DO: case GEARMAN_COMMAND_CAN_DO_TIMEOUT: case GEARMAN_COMMAND_ECHO_REQ: case GEARMAN_COMMAND_ECHO_RES: case GEARMAN_COMMAND_ERROR: case GEARMAN_COMMAND_GET_STATUS: case GEARMAN_COMMAND_GRAB_JOB: case GEARMAN_COMMAND_GRAB_JOB_ALL: case GEARMAN_COMMAND_GRAB_JOB_UNIQ: case GEARMAN_COMMAND_JOB_ASSIGN: case GEARMAN_COMMAND_JOB_ASSIGN_ALL: case GEARMAN_COMMAND_JOB_ASSIGN_UNIQ: case GEARMAN_COMMAND_JOB_CREATED: case GEARMAN_COMMAND_MAX: case GEARMAN_COMMAND_NOOP: case GEARMAN_COMMAND_NO_JOB: case GEARMAN_COMMAND_OPTION_REQ: case GEARMAN_COMMAND_OPTION_RES: case GEARMAN_COMMAND_PRE_SLEEP: case GEARMAN_COMMAND_RESET_ABILITIES: case GEARMAN_COMMAND_SET_CLIENT_ID: case GEARMAN_COMMAND_STATUS_RES: case GEARMAN_COMMAND_TEXT: case GEARMAN_COMMAND_UNUSED: case GEARMAN_COMMAND_WORK_COMPLETE: case GEARMAN_COMMAND_WORK_DATA: case GEARMAN_COMMAND_WORK_EXCEPTION: case GEARMAN_COMMAND_WORK_FAIL: case GEARMAN_COMMAND_WORK_STATUS: case GEARMAN_COMMAND_WORK_WARNING: case GEARMAN_COMMAND_GET_STATUS_UNIQUE: case GEARMAN_COMMAND_STATUS_RES_UNIQUE: rc= GEARMAN_INVALID_ARGUMENT; assert(rc != GEARMAN_INVALID_ARGUMENT); break; } if (gearman_success(rc)) { client.new_tasks++; client.running_tasks++; task->options.send_in_use= true; return task->shell(); } gearman_task_free(task->shell()); return NULL; } gearman_task_st *add_reducer_task(Client* client, gearman_command_t command, const gearman_job_priority_t, const gearman_string_t &function, const gearman_string_t &reducer, const gearman_unique_t &unique, const gearman_string_t &workload, const gearman_actions_t &actions, const time_t, void *context) { const void *args[5]; size_t args_size[5]; if (gearman_size(function) == 0 or gearman_c_str(function) == NULL or gearman_size(function) > GEARMAN_FUNCTION_MAX_SIZE) { if (gearman_size(function) > GEARMAN_FUNCTION_MAX_SIZE) { gearman_error(client->universal, GEARMAN_INVALID_ARGUMENT, "function name longer then GEARMAN_MAX_FUNCTION_SIZE"); } else { gearman_error(client->universal, GEARMAN_INVALID_ARGUMENT, "invalid function"); } return NULL; } if (gearman_size(unique) > GEARMAN_MAX_UNIQUE_SIZE) { gearman_error(client->universal, GEARMAN_INVALID_ARGUMENT, "unique name longer then GEARMAN_MAX_UNIQUE_SIZE"); return NULL; } if ((gearman_size(workload) and not gearman_c_str(workload)) or (gearman_size(workload) == 0 && gearman_c_str(workload))) { gearman_error(client->universal, GEARMAN_INVALID_ARGUMENT, "invalid workload"); return NULL; } gearman_task_st *task_shell= gearman_task_internal_create(client, NULL); if (task_shell == NULL) { assert(client->universal.error_code()); return NULL; } Task* task= task_shell->impl(); task->context= context; task->func= actions; /** @todo fix it so that NULL is done by default by the API not by happenstance. */ char function_buffer[1024]; if (client->universal._namespace) { char *ptr= function_buffer; memcpy(ptr, gearman_string_value(client->universal._namespace), gearman_string_length(client->universal._namespace)); ptr+= gearman_string_length(client->universal._namespace); memcpy(ptr, gearman_c_str(function), gearman_size(function) +1); ptr+= gearman_size(function); args[0]= function_buffer; args_size[0]= ptr- function_buffer +1; } else { args[0]= gearman_c_str(function); args_size[0]= gearman_size(function) + 1; } if (gearman_unique_is_hash(unique)) { task->unique_length= snprintf(task->unique, GEARMAN_MAX_UNIQUE_SIZE, "%u", libhashkit_murmur3(gearman_string_param(workload))); } else if ((task->unique_length= gearman_size(unique))) { if (task->unique_length >= GEARMAN_MAX_UNIQUE_SIZE) { task->unique_length= GEARMAN_MAX_UNIQUE_SIZE -1; // Leave space for NULL byte } strncpy(task->unique, gearman_c_str(unique), GEARMAN_MAX_UNIQUE_SIZE); task->unique[task->unique_length]= 0; } else { if (client->options.generate_unique or is_background(command)) { safe_uuid_generate(task->unique, task->unique_length); } else { task->unique_length= 0; task->unique[0]= 0; } } args[1]= task->unique; args_size[1]= task->unique_length +1; // +1 is for the needed null assert_msg(command == GEARMAN_COMMAND_SUBMIT_REDUCE_JOB or command == GEARMAN_COMMAND_SUBMIT_REDUCE_JOB_BACKGROUND, "Command was not appropriate for request"); char reducer_buffer[1024]; if (client->universal._namespace) { char *ptr= reducer_buffer; memcpy(ptr, gearman_string_value(client->universal._namespace), gearman_string_length(client->universal._namespace)); ptr+= gearman_string_length(client->universal._namespace); memcpy(ptr, gearman_c_str(reducer), gearman_size(reducer) +1); ptr+= gearman_size(reducer); args[2]= reducer_buffer; args_size[2]= ptr- reducer_buffer +1; } else { args[2]= gearman_c_str(reducer); args_size[2]= gearman_size(reducer) +1; } char aggregate[1]; aggregate[0]= 0; args[3]= aggregate; args_size[3]= 1; assert_msg(gearman_c_str(workload), "Invalid workload (NULL)"); assert_msg(gearman_size(workload), "Invalid workload of zero"); args[4]= gearman_c_str(workload); args_size[4]= gearman_size(workload); gearman_return_t rc; if (gearman_success(rc= gearman_packet_create_args(client->universal, task->send, GEARMAN_MAGIC_REQUEST, command, args, args_size, 5))) { client->new_tasks++; client->running_tasks++; task->options.send_in_use= true; } else { gearman_gerror(client->universal, rc); gearman_task_free(task); task= NULL; } task->type= GEARMAN_TASK_KIND_EXECUTE; return task->shell(); }
32.923232
131
0.667608
alionurdemetoglu
5768de1bae61b5928fdd1486b79ab38194e7fb7a
969
hpp
C++
crc32.hpp
salleaffaire/MP2TS
78d0b3fbfcc331157565ac5bb9cc52437c4bc3fa
[ "MIT" ]
11
2016-06-29T06:10:43.000Z
2019-05-14T14:32:31.000Z
crc32.hpp
salleaffaire/MP2TS
78d0b3fbfcc331157565ac5bb9cc52437c4bc3fa
[ "MIT" ]
2
2017-09-15T02:04:01.000Z
2019-04-27T13:11:48.000Z
crc32.hpp
salleaffaire/MP2TS
78d0b3fbfcc331157565ac5bb9cc52437c4bc3fa
[ "MIT" ]
8
2015-08-22T01:36:43.000Z
2018-11-15T07:39:59.000Z
/* * crc32.hpp * * Created on: Jul 3, 2015 * Author: luc.martel */ #ifndef CRC32_HPP_ #define CRC32_HPP_ #include <cstdint> template <int IN, int OUT> class CRC32 { public: CRC32(uint32_t poly) { mTable = new uint32_t [256]; CreateTable(poly); }; ~CRC32() { delete [] mTable; } uint32_t operator()(unsigned char *buffer, unsigned int length) { uint32_t i_crc = IN; for(unsigned int i = 0; i < length;i++) { i_crc = (i_crc << 8) ^ mTable[((i_crc >> 24) ^ buffer[i]) & 0xff]; } return i_crc ^ OUT; } private: uint32_t *mTable; void CreateTable(uint32_t poly) { uint32_t i, j, k; for(i = 0; i < 256; i++) { k = 0; for(j = (i << 24) | 0x800000; j != 0x80000000; j <<= 1) { k = (k << 1) ^ (((k ^ j) & 0x80000000) ? poly : 0); } mTable[i] = k; } } CRC32() {} // Disallowed }; #endif /* CRC32_HPP_ */
17.944444
76
0.501548
salleaffaire
576a3e141b7e0513474a91390f186b503e28452c
1,680
cpp
C++
test/engine/scene/nxn_scene_graph.t.cpp
invaderjon/gdev
3f5c5da22160c4980afd6099b0b4e06fdf106204
[ "Apache-2.0" ]
1
2018-10-20T22:08:59.000Z
2018-10-20T22:08:59.000Z
test/engine/scene/nxn_scene_graph.t.cpp
invaderjon/gdev
3f5c5da22160c4980afd6099b0b4e06fdf106204
[ "Apache-2.0" ]
null
null
null
test/engine/scene/nxn_scene_graph.t.cpp
invaderjon/gdev
3f5c5da22160c4980afd6099b0b4e06fdf106204
[ "Apache-2.0" ]
null
null
null
// nxn_scene_graph.t.cpp #include <engine/scene/nxn_scene_graph.h> #include <engine/scene/test_collider.h> #include <gtest/gtest.h> TEST( NxNSceneGraphTest, Construction ) { using namespace StevensDev::sgds; NxNSceneGraph graph; NxNSceneGraph sized( 1, 10 ); NxNSceneGraph copy( graph ); graph = copy; } TEST( NxNSceneGraphTest, ColliderManagement ) { using namespace StevensDev::sgds; using namespace StevensDev::sgdt; NxNSceneGraph graph; TestCollider collider; graph.addCollider( &collider ); graph.removeCollider( &collider ); } TEST( NxNSceneGraphTest, CollisionDetection ) { using namespace StevensDev::sgds; using namespace StevensDev::sgdt; using namespace StevensDev::sgdc; NxNSceneGraph graph( 10.0f, 100 ); RectangleBounds ra( 0.0f, 0.0f, 1.0f, 1.0f ); RectangleBounds rb( 0.5f, 0.5f, 2.0f, 2.0f ); RectangleBounds rc( 1.0f, 0.0f, 1.0f, 1.0f ); RectangleBounds rd( 2.0f, 2.0f, 1.0f, 1.0f ); TestCollider a( ra ); TestCollider b( rb ); TestCollider c( rc ); TestCollider d( rd ); DynamicArray<ICollider*> results; graph.addCollider( &a ); graph.addCollider( &b ); graph.addCollider( &c ); graph.addCollider( &d ); results = graph.find( 0.0f, 0.0f, 1.0f, 1.0f ); EXPECT_EQ( 3, results.size() ); results = graph.find( ra ); EXPECT_EQ( 3, results.size() ); results = graph.find( &a ); EXPECT_EQ( 3, results.size() ); results = graph.find( 0.0f, 0.0f, 1.0f, 1.0f, 1 ); EXPECT_EQ( 0, results.size() ); results = graph.find( ra, 1 ); EXPECT_EQ( 0, results.size() ); graph.removeCollider( &a ); }
23.013699
54
0.639286
invaderjon
577117501ac5044eb3128d584f6ee08d7efbb524
3,429
cpp
C++
test/poiner_variant_impl.cpp
foonathan/tiny
1fb39508d0320c61be5a0ecb670d55b889d7dc87
[ "BSL-1.0" ]
96
2018-11-09T13:29:02.000Z
2022-02-13T21:20:36.000Z
test/poiner_variant_impl.cpp
foonathan/tiny
1fb39508d0320c61be5a0ecb670d55b889d7dc87
[ "BSL-1.0" ]
1
2018-11-09T17:03:14.000Z
2018-11-09T18:12:10.000Z
test/poiner_variant_impl.cpp
foonathan/tiny
1fb39508d0320c61be5a0ecb670d55b889d7dc87
[ "BSL-1.0" ]
6
2019-01-04T13:02:27.000Z
2021-06-01T03:56:52.000Z
// Copyright (C) 2018 Jonathan Müller <[email protected]> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #include <foonathan/tiny/pointer_variant_impl.hpp> #include <catch.hpp> using namespace foonathan::tiny; namespace { template <typename T> struct get_pointer { using type = T; static T* get() { return reinterpret_cast<T*>(std::uintptr_t(1024)); } }; template <typename T, std::size_t Alignment> struct get_pointer<aligned_obj<T, Alignment>> { using type = T; static T* get() { return reinterpret_cast<T*>(std::uintptr_t(1024)); } }; template <typename A, typename B, typename C> void verify_variant_impl(bool is_compressed) { using variant = pointer_variant_impl<A, B, C>; REQUIRE(typename variant::is_compressed{} == is_compressed); auto a_ptr = get_pointer<A>::get(); using a_type = typename get_pointer<A>::type; using a_tag_t = typename variant::template tag_of<A>; REQUIRE(typename a_tag_t::is_valid{}); auto a_tag = a_tag_t::value; auto b_ptr = get_pointer<B>::get(); using b_type = typename get_pointer<B>::type; using b_tag_t = typename variant::template tag_of<B>; REQUIRE(typename b_tag_t::is_valid{}); auto b_tag = b_tag_t::value; auto c_ptr = get_pointer<C>::get(); using c_type = typename get_pointer<C>::type; using c_tag_t = typename variant::template tag_of<C>; REQUIRE(typename c_tag_t::is_valid{}); auto c_tag = c_tag_t::value; REQUIRE(a_tag != b_tag); REQUIRE(a_tag != c_tag); REQUIRE(b_tag != c_tag); auto verify_null = [&](const variant& v) { REQUIRE(!v.has_value()); REQUIRE(v.tag() != a_tag); REQUIRE(v.tag() != b_tag); REQUIRE(v.tag() != c_tag); REQUIRE(v.get() == nullptr); }; variant v(nullptr); verify_null(v); v.reset(a_ptr); REQUIRE(v.has_value()); REQUIRE(v.tag() == a_tag); REQUIRE(v.get() == a_ptr); REQUIRE(v.template pointer_to<a_type>() == a_ptr); v.reset(b_ptr); REQUIRE(v.has_value()); REQUIRE(v.tag() == b_tag); REQUIRE(v.get() == b_ptr); REQUIRE(v.template pointer_to<b_type>() == b_ptr); v.reset(nullptr); verify_null(v); v.reset(c_ptr); REQUIRE(v.has_value()); REQUIRE(v.tag() == c_tag); REQUIRE(v.get() == c_ptr); REQUIRE(v.template pointer_to<c_type>() == c_ptr); v.reset(static_cast<a_type*>(nullptr)); verify_null(v); } } // namespace TEST_CASE("pointer_variant_impl") { SECTION("not compressed: normal") { verify_variant_impl<std::int32_t, std::int64_t, const char>(false); } SECTION("not compressed: aligned_obj") { verify_variant_impl<std::int32_t, aligned_obj<char, 2>, const char>(false); } SECTION("compressed: normal") { verify_variant_impl<std::int32_t, std::int64_t, const std::uint32_t>(true); } SECTION("compressed: aligned_obj") { verify_variant_impl<std::int32_t, aligned_obj<char, 4>, aligned_obj<signed char, 8>>(true); } }
28.815126
99
0.588218
foonathan
5775045ade6c2ee5adad77152f22e911d987da8d
14,156
cpp
C++
SU2-Quantum/SU2_CFD/src/output/filewriter/CParaviewXMLFileWriter.cpp
Agony5757/SU2-Quantum
16e7708371a597511e1242f3a7581e8c4187f5b2
[ "Apache-2.0" ]
null
null
null
SU2-Quantum/SU2_CFD/src/output/filewriter/CParaviewXMLFileWriter.cpp
Agony5757/SU2-Quantum
16e7708371a597511e1242f3a7581e8c4187f5b2
[ "Apache-2.0" ]
null
null
null
SU2-Quantum/SU2_CFD/src/output/filewriter/CParaviewXMLFileWriter.cpp
Agony5757/SU2-Quantum
16e7708371a597511e1242f3a7581e8c4187f5b2
[ "Apache-2.0" ]
1
2021-12-03T06:40:08.000Z
2021-12-03T06:40:08.000Z
/*! * \file CParaviewXMLFileWriter.cpp * \brief Filewriter class for Paraview binary format. * \author T. Albring * \version 7.0.6 "Blackbird" * * SU2 Project Website: https://su2code.github.io * * The SU2 Project is maintained by the SU2 Foundation * (http://su2foundation.org) * * Copyright 2012-2020, SU2 Contributors (cf. AUTHORS.md) * * SU2 is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * SU2 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with SU2. If not, see <http://www.gnu.org/licenses/>. */ #include "../../../include/output/filewriter/CParaviewXMLFileWriter.hpp" #include "../../../../Common/include/toolboxes/printing_toolbox.hpp" const string CParaviewXMLFileWriter::fileExt = ".vtu"; CParaviewXMLFileWriter::CParaviewXMLFileWriter(string valFileName, CParallelDataSorter *valDataSorter) : CFileWriter(std::move(valFileName), valDataSorter, fileExt){ /* Check for big endian. We have to swap bytes otherwise. * Since size of character is 1 byte when the character pointer * is de-referenced it will contain only first byte of integer. ---*/ bigEndian = false; unsigned int i = 1; char *c = (char*)&i; if (*c) bigEndian = false; else bigEndian = true; } CParaviewXMLFileWriter::~CParaviewXMLFileWriter(){ } void CParaviewXMLFileWriter::Write_Data(){ if (!dataSorter->GetConnectivitySorted()){ SU2_MPI::Error("Connectivity must be sorted.", CURRENT_FUNCTION); } /*--- We always have 3 coords, independent of the actual value of nDim ---*/ const int NCOORDS = 3; const unsigned short nDim = dataSorter->GetnDim(); unsigned short iDim = 0; /*--- Array containing the field names we want to output ---*/ const vector<string>& fieldNames = dataSorter->GetFieldNames(); unsigned long iPoint, iElem; char str_buf[255]; OpenMPIFile(); dataOffset = 0; /*--- Communicate the number of total points that will be written by each rank. After this communication, each proc knows how many poinnts will be written before its location in the file and the offsets can be correctly set. ---*/ unsigned long myPoint, GlobalPoint; GlobalPoint = dataSorter->GetnPointsGlobal(); myPoint = dataSorter->GetnPoints(); /*--- Compute our local number of elements, the required storage, and reduce the total number of elements and storage globally. ---*/ unsigned long myElem, myElemStorage, GlobalElem, GlobalElemStorage; unsigned long nParallel_Line = dataSorter->GetnElem(LINE), nParallel_Tria = dataSorter->GetnElem(TRIANGLE), nParallel_Quad = dataSorter->GetnElem(QUADRILATERAL), nParallel_Tetr = dataSorter->GetnElem(TETRAHEDRON), nParallel_Hexa = dataSorter->GetnElem(HEXAHEDRON), nParallel_Pris = dataSorter->GetnElem(PRISM), nParallel_Pyra = dataSorter->GetnElem(PYRAMID); myElem = dataSorter->GetnElem(); myElemStorage = dataSorter->GetnConn(); GlobalElem = dataSorter->GetnElemGlobal(); GlobalElemStorage = dataSorter->GetnConnGlobal(); /* Write the ASCII XML header. Note that we use the appended format for the data, * which means that all data is appended at the end of the file in one binary blob. */ if (!bigEndian){ WriteMPIString("<VTKFile type=\"UnstructuredGrid\" version=\"1.0\" byte_order=\"LittleEndian\" header_type=\"UInt64\">\n", MASTER_NODE); } else { WriteMPIString("<VTKFile type=\"UnstructuredGrid\" version=\"1.0\" byte_order=\"BigEndian\" header_type=\"UInt64\">\n", MASTER_NODE); } WriteMPIString("<UnstructuredGrid>\n", MASTER_NODE); SPRINTF(str_buf, "<Piece NumberOfPoints=\"%i\" NumberOfCells=\"%i\">\n", SU2_TYPE::Int(GlobalPoint), SU2_TYPE::Int(GlobalElem)); WriteMPIString(std::string(str_buf), MASTER_NODE); WriteMPIString("<Points>\n", MASTER_NODE); AddDataArray(VTKDatatype::FLOAT32, "", NCOORDS, myPoint*NCOORDS, GlobalPoint*NCOORDS); WriteMPIString("</Points>\n", MASTER_NODE); WriteMPIString("<Cells>\n", MASTER_NODE); AddDataArray(VTKDatatype::INT32, "connectivity", 1, myElemStorage, GlobalElemStorage); AddDataArray(VTKDatatype::INT32, "offsets", 1, myElem, GlobalElem); AddDataArray(VTKDatatype::UINT8, "types", 1, myElem, GlobalElem); WriteMPIString("</Cells>\n", MASTER_NODE); WriteMPIString("<PointData>\n", MASTER_NODE); /*--- Adjust container start location to avoid point coords. ---*/ unsigned short varStart = 2; if (nDim == 3) varStart++; /*--- Loop over all variables that have been registered in the output. ---*/ unsigned short iField, VarCounter = varStart; for (iField = varStart; iField < fieldNames.size(); iField++) { string fieldname = fieldNames[iField]; fieldname.erase(remove(fieldname.begin(), fieldname.end(), '"'), fieldname.end()); /*--- Check whether this field is a vector or scalar. ---*/ bool output_variable = true, isVector = false; size_t found = fieldNames[iField].find("_x"); if (found!=string::npos) { output_variable = true; isVector = true; } found = fieldNames[iField].find("_y"); if (found!=string::npos) { /*--- We have found a vector, so skip the Y component. ---*/ output_variable = false; VarCounter++; } found = fieldNames[iField].find("_z"); if (found!=string::npos) { /*--- We have found a vector, so skip the Z component. ---*/ output_variable = false; VarCounter++; } /*--- Write the point data as an <X,Y,Z> vector or a scalar. ---*/ if (output_variable && isVector) { /*--- Adjust the string name to remove the leading "X-" ---*/ fieldname.erase(fieldname.end()-2,fieldname.end()); AddDataArray(VTKDatatype::FLOAT32, fieldname, NCOORDS, myPoint*NCOORDS, GlobalPoint*NCOORDS); } else if (output_variable) { AddDataArray(VTKDatatype::FLOAT32, fieldname, 1, myPoint, GlobalPoint); } } WriteMPIString("</PointData>\n", MASTER_NODE); WriteMPIString("</Piece>\n", MASTER_NODE); WriteMPIString("</UnstructuredGrid>\n", MASTER_NODE); /*--- Now write all the data we have previously defined into the binary section of the file ---*/ WriteMPIString("<AppendedData encoding=\"raw\">\n_", MASTER_NODE); /*--- Load/write the 1D buffer of point coordinates. Note that we always have 3 coordinate dimensions, even for 2D problems. ---*/ vector<float> dataBufferFloat(myPoint*NCOORDS); for (iPoint = 0; iPoint < myPoint; iPoint++) { for (iDim = 0; iDim < NCOORDS; iDim++) { if (nDim == 2 && iDim == 2) { dataBufferFloat[iPoint*NCOORDS + iDim] = 0.0; } else { float val = (float)dataSorter->GetData(iDim, iPoint); dataBufferFloat[iPoint*NCOORDS + iDim] = val; } } } WriteDataArray(dataBufferFloat.data(), VTKDatatype::FLOAT32, NCOORDS*myPoint, GlobalPoint*NCOORDS, dataSorter->GetnPointCumulative(rank)*NCOORDS); /*--- Load/write 1D buffers for the connectivity of each element type. ---*/ vector<int> connBuf(myElemStorage); vector<int> offsetBuf(myElem); unsigned long iStorage = 0, iElemID = 0; unsigned short iNode = 0; auto copyToBuffer = [&](GEO_TYPE type, unsigned long nElem, unsigned short nPoints){ for (iElem = 0; iElem < nElem; iElem++) { for (iNode = 0; iNode < nPoints; iNode++){ connBuf[iStorage+iNode] = int(dataSorter->GetElem_Connectivity(type, iElem, iNode)-1); } iStorage += nPoints; offsetBuf[iElemID++] = int(iStorage + dataSorter->GetnElemConnCumulative(rank)); } }; copyToBuffer(LINE, nParallel_Line, N_POINTS_LINE); copyToBuffer(TRIANGLE, nParallel_Tria, N_POINTS_TRIANGLE); copyToBuffer(QUADRILATERAL, nParallel_Quad, N_POINTS_QUADRILATERAL); copyToBuffer(TETRAHEDRON, nParallel_Tetr, N_POINTS_TETRAHEDRON); copyToBuffer(HEXAHEDRON, nParallel_Hexa, N_POINTS_HEXAHEDRON); copyToBuffer(PRISM, nParallel_Pris, N_POINTS_PRISM); copyToBuffer(PYRAMID, nParallel_Pyra, N_POINTS_PYRAMID); WriteDataArray(connBuf.data(), VTKDatatype::INT32, myElemStorage, GlobalElemStorage, dataSorter->GetnElemConnCumulative(rank)); WriteDataArray(offsetBuf.data(), VTKDatatype::INT32, myElem, GlobalElem, dataSorter->GetnElemCumulative(rank)); /*--- Load/write the cell type for all elements in the file. ---*/ vector<uint8_t> typeBuf(myElem); vector<uint8_t>::iterator typeIter = typeBuf.begin(); std::fill(typeIter, typeIter+nParallel_Line, LINE); typeIter += nParallel_Line; std::fill(typeIter, typeIter+nParallel_Tria, TRIANGLE); typeIter += nParallel_Tria; std::fill(typeIter, typeIter+nParallel_Quad, QUADRILATERAL); typeIter += nParallel_Quad; std::fill(typeIter, typeIter+nParallel_Tetr, TETRAHEDRON); typeIter += nParallel_Tetr; std::fill(typeIter, typeIter+nParallel_Hexa, HEXAHEDRON); typeIter += nParallel_Hexa; std::fill(typeIter, typeIter+nParallel_Pris, PRISM); typeIter += nParallel_Pris; std::fill(typeIter, typeIter+nParallel_Pyra, PYRAMID); typeIter += nParallel_Pyra; WriteDataArray(typeBuf.data(), VTKDatatype::UINT8, myElem, GlobalElem, dataSorter->GetnElemCumulative(rank)); /*--- Loop over all variables that have been registered in the output. ---*/ VarCounter = varStart; for (iField = varStart; iField < fieldNames.size(); iField++) { /*--- Check whether this field is a vector or scalar. ---*/ bool output_variable = true, isVector = false; size_t found = fieldNames[iField].find("_x"); if (found!=string::npos) { output_variable = true; isVector = true; } found = fieldNames[iField].find("_y"); if (found!=string::npos) { /*--- We have found a vector, so skip the Y component. ---*/ output_variable = false; VarCounter++; } found = fieldNames[iField].find("_z"); if (found!=string::npos) { /*--- We have found a vector, so skip the Z component. ---*/ output_variable = false; VarCounter++; } /*--- Write the point data as an <X,Y,Z> vector or a scalar. ---*/ if (output_variable && isVector) { /*--- Load up the buffer for writing this rank's vector data. ---*/ float val = 0.0; for (iPoint = 0; iPoint < myPoint; iPoint++) { for (iDim = 0; iDim < NCOORDS; iDim++) { if (nDim == 2 && iDim == 2) { dataBufferFloat[iPoint*NCOORDS + iDim] = 0.0; } else { val = (float)dataSorter->GetData(VarCounter+iDim,iPoint); dataBufferFloat[iPoint*NCOORDS + iDim] = val; } } } WriteDataArray(dataBufferFloat.data(), VTKDatatype::FLOAT32, myPoint*NCOORDS, GlobalPoint*NCOORDS, dataSorter->GetnPointCumulative(rank)*NCOORDS); VarCounter++; } else if (output_variable) { /*--- For now, create a temp 1D buffer to load up the data for writing. This will be replaced with a derived data type most likely. ---*/ for (iPoint = 0; iPoint < myPoint; iPoint++) { float val = (float)dataSorter->GetData(VarCounter,iPoint); dataBufferFloat[iPoint] = val; } WriteDataArray(dataBufferFloat.data(), VTKDatatype::FLOAT32, myPoint, GlobalPoint, dataSorter->GetnPointCumulative(rank)); VarCounter++; } } WriteMPIString("</AppendedData>\n", MASTER_NODE); WriteMPIString("</VTKFile>\n", MASTER_NODE); CloseMPIFile(); } void CParaviewXMLFileWriter::WriteDataArray(void* data, VTKDatatype type, unsigned long arraySize, unsigned long globalSize, unsigned long offset){ std::string typeStr; unsigned long typeSize = 0; GetTypeInfo(type, typeStr, typeSize); /*--- Compute the size of the data to write in bytes ---*/ int byteSize; byteSize = arraySize*typeSize; /*--- The total data size ---*/ unsigned long totalByteSize; totalByteSize = globalSize*typeSize; /*--- Only the master node writes the total size in bytes as unsigned long in front of the array data ---*/ if (!WriteMPIBinaryData(&totalByteSize, sizeof(unsigned long), MASTER_NODE)){ SU2_MPI::Error("Writing array size failed", CURRENT_FUNCTION); } /*--- Collectively write all the data ---*/ if (!WriteMPIBinaryDataAll(data, byteSize, totalByteSize, offset*typeSize)){ SU2_MPI::Error("Writing data array failed", CURRENT_FUNCTION); } } void CParaviewXMLFileWriter::AddDataArray(VTKDatatype type, string name, unsigned short nComponents, unsigned long arraySize, unsigned long globalSize){ /*--- Add quotation marks around the arguments ---*/ name = "\"" + name + "\""; string nComp ="\"" + PrintingToolbox::to_string(nComponents) + "\""; /*--- Full precision ASCII output of offset for 32 bit integer ---*/ stringstream ss; ss.precision(10); ss.setf(std::ios::fixed, std::ios::floatfield); ss << "\"" << dataOffset << "\""; string offsetStr = ss.str(); std::string typeStr; unsigned long typeSize = 0, totalByteSize; GetTypeInfo(type, typeStr, typeSize); /*--- Total data size ---*/ totalByteSize = globalSize*typeSize; /*--- Write the ASCII XML header information for this array ---*/ WriteMPIString(string("<DataArray type=") + typeStr + string(" Name=") + name + string(" NumberOfComponents= ") + nComp + string(" offset=") + offsetStr + string(" format=\"appended\"/>\n"), MASTER_NODE); dataOffset += totalByteSize + sizeof(unsigned long); }
35.837975
140
0.666502
Agony5757
577cd9c85a3128c6ce5d217b084a1b959d75173a
2,736
hpp
C++
src/thread/ProcessingThread.hpp
tlmrgvf/drtd
bf31747b963673797239cb11cd45c1c1ee4aeaa6
[ "BSD-2-Clause" ]
6
2020-07-11T11:16:18.000Z
2021-12-17T23:30:36.000Z
src/thread/ProcessingThread.hpp
tlmrgvf/drtd
bf31747b963673797239cb11cd45c1c1ee4aeaa6
[ "BSD-2-Clause" ]
9
2020-07-03T21:23:50.000Z
2022-02-15T12:56:16.000Z
src/thread/ProcessingThread.hpp
tlmrgvf/drtd
bf31747b963673797239cb11cd45c1c1ee4aeaa6
[ "BSD-2-Clause" ]
null
null
null
/* BSD 2-Clause License Copyright (c) 2020, Till Mayer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #pragma once #include <atomic> #include <decoder/Decoder.hpp> #include <thread> #include <util/Buffer.hpp> #include <util/Resampler.hpp> #include <util/Logger.hpp> namespace Dsp { class ProcessingLock final { public: ProcessingLock(bool from_main_thread = true); ~ProcessingLock(); private: ProcessingLock(const ProcessingLock&) = delete; ProcessingLock(const ProcessingLock&&) = delete; ProcessingLock& operator=(const ProcessingLock&) = delete; ProcessingLock& operator=(const ProcessingLock&&) = delete; static inline std::mutex s_pipeline_mutex; }; class ProcessingThread { public: static constexpr size_t s_sample_buffer_size { 1024 }; ProcessingThread(std::shared_ptr<Dsp::DecoderBase> decoder, SampleRate input_sample_rate, SampleRate target_sample_rate); virtual ~ProcessingThread() {} void start(); void request_stop_and_wait(); void join(); bool is_running(); protected: std::thread& thread() { return m_thread; } void request_stop() { m_run.store(false); }; private: void run(); virtual void on_stop_requested() {}; virtual size_t fill_buffer(Util::Buffer<float>&) = 0; Logger m_log {"Processing thread"}; std::unique_ptr<Util::Resampler> m_resampler; std::shared_ptr<Dsp::DecoderBase> m_decoder; std::atomic<bool> m_run { true }; std::thread m_thread {}; bool m_running { false }; }; }
32.963855
125
0.754751
tlmrgvf
577d41ab5891c3050a5b3bf52ce276a4fbdeb97c
510
cpp
C++
src/robot/graphical/components/lineClass.cpp
1069B/Tower_Takeover
331a323216cd006a8cc3bc7a326ebe3a463e429f
[ "MIT" ]
null
null
null
src/robot/graphical/components/lineClass.cpp
1069B/Tower_Takeover
331a323216cd006a8cc3bc7a326ebe3a463e429f
[ "MIT" ]
3
2019-07-26T15:56:19.000Z
2019-07-29T02:55:32.000Z
src/robot/graphical/components/lineClass.cpp
1069B/Tower_Takeover
331a323216cd006a8cc3bc7a326ebe3a463e429f
[ "MIT" ]
null
null
null
#include "robot/graphical/components/lineClass.hpp" #include "robot/graphical/components/passInfo.hpp" #include "robot/graphical/screenClass.hpp" Line::Line(const PassInfo& p_info, Screen& p_screen): m_screen(p_screen){ m_points = p_info.points; m_style = p_info.style1; } void Line::draw(){ m_line = lv_line_create(m_screen.getObject(), NULL); lv_line_set_points(m_line, m_points, 2); lv_obj_align(m_line, m_screen.getObject(), LV_ALIGN_IN_TOP_LEFT, 0, 0); lv_line_set_style(m_line, m_style); }
31.875
73
0.762745
1069B
578186ba2dfdc05317aed07cb344ba63bb8c927b
654
cpp
C++
firmware/ToneClass.cpp
pooyapooya/rizpardazande
818721a3daac1385daf71ac508ad00bf153cbf0b
[ "MIT" ]
1
2018-08-02T12:08:24.000Z
2018-08-02T12:08:24.000Z
firmware/ToneClass.cpp
pooyapooya/rizpardazande
818721a3daac1385daf71ac508ad00bf153cbf0b
[ "MIT" ]
null
null
null
firmware/ToneClass.cpp
pooyapooya/rizpardazande
818721a3daac1385daf71ac508ad00bf153cbf0b
[ "MIT" ]
1
2018-08-02T12:13:08.000Z
2018-08-02T12:13:08.000Z
#include <Arduino.h> #include "ToneClass.h" #include <stdlib.h> void nanpy::ToneClass::elaborate( nanpy::MethodDescriptor* m ) { if (strcmp(m->getClass(), "Tone") == 0) { ObjectsManager::elaborate(m); if (strcmp(m->getName(),"new") == 0) { v.insert(new Tone (m->getInt(0))); m->returns(v.getLastIndex()); } if (strcmp(m->getName(), "play") == 0) { v[m->getObjectId()]->play(m->getInt(0), m->getInt(0)); m->returns(0); } if (strcmp(m->getName(), "stop") == 0) { v[m->getObjectId()]->stop(); m->returns(0); } } };
24.222222
66
0.480122
pooyapooya
5789ac8b0d197f3c47ff42e1fea7e1f3b3000c4c
2,531
cpp
C++
STM32F407/Src-rtt/user_main.cpp
SuWeipeng/car_407ve_rtt
c04745c4801998e6d82db516138d6adf846e64f8
[ "Apache-2.0" ]
8
2020-01-19T00:04:35.000Z
2022-01-05T19:08:05.000Z
STM32F407/Src-rtt/user_main.cpp
SuWeipeng/car_407ve_rtt
c04745c4801998e6d82db516138d6adf846e64f8
[ "Apache-2.0" ]
null
null
null
STM32F407/Src-rtt/user_main.cpp
SuWeipeng/car_407ve_rtt
c04745c4801998e6d82db516138d6adf846e64f8
[ "Apache-2.0" ]
3
2020-02-26T01:26:22.000Z
2021-01-26T06:02:56.000Z
#include <rtthread.h> #include <rtdevice.h> #include <board.h> #include <stdlib.h> #include "rtt_interface.h" #include "AC_Base.h" #include "Logger.h" #include "AP_Buffer.h" #include "SRV_Channel.h" #include "mode.h" #if defined(__ICCARM__) || defined(__GNUC__) #include "AP_RangeFinder.h" #include "AP_KF.h" #endif using namespace rtthread; #if defined(__ICCARM__) || defined(__GNUC__) static rt_timer_t vl53lxx_timer; #endif extern TIM_HandleTypeDef htim2; extern TIM_HandleTypeDef htim11; extern rt_device_t vcom; AC_Base *base; AP_Buffer *buffer; Mode *car_mode; ModeManual *mode_manual; ModeAuto *mode_auto; ModeROS *mode_ros; SRV_Channel *servo_bottom; SRV_Channel *servo_top; Mode::Number current_mode = Mode::Number::MAN; Mode::Number prev_mode = Mode::Number::MAN; Mode::ModeReason mode_reason = Mode::ModeReason::UNKNOWN; #if defined(__ICCARM__) || defined(__GNUC__) RangeFinder *range_finder; AP_KF *kalman_filter; #endif extern "C" { #if defined(__ICCARM__) || defined(__GNUC__) static int sensor_timer_create(); static void vl53lxx_timeout(void *parameter); #endif void setup(void) { base = new AC_Base(AC_Base::Type::MECANUM_4WD); buffer = new AP_Buffer(); servo_bottom = new SRV_Channel(&htim2 , TIM_CHANNEL_1, SERVO_MAX_PWM, SERVO_MIN_PWM); servo_top = new SRV_Channel(&htim11, TIM_CHANNEL_1, SERVO_MAX_PWM, SERVO_MIN_PWM); mode_manual = new ModeManual(); mode_auto = new ModeAuto(); mode_ros = new ModeROS(); car_mode = mode_manual; base->init(); buffer->init(AP_Buffer::RING); #if defined(__ICCARM__) || defined(__GNUC__) range_finder = new RangeFinder(); range_finder->init(RangeFinder::Type::VL53L0X); sensor_timer_create(); kalman_filter = new AP_KF(); kalman_filter->set_var(1e-2, 6.75); #endif //Log_Init(); } void loop(void* parameter) { while(1) { update_mode(); rt_thread_delay(50); } } #if defined(__ICCARM__) || defined(__GNUC__) static int sensor_timer_create() { RTT_TIMER_CREATE(vl53lxx,vl53lxx_timeout,RT_NULL,33,RT_TIMER_FLAG_SOFT_TIMER | RT_TIMER_CTRL_SET_PERIODIC); return 0; } static void vl53lxx_timeout(void *parameter) { // read vl53lxx range_finder->timer(parameter); // updae data range_finder->update(); //char buf[100]; //sprintf(buf, "dist_cm: %d\r\n", range_finder->distance_cm()); //rt_kputs(buf); //Write_RangeFinder(range_finder->distance_cm()); } #endif //#if defined(__ICCARM__) || defined(__GNUC__) } // extern "C"
23.877358
109
0.713157
SuWeipeng
578b34c0678726d348f2d7925ce7b8279b6750dc
6,888
cpp
C++
Libraries/RobsJuceModules/jura_framework/gui/panels/jura_DualWaveformDisplay.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
34
2017-04-19T18:26:02.000Z
2022-02-15T17:47:26.000Z
Libraries/RobsJuceModules/jura_framework/gui/panels/jura_DualWaveformDisplay.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
307
2017-05-04T21:45:01.000Z
2022-02-03T00:59:01.000Z
Libraries/RobsJuceModules/jura_framework/gui/panels/jura_DualWaveformDisplay.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
4
2017-09-05T17:04:31.000Z
2021-12-15T21:24:28.000Z
//------------------------------------------------------------------------------------------------- // construction/destruction: DualWaveformDisplay::DualWaveformDisplay(AudioFileBuffer* newBuffer) : Component("DualWaveformDisplay"), AudioFileBufferUser(newBuffer) { //ScopedLock pointerLock(audioFileBufferPointerLock); //lockUsedBufferPointer(); addAndMakeVisible( waveDisplayL = new WaveformDisplay(newBuffer) ); //waveDisplayL->setAxisPositionX(CoordinateSystem::INVISIBLE); //waveDisplayL->setAxisPositionY(CoordinateSystem::INVISIBLE); waveDisplayL->plotOnlyOneChannel(0); addAndMakeVisible( waveDisplayR = new WaveformDisplay(newBuffer) ); //waveDisplayR->setAxisPositionX(CoordinateSystem::INVISIBLE); //waveDisplayR->setAxisPositionY(CoordinateSystem::INVISIBLE); waveDisplayR->plotOnlyOneChannel(1); //unlockUsedBufferPointer(); } DualWaveformDisplay::~DualWaveformDisplay() { //ScopedLock pointerLock(audioFileBufferPointerLock); //lockUsedBufferPointer(); deleteAllChildren(); //unlockUsedBufferPointer(); } //------------------------------------------------------------------------------------------------- // setup: void DualWaveformDisplay::assignAudioFileBuffer(AudioFileBuffer* newBuffer) { lockUsedBufferPointer(); AudioFileBufferUser::assignAudioFileBuffer(newBuffer); waveDisplayL->assignAudioFileBuffer(newBuffer); waveDisplayR->assignAudioFileBuffer(newBuffer); unlockUsedBufferPointer(); resized(); // to update the arrangement of one or two displays } //------------------------------------------------------------------------------------------------- // appearance stuff: void DualWaveformDisplay::resized() { //ScopedLock pointerLock(audioFileBufferPointerLock); lockUsedBufferPointer(); //int x = 0; int w = getWidth(); int h = getHeight(); /* // handle the situation when no audio buffer is assigned: if( bufferToUse == NULL ) { waveDisplayL->setBounds(0, 0, w, h ); waveDisplayR->setBounds(0, h/2, w, h/2); return; } */ int numChannels = waveDisplayL->getNumChannels(); // show either one waveform display over the full height (for mono clips) or two displays of // half height (for stereo clips) if( numChannels < 2 ) { waveDisplayL->setBounds(0, 0, w, h); waveDisplayR->setBounds(0, 0, 0, 0); } else { waveDisplayL->setBounds(0, 0, w, h/2); waveDisplayR->setBounds(0, h/2, w, h/2); } unlockUsedBufferPointer(); } //------------------------------------------------------------------------------------------------- // the CoordinateSystem mimics: double DualWaveformDisplay::getMaximumRangeMinX() const { //ScopedLock pointerLock(audioFileBufferPointerLock); return waveDisplayL->getMaximumRangeMinX(); } double DualWaveformDisplay::getMaximumRangeMaxX() const { //ScopedLock pointerLock(audioFileBufferPointerLock); return waveDisplayL->getMaximumRangeMaxX(); } double DualWaveformDisplay::getCurrentRangeMinX() const { //ScopedLock pointerLock(audioFileBufferPointerLock); return waveDisplayL->getCurrentRangeMinX(); } double DualWaveformDisplay::getCurrentRangeMaxX() const { //ScopedLock pointerLock(audioFileBufferPointerLock); return waveDisplayL->getCurrentRangeMaxX(); } void DualWaveformDisplay::setMaximumRange(double newMinX, double newMaxX, double newMinY, double newMaxY) { //ScopedLock pointerLock(audioFileBufferPointerLock); waveDisplayL->setMaximumRange(newMinX, newMaxX, newMinY, newMaxY); waveDisplayR->setMaximumRange(newMinX, newMaxX, newMinY, newMaxY); } void DualWaveformDisplay::setMaximumRangeX(double newMinX, double newMaxX) { //ScopedLock pointerLock(audioFileBufferPointerLock); waveDisplayL->setMaximumRangeX(newMinX, newMaxX); waveDisplayR->setMaximumRangeX(newMinX, newMaxX); } void DualWaveformDisplay::setMaximumRangeY(double newMinY, double newMaxY) { //ScopedLock pointerLock(audioFileBufferPointerLock); waveDisplayL->setMaximumRangeY(newMinY, newMaxY); waveDisplayR->setMaximumRangeY(newMinY, newMaxY); } void DualWaveformDisplay::setCurrentRange(double newMinX, double newMaxX, double newMinY, double newMaxY) { //ScopedLock pointerLock(audioFileBufferPointerLock); waveDisplayL->setCurrentRange(newMinX, newMaxX, newMinY, newMaxY); waveDisplayR->setCurrentRange(newMinX, newMaxX, newMinY, newMaxY); } void DualWaveformDisplay::setCurrentRangeX(double newMinX, double newMaxX) { //ScopedLock pointerLock(audioFileBufferPointerLock); waveDisplayL->setCurrentRangeX(newMinX, newMaxX); waveDisplayR->setCurrentRangeX(newMinX, newMaxX); } void DualWaveformDisplay::setCurrentRangeMinX(double newMinX) { //ScopedLock pointerLock(audioFileBufferPointerLock); waveDisplayL->setCurrentRangeMinX(newMinX); waveDisplayR->setCurrentRangeMinX(newMinX); } void DualWaveformDisplay::setCurrentRangeMaxX(double newMaxX) { //ScopedLock pointerLock(audioFileBufferPointerLock); waveDisplayL->setCurrentRangeMaxX(newMaxX); waveDisplayR->setCurrentRangeMaxX(newMaxX); } void DualWaveformDisplay::setCurrentRangeY(double newMinY, double newMaxY) { //ScopedLock pointerLock(audioFileBufferPointerLock); waveDisplayL->setCurrentRangeY(newMinY, newMaxY); waveDisplayR->setCurrentRangeY(newMinY, newMaxY); } void DualWaveformDisplay::setDrawingThread(TimeSliceThread* newDrawingThread) { waveDisplayL->setDrawingThread(newDrawingThread); waveDisplayR->setDrawingThread(newDrawingThread); } void DualWaveformDisplay::setVisibleTimeRange(double newMinTimeInSeconds, double newMaxTimeInSeconds) { //ScopedLock pointerLock(audioFileBufferPointerLock); waveDisplayL->setVisibleTimeRange(newMinTimeInSeconds, newMaxTimeInSeconds); waveDisplayR->setVisibleTimeRange(newMinTimeInSeconds, newMaxTimeInSeconds); } void DualWaveformDisplay::updatePlotImage() { //ScopedLock pointerLock(audioFileBufferPointerLock); waveDisplayL->setDirty(); waveDisplayR->setDirty(); } void DualWaveformDisplay::lockUsedBufferPointer() { AudioFileBufferUser::lockUsedBufferPointer(); waveDisplayL->lockUsedBufferPointer(); waveDisplayR->lockUsedBufferPointer(); } void DualWaveformDisplay::unlockUsedBufferPointer() { waveDisplayR->unlockUsedBufferPointer(); waveDisplayL->unlockUsedBufferPointer(); AudioFileBufferUser::unlockUsedBufferPointer(); } void DualWaveformDisplay::acquireAudioFileBufferWriteLock() { AudioFileBufferUser::acquireAudioFileBufferWriteLock(); waveDisplayL->acquireAudioFileBufferWriteLock(); waveDisplayR->acquireAudioFileBufferWriteLock(); } void DualWaveformDisplay::releaseAudioFileBufferWriteLock() { waveDisplayR->releaseAudioFileBufferWriteLock(); waveDisplayL->releaseAudioFileBufferWriteLock(); AudioFileBufferUser::releaseAudioFileBufferWriteLock(); }
31.59633
99
0.732143
RobinSchmidt
c240626234213bf83b24e123c9ac27339c4fbc35
2,087
hpp
C++
src/algorithms/data_structures/array/array_permutations.hpp
iamantony/CppNotes
2707db6560ad80b0e5e286a04b2d46e5c0280b3f
[ "MIT" ]
2
2020-07-31T14:13:56.000Z
2021-02-03T09:51:43.000Z
src/algorithms/data_structures/array/array_permutations.hpp
iamantony/CppNotes
2707db6560ad80b0e5e286a04b2d46e5c0280b3f
[ "MIT" ]
28
2015-09-22T07:38:21.000Z
2018-10-02T11:00:58.000Z
src/algorithms/data_structures/array/array_permutations.hpp
iamantony/CppNotes
2707db6560ad80b0e5e286a04b2d46e5c0280b3f
[ "MIT" ]
2
2018-10-11T14:10:50.000Z
2021-02-27T08:53:50.000Z
#ifndef ARRAY_PERMUTATIONS_HPP #define ARRAY_PERMUTATIONS_HPP /* https://leetcode.com/problems/permutations/description/ Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] https://leetcode.com/problems/permutations-ii/description/ Given a collection of numbers that might contain duplicates, return all possible unique permutations. Example: Input: [1,1,2] Output: [ [1,1,2], [1,2,1], [2,1,1] ] */ #include <vector> #include <algorithm> namespace Algo::DS::Array { class ArrayPermutations { public: static std::vector<std::vector<int>> GetAll(std::vector<int> v) { std::vector<std::vector<int>> result; if (v.empty()) { return result; } CreatePermutation(v, 0, v.size() - 1, result); std::sort(result.begin(), result.end()); return result; } static std::vector<std::vector<int>> GetUnique(std::vector<int> v) { std::vector<std::vector<int>> allPermut = GetAll(v); if (allPermut.size() < 2) { return allPermut; } std::sort(allPermut.begin(), allPermut.end()); std::vector<std::vector<int>> result; result.push_back(allPermut[0]); for (size_t i = 1; i < allPermut.size(); ++i) { if (allPermut[i] != allPermut[i - 1]) { result.push_back(allPermut[i]); } } return result; } private: static void CreatePermutation(std::vector<int>& v, const size_t& left, const size_t& right, std::vector<std::vector<int>>& result) { if (left >= right) { result.push_back(v); } else { for (size_t i = left; i <= right; ++i) { std::swap(v[i], v[left]); CreatePermutation(v, left + 1, right, result); std::swap(v[i], v[left]); } } } }; } #endif // ARRAY_PERMUTATIONS_HPP
22.44086
74
0.548155
iamantony
c245a47f8969f5028610449d9b98ed96fb979682
861
cpp
C++
COJ/COJ Progressive Contest #8/TobyAndGraph.cpp
MartinAparicioPons/Competitive-Programming
58151df0ed08a5e4e605abefdd69fef1ecc10fa0
[ "Apache-2.0" ]
1
2019-09-29T03:58:35.000Z
2019-09-29T03:58:35.000Z
COJ/COJ Progressive Contest #8/TobyAndGraph.cpp
MartinAparicioPons/Competitive-Programming
58151df0ed08a5e4e605abefdd69fef1ecc10fa0
[ "Apache-2.0" ]
null
null
null
COJ/COJ Progressive Contest #8/TobyAndGraph.cpp
MartinAparicioPons/Competitive-Programming
58151df0ed08a5e4e605abefdd69fef1ecc10fa0
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> #define DEB(x) cerr << "#" << (#x) << ": " << (x) << endl using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef pair<int, ii> iii; typedef vector<int> vi; typedef vector<ii> vii; typedef vector<vi> vvi; const int MAXN = 10010; vi G[MAXN]; bool vis[MAXN]; void dfs(int v){ for(int i = 0; i < G[v].size(); i++){ if(!vis[G[v][i]]){ vis[G[v][i]] = true; dfs(G[v][i]); } } } int main () { ios_base::sync_with_stdio(0); cin.tie(0); int n, m, i, a, b, T, r; cin >> T; while(T--){ cin >> n >> m; memset(vis, 0, sizeof vis); for(i = 1; i <= n; i++) G[i].clear(); for(i = 0; i < m; i++){ cin >> a >> b; G[a].push_back(b); G[b].push_back(a); } for(i = 1, r = 0; i <= n; i++){ if(vis[i]) continue; vis[i] = true; r++; dfs(i); } cout << (r*(r-1))/2 << "\n"; } }
19.568182
57
0.497096
MartinAparicioPons
c246f747c0c221357307596931c7804f458554c0
18,730
cpp
C++
src/modules/SD2/scripts/northrend/icecrown_citadel/icecrown_citadel/instance_icecrown_citadel.cpp
Zilvereyes/ServerThree
b61c215b000f199eb884ebc39844ebbbd0703a1b
[ "PostgreSQL", "Zlib", "OpenSSL" ]
null
null
null
src/modules/SD2/scripts/northrend/icecrown_citadel/icecrown_citadel/instance_icecrown_citadel.cpp
Zilvereyes/ServerThree
b61c215b000f199eb884ebc39844ebbbd0703a1b
[ "PostgreSQL", "Zlib", "OpenSSL" ]
null
null
null
src/modules/SD2/scripts/northrend/icecrown_citadel/icecrown_citadel/instance_icecrown_citadel.cpp
Zilvereyes/ServerThree
b61c215b000f199eb884ebc39844ebbbd0703a1b
[ "PostgreSQL", "Zlib", "OpenSSL" ]
null
null
null
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* ScriptData SDName: instance_icecrown_citadel SD%Complete: 20% SDComment: Just basic stuff SDCategory: Icecrown Citadel EndScriptData */ #include "precompiled.h" #include "icecrown_citadel.h" enum { // Marrowgar SAY_MARROWGAR_INTRO = -1631001, // Deathwhisper SAY_DEATHWHISPER_SPEECH_1 = -1631011, SAY_DEATHWHISPER_SPEECH_2 = -1631012, SAY_DEATHWHISPER_SPEECH_3 = -1631013, SAY_DEATHWHISPER_SPEECH_4 = -1631014, SAY_DEATHWHISPER_SPEECH_5 = -1631015, SAY_DEATHWHISPER_SPEECH_6 = -1631016, SAY_DEATHWHISPER_SPEECH_7 = -1631017, // Festergut SAY_STINKY_DIES = -1631081, // Rotface SAY_PRECIOUS_DIES = -1631070, }; static const DialogueEntry aCitadelDialogue[] = { {SAY_DEATHWHISPER_SPEECH_1, NPC_LADY_DEATHWHISPER, 12000}, {SAY_DEATHWHISPER_SPEECH_2, NPC_LADY_DEATHWHISPER, 11000}, {SAY_DEATHWHISPER_SPEECH_3, NPC_LADY_DEATHWHISPER, 10000}, {SAY_DEATHWHISPER_SPEECH_4, NPC_LADY_DEATHWHISPER, 9000}, {SAY_DEATHWHISPER_SPEECH_5, NPC_LADY_DEATHWHISPER, 10000}, {SAY_DEATHWHISPER_SPEECH_6, NPC_LADY_DEATHWHISPER, 10000}, {SAY_DEATHWHISPER_SPEECH_7, NPC_LADY_DEATHWHISPER, 0}, {0, 0, 0}, }; instance_icecrown_citadel::instance_icecrown_citadel(Map* pMap) : ScriptedInstance(pMap), DialogueHelper(aCitadelDialogue), m_uiTeam(0), m_uiPutricideValveTimer(0), m_bHasMarrowgarIntroYelled(false), m_bHasDeathwhisperIntroYelled(false), m_bHasRimefangLanded(false), m_bHasSpinestalkerLanded(false) { Initialize(); } void instance_icecrown_citadel::Initialize() { InitializeDialogueHelper(this); memset(&m_auiEncounter, 0, sizeof(m_auiEncounter)); } bool instance_icecrown_citadel::IsEncounterInProgress() const { for (uint8 i = 0; i < MAX_ENCOUNTER; ++i) { if (m_auiEncounter[i] == IN_PROGRESS) return true; } return false; } void instance_icecrown_citadel::DoHandleCitadelAreaTrigger(uint32 uiTriggerId, Player* pPlayer) { if (uiTriggerId == AREATRIGGER_MARROWGAR_INTRO && !m_bHasMarrowgarIntroYelled) { if (Creature* pMarrowgar = GetSingleCreatureFromStorage(NPC_LORD_MARROWGAR)) { DoScriptText(SAY_MARROWGAR_INTRO, pMarrowgar); m_bHasMarrowgarIntroYelled = true; } } else if (uiTriggerId == AREATRIGGER_DEATHWHISPER_INTRO && !m_bHasDeathwhisperIntroYelled) { StartNextDialogueText(SAY_DEATHWHISPER_SPEECH_1); m_bHasDeathwhisperIntroYelled = true; } else if (uiTriggerId == AREATRIGGER_SINDRAGOSA_PLATFORM) { if (Creature* pSindragosa = GetSingleCreatureFromStorage(NPC_SINDRAGOSA)) { if (pSindragosa->IsAlive() && !pSindragosa->IsInCombat()) pSindragosa->SetInCombatWithZone(); } else { if (!m_bHasRimefangLanded) { if (Creature* pRimefang = GetSingleCreatureFromStorage(NPC_RIMEFANG)) { pRimefang->AI()->AttackStart(pPlayer); m_bHasRimefangLanded = true; } } if (!m_bHasSpinestalkerLanded) { if (Creature* pSpinestalker = GetSingleCreatureFromStorage(NPC_SPINESTALKER)) { pSpinestalker->AI()->AttackStart(pPlayer); m_bHasSpinestalkerLanded = true; } } } } } void instance_icecrown_citadel::OnPlayerEnter(Player* pPlayer) { if (!m_uiTeam) // very first player to enter m_uiTeam = pPlayer->GetTeam(); } void instance_icecrown_citadel::OnCreatureCreate(Creature* pCreature) { switch (pCreature->GetEntry()) { case NPC_LORD_MARROWGAR: case NPC_LADY_DEATHWHISPER: case NPC_DEATHBRINGER_SAURFANG: case NPC_FESTERGUT: case NPC_ROTFACE: case NPC_PROFESSOR_PUTRICIDE: case NPC_TALDARAM: case NPC_VALANAR: case NPC_KELESETH: case NPC_LANATHEL_INTRO: case NPC_VALITHRIA: case NPC_SINDRAGOSA: case NPC_LICH_KING: case NPC_TIRION: case NPC_RIMEFANG: case NPC_SPINESTALKER: case NPC_VALITHRIA_COMBAT_TRIGGER: case NPC_BLOOD_ORB_CONTROL: m_mNpcEntryGuidStore[pCreature->GetEntry()] = pCreature->GetObjectGuid(); break; case NPC_DEATHWHISPER_SPAWN_STALKER: m_lDeathwhisperStalkersGuids.push_back(pCreature->GetObjectGuid()); return; } } void instance_icecrown_citadel::OnObjectCreate(GameObject* pGo) { switch (pGo->GetEntry()) { case GO_ICEWALL_1: case GO_ICEWALL_2: case GO_ORATORY_DOOR: if (m_auiEncounter[TYPE_MARROWGAR] == DONE) pGo->SetGoState(GO_STATE_ACTIVE); break; case GO_DEATHWHISPER_ELEVATOR: // ToDo: set in motion when TYPE_LADY_DEATHWHISPER == DONE break; case GO_SAURFANG_DOOR: case GO_SCIENTIST_DOOR: case GO_CRIMSON_HALL_DOOR: case GO_GREEN_DRAGON_ENTRANCE: if (m_auiEncounter[TYPE_DEATHBRINGER_SAURFANG] == DONE) pGo->SetGoState(GO_STATE_ACTIVE); break; case GO_ORANGE_TUBE: if (m_auiEncounter[TYPE_FESTERGUT] == DONE) pGo->SetGoState(GO_STATE_ACTIVE); break; case GO_GREEN_TUBE: if (m_auiEncounter[TYPE_ROTFACE] == DONE) pGo->SetGoState(GO_STATE_ACTIVE); break; case GO_SCIENTIST_DOOR_GREEN: // If both Festergut and Rotface are DONE, set as ACTIVE_ALTERNATIVE if (m_auiEncounter[TYPE_FESTERGUT] == DONE && m_auiEncounter[TYPE_ROTFACE] == DONE) pGo->SetGoState(GO_STATE_ACTIVE_ALTERNATIVE); else if (m_auiEncounter[TYPE_ROTFACE] == DONE) pGo->SetGoState(GO_STATE_READY); break; case GO_SCIENTIST_DOOR_ORANGE: // If both Festergut and Rotface are DONE, set as ACTIVE_ALTERNATIVE if (m_auiEncounter[TYPE_FESTERGUT] == DONE && m_auiEncounter[TYPE_ROTFACE] == DONE) pGo->SetGoState(GO_STATE_ACTIVE_ALTERNATIVE); else if (m_auiEncounter[TYPE_FESTERGUT] == DONE) pGo->SetGoState(GO_STATE_READY); break; case GO_SCIENTIST_DOOR_COLLISION: if (m_auiEncounter[TYPE_FESTERGUT] == DONE && m_auiEncounter[TYPE_ROTFACE] == DONE) pGo->SetGoState(GO_STATE_ACTIVE); break; case GO_COUNCIL_DOOR_1: case GO_COUNCIL_DOOR_2: if (m_auiEncounter[TYPE_BLOOD_PRINCE_COUNCIL] == DONE) pGo->SetGoState(GO_STATE_ACTIVE); break; case GO_GREEN_DRAGON_EXIT: if (m_auiEncounter[TYPE_VALITHRIA] == DONE) pGo->SetGoState(GO_STATE_ACTIVE); break; case GO_SAURFANG_CACHE: case GO_SAURFANG_CACHE_25: case GO_SAURFANG_CACHE_10_H: case GO_SAURFANG_CACHE_25_H: m_mGoEntryGuidStore[GO_SAURFANG_CACHE] = pGo->GetObjectGuid(); return; case GO_GUNSHIP_ARMORY_A: case GO_GUNSHIP_ARMORY_A_25: case GO_GUNSHIP_ARMORY_A_10H: case GO_GUNSHIP_ARMORY_A_25H: m_mGoEntryGuidStore[GO_GUNSHIP_ARMORY_A] = pGo->GetObjectGuid(); return; case GO_GUNSHIP_ARMORY_H: case GO_GUNSHIP_ARMORY_H_25: case GO_GUNSHIP_ARMORY_H_10H: case GO_GUNSHIP_ARMORY_H_25H: m_mGoEntryGuidStore[GO_GUNSHIP_ARMORY_H] = pGo->GetObjectGuid(); return; case GO_DREAMWALKER_CACHE: case GO_DREAMWALKER_CACHE_25: case GO_DREAMWALKER_CACHE_10_H: case GO_DREAMWALKER_CACHE_25_H: m_mGoEntryGuidStore[GO_DREAMWALKER_CACHE] = pGo->GetObjectGuid(); return; case GO_ICESHARD_1: case GO_ICESHARD_2: case GO_ICESHARD_3: case GO_ICESHARD_4: case GO_FROSTY_WIND: case GO_FROSTY_EDGE: case GO_SNOW_EDGE: case GO_ARTHAS_PLATFORM: case GO_ARTHAS_PRECIPICE: case GO_MARROWGAR_DOOR: case GO_BLOODPRINCE_DOOR: case GO_SINDRAGOSA_ENTRANCE: case GO_VALITHRIA_DOOR_1: case GO_VALITHRIA_DOOR_2: case GO_VALITHRIA_DOOR_3: case GO_VALITHRIA_DOOR_4: case GO_ICECROWN_GRATE: case GO_SINDRAGOSA_SHORTCUT_ENTRANCE: case GO_SINDRAGOSA_SHORTCUT_EXIT: case GO_ORANGE_PLAGUE: case GO_GREEN_PLAGUE: case GO_ORANGE_VALVE: case GO_GREEN_VALVE: break; } m_mGoEntryGuidStore[pGo->GetEntry()] = pGo->GetObjectGuid(); } void instance_icecrown_citadel::OnCreatureDeath(Creature* pCreature) { switch (pCreature->GetEntry()) { case NPC_STINKY: if (Creature* pFestergut = GetSingleCreatureFromStorage(NPC_FESTERGUT)) { if (pFestergut->IsAlive()) DoScriptText(SAY_STINKY_DIES, pFestergut); } break; case NPC_PRECIOUS: if (Creature* pRotface = GetSingleCreatureFromStorage(NPC_ROTFACE)) { if (pRotface->IsAlive()) DoScriptText(SAY_PRECIOUS_DIES, pRotface); } break; } } void instance_icecrown_citadel::SetData(uint32 uiType, uint32 uiData) { switch (uiType) { case TYPE_MARROWGAR: m_auiEncounter[uiType] = uiData; DoUseDoorOrButton(GO_MARROWGAR_DOOR); if (uiData == DONE) { DoUseDoorOrButton(GO_ICEWALL_1); DoUseDoorOrButton(GO_ICEWALL_2); // Note: this door use may not be correct. In theory the door should be already opened DoUseDoorOrButton(GO_ORATORY_DOOR); } break; case TYPE_LADY_DEATHWHISPER: m_auiEncounter[uiType] = uiData; DoUseDoorOrButton(GO_ORATORY_DOOR); // ToDo: set the elevateor in motion when TYPE_LADY_DEATHWHISPER == DONE break; case TYPE_GUNSHIP_BATTLE: m_auiEncounter[uiType] = uiData; if (uiData == DONE) DoRespawnGameObject(m_uiTeam == ALLIANCE ? GO_GUNSHIP_ARMORY_A : GO_GUNSHIP_ARMORY_H, 60 * MINUTE); break; case TYPE_DEATHBRINGER_SAURFANG: m_auiEncounter[uiType] = uiData; if (uiData == DONE) { DoUseDoorOrButton(GO_SAURFANG_DOOR); DoRespawnGameObject(GO_SAURFANG_CACHE, 60 * MINUTE); // Note: these doors may not be correct. In theory the doors should be already opened DoUseDoorOrButton(GO_SCIENTIST_DOOR); DoUseDoorOrButton(GO_CRIMSON_HALL_DOOR); DoUseDoorOrButton(GO_GREEN_DRAGON_ENTRANCE); } break; case TYPE_FESTERGUT: m_auiEncounter[uiType] = uiData; DoUseDoorOrButton(GO_ORANGE_PLAGUE); if (uiData == DONE) DoToggleGameObjectFlags(GO_ORANGE_VALVE, GO_FLAG_NO_INTERACT, false); break; case TYPE_ROTFACE: m_auiEncounter[uiType] = uiData; DoUseDoorOrButton(GO_GREEN_PLAGUE); if (uiData == DONE) DoToggleGameObjectFlags(GO_GREEN_VALVE, GO_FLAG_NO_INTERACT, false); break; case TYPE_PROFESSOR_PUTRICIDE: m_auiEncounter[uiType] = uiData; DoUseDoorOrButton(GO_SCIENTIST_DOOR); break; case TYPE_BLOOD_PRINCE_COUNCIL: m_auiEncounter[uiType] = uiData; DoUseDoorOrButton(GO_CRIMSON_HALL_DOOR); if (uiData == DONE) { DoUseDoorOrButton(GO_COUNCIL_DOOR_1); DoUseDoorOrButton(GO_COUNCIL_DOOR_2); } break; case TYPE_QUEEN_LANATHEL: m_auiEncounter[uiType] = uiData; DoUseDoorOrButton(GO_BLOODPRINCE_DOOR); if (uiData == DONE) DoUseDoorOrButton(GO_ICECROWN_GRATE); break; case TYPE_VALITHRIA: m_auiEncounter[uiType] = uiData; DoUseDoorOrButton(GO_GREEN_DRAGON_ENTRANCE); // Side doors DoUseDoorOrButton(GO_VALITHRIA_DOOR_1); DoUseDoorOrButton(GO_VALITHRIA_DOOR_2); // Some doors are used only in 25 man mode if (instance->GetDifficulty() == RAID_DIFFICULTY_25MAN_NORMAL || instance->GetDifficulty() == RAID_DIFFICULTY_25MAN_HEROIC) { DoUseDoorOrButton(GO_VALITHRIA_DOOR_3); DoUseDoorOrButton(GO_VALITHRIA_DOOR_4); } if (uiData == DONE) { DoUseDoorOrButton(GO_GREEN_DRAGON_EXIT); DoUseDoorOrButton(GO_SINDRAGOSA_ENTRANCE); DoRespawnGameObject(GO_DREAMWALKER_CACHE, 60 * MINUTE); } break; case TYPE_SINDRAGOSA: m_auiEncounter[uiType] = uiData; DoUseDoorOrButton(GO_SINDRAGOSA_ENTRANCE); break; case TYPE_LICH_KING: m_auiEncounter[uiType] = uiData; break; default: script_error_log("Instance Icecrown Citadel: ERROR SetData = %u for type %u does not exist/not implemented.", uiType, uiData); return; } if (uiData == DONE) { OUT_SAVE_INST_DATA; std::ostringstream saveStream; saveStream << m_auiEncounter[0] << " " << m_auiEncounter[1] << " " << m_auiEncounter[2] << " " << m_auiEncounter[3] << " " << m_auiEncounter[4] << " " << m_auiEncounter[5] << " " << m_auiEncounter[6] << " " << m_auiEncounter[7] << " " << m_auiEncounter[8] << " " << m_auiEncounter[9] << " " << m_auiEncounter[10] << " " << m_auiEncounter[11]; m_strInstData = saveStream.str(); SaveToDB(); OUT_SAVE_INST_DATA_COMPLETE; } } uint32 instance_icecrown_citadel::GetData(uint32 uiType) const { if (uiType < MAX_ENCOUNTER) return m_auiEncounter[uiType]; return 0; } bool instance_icecrown_citadel::CheckAchievementCriteriaMeet(uint32 /*uiCriteriaId*/, Player const* /*pSource*/, Unit const* /*pTarget*/, uint32 /*uiMiscvalue1*/) const { // ToDo: return false; } void instance_icecrown_citadel::Load(const char* strIn) { if (!strIn) { OUT_LOAD_INST_DATA_FAIL; return; } OUT_LOAD_INST_DATA(strIn); std::istringstream loadStream(strIn); loadStream >> m_auiEncounter[0] >> m_auiEncounter[1] >> m_auiEncounter[2] >> m_auiEncounter[3] >> m_auiEncounter[4] >> m_auiEncounter[5] >> m_auiEncounter[6] >> m_auiEncounter[7] >> m_auiEncounter[8] >> m_auiEncounter[9] >> m_auiEncounter[10] >> m_auiEncounter[11]; for (uint8 i = 0; i < MAX_ENCOUNTER; ++i) { if (m_auiEncounter[i] == IN_PROGRESS) m_auiEncounter[i] = NOT_STARTED; } OUT_LOAD_INST_DATA_COMPLETE; } void instance_icecrown_citadel::Update(uint32 uiDiff) { DialogueUpdate(uiDiff); if (m_uiPutricideValveTimer) { if (m_uiPutricideValveTimer <= uiDiff) { // Open the pathway to Putricide when the timer expires DoUseDoorOrButton(GO_SCIENTIST_DOOR_COLLISION); if (GameObject* pDoor = GetSingleGameObjectFromStorage(GO_SCIENTIST_DOOR_GREEN)) pDoor->SetGoState(GO_STATE_ACTIVE_ALTERNATIVE); if (GameObject* pDoor = GetSingleGameObjectFromStorage(GO_SCIENTIST_DOOR_ORANGE)) pDoor->SetGoState(GO_STATE_ACTIVE_ALTERNATIVE); m_uiPutricideValveTimer = 0; } else m_uiPutricideValveTimer -= uiDiff; } } InstanceData* GetInstanceData_instance_icecrown_citadel(Map* pMap) { return new instance_icecrown_citadel(pMap); } bool AreaTrigger_at_icecrown_citadel(Player* pPlayer, AreaTriggerEntry const* pAt) { if (pAt->id == AREATRIGGER_MARROWGAR_INTRO || pAt->id == AREATRIGGER_DEATHWHISPER_INTRO || pAt->id == AREATRIGGER_SINDRAGOSA_PLATFORM) { if (pPlayer->isGameMaster() || pPlayer->IsDead()) return false; if (instance_icecrown_citadel* pInstance = (instance_icecrown_citadel*)pPlayer->GetInstanceData()) pInstance->DoHandleCitadelAreaTrigger(pAt->id, pPlayer); } return false; } bool ProcessEventId_event_gameobject_citadel_valve(uint32 /*uiEventId*/, Object* pSource, Object* /*pTarget*/, bool bIsStart) { if (bIsStart && pSource->GetTypeId() == TYPEID_PLAYER) { if (instance_icecrown_citadel* pInstance = (instance_icecrown_citadel*)((Player*)pSource)->GetInstanceData()) { // Note: the Tubes and doors are activated by DB script if (pInstance->GetData(TYPE_FESTERGUT) == DONE && pInstance->GetData(TYPE_ROTFACE) == DONE) pInstance->DoPreparePutricideDoor(); return false; } } return false; } void AddSC_instance_icecrown_citadel() { Script* pNewScript; pNewScript = new Script; pNewScript->Name = "instance_icecrown_citadel"; pNewScript->GetInstanceData = &GetInstanceData_instance_icecrown_citadel; pNewScript->RegisterSelf(); pNewScript = new Script; pNewScript->Name = "at_icecrown_citadel"; pNewScript->pAreaTrigger = &AreaTrigger_at_icecrown_citadel; pNewScript->RegisterSelf(); pNewScript = new Script; pNewScript->Name = "event_gameobject_citadel_valve"; pNewScript->pProcessEventId = &ProcessEventId_event_gameobject_citadel_valve; pNewScript->RegisterSelf(); }
35.339623
168
0.633316
Zilvereyes
c254a33094ffc58d602b462c4a936d65a0d24f73
24,501
cpp
C++
plugins/fnUsdMeshImport/GeoData.cpp
TheFoundryVisionmongers/mariusdplugins
b3ff07dade27f20426599a5a6905d3eb1182474f
[ "Apache-2.0" ]
11
2020-07-13T15:06:05.000Z
2022-03-21T09:45:50.000Z
plugins/fnUsdMeshImport/GeoData.cpp
TheFoundryVisionmongers/mariusdplugins
b3ff07dade27f20426599a5a6905d3eb1182474f
[ "Apache-2.0" ]
2
2020-09-17T01:07:14.000Z
2021-01-20T08:56:39.000Z
plugins/fnUsdMeshImport/GeoData.cpp
TheFoundryVisionmongers/mariusdplugins
b3ff07dade27f20426599a5a6905d3eb1182474f
[ "Apache-2.0" ]
1
2021-05-24T02:22:45.000Z
2021-05-24T02:22:45.000Z
// These files were initially authored by Pixar. // In 2019, Foundry and Pixar agreed Foundry should maintain and curate // these plug-ins, and they moved to // https://github.com/TheFoundryVisionmongers/mariusdplugins // under the same Modified Apache 2.0 license as the main USD library, // as shown below. // // Copyright 2019 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trademarks. This License does not grant permission to use the trade // names, trademarks, service marks, or product names of the Licensor // and its affiliates, except as required to comply with Section 4(c) of // the License and to reproduce the content of the NOTICE file. // // You may obtain a copy of the Apache License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the Apache License with the above modification is // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the Apache License for the specific // language governing permissions and limitations under the Apache License. // #include "GeoData.h" #include "pxr/base/gf/vec3d.h" #include "pxr/base/gf/vec2f.h" #include "pxr/base/vt/value.h" #include "pxr/base/vt/array.h" #include "pxr/base/tf/envSetting.h" #include "pxr/usd/usdGeom/mesh.h" #include "pxr/usd/usdGeom/xformCache.h" #include <float.h> using namespace std; PXR_NAMESPACE_USING_DIRECTIVE TF_DEFINE_ENV_SETTING(MARI_READ_FLOAT2_AS_UV, true, "Set to false to disable ability to read Float2 type as a UV set"); std::vector<std::string> GeoData::_requireGeomPathSubstring; std::vector<std::string> GeoData::_ignoreGeomPathSubstring; std::string GeoData::_requireGeomPathSubstringEnvVar = "PX_USDREADER_REQUIRE_GEOM_PATH_SUBSTR"; std::string GeoData::_ignoreGeomPathSubstringEnvVar = "PX_USDREADER_IGNORE_GEOM_PATH_SUBSTR"; //#define PRINT_DEBUG //#define PRINT_ARRAYS //------------------------------------------------------------------------------ // GeoData implementation //------------------------------------------------------------------------------ bool GeoData::ReadFloat2AsUV() { static const bool readFloat2AsUV = TfGetEnvSetting(MARI_READ_FLOAT2_AS_UV); return readFloat2AsUV; } GeoData::GeoData(UsdPrim const &prim, std::string uvSet, std::string mappingScheme, std::vector<int> frames, bool conformToMariY, bool readerIsUpY, bool keepCentered, UsdPrim const &model, const MriGeoReaderHost& host, std::vector<std::string>& log) { // Init m_isSubdivMesh = false; m_subdivisionScheme = ""; m_interpolateBoundary = 0; m_faceVaryingLinearInterpolation = 0; m_propagateCorner = 0; UsdGeomMesh mesh(prim); if (not mesh) { host.trace("[GeoData:%d] Invalid non-mesh prim %s (type %s)", __LINE__, prim.GetPath().GetText(), prim.GetTypeName().GetText()); log.push_back("** Invalid non-mesh prim " + std::string(prim.GetPath().GetText()) + " of type " + std::string(prim.GetTypeName().GetText())); return; } bool isTopologyVarying = mesh.GetFaceVertexIndicesAttr().GetNumTimeSamples() >= 1; #if defined(PRINT_DEBUG) host.trace("[ !! ] ---------------------------------------"); host.trace("[ GeoData:%d] Reading MESH %s (type %s) (topology Varying %d)", __LINE__, prim.GetPath().GetText(), prim.GetTypeName().GetText(), isTopologyVarying); #endif // Read vertex/face indices { VtIntArray vertsIndicesArray; bool ok = isTopologyVarying ? mesh.GetFaceVertexIndicesAttr().Get(&vertsIndicesArray, UsdTimeCode::EarliestTime()) : mesh.GetFaceVertexIndicesAttr().Get(&vertsIndicesArray); if (!ok) { host.trace("[GeoData:%d]\tfailed getting face vertex indices on %s.", __LINE__, prim.GetPath().GetText()); log.push_back("** Failed getting faces on " + std::string(prim.GetPath().GetText())); return;// this is not optional! } m_vertexIndices = vector<int>(vertsIndicesArray.begin(), vertsIndicesArray.end()); } // Read face counts { VtIntArray nvertsPerFaceArray; bool ok = isTopologyVarying ? mesh.GetFaceVertexCountsAttr().Get(&nvertsPerFaceArray, UsdTimeCode::EarliestTime()) : mesh.GetFaceVertexCountsAttr().Get(&nvertsPerFaceArray); if (!ok) { host.trace("[GeoData:%d]\tfailed getting face counts on %s", __LINE__, prim.GetPath().GetText()); log.push_back("** Failed getting faces on " + std::string(prim.GetPath().GetText())); return;// this is not optional! } m_faceCounts = vector<int>(nvertsPerFaceArray.begin(), nvertsPerFaceArray.end()); } // Create face selection indices { m_faceSelectionIndices.reserve(m_faceCounts.size()); for(int x = 0; x < m_faceCounts.size(); ++x) { m_faceSelectionIndices.push_back(x); } } if (mappingScheme != "Force Ptex" and uvSet.length() > 0) { // Get UV set primvar if (UsdGeomPrimvar uvPrimvar = mesh.GetPrimvar(TfToken(uvSet))) { SdfValueTypeName typeName = uvPrimvar.GetTypeName(); TfToken interpolation = uvPrimvar.GetInterpolation(); if ((interpolation == UsdGeomTokens->faceVarying or interpolation == UsdGeomTokens->vertex) and (typeName == SdfValueTypeNames->TexCoord2fArray or (GeoData::ReadFloat2AsUV() and typeName == SdfValueTypeNames->Float2Array))) { VtVec2fArray values; VtIntArray indices; if (uvPrimvar.Get(&values, UsdTimeCode::EarliestTime())) { // Read uvs m_uvs.resize(values.size()*2); for (int i = 0; i < values.size(); ++i) { m_uvs[i * 2 ] = values[i][0]; m_uvs[i * 2 + 1] = values[i][1]; } // Get indices bool ok = isTopologyVarying ? uvPrimvar.GetIndices(&indices, UsdTimeCode::EarliestTime()) : uvPrimvar.GetIndices(&indices); if (ok) { if (interpolation == UsdGeomTokens->faceVarying) { // All good -> primvar is indexed: validate/process values and indices together m_uvIndices = vector<int>(indices.begin(), indices.end()); } else { // vertex interpolated -> do extra extrapolation m_uvIndices.reserve(m_vertexIndices.size()); // To build an actual face varying uv indices array, we need to // 1. for each vertex V on a face F, get its vertex index V from the vertexIndices array // 2. use VI as an index into the original vertex-interpolcated uv index table, to get uv index UVI // 3. add UVI to final face varying uv index array // VITAL NOTE: the final uv indices array count MUST MATCH the vertex indices array count std::vector<int> UvIndices = vector<int>(indices.begin(), indices.end()); int globalIndex = 0; for(int x = 0; x < m_faceCounts.size(); ++x) { int vertCount = m_faceCounts[x]; for (int vertIndex = 0; vertIndex < vertCount; ++vertIndex) { int vertId = m_vertexIndices[globalIndex++]; int uvId = UvIndices[vertId]; m_uvIndices.push_back(uvId); } } } } else { // Our uvs are not indexed -> we need to fill in an ordered list of indices m_uvIndices.reserve(m_vertexIndices.size()); for (unsigned int x = 0; x < m_vertexIndices.size(); ++x) { m_uvIndices.push_back(x); } } } else { // Could not read uvs host.trace("[GeoData:%d]\tDiscarding mesh %s - specified uv set %s cannot be read", __LINE__, prim.GetPath().GetText(), uvSet.c_str()); log.push_back("** Discarding mesh " + std::string(prim.GetPath().GetText()) + " - specified uv set " + uvSet + " cannot be read"); return; } } else { // Incorrect interpolation host.trace("[GeoData:%d]\tDiscarding mesh %s - specified uv set %s is not of type 'faceVarying or vertex'", __LINE__, prim.GetPath().GetText(), uvSet.c_str()); log.push_back("** Discarding mesh " + std::string(prim.GetPath().GetText()) + " - specified uv set " + uvSet + " is not of type 'faceVarying or vertex'"); return; } } else { // UV set not found on mesh host.trace("[GeoData:%d]\tSpecified uv set %s not found on mesh %s - will use ptex", __LINE__, uvSet.c_str(), prim.GetPath().GetText()); log.push_back("** Discarding mesh " + std::string(prim.GetPath().GetText()) + " - specified uv set " + uvSet + " not found"); } } else { // Mari will use Ptex for uv-ing later on } // Read normals { VtVec3fArray normalsVt; bool ok = isTopologyVarying ? mesh.GetNormalsAttr().Get(&normalsVt, UsdTimeCode::EarliestTime()) : mesh.GetNormalsAttr().Get(&normalsVt); if (ok) { m_normals.resize(normalsVt.size() * 3); for(int i = 0; i < normalsVt.size(); ++i) { m_normals[i * 3 ] = normalsVt[i][0]; m_normals[i * 3 + 1] = normalsVt[i][1]; m_normals[i * 3 + 2] = normalsVt[i][2]; } m_normalIndices.reserve(m_vertexIndices.size()); for (unsigned int x = 0; x < m_vertexIndices.size(); ++x) { m_normalIndices.push_back(x); } } } // Load vertices and animation frames GfMatrix4d const IDENTITY(1); vector<float> points; for (unsigned int iFrame = 0; iFrame < frames.size(); ++iFrame) { // Get frame sample corresponding to frame index unsigned int frameSample = frames[iFrame]; double currentTime = double(frameSample); // Read points for this frame sample VtVec3fArray pointsVt; if (!mesh.GetPointsAttr().Get(&pointsVt, frameSample)) { host.trace("[GeoData:%d]\tfailed getting vertices on %s.", __LINE__, prim.GetPath().GetName().c_str()); log.push_back("** Failed getting faces on " + prim.GetPath().GetName()); return;// this is not optional! } points.resize(pointsVt.size() * 3); for(int i = 0; i < pointsVt.size(); ++i) { points[i * 3 ] = pointsVt[i][0]; points[i * 3 + 1] = pointsVt[i][1]; points[i * 3 + 2] = pointsVt[i][2]; } // Calculate transforms - if not identity, pre-transform all points in place UsdGeomXformCache xformCache(currentTime); GfMatrix4d fullXform = xformCache.GetLocalToWorldTransform(prim); if (keepCentered) { // ignore transforms up to the model level GfMatrix4d m = xformCache.GetLocalToWorldTransform(model); fullXform = fullXform * m.GetInverse(); } if (fullXform != IDENTITY) { unsigned int psize = points.size(); for (unsigned int iPoint = 0; iPoint < psize; iPoint += 3) { GfVec4d p(points[iPoint], points[iPoint + 1], points[iPoint + 2], 1.0); p = p * fullXform; points[iPoint ] = p[0]; points[iPoint + 1] = p[1]; points[iPoint + 2] = p[2]; } } if (conformToMariY && !readerIsUpY) { // Our source is Z and we need to conform to Y -> let's flip unsigned int psize = points.size(); for (unsigned int iPoint = 0; iPoint < psize; iPoint += 3) { int y = points[iPoint + 1]; points[iPoint + 1] = points[iPoint + 2]; points[iPoint + 2] = -y; } } // Insert transformed vertices in our map m_vertices[frameSample].resize(points.size()); m_vertices[frameSample] = points; } // DEBUG #if defined(PRINT_DEBUG) { host.trace("[GeoData:%d]\t\t Face counts %i", __LINE__, m_faceCounts.size()); #if defined(PRINT_ARRAYS) for (unsigned int x = 0; x < m_faceCounts.size(); ++x) { host.trace("\t\t face count[%d] : %d", x, m_faceCounts[x]); } #endif host.trace("[GeoData:%d]\t\t vertex indices %i", __LINE__, m_vertexIndices.size()); #if defined(PRINT_ARRAYS) for (unsigned x = 0; x < m_vertexIndices.size(); ++x) { host.trace("\t\t vertex Index[%d] : %d", x, m_vertexIndices[x]); } #endif host.trace("[GeoData:%d]\t\t vertex frame count %i", __LINE__, m_vertices.size()); vector<float> vertices0 = m_vertices.begin()->second; host.trace("[GeoData:%d]\t\t vertex @ frame0 count %i", __LINE__, vertices0.size()/3); #if defined(PRINT_ARRAYS) for (unsigned x = 0; x < vertices0.size()/3; ++x) { host.trace("\t\t vertex[%d] : (%f, %f, %f)", x, vertices0[(x*3)+0], vertices0[(x*3)+1], vertices0[(x*3)+2]); } #endif host.trace("[GeoData:%d]\t\t uvs count %i", __LINE__, m_uvs.size()/2); #if defined(PRINT_ARRAYS) for(int x = 0; x < m_uvs.size()/2; ++x) { host.trace("\t\t uv[%d] : (%f, %f)", x, m_uvs[(x*2)+0], m_uvs[(x*2)+1]); } #endif host.trace("[GeoData:%d]\t\t uv indices %i", __LINE__, m_uvIndices.size()); #if defined(PRINT_ARRAYS) for(int x = 0; x < m_uvIndices.size(); ++x) { host.trace("\t\t UV Index[%d] : %d", x, m_uvIndices[x]); } #endif host.trace("[GeoData:%d]\t\t normals count %i", __LINE__, m_normals.size()/3); #if defined(PRINT_ARRAYS) for(int x = 0; x < m_normals.size()/3; ++x) { host.trace("\t\t normal[%d] : (%f, %f, %f)", x, m_normals[(x*3)+0], m_normals[(x*3)+1], m_normals[(x*3)+2]); } #endif host.trace("[GeoData:%d]\t\t normals indices %i", __LINE__, m_normalIndices.size()); #if defined(PRINT_ARRAYS) for(int x = 0; x < m_normalIndices.size(); ++x) { host.trace("\t\t Normal Index[%d] : %d", x, m_normalIndices[x]); } #endif } #endif // Read OpenSubdiv structures { VtIntArray creaseIndicesArray; if (mesh.GetCreaseIndicesAttr().Get(&creaseIndicesArray)) { m_creaseIndices = vector<int>(creaseIndicesArray.begin(), creaseIndicesArray.end()); } VtIntArray creaseLengthsArray; if (mesh.GetCreaseLengthsAttr().Get(&creaseLengthsArray)) { m_creaseLengths = vector<int>(creaseLengthsArray.begin(), creaseLengthsArray.end()); } VtFloatArray creaseSharpnessArray; if (mesh.GetCreaseSharpnessesAttr().Get(&creaseSharpnessArray)) { m_creaseSharpness = vector<float>(creaseSharpnessArray.begin(), creaseSharpnessArray.end()); } VtIntArray cornerIndicesArray; if (mesh.GetCornerIndicesAttr().Get(&cornerIndicesArray)) { m_cornerIndices = vector<int>(cornerIndicesArray.begin(), cornerIndicesArray.end()); } VtFloatArray cornerSharpnessArray; if (mesh.GetCornerSharpnessesAttr().Get(&cornerSharpnessArray)) { m_cornerSharpness = vector<float>(cornerSharpnessArray.begin(), cornerSharpnessArray.end()); } VtIntArray holeIndicesArray; if (mesh.GetHoleIndicesAttr().Get(&holeIndicesArray)) { m_holeIndices = vector<int>(holeIndicesArray.begin(), holeIndicesArray.end()); } m_isSubdivMesh = false; TfToken subdivisionScheme; if (mesh.GetSubdivisionSchemeAttr().Get(&subdivisionScheme)) { if (subdivisionScheme == UsdGeomTokens->none) { // This mesh is not subdivideable m_isSubdivMesh = false; } else { m_isSubdivMesh = true; if (subdivisionScheme == UsdGeomTokens->catmullClark) { m_subdivisionScheme = "catmullClark"; } else if (subdivisionScheme == UsdGeomTokens->loop) { m_subdivisionScheme = "loop"; } else if (subdivisionScheme == UsdGeomTokens->bilinear) { m_subdivisionScheme = "bilinear"; } TfToken interpolateBoundary; if (mesh.GetInterpolateBoundaryAttr().Get(&interpolateBoundary, UsdTimeCode::EarliestTime())) { if (interpolateBoundary == UsdGeomTokens->none) { m_interpolateBoundary = 0; } else if (interpolateBoundary == UsdGeomTokens->edgeAndCorner) { m_interpolateBoundary = 1; } else if (interpolateBoundary == UsdGeomTokens->edgeOnly) { m_interpolateBoundary = 2; } } TfToken faceVaryingLinearInterpolation; if (mesh.GetFaceVaryingLinearInterpolationAttr().Get(&faceVaryingLinearInterpolation, UsdTimeCode::EarliestTime())) { // See MriOpenSubdivDialog::faceVaryingBoundaryInterpolationFromInt for reference if (faceVaryingLinearInterpolation == UsdGeomTokens->all) { m_faceVaryingLinearInterpolation = 0; } else if (faceVaryingLinearInterpolation == UsdGeomTokens->cornersPlus1) { m_faceVaryingLinearInterpolation = 1; m_propagateCorner = 0; } else if (faceVaryingLinearInterpolation == UsdGeomTokens->none) { m_faceVaryingLinearInterpolation = 2; } else if (faceVaryingLinearInterpolation == UsdGeomTokens->boundaries) { m_faceVaryingLinearInterpolation = 3; } else if (faceVaryingLinearInterpolation == UsdGeomTokens->cornersPlus2) { m_faceVaryingLinearInterpolation = 1; m_propagateCorner = 1; } } } } } } GeoData::~GeoData() { Reset(); } // Print the internal status of the Geometric Data. void GeoData::Log(const MriGeoReaderHost& host) { } // Cast to bool. False if no good data is found. GeoData::operator bool() { return (m_vertices.size() > 0 && m_vertices.begin()->second.size()>0 && m_vertexIndices.size()>0); } // Static - Sanity test to see if the usd prim is something we can use. bool GeoData::IsValidNode(UsdPrim const &prim) { if (not prim.IsA<UsdGeomMesh>()) return false; else return TestPath( prim.GetPath().GetText()); } // Pre-scan the UsdStage to see what uv sets are included. void GeoData::GetUvSets(UsdPrim const &prim, UVSet &retval) { UsdGeomGprim gprim(prim); if (not gprim) return; vector<UsdGeomPrimvar> primvars = gprim.GetPrimvars(); TF_FOR_ALL(primvar, primvars) { TfToken name, interpolation; SdfValueTypeName typeName; int elementSize; primvar->GetDeclarationInfo(&name, &typeName, &interpolation, &elementSize); if (interpolation == UsdGeomTokens->vertex or interpolation == UsdGeomTokens->faceVarying) { string prefix = name.GetString().substr(0,2); string mapName(""); if ((prefix == "v_" || prefix == "u_") and (typeName == SdfValueTypeNames->FloatArray)) { mapName = name.GetString().substr(2); } else if (typeName == SdfValueTypeNames->TexCoord2fArray || (GeoData::ReadFloat2AsUV() && typeName == SdfValueTypeNames->Float2Array)) { mapName = name.GetString(); } if (mapName.length()) { UVSet::iterator it = retval.find(mapName); if (it == retval.end()) retval[mapName] = 1; else retval[mapName] += 1; } } } } float* GeoData::GetVertices(int frameSample) { if (m_vertices.size() > 0) { if (m_vertices.find(frameSample) != m_vertices.end()) { return &(m_vertices[frameSample][0]); } else { // Could not find frame -> let's return frame 0 return &(m_vertices.begin()->second[0]); } } // frame not found. return NULL; } void GeoData::Reset() { m_vertexIndices.clear(); m_faceCounts.clear(); m_faceSelectionIndices.clear(); m_vertices.clear(); m_normalIndices.clear(); m_normals.clear(); m_uvIndices.clear(); m_uvs.clear(); m_creaseIndices.clear(); m_creaseLengths.clear(); m_creaseSharpness.clear(); m_cornerIndices.clear(); m_cornerSharpness.clear(); m_holeIndices.clear(); } bool GeoData::TestPath(string path) { bool requiredSubstringFound = true; std::vector<std::string>::iterator i; for (i=_requireGeomPathSubstring.begin(); i!=_requireGeomPathSubstring.end(); ++i) { if (path.find(*i) != string::npos) { requiredSubstringFound = true; break; } else { requiredSubstringFound = false; } } if (requiredSubstringFound == false) { return false; } for (i=_ignoreGeomPathSubstring.begin(); i!=_ignoreGeomPathSubstring.end(); ++i) { if (path.find(*i) != string::npos) { return false; } } return true; } void GeoData::InitializePathSubstringLists() { char * ignoreEnv = getenv(_ignoreGeomPathSubstringEnvVar.c_str()); char * requireEnv = getenv(_requireGeomPathSubstringEnvVar.c_str()); if (ignoreEnv) { _ignoreGeomPathSubstring.clear(); _ignoreGeomPathSubstring = TfStringTokenize(ignoreEnv, ","); } if (requireEnv) { _requireGeomPathSubstring.clear(); _requireGeomPathSubstring = TfStringTokenize(requireEnv, ","); } } template <typename SOURCE, typename TYPE> bool GeoData::CastVtValueAs(SOURCE &obj, TYPE &result) { if ( obj.template CanCast<TYPE>() ) { obj = obj.template Cast<TYPE>(); result = obj.template Get<TYPE>(); return true; } return false; }
36.678144
235
0.547651
TheFoundryVisionmongers
c2557edf945cc5ce276a758dd2d0feb408b1f279
3,617
cpp
C++
software/threads/CentralMain.cpp
dettus/dettusSDR
066a96ab7becdd612bab04e33ea0840234a8a6a8
[ "BSD-2-Clause" ]
null
null
null
software/threads/CentralMain.cpp
dettus/dettusSDR
066a96ab7becdd612bab04e33ea0840234a8a6a8
[ "BSD-2-Clause" ]
null
null
null
software/threads/CentralMain.cpp
dettus/dettusSDR
066a96ab7becdd612bab04e33ea0840234a8a6a8
[ "BSD-2-Clause" ]
null
null
null
#include <QApplication> #include "CentralMain.h" #include "Tuners.h" CentralMain::CentralMain(TunerMain* tunerMain,DemodMain* demodMain,AudioMain* audioMain) { int i; int fftsize; char tmp[32]; mTunerMain=tunerMain; mDemodMain=demodMain; mAudioMain=audioMain; mV1Layout=new QVBoxLayout; mV2Layout=new QVBoxLayout; mV3Layout=new QVBoxLayout; mH1Layout=new QHBoxLayout; mH2Layout=new QHBoxLayout; mH3Layout=new QHBoxLayout; mainWin=new QWidget(nullptr); mWVolume=new WVolume(nullptr); mWSpectrum=new WSpectrum(nullptr); mRecordButton=new QPushButton("Record"); mDemodWidget=nullptr; connect(mRecordButton,SIGNAL(released()),this,SLOT(handleRecord())); mainWin->hide(); mDemodWidget=demodMain->getDemodWidget(); mH3Layout->setAlignment(Qt::AlignLeft); mH3Layout->addWidget(new QLabel("FFT size:")); fftsize=256; for (i=0;i<8;i++) { snprintf(tmp,32,"%d",fftsize); bFFT[i]=new QPushButton(tmp); bFFT[i]->setFlat(false); connect(bFFT[i] ,SIGNAL(clicked()),this,SLOT(handleFFTclicked())); mH3Layout->addWidget(bFFT[i]); fftsize*=2; } mV3Layout->setStretch(0,1000); mV3Layout->setStretch(1,100); } void CentralMain::stop() { mStopped=true; } void CentralMain::run() { Tuners* tuner=nullptr; tIQSamplesBlock iqSamples; while (!mStopped && tuner==nullptr) { QThread::msleep(100); tuner=mTunerMain->getTuner(); } tuner->initialize(); // mWSpectrum->setFFTsize(32768); mWSpectrum->setFFTsize(8192); bFFT[5]->setFlat(true); // mWSpectrum->setFFTsize(4096); mH2Layout->addWidget(mWVolume); mH2Layout->addWidget(mDemodWidget); mH1Layout->setStretch(0,5); mH1Layout->setStretch(1,30); mV1Layout->addLayout(mH2Layout); mV2Layout->addWidget(tuner); mV2Layout->addWidget(mRecordButton); mH1Layout->addLayout(mV2Layout); mV3Layout->addWidget(mWSpectrum); mV3Layout->addLayout(mH3Layout); mH1Layout->addLayout(mV3Layout); mH1Layout->setStretch(0,10); mH1Layout->setStretch(1,30); mV1Layout->addLayout(mH1Layout); mV1Layout->setStretch(0,5); mV1Layout->setStretch(1,50); mainWin->setLayout(mV1Layout); mainWin->showMaximized(); while (!mStopped) { QThread::msleep(100); tuner->getSamples(&iqSamples); if (iqSamples.sampleNum) { int demodFreq; int demodBw; int raster; bool demodOn; mDemodMain->setDemodFreq(mWSpectrum->getLastFreq()); mDemodMain->getDemodParams(&demodFreq,&demodBw,&raster,&demodOn); mDemodMain->onNewSamples(&iqSamples); mWSpectrum->onNewSamples(&iqSamples); mWSpectrum->setDemodParams(demodFreq,demodBw,raster,demodOn); } mAudioMain->setVolume((double)mWVolume->getVolume()/255.0f); mLock.lock(); if (mRecord && mFptr!=nullptr) { fwrite(iqSamples.pData,sizeof(tSComplex),iqSamples.sampleNum,mFptr); } mLock.unlock(); } QApplication::quit(); } void CentralMain::handleRecord() { if (mRecord==false) { QString filename=QFileDialog::getSaveFileName(nullptr,"Record as...","signal.iq2048"); mLock.lock(); if (mFptr!=nullptr) { fclose(mFptr); } mFptr=fopen(filename.toLocal8Bit().data(),"wb"); mRecord=true; if (mFptr!=nullptr) { mRecordButton->setText("Stop Recording"); } mLock.unlock(); }else { mLock.lock(); if (mFptr!=nullptr) { fclose(mFptr); } mRecord=false; mRecordButton->setText("Record"); mLock.unlock(); } } void CentralMain::handleFFTclicked() { int i; int fftsize; QPushButton *sender = (QPushButton*)QObject::sender(); fftsize=256; for (i=0;i<8;i++) { if (sender==bFFT[i]) { mWSpectrum->setFFTsize(fftsize); bFFT[i]->setFlat(true); } else bFFT[i]->setFlat(false); fftsize*=2; } }
22.054878
88
0.709151
dettus
c2592d0ebcdc8615edda83bba0c966ef0f02a3a7
12,460
cpp
C++
src/Needleman_Wunsch/NW_C_SSE.cpp
kugelblitz1235/TPOrga_Final
320e30f165be9c4ee0b57535c9db8d09d42ad389
[ "MIT" ]
null
null
null
src/Needleman_Wunsch/NW_C_SSE.cpp
kugelblitz1235/TPOrga_Final
320e30f165be9c4ee0b57535c9db8d09d42ad389
[ "MIT" ]
null
null
null
src/Needleman_Wunsch/NW_C_SSE.cpp
kugelblitz1235/TPOrga_Final
320e30f165be9c4ee0b57535c9db8d09d42ad389
[ "MIT" ]
2
2021-04-29T15:02:41.000Z
2021-06-15T17:31:36.000Z
#include "NW_C_SSE.hpp" namespace NW{ namespace C{ namespace SSE{ // Equivalentes a registros nombrados: __m128i constant_gap_xmm, constant_missmatch_xmm, constant_match_xmm, zeroes_xmm; __m128i str_row_xmm, str_col_xmm, left_score_xmm, up_score_xmm, diag_score_xmm; __m128i reverse_mask_xmm; __m128i diag1_xmm, diag2_xmm; char* seq1; char* seq2; unsigned int seq1_len; unsigned int seq2_len; // Máscara utilizada para invertir el string almacenado en un registro char reverse_mask[16] = {0xE,0xF,0xC,0xD,0xA,0xB,0x8,0x9,0x6,0x7,0x4,0x5,0x2,0x3,0x0,0x1}; int vector_len = 8; int height; // Cantidad de "franjas" de diagonales int width; // Cantidad de diagonales por franja int score_matrix_sz; // Cantidad de celdas de la matriz // Reservar memoria para la matriz de puntajes y el vector auxiliar, luego inicializamos sus valores short* score_matrix; short* v_aux; // Inicializar los valores del vector auxiliar y la matriz de puntajes void inicializar_casos_base(Alignment& alignment){ // Llenar vector auxiliar con un valor inicial negativo grande para no afectar los calculos for(int i = 0;i < width-1;i++){ v_aux[i] = SHRT_MIN; } // Inicializar por cada franja las primeras 2 diagonales. // Se pone en cada posicion un valor negativo grande para no afectar los calculos posteriores __m128i diag; for(int i = 0 ; i < height ; i++){ unsigned int offset_y = i * width * vector_len; // Broadcastear el valor SHRT_MIN/2 a nivel word en el registro diag diag = _mm_insert_epi16(diag,SHRT_MIN,0); diag = _mm_shufflelo_epi16(diag,0b0); diag = _mm_shuffle_epi32 (diag,0b0); _mm_storeu_si128((__m128i*)(score_matrix + offset_y), diag); // Insertar la penalidad adecuada para la franja en la posicion mas alta de la diagonal diag = _mm_insert_epi16(diag,i * vector_len * alignment.parameters->gap, 7); // 7 = vector_len - 1 _mm_storeu_si128((__m128i*)(score_matrix + offset_y + vector_len), diag); } } // Lee de memoria y almacena correctamente en los registros los caracteres de la secuencia columna a utilizar en la comparación void leer_secuencia_columna(int i){ if((i+1)*vector_len >= (int)seq2_len){// Caso de desborde por abajo int offset_col = (i+1)*vector_len - seq2_len; // Indica cuanto hay que shiftear el string columna luego de levantarlo str_col_xmm = _mm_loadl_epi64((__m128i*)(seq2 + seq2_len - vector_len) ); __m128i shift_count_xmm = zeroes_xmm; // Se utiliza junto con offset_col para shiftear str_col_xmm __m128i shift_mask_xmm = zeroes_xmm; // Acomodar los caracteres en str_col_xmm para que queden en las posiciones correctas para la comparación mas adelante shift_count_xmm = _mm_insert_epi8(shift_count_xmm, offset_col * 8, 0); str_col_xmm = _mm_srl_epi64(str_col_xmm, shift_count_xmm); // str_col_xmm = |0...0|str_col| // shift_mask_xmm va a tener 1's donde haya caracteres inválidos shift_mask_xmm = _mm_cmpeq_epi8(shift_mask_xmm, shift_mask_xmm); shift_count_xmm = _mm_insert_epi8(shift_count_xmm, (char)(8 - offset_col) * 8, 0); shift_mask_xmm = _mm_sll_epi64(shift_mask_xmm, shift_count_xmm); // shift_mask_xmm = |1...1|0...0| // Combinar la mascara de caracteres invalidos con los caracteres validos str_col_xmm = _mm_or_si128(str_col_xmm, shift_mask_xmm); // str_col_xmm = |1...1|str_col| }else{ // Caso sin desborde // Levantar directamente de memoria, no hay desborde str_col_xmm = _mm_loadl_epi64((__m128i*)(seq2 + i * vector_len) ); } // Desempaquetar los caracteres en str_col_xmm para trabajar con words str_col_xmm = _mm_unpacklo_epi8(str_col_xmm, zeroes_xmm); // Invertir la secuencia de caracteres para compararlos correctamente mas adelante str_col_xmm = _mm_shuffle_epi8(str_col_xmm, reverse_mask_xmm); } // Lee de memoria y almacena correctamente en los registros los caracteres de la secuencia fila a utilizar en la comparación void leer_secuencia_fila(int j) { __m128i shift_count = zeroes_xmm; // Se utiliza junto con offset_row para shiftear str_row_xmm en los casos de desborde if(j-vector_len < 0){ // Caso de desborde por izquierda int offset_str_row = vector_len - j; // Indica cuanto hay que shiftear a la izquierda el string fila luego de levantarlo str_row_xmm = _mm_loadl_epi64((__m128i*)(seq1)); // Acomodar los caracteres en str_row_xmm para que queden en las posiciones correctas para la comparación mas adelante shift_count = _mm_insert_epi8(shift_count, offset_str_row * 8, 0); str_row_xmm = _mm_sll_epi64(str_row_xmm, shift_count); // str_row_xmm = |str_row|0...0| } else if(j > width-vector_len){ // Caso de desborde por derecha // Desplazamiento de puntero a derecha y levantar datos de memoria int offset_str_row = j - (width-vector_len); // Indica cuanto hay que shiftear a la derecha el string fila luego de levantarlo str_row_xmm = _mm_loadl_epi64((__m128i*)(seq1 + j - vector_len - offset_str_row) ); // Acomodar los caracteres en str_row_xmm para que queden en las posiciones correctas para la comparación mas adelante shift_count = _mm_insert_epi8(shift_count, offset_str_row * 8, 0); str_row_xmm = _mm_srl_epi64(str_row_xmm, shift_count); // str_row_xmm = |0...0|str_row| }else{ // Caso sin desborde str_row_xmm = _mm_loadl_epi64((__m128i*)(seq1 + j - vector_len) ); } // Desempaquetar los caracteres en str_row_xmm para trabajar con words str_row_xmm = _mm_unpacklo_epi8(str_row_xmm,zeroes_xmm); } // Calcula los puntajes resultantes de las comparaciones entre caracteres void calcular_scores(int j){ // Calcular los scores viniendo por izquierda, sumandole a cada posicion la penalidad del gap left_score_xmm = diag2_xmm; left_score_xmm = _mm_adds_epi16(left_score_xmm, constant_gap_xmm); // Calcular los scores viniendo por arriba, sumandole a cada posicion la penalidad del gap up_score_xmm = diag2_xmm; up_score_xmm = _mm_srli_si128(up_score_xmm, 2); up_score_xmm = _mm_insert_epi16(up_score_xmm,v_aux[j-1],0b111); up_score_xmm = _mm_adds_epi16(up_score_xmm, constant_gap_xmm); // Calcular los scores viniendo diagonalmente, sumando en cada caso el puntaje de match o missmatch // si coinciden o no los caracteres de la fila y columna correspondientes diag_score_xmm = diag1_xmm; diag_score_xmm = _mm_srli_si128(diag_score_xmm, 2); diag_score_xmm = _mm_insert_epi16(diag_score_xmm,v_aux[j-2],0b111); // Comparar los dos strings y colocar según corresponda el puntaje correcto (match o missmatch) en cada posición __m128i cmp_match_xmm; cmp_match_xmm = _mm_cmpeq_epi16(str_col_xmm,str_row_xmm); // Mascara con unos en las posiciones donde coinciden los caracteres cmp_match_xmm = _mm_blendv_epi8(constant_missmatch_xmm,constant_match_xmm,cmp_match_xmm); // Seleccionar para cada posicion el puntaje correcto basado en la mascara previa diag_score_xmm = _mm_adds_epi16(diag_score_xmm, cmp_match_xmm); } void NW (Alignment& alignment, bool debug){ // Tamaños y punteros a las secuencias seq1 = alignment.sequence_1->sequence; seq2 = alignment.sequence_2->sequence; seq1_len = alignment.sequence_1->length; seq2_len = alignment.sequence_2->length; // Broadcastear el valor de gap, a nivel word, en el registro constant_gap_xmm = _mm_insert_epi16(constant_gap_xmm,alignment.parameters->gap,0); constant_gap_xmm = _mm_shufflelo_epi16(constant_gap_xmm,0b0); constant_gap_xmm = _mm_shuffle_epi32 (constant_gap_xmm,0b0); // Broadcastear el valor de missmatch, a nivel word, en el registro constant_missmatch_xmm = _mm_insert_epi16(constant_missmatch_xmm,alignment.parameters->missmatch,0); constant_missmatch_xmm = _mm_shufflelo_epi16(constant_missmatch_xmm,0b0); constant_missmatch_xmm = _mm_shuffle_epi32 (constant_missmatch_xmm,0b0); // Broadcastear el valor de match, a nivel word, en el registro constant_match_xmm = _mm_insert_epi16(constant_match_xmm,alignment.parameters->match,0); constant_match_xmm = _mm_shufflelo_epi16(constant_match_xmm,0b0); constant_match_xmm = _mm_shuffle_epi32 (constant_match_xmm,0b0); // Máscara de ceros zeroes_xmm = _mm_setzero_si128(); reverse_mask_xmm = _mm_loadu_si128((__m128i*)reverse_mask); // El tamaño del vector auxiliar se corresponde con la cantidad de caracteres que vamos a procesar simultáneamente vector_len = 8; height = ((seq2_len + vector_len - 1)/ vector_len); // Cantidad de "franjas" de diagonales width = (1 + seq1_len + vector_len - 1); // Cantidad de diagonales por franja score_matrix_sz = height * width * vector_len; // Cantidad de celdas de la matriz // Reservar memoria para la matriz de puntajes y el vector auxiliar, luego inicializamos sus valores score_matrix = (short*)malloc(score_matrix_sz*sizeof(short)); v_aux = (short*)malloc((width-1)*sizeof(short)); inicializar_casos_base(alignment); /******************************************************************************************************/ for( int i = 0 ; i < height ; i++){ int offset_y = i * width * vector_len; leer_secuencia_columna(i); // Cargar las primeras 2 diagonales de la franja actual necesarios para el primer calculo dentro de la franja diag1_xmm = _mm_loadu_si128((__m128i const*) (score_matrix + offset_y)); diag2_xmm = _mm_loadu_si128((__m128i const*) (score_matrix + offset_y + vector_len)); for( int j = 2; j < width ; j++){ int offset_x = j * vector_len; // String horizontal ------------------------------------------------------------------ leer_secuencia_fila(j); // Calculo scores de izquierda, arriba y diagonal -------------------------------------------------------------------- calcular_scores(j); // Guardar en cada posicion de la diagonal el maximo entre los puntajes de venir por izquierda, arriba y diagonalmente diag_score_xmm = _mm_max_epi16(diag_score_xmm,up_score_xmm); diag_score_xmm = _mm_max_epi16(diag_score_xmm,left_score_xmm); // Almacenamos el puntaje máximo en la posición correcta de la matriz _mm_storeu_si128((__m128i*)(score_matrix + offset_y + offset_x), diag_score_xmm); if(j>=vector_len){ v_aux[j - vector_len] = _mm_extract_epi16 (diag_score_xmm, 0b0000); } // Actualizar las 2 diagonales anteriores para la siguiente iteracion, actualizando diag2 con el valor de la actual diag1_xmm = diag2_xmm; diag2_xmm = diag_score_xmm; } } if(debug){// Utilizar para debuggear los valores en la matriz de puntajes alignment.matrix = score_matrix; } // Recuperar los 2 strings del mejor alineamiento utilizando backtracking, empezando desde la posicion mas inferior derecha backtracking_C( score_matrix, alignment, vector_len, alignment.sequence_1->length-1,alignment.sequence_2->length-1, false, (score_fun_t)get_score_SSE, false ); if(!debug) free(score_matrix); } } } }
53.939394
180
0.646549
kugelblitz1235
c25abd0112b9255784826dce5d2720c8743d40f6
4,808
hpp
C++
src/web_server/session/handle_request/handle_request.hpp
X-rays5/web_server
c14e2c8e6e53797d2179cb5985a135e34173b3b9
[ "MIT" ]
2
2021-09-16T03:22:45.000Z
2021-11-09T11:45:07.000Z
src/web_server/session/handle_request/handle_request.hpp
X-rays5/web_server
c14e2c8e6e53797d2179cb5985a135e34173b3b9
[ "MIT" ]
null
null
null
src/web_server/session/handle_request/handle_request.hpp
X-rays5/web_server
c14e2c8e6e53797d2179cb5985a135e34173b3b9
[ "MIT" ]
null
null
null
// // Created by X-ray on 5/30/2021. // #pragma once #include <utility> #include <iostream> #include <memory> #include <boost/beast.hpp> #include "../../utility/mime.hpp" #include "../../utility/path_cat.hpp" #include "response_builder.hpp" namespace web_server { namespace session { namespace handle_request { namespace beast = boost::beast; namespace http = beast::http; struct request { http::verb method; std::string url; std::map<std::string, std::string> parameters; http::header<true, http::basic_fields<std::allocator<char>>> headers; }; std::string ErrorResponse(std::string title, std::string what, int error_code); std::map<std::string, std::string> ParseUrlParameters(std::string url); class handle_tools { public: boost::beast::http::message<false, boost::beast::http::basic_string_body<char>> HandleError(http_status status, std::string error); using error_handler_t = std::function<boost::beast::http::response<boost::beast::http::string_body>(std::string)>; void AddErrorHandler(http_status status, error_handler_t handler); private: std::map<http_status, error_handler_t> error_handlers; }; class handle { public: handle() { RegisterErrorHandlers(); } template<bool isRequest, class Body, class Allocator = std::allocator<char>, class Send> void run(beast::string_view doc_root, http::message<isRequest, Body, Allocator>&& req, Send&& send) { try { request Req{ static_cast<http::verb>(req.method()), std::string(req.target()), ParseUrlParameters(std::string(req.target())), req.base(), }; // Make sure we can handle the method if(Req.method != http::verb::get && Req.method != http::verb::head) return send(tools_.HandleError(http_status::bad_request, "Unknown HTTP-method")); // Request path must be absolute and not contain "..". if(Req.url.empty() || req.target()[0] != '/' || Req.url.find("..") != std::string::npos) return send(tools_.HandleError(http_status::bad_request, "Illegal request-target")); // Build the path to the requested file std::string path = utility::path_cat(doc_root, Req.url); if(Req.url.ends_with('/')) path.append("index.html"); // Attempt to open the file beast::error_code ec; if (path.find('?') != std::string::npos) { path.erase(path.find('?')); } http::file_body::value_type body; body.open(path.c_str(), beast::file_mode::scan, ec); // Handle the case where the file doesn't exist if(ec == beast::errc::no_such_file_or_directory) return send(tools_.HandleError(http_status::not_found, "The requested url was not found: " + std::string(Req.headers["Host"]) +Req.url)); // Handle an unknown error if(ec) return send(tools_.HandleError(http_status::internal_server_error, ec.message())); if (Req.method == http::verb::head) { responsebuilder res(http_status::ok, std::string(utility::mime_type(path))); return send(res.GetStringResponse()); } else if (Req.method == http::verb::get) { responsebuilder res(http_status::ok, std::string(utility::mime_type(path)), body); return send(res.GetFileResponse()); } return send(tools_.HandleError(http_status::internal_server_error, "Request was not handled")); } catch(std::exception &e) { return send(tools_.HandleError(http_status::internal_server_error, e.what())); } } private: handle_tools tools_; private: void RegisterErrorHandlers(); }; } // handle_request } // session } // web_server
45.358491
165
0.501872
X-rays5
c25b59c40d8d20cb19b29cade51afc9201bfb141
1,300
cpp
C++
src/prod/test/LinuxRunAsTest/FabricUnknownBase.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
2,542
2018-03-14T21:56:12.000Z
2019-05-06T01:18:20.000Z
src/prod/test/LinuxRunAsTest/FabricUnknownBase.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
994
2019-05-07T02:39:30.000Z
2022-03-31T13:23:04.000Z
src/prod/test/LinuxRunAsTest/FabricUnknownBase.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
300
2018-03-14T21:57:17.000Z
2019-05-06T20:07:00.000Z
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #include "FabricUnknownBase.h" EXTERN_GUID(IID_IUnknown, 0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); FabricUnknownBase::FabricUnknownBase() : _refCount() { this->AddRef(); } FabricUnknownBase::~FabricUnknownBase() { } HRESULT STDMETHODCALLTYPE FabricUnknownBase::GetAndAddRef( /* [iid_is][out] */ _COM_Outptr_ void __RPC_FAR *__RPC_FAR *ppvObject) { *ppvObject = this; this->AddRef(); return S_OK; } HRESULT STDMETHODCALLTYPE FabricUnknownBase::QueryInterface( /* [in] */ REFIID riid, /* [iid_is][out] */ _COM_Outptr_ void __RPC_FAR *__RPC_FAR *ppvObject) { if (riid == IID_IUnknown) { return this->GetAndAddRef(ppvObject); } return E_NOINTERFACE; } ULONG STDMETHODCALLTYPE FabricUnknownBase::AddRef(void) { return ++_refCount; } ULONG STDMETHODCALLTYPE FabricUnknownBase::Release(void) { auto count = --_refCount; if (count == 0) { delete this; } return count; }
23.636364
102
0.624615
AnthonyM
c25c2a9aaba86ea6c81a5c08f7d9815c52f9a36d
3,917
cpp
C++
tc 160+/Orchard.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
3
2015-05-25T06:24:37.000Z
2016-09-10T07:58:00.000Z
tc 160+/Orchard.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
null
null
null
tc 160+/Orchard.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
5
2015-05-25T06:24:40.000Z
2021-08-19T19:22:29.000Z
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <queue> #include <functional> using namespace std; typedef pair<int, int> PII; struct Entry { PII pos; int len; Entry(PII p, int l): pos(p), len(l) {} }; const int di[] = { -1, 0, 1, 0 }; const int dj[] = { 0, 1, 0, -1 }; bool valid(int i, int j, int m, int n) { return i>=0 && i<m && j>=0 && j<n; } class Orchard { public: vector <int> nextTree(vector <string> orchard) { int best = 0; PII loc = make_pair(-1, -1); const int m(orchard.size()); const int n(orchard[0].size()); for (int i=0; i<m; ++i) for (int j=0; j<n; ++j) if (orchard[i][j]=='-') { vector<vector<bool> > used(m, vector<bool>(n, false)); queue<Entry> q; used[i][j] = true; q.push(Entry(make_pair(i, j), 0)); while (!q.empty()) { const Entry t = q.front(); q.pop(); for (int dir=0; dir<4; ++dir) { const int ii = t.pos.first+di[dir]; const int jj = t.pos.second+dj[dir]; if (valid(ii, jj, m, n) && used[ii][jj]) continue; if (!valid(ii, jj, m, n) || orchard[ii][jj]=='T') { if (t.len+1 > best) { best = t.len+1; loc = make_pair(i, j); } goto kraj; } else { q.push(Entry(make_pair(ii, jj), t.len+1)); used[ii][jj] = true; } } } kraj: ; } vector<int> sol; sol.push_back(loc.first+1); sol.push_back(loc.second+1); return sol; } // BEGIN CUT HERE public: void run_test(int Case) { if ((Case == -1) || (Case == 0)) test_case_0(); if ((Case == -1) || (Case == 1)) test_case_1(); if ((Case == -1) || (Case == 2)) test_case_2(); if ((Case == -1) || (Case == 3)) test_case_3(); } private: template <typename T> string print_array(const vector<T> &V) { ostringstream os; os << "{ "; for (typename vector<T>::const_iterator iter = V.begin(); iter != V.end(); ++iter) os << '\"' << *iter << "\","; os << " }"; return os.str(); } void verify_case(int Case, const vector <int> &Expected, const vector <int> &Received) { cerr << "Test Case #" << Case << "..."; if (Expected == Received) cerr << "PASSED" << endl; else { cerr << "FAILED" << endl; cerr << "\tExpected: " << print_array(Expected) << endl; cerr << "\tReceived: " << print_array(Received) << endl; } } void test_case_0() { string Arr0[] = { "----" , "T---" , "----" , "----" }; vector <string> Arg0(Arr0, Arr0 + (sizeof(Arr0) / sizeof(Arr0[0]))); int Arr1[] = { 2, 3 }; vector <int> Arg1(Arr1, Arr1 + (sizeof(Arr1) / sizeof(Arr1[0]))); verify_case(0, Arg1, nextTree(Arg0)); } void test_case_1() { string Arr0[] = {"---T--","------","------","----T-","------","------"}; vector <string> Arg0(Arr0, Arr0 + (sizeof(Arr0) / sizeof(Arr0[0]))); int Arr1[] = { 3, 3 }; vector <int> Arg1(Arr1, Arr1 + (sizeof(Arr1) / sizeof(Arr1[0]))); verify_case(1, Arg1, nextTree(Arg0)); } void test_case_2() { string Arr0[] = {"------------","------------","------------","------------", "------------","------------","------------","------------", "------------","------------","------------","------------"}; vector <string> Arg0(Arr0, Arr0 + (sizeof(Arr0) / sizeof(Arr0[0]))); int Arr1[] = { 6, 6 }; vector <int> Arg1(Arr1, Arr1 + (sizeof(Arr1) / sizeof(Arr1[0]))); verify_case(2, Arg1, nextTree(Arg0)); } void test_case_3() { string Arr0[] = {"-T----T", "T---T--", "-----TT", "---TT--", "T-----T", "-------", "T-T--T-"}; vector <string> Arg0(Arr0, Arr0 + (sizeof(Arr0) / sizeof(Arr0[0]))); int Arr1[] = { 2, 3 }; vector <int> Arg1(Arr1, Arr1 + (sizeof(Arr1) / sizeof(Arr1[0]))); verify_case(3, Arg1, nextTree(Arg0)); } // END CUT HERE }; // BEGIN CUT HERE int main() { Orchard ___test; ___test.run_test(-1); } // END CUT HERE
38.029126
333
0.503447
ibudiselic
c262bca714dad9e0b60929913636e2e68ebe3e48
93
cpp
C++
GameEngine/AudioEngine.cpp
BenMarshall98/Game-Engine-Uni
cb2e0a75953db0960e3d58a054eb9a6e213ae12a
[ "MIT" ]
null
null
null
GameEngine/AudioEngine.cpp
BenMarshall98/Game-Engine-Uni
cb2e0a75953db0960e3d58a054eb9a6e213ae12a
[ "MIT" ]
null
null
null
GameEngine/AudioEngine.cpp
BenMarshall98/Game-Engine-Uni
cb2e0a75953db0960e3d58a054eb9a6e213ae12a
[ "MIT" ]
null
null
null
#include "AudioEngine.h" AudioEngine::AudioEngine() { } AudioEngine::~AudioEngine() { }
7.153846
27
0.677419
BenMarshall98
c263bfb04b139469452d16ffed84546b5da382e9
931
cpp
C++
lsteamclient/cb_converters_141.cpp
neuroradiology/Proton
5aed286761234b1b362471ca5cf80d25f64cb719
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-07-05T06:40:08.000Z
2021-07-05T06:40:08.000Z
lsteamclient/cb_converters_141.cpp
neuroradiology/Proton
5aed286761234b1b362471ca5cf80d25f64cb719
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
lsteamclient/cb_converters_141.cpp
neuroradiology/Proton
5aed286761234b1b362471ca5cf80d25f64cb719
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
#include "steamclient_private.h" #include "steam_defs.h" #include "steamworks_sdk_141/steam_api.h" #include "steamworks_sdk_141/isteamgameserver.h" #include "steamworks_sdk_141/isteamgameserverstats.h" #include "steamworks_sdk_141/isteamgamecoordinator.h" extern "C" { struct winSteamUnifiedMessagesSendMethodResult_t_24 { ClientUnifiedMessageHandle m_hHandle; uint64 m_unContext; EResult m_eResult; uint32 m_unResponseSize; } __attribute__ ((ms_struct)); void cb_SteamUnifiedMessagesSendMethodResult_t_24(void *l, void *w) { SteamUnifiedMessagesSendMethodResult_t *lin = (SteamUnifiedMessagesSendMethodResult_t *)l; struct winSteamUnifiedMessagesSendMethodResult_t_24 *win = (struct winSteamUnifiedMessagesSendMethodResult_t_24 *)w; win->m_hHandle = lin->m_hHandle; win->m_unContext = lin->m_unContext; win->m_eResult = lin->m_eResult; win->m_unResponseSize = lin->m_unResponseSize; } }
35.807692
120
0.795918
neuroradiology
c266616a3d542e0e5896238f95e56522f30e576d
5,077
hpp
C++
modules/core/include/perf_manager.hpp
CambriconKnight/CNStream
555c4a54f4766cc7b6b230bd822c6689869fbce0
[ "Apache-2.0" ]
1
2020-04-22T08:36:51.000Z
2020-04-22T08:36:51.000Z
modules/core/include/perf_manager.hpp
CambriconKnight/CNStream
555c4a54f4766cc7b6b230bd822c6689869fbce0
[ "Apache-2.0" ]
null
null
null
modules/core/include/perf_manager.hpp
CambriconKnight/CNStream
555c4a54f4766cc7b6b230bd822c6689869fbce0
[ "Apache-2.0" ]
null
null
null
/************************************************************************* * Copyright (C) [2019] by Cambricon, Inc. 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 * * 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. *************************************************************************/ #ifndef MODULES_CORE_INCLUDE_PERF_MANAGER_HPP_ #define MODULES_CORE_INCLUDE_PERF_MANAGER_HPP_ #include <stdlib.h> #include <atomic> #include <memory> #include <string> #include <thread> #include <vector> #include <unordered_map> #include <unordered_set> #include <utility> #include "threadsafe_queue.hpp" namespace cnstream { class Sqlite; class PerfCalculator; class PerfStats; /** * @brief The basic data structure of measuring performance. * * Record PerfInfo at start time point and end time point. */ struct PerfInfo { bool is_finished; /// If it is true means start time, otherwise end time. std::string perf_type; /// perf type std::string module_name; /// module name int64_t pts; /// pts of each data frame size_t timestamp; /// timestamp }; // struct PerfInfo /** * @brief PerfManager class * * It could record PerfInfo and calculate modules and pipeline performance statistics. */ class PerfManager { public: /** * @brief Constructor of PerfManager. */ PerfManager() { } /** * @brief Destructor of PerfManager. */ ~PerfManager(); /** * @brief Stops to record PerfInfo. * * @return Void. */ void Stop(); /** * @brief Inits PerfManager. * * Create database and tables, create PerfCalculator, and start thread function, which is used to insert PerfInfo to database. * * @param db_name The name of the database. * @param module_names All module names of the pipeline. * @param start_node Start node module name of the pipeline. * @param end_nodes All end node module names of the pipeline. * * @return Returns true if PerfManager inits successfully, otherwise returns false. */ bool Init(std::string db_name, std::vector<std::string> module_names, std::string start_node, std::vector<std::string> end_nodes); /** * @brief Records PerfInfo. * * Create timestamp and set it to PerfInfo. And then insert it to database. * * @param info PerfInfo. * * @return Returns true if the info is recorded successfully, otherwise returns false. */ bool RecordPerfInfo(PerfInfo info); /** * @brief Registers perf type. * * @param type perf type. * * @return Returns true if type is registered successfully, otherwise returns false. */ bool RegisterPerfType(std::string type); /** * @brief Begins sqlite3 event. * * @return Void. */ void SqlBeginTrans(); /** * @brief Commits sqlite3 event. * * @return Void. */ void SqlCommitTrans(); /** * @brief Calculates Performance statistics of modules. * * @param perf_type perf type. * @param module_name module name. * * @return Returns performance statistics. */ PerfStats CalculatePerfStats(std::string perf_type, std::string module_name); /** * @brief Calculates Performance statistics of pipeline. * * @param perf_type perf type. * * @return Returns performance statistics of all end nodes of pipeline. */ std::vector<std::pair<std::string, PerfStats>> CalculatePipelinePerfStats(std::string perf_type); private: #ifdef UNIT_TEST public: // NOLINT #endif std::vector<std::string> GetKeys(const std::vector<std::string>& module_names); void PopInfoFromQueue(); void InsertInfoToDb(const PerfInfo& info); void CreatePerfCalculator(std::string perf_type); bool PrepareDbFileDir(std::string file_dir); bool CreateDir(std::string dir); std::shared_ptr<PerfCalculator> GetCalculator(std::string perf_type, std::string module_name); bool is_initialized_ = false; std::string start_node_; std::vector<std::string> end_nodes_; std::vector<std::string> module_names_; std::unordered_set<std::string> perf_type_; std::shared_ptr<Sqlite> sql_ = nullptr; std::unordered_map<std::string, std::shared_ptr<PerfCalculator>> calculator_map_; ThreadSafeQueue<PerfInfo> queue_; std::thread thread_; std::atomic<bool> running_{false}; }; // PerfManager } // namespace cnstream #endif // MODULES_CORE_INCLUDE_PERF_MANAGER_HPP_
30.401198
127
0.693717
CambriconKnight
c268b22af2d91e43d4394597ba70a505385f5236
5,305
cpp
C++
spoki/libspoki/src/trace/reader.cpp
inetrg/spoki
599a19366e4cea70e2391471de6f6b745935cddf
[ "MIT" ]
1
2022-02-03T15:35:16.000Z
2022-02-03T15:35:16.000Z
spoki/libspoki/src/trace/reader.cpp
inetrg/spoki
599a19366e4cea70e2391471de6f6b745935cddf
[ "MIT" ]
null
null
null
spoki/libspoki/src/trace/reader.cpp
inetrg/spoki
599a19366e4cea70e2391471de6f6b745935cddf
[ "MIT" ]
null
null
null
/* * This file is part of the CAF spoki driver. * * Copyright (C) 2018-2021 * Authors: Raphael Hiesgen * * All rights reserved. * * Report any bugs, questions or comments to [email protected] * */ #include "spoki/trace/reader.hpp" #include "spoki/atoms.hpp" #include "spoki/collector.hpp" #include "spoki/logger.hpp" #include "spoki/trace/processing.hpp" #include "spoki/trace/reporting.hpp" #include "spoki/trace/state.hpp" namespace spoki::trace { namespace { constexpr auto trace_header = "timestamp,accepted,filtered,captured,errors," "dropped,missing"; } // namespace caf::behavior reader(caf::stateful_actor<reader_state>* self, std::vector<caf::actor> probers) { return reader_with_filter(self, std::move(probers), {}); } caf::behavior reader_with_filter(caf::stateful_actor<reader_state>* self, std::vector<caf::actor> probers, std::unordered_set<caf::ipv4_address> filter) { self->state.ids = 0; self->state.statistics = false; self->state.filter = std::move(filter); self->state.probers = std::move(probers); return { [=](trace_atom, std::string uri, uint32_t threads, size_t batch_size) -> caf::result<success_atom> { auto& s = self->state; auto next_id = s.ids++; auto state = std::make_shared<trace::global>(self->system(), self->state.probers, self, next_id, batch_size, self->state.filter); s.states[next_id] = state; auto p = instance::make_processing_callbacks(trace::start_processing, trace::stop_processing, trace::per_packet); auto r = instance::make_reporting_callbacks(trace::start_reporting, trace::stop_reporting, trace::per_result); auto einst = instance::create(std::move(uri), std::move(p), std::move(r), state, next_id); if (!einst) return caf::make_error(caf::sec::invalid_argument); if (threads == 1) einst->set_static_hasher(); auto started = einst->start(threads); if (!started) return caf::make_error(caf::sec::bad_function_call); s.traces[next_id] = std::move(*einst); return success_atom_v; }, [=](report_atom, uint64_t id, trace::tally t) { auto& s = self->state; // Should halve already stopped by now, just making sure. s.traces[id].join(); s.traces.erase(id); s.states.erase(id); CS_LOG_DEBUG("Processed " << t.total_packets << " packets (" << t.ipv4_packets << " IPv4, " << t.ipv6_packets << " IPv6, " << t.others << " other)"); // Prevent waring without logging. static_cast<void>(t); self->send(self, done_atom_v); }, // Some statistics for testing the whole thing. [=](stats_atom, start_atom, std::string path) { self->send(self->state.stats_handler, done_atom_v); auto id = "stats-" + std::string(self->state.name) + "-" + std::to_string(self->id()) + "-" + caf::to_string(self->node()); self->state.stats_handler = self->system().spawn(collector, std::move(path), std::string{"trace"}, std::string{"stats"}, std::string{trace_header}, static_cast<uint32_t>(self->id())); if (!self->state.statistics) { self->send(self, stats_atom_v); self->state.statistics = true; } }, [=](stats_atom, start_atom) { if (!self->state.statistics) { self->send(self, stats_atom_v); self->state.statistics = true; } }, [=](stats_atom, stop_atom) { self->state.statistics = false; self->send(self->state.stats_handler, done_atom_v); }, [=](stats_atom) { auto& s = self->state; if (s.traces.empty()) { aout(self) << "no traces to collect statistics from\n"; return; } if (self->state.statistics) { self->delayed_send(self, std::chrono::seconds(1), stats_atom_v); } auto& tr = s.traces.begin()->second; tr.update_statistics(); auto acc = tr.get_accepted(); auto err = tr.get_errors(); auto dro = tr.get_dropped(); std::string str = std::to_string(self->id()); // str += "|"; // str += std::to_string(make_timestamp().time_since_epoch().count()); str += " | a: "; str += std::to_string(acc - s.accepted); str += ", e: "; str += std::to_string(err - s.errors); str += ", d: "; str += std::to_string(dro - s.dropped); str += "\n"; aout(self) << str; s.accepted = acc; s.errors = err; s.dropped = dro; }, [=](done_atom) { for (auto& r : self->state.traces) r.second.pause(); self->quit(); }, }; } const char* reader_state::name = "reader"; } // namespace spoki::trace
35.604027
80
0.540245
inetrg
c26e526cb28c62e9e57a96405ae6c167c3e28949
1,768
cpp
C++
Code/BBearEditor/Engine/Render/RayTracing/BBRayTracker.cpp
xiaoxianrouzhiyou/BBearEditor
0f1b779d87c297661f9a1e66d0613df43f5fe46b
[ "MIT" ]
26
2021-06-30T02:19:30.000Z
2021-07-23T08:38:46.000Z
Code/BBearEditor/Engine/RayTracing/BBRayTracker.cpp
lishangdian/BBearEditor-2.0
1f4b463ef756ed36cc15d10abae822efc400c4d7
[ "MIT" ]
null
null
null
Code/BBearEditor/Engine/RayTracing/BBRayTracker.cpp
lishangdian/BBearEditor-2.0
1f4b463ef756ed36cc15d10abae822efc400c4d7
[ "MIT" ]
3
2021-09-01T08:19:30.000Z
2021-12-28T19:06:40.000Z
#include "BBRayTracker.h" #include "Utils/BBUtils.h" #include "Scene/BBScene.h" #include "Scene/BBSceneManager.h" #include "BBScreenSpaceRayTracker.h" #include "Base/BBGameObject.h" void BBRayTracker::enable(int nAlgorithmIndex, bool bEnable) { BBScene *pScene = BBSceneManager::getScene(); if (bEnable) { switch (nAlgorithmIndex) { case 0: BBScreenSpaceRayTracker::open(pScene); break; default: break; } } else { pScene->setRenderingFunc(&BBScene::defaultRendering); // objects go back original materials QList<BBGameObject*> objects = pScene->getModels(); for (QList<BBGameObject*>::Iterator itr = objects.begin(); itr != objects.end(); itr++) { BBGameObject *pObject = *itr; pObject->restoreMaterial(); } } } //void BBRayTracker::open() //{ // // Stop refresh per frame // BBSceneManager::getEditViewOpenGLWidget()->stopRenderThread(); // m_pScene->setRenderingFunc(&BBScene::rayTracingRendering); // // open thread // m_pRenderThread = new QThread(this); // QObject::connect(m_pRenderThread, SIGNAL(started()), this, SLOT(render())); // m_pRenderThread->start(); //} //void BBRayTracker::close() //{ // BBSceneManager::getEditViewOpenGLWidget()->startRenderThread(); // m_pScene->setRenderingFunc(&BBScene::defaultRendering); // m_pRenderThread->quit(); // m_pRenderThread->wait(); // BB_SAFE_DELETE(m_pRenderThread); //} //QColor BBRayTracker::getPixelColor(int x, int y) //{ // QColor color; // BBRay inputRay = m_pScene->getCamera()->createRayFromScreen(x, y); // m_pScene->pickObjectInModels(inputRay, false); // return color; //}
25.257143
95
0.639706
xiaoxianrouzhiyou
c2707f3719d52bc7279cb7503fdbc4fc00891f33
3,639
cpp
C++
dmserializers/importsfmv4.cpp
DannyParker0001/Kisak-Strike
99ed85927336fe3aff2efd9b9382b2b32eb1d05d
[ "Unlicense" ]
252
2020-12-16T15:34:43.000Z
2022-03-31T23:21:37.000Z
dmserializers/importsfmv4.cpp
DannyParker0001/Kisak-Strike
99ed85927336fe3aff2efd9b9382b2b32eb1d05d
[ "Unlicense" ]
23
2020-12-20T18:02:54.000Z
2022-03-28T16:58:32.000Z
dmserializers/importsfmv4.cpp
DannyParker0001/Kisak-Strike
99ed85927336fe3aff2efd9b9382b2b32eb1d05d
[ "Unlicense" ]
42
2020-12-19T04:32:33.000Z
2022-03-30T06:00:28.000Z
//====== Copyright � 1996-2006, Valve Corporation, All rights reserved. ======= // // Purpose: // //============================================================================= #include "dmserializers.h" #include "dmebaseimporter.h" #include "datamodel/idatamodel.h" #include "datamodel/dmelement.h" #include "datamodel/dmattributevar.h" #include "tier1/keyvalues.h" #include "tier1/utlbuffer.h" #include "tier1/utlmap.h" #include <limits.h> //----------------------------------------------------------------------------- // Format converter //----------------------------------------------------------------------------- class CImportSFMV4 : public CSFMBaseImporter { typedef CSFMBaseImporter BaseClass; public: CImportSFMV4( char const *formatName, char const *nextFormatName ); private: virtual bool DoFixup( CDmElement *pSourceRoot ); void FixupElement( CDmElement *pElement ); // Fixes up all elements void BuildList( CDmElement *pElement, CUtlRBTree< CDmElement *, int >& list ); }; //----------------------------------------------------------------------------- // Singleton instance //----------------------------------------------------------------------------- static CImportSFMV4 s_ImportSFMV4( "sfm_v4", "sfm_v5" ); void InstallSFMV4Importer( IDataModel *pFactory ) { pFactory->AddLegacyUpdater( &s_ImportSFMV4 ); } //----------------------------------------------------------------------------- // Constructor //----------------------------------------------------------------------------- CImportSFMV4::CImportSFMV4( char const *formatName, char const *nextFormatName ) : BaseClass( formatName, nextFormatName ) { } // Fixes up all elements //----------------------------------------------------------------------------- void CImportSFMV4::FixupElement( CDmElement *pElement ) { if ( !pElement ) return; const char *pType = pElement->GetTypeString(); if ( !V_stricmp( pType, "DmeCamera" ) ) { CDmAttribute *pOldToneMapScaleAttr = pElement->GetAttribute( "toneMapScale" ); float fNewBloomScale = pOldToneMapScaleAttr->GetValue<float>( ); Assert( !pElement->HasAttribute("bloomScale") ); CDmAttribute *pNewBloomScaleAttr = pElement->AddAttribute( "bloomScale", AT_FLOAT ); pNewBloomScaleAttr->SetValue( fNewBloomScale ); pOldToneMapScaleAttr->SetValue( 1.0f ); } } // Fixes up all elements //----------------------------------------------------------------------------- void CImportSFMV4::BuildList( CDmElement *pElement, CUtlRBTree< CDmElement *, int >& list ) { if ( !pElement ) return; if ( list.Find( pElement ) != list.InvalidIndex() ) return; list.Insert( pElement ); // Descend to bottom of tree, then do fixup coming back up the tree for ( CDmAttribute *pAttribute = pElement->FirstAttribute(); pAttribute; pAttribute = pAttribute->NextAttribute() ) { if ( pAttribute->GetType() == AT_ELEMENT ) { CDmElement *pElement = pAttribute->GetValueElement<CDmElement>( ); BuildList( pElement, list ); continue; } if ( pAttribute->GetType() == AT_ELEMENT_ARRAY ) { CDmrElementArray<> array( pAttribute ); int nCount = array.Count(); for ( int i = 0; i < nCount; ++i ) { CDmElement *pChild = array[ i ]; BuildList( pChild, list ); } continue; } } } bool CImportSFMV4::DoFixup( CDmElement *pSourceRoot ) { CUtlRBTree< CDmElement *, int > fixlist( 0, 0, DefLessFunc( CDmElement * ) ); BuildList( pSourceRoot, fixlist ); for ( int i = fixlist.FirstInorder(); i != fixlist.InvalidIndex() ; i = fixlist.NextInorder( i ) ) { // Search and replace in the entire tree! FixupElement( fixlist[ i ] ); } return true; }
29.112
116
0.565815
DannyParker0001
c27e211f722049acc93ae5e293433f2fb5ceb56d
667
hpp
C++
tests/helper/compare.hpp
rsjtaylor/libear
40a4000296190c3f91eba79e5b92141e368bd72a
[ "Apache-2.0" ]
14
2019-07-30T17:58:00.000Z
2022-02-15T15:33:36.000Z
tests/helper/compare.hpp
rsjtaylor/libear
40a4000296190c3f91eba79e5b92141e368bd72a
[ "Apache-2.0" ]
27
2019-07-30T18:01:58.000Z
2021-12-14T10:24:52.000Z
tests/helper/compare.hpp
rsjtaylor/libear
40a4000296190c3f91eba79e5b92141e368bd72a
[ "Apache-2.0" ]
5
2019-07-30T15:12:02.000Z
2020-09-14T16:22:43.000Z
#pragma once #include "ear/common_types.hpp" namespace ear { inline bool operator==(const CartesianPosition& a, const CartesianPosition& b) { return a.X == b.X && a.Y == b.Y && a.Z == b.Z; } inline bool operator!=(const CartesianPosition& a, const CartesianPosition& b) { return !(a == b); } inline bool operator==(const PolarPosition& a, const PolarPosition& b) { return a.azimuth == b.azimuth && a.elevation == b.elevation && a.distance == b.distance; } inline bool operator!=(const PolarPosition& a, const PolarPosition& b) { return !(a == b); } }; // namespace ear
27.791667
74
0.589205
rsjtaylor
c281ba89e3604dbff2de3cb053699968c26adb83
42,921
inl
C++
volume/Unified2/src/Task/ElasticSystem/ElasticSystemCommon.inl
llmontoryxd/mipt_diploma
7d7d65cd619fe983736773f95ebb50b470adbed2
[ "MIT" ]
null
null
null
volume/Unified2/src/Task/ElasticSystem/ElasticSystemCommon.inl
llmontoryxd/mipt_diploma
7d7d65cd619fe983736773f95ebb50b470adbed2
[ "MIT" ]
null
null
null
volume/Unified2/src/Task/ElasticSystem/ElasticSystemCommon.inl
llmontoryxd/mipt_diploma
7d7d65cd619fe983736773f95ebb50b470adbed2
[ "MIT" ]
null
null
null
#include "../VolumeMethod/FunctionGetters/BoundaryFunctionGetter.h" template <typename Space> void ElasticSystemCommon<Space>::ValueTypeCommon::SetZeroValues() { std::fill_n(values, dimsCount, Scalar(0.0)); } template <> Space2::Vector ElasticSystemCommon<Space2>::ValueTypeCommon::GetVelocity() const { return Space2::Vector(values[3], values[4]); } template <> Space3::Vector ElasticSystemCommon<Space3>::ValueTypeCommon::GetVelocity() const { return Space3::Vector(values[6], values[7], values[8]); } template <> void ElasticSystemCommon<Space2>::ValueTypeCommon::SetVelocity(const Vector& velocity) { values[3] = velocity.x; values[4] = velocity.y; } template <> void ElasticSystemCommon<Space3>::ValueTypeCommon::SetVelocity(const Vector& velocity) { values[6] = velocity.x; values[7] = velocity.y; values[8] = velocity.z; } template <> void ElasticSystemCommon<Space2>::ValueTypeCommon::SetTension(const Tensor& tension) { values[0] = tension.xx; values[1] = tension.yy; values[2] = tension.xy; } template <> void ElasticSystemCommon<Space3>::ValueTypeCommon::SetTension(const Tensor& tension) { values[0] = tension.xx; values[1] = tension.yy; values[2] = tension.zz; values[3] = tension.xy; values[4] = tension.yz; values[5] = tension.xz; } template <typename Space> typename Space::Scalar ElasticSystemCommon<Space>::ValueTypeCommon::GetXX() const { return values[0]; } template <typename Space> typename Space::Scalar ElasticSystemCommon<Space>::ValueTypeCommon::GetYY() const { return values[1]; } template <> Space2::Scalar ElasticSystemCommon<Space2>::ValueTypeCommon::GetXY() const { return values[2]; } template <> Space3::Scalar ElasticSystemCommon<Space3>::ValueTypeCommon::GetXY() const { return values[3]; } template <> void ElasticSystemCommon<Space2>::ValueTypeCommon::MakeDimension( Scalar tensionDimensionlessMult, Scalar velocityDimensionlessMult) { for (IndexType valueIndex = 0; valueIndex < dimsCount; ++valueIndex) { switch (valueIndex) { case 0: case 1: case 2: values[valueIndex] *= tensionDimensionlessMult; break; case 3: case 4: values[valueIndex] *= velocityDimensionlessMult; break; default: assert(0); break; } } } template <> void ElasticSystemCommon<Space3>::ValueTypeCommon::MakeDimension( Scalar tensionDimensionlessMult, Scalar velocityDimensionlessMult) { for (IndexType valueIndex = 0; valueIndex < dimsCount; ++valueIndex) { switch (valueIndex) { case 0: case 1: case 2: case 3: case 4: case 5: values[valueIndex] *= tensionDimensionlessMult; break; case 6: case 7: case 8: values[valueIndex] *= velocityDimensionlessMult; break; default: assert(0); break; } } } template <> void ElasticSystemCommon<Space2>::BuildXMatrix(const MediumParameters& mediumParameters, MatrixXDim& xMatrix) { xMatrix << mediumParameters.flowVelocity.x, 0, 0, -(mediumParameters.lambda + Scalar(2.0) * mediumParameters.mju), 0, 0, mediumParameters.flowVelocity.x, 0, -mediumParameters.lambda, 0, 0, 0, mediumParameters.flowVelocity.x, 0, -mediumParameters.mju, -mediumParameters.invRho, 0, 0, mediumParameters.flowVelocity.x, 0, 0, 0, -mediumParameters.invRho, 0, mediumParameters.flowVelocity.x; } template <> void ElasticSystemCommon<Space3>::BuildXMatrix(const MediumParameters& mediumParameters, MatrixXDim& xMatrix) { xMatrix << mediumParameters.flowVelocity.x, 0, 0, 0, 0, 0, -(mediumParameters.lambda + Scalar(2.0) * mediumParameters.mju), 0, 0, 0, mediumParameters.flowVelocity.x, 0, 0, 0, 0, -mediumParameters.lambda , 0, 0, 0, 0, mediumParameters.flowVelocity.x, 0, 0, 0, -mediumParameters.lambda , 0, 0, 0, 0, 0, mediumParameters.flowVelocity.x, 0, 0, 0, -mediumParameters.mju, 0, 0, 0, 0, 0, mediumParameters.flowVelocity.x, 0, 0, 0, 0, 0, 0, 0, 0, 0, mediumParameters.flowVelocity.x, 0, 0, -mediumParameters.mju, -mediumParameters.invRho, 0, 0, 0, 0, 0, mediumParameters.flowVelocity.x, 0, 0, 0, 0, 0, -mediumParameters.invRho, 0, 0, 0, mediumParameters.flowVelocity.x, 0, 0, 0, 0, 0, 0, -mediumParameters.invRho, 0, 0, mediumParameters.flowVelocity.x; } template <> void ElasticSystemCommon<Space2>::BuildYMatrix(const MediumParameters& mediumParameters, MatrixXDim& yMatrix) { yMatrix << mediumParameters.flowVelocity.y, 0, 0, 0, -mediumParameters.lambda, 0, mediumParameters.flowVelocity.y, 0, 0, -(mediumParameters.lambda + Scalar(2.0) * mediumParameters.mju), 0, 0, mediumParameters.flowVelocity.y, -mediumParameters.mju, 0, 0, 0, -mediumParameters.invRho, mediumParameters.flowVelocity.y, 0, 0, -mediumParameters.invRho, 0, 0, mediumParameters.flowVelocity.y; } template <> void ElasticSystemCommon<Space3>::BuildYMatrix(const MediumParameters& mediumParameters, MatrixXDim& yMatrix) { yMatrix << mediumParameters.flowVelocity.y, 0, 0, 0, 0, 0, 0, -mediumParameters.lambda , 0, 0, mediumParameters.flowVelocity.y, 0, 0, 0, 0, 0, -(mediumParameters.lambda + Scalar(2.0) * mediumParameters.mju), 0, 0, 0, mediumParameters.flowVelocity.y, 0, 0, 0, 0, -mediumParameters.lambda , 0, 0, 0, 0, mediumParameters.flowVelocity.y, 0, 0, -mediumParameters.mju, 0, 0, 0, 0, 0, 0, mediumParameters.flowVelocity.y, 0, 0, 0, -mediumParameters.mju, 0, 0, 0, 0, 0, mediumParameters.flowVelocity.y, 0, 0, 0, 0, 0, 0, -mediumParameters.invRho, 0, 0, mediumParameters.flowVelocity.y, 0, 0, 0, -mediumParameters.invRho, 0, 0, 0, 0, 0, mediumParameters.flowVelocity.y, 0, 0, 0, 0, 0, -mediumParameters.invRho, 0, 0, 0, mediumParameters.flowVelocity.y; } template <> void ElasticSystemCommon<Space2>::BuildRMatrix( const MediumParameters& interiorMediumParameters, const MediumParameters& exteriorMediumParameters, MatrixXDim& rMatrix) { rMatrix << interiorMediumParameters.lambda + 2 * interiorMediumParameters.mju, 0, 0, 0, exteriorMediumParameters.lambda + 2 * exteriorMediumParameters.mju, interiorMediumParameters.lambda , 0, 1, 0, exteriorMediumParameters.lambda , 0, interiorMediumParameters.mju, 0, exteriorMediumParameters.mju, 0, interiorMediumParameters.GetPSpeed(), 0, 0, 0, -exteriorMediumParameters.GetPSpeed(), 0, interiorMediumParameters.GetSSpeed(), 0, -exteriorMediumParameters.GetSSpeed(), 0; } template <> void ElasticSystemCommon<Space3>::BuildRMatrix( const MediumParameters& interiorMediumParameters, const MediumParameters& exteriorMediumParameters, MatrixXDim& rMatrix) { rMatrix << interiorMediumParameters.lambda + 2 * interiorMediumParameters.mju, 0, 0, 0, 0, 0, 0, 0, exteriorMediumParameters.lambda + 2 * exteriorMediumParameters.mju, interiorMediumParameters.lambda , 0, 0, 0, 1, 0, 0, 0, exteriorMediumParameters.lambda , interiorMediumParameters.lambda , 0, 0, 0, 0, 1, 0, 0, exteriorMediumParameters.lambda , 0, interiorMediumParameters.mju, 0, 0, 0, 0, 0, exteriorMediumParameters.mju, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, interiorMediumParameters.mju, 0, 0, 0, exteriorMediumParameters.mju, 0, 0, interiorMediumParameters.GetPSpeed(), 0, 0, 0, 0, 0, 0, 0, -exteriorMediumParameters.GetPSpeed(), 0, interiorMediumParameters.GetSSpeed(), 0, 0, 0, 0, 0, -exteriorMediumParameters.GetSSpeed(), 0, 0, 0, interiorMediumParameters.GetSSpeed(), 0, 0, 0, -exteriorMediumParameters.GetSSpeed(), 0, 0; } template <> void ElasticSystemCommon<Space2>::BuildXnAuxMatrix( const MediumParameters& interiorMediumParameters, const MediumParameters& exteriorMediumParameters, MatrixXDim& xnAuxMatrix) { /* Eigen::Matrix<Scalar, dimsCount, dimsCount> rMatrix; BuildRMatrix(interiorMediumParameters, exteriorMediumParameters, rMatrix); Eigen::Matrix<Scalar, 1, dimsCount> lambdaMatrix; lambdaMatrix << interiorMediumParameters.GetPSpeed(), interiorMediumParameters.GetSSpeed(), 0, 0, 0; xnAuxMatrix.noalias() = rMatrix * lambdaMatrix.asDiagonal() * rMatrix.inverse(); */ Scalar cpInt = interiorMediumParameters.GetPSpeed(); Scalar cpExt = exteriorMediumParameters.GetPSpeed(); Scalar csInt = interiorMediumParameters.GetSSpeed(); Scalar csExt = exteriorMediumParameters.GetSSpeed(); Scalar rhoInt = 1 / interiorMediumParameters.invRho; Scalar rhoExt = 1 / exteriorMediumParameters.invRho; Scalar zpInt = cpInt * rhoInt; Scalar zsInt = csInt * rhoInt; Scalar zpExt = cpExt * rhoExt; Scalar zsExt = csExt * rhoExt; Scalar coeffP = 1 / (zpInt + zpExt); Scalar coeffS = Scalar(1.0) / (rhoInt + rhoExt); if (zsInt + zsExt > std::numeric_limits<Scalar>::epsilon()) { coeffS = csInt / (zsInt + zsExt); } xnAuxMatrix << coeffP * zpInt * cpInt, 0, 0, coeffP * zpInt * zpExt * cpInt, 0, coeffP * interiorMediumParameters.lambda, 0, 0, coeffP * interiorMediumParameters.lambda * zpExt, 0, 0, 0, coeffS * zsInt, 0, coeffS * zsInt * zsExt, coeffP * cpInt, 0, 0, coeffP * cpInt * zpExt, 0, 0, 0, coeffS, 0, coeffS * zsExt; } template <> void ElasticSystemCommon<Space3>::BuildXnAuxMatrix( const MediumParameters& interiorMediumParameters, const MediumParameters& exteriorMediumParameters, MatrixXDim& xnAuxMatrix) { /* Eigen::Matrix<Scalar, dimsCount, dimsCount> rMatrix; BuildRMatrix(interiorMediumParameters, exteriorMediumParameters, rMatrix); Eigen::Matrix<Scalar, 1, dimsCount> lambdaMatrix; lambdaMatrix << interiorMediumParameters.GetPSpeed(), interiorMediumParameters.GetSSpeed(), interiorMediumParameters.GetSSpeed(), 0, 0, 0, 0, 0, 0; xnAuxMatrix.noalias() = rMatrix * lambdaMatrix.asDiagonal() * rMatrix.inverse(); */ Scalar cpInt = interiorMediumParameters.GetPSpeed(); Scalar cpExt = exteriorMediumParameters.GetPSpeed(); Scalar csInt = interiorMediumParameters.GetSSpeed(); Scalar csExt = exteriorMediumParameters.GetSSpeed(); Scalar rhoInt = 1 / interiorMediumParameters.invRho; Scalar rhoExt = 1 / exteriorMediumParameters.invRho; Scalar zpInt = cpInt * rhoInt; Scalar zsInt = csInt * rhoInt; Scalar zpExt = cpExt * rhoExt; Scalar zsExt = csExt * rhoExt; Scalar coeffP = 1 / (zpInt + zpExt); Scalar coeffS = Scalar(1.0) / (rhoInt + rhoExt); if (zsInt + zsExt > std::numeric_limits<Scalar>::epsilon()) { coeffS = csInt / (zsInt + zsExt); } xnAuxMatrix << coeffP * zpInt * cpInt, 0, 0, 0, 0, 0, coeffP * zpInt * zpExt * cpInt, 0, 0, coeffP * interiorMediumParameters.lambda, 0, 0, 0, 0, 0, coeffP * zpExt * interiorMediumParameters.lambda, 0, 0, coeffP * interiorMediumParameters.lambda, 0, 0, 0, 0, 0, coeffP * zpExt * interiorMediumParameters.lambda, 0, 0, 0, 0, 0, coeffS * zsInt, 0, 0, 0, coeffS * zsInt * zsExt, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, coeffS * zsInt, 0, 0, coeffS * zsInt * zsExt, coeffP * cpInt, 0, 0, 0, 0, 0, coeffP * zpExt * cpInt, 0, 0, 0, 0, 0, coeffS, 0, 0, 0, coeffS * zsExt, 0, 0, 0, 0, 0, 0, coeffS, 0, 0, coeffS * zsExt; } template <> void ElasticSystemCommon<Space2>::BuildXnInteriorMatrix( const MediumParameters& interiorMediumParameters, const MediumParameters& exteriorMediumParameters, const Vector& edgeNormal, const MatrixXDim& xnAuxMatrix, MatrixXDim& xnInteriorMatrix) { // BuildXnAuxMatrix(interiorMediumParameters, exteriorMediumParameters, xnInteriorMatrix); xnInteriorMatrix = xnAuxMatrix; // XMatrix xnInteriorMatrix(0, 3) -= interiorMediumParameters.lambda + Scalar(2.0) * interiorMediumParameters.mju; xnInteriorMatrix(1, 3) -= interiorMediumParameters.lambda; xnInteriorMatrix(2, 4) -= interiorMediumParameters.mju; xnInteriorMatrix(3, 0) -= interiorMediumParameters.invRho; xnInteriorMatrix(4, 2) -= interiorMediumParameters.invRho; Scalar un = interiorMediumParameters.flowVelocity * edgeNormal; for (int row = 0; row < dimsCount; ++row) { // diagonal elements xnInteriorMatrix(row, row) += (un + fabs(un)) * Scalar(0.5); } } template <> void ElasticSystemCommon<Space3>::BuildXnInteriorMatrix( const MediumParameters& interiorMediumParameters, const MediumParameters& exteriorMediumParameters, const Vector& faceNormal, const MatrixXDim& xnAuxMatrix, MatrixXDim& xnInteriorMatrix) { //BuildXnAuxMatrix(interiorMediumParameters, exteriorMediumParameters, xnInteriorMatrix); xnInteriorMatrix = xnAuxMatrix; // XMatrix xnInteriorMatrix(0, 6) -= interiorMediumParameters.lambda + Scalar(2.0) * interiorMediumParameters.mju; xnInteriorMatrix(1, 6) -= interiorMediumParameters.lambda; xnInteriorMatrix(2, 6) -= interiorMediumParameters.lambda; xnInteriorMatrix(3, 7) -= interiorMediumParameters.mju; xnInteriorMatrix(5, 8) -= interiorMediumParameters.mju; xnInteriorMatrix(6, 0) -= interiorMediumParameters.invRho; xnInteriorMatrix(7, 3) -= interiorMediumParameters.invRho; xnInteriorMatrix(8, 5) -= interiorMediumParameters.invRho; Scalar un = interiorMediumParameters.flowVelocity * faceNormal; for (int row = 0; row < dimsCount; ++row) { // diagonal elements xnInteriorMatrix(row, row) += (un + fabs(un)) * Scalar(0.5); } } template <typename Space> void ElasticSystemCommon<Space>::BuildXnExteriorMatrix( const MediumParameters& interiorMediumParameters, const MediumParameters& exteriorMediumParameters, const Vector& normal, const MatrixXDim& xnAuxMatrix, MatrixXDim& xnExteriorMatrix) { //BuildXnAuxMatrix(interiorMediumParameters, exteriorMediumParameters, xnExteriorMatrix); //xnExteriorMatrix *= Scalar(-1.0); xnExteriorMatrix = -xnAuxMatrix; Scalar un = interiorMediumParameters.flowVelocity * normal; for (int row = 0; row < dimsCount; ++row) { // diagonal elements xnExteriorMatrix(row, row) += (un - fabs(un)) * Scalar(0.5); } } template <> void ElasticSystemCommon<Space2>::BuildBoundaryMatrix(IndexType interactionType, Eigen::Matrix<Scalar, 1, dimsCount>& boundaryMatrix) { IndexType boundaryType = boundaryDescriptions[interactionType].type; Scalar reflectionCoeff = boundaryDescriptions[interactionType].reflectionCoeff; switch(boundaryType) { case BoundaryConditions::Absorb: { boundaryMatrix << 0, 0, 0, 0, 0; } break; case BoundaryConditions::Free: { boundaryMatrix << -reflectionCoeff, reflectionCoeff, -reflectionCoeff, reflectionCoeff, reflectionCoeff; } break; case BoundaryConditions::Fixed: { boundaryMatrix << reflectionCoeff, reflectionCoeff, reflectionCoeff, -reflectionCoeff, -reflectionCoeff; } break; case BoundaryConditions::Symmetry: { boundaryMatrix << Scalar(1.0), Scalar(1.0), -Scalar(1.0), // sigma.xy -Scalar(1.0), // v.x Scalar(1.0); } break; case BoundaryConditions::AntiSymmetry: { boundaryMatrix << -Scalar(1.0), // sigma.xx Scalar(1.0), Scalar(1.0), Scalar(1.0), -Scalar(1.0); // v.y } break; default: assert(0); break; } } template <> void ElasticSystemCommon<Space3>::BuildBoundaryMatrix(IndexType interactionType, Eigen::Matrix<Scalar, 1, dimsCount>& boundaryMatrix) { IndexType boundaryType = boundaryDescriptions[interactionType].type; Scalar reflectionCoeff = boundaryDescriptions[interactionType].reflectionCoeff; switch (boundaryType) { case BoundaryConditions::Absorb: { boundaryMatrix << 0, 0, 0, 0, 0, 0, 0, 0, 0; } break; case BoundaryConditions::Free: { boundaryMatrix << -reflectionCoeff, // sigma.xx reflectionCoeff, reflectionCoeff, -reflectionCoeff, // sigma.xy reflectionCoeff, -reflectionCoeff, // sigma.xz reflectionCoeff, reflectionCoeff, reflectionCoeff; } break; case BoundaryConditions::Fixed: { boundaryMatrix << reflectionCoeff, reflectionCoeff, reflectionCoeff, reflectionCoeff, reflectionCoeff, reflectionCoeff, -reflectionCoeff, // v.x -reflectionCoeff, // v.y -reflectionCoeff; // v.z } break; case BoundaryConditions::Symmetry: { boundaryMatrix << reflectionCoeff, reflectionCoeff, reflectionCoeff, -reflectionCoeff, // sigma xy -reflectionCoeff, // sigma yz -reflectionCoeff, // sigma xz -reflectionCoeff, // v.x reflectionCoeff, reflectionCoeff; } break; case BoundaryConditions::AntiSymmetry: { boundaryMatrix << -reflectionCoeff, // sigma.xx reflectionCoeff, reflectionCoeff, reflectionCoeff, reflectionCoeff, reflectionCoeff, reflectionCoeff, -reflectionCoeff, // v.y -reflectionCoeff; // v.z } break; default: assert(0); break; } } template <> void ElasticSystemCommon<Space2>::BuildContactMatrices(IndexType interactionType, Eigen::Matrix<Scalar, 1, dimsCount>& leftContactMatrix, Eigen::Matrix<Scalar, 1, dimsCount>& rightContactMatrix) { IndexType contactType = contactDescriptions[interactionType].type; switch(contactType) { case ContactConditions::Glue: { leftContactMatrix << 0, 0, 0, 0, 0; rightContactMatrix << 1, 1, 1, 1, 1; } break; case ContactConditions::Glide: { // it`s correct when materials on the both sides of contact are the same leftContactMatrix << 0, 1, -1, 0, 1; rightContactMatrix << 1, 0, 0, 1, 0; } break; case ContactConditions::Friction: { // friction should be computed as a dynamic contact assert(0); } break; } } template <> void ElasticSystemCommon<Space3>::BuildContactMatrices(IndexType interactionType, Eigen::Matrix<Scalar, 1, dimsCount>& leftContactMatrix, Eigen::Matrix<Scalar, 1, dimsCount>& rightContactMatrix) { IndexType contactType = contactDescriptions[interactionType].type; switch (contactType) { case ContactConditions::Glue: { leftContactMatrix << 0, 0, 0, 0, 0, 0, 0, 0, 0; rightContactMatrix << 1, 1, 1, 1, 1, 1, 1, 1, 1; } break; case ContactConditions::Glide: { // TODO leftContactMatrix << 0, 1, 1, -1, -1, -1, 0, 1, 1; rightContactMatrix << 1, 0, 0, 0, 0, 0, 1, 0, 0; } break; case ContactConditions::Friction: { // friction should be computed as a dynamic contact assert(0); } break; default: assert(0); break; } } template<typename Space> void ElasticSystemCommon<Space>::SetAbsorbBoundary(IndexType interactionType) { BoundaryDescription newBoundary; newBoundary.type = BoundaryConditions::Absorb; newBoundary.infoIndex = -1; SetBoundaryDescription(interactionType, newBoundary); } template<typename Space> void ElasticSystemCommon<Space>::SetSymmetryBoundary(IndexType interactionType) { BoundaryDescription newBoundary; newBoundary.type = BoundaryConditions::Symmetry; newBoundary.infoIndex = -1; SetBoundaryDescription(interactionType, newBoundary); } template<typename Space> void ElasticSystemCommon<Space>::SetAntiSymmetryBoundary(IndexType interactionType) { BoundaryDescription newBoundary; newBoundary.type = BoundaryConditions::AntiSymmetry; newBoundary.infoIndex = -1; SetBoundaryDescription(interactionType, newBoundary); } template<typename Space> void ElasticSystemCommon<Space>::SetGlueContact(IndexType interactionType) { ContactDescription newContact; newContact.type = ContactConditions::Glue; newContact.infoIndex = -1; SetContactDescription(interactionType, newContact); } template<typename Space> void ElasticSystemCommon<Space>::SetGlueContact(IndexType interactionType, Scalar maxShearStress, Scalar maxLongitudinalStress, IndexType dynamicBoundaryInteractionType) { ContactDescription newContact; newContact.type = ContactConditions::Glue; newContact.infoIndex = glueContactInfos.size(); SetContactDescription(interactionType, newContact); glueContactInfos.push_back( GlueContactInfo<Space>(maxShearStress, maxLongitudinalStress, dynamicBoundaryInteractionType)); } template<typename Space> void ElasticSystemCommon<Space>::SetFrictionContact(IndexType interactionType, Scalar frictionCoeff, IndexType dynamicBoundaryInteractionType) { ContactDescription newContact; newContact.type = ContactConditions::Friction; newContact.infoIndex = frictionContactInfos.size(); SetContactDescription(interactionType, newContact); frictionContactInfos.push_back(FrictionContactInfo<Space>(frictionCoeff, dynamicBoundaryInteractionType)); } template<typename Space> void ElasticSystemCommon<Space>::SetFrictionContact(IndexType interactionType) { ContactDescription newContact; newContact.type = ContactConditions::Friction; newContact.infoIndex = frictionContactInfos.size(); SetContactDescription(interactionType, newContact); } template<typename Space> void ElasticSystemCommon<Space>::SetGlideContact(IndexType interactionType) { ContactDescription newContact; newContact.type = ContactConditions::Glide; newContact.infoIndex = -1; SetContactDescription(interactionType, newContact); } template<typename Space> typename Space::IndexType ElasticSystemCommon<Space>::GetContactDynamicBoundaryType(IndexType contactInteractionType) const { if(contactInteractionType < contactDescriptions.size() && contactDescriptions[contactInteractionType].type == ContactConditions::Glue && contactDescriptions[contactInteractionType].infoIndex != IndexType(-1)) { IndexType glueInfoIndex = contactDescriptions[contactInteractionType].infoIndex; return glueInfoIndex != IndexType(-1) ? glueContactInfos.at(glueInfoIndex).dynamicBoundaryInteractionType : IndexType(-1); } return IndexType(-1); } template<typename Space> typename Space::IndexType ElasticSystemCommon<Space>::GetBoundaryDynamicContactType(IndexType boundaryInteractionType) const { if(boundaryInteractionType < boundaryDescriptions.size() && boundaryDescriptions[boundaryInteractionType].type == BoundaryConditions::Free && boundaryDescriptions[boundaryInteractionType].infoIndex != IndexType(-1)) { IndexType freeInfoIndex = boundaryDescriptions[boundaryInteractionType].infoIndex; return freeInfoIndex != IndexType(-1) ? freeBoundaryInfos[freeInfoIndex].dynamicContactInteractionType : IndexType(-1); } return IndexType(-1); } template<typename Space> void ElasticSystemCommon<Space>::GetFrictionContactInfo(IndexType interactionType, Scalar &frictionCoeff) { if(contactDescriptions[interactionType].type == ContactConditions::Friction && contactDescriptions[interactionType].infoIndex != IndexType(-1)) { frictionCoeff = frictionContactInfos[contactDescriptions[interactionType].infoIndex].frictionCoeff; return; } assert(0); frictionCoeff = 0; //should never happen. hopefully. } template<typename Space> void ElasticSystemCommon<Space>::GetContactCriticalInfo(IndexType interactionType, Scalar &maxShearStress, Scalar &maxLongitudinalStress) { assert(GetContactDynamicBoundaryType(interactionType) != IndexType(-1)); if(contactDescriptions[interactionType].type == ContactConditions::Glue && contactDescriptions[interactionType].infoIndex != IndexType(-1)) { maxShearStress = glueContactInfos[contactDescriptions[interactionType].infoIndex].maxShearStress; maxLongitudinalStress = glueContactInfos[contactDescriptions[interactionType].infoIndex].maxLongitudinalStress; return; } assert(0); maxShearStress = 0; //should never happen. hopefully. maxLongitudinalStress = 0; } template<typename Space> BoundaryConditions::Types ElasticSystemCommon<Space>::GetBoundaryType(IndexType interactionType) const { return boundaryDescriptions[interactionType].type; } template<typename Space> ContactConditions::Types ElasticSystemCommon<Space>::GetContactType(IndexType interactionType) const { return contactDescriptions[interactionType].type; } template<typename Space> typename ElasticSystemCommon<Space>::SourceFunctorT* ElasticSystemCommon<Space>::GetSourceFunctor() const { return sourceFunctor; } template<typename Space> void ElasticSystemCommon<Space>::SetSourceFunctor(SourceFunctorT* sourceFunctor) { this->sourceFunctor = sourceFunctor; } template<typename Space> void ElasticSystemCommon<Space>::SetPointSources(const std::vector<PointSource<Space>* >& pointSources) { this->pointSources = pointSources; } template<typename Space> typename Space::Scalar ElasticSystemCommon<Space>::GetMaxWaveSpeed(const MediumParameters& mediumParameters) const { return mediumParameters.GetPSpeed(); } template<typename Space> void ElasticSystemCommon<Space>::SetBoundaryDescription(IndexType interactionType, BoundaryDescription boundaryDescription) { if(boundaryDescriptions.size() < interactionType + 1) { boundaryDescriptions.resize(interactionType + 1); } boundaryDescriptions[interactionType] = boundaryDescription; } template<typename Space> void ElasticSystemCommon<Space>::SetContactDescription(IndexType interactionType, ContactDescription contactDescription) { if(contactDescriptions.size() < interactionType + 1) { contactDescriptions.resize(interactionType + 1); } contactDescriptions[interactionType] = contactDescription; } template <typename Space> ElasticSystemCommon<Space>::MediumParameters::MediumParameters(): lambda(Scalar(2.0)), mju(Scalar(1.0)), invRho(Scalar(1.0)), destroyed(false), dimensionless(false), fixed(false) { } template <typename Space> ElasticSystemCommon<Space>::MediumParameters::MediumParameters( Scalar lambda, Scalar mju, Scalar invRho): lambda(lambda), mju(mju), invRho(invRho), destroyed(false), dimensionless(false), fixed(false) { } template <typename Space> void ElasticSystemCommon<Space>::MediumParameters::SetFromVelocities(Scalar pSpeed, Scalar sSpeed, Scalar rho) { mju = Sqr(sSpeed) * rho; lambda = (Sqr(pSpeed) - 2.0 * Sqr(sSpeed)) * rho; invRho = 1 / rho; } template <typename Space> void ElasticSystemCommon<Space>::MediumParameters::SetFromLameParameters(Scalar lambda, Scalar mju, Scalar rho) { this->lambda = lambda; this->mju = mju; invRho = 1 / rho; } template <typename Space> void ElasticSystemCommon<Space>::MediumParameters::SetFromYoungModuleAndNju(Scalar youngModule, Scalar nju, Scalar rho) { this->lambda = nju * youngModule / (1 + nju) / (1 - 2 * nju); this->mju = youngModule / Scalar(2.0) / (1 + nju); invRho = 1 / rho; } template <typename Space> typename Space::Scalar ElasticSystemCommon<Space>::MediumParameters::GetPSpeed() const { return sqrt((lambda + Scalar(2.0) * mju) * invRho); } template <typename Space> typename Space::Scalar ElasticSystemCommon<Space>::MediumParameters::GetSSpeed() const { return sqrt(mju * invRho); } template <typename Space> typename Space::Scalar ElasticSystemCommon<Space>::MediumParameters::GetZp() const { return GetPSpeed() / invRho; } template <typename Space> typename Space::Scalar ElasticSystemCommon<Space>::MediumParameters::GetZs() const { return GetSSpeed() / invRho; } template <typename Space> void ElasticSystemCommon<Space>::MediumParameters::MakeDimensionless( Scalar tensionDimensionlessMult, Scalar velocityDimensionlessMult) { if (!dimensionless) { dimensionless = true; lambda /= tensionDimensionlessMult; mju /= tensionDimensionlessMult; invRho *= tensionDimensionlessMult / Sqr(velocityDimensionlessMult); plasticity.k0 /= tensionDimensionlessMult; flowVelocity /= velocityDimensionlessMult; } } template <typename Space> bool ElasticSystemCommon<Space>::MediumParameters::IsZero() const { bool isZero = true; for (IndexType paramIndex = 0; paramIndex < ParamsCount; ++paramIndex) { if (params[paramIndex] > std::numeric_limits<Scalar>::epsilon()) isZero = false; } return isZero; } template<typename Space> bool ElasticSystemCommon<Space>::IsProperContact(const ValueTypeCommon& value0, const ValueTypeCommon& value1, const Vector& contactNormal) { // return true; Scalar eps = std::numeric_limits<Scalar>::epsilon(); if (value1.GetForce(-contactNormal) * contactNormal - value0.GetForce(contactNormal) * contactNormal > -eps && (value0.GetVelocity() - value1.GetVelocity()) * contactNormal > eps) return true; return false; } template<typename Space> BoundaryInfoFunctor<Space>* ElasticSystemCommon<Space>::GetBoundaryInfoFunctor(IndexType interactionType) { int infoIndex = boundaryDescriptions[interactionType].infoIndex; BoundaryFunctionGetter<Space>* getter = nullptr; switch(boundaryDescriptions[interactionType].type) { case BoundaryConditions::Absorb: { return nullptr; }break; case BoundaryConditions::Free: { assert(infoIndex != -1); return freeBoundaryInfos[infoIndex].boundaryFunctor; }break; case BoundaryConditions::Fixed: { assert(infoIndex != -1); return fixedBoundaryInfos[infoIndex].boundaryFunctor; }break; case BoundaryConditions::Symmetry: { return nullptr; }break; case BoundaryConditions::AntiSymmetry: { return nullptr; }break; default: assert(0); break; } assert(0); //unknown interation type return nullptr; } template<typename Space> void ElasticSystemCommon<Space>::SetFreeBoundary(IndexType interactionType, Scalar tensionDimensionlessMult, Scalar reflectionCoeff, VectorFunctor<Space>* externalForceFunctor, IndexType dynamicContactInteractionType) { BoundaryDescription newBoundary; newBoundary.type = BoundaryConditions::Free; newBoundary.infoIndex = freeBoundaryInfos.size(); newBoundary.reflectionCoeff = reflectionCoeff; SetBoundaryDescription(interactionType, newBoundary); FreeBoundaryInfo<Space> freeInfo; if (externalForceFunctor) freeInfo.boundaryFunctor = externalForceFunctor ? new FreeBoundaryInfoFunctor(externalForceFunctor, tensionDimensionlessMult) : nullptr; freeInfo.dynamicContactInteractionType = dynamicContactInteractionType; freeBoundaryInfos.push_back(freeInfo); } template<typename Space> void ElasticSystemCommon<Space>::SetFixedBoundary(IndexType interactionType, Scalar velocityDimensionlessMult, Scalar reflectionCoeff, VectorFunctor<Space>* externalVelocityFunctor) { BoundaryDescription newBoundary; newBoundary.type = BoundaryConditions::Fixed; newBoundary.infoIndex = fixedBoundaryInfos.size(); newBoundary.reflectionCoeff = reflectionCoeff; SetBoundaryDescription(interactionType, newBoundary); FixedBoundaryInfo<Space> fixedInfo; fixedInfo.boundaryFunctor = externalVelocityFunctor ? new FixedBoundaryInfoFunctor(externalVelocityFunctor, velocityDimensionlessMult) : nullptr; fixedBoundaryInfos.push_back(fixedInfo); } template <> void ElasticSystemCommon<Space2>::FreeBoundaryInfoFunctor::operator()( const Vector& globalPoint, const Vector& externalNormal, const Scalar time, Scalar* values) { Vector externalForce = (*forceFunctor)(globalPoint, externalNormal, time) / tensionDimensionlessMult; Vector force(externalForce * externalNormal, externalNormal ^ externalForce); /*const Scalar frictionCoeff = Scalar(0.002); force.y *= -frictionCoeff * externalForce.GetNorm() * externalNormal;*/ Tensor tension(force.x, force.y, 0); Tensor rotatedTension = tension.RotateAxes(-externalNormal); values[0] = rotatedTension.xx; values[1] = rotatedTension.yy; values[2] = rotatedTension.xy; values[3] = values[4] = 0; } template <> void ElasticSystemCommon<Space3>::FreeBoundaryInfoFunctor::operator()( const Vector& globalPoint, const Vector& externalNormal, const Scalar time, Scalar* values) { Vector externalForce = (*forceFunctor)(globalPoint, externalNormal, time) / tensionDimensionlessMult; Vector tangent0 = (externalNormal ^ externalForce).GetNorm(); Vector tangent1 = (externalNormal ^ tangent0).GetNorm(); Vector force(externalForce * externalNormal, externalForce * tangent0, externalForce * tangent1); Tensor tension(force.x, force.y, force.z, 0, 0, 0); Tensor rotatedTension = tension.RotateAxes(externalNormal, tangent0, tangent1); values[0] = rotatedTension.xx; values[1] = rotatedTension.yy; values[2] = rotatedTension.zz; values[3] = rotatedTension.xy; values[4] = rotatedTension.yz; values[5] = rotatedTension.xz; values[6] = values[7] = values[8] = 0; } template <> void ElasticSystemCommon<Space2>::FixedBoundaryInfoFunctor::SetVelocity( const Vector& externalVelocity, Scalar* values) { values[3] = externalVelocity.x; values[4] = externalVelocity.y; } template <> void ElasticSystemCommon<Space3>::FixedBoundaryInfoFunctor::SetVelocity( const Vector& externalVelocity, Scalar* values) { values[6] = externalVelocity.x; values[7] = externalVelocity.y; values[8] = externalVelocity.z; }
43.223565
332
0.562941
llmontoryxd
c281d6c35e23c92207db648e10807fda97c31be8
847
hpp
C++
c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/Args.hpp
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/Args.hpp
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/Args.hpp
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#pragma once #include <iostream> #include <cassert> #include <string> #include "GetOpt.hpp" using namespace std; //================================================================== // Class Declaration // //================================================================== class Args // (Command Line) Arguments { public: Args(int argc, char **argv); ~Args(); bool is_word_level(); bool is_sentence_level(); bool match_filenames(); private: void process(int argc, char **argv); void show_usage(); void show_version(); void show_default_message(); string program_name; string release_date; string version_number; bool process_words; bool process_sentences; bool process_filenames; };
23.527778
69
0.493506
aimldl
c286523148f437f27158a97f03a733470c12de16
1,286
cpp
C++
binary-tree-level-order-traversal-II/main.cpp
rickytan/LeetCode
7df9a47928552babaf5d2abf1d153bd92d44be09
[ "MIT" ]
1
2015-04-04T18:32:31.000Z
2015-04-04T18:32:31.000Z
binary-tree-level-order-traversal-II/main.cpp
rickytan/LeetCode
7df9a47928552babaf5d2abf1d153bd92d44be09
[ "MIT" ]
null
null
null
binary-tree-level-order-traversal-II/main.cpp
rickytan/LeetCode
7df9a47928552babaf5d2abf1d153bd92d44be09
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <queue> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { public: vector<vector<int> > levelOrderBottom(TreeNode *root) { vector<vector<int>> result; if (!root) return result; queue<pair<TreeNode *, int>> treeStack; treeStack.push(make_pair(root, 0)); int count = 0; while (!treeStack.empty()) { pair<TreeNode *, int> p = treeStack.front(); treeStack.pop(); TreeNode *top = p.first; int level = p.second; if (level >= result.size()) result.push_back(vector<int>()); result[level].push_back(top->val); if (top->left) { treeStack.push(make_pair(top->left, level+1)); //result[level].push_back(top->left->val); } if (top->right) { treeStack.push(make_pair(top->right, level+1)); //result[level].push_back(top->right->val); } } std::reverse(result.begin(), result.end()); return result; } }; int main() { return 0; }
23.381818
63
0.51944
rickytan
c287b86aab29f4aa747149d64d45827da01a9cf3
470
cpp
C++
drazy/sparse_table.cpp
gbuenoandrade/Manual-da-Sarrada
dc44666b8f926428164447997b5ea8363ebd6fda
[ "MIT" ]
null
null
null
drazy/sparse_table.cpp
gbuenoandrade/Manual-da-Sarrada
dc44666b8f926428164447997b5ea8363ebd6fda
[ "MIT" ]
null
null
null
drazy/sparse_table.cpp
gbuenoandrade/Manual-da-Sarrada
dc44666b8f926428164447997b5ea8363ebd6fda
[ "MIT" ]
null
null
null
const int MAXN = 100010; const int MAX_LOG = 18; int v[MAXN]; int st[MAXN][MAX_LOG]; int logt[MAXN]; int n; void build() { logt[1] = 0; for (int i=2, val=1; i<=n; i*=2, ++val) { int lim = min(2*i, n+1); FOR(j,i,lim) { logt[j] = val; } } FOR0(j,MAX_LOG) FOR0(i,n) if(i + (1 << j) - 1 < n) { st[i][j] = (j ? min(st[i][j-1], st[i + (1 << (j-1))][j-1]): v[i]); } } int query(int l, int r) { int x = logt[r-l+1]; return min(st[l][x],st[r-(1<<x)+1][x]); }
19.583333
68
0.493617
gbuenoandrade
c29056431c86089520a9e21ee2cc507ccc5340c7
3,763
hpp
C++
src/RemotePhotoTool/TimelapseVideoOptionsDlg.hpp
vividos/RemotePhotoTool
d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00
[ "BSD-2-Clause" ]
16
2015-03-26T02:32:43.000Z
2021-10-18T16:34:31.000Z
src/RemotePhotoTool/TimelapseVideoOptionsDlg.hpp
vividos/RemotePhotoTool
d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00
[ "BSD-2-Clause" ]
7
2019-02-21T06:07:09.000Z
2022-01-01T10:00:50.000Z
src/RemotePhotoTool/TimelapseVideoOptionsDlg.hpp
vividos/RemotePhotoTool
d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00
[ "BSD-2-Clause" ]
6
2019-05-07T09:21:15.000Z
2021-09-01T06:36:24.000Z
// // RemotePhotoTool - remote camera control software // Copyright (C) 2008-2018 Michael Fink // /// \file TimelapseVideoOptionsDlg.hpp Settings dialog // #pragma once /// \brief timelapse video options dialog /// \details shows some common ffmpeg options for selection and returns the /// resulting command line string class TimelapseVideoOptionsDlg : public CDialogImpl<TimelapseVideoOptionsDlg>, public CWinDataExchange<TimelapseVideoOptionsDlg> { public: /// ctor TimelapseVideoOptionsDlg(const CString& commandLine); /// dialog id enum { IDD = IDD_TIMELAPSE_VIDEO_OPTIONS }; /// returns complete command line text that was configured using this dialog CString GetCommandLine() const; private: BEGIN_DDX_MAP(TimelapseVideoOptionsDlg) DDX_INT(IDC_EDIT_TIMELAPSE_VIDEO_OPTIONS_FRAMERATE, m_framerate) DDX_CONTROL_HANDLE(IDC_EDIT_TIMELAPSE_VIDEO_OPTIONS_FRAMERATE, m_editFramerate) DDX_CONTROL_HANDLE(IDC_COMBO_TIMELAPSE_VIDEO_OPTIONS_FORMAT, m_comboVideoEncoding) DDX_CONTROL_HANDLE(IDC_COMBO_TIMELAPSE_VIDEO_OPTIONS_PRESET, m_comboVideoPreset) DDX_COMBO_INDEX(IDC_COMBO_TIMELAPSE_VIDEO_OPTIONS_FORMAT, m_indexVideoEncoding) DDX_COMBO_INDEX(IDC_COMBO_TIMELAPSE_VIDEO_OPTIONS_PRESET, m_indexVideoPreset) DDX_CONTROL_HANDLE(IDC_EDIT_TIMELAPSE_VIDEO_OPTIONS_EXTRA_FFMPEG_CMDLINE, m_editExtraOptions) DDX_TEXT(IDC_EDIT_TIMELAPSE_VIDEO_OPTIONS_EXTRA_FFMPEG_CMDLINE, m_extraFfmpegCmdline) DDX_TEXT(IDC_EDIT_TIMELAPSE_VIDEO_OPTIONS_COMPLETE_FFMPEG_CMDLINE, m_commandLine) END_DDX_MAP() BEGIN_MSG_MAP(TimelapseVideoOptionsDlg) MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) COMMAND_ID_HANDLER(IDOK, OnCloseCmd) COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) COMMAND_HANDLER(IDC_EDIT_TIMELAPSE_VIDEO_OPTIONS_FRAMERATE, EN_CHANGE, OnInputControlChanged) COMMAND_HANDLER(IDC_EDIT_TIMELAPSE_VIDEO_OPTIONS_EXTRA_FFMPEG_CMDLINE, EN_CHANGE, OnInputControlChanged) COMMAND_HANDLER(IDC_COMBO_TIMELAPSE_VIDEO_OPTIONS_FORMAT, CBN_SELCHANGE, OnInputControlChanged) COMMAND_HANDLER(IDC_COMBO_TIMELAPSE_VIDEO_OPTIONS_PRESET, CBN_SELCHANGE, OnInputControlChanged) END_MSG_MAP() /// called when dialog is being shown LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); /// called when OK or Cancel button is pressed LRESULT OnCloseCmd(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); /// called when an input control has changed its contents LRESULT OnInputControlChanged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); /// returns a complete command line, from reading the current UI control contents CString GetCommandLineFromControls(); /// updates command line from UI controls void UpdateCommandLineFromControls(); /// sets UI controls from given command line void SetControlsFromCommandLine(const CString& commandLine); private: // model /// current command line string CString m_commandLine; /// contains selected framerate int m_framerate; /// contains index of currently selected video encoding option int m_indexVideoEncoding; /// contains index of currently selected video preset option int m_indexVideoPreset; /// contains extra options for the ffmpeg command line CString m_extraFfmpegCmdline; // UI /// indicates if the "change update" handler is currently running bool m_inChangeHandler; /// edit control containing the framerate CEdit m_editFramerate; /// combobox for selecting video encoding CComboBox m_comboVideoEncoding; /// combobox for selecting video preset CComboBox m_comboVideoPreset; /// edit control containing the extra options CEdit m_editExtraOptions; };
36.892157
110
0.790858
vividos
c298ba2ea7469e032a9c6e9566796468f41872bb
2,151
cpp
C++
src/app/clusters/power-source-server/power-source-server.cpp
hnnajh/connectedhomeip
249a6c65a820c711d23135d38eec0ab288d3f38f
[ "Apache-2.0" ]
null
null
null
src/app/clusters/power-source-server/power-source-server.cpp
hnnajh/connectedhomeip
249a6c65a820c711d23135d38eec0ab288d3f38f
[ "Apache-2.0" ]
null
null
null
src/app/clusters/power-source-server/power-source-server.cpp
hnnajh/connectedhomeip
249a6c65a820c711d23135d38eec0ab288d3f38f
[ "Apache-2.0" ]
null
null
null
/** * * Copyright (c) 2020 Project CHIP 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. */ /** * * Copyright (c) 2020 Silicon Labs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance 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 "power-source-server.h" #include <app/CommandHandler.h> #include <app/reporting/reporting.h> #include <app/util/af-event.h> #include <app/util/af-types.h> #include <app/util/af.h> #include <app/util/attribute-storage.h> #include <lib/support/TypeTraits.h> #include <string.h> using namespace chip; #ifndef emberAfPowerSourceClusterPrintln #define emberAfPowerSourceClusterPrintln(...) ChipLogProgress(Zcl, __VA_ARGS__); #endif //------------------------------------------------------------------------------ // Callbacks //------------------------------------------------------------------------------ /** @brief Power Source Cluster Init * * Cluster Init * * @param endpoint Endpoint that is being initialized */ void emberAfPowerSourceClusterInitCallback(chip::EndpointId endpoint) { emberAfPowerSourceClusterPrintln("Power Source Cluster init"); }
32.590909
80
0.666202
hnnajh
c29906300bed592b7d0f6125beabc3e161352bfc
1,345
cxx
C++
Packages/java/nio/file/LinkOption.cxx
Brandon-T/Aries
4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca
[ "MIT" ]
null
null
null
Packages/java/nio/file/LinkOption.cxx
Brandon-T/Aries
4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca
[ "MIT" ]
null
null
null
Packages/java/nio/file/LinkOption.cxx
Brandon-T/Aries
4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca
[ "MIT" ]
null
null
null
// // LinkOption.cxx // Aries // // Created by Brandon on 2018-02-25. // Copyright © 2018 Brandon. All rights reserved. // #include "LinkOption.hxx" #include "Enum.hxx" #include "String.hxx" using java::nio::file::LinkOption; using java::lang::Enum; using java::lang::String; LinkOption::LinkOption(JVM* vm, jobject instance) : Enum() { if (vm && instance) { this->vm = vm; this->cls = JVMRef<jclass>(this->vm, this->vm->FindClass("Ljava/nio/file/LinkOption;")); this->inst = JVMRef<jobject>(this->vm, instance); } } LinkOption LinkOption::valueOf(JVM* vm, String value) { static JVMRef<jclass> cls = JVMRef<jclass>(vm, vm->FindClass("Ljava/nio/file/LinkOption;")); static jmethodID valueOfMethod = vm->GetStaticMethodID(cls.get(), "valueOf", "(Ljava/lang/String;)Ljava/nio/file/LinkOption;"); return LinkOption(vm, vm->CallStaticObjectMethod(cls.get(), valueOfMethod, value.ref().get())); } Array<LinkOption> LinkOption::values(JVM* vm) { static JVMRef<jclass> cls = JVMRef<jclass>(vm, vm->FindClass("Ljava/nio/file/LinkOption;")); static jmethodID valuesMethod = vm->GetStaticMethodID(cls.get(), "values", "()[Ljava/nio/file/LinkOption;"); jarray arr = reinterpret_cast<jarray>(vm->CallStaticObjectMethod(cls.get(), valuesMethod)); return Array<LinkOption>(vm, arr); }
32.02381
131
0.681784
Brandon-T
c2994debdd0e9f785619897ea07406601e14677b
6,276
hh
C++
nox/src/include/expr.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
28
2015-02-04T13:59:25.000Z
2021-12-29T03:44:47.000Z
nox/src/include/expr.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
552
2015-01-05T18:25:54.000Z
2022-03-16T18:51:13.000Z
nox/src/include/expr.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
25
2015-02-04T18:48:20.000Z
2020-06-18T15:51:05.000Z
/* Copyright 2008 (C) Nicira, Inc. * * This file is part of NOX. * * NOX 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. * * NOX 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 NOX. If not, see <http://www.gnu.org/licenses/>. */ #ifndef PACKET_EXPR_HH #define PACKET_EXPR_HH #include <string> #include <stdint.h> #include "cnode.hh" #include "cnode-result.hh" /* * Example implementation of the Expr model used by Classifier, Cnode, * Cnode_result, and Rule. * * An Expr describes the set of packets a given rule should be applied to. How * an expression class chooses to describe these sets is completely up to the * implementation. However, to utilize the general classification mechanism * encoded in the Cnode structure, an Expr should expose the following * interface. * * Overview: * * An Expr should define a constant 'NUM_FIELDS' equal to the number of * different fields it would like the Cnode tree to attempt to split rules of * its type on. Note that an Expr can be defined over additional fields that * it would not like Cnode to split on, it should just not include these fields * in the 'NUM_FIELDS' constant. Cnode represents each of the 'NUM_FIELDS' * fields by an integer value less than 'NUM_FIELDS' and greater than or equal * to zero. An Expr can be wildcarded on any number of these fields (i.e. the * Expr allows 'any' value on the field). A path in Cnode is then denoted by a * bit mask in which the ith bit is on if and only if field i has been split * on. * * The required constants and methods needed to be implemented by an Expr in * order to be used in a Cnode tree are described below. */ namespace vigil { class Flow; class Packet_expr { public: /*************************** BEGIN REQUIRED INTERFACE *************************/ /* Constants */ static const uint32_t NUM_FIELDS = 13; // num fields that can be split // on by Cnode static const uint32_t LEAF_THRESHOLD = 1; // min num rules that should be // saved by a split for it to be // worth the hash cost. /* * Returns 'true' if the expr is wildcarded on 'field', else 'false'. */ bool is_wildcard(uint32_t field) const; /* * Returns 'true' if the expr, having already been split on all fields * denoted by 'path', could potentially be split on any other fields. * Needed in order to avoid copying rules to a node's children when it is * known in advance that the rule will apply to all possible descendents. * Returns 'false' if no further splits can be made (i.e. expr is * wildcarded on all fields that have yet to be split on). */ bool splittable(uint32_t path) const; /* * Sets the memory pointed to by 'value' equal to the expression's value * for 'field'. Returns 'false' if 'value' has not been set (i.e. when * expr is wildcarded on 'field'), else returns 'true'. Should set any of * the MAX_FIELD_LEN * 4 bytes in 'value' not used by 'field' to 0. */ bool get_field(uint32_t field, uint32_t& value) const; /**************************** END REQUIRED INTERFACE **************************/ Packet_expr() : wildcards(~0) { } ~Packet_expr() { } enum Expr_field { AP_SRC, AP_DST, DL_VLAN, DL_VLAN_PCP, DL_TYPE, DL_SRC, DL_DST, NW_SRC, NW_DST, NW_PROTO, TP_SRC, TP_DST, GROUP_SRC, GROUP_DST, }; static const int MAX_FIELD_LEN = 2; void set_field(Expr_field, const uint32_t [MAX_FIELD_LEN]); void print() const; void print(uint32_t) const; const std::string to_string() const; const std::string to_string(uint32_t field) const; uint16_t ap_src; uint16_t ap_dst; //how have data during classification uint16_t dl_vlan; uint16_t dl_vlan_pcp; uint16_t dl_proto; uint8_t dl_src[6]; uint8_t dl_dst[6]; uint32_t nw_src; uint32_t nw_dst; uint16_t tp_src; uint16_t tp_dst; uint32_t group_src; uint32_t group_dst; uint32_t wildcards; uint8_t nw_proto; }; /* * This function should be defined for every Data type that * Classifier::traverse might get called on. This example Expr assumes it * will get called on either a Flow or another Packet_expr. Sets the * memory pointed to by 'value' equal to the data's value for 'field' where * 'field' is one of the above-described single-bit masks. Returns 'true' * if 'value' was set, else 'false' (e.g. when the data does not have a * value for 'field'. Should set any of the MAX_FIELD_LEN * 4 bytes in * 'value' not used by 'field' equal to '0'. */ template <> bool get_field<Packet_expr, Flow>(uint32_t field, const Flow& flow, uint32_t idx, uint32_t& value); template <> bool get_field<Packet_expr, Packet_expr>(uint32_t field, const Packet_expr& expr, uint32_t idx, uint32_t& value); /* * This function should be defined for every Data type that * Classifier::traverse might get called on. It is used by Cnode_result to * iterate through only the valid rules. This example Expr assumes it will * get called on either a Flow or another Packet_expr. Returns * 'true' if the expr matches the packet argument. This is where the expr * can check for fields that the Cnode tree either has not or cannot * split on. Returns 'false' if the expr does not match the argument. */ template <> bool matches(uint32_t rule_id, const Packet_expr&, const Flow&); template <> bool matches(uint32_t rule_id, const Packet_expr&, const Packet_expr&); } // namespace vigil #endif
33.031579
80
0.663161
ayjazz
c29ba5e146d7cb6631d92e38d91bbb259dbb2a40
523
cc
C++
src/main.cc
milesdiprata/conga-minimax-alpha-beta
0080bc62a71efd77ed499c6bd605f4120ccee73a
[ "MIT" ]
null
null
null
src/main.cc
milesdiprata/conga-minimax-alpha-beta
0080bc62a71efd77ed499c6bd605f4120ccee73a
[ "MIT" ]
null
null
null
src/main.cc
milesdiprata/conga-minimax-alpha-beta
0080bc62a71efd77ed499c6bd605f4120ccee73a
[ "MIT" ]
null
null
null
#include <memory> #include "conga/board.h" #include "conga/game.h" #include "conga/minimax_agent.h" #include "conga/random_agent.h" #include "conga/stone.h" int main(const int argc, const char* const argv[]) { auto game = conga::Game( std::make_unique<conga::Board>(), std::make_unique<conga::MinimaxAgent>( conga::Stone::kBlack, conga::MinimaxAgent::Evaluation::kPlayerMinusOpponentMoves), std::make_unique<conga::RandomAgent>(conga::Stone::kWhite)); game.Play(); return 0; }
27.526316
70
0.678776
milesdiprata
c2a1a601d04b8827eb1f6fb63754da2fe734d2f9
5,196
hpp
C++
include/hipipe/core/stream/rebatch.hpp
iterait/hipipe
c2a6cc13857dce93e5ae3f76a86e8f029ca3f921
[ "BSL-1.0", "MIT" ]
16
2018-10-08T09:00:14.000Z
2021-07-11T12:35:09.000Z
include/hipipe/core/stream/rebatch.hpp
iterait/hipipe
c2a6cc13857dce93e5ae3f76a86e8f029ca3f921
[ "BSL-1.0", "MIT" ]
19
2018-09-26T13:55:40.000Z
2019-08-28T13:47:04.000Z
include/hipipe/core/stream/rebatch.hpp
iterait/hipipe
c2a6cc13857dce93e5ae3f76a86e8f029ca3f921
[ "BSL-1.0", "MIT" ]
null
null
null
/**************************************************************************** * hipipe library * Copyright (c) 2017, Cognexa Solutions s.r.o. * Copyright (c) 2018, Iterait a.s. * Author(s) Filip Matzner * * This file is distributed under the MIT License. * See the accompanying file LICENSE.txt for the complete license agreement. ****************************************************************************/ #pragma once #include <hipipe/core/stream/stream_t.hpp> #include <range/v3/core.hpp> #include <range/v3/functional/bind_back.hpp> #include <range/v3/view/all.hpp> #include <range/v3/view/view.hpp> #include <algorithm> namespace hipipe::stream { namespace rg = ranges; namespace rgv = ranges::views; template <typename Rng> struct rebatch_view : rg::view_facade<rebatch_view<Rng>> { private: /// \cond friend rg::range_access; /// \endcond Rng rng_; std::size_t n_; struct cursor { private: rebatch_view<Rng>* rng_ = nullptr; rg::iterator_t<Rng> it_ = {}; // the batch into which we accumulate the data // the batch will be a pointer to allow moving from it in const functions std::shared_ptr<batch_t> batch_; // the subbatch of the original range std::shared_ptr<batch_t> subbatch_; // whether the underlying range is at the end of iteration bool done_ = false; // find the first non-empty subbatch and return if successful bool find_next() { while (subbatch_->batch_size() == 0) { if (it_ == rg::end(rng_->rng_) || ++it_ == rg::end(rng_->rng_)) { return false; } subbatch_ = std::make_shared<batch_t>(*it_); } return true; } // fill the batch_ with the elements from the current subbatch_ void fill_batch() { do { assert(batch_->batch_size() < rng_->n_); std::size_t to_take = std::min(rng_->n_ - batch_->batch_size(), subbatch_->batch_size()); batch_->push_back(subbatch_->take(to_take)); } while (batch_->batch_size() < rng_->n_ && find_next()); } public: using single_pass = std::true_type; cursor() = default; explicit cursor(rebatch_view<Rng>& rng) : rng_{&rng} , it_{rg::begin(rng_->rng_)} { // do nothing if the subrange is empty if (it_ == rg::end(rng_->rng_)) { done_ = true; } else { subbatch_ = std::make_shared<batch_t>(*it_); next(); } } batch_t&& read() const { return std::move(*batch_); } bool equal(rg::default_sentinel_t) const { return done_; } bool equal(const cursor& that) const { assert(rng_ == that.rng_); return it_ == that.it_ && subbatch_->batch_size() == that.subbatch_->batch_size(); } void next() { batch_ = std::make_shared<batch_t>(); if (find_next()) fill_batch(); else done_ = true; } }; // struct cursor cursor begin_cursor() { return cursor{*this}; } public: rebatch_view() = default; rebatch_view(Rng rng, std::size_t n) : rng_{rng} , n_{n} { if (n_ <= 0) { throw std::invalid_argument{"hipipe::stream::rebatch:" " The new batch size " + std::to_string(n_) + " is not strictly positive."}; } } }; // class rebatch_view class rebatch_fn { public: CPP_template(class Rng)(requires rg::input_range<Rng>) rebatch_view<rgv::all_t<Rng>> operator()(Rng&& rng, std::size_t n) const { return {rgv::all(std::forward<Rng>(rng)), n}; } auto operator()(std::size_t n) const { return rg::make_view_closure(rg::bind_back(rebatch_fn{}, n)); } }; // class rebatch_fn /// \ingroup Stream /// \brief Accumulate the stream and yield batches of a different size. /// /// The batch size of the accumulated columns is allowed to differ between batches. /// To make one large batch of all the data, use std::numeric_limits<std::size_t>::max(). /// /// Note that this stream transformer is not lazy and instead _eagerly evaluates_ /// the batches computed by the previous stream pipeline and reorganizes the /// evaluated data to batches of a different size. To avoid recalculation of the /// entire stream whenever e.g., std::distance is called, this transformer /// intentionally changes the stream type to input_range. The downside is that no /// further transformations or buffering can be appended and everything has to be /// prepared before the application of this transformer. /// /// \code /// HIPIPE_DEFINE_COLUMN(value, int) /// auto rng = views::iota(0, 10) /// | create<value>(2) // batches the data by two examples /// | rebatch(3); // changes the batch size to three examples /// \endcode inline rgv::view_closure<rebatch_fn> rebatch{}; } // namespace hipipe::stream
30.745562
94
0.572171
iterait
c2a31b8ed1ae65367c9af6077c84ca9fe8f1d39c
1,455
cpp
C++
cpp/src/Exceptions/Except.cpp
enea-scaccabarozzi/Image_to_ascii
7cb4aeb168321f23a22cc1340900f40807fb74cc
[ "MIT" ]
null
null
null
cpp/src/Exceptions/Except.cpp
enea-scaccabarozzi/Image_to_ascii
7cb4aeb168321f23a22cc1340900f40807fb74cc
[ "MIT" ]
null
null
null
cpp/src/Exceptions/Except.cpp
enea-scaccabarozzi/Image_to_ascii
7cb4aeb168321f23a22cc1340900f40807fb74cc
[ "MIT" ]
null
null
null
/** </src/Exceptions/Except.cpp> * * Written by Enea Scaccabarozzi * In date 2022-03-09 * * @description: This file rapresent the definition * of the custom Exception class for this project * * @declaration: See declarations for this file at * </src/Exceptions/Except.h> * */ #include "Except.h" using IMAGE_ASCII::EXCEPTIONS::Except; /** Constructor (C++ STL string, C++ STL string, C++ STL string, int). * * @param msg The error message * @param file File that throw exception * @param func Function that throw exception * @param line Line's number that throw exception * */ Except::Except(const string &msg, const string &file, const string &func, int line) { _info = (msg); _file = (file); _func = (func); _line = line; _what = ""; } /** Destructor. * * @description: Virtual to allow for subclassing. * */ Except::~Except() noexcept { } /** Member function what(). * * @description: Returns a pointer to the (constant) error description, * comprensive of all error's data available * * @return: A pointer to a const char*. * The underlying memory is in possession of the Except * object. Callers must not attempt to free the memory. * */ const char* Except::what() noexcept { _what = "\t[INFO]: " + _info + "\n" + _what += "\t[IN FILE]: " + _file + "\n"; _what += "\t[IN FUNCTION]: " + _func + "\n"; _what += "\t[AT LINE]: " + std::to_string(_line) + "\n"; return _what.c_str(); }
23.467742
83
0.645361
enea-scaccabarozzi
c2a4e7d339d3f1157e8c5a5277f756f65ad7fec2
1,817
cpp
C++
Plugins/org.mitk.gui.qt.moviemaker/src/internal/QmitkTimeSliceAnimationItem.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2022-03-03T12:03:32.000Z
2022-03-03T12:03:32.000Z
Plugins/org.mitk.gui.qt.moviemaker/src/internal/QmitkTimeSliceAnimationItem.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2021-12-22T10:19:02.000Z
2021-12-22T10:19:02.000Z
Plugins/org.mitk.gui.qt.moviemaker/src/internal/QmitkTimeSliceAnimationItem.cpp
zhaomengxiao/MITK_lancet
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2020-11-27T09:41:18.000Z
2020-11-27T09:41:18.000Z
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. ============================================================================*/ #include "QmitkTimeSliceAnimationItem.h" #include <mitkBaseRenderer.h> QmitkTimeSliceAnimationItem::QmitkTimeSliceAnimationItem(int from, int to, bool reverse, double duration, double delay, bool startWithPrevious) : QmitkAnimationItem("Time", duration, delay, startWithPrevious) { this->SetFrom(from); this->SetTo(to); this->SetReverse(reverse); } QmitkTimeSliceAnimationItem::~QmitkTimeSliceAnimationItem() { } int QmitkTimeSliceAnimationItem::GetFrom() const { return this->data(FromRole).toInt(); } void QmitkTimeSliceAnimationItem::SetFrom(int from) { this->setData(from, FromRole); } int QmitkTimeSliceAnimationItem::GetTo() const { return this->data(ToRole).toInt(); } void QmitkTimeSliceAnimationItem::SetTo(int to) { this->setData(to, ToRole); } bool QmitkTimeSliceAnimationItem::GetReverse() const { return this->data(ReverseRole).toBool(); } void QmitkTimeSliceAnimationItem::SetReverse(bool reverse) { this->setData(reverse, ReverseRole); } void QmitkTimeSliceAnimationItem::Animate(double s) { mitk::Stepper* stepper = mitk::RenderingManager::GetInstance()->GetTimeNavigationController()->GetTime(); if (stepper == nullptr) return; int newPos = this->GetReverse() ? this->GetTo() - static_cast<int>((this->GetTo() - this->GetFrom()) * s) : this->GetFrom() + static_cast<int>((this->GetTo() - this->GetFrom()) * s); stepper->SetPos(static_cast<unsigned int>(newPos)); }
25.591549
143
0.679141
zhaomengxiao
c2a562300dc1fd0978b99a6569abd7cd6b8afb49
3,464
hpp
C++
src/thread/invoke.hpp
minijackson/IGI-3004
8354f40e296cce8735b188dd3ff7406e96d5878e
[ "MIT" ]
1
2017-10-01T02:29:06.000Z
2017-10-01T02:29:06.000Z
src/thread/invoke.hpp
minijackson/IGI-3004
8354f40e296cce8735b188dd3ff7406e96d5878e
[ "MIT" ]
null
null
null
src/thread/invoke.hpp
minijackson/IGI-3004
8354f40e296cce8735b188dd3ff7406e96d5878e
[ "MIT" ]
null
null
null
#pragma once #include <utility> #include <functional> #include <type_traits> // C++17 invoke utility // http://en.cppreference.com/w/cpp/utility/functional/invoke namespace detail { template <class T> struct is_reference_wrapper : std::false_type {}; template <class U> struct is_reference_wrapper<std::reference_wrapper<U>> : std::true_type {}; template <class T> constexpr bool is_reference_wrapper_v = is_reference_wrapper<T>::value; template <class T> constexpr bool is_function_v = std::is_function<T>::value; template <class Base, class Derived> constexpr bool is_base_of_v = std::is_base_of<Base, Derived>::value; template <class T> constexpr bool is_member_pointer_v = std::is_member_pointer<T>::value; template <class Base, class T, class Derived, class... Args> inline auto INVOKE(T Base::*pmf, Derived&& ref, Args&&... args) -> std::enable_if_t<is_function_v<T> && is_base_of_v<Base, std::decay_t<Derived>>, decltype((std::forward<Derived>(ref).* pmf)(std::forward<Args>(args)...))> { return (std::forward<Derived>(ref).*pmf)(std::forward<Args>(args)...); } template <class Base, class T, class RefWrap, class... Args> inline auto INVOKE(T Base::*pmf, RefWrap&& ref, Args&&... args) -> std::enable_if_t<is_function_v<T> && is_reference_wrapper_v<std::decay_t<RefWrap>>, decltype((ref.get().*pmf)(std::forward<Args>(args)...))> { return (ref.get().*pmf)(std::forward<Args>(args)...); } template <class Base, class T, class Pointer, class... Args> inline auto INVOKE(T Base::*pmf, Pointer&& ptr, Args&&... args) -> std::enable_if_t<is_function_v<T> && !is_reference_wrapper_v<std::decay_t<Pointer>> && !is_base_of_v<Base, std::decay_t<Pointer>>, decltype(((*std::forward<Pointer>(ptr)).* pmf)(std::forward<Args>(args)...))> { return ((*std::forward<Pointer>(ptr)).*pmf)(std::forward<Args>(args)...); } template <class Base, class T, class Derived> inline auto INVOKE(T Base::*pmd, Derived&& ref) -> std::enable_if_t<!is_function_v<T> && is_base_of_v<Base, std::decay_t<Derived>>, decltype(std::forward<Derived>(ref).*pmd)> { return std::forward<Derived>(ref).*pmd; } template <class Base, class T, class RefWrap> inline auto INVOKE(T Base::*pmd, RefWrap&& ref) -> std::enable_if_t<!is_function_v<T> && is_reference_wrapper_v<std::decay_t<RefWrap>>, decltype(ref.get().*pmd)> { return ref.get().*pmd; } template <class Base, class T, class Pointer> inline auto INVOKE(T Base::*pmd, Pointer&& ptr) -> std::enable_if_t<!is_function_v<T> && !is_reference_wrapper_v<std::decay_t<Pointer>> && !is_base_of_v<Base, std::decay_t<Pointer>>, decltype((*std::forward<Pointer>(ptr)).*pmd)> { return (*std::forward<Pointer>(ptr)).*pmd; } template <class F, class... Args> inline auto INVOKE(F&& f, Args&&... args) -> std::enable_if_t<!is_member_pointer_v<std::decay_t<F>>, decltype(std::forward<F>(f)(std::forward<Args>(args)...))> { return std::forward<F>(f)(std::forward<Args>(args)...); } } // namespace detail template <class F, class... ArgTypes> std::result_of_t<F && (ArgTypes && ...)> invoke(F&& f, ArgTypes&&... args) { return detail::INVOKE(std::forward<F>(f), std::forward<ArgTypes>(args)...); }
39.816092
93
0.632506
minijackson
c2a66097fec4e896699d314e087ed3a039817cff
4,954
cpp
C++
modbus/MRegExp.cpp
mirkowi/TERANiS-PLC
2b22f1ebcaa771feb9bcab31b13ee4f6debf3e03
[ "Apache-2.0" ]
1
2020-04-14T09:59:32.000Z
2020-04-14T09:59:32.000Z
modbus/MRegExp.cpp
mirkowi/TERANiS-PLC
2b22f1ebcaa771feb9bcab31b13ee4f6debf3e03
[ "Apache-2.0" ]
2
2020-04-16T11:49:21.000Z
2020-06-05T06:36:50.000Z
modbus/MRegExp.cpp
mirkowi/TERANiS-PLC
2b22f1ebcaa771feb9bcab31b13ee4f6debf3e03
[ "Apache-2.0" ]
null
null
null
//--------------------------------------------------------------------------- #include "MRegExp.h" #include "platform.h" // TException wahlweise ausblenden #define _NO_EXEPTOBJ #ifdef _NO_EXEPTOBJ #define MEXCEPTION ; #else #include "exeptobj.h" #endif //--------------------------------------------------------------------------- bool TMRegExp::SetExpression(string value, int maxmatch) { if (FExpression != value) { FExpression = value; #ifdef PERLREGEX if (maxmatch==0) { // Das ist eine ganz einfache Methode um die Komplexitaet // des regulaeren Ausdrucks abzuschaetzen // Es werden auf jeden Fall mehr matches gebraucht als // Zeichenketten am Ende zurueckgeliefert werden // Deshalb wird einfach die doppelte Menge angenommen... for (unsigned i=0; i<FExpression.length(); i++) { if (FExpression[i]=='(' || FExpression[i]==')') maxmatch++; } if (maxmatch<10) maxmatch=10; } this->maxmatch=maxmatch; delete[] aRegMatch; aRegMatch = new regmatch_t[maxmatch]; if (compiled) regfree(&aRegExp); int err = regcomp(&aRegExp, FExpression.c_str(), 0); if (!err) compiled = true; matched=false; // TODO: regerror #ifndef _NO_EXEPTOBJ if (err) MEXCEPTION(0,"Fehler beim Erzeugen des regulaeren Ausdrucks: '"+FExpression+"'",""); #endif #endif #ifdef STDREGEX try { aRegExp = std::regex(FExpression); compiled = true; } catch (const std::regex_error &e) { #ifndef _NO_EXEPTOBJ MEXCEPTION(0,"Fehler beim Erzeugen des regulaeren Ausdrucks: '"+FExpression+"'",e.what()); #endif compiled = false; } #endif matched = false; } return compiled; } string TMRegExp::GetExpression() { return FExpression; } TMRegExp::TMRegExp(int maxmatch) { #ifdef PERLREGEX this->maxmatch=maxmatch; if (maxmatch>0) aRegMatch = new regmatch_t[maxmatch]; else aRegMatch = NULL; #endif matched = false; compiled = false; } TMRegExp::TMRegExp(string Expression, int maxmatch) { #ifdef PERLREGEX this->maxmatch=0; aRegMatch = NULL; #endif matched = false; compiled = false; SetExpression(Expression, maxmatch); } TMRegExp::~TMRegExp() { #ifdef PERLREGEX if (compiled) regfree(&aRegExp); delete[] aRegMatch; #endif } bool TMRegExp::Exec(string text) { if (!compiled) return false; matched = false; #ifdef PERLREGEX matched = regexec(&aRegExp, text.c_str(), maxmatch, aRegMatch, 0)==0; #endif #ifdef STDREGEX matched = std::regex_search(text, aRegMatch, aRegExp); #endif if (matched) { FText = text; } return matched; } bool TMRegExp::Exec(string text, vector<string> &list) { if (!compiled) return false; matched = Exec(text); if (matched) GetMatches(list); return matched; } bool TMRegExp::ExecExpression(string expression, string text) { SetExpression(expression); if (!compiled) return false; return Exec(text); } void TMRegExp::GetMatches(vector<string> &list) { if (!matched) return; list.clear(); #ifdef PERLREGEX for (int i = 1; i < maxmatch; i++) { if (aRegMatch[i].rm_so >= 0) { list.push_back(FText.substr(aRegMatch[i].rm_so, aRegMatch[i].rm_eo - aRegMatch[i].rm_so)); } } #endif #ifdef STDREGEX for (auto i = aRegMatch.begin() + 1; i != aRegMatch.end(); i++) { list.push_back(*i); } #endif } string TMRegExp::GetMatch(unsigned num, unsigned &pos, unsigned &len) { pos = 0; if (!matched) return ""; #ifdef PERLREGEX int n=0; for (int i = 1; i < maxmatch; i++) { if (aRegMatch[i].rm_so >= 0) { if (num==n) { if (aRegMatch[i].rm_eo < aRegMatch[i].rm_so) { #ifndef _NO_EXEPTOBJ MEXCEPTION(0,"Fehler beim Ermitteln einer Zeichenkette im regulaeren Ausdruck '" +FExpression+"'. Position "+int2string(aRegMatch[i].rm_so)+" - "+int2string(aRegMatch[i].rm_eo),""); #else return ""; #endif } pos = aRegMatch[i].rm_so; return FText.substr(pos, aRegMatch[i].rm_eo - pos); } n++; } } #endif #ifdef STDREGEX num++; // auf Index 0 steht der gesamte String if (aRegMatch.size() > num) { pos = aRegMatch.position(num); len = aRegMatch.length(num); // komischerweise liefert aRegMatch[num] manchmal einen Leerstring wo keiner sein sollte // der Substring funktioniert aber // string s = aRegMatch[num]; return FText.substr(pos, len); } #endif return ""; } string TMRegExp::GetMatch(unsigned num, unsigned &pos) { unsigned len; return GetMatch(num, pos, len); } string TMRegExp::GetMatch(unsigned num) { unsigned pos, len; return GetMatch(num, pos, len); }
25.937173
114
0.591643
mirkowi
c2b534f39e3d067d4e65f3ef89a9cb143274bf4e
2,018
cpp
C++
Core/CStreamTextWriter.cpp
JamesSchumacher10980/James.Cpp
c87d7340dbbca7e86e91b30f29bb9ac0bc1c0c00
[ "Apache-2.0" ]
null
null
null
Core/CStreamTextWriter.cpp
JamesSchumacher10980/James.Cpp
c87d7340dbbca7e86e91b30f29bb9ac0bc1c0c00
[ "Apache-2.0" ]
null
null
null
Core/CStreamTextWriter.cpp
JamesSchumacher10980/James.Cpp
c87d7340dbbca7e86e91b30f29bb9ac0bc1c0c00
[ "Apache-2.0" ]
null
null
null
#include "StdAfx.hpp" #include "James.Cpp.Api.hpp" ///////////////////////////////////////////////// //// (C) 2017 James Bernard Schumacher III ///////////////////////////////////////////////// /* Copyright (C) 2017 James Bernard Schumacher III 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. */ namespace James { namespace Cpp { // ITextWriter destructor ITextWriter::~ITextWriter() throw() { } /////////////////////////////////////////////////// /// CStreamTextWriter /////////////////////////////////////////////////// CStreamTextWriter::CStreamTextWriter() throw() : m_pStream(nullptr), m_bOwnStream(false) { } CStreamTextWriter::CStreamTextWriter(IStream * pStream, bool bOwnStream) throw(CApiError) : m_pStream(pStream), m_bOwnStream(bOwnStream) { if (pStream == nullptr) { CApiError nullError("A null pointer was encountered as an argument. Argument \'pStream\' was null.", __FILE__, __FUNCTION__, __LINE__, CApiError::ErrorCodes::NullPointer); // throw the exception throw(nullError); } } CStreamTextWriter::~CStreamTextWriter() throw() { if (m_pStream != nullptr && m_bOwnStream == true) { delete m_pStream; } } } }
34.20339
120
0.530228
JamesSchumacher10980
c2b892c660ce47d37db4b6e4ab8243ef95514e8a
1,019
cpp
C++
deep-learning/src/pcc/utility/pcc_copa_ucalc.cpp
chengcheng8632/Aurora
8471a7e307c360dc0d1234afb18072bde68ac2bd
[ "Apache-2.0" ]
null
null
null
deep-learning/src/pcc/utility/pcc_copa_ucalc.cpp
chengcheng8632/Aurora
8471a7e307c360dc0d1234afb18072bde68ac2bd
[ "Apache-2.0" ]
null
null
null
deep-learning/src/pcc/utility/pcc_copa_ucalc.cpp
chengcheng8632/Aurora
8471a7e307c360dc0d1234afb18072bde68ac2bd
[ "Apache-2.0" ]
2
2019-09-05T02:16:09.000Z
2019-09-17T10:06:27.000Z
#include <cmath> #include "pcc_copa_ucalc.h" float PccCopaUtilityCalculator::CalculateUtility(PccMonitorIntervalAnalysisGroup& past_monitor_intervals, MonitorInterval& cur_mi) { float throughput = cur_mi.GetObsThroughput(); float rtt_inflation = cur_mi.GetObsRttInflation(); float avg_rtt = cur_mi.GetObsRtt(); float loss_rate = cur_mi.GetObsLossRate(); float throughput_contribution = 0; float latency_contribution = 0; if (loss_rate == 1.0) { avg_rtt = last_avg_rtt; } else { last_avg_rtt = avg_rtt; } float utility = throughput / avg_rtt; PccLoggableEvent event("Calculate Utility", "--log-utility-calc-lite"); event.AddValue("Utility", utility); event.AddValue("MI Start Time", cur_mi.GetStartTime()); event.AddValue("Target Rate", cur_mi.GetTargetSendingRate()); event.AddValue("Actual Rate", cur_mi.GetObsSendingRate()); event.AddValue("Loss Rate", loss_rate); event.AddValue("Avg RTT", avg_rtt); logger->LogEvent(event); return utility; }
29.970588
105
0.725221
chengcheng8632
c2c1197e209964918dd9fda8f427aa1f41b04c79
1,492
hpp
C++
include/icp_localization/transform/TfPublisher.hpp
ibrahimhroob/icp_localization
271d99c59141fcd293190ec935020213783745e5
[ "BSD-3-Clause" ]
72
2021-07-06T09:05:00.000Z
2022-03-25T08:21:07.000Z
include/icp_localization/transform/TfPublisher.hpp
ibrahimhroob/icp_localization
271d99c59141fcd293190ec935020213783745e5
[ "BSD-3-Clause" ]
3
2021-06-09T20:06:41.000Z
2022-02-16T09:54:42.000Z
include/icp_localization/transform/TfPublisher.hpp
ibrahimhroob/icp_localization
271d99c59141fcd293190ec935020213783745e5
[ "BSD-3-Clause" ]
22
2021-06-23T09:18:01.000Z
2022-03-11T03:14:10.000Z
/* * TfPublisher.hpp * * Created on: Apr 27, 2021 * Author: jelavice */ #pragma once #include "icp_localization/transform/RigidTransform.hpp" #include <tf2_ros/transform_broadcaster.h> #include <nav_msgs/Odometry.h> #include <sensor_msgs/Imu.h> namespace icp_loco { class FrameTracker; class ImuTracker; class TfPublisher { public: EIGEN_MAKE_ALIGNED_OPERATOR_NEW TfPublisher(const ros::NodeHandle &nh, std::shared_ptr<FrameTracker> frameTracker, std::shared_ptr<ImuTracker> imuTracker); ~TfPublisher() = default; void setOdometryTopic(const std::string &topic); void setImuTopic(const std::string &topic); void initialize(); void publishMapToOdom(const Time &time) ; void publishMapToRangeSensor(const Time &time) ; void setIsProvideOdomFrame(bool value); void setIsUseOdometry(bool value); void setInitialPose(const Eigen::Vector3d &p, const Eigen::Quaterniond &q); private: void odometryCallback(const nav_msgs::Odometry &msg); void imuCallback(const sensor_msgs::Imu &msg); tf2_ros::TransformBroadcaster tfBroadcaster_; std::string odometryTopic_; std::string imuTopic_; ros::NodeHandle nh_; ros::Subscriber odomSubscriber_; ros::Subscriber imuSubscriber_; std::shared_ptr<FrameTracker> frameTracker_; std::shared_ptr<ImuTracker> imuTracker_; bool isProvideOdomFrame_ = false; bool isUseOdometry_ = false; Eigen::Vector3d initPosition_; Eigen::Quaterniond initOrientation_; }; } // namespace icp_loco
26.642857
84
0.756702
ibrahimhroob
c2c566df81e4f258fb7bfcffc85d13ccafa86055
185
cpp
C++
mia/medium/pocket-challenge-v2.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
153
2020-07-25T17:55:29.000Z
2021-10-01T23:45:01.000Z
mia/medium/pocket-challenge-v2.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
245
2021-10-08T09:14:46.000Z
2022-03-31T08:53:13.000Z
mia/medium/pocket-challenge-v2.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
44
2020-07-25T08:51:55.000Z
2021-09-25T16:09:01.000Z
struct PocketChallengeV2 : WonderSwan { auto name() -> string override { return "Pocket Challenge V2"; } auto extensions() -> vector<string> override { return {"pcv2", "pc2"}; } };
37
74
0.675676
CasualPokePlayer
c2c6d4cf258c84f49b84b7a8a794909cc48a9bf8
211
cpp
C++
chapter-6/6.35.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
chapter-6/6.35.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
chapter-6/6.35.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
// val-- keeps a copy of the original value of val, decreases val by 1, and then return the kept copy. // this function processing would never meet the end condition statement, exceeds the maximum stack depth.
52.75
106
0.767773
zero4drift
c2c7bc3a698c18d19e3138d96302207f0b72e0ed
3,153
cpp
C++
src/tabwidget.cpp
bms/kscope
3f3fc268574a178ea3cc94205b61ee44f2a242e3
[ "BSD-2-Clause" ]
1
2019-05-15T03:18:00.000Z
2019-05-15T03:18:00.000Z
src/tabwidget.cpp
wanghaitang/kscope4-1.8.1
72dbb7e9e3b34253c8bd8b25c5d82ebbb8d68358
[ "BSD-2-Clause" ]
null
null
null
src/tabwidget.cpp
wanghaitang/kscope4-1.8.1
72dbb7e9e3b34253c8bd8b25c5d82ebbb8d68358
[ "BSD-2-Clause" ]
null
null
null
/*************************************************************************** * * Copyright (C) 2005 Elad Lahav ([email protected]) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ***************************************************************************/ #include <QtGui/QToolTip> #include <QtGui/QMenu> #include <klocale.h> #include "tabwidget.h" #include "kscopepixmaps.h" /** * Class constructor. * @param pParent A pointer to the parent widget * @param szName Optional widget name */ TabWidget::TabWidget(QWidget* pParent, const char* szName) : KTabWidget(pParent) { Q_UNUSED(szName); // Create a popup menu m_pMenu = new QMenu(this); // Set the current tab based on the menu selection connect(m_pMenu, SIGNAL(triggered(QAction*)), this, SLOT(slotSetCurrentPage(QAction*))); // Create a button at the top-right corner of the tab widget m_pButton = new QToolButton(this); m_pButton->setIcon(Pixmaps().getPixmap(KScopePixmaps::TabList)); m_pButton->setToolTip(i18n("Shows a list of all open tabs")); m_pButton->adjustSize(); setCornerWidget(m_pButton, Qt::TopRightCorner); // Show the popup-menu when the button is clicked connect(m_pButton, SIGNAL(clicked()), this, SLOT(slotShowTabList())); } /** * Class destructor. */ TabWidget::~TabWidget() { } void TabWidget::slotSetCurrentPage(QAction *pAction) { int index; QString text = pAction->text(); for (index = 0; index < count(); index++) if (text == tabText(index)) setCurrentIndex(index); } /** * Creates and displays a popup-menu containing all tab labels. * This slot is connected to the clicked() signal emitted by the list button. */ void TabWidget::slotShowTabList() { int i; // Delete the previous menu m_pMenu->clear(); // Create and populate the menu for (i = 0; i < count(); i++) m_pMenu->addAction(tabText(i)); // Show the menu m_pMenu->popup(mapToGlobal(m_pButton->pos())); } #include "tabwidget.moc"
31.53
89
0.697114
bms
c2cd14c35492001dc919d90c6f34d5de1a70289c
2,174
hpp
C++
include/boost/simd/arch/common/simd/function/genmask.hpp
nickporubsky/boost-simd-clone
b81dfcd9d6524a131ea714f1eebb5bb75adddcc7
[ "BSL-1.0" ]
5
2018-02-20T11:21:12.000Z
2019-11-12T13:45:09.000Z
include/boost/simd/arch/common/simd/function/genmask.hpp
nickporubsky/boost-simd-clone
b81dfcd9d6524a131ea714f1eebb5bb75adddcc7
[ "BSL-1.0" ]
null
null
null
include/boost/simd/arch/common/simd/function/genmask.hpp
nickporubsky/boost-simd-clone
b81dfcd9d6524a131ea714f1eebb5bb75adddcc7
[ "BSL-1.0" ]
2
2017-11-17T15:30:36.000Z
2018-03-01T02:06:25.000Z
//================================================================================================== /** Copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) **/ //================================================================================================== #ifndef BOOST_SIMD_ARCH_COMMON_SIMD_FUNCTION_GENMASK_HPP_INCLUDED #define BOOST_SIMD_ARCH_COMMON_SIMD_FUNCTION_GENMASK_HPP_INCLUDED #include <boost/simd/detail/overload.hpp> #include <boost/simd/meta/as_arithmetic.hpp> #include <boost/simd/function/if_else.hpp> #include <boost/simd/constant/allbits.hpp> namespace boost { namespace simd { namespace ext { namespace bd = boost::dispatch; namespace bs = boost::simd; // ----------------------------------------------------------------------------------------------- // genmask from logical BOOST_DISPATCH_OVERLOAD_IF( genmask_ , (typename A0, typename X) , (detail::is_native<X>) , bd::cpu_ , bs::pack_< bs::logical_<A0>, X > ) { using result_t = as_arithmetic_t<A0>; BOOST_FORCEINLINE result_t operator()( A0 const& a0 ) const BOOST_NOEXCEPT { return do_(a0, typename is_bitwise_logical<A0>::type{}); } BOOST_FORCEINLINE result_t do_( A0 const& a0, std::true_type const& ) const BOOST_NOEXCEPT { return bitwise_cast<result_t>(a0); } BOOST_FORCEINLINE result_t do_( A0 const& a0, std::false_type const& ) const BOOST_NOEXCEPT { return if_else(a0, Allbits<result_t>(), result_t(0)); } }; BOOST_DISPATCH_OVERLOAD_IF( genmask_ , (typename A0,typename X) , (detail::is_native<X>) , bd::cpu_ , bs::pack_<bd::arithmetic_<A0>,X> ) { BOOST_FORCEINLINE A0 operator()( const A0& a0) const BOOST_NOEXCEPT { return if_else(a0, Allbits<A0>(), A0(0)); } }; } } } #endif
33.96875
100
0.517939
nickporubsky
c2ce474d0d43dc78a843523519f923b7ff44a3d7
240
hpp
C++
DLOCRModel.Calculate/pch.hpp
Frederisk/DeepLearning-OpticalCharacterRecognition-Model
52998e877cdf1e849cc2648e7d07dee6ae865cc1
[ "MIT" ]
null
null
null
DLOCRModel.Calculate/pch.hpp
Frederisk/DeepLearning-OpticalCharacterRecognition-Model
52998e877cdf1e849cc2648e7d07dee6ae865cc1
[ "MIT" ]
1
2020-12-16T03:32:56.000Z
2020-12-16T03:32:56.000Z
DLOCRModel.Calculate/pch.hpp
Frederisk/DeepLearning-OpticalCharacterRecognition-Model
52998e877cdf1e849cc2648e7d07dee6ae865cc1
[ "MIT" ]
null
null
null
// pch.h: 此為先行編譯的標頭檔。 // 以下所列檔案只會編譯一次,可改善之後組建的組建效能。 // 這也會影響 IntelliSense 效能,包括程式碼完成以及許多程式碼瀏覽功能。 // 但此處所列的檔案,如果其中任一在組建之間進行了更新,即會重新編譯所有檔案。 // 請勿於此處新增會經常更新的檔案,如此將會對於效能優勢產生負面的影響。 #ifndef PCH_H #define PCH_H // 請於此新增您要先行編譯的標頭 #endif //PCH_H
20
44
0.779167
Frederisk
c2cfc850b3bb55e583bca007ea5fce4f4e2f80d5
492
cpp
C++
codeforces/gym/2019-2020 ACM-ICPC Brazil Subregional Programming Contest/h.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
4
2020-10-05T19:24:10.000Z
2021-07-15T00:45:43.000Z
codeforces/gym/2019-2020 ACM-ICPC Brazil Subregional Programming Contest/h.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
codeforces/gym/2019-2020 ACM-ICPC Brazil Subregional Programming Contest/h.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define int long long #define ii pair<int, int> #define ff first #define ss second #define vi vector<int> #define vii vector<ii> #define pb push_back #define MAX (int32_t(1e6)+1) #define INF (int32_t(1e9)+1) using namespace std; int32_t main(){ int v, n; cin >> v >> n; v*=n; for(int i=1; i<=9; ++i){ if(i-1) cout << ' '; int x = v*i; cout << (int)ceil((long double)x/10); } cout << endl; return 0; }
18.222222
45
0.554878
tysm
c2d146bebf552b11d604b4ef794e69bb4c8b1cdb
2,803
cpp
C++
TheGame/objectlootcycle.cpp
MiKlTA/game_RPG_project
9d460e9fb5e0449e457ba94e44a0d6fc5b491012
[ "MIT" ]
null
null
null
TheGame/objectlootcycle.cpp
MiKlTA/game_RPG_project
9d460e9fb5e0449e457ba94e44a0d6fc5b491012
[ "MIT" ]
null
null
null
TheGame/objectlootcycle.cpp
MiKlTA/game_RPG_project
9d460e9fb5e0449e457ba94e44a0d6fc5b491012
[ "MIT" ]
null
null
null
#include "allFunctions.h" void objectLootCycle(BasicHero *hero, BasicObject *object) { prepare(); printSeparator(); printBasicObject(object); printSeparator(); if (!object->getBasicObjectInfo().wasExamined) { printCase(0, "Loot"); printCase(1, "Back"); printSeparator(); beginSwitch: printInputPrecede(); switch (inputCase()) { case '0': { BasicObject::ContainerItems_t items, deletedItems; object->examine(items); bool itemWasSuccessfullyPush = true; for (auto i : items) { if (itemWasSuccessfullyPush) { itemWasSuccessfullyPush = hero->giveItem(i); } else { deletedItems.push_back(i); } } hero->addLevel(object->getBasicObjectInfo().levelAdd); whatWeGotAfterObjectLoot(items, deletedItems, object); break; } case '1': prepare(); return; default: printErrorUnknownCharacter(); goto beginSwitch; break; } } else { printCase(0, "Back"); printSeparator(); printInputPrecede(); inputCase(); } prepare(); } void whatWeGotAfterObjectLoot(const BasicObject::ContainerItems_t &loot, const BasicObject::ContainerItems_t &deletedLoot, BasicObject *object) { prepare(); printSeparator(); if (!loot.empty()) { printWithDelayWithPauses( "|| In " + object->getGameObjectInfo().name + " you found:$\n"); for (auto i : loot) { printWithDelayWithPauses( "|| " + i->getGameObjectInfo().name + "$\n"); } } else { printWithDelayWithPauses("|| You didn't find anything :($\n"); } printSeparator(); if (!deletedLoot.empty()) { printWithDelayWithPauses( "|| Due to insufficient storage capacity of the inventory," "you lost:$\n"); for (auto i : deletedLoot) { printWithDelayWithPauses( "|| " + i->getGameObjectInfo().name + "$\n"); } printSeparator(); } printCase(0, "Ok"); printSeparator(); printInputPrecede(); inputCase(); prepare(); }
22.97541
79
0.447021
MiKlTA
c2d5c7b6c672bd8aa85a6b4fcde82fe1fd48c77e
1,099
cpp
C++
HW3/ydogukan_Yildirim_Dogukan_hw3.cpp
ydogukan/CS204_Advanced_Programming
015cb72d42cdaa9eaf335eb8deb0abcfc9a08c84
[ "MIT" ]
null
null
null
HW3/ydogukan_Yildirim_Dogukan_hw3.cpp
ydogukan/CS204_Advanced_Programming
015cb72d42cdaa9eaf335eb8deb0abcfc9a08c84
[ "MIT" ]
null
null
null
HW3/ydogukan_Yildirim_Dogukan_hw3.cpp
ydogukan/CS204_Advanced_Programming
015cb72d42cdaa9eaf335eb8deb0abcfc9a08c84
[ "MIT" ]
null
null
null
#include <iostream> #include <sstream> #include <string> #include "ydogukan_Yildirim_Dogukan_hw3_SubSeqsList.h" using namespace std; int main() { string line; cout << "Please enter the numbers in a line: "; getline(cin, line); cout << endl; // Creating temporary stringstream and integer variable to check whether the given line is empty // i.e. checking if the given line has no numbers istringstream temp(line); int tempNumber; if (!(temp >> tempNumber)) { // if no integer could be put into the integer variable, i.e. if it was empty, print the error line SubSeqsList tempList; tempList.displayList(); return 0; } SubSeqsList list; istringstream numbers(line); int number; while (numbers >> number) { // number by number from the sstream if (number >= 0) { if (!list.numberExistsInList(number)) { list.insertSubSeqs(number); // insert one or more subsequences } } else { list.deleteSubSeqs(-number); // delete one or more subsequences } } list.displayList(); // print the whole list list.deleteList(); // delete the whole list return 0; }
23.891304
129
0.702457
ydogukan
c2d7a23b4d7cbb5e51069e9b443ffacca9787fd1
597
hpp
C++
include/universal/native/native.hpp
shikharvashistha/universal
5c20504504f067412958fa61ea3839cf86c3d6f7
[ "MIT" ]
254
2017-05-24T16:51:57.000Z
2022-03-22T13:07:29.000Z
include/universal/native/native.hpp
jamesquinlan/universal
3b7e6bf37cbb9123425b634d18af18a409c2eccc
[ "MIT" ]
101
2017-11-09T22:57:24.000Z
2022-03-17T12:44:59.000Z
include/universal/native/native.hpp
jamesquinlan/universal
3b7e6bf37cbb9123425b634d18af18a409c2eccc
[ "MIT" ]
55
2017-06-09T10:04:38.000Z
2022-02-01T16:54:56.000Z
#pragma once // native standard header aggregating all native type introspection and manipulation functionality // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #ifndef _NATIVE_ #define _NATIVE_ #include <universal/native/integers.hpp> #include <universal/native/ieee754.hpp> #include <universal/native/manipulators.hpp> #include <universal/native/bit_functions.hpp> #include <universal/native/boolean_logic_operators.hpp> #include <universal/native/subnormal.hpp> #endif
33.166667
106
0.802345
shikharvashistha