hexsha stringlengths 40 40 | size int64 19 11.4M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 270 | max_stars_repo_name stringlengths 5 110 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 3 270 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 270 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 19 11.4M | avg_line_length float64 1.93 229k | max_line_length int64 12 688k | alphanum_fraction float64 0.07 0.99 | matches listlengths 1 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5dfff44cee6b3c9263934ccb862cfb39a294a14b | 6,917 | cxx | C++ | libs/gamepad/src/gamepad.cxx | tobias-haenel/cgv-density-estimation | 3be1b07a7b21d1cfd956fb19b5f0d83fb51bd308 | [
"BSD-3-Clause"
] | null | null | null | libs/gamepad/src/gamepad.cxx | tobias-haenel/cgv-density-estimation | 3be1b07a7b21d1cfd956fb19b5f0d83fb51bd308 | [
"BSD-3-Clause"
] | null | null | null | libs/gamepad/src/gamepad.cxx | tobias-haenel/cgv-density-estimation | 3be1b07a7b21d1cfd956fb19b5f0d83fb51bd308 | [
"BSD-3-Clause"
] | null | null | null | #include <gamepad/gamepad.h>
#include <gamepad/gamepad_driver.h>
#include <cassert>
namespace gamepad {
std::string convert_key_to_string(unsigned short key)
{
static const char* gamepad_key_names[] = {
"UNKNOWN",
"A",
"B",
"X",
"Y",
"RIGHT_BUMPER",
"LEFT_BUMPER",
"LEFT_TRIGGER",
"RIGHT_TRIGGER",
"DPAD_UP",
"DPAD_DOWN",
"DPAD_LEFT",
"DPAD_RIGHT",
"START",
"BACK",
"LEFT_STICK_PRESS",
"RIGHT_STICK_PRESS",
"LEFT_STICK_UP",
"LEFT_STICK_DOWN",
"LEFT_STICK_RIGHT",
"LEFT_STICK_LEFT",
"LEFT_STICK_UPLEFT",
"LEFT_STICK_UPRIGHT",
"LEFT_STICK_DOWNRIGHT",
"LEFT_STICK_DOWNLEFT",
"RIGHT_STICK_UP",
"RIGHT_STICK_DOWN",
"RIGHT_STICK_RIGHT",
"RIGHT_STICK_LEFT",
"RIGHT_STICK_UPLEFT",
"RIGHT_STICK_UPRIGHT",
"RIGHT_STICK_DOWNRIGHT",
"RIGHT_STICK_DOWNLEFT"
};
int index = key - (int)GPK_UNKNOWN;
return index < 33 ? gamepad_key_names[index] : "UNKNOWN";
}
/// convert flags to string
std::string convert_flags_to_string(GamepadButtonStateFlags flags)
{
static const char* flag_names[] = {
"DPAD_UP" ,
"DPAD_DOWN" ,
"DPAD_LEFT" ,
"DPAD_RIGHT" ,
"START" ,
"BACK" ,
"LEFT_STICK" ,
"RIGHT_STICK" ,
"LEFT_BUMPER" ,
"RIGHT_BUMPER",
"A",
"B",
"X",
"Y"
};
static const GamepadButtonStateFlags flag_values[] = {
GBF_DPAD_UP ,
GBF_DPAD_DOWN ,
GBF_DPAD_LEFT ,
GBF_DPAD_RIGHT ,
GBF_START ,
GBF_BACK ,
GBF_LEFT_STICK ,
GBF_RIGHT_STICK ,
GBF_LEFT_BUMPER ,
GBF_RIGHT_BUMPER ,
GBF_A ,
GBF_B ,
GBF_X ,
GBF_Y
};
std::string result;
for (unsigned i = 0; i < 14; ++i)
if ((flags & flag_values[i]) != 0) {
if (result.empty())
result = flag_names[i];
else
result += std::string("+") + flag_names[i];
}
return result;
}
/// return information on the registered drivers
const std::vector<driver_info>& get_driver_infos()
{
return ref_driver_infos();
}
/// set the state of a driver to enabled or disabled
void set_driver_state(unsigned i, bool enabled)
{
assert(i < ref_drivers().size());
ref_drivers()[i]->set_driver_state(enabled);
ref_driver_infos()[i].enabled = enabled;
}
/// scan all drivers for connected devices
void scan_devices()
{
ref_device_infos().clear();
ref_device_handles().clear();
for (auto driver_ptr : ref_drivers())
driver_ptr->scan_devices(ref_device_infos(), ref_device_handles());
}
/// return reference to device info structures
const std::vector<device_info>& get_device_infos()
{
return ref_device_infos();
}
bool get_driver_index(unsigned device_index, unsigned& driver_index)
{
// check if device_index is valid
if (device_index >= ref_device_handles().size())
return false;
driver_index = ref_device_infos()[device_index].driver_index;
if (driver_index >= ref_drivers().size())
return false;
return true;
}
/// check if device is still connected
bool is_connected(unsigned device_index)
{
gamepad_state state;
unsigned driver_index;
if (!get_driver_index(device_index, driver_index))
return false;
return ref_drivers()[driver_index]->get_device_state(ref_device_handles()[device_index], state);
}
/// set the state of a device to enabled or disabled, return false in case device was not connected anymore
bool set_device_state(unsigned device_index, bool enabled)
{
unsigned driver_index;
if (!get_driver_index(device_index, driver_index))
return false;
ref_drivers()[driver_index]->set_device_state(ref_device_handles()[device_index], enabled);
ref_device_infos()[device_index].enabled = enabled;
return true;
}
bool get_device_battery_info(unsigned device_index, BatteryType& battery_type, float& fill_state)
{
unsigned driver_index;
if (!get_driver_index(device_index, driver_index))
return false;
return ref_drivers()[driver_index]->get_device_battery_info(ref_device_handles()[device_index], battery_type, fill_state);
}
bool query_key_event(unsigned device_index, gamepad_key_event& gke)
{
unsigned driver_index;
if (!get_driver_index(device_index, driver_index))
return false;
return ref_drivers()[driver_index]->query_device_key_event(ref_device_handles()[device_index], gke);
}
/// retrieve the current state of gamepad stick and trigger positions, return false if device is not connected anymore
bool get_state(unsigned device_index, gamepad_state& state)
{
unsigned driver_index;
if (!get_driver_index(device_index, driver_index))
return false;
return ref_drivers()[driver_index]->get_device_state(ref_device_handles()[device_index], state);
}
/// set the vibration strength between 0 and 1 of low and high frequency motors, return false if device is not connected anymore
bool set_vibration(unsigned device_index, float low_frequency_strength, float high_frequency_strength)
{
unsigned driver_index;
if (!get_driver_index(device_index, driver_index))
return false;
return ref_drivers()[driver_index]->set_device_vibration(ref_device_handles()[device_index], low_frequency_strength, high_frequency_strength);
}
}
/*
#include "gamepad.h"
namespace cgv {
namespace gui {
const char* pad_key_names[] = {
"A",
"B",
"X",
"Y",
"RSHOULDER",
"LSHOULDER",
"LTRIGGER",
"RTRIGGER",
"DPAD_UP",
"DPAD_DOWN",
"DPAD_LEFT",
"DPAD_RIGHT",
"START",
"BACK",
"LTHUMB_PRESS",
"RTHUMB_PRESS",
"LTHUMB_UP",
"LTHUMB_DOWN",
"LTHUMB_RIGHT",
"LTHUMB_LEFT",
"LTHUMB_UPLEFT",
"LTHUMB_UPRIGHT",
"LTHUMB_DOWNRIGHT",
"LTHUMB_DOWNLEFT",
"RTHUMB_UP",
"RTHUMB_DOWN",
"RTHUMB_RIGHT",
"RTHUMB_LEFT",
"RTHUMB_UPLEFT",
"RTHUMB_UPRIGHT",
"RTHUMB_DOWNRIGHT",
"RTHUMB_DOWNLEFT"
};
unsigned short pad_gui_keys[]{
'A',
'B',
'X',
'Y',
cgv::gui::KEY_F1,
cgv::gui::KEY_F2,
cgv::gui::KEY_F3,
cgv::gui::KEY_F4,
cgv::gui::KEY_Up,
cgv::gui::KEY_Down,
cgv::gui::KEY_Left,
cgv::gui::KEY_Right,
cgv::gui::KEY_Enter,
cgv::gui::KEY_Back_Space,
cgv::gui::KEY_Pause,
cgv::gui::KEY_Num_Enter,
'8',
'2',
'6',
'4',
'7',
'9',
'3',
'1',
cgv::gui::KEY_Num_8,
cgv::gui::KEY_Num_2,
cgv::gui::KEY_Num_6,
cgv::gui::KEY_Num_4,
cgv::gui::KEY_Num_7,
cgv::gui::KEY_Num_9,
cgv::gui::KEY_Num_3,
cgv::gui::KEY_Num_1
};
/// convert a pad key code into a readable string
std::string get_pad_key_string(unsigned short key)
{
if (key < 512)
return std::string();
if (key > (unsigned short)PAD_RTHUMB_DOWNLEFT)
return std::string();
return std::string(pad_key_names[key - 512]);
}
/// convert a pad key code to a key code
unsigned short map_pad_key_to_key(unsigned short key)
{
if (key < 512)
return key;
if (key > (unsigned short)PAD_RTHUMB_DOWNLEFT)
return key;
return pad_gui_keys[key - 512]
}
}
}
*/ | 23.211409 | 144 | 0.682521 | [
"vector"
] |
b9016fa17ada7e2c00c2c778d258a37df60e6a77 | 2,399 | cpp | C++ | Days 221 - 230/Day 228/LargestNumberFromStringList.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 221 - 230/Day 228/LargestNumberFromStringList.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 221 - 230/Day 228/LargestNumberFromStringList.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstddef>
#include <cstdlib>
#include <iostream>
#include <initializer_list>
#include <iterator>
#include <map>
#include <string>
#include <vector>
unsigned int GetLargestNumber(const std::initializer_list<unsigned int>& numbers) noexcept
{
std::map<unsigned int, std::vector<std::string>> numberMap;
for (const auto& number : numbers)
{
const std::string numberString = std::to_string(number);
const unsigned int firstDigit = numberString[0] + '0';
if (numberMap.find(firstDigit) == std::cend(numberMap))
{
numberMap[firstDigit] = std::vector<std::string>();
}
numberMap[firstDigit].push_back(numberString);
}
std::vector<std::vector<std::string>> sortedNumbers;
sortedNumbers.reserve(numberMap.size());
for (const auto& [_, numberList] : numberMap)
{
sortedNumbers.push_back(numberList);
}
std::sort(std::begin(sortedNumbers), std::end(sortedNumbers), [](const std::vector<std::string>& lhs, const std::vector<std::string>& rhs)
{
return lhs[0] > rhs[0];
}
);
std::vector<std::string> largestNumberOrder;
for (const auto& list : sortedNumbers)
{
if (list.size() == 1)
{
largestNumberOrder.insert(std::cend(largestNumberOrder), std::cbegin(list), std::cend(list));
continue;
}
std::map<size_t, std::vector<std::string>> nextOrder;
for (const auto& stringNumber : list)
{
if (nextOrder.find(stringNumber.length()) == std::cend(nextOrder))
{
nextOrder[stringNumber.length()] = std::vector<std::string>();
}
nextOrder[stringNumber.length()].push_back(stringNumber);
}
std::vector<std::vector<std::string>> sortedValues;
sortedValues.reserve(nextOrder.size());
for (const auto& [_, numberList] : nextOrder)
{
sortedValues.push_back(numberList);
}
std::sort(std::begin(sortedValues), std::end(sortedValues), [](const std::vector<std::string>& lhs, const std::vector<std::string>& rhs)
{
return lhs[0] < rhs[0];
}
);
for (const auto& values : sortedValues)
{
largestNumberOrder.insert(std::cend(largestNumberOrder), std::cbegin(values), std::cend(values));
}
}
std::string largestNumber;
for (const auto& number : largestNumberOrder)
{
largestNumber += number;
}
return std::stoi(largestNumber);
}
int main(int argc, char* argv[])
{
std::cout << GetLargestNumber({ 10, 7, 76, 415 }) << "\n";
std::cin.get();
return EXIT_SUCCESS;
} | 23.519608 | 139 | 0.6807 | [
"vector"
] |
b901ec934496e6498236c96b1492492976d28c48 | 1,023,941 | cpp | C++ | IL2CPP/Il2CppOutputProject/Source/il2cppOutput/Bulk_Newtonsoft.Json_2.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | null | null | null | IL2CPP/Il2CppOutputProject/Source/il2cppOutput/Bulk_Newtonsoft.Json_2.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | null | null | null | IL2CPP/Il2CppOutputProject/Source/il2cppOutput/Bulk_Newtonsoft.Json_2.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.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);
}
};
template <typename R, typename T1>
struct VirtFuncInvoker1
{
typedef R (*Func)(void*, T1, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename T1>
struct VirtActionInvoker1
{
typedef void (*Action)(void*, T1, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename T1, typename T2, typename T3>
struct VirtActionInvoker3
{
typedef void (*Action)(void*, T1, T2, T3, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2, T3 p3)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, p1, p2, p3, invokeData.method);
}
};
template <typename R, typename T1>
struct GenericVirtFuncInvoker1
{
typedef R (*Func)(void*, T1, const RuntimeMethod*);
static inline R Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1)
{
VirtualInvokeData invokeData;
il2cpp_codegen_get_generic_virtual_invoke_data(method, obj, &invokeData);
return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename R, typename T1>
struct InterfaceFuncInvoker1
{
typedef R (*Func)(void*, T1, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename R>
struct InterfaceFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
return ((Func)invokeData.methodPtr)(obj, invokeData.method);
}
};
struct InterfaceActionInvoker0
{
typedef void (*Action)(void*, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
((Action)invokeData.methodPtr)(obj, invokeData.method);
}
};
template <typename T1>
struct InterfaceActionInvoker1
{
typedef void (*Action)(void*, T1, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
((Action)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename T1, typename T2>
struct InterfaceActionInvoker2
{
typedef void (*Action)(void*, T1, T2, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1, T2 p2)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
((Action)invokeData.methodPtr)(obj, p1, p2, invokeData.method);
}
};
// System.Collections.Generic.IEnumerable`1<System.String>
struct IEnumerable_1_t827303578;
// System.Dynamic.IDynamicMetaObjectProvider
struct IDynamicMetaObjectProvider_t2114558714;
// System.Linq.Expressions.ConstantExpression
struct ConstantExpression_t3613654278;
// System.Runtime.CompilerServices.CallSiteBinder
struct CallSiteBinder_t1870160633;
// System.String
struct String_t;
// System.Type
struct Type_t;
// Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo
struct CSharpArgumentInfo_t1152531755;
// System.Collections.Generic.IEnumerable`1<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>
struct IEnumerable_1_t132384644;
// Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>
struct BidirectionalDictionary_2_t787053467;
// System.StringComparer
struct StringComparer_t3301955079;
// System.Collections.Generic.IEqualityComparer`1<System.String>
struct IEqualityComparer_1_t3954782707;
// Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.Object,System.Object>
struct BidirectionalDictionary_2_t3581858927;
// System.Collections.Generic.IEqualityComparer`1<System.Object>
struct IEqualityComparer_1_t892470886;
// System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo>
struct IEnumerable_1_t3161555474;
// System.Collections.Generic.IEnumerable`1<System.Attribute>
struct IEnumerable_1_t4136382744;
// System.Reflection.MemberInfo
struct MemberInfo_t;
// System.Collections.Generic.IEnumerable`1<System.Runtime.Serialization.EnumMemberAttribute>
struct IEnumerable_1_t63981704;
// System.Collections.IEnumerable
struct IEnumerable_t1941168011;
// System.Collections.Generic.IEnumerable`1<System.Object>
struct IEnumerable_1_t2059959053;
// System.Func`2<System.Runtime.Serialization.EnumMemberAttribute,System.String>
struct Func_2_t2419460300;
// System.Func`2<System.Object,System.Object>
struct Func_2_t2447130374;
// System.Globalization.CultureInfo
struct CultureInfo_t4157843068;
// System.IFormatProvider
struct IFormatProvider_t2518567562;
// System.InvalidOperationException
struct InvalidOperationException_t56020091;
// System.Collections.Generic.IList`1<System.Object>
struct IList_1_t600458651;
// System.ArgumentException
struct ArgumentException_t132251570;
// System.Collections.Generic.List`1<System.Object>
struct List_1_t257213610;
// System.Func`2<System.Reflection.FieldInfo,System.Boolean>
struct Func_2_t1761491126;
// System.Func`2<System.Object,System.Boolean>
struct Func_2_t3759279471;
// System.Func`2<System.Type,Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>>
struct Func_2_t1251018457;
// Newtonsoft.Json.Utilities.ThreadSafeStore`2<System.Type,Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>>
struct ThreadSafeStore_2_t4165332627;
// Newtonsoft.Json.Utilities.ThreadSafeStore`2<System.Object,System.Object>
struct ThreadSafeStore_2_t1066477248;
// Newtonsoft.Json.Utilities.EnumUtils/<>c
struct U3CU3Ec_t2360567884;
// System.Runtime.Serialization.EnumMemberAttribute
struct EnumMemberAttribute_t1084128815;
// System.Reflection.FieldInfo
struct FieldInfo_t;
// Newtonsoft.Json.Utilities.ReflectionDelegateFactory
struct ReflectionDelegateFactory_t2528576452;
// Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory
struct ExpressionReflectionDelegateFactory_t3044714092;
// Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object>
struct ObjectConstructor_1_t3207922868;
// System.Reflection.MethodBase
struct MethodBase_t;
// System.Linq.Expressions.ParameterExpression
struct ParameterExpression_t1118422084;
// System.Linq.Expressions.Expression
struct Expression_t1588164026;
// System.Linq.Expressions.LambdaExpression
struct LambdaExpression_t3131094331;
// System.Linq.Expressions.ParameterExpression[]
struct ParameterExpressionU5BU5D_t2413162029;
// System.Delegate
struct Delegate_t1188392813;
// System.Collections.Generic.List`1<Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter>
struct List_1_t4069346525;
// System.Linq.Expressions.BinaryExpression
struct BinaryExpression_t77573129;
// System.Linq.Expressions.NewExpression
struct NewExpression_t1271006003;
// Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter
struct ByRefParameter_t2597271783;
// System.Reflection.ParameterInfo
struct ParameterInfo_t1861056598;
// System.Reflection.ConstructorInfo
struct ConstructorInfo_t5769829;
// System.Linq.Expressions.Expression[]
struct ExpressionU5BU5D_t2266720799;
// System.Linq.Expressions.MethodCallExpression
struct MethodCallExpression_t3675920717;
// System.Reflection.MethodInfo
struct MethodInfo_t;
// System.Linq.Expressions.BlockExpression
struct BlockExpression_t2693004534;
// System.Collections.Generic.List`1<System.Linq.Expressions.ParameterExpression>
struct List_1_t2590496826;
// System.Collections.Generic.List`1<System.Linq.Expressions.Expression>
struct List_1_t3060238768;
// System.Collections.Generic.IEnumerable`1<System.Linq.Expressions.ParameterExpression>
struct IEnumerable_1_t98274973;
// System.Collections.Generic.IEnumerable`1<System.Linq.Expressions.Expression>
struct IEnumerable_1_t568016915;
// System.Linq.Expressions.UnaryExpression
struct UnaryExpression_t3914580921;
// Newtonsoft.Json.Utilities.FSharpFunction
struct FSharpFunction_t2521769750;
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>
struct MethodCall_2_t2845904993;
// System.Object[]
struct ObjectU5BU5D_t2843939325;
// System.Reflection.Assembly
struct Assembly_t;
// System.Reflection.PropertyInfo
struct PropertyInfo_t;
// Newtonsoft.Json.Utilities.FSharpUtils/<>c__DisplayClass49_0
struct U3CU3Ec__DisplayClass49_0_t1290877595;
// Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass24_0
struct U3CU3Ec__DisplayClass24_0_t2581071253;
// System.Func`2<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo,System.Boolean>
struct Func_2_t3660693786;
// Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo
struct ImmutableCollectionTypeInfo_t3023729701;
// System.Collections.Generic.IEnumerable`1<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo>
struct IEnumerable_1_t2003582590;
// System.Collections.Generic.IEnumerable`1<System.Reflection.MethodInfo>
struct IEnumerable_1_t857479137;
// System.Func`2<System.Reflection.MethodInfo,System.Boolean>
struct Func_2_t3487522507;
// Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass25_0
struct U3CU3Ec__DisplayClass25_0_t4147155194;
// System.Collections.Generic.List`1<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo>
struct List_1_t200837147;
// Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c
struct U3CU3Ec_t1160215063;
// System.Collections.Generic.List`1<System.Char>
struct List_1_t811567916;
// System.Collections.Generic.IEnumerable`1<System.Char>
struct IEnumerable_1_t2614313359;
// System.Boolean[]
struct BooleanU5BU5D_t2897418192;
// System.IO.TextWriter
struct TextWriter_t3478189236;
// Newtonsoft.Json.IArrayPool`1<System.Char>
struct IArrayPool_1_t3621664784;
// System.Char[]
struct CharU5BU5D_t3528271667;
// System.IO.StringWriter
struct StringWriter_t802263757;
// Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory
struct LateBoundReflectionDelegateFactory_t925499913;
// Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory/<>c__DisplayClass3_0
struct U3CU3Ec__DisplayClass3_0_t1939583362;
// System.ArgumentOutOfRangeException
struct ArgumentOutOfRangeException_t777629997;
// System.Byte[]
struct ByteU5BU5D_t4116647657;
// Newtonsoft.Json.Utilities.NoThrowExpressionVisitor
struct NoThrowExpressionVisitor_t3642055891;
// System.Linq.Expressions.ConditionalExpression
struct ConditionalExpression_t1874387742;
// System.Linq.Expressions.ExpressionVisitor
struct ExpressionVisitor_t1561124052;
// Newtonsoft.Json.Utilities.NoThrowGetBinderMember
struct NoThrowGetBinderMember_t2324270373;
// System.Dynamic.GetMemberBinder
struct GetMemberBinder_t2463380603;
// Newtonsoft.Json.Utilities.NoThrowSetBinderMember
struct NoThrowSetBinderMember_t2534771984;
// System.Dynamic.SetMemberBinder
struct SetMemberBinder_t2112048622;
// Newtonsoft.Json.Utilities.PropertyNameTable
struct PropertyNameTable_t4130830590;
// Newtonsoft.Json.Utilities.PropertyNameTable/Entry
struct Entry_t2924091039;
// System.ArgumentNullException
struct ArgumentNullException_t1615371798;
// Newtonsoft.Json.Utilities.ReflectionMember
struct ReflectionMember_t2655407482;
// System.Action`2<System.Object,System.Object>
struct Action_2_t2470008838;
// Newtonsoft.Json.Utilities.ReflectionObject
struct ReflectionObject_t701100009;
// System.Collections.Generic.IDictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember>
struct IDictionary_2_t904515172;
// System.Collections.Generic.Dictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember>
struct Dictionary_2_t2440663781;
// System.Collections.Generic.Dictionary`2<System.Object,System.Object>
struct Dictionary_2_t132545152;
// System.String[]
struct StringU5BU5D_t1281789340;
// Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_0
struct U3CU3Ec__DisplayClass13_0_t4294006577;
// System.Reflection.MemberInfo[]
struct MemberInfoU5BU5D_t1302094432;
// System.Collections.Generic.IEnumerable`1<System.Reflection.MemberInfo>
struct IEnumerable_1_t2359854630;
// Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_1
struct U3CU3Ec__DisplayClass13_1_t1955354417;
// Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_2
struct U3CU3Ec__DisplayClass13_2_t381376305;
// System.Func`1<System.Object>
struct Func_1_t2509852811;
// Newtonsoft.Json.SerializationBinder
struct SerializationBinder_t3983938482;
// System.Text.StringBuilder
struct StringBuilder_t;
// System.Collections.Generic.IEnumerable`1<System.Reflection.ConstructorInfo>
struct IEnumerable_1_t3280590014;
// System.Func`2<System.Reflection.ConstructorInfo,System.Boolean>
struct Func_2_t1796590042;
// System.Collections.Generic.IEnumerable`1<System.Type>
struct IEnumerable_1_t1463797649;
// System.Exception
struct Exception_t;
// System.Type[]
struct TypeU5BU5D_t3940880105;
// System.Collections.Generic.List`1<System.Reflection.MemberInfo>
struct List_1_t557109187;
// System.Collections.Generic.IEnumerable`1<System.Reflection.PropertyInfo>
struct IEnumerable_1_t3962162136;
// System.Func`2<System.Reflection.MemberInfo,System.String>
struct Func_2_t3967597302;
// System.Collections.Generic.IEnumerable`1<System.Linq.IGrouping`2<System.String,System.Reflection.MemberInfo>>
struct IEnumerable_1_t761185857;
// System.Collections.Generic.IEnumerable`1<System.Linq.IGrouping`2<System.Object,System.Object>>
struct IEnumerable_1_t2023440265;
// System.Attribute[]
struct AttributeU5BU5D_t1575011174;
// System.Attribute
struct Attribute_t861562559;
// System.Reflection.TypeInfo
struct TypeInfo_t1690786683;
// System.Reflection.Module
struct Module_t2987026101;
// System.Func`2<System.Reflection.ParameterInfo,System.Type>
struct Func_2_t3692615456;
// System.Collections.Generic.IEnumerable`1<System.Reflection.ParameterInfo>
struct IEnumerable_1_t840909487;
// System.Collections.Generic.IList`1<System.Type>
struct IList_1_t4297247;
// System.Collections.Generic.List`1<System.Reflection.PropertyInfo>
struct List_1_t2159416693;
// System.Collections.Generic.IList`1<System.Reflection.PropertyInfo>
struct IList_1_t2502661734;
// Newtonsoft.Json.Utilities.ReflectionUtils/<>c__DisplayClass41_0
struct U3CU3Ec__DisplayClass41_0_t549567115;
// System.Func`2<System.Reflection.PropertyInfo,System.Boolean>
struct Func_2_t2377163032;
// Newtonsoft.Json.Utilities.ReflectionUtils/<>c
struct U3CU3Ec_t3587133118;
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass19_0
struct U3CU3Ec__DisplayClass19_0_t1131461246;
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass27_0
struct U3CU3Ec__DisplayClass27_0_t1152408749;
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass30_0
struct U3CU3Ec__DisplayClass30_0_t395628872;
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass35_0
struct U3CU3Ec__DisplayClass35_0_t3498955080;
// System.Collections.Generic.IList`1<System.Reflection.MemberInfo>
struct IList_1_t900354228;
// System.Func`2<System.Reflection.MemberInfo,System.Boolean>
struct Func_2_t2217434578;
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass38_0
struct U3CU3Ec__DisplayClass38_0_t1924976968;
// System.Enum
struct Enum_t4135868527;
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass39_0
struct U3CU3Ec__DisplayClass39_0_t4263629128;
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass40_0
struct U3CU3Ec__DisplayClass40_0_t798913399;
// System.Collections.Generic.IList`1<System.Reflection.FieldInfo>
struct IList_1_t1702055072;
// System.Collections.Generic.List`1<System.Reflection.FieldInfo>
struct List_1_t1358810031;
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass41_0
struct U3CU3Ec__DisplayClass41_0_t3137565559;
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass46_0
struct U3CU3Ec__DisplayClass46_0_t1945924471;
// Newtonsoft.Json.Utilities.TypeExtensions/<>c
struct U3CU3Ec_t3984375077;
// System.Collections.IDictionary
struct IDictionary_t1363984059;
// System.Runtime.Serialization.SafeSerializationManager
struct SafeSerializationManager_t2481557153;
// System.Diagnostics.StackTrace[]
struct StackTraceU5BU5D_t1169129676;
// System.IntPtr[]
struct IntPtrU5BU5D_t4013366056;
// System.Collections.Generic.IList`1<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo>
struct IList_1_t544082188;
// Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter[]
struct ByRefParameterU5BU5D_t1725815710;
// System.Reflection.PropertyInfo[]
struct PropertyInfoU5BU5D_t1461822886;
// Newtonsoft.Json.Utilities.PropertyNameTable/Entry[]
struct EntryU5BU5D_t1995962374;
// System.Int32[]
struct Int32U5BU5D_t385246372;
// System.Collections.Generic.Dictionary`2/Entry<System.String,Newtonsoft.Json.Utilities.ReflectionMember>[]
struct EntryU5BU5D_t3433651424;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.String,Newtonsoft.Json.Utilities.ReflectionMember>
struct KeyCollection_t2630339252;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.String,Newtonsoft.Json.Utilities.ReflectionMember>
struct ValueCollection_t4156708099;
// Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo[]
struct ImmutableCollectionTypeInfoU5BU5D_t2745353640;
// System.Runtime.Remoting.ServerIdentity
struct ServerIdentity_t2342208608;
// System.Globalization.NumberFormatInfo
struct NumberFormatInfo_t435877138;
// System.Globalization.DateTimeFormatInfo
struct DateTimeFormatInfo_t2405853701;
// System.Globalization.TextInfo
struct TextInfo_t3810425522;
// System.Globalization.CompareInfo
struct CompareInfo_t1092934962;
// System.Globalization.Calendar
struct Calendar_t1661121569;
// System.Globalization.CultureData
struct CultureData_t1899656083;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Globalization.CultureInfo>
struct Dictionary_2_t3046556399;
// System.Collections.Generic.Dictionary`2<System.String,System.Globalization.CultureInfo>
struct Dictionary_2_t3943099367;
// System.Void
struct Void_t1185182177;
// System.Dynamic.DynamicMetaObject[]
struct DynamicMetaObjectU5BU5D_t4108675661;
// System.Dynamic.BindingRestrictions
struct BindingRestrictions_t2954491122;
// System.Linq.Expressions.LabelTarget
struct LabelTarget_t3951553093;
// System.Dynamic.Utils.CacheDict`2<System.Type,System.Reflection.MethodInfo>
struct CacheDict_2_t213319420;
// System.Dynamic.Utils.CacheDict`2<System.Type,System.Func`5<System.Linq.Expressions.Expression,System.String,System.Boolean,System.Collections.ObjectModel.ReadOnlyCollection`1<System.Linq.Expressions.ParameterExpression>,System.Linq.Expressions.LambdaExpression>>
struct CacheDict_2_t430650805;
// System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Linq.Expressions.Expression,System.Linq.Expressions.Expression/ExtensionInfo>
struct ConditionalWeakTable_2_t2404503487;
// System.Collections.Generic.IDictionary`2<System.String,System.String>
struct IDictionary_2_t96558379;
// System.Reflection.FieldInfo[]
struct FieldInfoU5BU5D_t846150980;
// System.Collections.Generic.Dictionary`2<System.Type,Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>>
struct Dictionary_2_t3231400531;
// System.UInt32[]
struct UInt32U5BU5D_t2770800703;
// System.Reflection.EventInfo/AddEventAdapter
struct AddEventAdapter_t1787725097;
// System.Security.Cryptography.RandomNumberGenerator
struct RandomNumberGenerator_t386037858;
// System.Collections.Generic.IReadOnlyList`1<System.Linq.Expressions.Expression>
struct IReadOnlyList_1_t2152586932;
// System.Collections.ObjectModel.ReadOnlyCollection`1<System.Reflection.MemberInfo>
struct ReadOnlyCollection_1_t297610732;
// System.Action`1<System.Object>
struct Action_1_t3252573759;
// System.Text.UnicodeEncoding
struct UnicodeEncoding_t1959134050;
// System.DelegateData
struct DelegateData_t1677132599;
// System.Reflection.Assembly/ResolveEventHolder
struct ResolveEventHolder_t2120639521;
// System.Security.Policy.Evidence
struct Evidence_t2008144148;
// System.Security.PermissionSet
struct PermissionSet_t223948603;
// System.Delegate[]
struct DelegateU5BU5D_t1703627840;
// System.Reflection.MemberFilter
struct MemberFilter_t426314064;
// System.Reflection.Binder
struct Binder_t2999457153;
// System.Runtime.InteropServices.MarshalAsAttribute
struct MarshalAsAttribute_t3522571978;
// System.Reflection.TypeFilter
struct TypeFilter_t2356120900;
// System.IAsyncResult
struct IAsyncResult_t767004451;
// System.AsyncCallback
struct AsyncCallback_t3962456242;
extern RuntimeClass* Expression_t1588164026_il2cpp_TypeInfo_var;
extern RuntimeClass* IDynamicMetaObjectProvider_t2114558714_il2cpp_TypeInfo_var;
extern const uint32_t DynamicUtils_GetDynamicMemberNames_m2947149931_MetadataUsageId;
extern RuntimeClass* CSharpArgumentInfoU5BU5D_t4281174474_il2cpp_TypeInfo_var;
extern RuntimeClass* CSharpArgumentInfo_t1152531755_il2cpp_TypeInfo_var;
extern const uint32_t BinderWrapper_GetMember_m821812292_MetadataUsageId;
extern const uint32_t BinderWrapper_SetMember_m63885457_MetadataUsageId;
extern const RuntimeType* EnumMemberAttribute_t1084128815_0_0_0_var;
extern RuntimeClass* StringComparer_t3301955079_il2cpp_TypeInfo_var;
extern RuntimeClass* BidirectionalDictionary_2_t787053467_il2cpp_TypeInfo_var;
extern RuntimeClass* TypeExtensions_t264900522_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerable_1_t3161555474_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerator_1_t319305757_il2cpp_TypeInfo_var;
extern RuntimeClass* Type_t_il2cpp_TypeInfo_var;
extern RuntimeClass* U3CU3Ec_t2360567884_il2cpp_TypeInfo_var;
extern RuntimeClass* Func_2_t2419460300_il2cpp_TypeInfo_var;
extern RuntimeClass* CultureInfo_t4157843068_il2cpp_TypeInfo_var;
extern RuntimeClass* InvalidOperationException_t56020091_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerator_t1853284238_il2cpp_TypeInfo_var;
extern RuntimeClass* IDisposable_t3640265483_il2cpp_TypeInfo_var;
extern const RuntimeMethod* BidirectionalDictionary_2__ctor_m58546930_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Cast_TisEnumMemberAttribute_t1084128815_m843212694_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec_U3CInitializeEnumTypeU3Eb__1_0_m76424380_RuntimeMethod_var;
extern const RuntimeMethod* Func_2__ctor_m1969356281_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Select_TisEnumMemberAttribute_t1084128815_TisString_t_m3180131537_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_SingleOrDefault_TisString_t_m4035470101_RuntimeMethod_var;
extern const RuntimeMethod* BidirectionalDictionary_2_TryGetBySecond_m954730245_RuntimeMethod_var;
extern const RuntimeMethod* EnumUtils_InitializeEnumType_m3064468690_RuntimeMethod_var;
extern const RuntimeMethod* BidirectionalDictionary_2_Set_m3266748649_RuntimeMethod_var;
extern String_t* _stringLiteral2810825232;
extern const uint32_t EnumUtils_InitializeEnumType_m3064468690_MetadataUsageId;
extern RuntimeClass* ArgumentException_t132251570_il2cpp_TypeInfo_var;
extern RuntimeClass* List_1_t257213610_il2cpp_TypeInfo_var;
extern RuntimeClass* Func_2_t1761491126_il2cpp_TypeInfo_var;
extern const RuntimeMethod* EnumUtils_GetValues_m1997494740_RuntimeMethod_var;
extern const RuntimeMethod* List_1__ctor_m2321703786_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec_U3CGetValuesU3Eb__5_0_m762110753_RuntimeMethod_var;
extern const RuntimeMethod* Func_2__ctor_m3933480653_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Where_TisFieldInfo_t_m2487357973_RuntimeMethod_var;
extern const RuntimeMethod* List_1_Add_m3338814081_RuntimeMethod_var;
extern String_t* _stringLiteral2097671996;
extern String_t* _stringLiteral2532280278;
extern const uint32_t EnumUtils_GetValues_m1997494740_MetadataUsageId;
extern RuntimeClass* Func_2_t1251018457_il2cpp_TypeInfo_var;
extern RuntimeClass* ThreadSafeStore_2_t4165332627_il2cpp_TypeInfo_var;
extern RuntimeClass* EnumUtils_t2002471470_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Func_2__ctor_m1138174753_RuntimeMethod_var;
extern const RuntimeMethod* ThreadSafeStore_2__ctor_m769843296_RuntimeMethod_var;
extern const uint32_t EnumUtils__cctor_m3466973508_MetadataUsageId;
extern const uint32_t U3CU3Ec__cctor_m712977655_MetadataUsageId;
extern RuntimeClass* ExpressionReflectionDelegateFactory_t3044714092_il2cpp_TypeInfo_var;
extern const uint32_t ExpressionReflectionDelegateFactory_get_Instance_m2194272564_MetadataUsageId;
extern const RuntimeType* RuntimeObject_0_0_0_var;
extern const RuntimeType* ObjectU5BU5D_t2843939325_0_0_0_var;
extern const RuntimeType* ObjectConstructor_1_t3207922868_0_0_0_var;
extern RuntimeClass* ParameterExpressionU5BU5D_t2413162029_il2cpp_TypeInfo_var;
extern RuntimeClass* ObjectConstructor_1_t3207922868_il2cpp_TypeInfo_var;
extern String_t* _stringLiteral414301358;
extern String_t* _stringLiteral728803974;
extern const uint32_t ExpressionReflectionDelegateFactory_CreateParameterizedConstructor_m3015126226_MetadataUsageId;
extern const RuntimeType* Void_t1185182177_0_0_0_var;
extern RuntimeClass* ExpressionU5BU5D_t2266720799_il2cpp_TypeInfo_var;
extern RuntimeClass* List_1_t4069346525_il2cpp_TypeInfo_var;
extern RuntimeClass* Int32_t2950945753_il2cpp_TypeInfo_var;
extern RuntimeClass* ByRefParameter_t2597271783_il2cpp_TypeInfo_var;
extern RuntimeClass* ICollection_1_t1130456721_il2cpp_TypeInfo_var;
extern RuntimeClass* ConstructorInfo_t5769829_il2cpp_TypeInfo_var;
extern RuntimeClass* MethodInfo_t_il2cpp_TypeInfo_var;
extern RuntimeClass* List_1_t2590496826_il2cpp_TypeInfo_var;
extern RuntimeClass* List_1_t3060238768_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerable_1_t1577124672_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerator_1_t3029842251_il2cpp_TypeInfo_var;
extern RuntimeClass* ICollection_1_t121348964_il2cpp_TypeInfo_var;
extern RuntimeClass* ICollection_1_t3946574318_il2cpp_TypeInfo_var;
extern const RuntimeMethod* List_1__ctor_m243543808_RuntimeMethod_var;
extern const RuntimeMethod* List_1__ctor_m4094288014_RuntimeMethod_var;
extern const RuntimeMethod* List_1__ctor_m4116858772_RuntimeMethod_var;
extern const uint32_t ExpressionReflectionDelegateFactory_BuildMethodCall_m3034515324_MetadataUsageId;
extern const uint32_t ExpressionReflectionDelegateFactory_EnsureCastExpression_m3184564199_MetadataUsageId;
extern const uint32_t ExpressionReflectionDelegateFactory__cctor_m3118070427_MetadataUsageId;
extern const RuntimeMethod* MethodCall_2_Invoke_m386137395_RuntimeMethod_var;
extern const uint32_t FSharpFunction_Invoke_m288720228_MetadataUsageId;
extern RuntimeClass* FSharpUtils_t833536174_il2cpp_TypeInfo_var;
extern const uint32_t FSharpUtils_set_FSharpCoreAssembly_m1794540835_MetadataUsageId;
extern const uint32_t FSharpUtils_get_IsUnion_m3724400576_MetadataUsageId;
extern const uint32_t FSharpUtils_set_IsUnion_m1146927020_MetadataUsageId;
extern const uint32_t FSharpUtils_get_GetUnionCases_m161213611_MetadataUsageId;
extern const uint32_t FSharpUtils_set_GetUnionCases_m3163215751_MetadataUsageId;
extern const uint32_t FSharpUtils_get_PreComputeUnionTagReader_m1777833580_MetadataUsageId;
extern const uint32_t FSharpUtils_set_PreComputeUnionTagReader_m2586219813_MetadataUsageId;
extern const uint32_t FSharpUtils_get_PreComputeUnionReader_m1355674839_MetadataUsageId;
extern const uint32_t FSharpUtils_set_PreComputeUnionReader_m2409024186_MetadataUsageId;
extern const uint32_t FSharpUtils_get_PreComputeUnionConstructor_m3139238732_MetadataUsageId;
extern const uint32_t FSharpUtils_set_PreComputeUnionConstructor_m301096180_MetadataUsageId;
extern const uint32_t FSharpUtils_get_GetUnionCaseInfoDeclaringType_m602979342_MetadataUsageId;
extern const uint32_t FSharpUtils_set_GetUnionCaseInfoDeclaringType_m728957313_MetadataUsageId;
extern const uint32_t FSharpUtils_get_GetUnionCaseInfoName_m3883626289_MetadataUsageId;
extern const uint32_t FSharpUtils_set_GetUnionCaseInfoName_m2416808770_MetadataUsageId;
extern const uint32_t FSharpUtils_get_GetUnionCaseInfoTag_m320318158_MetadataUsageId;
extern const uint32_t FSharpUtils_set_GetUnionCaseInfoTag_m95408090_MetadataUsageId;
extern const uint32_t FSharpUtils_get_GetUnionCaseInfoFields_m2060142814_MetadataUsageId;
extern const uint32_t FSharpUtils_set_GetUnionCaseInfoFields_m559492724_MetadataUsageId;
extern RuntimeClass* JsonTypeReflector_t526591219_il2cpp_TypeInfo_var;
extern const RuntimeMethod* ReflectionDelegateFactory_CreateMethodCall_TisRuntimeObject_m2397225021_RuntimeMethod_var;
extern const RuntimeMethod* ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m3200749786_RuntimeMethod_var;
extern String_t* _stringLiteral2162518746;
extern String_t* _stringLiteral3764671851;
extern String_t* _stringLiteral1640467425;
extern String_t* _stringLiteral1341674351;
extern String_t* _stringLiteral1139406150;
extern String_t* _stringLiteral2284646565;
extern String_t* _stringLiteral3672547367;
extern String_t* _stringLiteral3513292049;
extern String_t* _stringLiteral62725275;
extern String_t* _stringLiteral2862656179;
extern String_t* _stringLiteral2725392681;
extern String_t* _stringLiteral2731568152;
extern String_t* _stringLiteral4117654449;
extern String_t* _stringLiteral209041395;
extern String_t* _stringLiteral2967063848;
extern const uint32_t FSharpUtils_EnsureInitialized_m3964663339_MetadataUsageId;
extern const uint32_t FSharpUtils_GetMethodWithNonPublicFallback_m560151526_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass49_0_t1290877595_il2cpp_TypeInfo_var;
extern RuntimeClass* MethodCall_2_t2845904993_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass49_0_U3CCreateFSharpFuncCallU3Eb__0_m1602203469_RuntimeMethod_var;
extern const RuntimeMethod* MethodCall_2__ctor_m1888034670_RuntimeMethod_var;
extern String_t* _stringLiteral2401610308;
extern const uint32_t FSharpUtils_CreateFSharpFuncCall_m848649464_MetadataUsageId;
extern RuntimeClass* TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var;
extern const uint32_t FSharpUtils_CreateSeq_m916446990_MetadataUsageId;
extern const RuntimeType* FSharpUtils_t833536174_0_0_0_var;
extern String_t* _stringLiteral3115901544;
extern const uint32_t FSharpUtils_CreateMap_m30486044_MetadataUsageId;
extern RuntimeClass* RuntimeObject_il2cpp_TypeInfo_var;
extern const uint32_t FSharpUtils__cctor_m949853073_MetadataUsageId;
extern RuntimeClass* FSharpFunction_t2521769750_il2cpp_TypeInfo_var;
extern const uint32_t U3CU3Ec__DisplayClass49_0_U3CCreateFSharpFuncCallU3Eb__0_m1602203469_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass24_0_t2581071253_il2cpp_TypeInfo_var;
extern RuntimeClass* ImmutableCollectionsUtils_t1187443225_il2cpp_TypeInfo_var;
extern RuntimeClass* Func_2_t3660693786_il2cpp_TypeInfo_var;
extern RuntimeClass* U3CU3Ec_t1160215063_il2cpp_TypeInfo_var;
extern RuntimeClass* Func_2_t3487522507_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass24_0_U3CTryBuildImmutableForArrayContractU3Eb__0_m3747953282_RuntimeMethod_var;
extern const RuntimeMethod* Func_2__ctor_m3706440855_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_FirstOrDefault_TisImmutableCollectionTypeInfo_t3023729701_m959056564_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec_U3CTryBuildImmutableForArrayContractU3Eb__24_1_m1951904024_RuntimeMethod_var;
extern const RuntimeMethod* Func_2__ctor_m1610613808_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_FirstOrDefault_TisMethodInfo_t_m2995442962_RuntimeMethod_var;
extern const uint32_t ImmutableCollectionsUtils_TryBuildImmutableForArrayContract_m2364781196_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass25_0_t4147155194_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass25_0_U3CTryBuildImmutableForDictionaryContractU3Eb__0_m142905130_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec_U3CTryBuildImmutableForDictionaryContractU3Eb__25_1_m1527846207_RuntimeMethod_var;
extern const uint32_t ImmutableCollectionsUtils_TryBuildImmutableForDictionaryContract_m3362888624_MetadataUsageId;
extern RuntimeClass* List_1_t200837147_il2cpp_TypeInfo_var;
extern RuntimeClass* ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var;
extern const RuntimeMethod* List_1__ctor_m3987229414_RuntimeMethod_var;
extern const RuntimeMethod* List_1_Add_m2120795546_RuntimeMethod_var;
extern String_t* _stringLiteral1750465957;
extern String_t* _stringLiteral3085523314;
extern String_t* _stringLiteral4039369550;
extern String_t* _stringLiteral1584236629;
extern String_t* _stringLiteral1570804612;
extern String_t* _stringLiteral1216799084;
extern String_t* _stringLiteral2849607304;
extern String_t* _stringLiteral2161219340;
extern String_t* _stringLiteral3803702388;
extern String_t* _stringLiteral3759023024;
extern String_t* _stringLiteral1349364048;
extern String_t* _stringLiteral3684558125;
extern String_t* _stringLiteral1677940749;
extern String_t* _stringLiteral3842233882;
extern String_t* _stringLiteral3592137729;
extern String_t* _stringLiteral3930192711;
extern String_t* _stringLiteral678685504;
extern String_t* _stringLiteral797115715;
extern String_t* _stringLiteral2217537257;
extern String_t* _stringLiteral2578847608;
extern String_t* _stringLiteral3746828676;
extern const uint32_t ImmutableCollectionsUtils__cctor_m2160828955_MetadataUsageId;
extern const uint32_t U3CU3Ec__cctor_m2098059626_MetadataUsageId;
extern String_t* _stringLiteral2011537708;
extern const uint32_t U3CU3Ec_U3CTryBuildImmutableForArrayContractU3Eb__24_1_m1951904024_MetadataUsageId;
extern const RuntimeType* IEnumerable_1_t1615002100_0_0_0_var;
extern const uint32_t U3CU3Ec_U3CTryBuildImmutableForDictionaryContractU3Eb__25_1_m1527846207_MetadataUsageId;
extern RuntimeClass* BooleanU5BU5D_t2897418192_il2cpp_TypeInfo_var;
extern RuntimeClass* JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var;
extern RuntimeClass* List_1_t811567916_il2cpp_TypeInfo_var;
extern RuntimeClass* ICollection_1_t2167645408_il2cpp_TypeInfo_var;
extern RuntimeClass* CharU5BU5D_t3528271667_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerable_1_t2614313359_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerator_1_t4067030938_il2cpp_TypeInfo_var;
extern const RuntimeMethod* List_1__ctor_m1735334926_RuntimeMethod_var;
extern const RuntimeMethod* List_1_Add_m1266383442_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Union_TisChar_t3634460470_m3294811350_RuntimeMethod_var;
extern RuntimeField* U3CPrivateImplementationDetailsU3E_t3057255369____D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB_15_FieldInfo_var;
extern const uint32_t JavaScriptUtils__cctor_m2960747719_MetadataUsageId;
extern const uint32_t JavaScriptUtils_GetCharEscapeFlags_m2215130569_MetadataUsageId;
extern String_t* _stringLiteral3455498228;
extern String_t* _stringLiteral3454842868;
extern String_t* _stringLiteral3455629300;
extern String_t* _stringLiteral3454318580;
extern String_t* _stringLiteral3454580724;
extern String_t* _stringLiteral3458119668;
extern String_t* _stringLiteral3145209596;
extern String_t* _stringLiteral12320812;
extern String_t* _stringLiteral12255276;
extern String_t* _stringLiteral3450058740;
extern String_t* _stringLiteral3450386420;
extern String_t* _stringLiteral3452614527;
extern const uint32_t JavaScriptUtils_WriteEscapedJavaScriptString_m1556362848_MetadataUsageId;
extern const RuntimeMethod* Nullable_1_get_HasValue_m3898097692_RuntimeMethod_var;
extern const RuntimeMethod* Nullable_1_GetValueOrDefault_m463439517_RuntimeMethod_var;
extern const uint32_t JavaScriptUtils_ToEscapedJavaScriptString_m850540215_MetadataUsageId;
extern RuntimeClass* LateBoundReflectionDelegateFactory_t925499913_il2cpp_TypeInfo_var;
extern const uint32_t LateBoundReflectionDelegateFactory_get_Instance_m3698844514_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass3_0_t1939583362_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass3_0_U3CCreateParameterizedConstructorU3Eb__0_m529644205_RuntimeMethod_var;
extern const RuntimeMethod* ObjectConstructor_1__ctor_m1181679199_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass3_0_U3CCreateParameterizedConstructorU3Eb__1_m526498226_RuntimeMethod_var;
extern const uint32_t LateBoundReflectionDelegateFactory_CreateParameterizedConstructor_m655847845_MetadataUsageId;
extern const uint32_t LateBoundReflectionDelegateFactory__cctor_m3918907285_MetadataUsageId;
extern RuntimeClass* Math_t1671470975_il2cpp_TypeInfo_var;
extern const uint32_t MathUtils_ApproxEquals_m663204704_MetadataUsageId;
extern RuntimeClass* ConvertUtils_t2194062972_il2cpp_TypeInfo_var;
extern RuntimeClass* Convert_t2465617642_il2cpp_TypeInfo_var;
extern RuntimeClass* Double_t594665363_il2cpp_TypeInfo_var;
extern RuntimeClass* Single_t1397266774_il2cpp_TypeInfo_var;
extern RuntimeClass* Decimal_t2948259380_il2cpp_TypeInfo_var;
extern const uint32_t MiscellaneousUtils_ValueEquals_m795470537_MetadataUsageId;
extern RuntimeClass* ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var;
extern String_t* _stringLiteral1502400109;
extern const uint32_t MiscellaneousUtils_CreateArgumentOutOfRangeException_m1064925786_MetadataUsageId;
extern RuntimeClass* String_t_il2cpp_TypeInfo_var;
extern String_t* _stringLiteral2395288344;
extern String_t* _stringLiteral3452614526;
extern const uint32_t MiscellaneousUtils_ToString_m4213282389_MetadataUsageId;
extern RuntimeClass* NoThrowExpressionVisitor_t3642055891_il2cpp_TypeInfo_var;
extern const uint32_t NoThrowExpressionVisitor_VisitConditional_m4050722395_MetadataUsageId;
extern const uint32_t NoThrowExpressionVisitor__cctor_m1704659045_MetadataUsageId;
extern RuntimeClass* PropertyNameTable_t4130830590_il2cpp_TypeInfo_var;
extern const uint32_t PropertyNameTable__cctor_m1564092424_MetadataUsageId;
extern RuntimeClass* EntryU5BU5D_t1995962374_il2cpp_TypeInfo_var;
extern const uint32_t PropertyNameTable__ctor_m727499363_MetadataUsageId;
extern const uint32_t PropertyNameTable_Get_m1245220493_MetadataUsageId;
extern RuntimeClass* ArgumentNullException_t1615371798_il2cpp_TypeInfo_var;
extern const RuntimeMethod* PropertyNameTable_Add_m2811283804_RuntimeMethod_var;
extern String_t* _stringLiteral2600271970;
extern const uint32_t PropertyNameTable_Add_m2811283804_MetadataUsageId;
extern RuntimeClass* Entry_t2924091039_il2cpp_TypeInfo_var;
extern const uint32_t PropertyNameTable_AddEntry_m2687197476_MetadataUsageId;
extern const uint32_t PropertyNameTable_Grow_m2160967313_MetadataUsageId;
extern RuntimeClass* Dictionary_2_t2440663781_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Dictionary_2__ctor_m2127759587_RuntimeMethod_var;
extern const uint32_t ReflectionObject__ctor_m1062647964_MetadataUsageId;
extern RuntimeClass* IDictionary_2_t904515172_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Func_2_Invoke_m3562087266_RuntimeMethod_var;
extern const uint32_t ReflectionObject_GetValue_m2531865869_MetadataUsageId;
extern const uint32_t ReflectionObject_GetType_m2200262811_MetadataUsageId;
extern RuntimeClass* ReflectionObject_t701100009_il2cpp_TypeInfo_var;
extern RuntimeClass* ReflectionUtils_t2669115404_il2cpp_TypeInfo_var;
extern RuntimeClass* U3CU3Ec__DisplayClass13_0_t4294006577_il2cpp_TypeInfo_var;
extern RuntimeClass* ReflectionMember_t2655407482_il2cpp_TypeInfo_var;
extern RuntimeClass* U3CU3Ec__DisplayClass13_1_t1955354417_il2cpp_TypeInfo_var;
extern RuntimeClass* Func_2_t2447130374_il2cpp_TypeInfo_var;
extern RuntimeClass* U3CU3Ec__DisplayClass13_2_t381376305_il2cpp_TypeInfo_var;
extern RuntimeClass* Action_2_t2470008838_il2cpp_TypeInfo_var;
extern RuntimeClass* MemberTypes_t2015719099_il2cpp_TypeInfo_var;
extern const RuntimeMethod* ReflectionDelegateFactory_CreateDefaultConstructor_TisRuntimeObject_m1416164154_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass13_0_U3CCreateU3Eb__0_m376730355_RuntimeMethod_var;
extern const RuntimeMethod* ReflectionObject_Create_m73781573_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Single_TisMemberInfo_t_m851241132_RuntimeMethod_var;
extern const RuntimeMethod* ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m2506523516_RuntimeMethod_var;
extern const RuntimeMethod* ReflectionDelegateFactory_CreateSet_TisRuntimeObject_m2440090338_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass13_1_U3CCreateU3Eb__1_m2235834647_RuntimeMethod_var;
extern const RuntimeMethod* Func_2__ctor_m3860723828_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass13_2_U3CCreateU3Eb__2_m2723401855_RuntimeMethod_var;
extern const RuntimeMethod* Action_2__ctor_m22087660_RuntimeMethod_var;
extern String_t* _stringLiteral2233631454;
extern String_t* _stringLiteral3336955582;
extern const uint32_t ReflectionObject_Create_m73781573_MetadataUsageId;
extern const RuntimeMethod* Func_1_Invoke_m2006563704_RuntimeMethod_var;
extern const uint32_t U3CU3Ec__DisplayClass13_0_U3CCreateU3Eb__0_m376730355_MetadataUsageId;
extern RuntimeClass* ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var;
extern const uint32_t U3CU3Ec__DisplayClass13_1_U3CCreateU3Eb__1_m2235834647_MetadataUsageId;
extern const uint32_t U3CU3Ec__DisplayClass13_2_U3CCreateU3Eb__2_m2723401855_MetadataUsageId;
extern const uint32_t ReflectionUtils__cctor_m1077063625_MetadataUsageId;
extern String_t* _stringLiteral2854063445;
extern const uint32_t ReflectionUtils_IsVirtual_m3338583030_MetadataUsageId;
extern const uint32_t ReflectionUtils_GetBaseDefinition_m628546257_MetadataUsageId;
extern const uint32_t ReflectionUtils_IsPublic_m3896229770_MetadataUsageId;
extern const RuntimeMethod* ReflectionUtils_GetTypeName_m2947614997_RuntimeMethod_var;
extern String_t* _stringLiteral3450517380;
extern String_t* _stringLiteral757602046;
extern const uint32_t ReflectionUtils_GetTypeName_m2947614997_MetadataUsageId;
extern RuntimeClass* StringBuilder_t_il2cpp_TypeInfo_var;
extern const uint32_t ReflectionUtils_RemoveAssemblyDetails_m3671180266_MetadataUsageId;
extern String_t* _stringLiteral3452614604;
extern const uint32_t ReflectionUtils_HasDefaultConstructor_m3011828166_MetadataUsageId;
extern const uint32_t ReflectionUtils_GetDefaultConstructor_m4213349706_MetadataUsageId;
extern RuntimeClass* U3CU3Ec_t3587133118_il2cpp_TypeInfo_var;
extern RuntimeClass* Func_2_t1796590042_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec_U3CGetDefaultConstructorU3Eb__10_0_m1917227267_RuntimeMethod_var;
extern const RuntimeMethod* Func_2__ctor_m2207392731_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_SingleOrDefault_TisConstructorInfo_t5769829_m947313160_RuntimeMethod_var;
extern const uint32_t ReflectionUtils_GetDefaultConstructor_m3042638765_MetadataUsageId;
extern const uint32_t ReflectionUtils_IsNullable_m645225420_MetadataUsageId;
extern const RuntimeType* Nullable_1_t3772285925_0_0_0_var;
extern const uint32_t ReflectionUtils_IsNullableType_m2557784957_MetadataUsageId;
extern const uint32_t ReflectionUtils_EnsureNotNullableType_m3060298386_MetadataUsageId;
extern const uint32_t ReflectionUtils_IsGenericDefinition_m4108214610_MetadataUsageId;
extern const uint32_t ReflectionUtils_ImplementsGenericDefinition_m1481186786_MetadataUsageId;
extern RuntimeClass* IEnumerable_1_t1463797649_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerator_1_t2916515228_il2cpp_TypeInfo_var;
extern const RuntimeMethod* ReflectionUtils_ImplementsGenericDefinition_m2172968317_RuntimeMethod_var;
extern String_t* _stringLiteral3243520166;
extern String_t* _stringLiteral4032246892;
extern String_t* _stringLiteral3302261911;
extern const uint32_t ReflectionUtils_ImplementsGenericDefinition_m2172968317_MetadataUsageId;
extern const uint32_t ReflectionUtils_InheritsGenericDefinition_m3900283873_MetadataUsageId;
extern const RuntimeMethod* ReflectionUtils_InheritsGenericDefinition_m626434391_RuntimeMethod_var;
extern String_t* _stringLiteral908082501;
extern String_t* _stringLiteral3820141517;
extern const uint32_t ReflectionUtils_InheritsGenericDefinition_m626434391_MetadataUsageId;
extern const uint32_t ReflectionUtils_InheritsGenericDefinitionInternal_m2113175446_MetadataUsageId;
extern const RuntimeType* IEnumerable_t1941168011_0_0_0_var;
extern RuntimeClass* Exception_t_il2cpp_TypeInfo_var;
extern const RuntimeMethod* ReflectionUtils_GetCollectionItemType_m1243555655_RuntimeMethod_var;
extern String_t* _stringLiteral809145522;
extern const uint32_t ReflectionUtils_GetCollectionItemType_m1243555655_MetadataUsageId;
extern const RuntimeType* IDictionary_2_t3177279192_0_0_0_var;
extern const RuntimeType* IDictionary_t1363984059_0_0_0_var;
extern const RuntimeMethod* ReflectionUtils_GetDictionaryKeyValueTypes_m3140437744_RuntimeMethod_var;
extern String_t* _stringLiteral1925115738;
extern String_t* _stringLiteral2465504375;
extern const uint32_t ReflectionUtils_GetDictionaryKeyValueTypes_m3140437744_MetadataUsageId;
extern RuntimeClass* FieldInfo_t_il2cpp_TypeInfo_var;
extern RuntimeClass* PropertyInfo_t_il2cpp_TypeInfo_var;
extern RuntimeClass* EventInfo_t_il2cpp_TypeInfo_var;
extern const RuntimeMethod* ReflectionUtils_GetMemberUnderlyingType_m841662456_RuntimeMethod_var;
extern String_t* _stringLiteral1586550295;
extern String_t* _stringLiteral328953099;
extern const uint32_t ReflectionUtils_GetMemberUnderlyingType_m841662456_MetadataUsageId;
extern const uint32_t ReflectionUtils_IsIndexedProperty_m3237349032_MetadataUsageId;
extern String_t* _stringLiteral4193571962;
extern const uint32_t ReflectionUtils_IsIndexedProperty_m1455784124_MetadataUsageId;
extern const uint32_t ReflectionUtils_CanReadMemberValue_m1473164796_MetadataUsageId;
extern const uint32_t ReflectionUtils_CanSetMemberValue_m1263216356_MetadataUsageId;
extern RuntimeClass* List_1_t557109187_il2cpp_TypeInfo_var;
extern RuntimeClass* Func_2_t3967597302_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerable_1_t761185857_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerator_1_t2213903436_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerable_1_t2359854630_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerator_1_t3812572209_il2cpp_TypeInfo_var;
extern RuntimeClass* ICollection_1_t1913186679_il2cpp_TypeInfo_var;
extern const RuntimeMethod* List_1__ctor_m2845631487_RuntimeMethod_var;
extern const RuntimeMethod* List_1_AddRange_m2257680807_RuntimeMethod_var;
extern const RuntimeMethod* List_1_get_Count_m2508260589_RuntimeMethod_var;
extern const RuntimeMethod* List_1__ctor_m4045609786_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec_U3CGetFieldsAndPropertiesU3Eb__29_0_m3758209495_RuntimeMethod_var;
extern const RuntimeMethod* Func_2__ctor_m4252472063_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_GroupBy_TisMemberInfo_t_TisString_t_m1303684172_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Count_TisMemberInfo_t_m2833200946_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_ToList_TisMemberInfo_t_m3180374575_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_First_TisMemberInfo_t_m2952260960_RuntimeMethod_var;
extern const RuntimeMethod* List_1_Add_m304598357_RuntimeMethod_var;
extern String_t* _stringLiteral1949155704;
extern const uint32_t ReflectionUtils_GetFieldsAndProperties_m2855589198_MetadataUsageId;
extern const uint32_t ReflectionUtils_IsOverridenGenericMember_m2545602475_MetadataUsageId;
extern RuntimeClass* Assembly_t_il2cpp_TypeInfo_var;
extern RuntimeClass* MemberInfo_t_il2cpp_TypeInfo_var;
extern RuntimeClass* Module_t2987026101_il2cpp_TypeInfo_var;
extern RuntimeClass* ParameterInfo_t1861056598_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Enumerable_ToArray_TisAttribute_t861562559_m1336572644_RuntimeMethod_var;
extern const RuntimeMethod* ReflectionUtils_GetAttributes_m2593182657_RuntimeMethod_var;
extern String_t* _stringLiteral732772559;
extern const uint32_t ReflectionUtils_GetAttributes_m2593182657_MetadataUsageId;
extern RuntimeClass* Func_2_t3692615456_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec_U3CGetMemberInfoFromTypeU3Eb__37_0_m156713168_RuntimeMethod_var;
extern const RuntimeMethod* Func_2__ctor_m249082317_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Select_TisParameterInfo_t1861056598_TisType_t_m1700990983_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_ToArray_TisType_t_m4037995289_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_SingleOrDefault_TisMemberInfo_t_m798163977_RuntimeMethod_var;
extern const uint32_t ReflectionUtils_GetMemberInfoFromType_m1623736994_MetadataUsageId;
extern const RuntimeMethod* List_1__ctor_m832393913_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Cast_TisFieldInfo_t_m1416808529_RuntimeMethod_var;
extern String_t* _stringLiteral3252615044;
extern const uint32_t ReflectionUtils_GetFields_m3475842270_MetadataUsageId;
extern RuntimeClass* List_1_t2159416693_il2cpp_TypeInfo_var;
extern const RuntimeMethod* List_1__ctor_m2781142759_RuntimeMethod_var;
extern const RuntimeMethod* List_1_AddRange_m4242658599_RuntimeMethod_var;
extern const RuntimeMethod* List_1_get_Item_m1771064164_RuntimeMethod_var;
extern const RuntimeMethod* List_1_set_Item_m1136100056_RuntimeMethod_var;
extern const RuntimeMethod* List_1_get_Count_m4158400089_RuntimeMethod_var;
extern const uint32_t ReflectionUtils_GetProperties_m1937919674_MetadataUsageId;
extern RuntimeClass* IEnumerable_1_t3962162136_il2cpp_TypeInfo_var;
extern RuntimeClass* IEnumerator_1_t1119912419_il2cpp_TypeInfo_var;
extern RuntimeClass* U3CU3Ec__DisplayClass41_0_t549567115_il2cpp_TypeInfo_var;
extern RuntimeClass* Func_2_t2377163032_il2cpp_TypeInfo_var;
extern RuntimeClass* ICollection_1_t3515494185_il2cpp_TypeInfo_var;
extern RuntimeClass* IList_1_t2502661734_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass41_0_U3CGetChildPrivatePropertiesU3Eb__0_m3158891196_RuntimeMethod_var;
extern const RuntimeMethod* Func_2__ctor_m3813751571_RuntimeMethod_var;
extern const RuntimeMethod* CollectionUtils_IndexOf_TisPropertyInfo_t_m2841828123_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass41_0_U3CGetChildPrivatePropertiesU3Eb__1_m2333622814_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass41_0_U3CGetChildPrivatePropertiesU3Eb__2_m3720114576_RuntimeMethod_var;
extern const uint32_t ReflectionUtils_GetChildPrivateProperties_m1647043387_MetadataUsageId;
extern RuntimeClass* Boolean_t97287965_il2cpp_TypeInfo_var;
extern RuntimeClass* Int64_t3736567304_il2cpp_TypeInfo_var;
extern RuntimeClass* DateTime_t3738529785_il2cpp_TypeInfo_var;
extern RuntimeClass* Guid_t_il2cpp_TypeInfo_var;
extern RuntimeClass* DateTimeOffset_t3229287507_il2cpp_TypeInfo_var;
extern const uint32_t ReflectionUtils_GetDefaultValue_m3591065878_MetadataUsageId;
extern const uint32_t U3CU3Ec__cctor_m3974653786_MetadataUsageId;
extern const RuntimeMethod* Enumerable_Any_TisParameterInfo_t1861056598_m2308149110_RuntimeMethod_var;
extern const uint32_t U3CU3Ec_U3CGetDefaultConstructorU3Eb__10_0_m1917227267_MetadataUsageId;
extern const uint32_t U3CU3Ec__DisplayClass41_0_U3CGetChildPrivatePropertiesU3Eb__2_m3720114576_MetadataUsageId;
extern const uint32_t StringBuffer_t2235727887_pinvoke_FromNativeMethodDefinition_MetadataUsageId;
extern const uint32_t StringBuffer_t2235727887_com_FromNativeMethodDefinition_MetadataUsageId;
extern const uint32_t StringReference_t2912309144_pinvoke_FromNativeMethodDefinition_MetadataUsageId;
extern const uint32_t StringReference_t2912309144_com_FromNativeMethodDefinition_MetadataUsageId;
extern const RuntimeMethod* Array_IndexOf_TisChar_t3634460470_m1523447194_RuntimeMethod_var;
extern const uint32_t StringReferenceExtensions_IndexOf_m2457125624_MetadataUsageId;
extern const uint32_t StringUtils_FormatWith_m3056805521_MetadataUsageId;
extern const uint32_t StringUtils_FormatWith_m353537829_MetadataUsageId;
extern const uint32_t StringUtils_FormatWith_m17931563_MetadataUsageId;
extern const uint32_t StringUtils_FormatWith_m2539955297_MetadataUsageId;
extern String_t* _stringLiteral446157247;
extern const uint32_t StringUtils_FormatWith_m1786611224_MetadataUsageId;
extern RuntimeClass* StringWriter_t802263757_il2cpp_TypeInfo_var;
extern const uint32_t StringUtils_CreateStringWriter_m3876739792_MetadataUsageId;
extern const RuntimeMethod* Nullable_1__ctor_m2962682148_RuntimeMethod_var;
extern const uint32_t StringUtils_GetLength_m3427840909_MetadataUsageId;
extern const uint32_t TypeExtensions_GetGetMethod_m1542366069_MetadataUsageId;
extern const uint32_t TypeExtensions_GetSetMethod_m574838549_MetadataUsageId;
extern const uint32_t TypeExtensions_MemberType_m2046620246_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass19_0_t1131461246_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass19_0_U3CGetPropertyU3Eb__0_m1618760806_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Where_TisPropertyInfo_t_m3804523869_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_SingleOrDefault_TisPropertyInfo_t_m443362051_RuntimeMethod_var;
extern const uint32_t TypeExtensions_GetProperty_m2099548567_MetadataUsageId;
extern const RuntimeMethod* Nullable_1__ctor_m3380486094_RuntimeMethod_var;
extern const uint32_t TypeExtensions_GetMember_m1278713418_MetadataUsageId;
extern const uint32_t TypeExtensions_GetMethod_m3329308827_MetadataUsageId;
extern const uint32_t TypeExtensions_GetMethod_m2693588587_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass27_0_t1152408749_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass27_0_U3CGetMethodU3Eb__0_m3350391101_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Where_TisMethodInfo_t_m1737046122_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_SingleOrDefault_TisMethodInfo_t_m1546770912_RuntimeMethod_var;
extern const uint32_t TypeExtensions_GetMethod_m4219855850_MetadataUsageId;
extern const uint32_t TypeExtensions_GetConstructors_m2840976236_MetadataUsageId;
extern const uint32_t TypeExtensions_GetConstructors_m3290158206_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass30_0_t395628872_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass30_0_U3CGetConstructorsU3Eb__0_m3639680810_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Where_TisConstructorInfo_t5769829_m3502358349_RuntimeMethod_var;
extern const uint32_t TypeExtensions_GetConstructors_m1413194908_MetadataUsageId;
extern const uint32_t TypeExtensions_GetConstructor_m1014186903_MetadataUsageId;
extern const RuntimeMethod* Enumerable_SingleOrDefault_TisConstructorInfo_t5769829_m1246530054_RuntimeMethod_var;
extern const uint32_t TypeExtensions_GetConstructor_m3445485358_MetadataUsageId;
extern const uint32_t TypeExtensions_GetMember_m3247939173_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass35_0_t3498955080_il2cpp_TypeInfo_var;
extern RuntimeClass* Func_2_t2217434578_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass35_0_U3CGetMemberInternalU3Eb__0_m3802384112_RuntimeMethod_var;
extern const RuntimeMethod* Func_2__ctor_m2384193652_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Where_TisMemberInfo_t_m3084826832_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_ToArray_TisMemberInfo_t_m3769393944_RuntimeMethod_var;
extern const uint32_t TypeExtensions_GetMemberInternal_m3246538528_MetadataUsageId;
extern const uint32_t TypeExtensions_GetField_m3452767802_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass38_0_t1924976968_il2cpp_TypeInfo_var;
extern RuntimeClass* BindingFlags_t3509784737_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Enumerable_ToList_TisPropertyInfo_t_m3139056877_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass38_0_U3CGetPropertiesU3Eb__0_m604864516_RuntimeMethod_var;
extern const uint32_t TypeExtensions_GetProperties_m3775878448_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass39_0_t4263629128_il2cpp_TypeInfo_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass39_0_U3CGetMembersRecursiveU3Eb__0_m2056120950_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Any_TisMemberInfo_t_m2467286160_RuntimeMethod_var;
extern const uint32_t TypeExtensions_GetMembersRecursive_m58266544_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass40_0_t798913399_il2cpp_TypeInfo_var;
extern const RuntimeMethod* List_1__ctor_m1816924367_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass40_0_U3CGetPropertiesRecursiveU3Eb__0_m1637646411_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Any_TisPropertyInfo_t_m1608260854_RuntimeMethod_var;
extern const uint32_t TypeExtensions_GetPropertiesRecursive_m150458260_MetadataUsageId;
extern RuntimeClass* List_1_t1358810031_il2cpp_TypeInfo_var;
extern RuntimeClass* U3CU3Ec__DisplayClass41_0_t3137565559_il2cpp_TypeInfo_var;
extern RuntimeClass* ICollection_1_t2714887523_il2cpp_TypeInfo_var;
extern const RuntimeMethod* List_1__ctor_m1135576155_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass41_0_U3CGetFieldsRecursiveU3Eb__0_m1425895027_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_Any_TisFieldInfo_t_m3767954209_RuntimeMethod_var;
extern const uint32_t TypeExtensions_GetFieldsRecursive_m1294857259_MetadataUsageId;
extern const uint32_t TypeExtensions_GetProperty_m777828875_MetadataUsageId;
extern const uint32_t TypeExtensions_GetFields_m2718563494_MetadataUsageId;
extern RuntimeClass* U3CU3Ec__DisplayClass46_0_t1945924471_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Enumerable_ToList_TisFieldInfo_t_m1621873405_RuntimeMethod_var;
extern const RuntimeMethod* U3CU3Ec__DisplayClass46_0_U3CGetFieldsU3Eb__0_m154848375_RuntimeMethod_var;
extern const uint32_t TypeExtensions_GetFields_m1955241202_MetadataUsageId;
extern const uint32_t TypeExtensions_TestAccessibility_m3826617455_MetadataUsageId;
extern RuntimeClass* MethodBase_t_il2cpp_TypeInfo_var;
extern const RuntimeMethod* TypeExtensions_TestAccessibility_m1650814028_RuntimeMethod_var;
extern String_t* _stringLiteral3915385281;
extern const uint32_t TypeExtensions_TestAccessibility_m1650814028_MetadataUsageId;
extern const uint32_t TypeExtensions_TestAccessibility_m1649658994_MetadataUsageId;
extern const uint32_t TypeExtensions_TestAccessibility_m3276524655_MetadataUsageId;
extern const uint32_t TypeExtensions_AssignableToTypeName_m503478083_MetadataUsageId;
extern const uint32_t TypeExtensions_ImplementInterface_m4199275556_MetadataUsageId;
extern const uint32_t TypeExtensions__cctor_m162231158_MetadataUsageId;
extern RuntimeClass* U3CU3Ec_t3984375077_il2cpp_TypeInfo_var;
extern const uint32_t U3CU3Ec__cctor_m2712130729_MetadataUsageId;
extern const RuntimeMethod* U3CU3Ec_U3CGetPropertyU3Eb__19_1_m3919702162_RuntimeMethod_var;
extern const RuntimeMethod* Enumerable_SequenceEqual_TisType_t_m3724055240_RuntimeMethod_var;
extern const uint32_t U3CU3Ec__DisplayClass19_0_U3CGetPropertyU3Eb__0_m1618760806_MetadataUsageId;
extern const RuntimeMethod* U3CU3Ec_U3CGetMethodU3Eb__27_1_m2544709825_RuntimeMethod_var;
extern const uint32_t U3CU3Ec__DisplayClass27_0_U3CGetMethodU3Eb__0_m3350391101_MetadataUsageId;
extern const RuntimeMethod* U3CU3Ec_U3CGetConstructorsU3Eb__30_1_m1576061797_RuntimeMethod_var;
extern const uint32_t U3CU3Ec__DisplayClass30_0_U3CGetConstructorsU3Eb__0_m3639680810_MetadataUsageId;
extern const RuntimeMethod* Nullable_1_get_HasValue_m950793993_RuntimeMethod_var;
extern const RuntimeMethod* Nullable_1_GetValueOrDefault_m1125123534_RuntimeMethod_var;
extern const uint32_t U3CU3Ec__DisplayClass35_0_U3CGetMemberInternalU3Eb__0_m3802384112_MetadataUsageId;
extern const uint32_t U3CU3Ec__DisplayClass38_0_U3CGetPropertiesU3Eb__0_m604864516_MetadataUsageId;
extern const uint32_t U3CU3Ec__DisplayClass46_0_U3CGetFieldsU3Eb__0_m154848375_MetadataUsageId;
extern const RuntimeMethod* ValidationUtils_ArgumentNotNull_m5418296_RuntimeMethod_var;
extern const uint32_t ValidationUtils_ArgumentNotNull_m5418296_MetadataUsageId;
struct Exception_t_marshaled_pinvoke;
struct Exception_t_marshaled_com;
struct CultureInfo_t4157843068_marshaled_pinvoke;
struct CultureData_t1899656083_marshaled_pinvoke;
struct CultureInfo_t4157843068_marshaled_com;
struct CultureData_t1899656083_marshaled_com;
struct Assembly_t_marshaled_pinvoke;
struct Assembly_t_marshaled_com;
struct CSharpArgumentInfoU5BU5D_t4281174474;
struct ParameterExpressionU5BU5D_t2413162029;
struct ParameterInfoU5BU5D_t390618515;
struct ExpressionU5BU5D_t2266720799;
struct ObjectU5BU5D_t2843939325;
struct TypeU5BU5D_t3940880105;
struct BooleanU5BU5D_t2897418192;
struct CharU5BU5D_t3528271667;
struct ByteU5BU5D_t4116647657;
struct EntryU5BU5D_t1995962374;
struct StringU5BU5D_t1281789340;
struct MemberInfoU5BU5D_t1302094432;
struct AttributeU5BU5D_t1575011174;
#ifndef RUNTIMEOBJECT_H
#define RUNTIMEOBJECT_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Object
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RUNTIMEOBJECT_H
#ifndef FSHARPUTILS_T833536174_H
#define FSHARPUTILS_T833536174_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.FSharpUtils
struct FSharpUtils_t833536174 : public RuntimeObject
{
public:
public:
};
struct FSharpUtils_t833536174_StaticFields
{
public:
// System.Object Newtonsoft.Json.Utilities.FSharpUtils::Lock
RuntimeObject * ___Lock_0;
// System.Boolean Newtonsoft.Json.Utilities.FSharpUtils::_initialized
bool ____initialized_1;
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.FSharpUtils::_ofSeq
MethodInfo_t * ____ofSeq_2;
// System.Type Newtonsoft.Json.Utilities.FSharpUtils::_mapType
Type_t * ____mapType_3;
// System.Reflection.Assembly Newtonsoft.Json.Utilities.FSharpUtils::<FSharpCoreAssembly>k__BackingField
Assembly_t * ___U3CFSharpCoreAssemblyU3Ek__BackingField_4;
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::<IsUnion>k__BackingField
MethodCall_2_t2845904993 * ___U3CIsUnionU3Ek__BackingField_5;
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::<GetUnionCases>k__BackingField
MethodCall_2_t2845904993 * ___U3CGetUnionCasesU3Ek__BackingField_6;
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::<PreComputeUnionTagReader>k__BackingField
MethodCall_2_t2845904993 * ___U3CPreComputeUnionTagReaderU3Ek__BackingField_7;
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::<PreComputeUnionReader>k__BackingField
MethodCall_2_t2845904993 * ___U3CPreComputeUnionReaderU3Ek__BackingField_8;
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::<PreComputeUnionConstructor>k__BackingField
MethodCall_2_t2845904993 * ___U3CPreComputeUnionConstructorU3Ek__BackingField_9;
// System.Func`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::<GetUnionCaseInfoDeclaringType>k__BackingField
Func_2_t2447130374 * ___U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10;
// System.Func`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::<GetUnionCaseInfoName>k__BackingField
Func_2_t2447130374 * ___U3CGetUnionCaseInfoNameU3Ek__BackingField_11;
// System.Func`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::<GetUnionCaseInfoTag>k__BackingField
Func_2_t2447130374 * ___U3CGetUnionCaseInfoTagU3Ek__BackingField_12;
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::<GetUnionCaseInfoFields>k__BackingField
MethodCall_2_t2845904993 * ___U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13;
public:
inline static int32_t get_offset_of_Lock_0() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_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((&___Lock_0), value);
}
inline static int32_t get_offset_of__initialized_1() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ____initialized_1)); }
inline bool get__initialized_1() const { return ____initialized_1; }
inline bool* get_address_of__initialized_1() { return &____initialized_1; }
inline void set__initialized_1(bool value)
{
____initialized_1 = value;
}
inline static int32_t get_offset_of__ofSeq_2() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ____ofSeq_2)); }
inline MethodInfo_t * get__ofSeq_2() const { return ____ofSeq_2; }
inline MethodInfo_t ** get_address_of__ofSeq_2() { return &____ofSeq_2; }
inline void set__ofSeq_2(MethodInfo_t * value)
{
____ofSeq_2 = value;
Il2CppCodeGenWriteBarrier((&____ofSeq_2), value);
}
inline static int32_t get_offset_of__mapType_3() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ____mapType_3)); }
inline Type_t * get__mapType_3() const { return ____mapType_3; }
inline Type_t ** get_address_of__mapType_3() { return &____mapType_3; }
inline void set__mapType_3(Type_t * value)
{
____mapType_3 = value;
Il2CppCodeGenWriteBarrier((&____mapType_3), value);
}
inline static int32_t get_offset_of_U3CFSharpCoreAssemblyU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ___U3CFSharpCoreAssemblyU3Ek__BackingField_4)); }
inline Assembly_t * get_U3CFSharpCoreAssemblyU3Ek__BackingField_4() const { return ___U3CFSharpCoreAssemblyU3Ek__BackingField_4; }
inline Assembly_t ** get_address_of_U3CFSharpCoreAssemblyU3Ek__BackingField_4() { return &___U3CFSharpCoreAssemblyU3Ek__BackingField_4; }
inline void set_U3CFSharpCoreAssemblyU3Ek__BackingField_4(Assembly_t * value)
{
___U3CFSharpCoreAssemblyU3Ek__BackingField_4 = value;
Il2CppCodeGenWriteBarrier((&___U3CFSharpCoreAssemblyU3Ek__BackingField_4), value);
}
inline static int32_t get_offset_of_U3CIsUnionU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ___U3CIsUnionU3Ek__BackingField_5)); }
inline MethodCall_2_t2845904993 * get_U3CIsUnionU3Ek__BackingField_5() const { return ___U3CIsUnionU3Ek__BackingField_5; }
inline MethodCall_2_t2845904993 ** get_address_of_U3CIsUnionU3Ek__BackingField_5() { return &___U3CIsUnionU3Ek__BackingField_5; }
inline void set_U3CIsUnionU3Ek__BackingField_5(MethodCall_2_t2845904993 * value)
{
___U3CIsUnionU3Ek__BackingField_5 = value;
Il2CppCodeGenWriteBarrier((&___U3CIsUnionU3Ek__BackingField_5), value);
}
inline static int32_t get_offset_of_U3CGetUnionCasesU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ___U3CGetUnionCasesU3Ek__BackingField_6)); }
inline MethodCall_2_t2845904993 * get_U3CGetUnionCasesU3Ek__BackingField_6() const { return ___U3CGetUnionCasesU3Ek__BackingField_6; }
inline MethodCall_2_t2845904993 ** get_address_of_U3CGetUnionCasesU3Ek__BackingField_6() { return &___U3CGetUnionCasesU3Ek__BackingField_6; }
inline void set_U3CGetUnionCasesU3Ek__BackingField_6(MethodCall_2_t2845904993 * value)
{
___U3CGetUnionCasesU3Ek__BackingField_6 = value;
Il2CppCodeGenWriteBarrier((&___U3CGetUnionCasesU3Ek__BackingField_6), value);
}
inline static int32_t get_offset_of_U3CPreComputeUnionTagReaderU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ___U3CPreComputeUnionTagReaderU3Ek__BackingField_7)); }
inline MethodCall_2_t2845904993 * get_U3CPreComputeUnionTagReaderU3Ek__BackingField_7() const { return ___U3CPreComputeUnionTagReaderU3Ek__BackingField_7; }
inline MethodCall_2_t2845904993 ** get_address_of_U3CPreComputeUnionTagReaderU3Ek__BackingField_7() { return &___U3CPreComputeUnionTagReaderU3Ek__BackingField_7; }
inline void set_U3CPreComputeUnionTagReaderU3Ek__BackingField_7(MethodCall_2_t2845904993 * value)
{
___U3CPreComputeUnionTagReaderU3Ek__BackingField_7 = value;
Il2CppCodeGenWriteBarrier((&___U3CPreComputeUnionTagReaderU3Ek__BackingField_7), value);
}
inline static int32_t get_offset_of_U3CPreComputeUnionReaderU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ___U3CPreComputeUnionReaderU3Ek__BackingField_8)); }
inline MethodCall_2_t2845904993 * get_U3CPreComputeUnionReaderU3Ek__BackingField_8() const { return ___U3CPreComputeUnionReaderU3Ek__BackingField_8; }
inline MethodCall_2_t2845904993 ** get_address_of_U3CPreComputeUnionReaderU3Ek__BackingField_8() { return &___U3CPreComputeUnionReaderU3Ek__BackingField_8; }
inline void set_U3CPreComputeUnionReaderU3Ek__BackingField_8(MethodCall_2_t2845904993 * value)
{
___U3CPreComputeUnionReaderU3Ek__BackingField_8 = value;
Il2CppCodeGenWriteBarrier((&___U3CPreComputeUnionReaderU3Ek__BackingField_8), value);
}
inline static int32_t get_offset_of_U3CPreComputeUnionConstructorU3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ___U3CPreComputeUnionConstructorU3Ek__BackingField_9)); }
inline MethodCall_2_t2845904993 * get_U3CPreComputeUnionConstructorU3Ek__BackingField_9() const { return ___U3CPreComputeUnionConstructorU3Ek__BackingField_9; }
inline MethodCall_2_t2845904993 ** get_address_of_U3CPreComputeUnionConstructorU3Ek__BackingField_9() { return &___U3CPreComputeUnionConstructorU3Ek__BackingField_9; }
inline void set_U3CPreComputeUnionConstructorU3Ek__BackingField_9(MethodCall_2_t2845904993 * value)
{
___U3CPreComputeUnionConstructorU3Ek__BackingField_9 = value;
Il2CppCodeGenWriteBarrier((&___U3CPreComputeUnionConstructorU3Ek__BackingField_9), value);
}
inline static int32_t get_offset_of_U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ___U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10)); }
inline Func_2_t2447130374 * get_U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10() const { return ___U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10; }
inline Func_2_t2447130374 ** get_address_of_U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10() { return &___U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10; }
inline void set_U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10(Func_2_t2447130374 * value)
{
___U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10 = value;
Il2CppCodeGenWriteBarrier((&___U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10), value);
}
inline static int32_t get_offset_of_U3CGetUnionCaseInfoNameU3Ek__BackingField_11() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ___U3CGetUnionCaseInfoNameU3Ek__BackingField_11)); }
inline Func_2_t2447130374 * get_U3CGetUnionCaseInfoNameU3Ek__BackingField_11() const { return ___U3CGetUnionCaseInfoNameU3Ek__BackingField_11; }
inline Func_2_t2447130374 ** get_address_of_U3CGetUnionCaseInfoNameU3Ek__BackingField_11() { return &___U3CGetUnionCaseInfoNameU3Ek__BackingField_11; }
inline void set_U3CGetUnionCaseInfoNameU3Ek__BackingField_11(Func_2_t2447130374 * value)
{
___U3CGetUnionCaseInfoNameU3Ek__BackingField_11 = value;
Il2CppCodeGenWriteBarrier((&___U3CGetUnionCaseInfoNameU3Ek__BackingField_11), value);
}
inline static int32_t get_offset_of_U3CGetUnionCaseInfoTagU3Ek__BackingField_12() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ___U3CGetUnionCaseInfoTagU3Ek__BackingField_12)); }
inline Func_2_t2447130374 * get_U3CGetUnionCaseInfoTagU3Ek__BackingField_12() const { return ___U3CGetUnionCaseInfoTagU3Ek__BackingField_12; }
inline Func_2_t2447130374 ** get_address_of_U3CGetUnionCaseInfoTagU3Ek__BackingField_12() { return &___U3CGetUnionCaseInfoTagU3Ek__BackingField_12; }
inline void set_U3CGetUnionCaseInfoTagU3Ek__BackingField_12(Func_2_t2447130374 * value)
{
___U3CGetUnionCaseInfoTagU3Ek__BackingField_12 = value;
Il2CppCodeGenWriteBarrier((&___U3CGetUnionCaseInfoTagU3Ek__BackingField_12), value);
}
inline static int32_t get_offset_of_U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13() { return static_cast<int32_t>(offsetof(FSharpUtils_t833536174_StaticFields, ___U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13)); }
inline MethodCall_2_t2845904993 * get_U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13() const { return ___U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13; }
inline MethodCall_2_t2845904993 ** get_address_of_U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13() { return &___U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13; }
inline void set_U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13(MethodCall_2_t2845904993 * value)
{
___U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13 = value;
Il2CppCodeGenWriteBarrier((&___U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FSHARPUTILS_T833536174_H
#ifndef U3CU3EC_T3587133118_H
#define U3CU3EC_T3587133118_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ReflectionUtils/<>c
struct U3CU3Ec_t3587133118 : public RuntimeObject
{
public:
public:
};
struct U3CU3Ec_t3587133118_StaticFields
{
public:
// Newtonsoft.Json.Utilities.ReflectionUtils/<>c Newtonsoft.Json.Utilities.ReflectionUtils/<>c::<>9
U3CU3Ec_t3587133118 * ___U3CU3E9_0;
// System.Func`2<System.Reflection.ConstructorInfo,System.Boolean> Newtonsoft.Json.Utilities.ReflectionUtils/<>c::<>9__10_0
Func_2_t1796590042 * ___U3CU3E9__10_0_1;
// System.Func`2<System.Reflection.MemberInfo,System.String> Newtonsoft.Json.Utilities.ReflectionUtils/<>c::<>9__29_0
Func_2_t3967597302 * ___U3CU3E9__29_0_2;
// System.Func`2<System.Reflection.ParameterInfo,System.Type> Newtonsoft.Json.Utilities.ReflectionUtils/<>c::<>9__37_0
Func_2_t3692615456 * ___U3CU3E9__37_0_3;
public:
inline static int32_t get_offset_of_U3CU3E9_0() { return static_cast<int32_t>(offsetof(U3CU3Ec_t3587133118_StaticFields, ___U3CU3E9_0)); }
inline U3CU3Ec_t3587133118 * get_U3CU3E9_0() const { return ___U3CU3E9_0; }
inline U3CU3Ec_t3587133118 ** get_address_of_U3CU3E9_0() { return &___U3CU3E9_0; }
inline void set_U3CU3E9_0(U3CU3Ec_t3587133118 * value)
{
___U3CU3E9_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9_0), value);
}
inline static int32_t get_offset_of_U3CU3E9__10_0_1() { return static_cast<int32_t>(offsetof(U3CU3Ec_t3587133118_StaticFields, ___U3CU3E9__10_0_1)); }
inline Func_2_t1796590042 * get_U3CU3E9__10_0_1() const { return ___U3CU3E9__10_0_1; }
inline Func_2_t1796590042 ** get_address_of_U3CU3E9__10_0_1() { return &___U3CU3E9__10_0_1; }
inline void set_U3CU3E9__10_0_1(Func_2_t1796590042 * value)
{
___U3CU3E9__10_0_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__10_0_1), value);
}
inline static int32_t get_offset_of_U3CU3E9__29_0_2() { return static_cast<int32_t>(offsetof(U3CU3Ec_t3587133118_StaticFields, ___U3CU3E9__29_0_2)); }
inline Func_2_t3967597302 * get_U3CU3E9__29_0_2() const { return ___U3CU3E9__29_0_2; }
inline Func_2_t3967597302 ** get_address_of_U3CU3E9__29_0_2() { return &___U3CU3E9__29_0_2; }
inline void set_U3CU3E9__29_0_2(Func_2_t3967597302 * value)
{
___U3CU3E9__29_0_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__29_0_2), value);
}
inline static int32_t get_offset_of_U3CU3E9__37_0_3() { return static_cast<int32_t>(offsetof(U3CU3Ec_t3587133118_StaticFields, ___U3CU3E9__37_0_3)); }
inline Func_2_t3692615456 * get_U3CU3E9__37_0_3() const { return ___U3CU3E9__37_0_3; }
inline Func_2_t3692615456 ** get_address_of_U3CU3E9__37_0_3() { return &___U3CU3E9__37_0_3; }
inline void set_U3CU3E9__37_0_3(Func_2_t3692615456 * value)
{
___U3CU3E9__37_0_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__37_0_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC_T3587133118_H
#ifndef EXCEPTION_T_H
#define EXCEPTION_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Exception
struct Exception_t : public RuntimeObject
{
public:
// System.String System.Exception::_className
String_t* ____className_1;
// System.String System.Exception::_message
String_t* ____message_2;
// System.Collections.IDictionary System.Exception::_data
RuntimeObject* ____data_3;
// System.Exception System.Exception::_innerException
Exception_t * ____innerException_4;
// System.String System.Exception::_helpURL
String_t* ____helpURL_5;
// System.Object System.Exception::_stackTrace
RuntimeObject * ____stackTrace_6;
// System.String System.Exception::_stackTraceString
String_t* ____stackTraceString_7;
// System.String System.Exception::_remoteStackTraceString
String_t* ____remoteStackTraceString_8;
// System.Int32 System.Exception::_remoteStackIndex
int32_t ____remoteStackIndex_9;
// System.Object System.Exception::_dynamicMethods
RuntimeObject * ____dynamicMethods_10;
// System.Int32 System.Exception::_HResult
int32_t ____HResult_11;
// System.String System.Exception::_source
String_t* ____source_12;
// System.Runtime.Serialization.SafeSerializationManager System.Exception::_safeSerializationManager
SafeSerializationManager_t2481557153 * ____safeSerializationManager_13;
// System.Diagnostics.StackTrace[] System.Exception::captured_traces
StackTraceU5BU5D_t1169129676* ___captured_traces_14;
// System.IntPtr[] System.Exception::native_trace_ips
IntPtrU5BU5D_t4013366056* ___native_trace_ips_15;
public:
inline static int32_t get_offset_of__className_1() { return static_cast<int32_t>(offsetof(Exception_t, ____className_1)); }
inline String_t* get__className_1() const { return ____className_1; }
inline String_t** get_address_of__className_1() { return &____className_1; }
inline void set__className_1(String_t* value)
{
____className_1 = value;
Il2CppCodeGenWriteBarrier((&____className_1), value);
}
inline static int32_t get_offset_of__message_2() { return static_cast<int32_t>(offsetof(Exception_t, ____message_2)); }
inline String_t* get__message_2() const { return ____message_2; }
inline String_t** get_address_of__message_2() { return &____message_2; }
inline void set__message_2(String_t* value)
{
____message_2 = value;
Il2CppCodeGenWriteBarrier((&____message_2), value);
}
inline static int32_t get_offset_of__data_3() { return static_cast<int32_t>(offsetof(Exception_t, ____data_3)); }
inline RuntimeObject* get__data_3() const { return ____data_3; }
inline RuntimeObject** get_address_of__data_3() { return &____data_3; }
inline void set__data_3(RuntimeObject* value)
{
____data_3 = value;
Il2CppCodeGenWriteBarrier((&____data_3), value);
}
inline static int32_t get_offset_of__innerException_4() { return static_cast<int32_t>(offsetof(Exception_t, ____innerException_4)); }
inline Exception_t * get__innerException_4() const { return ____innerException_4; }
inline Exception_t ** get_address_of__innerException_4() { return &____innerException_4; }
inline void set__innerException_4(Exception_t * value)
{
____innerException_4 = value;
Il2CppCodeGenWriteBarrier((&____innerException_4), value);
}
inline static int32_t get_offset_of__helpURL_5() { return static_cast<int32_t>(offsetof(Exception_t, ____helpURL_5)); }
inline String_t* get__helpURL_5() const { return ____helpURL_5; }
inline String_t** get_address_of__helpURL_5() { return &____helpURL_5; }
inline void set__helpURL_5(String_t* value)
{
____helpURL_5 = value;
Il2CppCodeGenWriteBarrier((&____helpURL_5), value);
}
inline static int32_t get_offset_of__stackTrace_6() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTrace_6)); }
inline RuntimeObject * get__stackTrace_6() const { return ____stackTrace_6; }
inline RuntimeObject ** get_address_of__stackTrace_6() { return &____stackTrace_6; }
inline void set__stackTrace_6(RuntimeObject * value)
{
____stackTrace_6 = value;
Il2CppCodeGenWriteBarrier((&____stackTrace_6), value);
}
inline static int32_t get_offset_of__stackTraceString_7() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTraceString_7)); }
inline String_t* get__stackTraceString_7() const { return ____stackTraceString_7; }
inline String_t** get_address_of__stackTraceString_7() { return &____stackTraceString_7; }
inline void set__stackTraceString_7(String_t* value)
{
____stackTraceString_7 = value;
Il2CppCodeGenWriteBarrier((&____stackTraceString_7), value);
}
inline static int32_t get_offset_of__remoteStackTraceString_8() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackTraceString_8)); }
inline String_t* get__remoteStackTraceString_8() const { return ____remoteStackTraceString_8; }
inline String_t** get_address_of__remoteStackTraceString_8() { return &____remoteStackTraceString_8; }
inline void set__remoteStackTraceString_8(String_t* value)
{
____remoteStackTraceString_8 = value;
Il2CppCodeGenWriteBarrier((&____remoteStackTraceString_8), value);
}
inline static int32_t get_offset_of__remoteStackIndex_9() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackIndex_9)); }
inline int32_t get__remoteStackIndex_9() const { return ____remoteStackIndex_9; }
inline int32_t* get_address_of__remoteStackIndex_9() { return &____remoteStackIndex_9; }
inline void set__remoteStackIndex_9(int32_t value)
{
____remoteStackIndex_9 = value;
}
inline static int32_t get_offset_of__dynamicMethods_10() { return static_cast<int32_t>(offsetof(Exception_t, ____dynamicMethods_10)); }
inline RuntimeObject * get__dynamicMethods_10() const { return ____dynamicMethods_10; }
inline RuntimeObject ** get_address_of__dynamicMethods_10() { return &____dynamicMethods_10; }
inline void set__dynamicMethods_10(RuntimeObject * value)
{
____dynamicMethods_10 = value;
Il2CppCodeGenWriteBarrier((&____dynamicMethods_10), value);
}
inline static int32_t get_offset_of__HResult_11() { return static_cast<int32_t>(offsetof(Exception_t, ____HResult_11)); }
inline int32_t get__HResult_11() const { return ____HResult_11; }
inline int32_t* get_address_of__HResult_11() { return &____HResult_11; }
inline void set__HResult_11(int32_t value)
{
____HResult_11 = value;
}
inline static int32_t get_offset_of__source_12() { return static_cast<int32_t>(offsetof(Exception_t, ____source_12)); }
inline String_t* get__source_12() const { return ____source_12; }
inline String_t** get_address_of__source_12() { return &____source_12; }
inline void set__source_12(String_t* value)
{
____source_12 = value;
Il2CppCodeGenWriteBarrier((&____source_12), value);
}
inline static int32_t get_offset_of__safeSerializationManager_13() { return static_cast<int32_t>(offsetof(Exception_t, ____safeSerializationManager_13)); }
inline SafeSerializationManager_t2481557153 * get__safeSerializationManager_13() const { return ____safeSerializationManager_13; }
inline SafeSerializationManager_t2481557153 ** get_address_of__safeSerializationManager_13() { return &____safeSerializationManager_13; }
inline void set__safeSerializationManager_13(SafeSerializationManager_t2481557153 * value)
{
____safeSerializationManager_13 = value;
Il2CppCodeGenWriteBarrier((&____safeSerializationManager_13), value);
}
inline static int32_t get_offset_of_captured_traces_14() { return static_cast<int32_t>(offsetof(Exception_t, ___captured_traces_14)); }
inline StackTraceU5BU5D_t1169129676* get_captured_traces_14() const { return ___captured_traces_14; }
inline StackTraceU5BU5D_t1169129676** get_address_of_captured_traces_14() { return &___captured_traces_14; }
inline void set_captured_traces_14(StackTraceU5BU5D_t1169129676* value)
{
___captured_traces_14 = value;
Il2CppCodeGenWriteBarrier((&___captured_traces_14), value);
}
inline static int32_t get_offset_of_native_trace_ips_15() { return static_cast<int32_t>(offsetof(Exception_t, ___native_trace_ips_15)); }
inline IntPtrU5BU5D_t4013366056* get_native_trace_ips_15() const { return ___native_trace_ips_15; }
inline IntPtrU5BU5D_t4013366056** get_address_of_native_trace_ips_15() { return &___native_trace_ips_15; }
inline void set_native_trace_ips_15(IntPtrU5BU5D_t4013366056* value)
{
___native_trace_ips_15 = value;
Il2CppCodeGenWriteBarrier((&___native_trace_ips_15), value);
}
};
struct Exception_t_StaticFields
{
public:
// System.Object System.Exception::s_EDILock
RuntimeObject * ___s_EDILock_0;
public:
inline static int32_t get_offset_of_s_EDILock_0() { return static_cast<int32_t>(offsetof(Exception_t_StaticFields, ___s_EDILock_0)); }
inline RuntimeObject * get_s_EDILock_0() const { return ___s_EDILock_0; }
inline RuntimeObject ** get_address_of_s_EDILock_0() { return &___s_EDILock_0; }
inline void set_s_EDILock_0(RuntimeObject * value)
{
___s_EDILock_0 = value;
Il2CppCodeGenWriteBarrier((&___s_EDILock_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Exception
struct Exception_t_marshaled_pinvoke
{
char* ____className_1;
char* ____message_2;
RuntimeObject* ____data_3;
Exception_t_marshaled_pinvoke* ____innerException_4;
char* ____helpURL_5;
Il2CppIUnknown* ____stackTrace_6;
char* ____stackTraceString_7;
char* ____remoteStackTraceString_8;
int32_t ____remoteStackIndex_9;
Il2CppIUnknown* ____dynamicMethods_10;
int32_t ____HResult_11;
char* ____source_12;
SafeSerializationManager_t2481557153 * ____safeSerializationManager_13;
StackTraceU5BU5D_t1169129676* ___captured_traces_14;
intptr_t* ___native_trace_ips_15;
};
// Native definition for COM marshalling of System.Exception
struct Exception_t_marshaled_com
{
Il2CppChar* ____className_1;
Il2CppChar* ____message_2;
RuntimeObject* ____data_3;
Exception_t_marshaled_com* ____innerException_4;
Il2CppChar* ____helpURL_5;
Il2CppIUnknown* ____stackTrace_6;
Il2CppChar* ____stackTraceString_7;
Il2CppChar* ____remoteStackTraceString_8;
int32_t ____remoteStackIndex_9;
Il2CppIUnknown* ____dynamicMethods_10;
int32_t ____HResult_11;
Il2CppChar* ____source_12;
SafeSerializationManager_t2481557153 * ____safeSerializationManager_13;
StackTraceU5BU5D_t1169129676* ___captured_traces_14;
intptr_t* ___native_trace_ips_15;
};
#endif // EXCEPTION_T_H
#ifndef FSHARPFUNCTION_T2521769750_H
#define FSHARPFUNCTION_T2521769750_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.FSharpFunction
struct FSharpFunction_t2521769750 : public RuntimeObject
{
public:
// System.Object Newtonsoft.Json.Utilities.FSharpFunction::_instance
RuntimeObject * ____instance_0;
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpFunction::_invoker
MethodCall_2_t2845904993 * ____invoker_1;
public:
inline static int32_t get_offset_of__instance_0() { return static_cast<int32_t>(offsetof(FSharpFunction_t2521769750, ____instance_0)); }
inline RuntimeObject * get__instance_0() const { return ____instance_0; }
inline RuntimeObject ** get_address_of__instance_0() { return &____instance_0; }
inline void set__instance_0(RuntimeObject * value)
{
____instance_0 = value;
Il2CppCodeGenWriteBarrier((&____instance_0), value);
}
inline static int32_t get_offset_of__invoker_1() { return static_cast<int32_t>(offsetof(FSharpFunction_t2521769750, ____invoker_1)); }
inline MethodCall_2_t2845904993 * get__invoker_1() const { return ____invoker_1; }
inline MethodCall_2_t2845904993 ** get_address_of__invoker_1() { return &____invoker_1; }
inline void set__invoker_1(MethodCall_2_t2845904993 * value)
{
____invoker_1 = value;
Il2CppCodeGenWriteBarrier((&____invoker_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FSHARPFUNCTION_T2521769750_H
#ifndef STRINGBUILDER_T_H
#define STRINGBUILDER_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Text.StringBuilder
struct StringBuilder_t : public RuntimeObject
{
public:
// System.Char[] System.Text.StringBuilder::m_ChunkChars
CharU5BU5D_t3528271667* ___m_ChunkChars_0;
// System.Text.StringBuilder System.Text.StringBuilder::m_ChunkPrevious
StringBuilder_t * ___m_ChunkPrevious_1;
// System.Int32 System.Text.StringBuilder::m_ChunkLength
int32_t ___m_ChunkLength_2;
// System.Int32 System.Text.StringBuilder::m_ChunkOffset
int32_t ___m_ChunkOffset_3;
// System.Int32 System.Text.StringBuilder::m_MaxCapacity
int32_t ___m_MaxCapacity_4;
public:
inline static int32_t get_offset_of_m_ChunkChars_0() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkChars_0)); }
inline CharU5BU5D_t3528271667* get_m_ChunkChars_0() const { return ___m_ChunkChars_0; }
inline CharU5BU5D_t3528271667** get_address_of_m_ChunkChars_0() { return &___m_ChunkChars_0; }
inline void set_m_ChunkChars_0(CharU5BU5D_t3528271667* value)
{
___m_ChunkChars_0 = value;
Il2CppCodeGenWriteBarrier((&___m_ChunkChars_0), value);
}
inline static int32_t get_offset_of_m_ChunkPrevious_1() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkPrevious_1)); }
inline StringBuilder_t * get_m_ChunkPrevious_1() const { return ___m_ChunkPrevious_1; }
inline StringBuilder_t ** get_address_of_m_ChunkPrevious_1() { return &___m_ChunkPrevious_1; }
inline void set_m_ChunkPrevious_1(StringBuilder_t * value)
{
___m_ChunkPrevious_1 = value;
Il2CppCodeGenWriteBarrier((&___m_ChunkPrevious_1), value);
}
inline static int32_t get_offset_of_m_ChunkLength_2() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkLength_2)); }
inline int32_t get_m_ChunkLength_2() const { return ___m_ChunkLength_2; }
inline int32_t* get_address_of_m_ChunkLength_2() { return &___m_ChunkLength_2; }
inline void set_m_ChunkLength_2(int32_t value)
{
___m_ChunkLength_2 = value;
}
inline static int32_t get_offset_of_m_ChunkOffset_3() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkOffset_3)); }
inline int32_t get_m_ChunkOffset_3() const { return ___m_ChunkOffset_3; }
inline int32_t* get_address_of_m_ChunkOffset_3() { return &___m_ChunkOffset_3; }
inline void set_m_ChunkOffset_3(int32_t value)
{
___m_ChunkOffset_3 = value;
}
inline static int32_t get_offset_of_m_MaxCapacity_4() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_MaxCapacity_4)); }
inline int32_t get_m_MaxCapacity_4() const { return ___m_MaxCapacity_4; }
inline int32_t* get_address_of_m_MaxCapacity_4() { return &___m_MaxCapacity_4; }
inline void set_m_MaxCapacity_4(int32_t value)
{
___m_MaxCapacity_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STRINGBUILDER_T_H
#ifndef U3CU3EC__DISPLAYCLASS49_0_T1290877595_H
#define U3CU3EC__DISPLAYCLASS49_0_T1290877595_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.FSharpUtils/<>c__DisplayClass49_0
struct U3CU3Ec__DisplayClass49_0_t1290877595 : public RuntimeObject
{
public:
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils/<>c__DisplayClass49_0::call
MethodCall_2_t2845904993 * ___call_0;
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils/<>c__DisplayClass49_0::invoke
MethodCall_2_t2845904993 * ___invoke_1;
public:
inline static int32_t get_offset_of_call_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass49_0_t1290877595, ___call_0)); }
inline MethodCall_2_t2845904993 * get_call_0() const { return ___call_0; }
inline MethodCall_2_t2845904993 ** get_address_of_call_0() { return &___call_0; }
inline void set_call_0(MethodCall_2_t2845904993 * value)
{
___call_0 = value;
Il2CppCodeGenWriteBarrier((&___call_0), value);
}
inline static int32_t get_offset_of_invoke_1() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass49_0_t1290877595, ___invoke_1)); }
inline MethodCall_2_t2845904993 * get_invoke_1() const { return ___invoke_1; }
inline MethodCall_2_t2845904993 ** get_address_of_invoke_1() { return &___invoke_1; }
inline void set_invoke_1(MethodCall_2_t2845904993 * value)
{
___invoke_1 = value;
Il2CppCodeGenWriteBarrier((&___invoke_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS49_0_T1290877595_H
#ifndef IMMUTABLECOLLECTIONSUTILS_T1187443225_H
#define IMMUTABLECOLLECTIONSUTILS_T1187443225_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ImmutableCollectionsUtils
struct ImmutableCollectionsUtils_t1187443225 : public RuntimeObject
{
public:
public:
};
struct ImmutableCollectionsUtils_t1187443225_StaticFields
{
public:
// System.Collections.Generic.IList`1<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo> Newtonsoft.Json.Utilities.ImmutableCollectionsUtils::ArrayContractImmutableCollectionDefinitions
RuntimeObject* ___ArrayContractImmutableCollectionDefinitions_0;
// System.Collections.Generic.IList`1<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo> Newtonsoft.Json.Utilities.ImmutableCollectionsUtils::DictionaryContractImmutableCollectionDefinitions
RuntimeObject* ___DictionaryContractImmutableCollectionDefinitions_1;
public:
inline static int32_t get_offset_of_ArrayContractImmutableCollectionDefinitions_0() { return static_cast<int32_t>(offsetof(ImmutableCollectionsUtils_t1187443225_StaticFields, ___ArrayContractImmutableCollectionDefinitions_0)); }
inline RuntimeObject* get_ArrayContractImmutableCollectionDefinitions_0() const { return ___ArrayContractImmutableCollectionDefinitions_0; }
inline RuntimeObject** get_address_of_ArrayContractImmutableCollectionDefinitions_0() { return &___ArrayContractImmutableCollectionDefinitions_0; }
inline void set_ArrayContractImmutableCollectionDefinitions_0(RuntimeObject* value)
{
___ArrayContractImmutableCollectionDefinitions_0 = value;
Il2CppCodeGenWriteBarrier((&___ArrayContractImmutableCollectionDefinitions_0), value);
}
inline static int32_t get_offset_of_DictionaryContractImmutableCollectionDefinitions_1() { return static_cast<int32_t>(offsetof(ImmutableCollectionsUtils_t1187443225_StaticFields, ___DictionaryContractImmutableCollectionDefinitions_1)); }
inline RuntimeObject* get_DictionaryContractImmutableCollectionDefinitions_1() const { return ___DictionaryContractImmutableCollectionDefinitions_1; }
inline RuntimeObject** get_address_of_DictionaryContractImmutableCollectionDefinitions_1() { return &___DictionaryContractImmutableCollectionDefinitions_1; }
inline void set_DictionaryContractImmutableCollectionDefinitions_1(RuntimeObject* value)
{
___DictionaryContractImmutableCollectionDefinitions_1 = value;
Il2CppCodeGenWriteBarrier((&___DictionaryContractImmutableCollectionDefinitions_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // IMMUTABLECOLLECTIONSUTILS_T1187443225_H
#ifndef SERIALIZATIONBINDER_T3983938482_H
#define SERIALIZATIONBINDER_T3983938482_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.SerializationBinder
struct SerializationBinder_t3983938482 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SERIALIZATIONBINDER_T3983938482_H
#ifndef REFLECTIONUTILS_T2669115404_H
#define REFLECTIONUTILS_T2669115404_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ReflectionUtils
struct ReflectionUtils_t2669115404 : public RuntimeObject
{
public:
public:
};
struct ReflectionUtils_t2669115404_StaticFields
{
public:
// System.Type[] Newtonsoft.Json.Utilities.ReflectionUtils::EmptyTypes
TypeU5BU5D_t3940880105* ___EmptyTypes_0;
public:
inline static int32_t get_offset_of_EmptyTypes_0() { return static_cast<int32_t>(offsetof(ReflectionUtils_t2669115404_StaticFields, ___EmptyTypes_0)); }
inline TypeU5BU5D_t3940880105* get_EmptyTypes_0() const { return ___EmptyTypes_0; }
inline TypeU5BU5D_t3940880105** get_address_of_EmptyTypes_0() { return &___EmptyTypes_0; }
inline void set_EmptyTypes_0(TypeU5BU5D_t3940880105* value)
{
___EmptyTypes_0 = value;
Il2CppCodeGenWriteBarrier((&___EmptyTypes_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // REFLECTIONUTILS_T2669115404_H
#ifndef BYREFPARAMETER_T2597271783_H
#define BYREFPARAMETER_T2597271783_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter
struct ByRefParameter_t2597271783 : public RuntimeObject
{
public:
// System.Linq.Expressions.Expression Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter::Value
Expression_t1588164026 * ___Value_0;
// System.Linq.Expressions.ParameterExpression Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter::Variable
ParameterExpression_t1118422084 * ___Variable_1;
// System.Boolean Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter::IsOut
bool ___IsOut_2;
public:
inline static int32_t get_offset_of_Value_0() { return static_cast<int32_t>(offsetof(ByRefParameter_t2597271783, ___Value_0)); }
inline Expression_t1588164026 * get_Value_0() const { return ___Value_0; }
inline Expression_t1588164026 ** get_address_of_Value_0() { return &___Value_0; }
inline void set_Value_0(Expression_t1588164026 * value)
{
___Value_0 = value;
Il2CppCodeGenWriteBarrier((&___Value_0), value);
}
inline static int32_t get_offset_of_Variable_1() { return static_cast<int32_t>(offsetof(ByRefParameter_t2597271783, ___Variable_1)); }
inline ParameterExpression_t1118422084 * get_Variable_1() const { return ___Variable_1; }
inline ParameterExpression_t1118422084 ** get_address_of_Variable_1() { return &___Variable_1; }
inline void set_Variable_1(ParameterExpression_t1118422084 * value)
{
___Variable_1 = value;
Il2CppCodeGenWriteBarrier((&___Variable_1), value);
}
inline static int32_t get_offset_of_IsOut_2() { return static_cast<int32_t>(offsetof(ByRefParameter_t2597271783, ___IsOut_2)); }
inline bool get_IsOut_2() const { return ___IsOut_2; }
inline bool* get_address_of_IsOut_2() { return &___IsOut_2; }
inline void set_IsOut_2(bool value)
{
___IsOut_2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BYREFPARAMETER_T2597271783_H
#ifndef LIST_1_T4069346525_H
#define LIST_1_T4069346525_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.List`1<Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter>
struct List_1_t4069346525 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
ByRefParameterU5BU5D_t1725815710* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t4069346525, ____items_1)); }
inline ByRefParameterU5BU5D_t1725815710* get__items_1() const { return ____items_1; }
inline ByRefParameterU5BU5D_t1725815710** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(ByRefParameterU5BU5D_t1725815710* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((&____items_1), value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t4069346525, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t4069346525, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t4069346525, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((&____syncRoot_4), value);
}
};
struct List_1_t4069346525_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
ByRefParameterU5BU5D_t1725815710* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t4069346525_StaticFields, ____emptyArray_5)); }
inline ByRefParameterU5BU5D_t1725815710* get__emptyArray_5() const { return ____emptyArray_5; }
inline ByRefParameterU5BU5D_t1725815710** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(ByRefParameterU5BU5D_t1725815710* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((&____emptyArray_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LIST_1_T4069346525_H
#ifndef MISCELLANEOUSUTILS_T482436513_H
#define MISCELLANEOUSUTILS_T482436513_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.MiscellaneousUtils
struct MiscellaneousUtils_t482436513 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MISCELLANEOUSUTILS_T482436513_H
#ifndef U3CU3EC__DISPLAYCLASS41_0_T549567115_H
#define U3CU3EC__DISPLAYCLASS41_0_T549567115_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ReflectionUtils/<>c__DisplayClass41_0
struct U3CU3Ec__DisplayClass41_0_t549567115 : public RuntimeObject
{
public:
// System.Reflection.PropertyInfo Newtonsoft.Json.Utilities.ReflectionUtils/<>c__DisplayClass41_0::subTypeProperty
PropertyInfo_t * ___subTypeProperty_0;
public:
inline static int32_t get_offset_of_subTypeProperty_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass41_0_t549567115, ___subTypeProperty_0)); }
inline PropertyInfo_t * get_subTypeProperty_0() const { return ___subTypeProperty_0; }
inline PropertyInfo_t ** get_address_of_subTypeProperty_0() { return &___subTypeProperty_0; }
inline void set_subTypeProperty_0(PropertyInfo_t * value)
{
___subTypeProperty_0 = value;
Il2CppCodeGenWriteBarrier((&___subTypeProperty_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS41_0_T549567115_H
#ifndef LIST_1_T2159416693_H
#define LIST_1_T2159416693_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.List`1<System.Reflection.PropertyInfo>
struct List_1_t2159416693 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
PropertyInfoU5BU5D_t1461822886* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t2159416693, ____items_1)); }
inline PropertyInfoU5BU5D_t1461822886* get__items_1() const { return ____items_1; }
inline PropertyInfoU5BU5D_t1461822886** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(PropertyInfoU5BU5D_t1461822886* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((&____items_1), value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t2159416693, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t2159416693, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t2159416693, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((&____syncRoot_4), value);
}
};
struct List_1_t2159416693_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
PropertyInfoU5BU5D_t1461822886* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t2159416693_StaticFields, ____emptyArray_5)); }
inline PropertyInfoU5BU5D_t1461822886* get__emptyArray_5() const { return ____emptyArray_5; }
inline PropertyInfoU5BU5D_t1461822886** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(PropertyInfoU5BU5D_t1461822886* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((&____emptyArray_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LIST_1_T2159416693_H
#ifndef LIST_1_T2590496826_H
#define LIST_1_T2590496826_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.List`1<System.Linq.Expressions.ParameterExpression>
struct List_1_t2590496826 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
ParameterExpressionU5BU5D_t2413162029* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t2590496826, ____items_1)); }
inline ParameterExpressionU5BU5D_t2413162029* get__items_1() const { return ____items_1; }
inline ParameterExpressionU5BU5D_t2413162029** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(ParameterExpressionU5BU5D_t2413162029* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((&____items_1), value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t2590496826, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t2590496826, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t2590496826, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((&____syncRoot_4), value);
}
};
struct List_1_t2590496826_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
ParameterExpressionU5BU5D_t2413162029* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t2590496826_StaticFields, ____emptyArray_5)); }
inline ParameterExpressionU5BU5D_t2413162029* get__emptyArray_5() const { return ____emptyArray_5; }
inline ParameterExpressionU5BU5D_t2413162029** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(ParameterExpressionU5BU5D_t2413162029* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((&____emptyArray_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LIST_1_T2590496826_H
#ifndef LIST_1_T3060238768_H
#define LIST_1_T3060238768_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.List`1<System.Linq.Expressions.Expression>
struct List_1_t3060238768 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
ExpressionU5BU5D_t2266720799* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t3060238768, ____items_1)); }
inline ExpressionU5BU5D_t2266720799* get__items_1() const { return ____items_1; }
inline ExpressionU5BU5D_t2266720799** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(ExpressionU5BU5D_t2266720799* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((&____items_1), value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t3060238768, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t3060238768, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t3060238768, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((&____syncRoot_4), value);
}
};
struct List_1_t3060238768_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
ExpressionU5BU5D_t2266720799* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t3060238768_StaticFields, ____emptyArray_5)); }
inline ExpressionU5BU5D_t2266720799* get__emptyArray_5() const { return ____emptyArray_5; }
inline ExpressionU5BU5D_t2266720799** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(ExpressionU5BU5D_t2266720799* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((&____emptyArray_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LIST_1_T3060238768_H
#ifndef ATTRIBUTE_T861562559_H
#define ATTRIBUTE_T861562559_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Attribute
struct Attribute_t861562559 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ATTRIBUTE_T861562559_H
#ifndef LIST_1_T557109187_H
#define LIST_1_T557109187_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.List`1<System.Reflection.MemberInfo>
struct List_1_t557109187 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
MemberInfoU5BU5D_t1302094432* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t557109187, ____items_1)); }
inline MemberInfoU5BU5D_t1302094432* get__items_1() const { return ____items_1; }
inline MemberInfoU5BU5D_t1302094432** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(MemberInfoU5BU5D_t1302094432* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((&____items_1), value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t557109187, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t557109187, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t557109187, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((&____syncRoot_4), value);
}
};
struct List_1_t557109187_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
MemberInfoU5BU5D_t1302094432* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t557109187_StaticFields, ____emptyArray_5)); }
inline MemberInfoU5BU5D_t1302094432* get__emptyArray_5() const { return ____emptyArray_5; }
inline MemberInfoU5BU5D_t1302094432** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(MemberInfoU5BU5D_t1302094432* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((&____emptyArray_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LIST_1_T557109187_H
#ifndef U3CU3EC__DISPLAYCLASS24_0_T2581071253_H
#define U3CU3EC__DISPLAYCLASS24_0_T2581071253_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass24_0
struct U3CU3Ec__DisplayClass24_0_t2581071253 : public RuntimeObject
{
public:
// System.String Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass24_0::name
String_t* ___name_0;
public:
inline static int32_t get_offset_of_name_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass24_0_t2581071253, ___name_0)); }
inline String_t* get_name_0() const { return ___name_0; }
inline String_t** get_address_of_name_0() { return &___name_0; }
inline void set_name_0(String_t* value)
{
___name_0 = value;
Il2CppCodeGenWriteBarrier((&___name_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS24_0_T2581071253_H
#ifndef REFLECTIONMEMBER_T2655407482_H
#define REFLECTIONMEMBER_T2655407482_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ReflectionMember
struct ReflectionMember_t2655407482 : public RuntimeObject
{
public:
// System.Type Newtonsoft.Json.Utilities.ReflectionMember::<MemberType>k__BackingField
Type_t * ___U3CMemberTypeU3Ek__BackingField_0;
// System.Func`2<System.Object,System.Object> Newtonsoft.Json.Utilities.ReflectionMember::<Getter>k__BackingField
Func_2_t2447130374 * ___U3CGetterU3Ek__BackingField_1;
// System.Action`2<System.Object,System.Object> Newtonsoft.Json.Utilities.ReflectionMember::<Setter>k__BackingField
Action_2_t2470008838 * ___U3CSetterU3Ek__BackingField_2;
public:
inline static int32_t get_offset_of_U3CMemberTypeU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(ReflectionMember_t2655407482, ___U3CMemberTypeU3Ek__BackingField_0)); }
inline Type_t * get_U3CMemberTypeU3Ek__BackingField_0() const { return ___U3CMemberTypeU3Ek__BackingField_0; }
inline Type_t ** get_address_of_U3CMemberTypeU3Ek__BackingField_0() { return &___U3CMemberTypeU3Ek__BackingField_0; }
inline void set_U3CMemberTypeU3Ek__BackingField_0(Type_t * value)
{
___U3CMemberTypeU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CMemberTypeU3Ek__BackingField_0), value);
}
inline static int32_t get_offset_of_U3CGetterU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(ReflectionMember_t2655407482, ___U3CGetterU3Ek__BackingField_1)); }
inline Func_2_t2447130374 * get_U3CGetterU3Ek__BackingField_1() const { return ___U3CGetterU3Ek__BackingField_1; }
inline Func_2_t2447130374 ** get_address_of_U3CGetterU3Ek__BackingField_1() { return &___U3CGetterU3Ek__BackingField_1; }
inline void set_U3CGetterU3Ek__BackingField_1(Func_2_t2447130374 * value)
{
___U3CGetterU3Ek__BackingField_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CGetterU3Ek__BackingField_1), value);
}
inline static int32_t get_offset_of_U3CSetterU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(ReflectionMember_t2655407482, ___U3CSetterU3Ek__BackingField_2)); }
inline Action_2_t2470008838 * get_U3CSetterU3Ek__BackingField_2() const { return ___U3CSetterU3Ek__BackingField_2; }
inline Action_2_t2470008838 ** get_address_of_U3CSetterU3Ek__BackingField_2() { return &___U3CSetterU3Ek__BackingField_2; }
inline void set_U3CSetterU3Ek__BackingField_2(Action_2_t2470008838 * value)
{
___U3CSetterU3Ek__BackingField_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CSetterU3Ek__BackingField_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // REFLECTIONMEMBER_T2655407482_H
#ifndef ENTRY_T2924091039_H
#define ENTRY_T2924091039_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.PropertyNameTable/Entry
struct Entry_t2924091039 : public RuntimeObject
{
public:
// System.String Newtonsoft.Json.Utilities.PropertyNameTable/Entry::Value
String_t* ___Value_0;
// System.Int32 Newtonsoft.Json.Utilities.PropertyNameTable/Entry::HashCode
int32_t ___HashCode_1;
// Newtonsoft.Json.Utilities.PropertyNameTable/Entry Newtonsoft.Json.Utilities.PropertyNameTable/Entry::Next
Entry_t2924091039 * ___Next_2;
public:
inline static int32_t get_offset_of_Value_0() { return static_cast<int32_t>(offsetof(Entry_t2924091039, ___Value_0)); }
inline String_t* get_Value_0() const { return ___Value_0; }
inline String_t** get_address_of_Value_0() { return &___Value_0; }
inline void set_Value_0(String_t* value)
{
___Value_0 = value;
Il2CppCodeGenWriteBarrier((&___Value_0), value);
}
inline static int32_t get_offset_of_HashCode_1() { return static_cast<int32_t>(offsetof(Entry_t2924091039, ___HashCode_1)); }
inline int32_t get_HashCode_1() const { return ___HashCode_1; }
inline int32_t* get_address_of_HashCode_1() { return &___HashCode_1; }
inline void set_HashCode_1(int32_t value)
{
___HashCode_1 = value;
}
inline static int32_t get_offset_of_Next_2() { return static_cast<int32_t>(offsetof(Entry_t2924091039, ___Next_2)); }
inline Entry_t2924091039 * get_Next_2() const { return ___Next_2; }
inline Entry_t2924091039 ** get_address_of_Next_2() { return &___Next_2; }
inline void set_Next_2(Entry_t2924091039 * value)
{
___Next_2 = value;
Il2CppCodeGenWriteBarrier((&___Next_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENTRY_T2924091039_H
#ifndef LIST_1_T811567916_H
#define LIST_1_T811567916_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.List`1<System.Char>
struct List_1_t811567916 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
CharU5BU5D_t3528271667* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t811567916, ____items_1)); }
inline CharU5BU5D_t3528271667* get__items_1() const { return ____items_1; }
inline CharU5BU5D_t3528271667** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(CharU5BU5D_t3528271667* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((&____items_1), value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t811567916, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t811567916, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t811567916, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((&____syncRoot_4), value);
}
};
struct List_1_t811567916_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
CharU5BU5D_t3528271667* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t811567916_StaticFields, ____emptyArray_5)); }
inline CharU5BU5D_t3528271667* get__emptyArray_5() const { return ____emptyArray_5; }
inline CharU5BU5D_t3528271667** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(CharU5BU5D_t3528271667* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((&____emptyArray_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LIST_1_T811567916_H
#ifndef REFLECTIONOBJECT_T701100009_H
#define REFLECTIONOBJECT_T701100009_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ReflectionObject
struct ReflectionObject_t701100009 : public RuntimeObject
{
public:
// Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object> Newtonsoft.Json.Utilities.ReflectionObject::<Creator>k__BackingField
ObjectConstructor_1_t3207922868 * ___U3CCreatorU3Ek__BackingField_0;
// System.Collections.Generic.IDictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember> Newtonsoft.Json.Utilities.ReflectionObject::<Members>k__BackingField
RuntimeObject* ___U3CMembersU3Ek__BackingField_1;
public:
inline static int32_t get_offset_of_U3CCreatorU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(ReflectionObject_t701100009, ___U3CCreatorU3Ek__BackingField_0)); }
inline ObjectConstructor_1_t3207922868 * get_U3CCreatorU3Ek__BackingField_0() const { return ___U3CCreatorU3Ek__BackingField_0; }
inline ObjectConstructor_1_t3207922868 ** get_address_of_U3CCreatorU3Ek__BackingField_0() { return &___U3CCreatorU3Ek__BackingField_0; }
inline void set_U3CCreatorU3Ek__BackingField_0(ObjectConstructor_1_t3207922868 * value)
{
___U3CCreatorU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CCreatorU3Ek__BackingField_0), value);
}
inline static int32_t get_offset_of_U3CMembersU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(ReflectionObject_t701100009, ___U3CMembersU3Ek__BackingField_1)); }
inline RuntimeObject* get_U3CMembersU3Ek__BackingField_1() const { return ___U3CMembersU3Ek__BackingField_1; }
inline RuntimeObject** get_address_of_U3CMembersU3Ek__BackingField_1() { return &___U3CMembersU3Ek__BackingField_1; }
inline void set_U3CMembersU3Ek__BackingField_1(RuntimeObject* value)
{
___U3CMembersU3Ek__BackingField_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CMembersU3Ek__BackingField_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // REFLECTIONOBJECT_T701100009_H
#ifndef PROPERTYNAMETABLE_T4130830590_H
#define PROPERTYNAMETABLE_T4130830590_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.PropertyNameTable
struct PropertyNameTable_t4130830590 : public RuntimeObject
{
public:
// System.Int32 Newtonsoft.Json.Utilities.PropertyNameTable::_count
int32_t ____count_1;
// Newtonsoft.Json.Utilities.PropertyNameTable/Entry[] Newtonsoft.Json.Utilities.PropertyNameTable::_entries
EntryU5BU5D_t1995962374* ____entries_2;
// System.Int32 Newtonsoft.Json.Utilities.PropertyNameTable::_mask
int32_t ____mask_3;
public:
inline static int32_t get_offset_of__count_1() { return static_cast<int32_t>(offsetof(PropertyNameTable_t4130830590, ____count_1)); }
inline int32_t get__count_1() const { return ____count_1; }
inline int32_t* get_address_of__count_1() { return &____count_1; }
inline void set__count_1(int32_t value)
{
____count_1 = value;
}
inline static int32_t get_offset_of__entries_2() { return static_cast<int32_t>(offsetof(PropertyNameTable_t4130830590, ____entries_2)); }
inline EntryU5BU5D_t1995962374* get__entries_2() const { return ____entries_2; }
inline EntryU5BU5D_t1995962374** get_address_of__entries_2() { return &____entries_2; }
inline void set__entries_2(EntryU5BU5D_t1995962374* value)
{
____entries_2 = value;
Il2CppCodeGenWriteBarrier((&____entries_2), value);
}
inline static int32_t get_offset_of__mask_3() { return static_cast<int32_t>(offsetof(PropertyNameTable_t4130830590, ____mask_3)); }
inline int32_t get__mask_3() const { return ____mask_3; }
inline int32_t* get_address_of__mask_3() { return &____mask_3; }
inline void set__mask_3(int32_t value)
{
____mask_3 = value;
}
};
struct PropertyNameTable_t4130830590_StaticFields
{
public:
// System.Int32 Newtonsoft.Json.Utilities.PropertyNameTable::HashCodeRandomizer
int32_t ___HashCodeRandomizer_0;
public:
inline static int32_t get_offset_of_HashCodeRandomizer_0() { return static_cast<int32_t>(offsetof(PropertyNameTable_t4130830590_StaticFields, ___HashCodeRandomizer_0)); }
inline int32_t get_HashCodeRandomizer_0() const { return ___HashCodeRandomizer_0; }
inline int32_t* get_address_of_HashCodeRandomizer_0() { return &___HashCodeRandomizer_0; }
inline void set_HashCodeRandomizer_0(int32_t value)
{
___HashCodeRandomizer_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PROPERTYNAMETABLE_T4130830590_H
#ifndef U3CU3EC__DISPLAYCLASS3_0_T1939583362_H
#define U3CU3EC__DISPLAYCLASS3_0_T1939583362_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory/<>c__DisplayClass3_0
struct U3CU3Ec__DisplayClass3_0_t1939583362 : public RuntimeObject
{
public:
// System.Reflection.ConstructorInfo Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory/<>c__DisplayClass3_0::c
ConstructorInfo_t5769829 * ___c_0;
// System.Reflection.MethodBase Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory/<>c__DisplayClass3_0::method
MethodBase_t * ___method_1;
public:
inline static int32_t get_offset_of_c_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass3_0_t1939583362, ___c_0)); }
inline ConstructorInfo_t5769829 * get_c_0() const { return ___c_0; }
inline ConstructorInfo_t5769829 ** get_address_of_c_0() { return &___c_0; }
inline void set_c_0(ConstructorInfo_t5769829 * value)
{
___c_0 = value;
Il2CppCodeGenWriteBarrier((&___c_0), value);
}
inline static int32_t get_offset_of_method_1() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass3_0_t1939583362, ___method_1)); }
inline MethodBase_t * get_method_1() const { return ___method_1; }
inline MethodBase_t ** get_address_of_method_1() { return &___method_1; }
inline void set_method_1(MethodBase_t * value)
{
___method_1 = value;
Il2CppCodeGenWriteBarrier((&___method_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS3_0_T1939583362_H
#ifndef MATHUTILS_T2216308218_H
#define MATHUTILS_T2216308218_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.MathUtils
struct MathUtils_t2216308218 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MATHUTILS_T2216308218_H
#ifndef EXPRESSIONVISITOR_T1561124052_H
#define EXPRESSIONVISITOR_T1561124052_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.ExpressionVisitor
struct ExpressionVisitor_t1561124052 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EXPRESSIONVISITOR_T1561124052_H
#ifndef JSONTOKENUTILS_T2823043526_H
#define JSONTOKENUTILS_T2823043526_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.JsonTokenUtils
struct JsonTokenUtils_t2823043526 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // JSONTOKENUTILS_T2823043526_H
#ifndef U3CU3EC_T1160215063_H
#define U3CU3EC_T1160215063_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c
struct U3CU3Ec_t1160215063 : public RuntimeObject
{
public:
public:
};
struct U3CU3Ec_t1160215063_StaticFields
{
public:
// Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c::<>9
U3CU3Ec_t1160215063 * ___U3CU3E9_0;
// System.Func`2<System.Reflection.MethodInfo,System.Boolean> Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c::<>9__24_1
Func_2_t3487522507 * ___U3CU3E9__24_1_1;
// System.Func`2<System.Reflection.MethodInfo,System.Boolean> Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c::<>9__25_1
Func_2_t3487522507 * ___U3CU3E9__25_1_2;
public:
inline static int32_t get_offset_of_U3CU3E9_0() { return static_cast<int32_t>(offsetof(U3CU3Ec_t1160215063_StaticFields, ___U3CU3E9_0)); }
inline U3CU3Ec_t1160215063 * get_U3CU3E9_0() const { return ___U3CU3E9_0; }
inline U3CU3Ec_t1160215063 ** get_address_of_U3CU3E9_0() { return &___U3CU3E9_0; }
inline void set_U3CU3E9_0(U3CU3Ec_t1160215063 * value)
{
___U3CU3E9_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9_0), value);
}
inline static int32_t get_offset_of_U3CU3E9__24_1_1() { return static_cast<int32_t>(offsetof(U3CU3Ec_t1160215063_StaticFields, ___U3CU3E9__24_1_1)); }
inline Func_2_t3487522507 * get_U3CU3E9__24_1_1() const { return ___U3CU3E9__24_1_1; }
inline Func_2_t3487522507 ** get_address_of_U3CU3E9__24_1_1() { return &___U3CU3E9__24_1_1; }
inline void set_U3CU3E9__24_1_1(Func_2_t3487522507 * value)
{
___U3CU3E9__24_1_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__24_1_1), value);
}
inline static int32_t get_offset_of_U3CU3E9__25_1_2() { return static_cast<int32_t>(offsetof(U3CU3Ec_t1160215063_StaticFields, ___U3CU3E9__25_1_2)); }
inline Func_2_t3487522507 * get_U3CU3E9__25_1_2() const { return ___U3CU3E9__25_1_2; }
inline Func_2_t3487522507 ** get_address_of_U3CU3E9__25_1_2() { return &___U3CU3E9__25_1_2; }
inline void set_U3CU3E9__25_1_2(Func_2_t3487522507 * value)
{
___U3CU3E9__25_1_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__25_1_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC_T1160215063_H
#ifndef U3CU3EC__DISPLAYCLASS13_1_T1955354417_H
#define U3CU3EC__DISPLAYCLASS13_1_T1955354417_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_1
struct U3CU3Ec__DisplayClass13_1_t1955354417 : public RuntimeObject
{
public:
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_1::call
MethodCall_2_t2845904993 * ___call_0;
public:
inline static int32_t get_offset_of_call_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass13_1_t1955354417, ___call_0)); }
inline MethodCall_2_t2845904993 * get_call_0() const { return ___call_0; }
inline MethodCall_2_t2845904993 ** get_address_of_call_0() { return &___call_0; }
inline void set_call_0(MethodCall_2_t2845904993 * value)
{
___call_0 = value;
Il2CppCodeGenWriteBarrier((&___call_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS13_1_T1955354417_H
#ifndef IMMUTABLECOLLECTIONTYPEINFO_T3023729701_H
#define IMMUTABLECOLLECTIONTYPEINFO_T3023729701_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo
struct ImmutableCollectionTypeInfo_t3023729701 : public RuntimeObject
{
public:
// System.String Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::<ContractTypeName>k__BackingField
String_t* ___U3CContractTypeNameU3Ek__BackingField_0;
// System.String Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::<CreatedTypeName>k__BackingField
String_t* ___U3CCreatedTypeNameU3Ek__BackingField_1;
// System.String Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::<BuilderTypeName>k__BackingField
String_t* ___U3CBuilderTypeNameU3Ek__BackingField_2;
public:
inline static int32_t get_offset_of_U3CContractTypeNameU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(ImmutableCollectionTypeInfo_t3023729701, ___U3CContractTypeNameU3Ek__BackingField_0)); }
inline String_t* get_U3CContractTypeNameU3Ek__BackingField_0() const { return ___U3CContractTypeNameU3Ek__BackingField_0; }
inline String_t** get_address_of_U3CContractTypeNameU3Ek__BackingField_0() { return &___U3CContractTypeNameU3Ek__BackingField_0; }
inline void set_U3CContractTypeNameU3Ek__BackingField_0(String_t* value)
{
___U3CContractTypeNameU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CContractTypeNameU3Ek__BackingField_0), value);
}
inline static int32_t get_offset_of_U3CCreatedTypeNameU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(ImmutableCollectionTypeInfo_t3023729701, ___U3CCreatedTypeNameU3Ek__BackingField_1)); }
inline String_t* get_U3CCreatedTypeNameU3Ek__BackingField_1() const { return ___U3CCreatedTypeNameU3Ek__BackingField_1; }
inline String_t** get_address_of_U3CCreatedTypeNameU3Ek__BackingField_1() { return &___U3CCreatedTypeNameU3Ek__BackingField_1; }
inline void set_U3CCreatedTypeNameU3Ek__BackingField_1(String_t* value)
{
___U3CCreatedTypeNameU3Ek__BackingField_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CCreatedTypeNameU3Ek__BackingField_1), value);
}
inline static int32_t get_offset_of_U3CBuilderTypeNameU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(ImmutableCollectionTypeInfo_t3023729701, ___U3CBuilderTypeNameU3Ek__BackingField_2)); }
inline String_t* get_U3CBuilderTypeNameU3Ek__BackingField_2() const { return ___U3CBuilderTypeNameU3Ek__BackingField_2; }
inline String_t** get_address_of_U3CBuilderTypeNameU3Ek__BackingField_2() { return &___U3CBuilderTypeNameU3Ek__BackingField_2; }
inline void set_U3CBuilderTypeNameU3Ek__BackingField_2(String_t* value)
{
___U3CBuilderTypeNameU3Ek__BackingField_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CBuilderTypeNameU3Ek__BackingField_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // IMMUTABLECOLLECTIONTYPEINFO_T3023729701_H
#ifndef U3CU3EC__DISPLAYCLASS13_2_T381376305_H
#define U3CU3EC__DISPLAYCLASS13_2_T381376305_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_2
struct U3CU3Ec__DisplayClass13_2_t381376305 : public RuntimeObject
{
public:
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_2::call
MethodCall_2_t2845904993 * ___call_0;
public:
inline static int32_t get_offset_of_call_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass13_2_t381376305, ___call_0)); }
inline MethodCall_2_t2845904993 * get_call_0() const { return ___call_0; }
inline MethodCall_2_t2845904993 ** get_address_of_call_0() { return &___call_0; }
inline void set_call_0(MethodCall_2_t2845904993 * value)
{
___call_0 = value;
Il2CppCodeGenWriteBarrier((&___call_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS13_2_T381376305_H
#ifndef U3CU3EC__DISPLAYCLASS25_0_T4147155194_H
#define U3CU3EC__DISPLAYCLASS25_0_T4147155194_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass25_0
struct U3CU3Ec__DisplayClass25_0_t4147155194 : public RuntimeObject
{
public:
// System.String Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass25_0::name
String_t* ___name_0;
public:
inline static int32_t get_offset_of_name_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass25_0_t4147155194, ___name_0)); }
inline String_t* get_name_0() const { return ___name_0; }
inline String_t** get_address_of_name_0() { return &___name_0; }
inline void set_name_0(String_t* value)
{
___name_0 = value;
Il2CppCodeGenWriteBarrier((&___name_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS25_0_T4147155194_H
#ifndef U3CU3EC__DISPLAYCLASS13_0_T4294006577_H
#define U3CU3EC__DISPLAYCLASS13_0_T4294006577_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_0
struct U3CU3Ec__DisplayClass13_0_t4294006577 : public RuntimeObject
{
public:
// System.Func`1<System.Object> Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_0::ctor
Func_1_t2509852811 * ___ctor_0;
public:
inline static int32_t get_offset_of_ctor_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass13_0_t4294006577, ___ctor_0)); }
inline Func_1_t2509852811 * get_ctor_0() const { return ___ctor_0; }
inline Func_1_t2509852811 ** get_address_of_ctor_0() { return &___ctor_0; }
inline void set_ctor_0(Func_1_t2509852811 * value)
{
___ctor_0 = value;
Il2CppCodeGenWriteBarrier((&___ctor_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS13_0_T4294006577_H
#ifndef DICTIONARY_2_T2440663781_H
#define DICTIONARY_2_T2440663781_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.Dictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember>
struct Dictionary_2_t2440663781 : public RuntimeObject
{
public:
// System.Int32[] System.Collections.Generic.Dictionary`2::buckets
Int32U5BU5D_t385246372* ___buckets_0;
// System.Collections.Generic.Dictionary`2/Entry<TKey,TValue>[] System.Collections.Generic.Dictionary`2::entries
EntryU5BU5D_t3433651424* ___entries_1;
// System.Int32 System.Collections.Generic.Dictionary`2::count
int32_t ___count_2;
// System.Int32 System.Collections.Generic.Dictionary`2::version
int32_t ___version_3;
// System.Int32 System.Collections.Generic.Dictionary`2::freeList
int32_t ___freeList_4;
// System.Int32 System.Collections.Generic.Dictionary`2::freeCount
int32_t ___freeCount_5;
// System.Collections.Generic.IEqualityComparer`1<TKey> System.Collections.Generic.Dictionary`2::comparer
RuntimeObject* ___comparer_6;
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::keys
KeyCollection_t2630339252 * ___keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t4156708099 * ___values_8;
// System.Object System.Collections.Generic.Dictionary`2::_syncRoot
RuntimeObject * ____syncRoot_9;
public:
inline static int32_t get_offset_of_buckets_0() { return static_cast<int32_t>(offsetof(Dictionary_2_t2440663781, ___buckets_0)); }
inline Int32U5BU5D_t385246372* get_buckets_0() const { return ___buckets_0; }
inline Int32U5BU5D_t385246372** get_address_of_buckets_0() { return &___buckets_0; }
inline void set_buckets_0(Int32U5BU5D_t385246372* value)
{
___buckets_0 = value;
Il2CppCodeGenWriteBarrier((&___buckets_0), value);
}
inline static int32_t get_offset_of_entries_1() { return static_cast<int32_t>(offsetof(Dictionary_2_t2440663781, ___entries_1)); }
inline EntryU5BU5D_t3433651424* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t3433651424** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t3433651424* value)
{
___entries_1 = value;
Il2CppCodeGenWriteBarrier((&___entries_1), value);
}
inline static int32_t get_offset_of_count_2() { return static_cast<int32_t>(offsetof(Dictionary_2_t2440663781, ___count_2)); }
inline int32_t get_count_2() const { return ___count_2; }
inline int32_t* get_address_of_count_2() { return &___count_2; }
inline void set_count_2(int32_t value)
{
___count_2 = value;
}
inline static int32_t get_offset_of_version_3() { return static_cast<int32_t>(offsetof(Dictionary_2_t2440663781, ___version_3)); }
inline int32_t get_version_3() const { return ___version_3; }
inline int32_t* get_address_of_version_3() { return &___version_3; }
inline void set_version_3(int32_t value)
{
___version_3 = value;
}
inline static int32_t get_offset_of_freeList_4() { return static_cast<int32_t>(offsetof(Dictionary_2_t2440663781, ___freeList_4)); }
inline int32_t get_freeList_4() const { return ___freeList_4; }
inline int32_t* get_address_of_freeList_4() { return &___freeList_4; }
inline void set_freeList_4(int32_t value)
{
___freeList_4 = value;
}
inline static int32_t get_offset_of_freeCount_5() { return static_cast<int32_t>(offsetof(Dictionary_2_t2440663781, ___freeCount_5)); }
inline int32_t get_freeCount_5() const { return ___freeCount_5; }
inline int32_t* get_address_of_freeCount_5() { return &___freeCount_5; }
inline void set_freeCount_5(int32_t value)
{
___freeCount_5 = value;
}
inline static int32_t get_offset_of_comparer_6() { return static_cast<int32_t>(offsetof(Dictionary_2_t2440663781, ___comparer_6)); }
inline RuntimeObject* get_comparer_6() const { return ___comparer_6; }
inline RuntimeObject** get_address_of_comparer_6() { return &___comparer_6; }
inline void set_comparer_6(RuntimeObject* value)
{
___comparer_6 = value;
Il2CppCodeGenWriteBarrier((&___comparer_6), value);
}
inline static int32_t get_offset_of_keys_7() { return static_cast<int32_t>(offsetof(Dictionary_2_t2440663781, ___keys_7)); }
inline KeyCollection_t2630339252 * get_keys_7() const { return ___keys_7; }
inline KeyCollection_t2630339252 ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_t2630339252 * value)
{
___keys_7 = value;
Il2CppCodeGenWriteBarrier((&___keys_7), value);
}
inline static int32_t get_offset_of_values_8() { return static_cast<int32_t>(offsetof(Dictionary_2_t2440663781, ___values_8)); }
inline ValueCollection_t4156708099 * get_values_8() const { return ___values_8; }
inline ValueCollection_t4156708099 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t4156708099 * value)
{
___values_8 = value;
Il2CppCodeGenWriteBarrier((&___values_8), value);
}
inline static int32_t get_offset_of__syncRoot_9() { return static_cast<int32_t>(offsetof(Dictionary_2_t2440663781, ____syncRoot_9)); }
inline RuntimeObject * get__syncRoot_9() const { return ____syncRoot_9; }
inline RuntimeObject ** get_address_of__syncRoot_9() { return &____syncRoot_9; }
inline void set__syncRoot_9(RuntimeObject * value)
{
____syncRoot_9 = value;
Il2CppCodeGenWriteBarrier((&____syncRoot_9), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DICTIONARY_2_T2440663781_H
#ifndef LIST_1_T200837147_H
#define LIST_1_T200837147_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.List`1<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo>
struct List_1_t200837147 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
ImmutableCollectionTypeInfoU5BU5D_t2745353640* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t200837147, ____items_1)); }
inline ImmutableCollectionTypeInfoU5BU5D_t2745353640* get__items_1() const { return ____items_1; }
inline ImmutableCollectionTypeInfoU5BU5D_t2745353640** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(ImmutableCollectionTypeInfoU5BU5D_t2745353640* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((&____items_1), value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t200837147, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t200837147, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t200837147, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((&____syncRoot_4), value);
}
};
struct List_1_t200837147_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
ImmutableCollectionTypeInfoU5BU5D_t2745353640* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t200837147_StaticFields, ____emptyArray_5)); }
inline ImmutableCollectionTypeInfoU5BU5D_t2745353640* get__emptyArray_5() const { return ____emptyArray_5; }
inline ImmutableCollectionTypeInfoU5BU5D_t2745353640** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(ImmutableCollectionTypeInfoU5BU5D_t2745353640* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((&____emptyArray_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LIST_1_T200837147_H
#ifndef JAVASCRIPTUTILS_T1108575081_H
#define JAVASCRIPTUTILS_T1108575081_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.JavaScriptUtils
struct JavaScriptUtils_t1108575081 : public RuntimeObject
{
public:
public:
};
struct JavaScriptUtils_t1108575081_StaticFields
{
public:
// System.Boolean[] Newtonsoft.Json.Utilities.JavaScriptUtils::SingleQuoteCharEscapeFlags
BooleanU5BU5D_t2897418192* ___SingleQuoteCharEscapeFlags_0;
// System.Boolean[] Newtonsoft.Json.Utilities.JavaScriptUtils::DoubleQuoteCharEscapeFlags
BooleanU5BU5D_t2897418192* ___DoubleQuoteCharEscapeFlags_1;
// System.Boolean[] Newtonsoft.Json.Utilities.JavaScriptUtils::HtmlCharEscapeFlags
BooleanU5BU5D_t2897418192* ___HtmlCharEscapeFlags_2;
public:
inline static int32_t get_offset_of_SingleQuoteCharEscapeFlags_0() { return static_cast<int32_t>(offsetof(JavaScriptUtils_t1108575081_StaticFields, ___SingleQuoteCharEscapeFlags_0)); }
inline BooleanU5BU5D_t2897418192* get_SingleQuoteCharEscapeFlags_0() const { return ___SingleQuoteCharEscapeFlags_0; }
inline BooleanU5BU5D_t2897418192** get_address_of_SingleQuoteCharEscapeFlags_0() { return &___SingleQuoteCharEscapeFlags_0; }
inline void set_SingleQuoteCharEscapeFlags_0(BooleanU5BU5D_t2897418192* value)
{
___SingleQuoteCharEscapeFlags_0 = value;
Il2CppCodeGenWriteBarrier((&___SingleQuoteCharEscapeFlags_0), value);
}
inline static int32_t get_offset_of_DoubleQuoteCharEscapeFlags_1() { return static_cast<int32_t>(offsetof(JavaScriptUtils_t1108575081_StaticFields, ___DoubleQuoteCharEscapeFlags_1)); }
inline BooleanU5BU5D_t2897418192* get_DoubleQuoteCharEscapeFlags_1() const { return ___DoubleQuoteCharEscapeFlags_1; }
inline BooleanU5BU5D_t2897418192** get_address_of_DoubleQuoteCharEscapeFlags_1() { return &___DoubleQuoteCharEscapeFlags_1; }
inline void set_DoubleQuoteCharEscapeFlags_1(BooleanU5BU5D_t2897418192* value)
{
___DoubleQuoteCharEscapeFlags_1 = value;
Il2CppCodeGenWriteBarrier((&___DoubleQuoteCharEscapeFlags_1), value);
}
inline static int32_t get_offset_of_HtmlCharEscapeFlags_2() { return static_cast<int32_t>(offsetof(JavaScriptUtils_t1108575081_StaticFields, ___HtmlCharEscapeFlags_2)); }
inline BooleanU5BU5D_t2897418192* get_HtmlCharEscapeFlags_2() const { return ___HtmlCharEscapeFlags_2; }
inline BooleanU5BU5D_t2897418192** get_address_of_HtmlCharEscapeFlags_2() { return &___HtmlCharEscapeFlags_2; }
inline void set_HtmlCharEscapeFlags_2(BooleanU5BU5D_t2897418192* value)
{
___HtmlCharEscapeFlags_2 = value;
Il2CppCodeGenWriteBarrier((&___HtmlCharEscapeFlags_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // JAVASCRIPTUTILS_T1108575081_H
#ifndef VALUETYPE_T3640485471_H
#define VALUETYPE_T3640485471_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.ValueType
struct ValueType_t3640485471 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_t3640485471_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_t3640485471_marshaled_com
{
};
#endif // VALUETYPE_T3640485471_H
#ifndef U3CU3EC_T2360567884_H
#define U3CU3EC_T2360567884_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.EnumUtils/<>c
struct U3CU3Ec_t2360567884 : public RuntimeObject
{
public:
public:
};
struct U3CU3Ec_t2360567884_StaticFields
{
public:
// Newtonsoft.Json.Utilities.EnumUtils/<>c Newtonsoft.Json.Utilities.EnumUtils/<>c::<>9
U3CU3Ec_t2360567884 * ___U3CU3E9_0;
// System.Func`2<System.Runtime.Serialization.EnumMemberAttribute,System.String> Newtonsoft.Json.Utilities.EnumUtils/<>c::<>9__1_0
Func_2_t2419460300 * ___U3CU3E9__1_0_1;
// System.Func`2<System.Reflection.FieldInfo,System.Boolean> Newtonsoft.Json.Utilities.EnumUtils/<>c::<>9__5_0
Func_2_t1761491126 * ___U3CU3E9__5_0_2;
public:
inline static int32_t get_offset_of_U3CU3E9_0() { return static_cast<int32_t>(offsetof(U3CU3Ec_t2360567884_StaticFields, ___U3CU3E9_0)); }
inline U3CU3Ec_t2360567884 * get_U3CU3E9_0() const { return ___U3CU3E9_0; }
inline U3CU3Ec_t2360567884 ** get_address_of_U3CU3E9_0() { return &___U3CU3E9_0; }
inline void set_U3CU3E9_0(U3CU3Ec_t2360567884 * value)
{
___U3CU3E9_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9_0), value);
}
inline static int32_t get_offset_of_U3CU3E9__1_0_1() { return static_cast<int32_t>(offsetof(U3CU3Ec_t2360567884_StaticFields, ___U3CU3E9__1_0_1)); }
inline Func_2_t2419460300 * get_U3CU3E9__1_0_1() const { return ___U3CU3E9__1_0_1; }
inline Func_2_t2419460300 ** get_address_of_U3CU3E9__1_0_1() { return &___U3CU3E9__1_0_1; }
inline void set_U3CU3E9__1_0_1(Func_2_t2419460300 * value)
{
___U3CU3E9__1_0_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__1_0_1), value);
}
inline static int32_t get_offset_of_U3CU3E9__5_0_2() { return static_cast<int32_t>(offsetof(U3CU3Ec_t2360567884_StaticFields, ___U3CU3E9__5_0_2)); }
inline Func_2_t1761491126 * get_U3CU3E9__5_0_2() const { return ___U3CU3E9__5_0_2; }
inline Func_2_t1761491126 ** get_address_of_U3CU3E9__5_0_2() { return &___U3CU3E9__5_0_2; }
inline void set_U3CU3E9__5_0_2(Func_2_t1761491126 * value)
{
___U3CU3E9__5_0_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__5_0_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC_T2360567884_H
#ifndef MARSHALBYREFOBJECT_T2760389100_H
#define MARSHALBYREFOBJECT_T2760389100_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.MarshalByRefObject
struct MarshalByRefObject_t2760389100 : public RuntimeObject
{
public:
// System.Runtime.Remoting.ServerIdentity System.MarshalByRefObject::_identity
ServerIdentity_t2342208608 * ____identity_0;
public:
inline static int32_t get_offset_of__identity_0() { return static_cast<int32_t>(offsetof(MarshalByRefObject_t2760389100, ____identity_0)); }
inline ServerIdentity_t2342208608 * get__identity_0() const { return ____identity_0; }
inline ServerIdentity_t2342208608 ** get_address_of__identity_0() { return &____identity_0; }
inline void set__identity_0(ServerIdentity_t2342208608 * value)
{
____identity_0 = value;
Il2CppCodeGenWriteBarrier((&____identity_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.MarshalByRefObject
struct MarshalByRefObject_t2760389100_marshaled_pinvoke
{
ServerIdentity_t2342208608 * ____identity_0;
};
// Native definition for COM marshalling of System.MarshalByRefObject
struct MarshalByRefObject_t2760389100_marshaled_com
{
ServerIdentity_t2342208608 * ____identity_0;
};
#endif // MARSHALBYREFOBJECT_T2760389100_H
#ifndef VALIDATIONUTILS_T3235219861_H
#define VALIDATIONUTILS_T3235219861_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ValidationUtils
struct ValidationUtils_t3235219861 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VALIDATIONUTILS_T3235219861_H
#ifndef LIST_1_T257213610_H
#define LIST_1_T257213610_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.List`1<System.Object>
struct List_1_t257213610 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
ObjectU5BU5D_t2843939325* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t257213610, ____items_1)); }
inline ObjectU5BU5D_t2843939325* get__items_1() const { return ____items_1; }
inline ObjectU5BU5D_t2843939325** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(ObjectU5BU5D_t2843939325* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((&____items_1), value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t257213610, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t257213610, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t257213610, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((&____syncRoot_4), value);
}
};
struct List_1_t257213610_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
ObjectU5BU5D_t2843939325* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t257213610_StaticFields, ____emptyArray_5)); }
inline ObjectU5BU5D_t2843939325* get__emptyArray_5() const { return ____emptyArray_5; }
inline ObjectU5BU5D_t2843939325** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(ObjectU5BU5D_t2843939325* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((&____emptyArray_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LIST_1_T257213610_H
#ifndef U3CU3EC_T3984375077_H
#define U3CU3EC_T3984375077_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.TypeExtensions/<>c
struct U3CU3Ec_t3984375077 : public RuntimeObject
{
public:
public:
};
struct U3CU3Ec_t3984375077_StaticFields
{
public:
// Newtonsoft.Json.Utilities.TypeExtensions/<>c Newtonsoft.Json.Utilities.TypeExtensions/<>c::<>9
U3CU3Ec_t3984375077 * ___U3CU3E9_0;
// System.Func`2<System.Reflection.ParameterInfo,System.Type> Newtonsoft.Json.Utilities.TypeExtensions/<>c::<>9__19_1
Func_2_t3692615456 * ___U3CU3E9__19_1_1;
// System.Func`2<System.Reflection.ParameterInfo,System.Type> Newtonsoft.Json.Utilities.TypeExtensions/<>c::<>9__27_1
Func_2_t3692615456 * ___U3CU3E9__27_1_2;
// System.Func`2<System.Reflection.ParameterInfo,System.Type> Newtonsoft.Json.Utilities.TypeExtensions/<>c::<>9__30_1
Func_2_t3692615456 * ___U3CU3E9__30_1_3;
public:
inline static int32_t get_offset_of_U3CU3E9_0() { return static_cast<int32_t>(offsetof(U3CU3Ec_t3984375077_StaticFields, ___U3CU3E9_0)); }
inline U3CU3Ec_t3984375077 * get_U3CU3E9_0() const { return ___U3CU3E9_0; }
inline U3CU3Ec_t3984375077 ** get_address_of_U3CU3E9_0() { return &___U3CU3E9_0; }
inline void set_U3CU3E9_0(U3CU3Ec_t3984375077 * value)
{
___U3CU3E9_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9_0), value);
}
inline static int32_t get_offset_of_U3CU3E9__19_1_1() { return static_cast<int32_t>(offsetof(U3CU3Ec_t3984375077_StaticFields, ___U3CU3E9__19_1_1)); }
inline Func_2_t3692615456 * get_U3CU3E9__19_1_1() const { return ___U3CU3E9__19_1_1; }
inline Func_2_t3692615456 ** get_address_of_U3CU3E9__19_1_1() { return &___U3CU3E9__19_1_1; }
inline void set_U3CU3E9__19_1_1(Func_2_t3692615456 * value)
{
___U3CU3E9__19_1_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__19_1_1), value);
}
inline static int32_t get_offset_of_U3CU3E9__27_1_2() { return static_cast<int32_t>(offsetof(U3CU3Ec_t3984375077_StaticFields, ___U3CU3E9__27_1_2)); }
inline Func_2_t3692615456 * get_U3CU3E9__27_1_2() const { return ___U3CU3E9__27_1_2; }
inline Func_2_t3692615456 ** get_address_of_U3CU3E9__27_1_2() { return &___U3CU3E9__27_1_2; }
inline void set_U3CU3E9__27_1_2(Func_2_t3692615456 * value)
{
___U3CU3E9__27_1_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__27_1_2), value);
}
inline static int32_t get_offset_of_U3CU3E9__30_1_3() { return static_cast<int32_t>(offsetof(U3CU3Ec_t3984375077_StaticFields, ___U3CU3E9__30_1_3)); }
inline Func_2_t3692615456 * get_U3CU3E9__30_1_3() const { return ___U3CU3E9__30_1_3; }
inline Func_2_t3692615456 ** get_address_of_U3CU3E9__30_1_3() { return &___U3CU3E9__30_1_3; }
inline void set_U3CU3E9__30_1_3(Func_2_t3692615456 * value)
{
___U3CU3E9__30_1_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__30_1_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC_T3984375077_H
#ifndef CULTUREINFO_T4157843068_H
#define CULTUREINFO_T4157843068_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Globalization.CultureInfo
struct CultureInfo_t4157843068 : public RuntimeObject
{
public:
// System.Boolean System.Globalization.CultureInfo::m_isReadOnly
bool ___m_isReadOnly_3;
// System.Int32 System.Globalization.CultureInfo::cultureID
int32_t ___cultureID_4;
// System.Int32 System.Globalization.CultureInfo::parent_lcid
int32_t ___parent_lcid_5;
// System.Int32 System.Globalization.CultureInfo::datetime_index
int32_t ___datetime_index_6;
// System.Int32 System.Globalization.CultureInfo::number_index
int32_t ___number_index_7;
// System.Int32 System.Globalization.CultureInfo::default_calendar_type
int32_t ___default_calendar_type_8;
// System.Boolean System.Globalization.CultureInfo::m_useUserOverride
bool ___m_useUserOverride_9;
// System.Globalization.NumberFormatInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::numInfo
NumberFormatInfo_t435877138 * ___numInfo_10;
// System.Globalization.DateTimeFormatInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::dateTimeInfo
DateTimeFormatInfo_t2405853701 * ___dateTimeInfo_11;
// System.Globalization.TextInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::textInfo
TextInfo_t3810425522 * ___textInfo_12;
// System.String System.Globalization.CultureInfo::m_name
String_t* ___m_name_13;
// System.String System.Globalization.CultureInfo::englishname
String_t* ___englishname_14;
// System.String System.Globalization.CultureInfo::nativename
String_t* ___nativename_15;
// System.String System.Globalization.CultureInfo::iso3lang
String_t* ___iso3lang_16;
// System.String System.Globalization.CultureInfo::iso2lang
String_t* ___iso2lang_17;
// System.String System.Globalization.CultureInfo::win3lang
String_t* ___win3lang_18;
// System.String System.Globalization.CultureInfo::territory
String_t* ___territory_19;
// System.String[] System.Globalization.CultureInfo::native_calendar_names
StringU5BU5D_t1281789340* ___native_calendar_names_20;
// System.Globalization.CompareInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::compareInfo
CompareInfo_t1092934962 * ___compareInfo_21;
// System.Void* System.Globalization.CultureInfo::textinfo_data
void* ___textinfo_data_22;
// System.Int32 System.Globalization.CultureInfo::m_dataItem
int32_t ___m_dataItem_23;
// System.Globalization.Calendar System.Globalization.CultureInfo::calendar
Calendar_t1661121569 * ___calendar_24;
// System.Globalization.CultureInfo System.Globalization.CultureInfo::parent_culture
CultureInfo_t4157843068 * ___parent_culture_25;
// System.Boolean System.Globalization.CultureInfo::constructed
bool ___constructed_26;
// System.Byte[] System.Globalization.CultureInfo::cached_serialized_form
ByteU5BU5D_t4116647657* ___cached_serialized_form_27;
// System.Globalization.CultureData System.Globalization.CultureInfo::m_cultureData
CultureData_t1899656083 * ___m_cultureData_28;
// System.Boolean System.Globalization.CultureInfo::m_isInherited
bool ___m_isInherited_29;
public:
inline static int32_t get_offset_of_m_isReadOnly_3() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___m_isReadOnly_3)); }
inline bool get_m_isReadOnly_3() const { return ___m_isReadOnly_3; }
inline bool* get_address_of_m_isReadOnly_3() { return &___m_isReadOnly_3; }
inline void set_m_isReadOnly_3(bool value)
{
___m_isReadOnly_3 = value;
}
inline static int32_t get_offset_of_cultureID_4() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___cultureID_4)); }
inline int32_t get_cultureID_4() const { return ___cultureID_4; }
inline int32_t* get_address_of_cultureID_4() { return &___cultureID_4; }
inline void set_cultureID_4(int32_t value)
{
___cultureID_4 = value;
}
inline static int32_t get_offset_of_parent_lcid_5() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___parent_lcid_5)); }
inline int32_t get_parent_lcid_5() const { return ___parent_lcid_5; }
inline int32_t* get_address_of_parent_lcid_5() { return &___parent_lcid_5; }
inline void set_parent_lcid_5(int32_t value)
{
___parent_lcid_5 = value;
}
inline static int32_t get_offset_of_datetime_index_6() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___datetime_index_6)); }
inline int32_t get_datetime_index_6() const { return ___datetime_index_6; }
inline int32_t* get_address_of_datetime_index_6() { return &___datetime_index_6; }
inline void set_datetime_index_6(int32_t value)
{
___datetime_index_6 = value;
}
inline static int32_t get_offset_of_number_index_7() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___number_index_7)); }
inline int32_t get_number_index_7() const { return ___number_index_7; }
inline int32_t* get_address_of_number_index_7() { return &___number_index_7; }
inline void set_number_index_7(int32_t value)
{
___number_index_7 = value;
}
inline static int32_t get_offset_of_default_calendar_type_8() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___default_calendar_type_8)); }
inline int32_t get_default_calendar_type_8() const { return ___default_calendar_type_8; }
inline int32_t* get_address_of_default_calendar_type_8() { return &___default_calendar_type_8; }
inline void set_default_calendar_type_8(int32_t value)
{
___default_calendar_type_8 = value;
}
inline static int32_t get_offset_of_m_useUserOverride_9() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___m_useUserOverride_9)); }
inline bool get_m_useUserOverride_9() const { return ___m_useUserOverride_9; }
inline bool* get_address_of_m_useUserOverride_9() { return &___m_useUserOverride_9; }
inline void set_m_useUserOverride_9(bool value)
{
___m_useUserOverride_9 = value;
}
inline static int32_t get_offset_of_numInfo_10() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___numInfo_10)); }
inline NumberFormatInfo_t435877138 * get_numInfo_10() const { return ___numInfo_10; }
inline NumberFormatInfo_t435877138 ** get_address_of_numInfo_10() { return &___numInfo_10; }
inline void set_numInfo_10(NumberFormatInfo_t435877138 * value)
{
___numInfo_10 = value;
Il2CppCodeGenWriteBarrier((&___numInfo_10), value);
}
inline static int32_t get_offset_of_dateTimeInfo_11() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___dateTimeInfo_11)); }
inline DateTimeFormatInfo_t2405853701 * get_dateTimeInfo_11() const { return ___dateTimeInfo_11; }
inline DateTimeFormatInfo_t2405853701 ** get_address_of_dateTimeInfo_11() { return &___dateTimeInfo_11; }
inline void set_dateTimeInfo_11(DateTimeFormatInfo_t2405853701 * value)
{
___dateTimeInfo_11 = value;
Il2CppCodeGenWriteBarrier((&___dateTimeInfo_11), value);
}
inline static int32_t get_offset_of_textInfo_12() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___textInfo_12)); }
inline TextInfo_t3810425522 * get_textInfo_12() const { return ___textInfo_12; }
inline TextInfo_t3810425522 ** get_address_of_textInfo_12() { return &___textInfo_12; }
inline void set_textInfo_12(TextInfo_t3810425522 * value)
{
___textInfo_12 = value;
Il2CppCodeGenWriteBarrier((&___textInfo_12), value);
}
inline static int32_t get_offset_of_m_name_13() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___m_name_13)); }
inline String_t* get_m_name_13() const { return ___m_name_13; }
inline String_t** get_address_of_m_name_13() { return &___m_name_13; }
inline void set_m_name_13(String_t* value)
{
___m_name_13 = value;
Il2CppCodeGenWriteBarrier((&___m_name_13), value);
}
inline static int32_t get_offset_of_englishname_14() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___englishname_14)); }
inline String_t* get_englishname_14() const { return ___englishname_14; }
inline String_t** get_address_of_englishname_14() { return &___englishname_14; }
inline void set_englishname_14(String_t* value)
{
___englishname_14 = value;
Il2CppCodeGenWriteBarrier((&___englishname_14), value);
}
inline static int32_t get_offset_of_nativename_15() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___nativename_15)); }
inline String_t* get_nativename_15() const { return ___nativename_15; }
inline String_t** get_address_of_nativename_15() { return &___nativename_15; }
inline void set_nativename_15(String_t* value)
{
___nativename_15 = value;
Il2CppCodeGenWriteBarrier((&___nativename_15), value);
}
inline static int32_t get_offset_of_iso3lang_16() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___iso3lang_16)); }
inline String_t* get_iso3lang_16() const { return ___iso3lang_16; }
inline String_t** get_address_of_iso3lang_16() { return &___iso3lang_16; }
inline void set_iso3lang_16(String_t* value)
{
___iso3lang_16 = value;
Il2CppCodeGenWriteBarrier((&___iso3lang_16), value);
}
inline static int32_t get_offset_of_iso2lang_17() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___iso2lang_17)); }
inline String_t* get_iso2lang_17() const { return ___iso2lang_17; }
inline String_t** get_address_of_iso2lang_17() { return &___iso2lang_17; }
inline void set_iso2lang_17(String_t* value)
{
___iso2lang_17 = value;
Il2CppCodeGenWriteBarrier((&___iso2lang_17), value);
}
inline static int32_t get_offset_of_win3lang_18() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___win3lang_18)); }
inline String_t* get_win3lang_18() const { return ___win3lang_18; }
inline String_t** get_address_of_win3lang_18() { return &___win3lang_18; }
inline void set_win3lang_18(String_t* value)
{
___win3lang_18 = value;
Il2CppCodeGenWriteBarrier((&___win3lang_18), value);
}
inline static int32_t get_offset_of_territory_19() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___territory_19)); }
inline String_t* get_territory_19() const { return ___territory_19; }
inline String_t** get_address_of_territory_19() { return &___territory_19; }
inline void set_territory_19(String_t* value)
{
___territory_19 = value;
Il2CppCodeGenWriteBarrier((&___territory_19), value);
}
inline static int32_t get_offset_of_native_calendar_names_20() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___native_calendar_names_20)); }
inline StringU5BU5D_t1281789340* get_native_calendar_names_20() const { return ___native_calendar_names_20; }
inline StringU5BU5D_t1281789340** get_address_of_native_calendar_names_20() { return &___native_calendar_names_20; }
inline void set_native_calendar_names_20(StringU5BU5D_t1281789340* value)
{
___native_calendar_names_20 = value;
Il2CppCodeGenWriteBarrier((&___native_calendar_names_20), value);
}
inline static int32_t get_offset_of_compareInfo_21() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___compareInfo_21)); }
inline CompareInfo_t1092934962 * get_compareInfo_21() const { return ___compareInfo_21; }
inline CompareInfo_t1092934962 ** get_address_of_compareInfo_21() { return &___compareInfo_21; }
inline void set_compareInfo_21(CompareInfo_t1092934962 * value)
{
___compareInfo_21 = value;
Il2CppCodeGenWriteBarrier((&___compareInfo_21), value);
}
inline static int32_t get_offset_of_textinfo_data_22() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___textinfo_data_22)); }
inline void* get_textinfo_data_22() const { return ___textinfo_data_22; }
inline void** get_address_of_textinfo_data_22() { return &___textinfo_data_22; }
inline void set_textinfo_data_22(void* value)
{
___textinfo_data_22 = value;
}
inline static int32_t get_offset_of_m_dataItem_23() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___m_dataItem_23)); }
inline int32_t get_m_dataItem_23() const { return ___m_dataItem_23; }
inline int32_t* get_address_of_m_dataItem_23() { return &___m_dataItem_23; }
inline void set_m_dataItem_23(int32_t value)
{
___m_dataItem_23 = value;
}
inline static int32_t get_offset_of_calendar_24() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___calendar_24)); }
inline Calendar_t1661121569 * get_calendar_24() const { return ___calendar_24; }
inline Calendar_t1661121569 ** get_address_of_calendar_24() { return &___calendar_24; }
inline void set_calendar_24(Calendar_t1661121569 * value)
{
___calendar_24 = value;
Il2CppCodeGenWriteBarrier((&___calendar_24), value);
}
inline static int32_t get_offset_of_parent_culture_25() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___parent_culture_25)); }
inline CultureInfo_t4157843068 * get_parent_culture_25() const { return ___parent_culture_25; }
inline CultureInfo_t4157843068 ** get_address_of_parent_culture_25() { return &___parent_culture_25; }
inline void set_parent_culture_25(CultureInfo_t4157843068 * value)
{
___parent_culture_25 = value;
Il2CppCodeGenWriteBarrier((&___parent_culture_25), value);
}
inline static int32_t get_offset_of_constructed_26() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___constructed_26)); }
inline bool get_constructed_26() const { return ___constructed_26; }
inline bool* get_address_of_constructed_26() { return &___constructed_26; }
inline void set_constructed_26(bool value)
{
___constructed_26 = value;
}
inline static int32_t get_offset_of_cached_serialized_form_27() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___cached_serialized_form_27)); }
inline ByteU5BU5D_t4116647657* get_cached_serialized_form_27() const { return ___cached_serialized_form_27; }
inline ByteU5BU5D_t4116647657** get_address_of_cached_serialized_form_27() { return &___cached_serialized_form_27; }
inline void set_cached_serialized_form_27(ByteU5BU5D_t4116647657* value)
{
___cached_serialized_form_27 = value;
Il2CppCodeGenWriteBarrier((&___cached_serialized_form_27), value);
}
inline static int32_t get_offset_of_m_cultureData_28() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___m_cultureData_28)); }
inline CultureData_t1899656083 * get_m_cultureData_28() const { return ___m_cultureData_28; }
inline CultureData_t1899656083 ** get_address_of_m_cultureData_28() { return &___m_cultureData_28; }
inline void set_m_cultureData_28(CultureData_t1899656083 * value)
{
___m_cultureData_28 = value;
Il2CppCodeGenWriteBarrier((&___m_cultureData_28), value);
}
inline static int32_t get_offset_of_m_isInherited_29() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068, ___m_isInherited_29)); }
inline bool get_m_isInherited_29() const { return ___m_isInherited_29; }
inline bool* get_address_of_m_isInherited_29() { return &___m_isInherited_29; }
inline void set_m_isInherited_29(bool value)
{
___m_isInherited_29 = value;
}
};
struct CultureInfo_t4157843068_StaticFields
{
public:
// System.Globalization.CultureInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::invariant_culture_info
CultureInfo_t4157843068 * ___invariant_culture_info_0;
// System.Object System.Globalization.CultureInfo::shared_table_lock
RuntimeObject * ___shared_table_lock_1;
// System.Globalization.CultureInfo System.Globalization.CultureInfo::default_current_culture
CultureInfo_t4157843068 * ___default_current_culture_2;
// System.Globalization.CultureInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::s_DefaultThreadCurrentUICulture
CultureInfo_t4157843068 * ___s_DefaultThreadCurrentUICulture_33;
// System.Globalization.CultureInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::s_DefaultThreadCurrentCulture
CultureInfo_t4157843068 * ___s_DefaultThreadCurrentCulture_34;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Globalization.CultureInfo> System.Globalization.CultureInfo::shared_by_number
Dictionary_2_t3046556399 * ___shared_by_number_35;
// System.Collections.Generic.Dictionary`2<System.String,System.Globalization.CultureInfo> System.Globalization.CultureInfo::shared_by_name
Dictionary_2_t3943099367 * ___shared_by_name_36;
// System.Boolean System.Globalization.CultureInfo::IsTaiwanSku
bool ___IsTaiwanSku_37;
public:
inline static int32_t get_offset_of_invariant_culture_info_0() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068_StaticFields, ___invariant_culture_info_0)); }
inline CultureInfo_t4157843068 * get_invariant_culture_info_0() const { return ___invariant_culture_info_0; }
inline CultureInfo_t4157843068 ** get_address_of_invariant_culture_info_0() { return &___invariant_culture_info_0; }
inline void set_invariant_culture_info_0(CultureInfo_t4157843068 * value)
{
___invariant_culture_info_0 = value;
Il2CppCodeGenWriteBarrier((&___invariant_culture_info_0), value);
}
inline static int32_t get_offset_of_shared_table_lock_1() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068_StaticFields, ___shared_table_lock_1)); }
inline RuntimeObject * get_shared_table_lock_1() const { return ___shared_table_lock_1; }
inline RuntimeObject ** get_address_of_shared_table_lock_1() { return &___shared_table_lock_1; }
inline void set_shared_table_lock_1(RuntimeObject * value)
{
___shared_table_lock_1 = value;
Il2CppCodeGenWriteBarrier((&___shared_table_lock_1), value);
}
inline static int32_t get_offset_of_default_current_culture_2() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068_StaticFields, ___default_current_culture_2)); }
inline CultureInfo_t4157843068 * get_default_current_culture_2() const { return ___default_current_culture_2; }
inline CultureInfo_t4157843068 ** get_address_of_default_current_culture_2() { return &___default_current_culture_2; }
inline void set_default_current_culture_2(CultureInfo_t4157843068 * value)
{
___default_current_culture_2 = value;
Il2CppCodeGenWriteBarrier((&___default_current_culture_2), value);
}
inline static int32_t get_offset_of_s_DefaultThreadCurrentUICulture_33() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068_StaticFields, ___s_DefaultThreadCurrentUICulture_33)); }
inline CultureInfo_t4157843068 * get_s_DefaultThreadCurrentUICulture_33() const { return ___s_DefaultThreadCurrentUICulture_33; }
inline CultureInfo_t4157843068 ** get_address_of_s_DefaultThreadCurrentUICulture_33() { return &___s_DefaultThreadCurrentUICulture_33; }
inline void set_s_DefaultThreadCurrentUICulture_33(CultureInfo_t4157843068 * value)
{
___s_DefaultThreadCurrentUICulture_33 = value;
Il2CppCodeGenWriteBarrier((&___s_DefaultThreadCurrentUICulture_33), value);
}
inline static int32_t get_offset_of_s_DefaultThreadCurrentCulture_34() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068_StaticFields, ___s_DefaultThreadCurrentCulture_34)); }
inline CultureInfo_t4157843068 * get_s_DefaultThreadCurrentCulture_34() const { return ___s_DefaultThreadCurrentCulture_34; }
inline CultureInfo_t4157843068 ** get_address_of_s_DefaultThreadCurrentCulture_34() { return &___s_DefaultThreadCurrentCulture_34; }
inline void set_s_DefaultThreadCurrentCulture_34(CultureInfo_t4157843068 * value)
{
___s_DefaultThreadCurrentCulture_34 = value;
Il2CppCodeGenWriteBarrier((&___s_DefaultThreadCurrentCulture_34), value);
}
inline static int32_t get_offset_of_shared_by_number_35() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068_StaticFields, ___shared_by_number_35)); }
inline Dictionary_2_t3046556399 * get_shared_by_number_35() const { return ___shared_by_number_35; }
inline Dictionary_2_t3046556399 ** get_address_of_shared_by_number_35() { return &___shared_by_number_35; }
inline void set_shared_by_number_35(Dictionary_2_t3046556399 * value)
{
___shared_by_number_35 = value;
Il2CppCodeGenWriteBarrier((&___shared_by_number_35), value);
}
inline static int32_t get_offset_of_shared_by_name_36() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068_StaticFields, ___shared_by_name_36)); }
inline Dictionary_2_t3943099367 * get_shared_by_name_36() const { return ___shared_by_name_36; }
inline Dictionary_2_t3943099367 ** get_address_of_shared_by_name_36() { return &___shared_by_name_36; }
inline void set_shared_by_name_36(Dictionary_2_t3943099367 * value)
{
___shared_by_name_36 = value;
Il2CppCodeGenWriteBarrier((&___shared_by_name_36), value);
}
inline static int32_t get_offset_of_IsTaiwanSku_37() { return static_cast<int32_t>(offsetof(CultureInfo_t4157843068_StaticFields, ___IsTaiwanSku_37)); }
inline bool get_IsTaiwanSku_37() const { return ___IsTaiwanSku_37; }
inline bool* get_address_of_IsTaiwanSku_37() { return &___IsTaiwanSku_37; }
inline void set_IsTaiwanSku_37(bool value)
{
___IsTaiwanSku_37 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Globalization.CultureInfo
struct CultureInfo_t4157843068_marshaled_pinvoke
{
int32_t ___m_isReadOnly_3;
int32_t ___cultureID_4;
int32_t ___parent_lcid_5;
int32_t ___datetime_index_6;
int32_t ___number_index_7;
int32_t ___default_calendar_type_8;
int32_t ___m_useUserOverride_9;
NumberFormatInfo_t435877138 * ___numInfo_10;
DateTimeFormatInfo_t2405853701 * ___dateTimeInfo_11;
TextInfo_t3810425522 * ___textInfo_12;
char* ___m_name_13;
char* ___englishname_14;
char* ___nativename_15;
char* ___iso3lang_16;
char* ___iso2lang_17;
char* ___win3lang_18;
char* ___territory_19;
char** ___native_calendar_names_20;
CompareInfo_t1092934962 * ___compareInfo_21;
void* ___textinfo_data_22;
int32_t ___m_dataItem_23;
Calendar_t1661121569 * ___calendar_24;
CultureInfo_t4157843068_marshaled_pinvoke* ___parent_culture_25;
int32_t ___constructed_26;
uint8_t* ___cached_serialized_form_27;
CultureData_t1899656083_marshaled_pinvoke* ___m_cultureData_28;
int32_t ___m_isInherited_29;
};
// Native definition for COM marshalling of System.Globalization.CultureInfo
struct CultureInfo_t4157843068_marshaled_com
{
int32_t ___m_isReadOnly_3;
int32_t ___cultureID_4;
int32_t ___parent_lcid_5;
int32_t ___datetime_index_6;
int32_t ___number_index_7;
int32_t ___default_calendar_type_8;
int32_t ___m_useUserOverride_9;
NumberFormatInfo_t435877138 * ___numInfo_10;
DateTimeFormatInfo_t2405853701 * ___dateTimeInfo_11;
TextInfo_t3810425522 * ___textInfo_12;
Il2CppChar* ___m_name_13;
Il2CppChar* ___englishname_14;
Il2CppChar* ___nativename_15;
Il2CppChar* ___iso3lang_16;
Il2CppChar* ___iso2lang_17;
Il2CppChar* ___win3lang_18;
Il2CppChar* ___territory_19;
Il2CppChar** ___native_calendar_names_20;
CompareInfo_t1092934962 * ___compareInfo_21;
void* ___textinfo_data_22;
int32_t ___m_dataItem_23;
Calendar_t1661121569 * ___calendar_24;
CultureInfo_t4157843068_marshaled_com* ___parent_culture_25;
int32_t ___constructed_26;
uint8_t* ___cached_serialized_form_27;
CultureData_t1899656083_marshaled_com* ___m_cultureData_28;
int32_t ___m_isInherited_29;
};
#endif // CULTUREINFO_T4157843068_H
#ifndef DYNAMICMETAOBJECT_T4233896612_H
#define DYNAMICMETAOBJECT_T4233896612_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Dynamic.DynamicMetaObject
struct DynamicMetaObject_t4233896612 : public RuntimeObject
{
public:
// System.Linq.Expressions.Expression System.Dynamic.DynamicMetaObject::<Expression>k__BackingField
Expression_t1588164026 * ___U3CExpressionU3Ek__BackingField_1;
// System.Dynamic.BindingRestrictions System.Dynamic.DynamicMetaObject::<Restrictions>k__BackingField
BindingRestrictions_t2954491122 * ___U3CRestrictionsU3Ek__BackingField_2;
// System.Object System.Dynamic.DynamicMetaObject::<Value>k__BackingField
RuntimeObject * ___U3CValueU3Ek__BackingField_3;
// System.Boolean System.Dynamic.DynamicMetaObject::<HasValue>k__BackingField
bool ___U3CHasValueU3Ek__BackingField_4;
public:
inline static int32_t get_offset_of_U3CExpressionU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(DynamicMetaObject_t4233896612, ___U3CExpressionU3Ek__BackingField_1)); }
inline Expression_t1588164026 * get_U3CExpressionU3Ek__BackingField_1() const { return ___U3CExpressionU3Ek__BackingField_1; }
inline Expression_t1588164026 ** get_address_of_U3CExpressionU3Ek__BackingField_1() { return &___U3CExpressionU3Ek__BackingField_1; }
inline void set_U3CExpressionU3Ek__BackingField_1(Expression_t1588164026 * value)
{
___U3CExpressionU3Ek__BackingField_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CExpressionU3Ek__BackingField_1), value);
}
inline static int32_t get_offset_of_U3CRestrictionsU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(DynamicMetaObject_t4233896612, ___U3CRestrictionsU3Ek__BackingField_2)); }
inline BindingRestrictions_t2954491122 * get_U3CRestrictionsU3Ek__BackingField_2() const { return ___U3CRestrictionsU3Ek__BackingField_2; }
inline BindingRestrictions_t2954491122 ** get_address_of_U3CRestrictionsU3Ek__BackingField_2() { return &___U3CRestrictionsU3Ek__BackingField_2; }
inline void set_U3CRestrictionsU3Ek__BackingField_2(BindingRestrictions_t2954491122 * value)
{
___U3CRestrictionsU3Ek__BackingField_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CRestrictionsU3Ek__BackingField_2), value);
}
inline static int32_t get_offset_of_U3CValueU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(DynamicMetaObject_t4233896612, ___U3CValueU3Ek__BackingField_3)); }
inline RuntimeObject * get_U3CValueU3Ek__BackingField_3() const { return ___U3CValueU3Ek__BackingField_3; }
inline RuntimeObject ** get_address_of_U3CValueU3Ek__BackingField_3() { return &___U3CValueU3Ek__BackingField_3; }
inline void set_U3CValueU3Ek__BackingField_3(RuntimeObject * value)
{
___U3CValueU3Ek__BackingField_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CValueU3Ek__BackingField_3), value);
}
inline static int32_t get_offset_of_U3CHasValueU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(DynamicMetaObject_t4233896612, ___U3CHasValueU3Ek__BackingField_4)); }
inline bool get_U3CHasValueU3Ek__BackingField_4() const { return ___U3CHasValueU3Ek__BackingField_4; }
inline bool* get_address_of_U3CHasValueU3Ek__BackingField_4() { return &___U3CHasValueU3Ek__BackingField_4; }
inline void set_U3CHasValueU3Ek__BackingField_4(bool value)
{
___U3CHasValueU3Ek__BackingField_4 = value;
}
};
struct DynamicMetaObject_t4233896612_StaticFields
{
public:
// System.Dynamic.DynamicMetaObject[] System.Dynamic.DynamicMetaObject::EmptyMetaObjects
DynamicMetaObjectU5BU5D_t4108675661* ___EmptyMetaObjects_0;
public:
inline static int32_t get_offset_of_EmptyMetaObjects_0() { return static_cast<int32_t>(offsetof(DynamicMetaObject_t4233896612_StaticFields, ___EmptyMetaObjects_0)); }
inline DynamicMetaObjectU5BU5D_t4108675661* get_EmptyMetaObjects_0() const { return ___EmptyMetaObjects_0; }
inline DynamicMetaObjectU5BU5D_t4108675661** get_address_of_EmptyMetaObjects_0() { return &___EmptyMetaObjects_0; }
inline void set_EmptyMetaObjects_0(DynamicMetaObjectU5BU5D_t4108675661* value)
{
___EmptyMetaObjects_0 = value;
Il2CppCodeGenWriteBarrier((&___EmptyMetaObjects_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DYNAMICMETAOBJECT_T4233896612_H
#ifndef BINDERWRAPPER_T712020414_H
#define BINDERWRAPPER_T712020414_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.DynamicUtils/BinderWrapper
struct BinderWrapper_t712020414 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BINDERWRAPPER_T712020414_H
#ifndef STRING_T_H
#define STRING_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// 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((&___Empty_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STRING_T_H
#ifndef CALLSITEBINDER_T1870160633_H
#define CALLSITEBINDER_T1870160633_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.CallSiteBinder
struct CallSiteBinder_t1870160633 : public RuntimeObject
{
public:
public:
};
struct CallSiteBinder_t1870160633_StaticFields
{
public:
// System.Linq.Expressions.LabelTarget System.Runtime.CompilerServices.CallSiteBinder::<UpdateLabel>k__BackingField
LabelTarget_t3951553093 * ___U3CUpdateLabelU3Ek__BackingField_0;
public:
inline static int32_t get_offset_of_U3CUpdateLabelU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(CallSiteBinder_t1870160633_StaticFields, ___U3CUpdateLabelU3Ek__BackingField_0)); }
inline LabelTarget_t3951553093 * get_U3CUpdateLabelU3Ek__BackingField_0() const { return ___U3CUpdateLabelU3Ek__BackingField_0; }
inline LabelTarget_t3951553093 ** get_address_of_U3CUpdateLabelU3Ek__BackingField_0() { return &___U3CUpdateLabelU3Ek__BackingField_0; }
inline void set_U3CUpdateLabelU3Ek__BackingField_0(LabelTarget_t3951553093 * value)
{
___U3CUpdateLabelU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CUpdateLabelU3Ek__BackingField_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CALLSITEBINDER_T1870160633_H
#ifndef ENUMUTILS_T2002471470_H
#define ENUMUTILS_T2002471470_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.EnumUtils
struct EnumUtils_t2002471470 : public RuntimeObject
{
public:
public:
};
struct EnumUtils_t2002471470_StaticFields
{
public:
// Newtonsoft.Json.Utilities.ThreadSafeStore`2<System.Type,Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>> Newtonsoft.Json.Utilities.EnumUtils::EnumMemberNamesPerType
ThreadSafeStore_2_t4165332627 * ___EnumMemberNamesPerType_0;
public:
inline static int32_t get_offset_of_EnumMemberNamesPerType_0() { return static_cast<int32_t>(offsetof(EnumUtils_t2002471470_StaticFields, ___EnumMemberNamesPerType_0)); }
inline ThreadSafeStore_2_t4165332627 * get_EnumMemberNamesPerType_0() const { return ___EnumMemberNamesPerType_0; }
inline ThreadSafeStore_2_t4165332627 ** get_address_of_EnumMemberNamesPerType_0() { return &___EnumMemberNamesPerType_0; }
inline void set_EnumMemberNamesPerType_0(ThreadSafeStore_2_t4165332627 * value)
{
___EnumMemberNamesPerType_0 = value;
Il2CppCodeGenWriteBarrier((&___EnumMemberNamesPerType_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENUMUTILS_T2002471470_H
#ifndef MEMBERINFO_T_H
#define MEMBERINFO_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.MemberInfo
struct MemberInfo_t : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MEMBERINFO_T_H
#ifndef EXPRESSION_T1588164026_H
#define EXPRESSION_T1588164026_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.Expression
struct Expression_t1588164026 : public RuntimeObject
{
public:
public:
};
struct Expression_t1588164026_StaticFields
{
public:
// System.Dynamic.Utils.CacheDict`2<System.Type,System.Reflection.MethodInfo> System.Linq.Expressions.Expression::s_lambdaDelegateCache
CacheDict_2_t213319420 * ___s_lambdaDelegateCache_0;
// System.Dynamic.Utils.CacheDict`2<System.Type,System.Func`5<System.Linq.Expressions.Expression,System.String,System.Boolean,System.Collections.ObjectModel.ReadOnlyCollection`1<System.Linq.Expressions.ParameterExpression>,System.Linq.Expressions.LambdaExpression>> modreq(System.Runtime.CompilerServices.IsVolatile) System.Linq.Expressions.Expression::s_lambdaFactories
CacheDict_2_t430650805 * ___s_lambdaFactories_1;
// System.Runtime.CompilerServices.ConditionalWeakTable`2<System.Linq.Expressions.Expression,System.Linq.Expressions.Expression/ExtensionInfo> System.Linq.Expressions.Expression::s_legacyCtorSupportTable
ConditionalWeakTable_2_t2404503487 * ___s_legacyCtorSupportTable_2;
public:
inline static int32_t get_offset_of_s_lambdaDelegateCache_0() { return static_cast<int32_t>(offsetof(Expression_t1588164026_StaticFields, ___s_lambdaDelegateCache_0)); }
inline CacheDict_2_t213319420 * get_s_lambdaDelegateCache_0() const { return ___s_lambdaDelegateCache_0; }
inline CacheDict_2_t213319420 ** get_address_of_s_lambdaDelegateCache_0() { return &___s_lambdaDelegateCache_0; }
inline void set_s_lambdaDelegateCache_0(CacheDict_2_t213319420 * value)
{
___s_lambdaDelegateCache_0 = value;
Il2CppCodeGenWriteBarrier((&___s_lambdaDelegateCache_0), value);
}
inline static int32_t get_offset_of_s_lambdaFactories_1() { return static_cast<int32_t>(offsetof(Expression_t1588164026_StaticFields, ___s_lambdaFactories_1)); }
inline CacheDict_2_t430650805 * get_s_lambdaFactories_1() const { return ___s_lambdaFactories_1; }
inline CacheDict_2_t430650805 ** get_address_of_s_lambdaFactories_1() { return &___s_lambdaFactories_1; }
inline void set_s_lambdaFactories_1(CacheDict_2_t430650805 * value)
{
___s_lambdaFactories_1 = value;
Il2CppCodeGenWriteBarrier((&___s_lambdaFactories_1), value);
}
inline static int32_t get_offset_of_s_legacyCtorSupportTable_2() { return static_cast<int32_t>(offsetof(Expression_t1588164026_StaticFields, ___s_legacyCtorSupportTable_2)); }
inline ConditionalWeakTable_2_t2404503487 * get_s_legacyCtorSupportTable_2() const { return ___s_legacyCtorSupportTable_2; }
inline ConditionalWeakTable_2_t2404503487 ** get_address_of_s_legacyCtorSupportTable_2() { return &___s_legacyCtorSupportTable_2; }
inline void set_s_legacyCtorSupportTable_2(ConditionalWeakTable_2_t2404503487 * value)
{
___s_legacyCtorSupportTable_2 = value;
Il2CppCodeGenWriteBarrier((&___s_legacyCtorSupportTable_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EXPRESSION_T1588164026_H
#ifndef BIDIRECTIONALDICTIONARY_2_T787053467_H
#define BIDIRECTIONALDICTIONARY_2_T787053467_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>
struct BidirectionalDictionary_2_t787053467 : public RuntimeObject
{
public:
// System.Collections.Generic.IDictionary`2<TFirst,TSecond> Newtonsoft.Json.Utilities.BidirectionalDictionary`2::_firstToSecond
RuntimeObject* ____firstToSecond_0;
// System.Collections.Generic.IDictionary`2<TSecond,TFirst> Newtonsoft.Json.Utilities.BidirectionalDictionary`2::_secondToFirst
RuntimeObject* ____secondToFirst_1;
// System.String Newtonsoft.Json.Utilities.BidirectionalDictionary`2::_duplicateFirstErrorMessage
String_t* ____duplicateFirstErrorMessage_2;
// System.String Newtonsoft.Json.Utilities.BidirectionalDictionary`2::_duplicateSecondErrorMessage
String_t* ____duplicateSecondErrorMessage_3;
public:
inline static int32_t get_offset_of__firstToSecond_0() { return static_cast<int32_t>(offsetof(BidirectionalDictionary_2_t787053467, ____firstToSecond_0)); }
inline RuntimeObject* get__firstToSecond_0() const { return ____firstToSecond_0; }
inline RuntimeObject** get_address_of__firstToSecond_0() { return &____firstToSecond_0; }
inline void set__firstToSecond_0(RuntimeObject* value)
{
____firstToSecond_0 = value;
Il2CppCodeGenWriteBarrier((&____firstToSecond_0), value);
}
inline static int32_t get_offset_of__secondToFirst_1() { return static_cast<int32_t>(offsetof(BidirectionalDictionary_2_t787053467, ____secondToFirst_1)); }
inline RuntimeObject* get__secondToFirst_1() const { return ____secondToFirst_1; }
inline RuntimeObject** get_address_of__secondToFirst_1() { return &____secondToFirst_1; }
inline void set__secondToFirst_1(RuntimeObject* value)
{
____secondToFirst_1 = value;
Il2CppCodeGenWriteBarrier((&____secondToFirst_1), value);
}
inline static int32_t get_offset_of__duplicateFirstErrorMessage_2() { return static_cast<int32_t>(offsetof(BidirectionalDictionary_2_t787053467, ____duplicateFirstErrorMessage_2)); }
inline String_t* get__duplicateFirstErrorMessage_2() const { return ____duplicateFirstErrorMessage_2; }
inline String_t** get_address_of__duplicateFirstErrorMessage_2() { return &____duplicateFirstErrorMessage_2; }
inline void set__duplicateFirstErrorMessage_2(String_t* value)
{
____duplicateFirstErrorMessage_2 = value;
Il2CppCodeGenWriteBarrier((&____duplicateFirstErrorMessage_2), value);
}
inline static int32_t get_offset_of__duplicateSecondErrorMessage_3() { return static_cast<int32_t>(offsetof(BidirectionalDictionary_2_t787053467, ____duplicateSecondErrorMessage_3)); }
inline String_t* get__duplicateSecondErrorMessage_3() const { return ____duplicateSecondErrorMessage_3; }
inline String_t** get_address_of__duplicateSecondErrorMessage_3() { return &____duplicateSecondErrorMessage_3; }
inline void set__duplicateSecondErrorMessage_3(String_t* value)
{
____duplicateSecondErrorMessage_3 = value;
Il2CppCodeGenWriteBarrier((&____duplicateSecondErrorMessage_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BIDIRECTIONALDICTIONARY_2_T787053467_H
struct Il2CppArrayBounds;
#ifndef RUNTIMEARRAY_H
#define RUNTIMEARRAY_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Array
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RUNTIMEARRAY_H
#ifndef STRINGCOMPARER_T3301955079_H
#define STRINGCOMPARER_T3301955079_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.StringComparer
struct StringComparer_t3301955079 : public RuntimeObject
{
public:
public:
};
struct StringComparer_t3301955079_StaticFields
{
public:
// System.StringComparer System.StringComparer::_invariantCulture
StringComparer_t3301955079 * ____invariantCulture_0;
// System.StringComparer System.StringComparer::_invariantCultureIgnoreCase
StringComparer_t3301955079 * ____invariantCultureIgnoreCase_1;
// System.StringComparer System.StringComparer::_ordinal
StringComparer_t3301955079 * ____ordinal_2;
// System.StringComparer System.StringComparer::_ordinalIgnoreCase
StringComparer_t3301955079 * ____ordinalIgnoreCase_3;
public:
inline static int32_t get_offset_of__invariantCulture_0() { return static_cast<int32_t>(offsetof(StringComparer_t3301955079_StaticFields, ____invariantCulture_0)); }
inline StringComparer_t3301955079 * get__invariantCulture_0() const { return ____invariantCulture_0; }
inline StringComparer_t3301955079 ** get_address_of__invariantCulture_0() { return &____invariantCulture_0; }
inline void set__invariantCulture_0(StringComparer_t3301955079 * value)
{
____invariantCulture_0 = value;
Il2CppCodeGenWriteBarrier((&____invariantCulture_0), value);
}
inline static int32_t get_offset_of__invariantCultureIgnoreCase_1() { return static_cast<int32_t>(offsetof(StringComparer_t3301955079_StaticFields, ____invariantCultureIgnoreCase_1)); }
inline StringComparer_t3301955079 * get__invariantCultureIgnoreCase_1() const { return ____invariantCultureIgnoreCase_1; }
inline StringComparer_t3301955079 ** get_address_of__invariantCultureIgnoreCase_1() { return &____invariantCultureIgnoreCase_1; }
inline void set__invariantCultureIgnoreCase_1(StringComparer_t3301955079 * value)
{
____invariantCultureIgnoreCase_1 = value;
Il2CppCodeGenWriteBarrier((&____invariantCultureIgnoreCase_1), value);
}
inline static int32_t get_offset_of__ordinal_2() { return static_cast<int32_t>(offsetof(StringComparer_t3301955079_StaticFields, ____ordinal_2)); }
inline StringComparer_t3301955079 * get__ordinal_2() const { return ____ordinal_2; }
inline StringComparer_t3301955079 ** get_address_of__ordinal_2() { return &____ordinal_2; }
inline void set__ordinal_2(StringComparer_t3301955079 * value)
{
____ordinal_2 = value;
Il2CppCodeGenWriteBarrier((&____ordinal_2), value);
}
inline static int32_t get_offset_of__ordinalIgnoreCase_3() { return static_cast<int32_t>(offsetof(StringComparer_t3301955079_StaticFields, ____ordinalIgnoreCase_3)); }
inline StringComparer_t3301955079 * get__ordinalIgnoreCase_3() const { return ____ordinalIgnoreCase_3; }
inline StringComparer_t3301955079 ** get_address_of__ordinalIgnoreCase_3() { return &____ordinalIgnoreCase_3; }
inline void set__ordinalIgnoreCase_3(StringComparer_t3301955079 * value)
{
____ordinalIgnoreCase_3 = value;
Il2CppCodeGenWriteBarrier((&____ordinalIgnoreCase_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STRINGCOMPARER_T3301955079_H
#ifndef REFLECTIONDELEGATEFACTORY_T2528576452_H
#define REFLECTIONDELEGATEFACTORY_T2528576452_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ReflectionDelegateFactory
struct ReflectionDelegateFactory_t2528576452 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // REFLECTIONDELEGATEFACTORY_T2528576452_H
#ifndef STRINGREFERENCEEXTENSIONS_T239632904_H
#define STRINGREFERENCEEXTENSIONS_T239632904_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.StringReferenceExtensions
struct StringReferenceExtensions_t239632904 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STRINGREFERENCEEXTENSIONS_T239632904_H
#ifndef STRINGUTILS_T1417415125_H
#define STRINGUTILS_T1417415125_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.StringUtils
struct StringUtils_t1417415125 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STRINGUTILS_T1417415125_H
#ifndef U3CU3EC__DISPLAYCLASS19_0_T1131461246_H
#define U3CU3EC__DISPLAYCLASS19_0_T1131461246_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass19_0
struct U3CU3Ec__DisplayClass19_0_t1131461246 : public RuntimeObject
{
public:
// System.String Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass19_0::name
String_t* ___name_0;
// System.Type Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass19_0::propertyType
Type_t * ___propertyType_1;
// System.Collections.Generic.IList`1<System.Type> Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass19_0::indexParameters
RuntimeObject* ___indexParameters_2;
public:
inline static int32_t get_offset_of_name_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass19_0_t1131461246, ___name_0)); }
inline String_t* get_name_0() const { return ___name_0; }
inline String_t** get_address_of_name_0() { return &___name_0; }
inline void set_name_0(String_t* value)
{
___name_0 = value;
Il2CppCodeGenWriteBarrier((&___name_0), value);
}
inline static int32_t get_offset_of_propertyType_1() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass19_0_t1131461246, ___propertyType_1)); }
inline Type_t * get_propertyType_1() const { return ___propertyType_1; }
inline Type_t ** get_address_of_propertyType_1() { return &___propertyType_1; }
inline void set_propertyType_1(Type_t * value)
{
___propertyType_1 = value;
Il2CppCodeGenWriteBarrier((&___propertyType_1), value);
}
inline static int32_t get_offset_of_indexParameters_2() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass19_0_t1131461246, ___indexParameters_2)); }
inline RuntimeObject* get_indexParameters_2() const { return ___indexParameters_2; }
inline RuntimeObject** get_address_of_indexParameters_2() { return &___indexParameters_2; }
inline void set_indexParameters_2(RuntimeObject* value)
{
___indexParameters_2 = value;
Il2CppCodeGenWriteBarrier((&___indexParameters_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS19_0_T1131461246_H
#ifndef U3CU3EC__DISPLAYCLASS40_0_T798913399_H
#define U3CU3EC__DISPLAYCLASS40_0_T798913399_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass40_0
struct U3CU3Ec__DisplayClass40_0_t798913399 : public RuntimeObject
{
public:
// System.Reflection.PropertyInfo Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass40_0::member
PropertyInfo_t * ___member_0;
public:
inline static int32_t get_offset_of_member_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass40_0_t798913399, ___member_0)); }
inline PropertyInfo_t * get_member_0() const { return ___member_0; }
inline PropertyInfo_t ** get_address_of_member_0() { return &___member_0; }
inline void set_member_0(PropertyInfo_t * value)
{
___member_0 = value;
Il2CppCodeGenWriteBarrier((&___member_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS40_0_T798913399_H
#ifndef U3CU3EC__DISPLAYCLASS41_0_T3137565559_H
#define U3CU3EC__DISPLAYCLASS41_0_T3137565559_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass41_0
struct U3CU3Ec__DisplayClass41_0_t3137565559 : public RuntimeObject
{
public:
// System.Reflection.FieldInfo Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass41_0::member
FieldInfo_t * ___member_0;
public:
inline static int32_t get_offset_of_member_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass41_0_t3137565559, ___member_0)); }
inline FieldInfo_t * get_member_0() const { return ___member_0; }
inline FieldInfo_t ** get_address_of_member_0() { return &___member_0; }
inline void set_member_0(FieldInfo_t * value)
{
___member_0 = value;
Il2CppCodeGenWriteBarrier((&___member_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS41_0_T3137565559_H
#ifndef LIST_1_T1358810031_H
#define LIST_1_T1358810031_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.List`1<System.Reflection.FieldInfo>
struct List_1_t1358810031 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
FieldInfoU5BU5D_t846150980* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t1358810031, ____items_1)); }
inline FieldInfoU5BU5D_t846150980* get__items_1() const { return ____items_1; }
inline FieldInfoU5BU5D_t846150980** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(FieldInfoU5BU5D_t846150980* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((&____items_1), value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t1358810031, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t1358810031, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t1358810031, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((&____syncRoot_4), value);
}
};
struct List_1_t1358810031_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
FieldInfoU5BU5D_t846150980* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t1358810031_StaticFields, ____emptyArray_5)); }
inline FieldInfoU5BU5D_t846150980* get__emptyArray_5() const { return ____emptyArray_5; }
inline FieldInfoU5BU5D_t846150980** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(FieldInfoU5BU5D_t846150980* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((&____emptyArray_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LIST_1_T1358810031_H
#ifndef THREADSAFESTORE_2_T4165332627_H
#define THREADSAFESTORE_2_T4165332627_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ThreadSafeStore`2<System.Type,Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>>
struct ThreadSafeStore_2_t4165332627 : public RuntimeObject
{
public:
// System.Object Newtonsoft.Json.Utilities.ThreadSafeStore`2::_lock
RuntimeObject * ____lock_0;
// System.Collections.Generic.Dictionary`2<TKey,TValue> Newtonsoft.Json.Utilities.ThreadSafeStore`2::_store
Dictionary_2_t3231400531 * ____store_1;
// System.Func`2<TKey,TValue> Newtonsoft.Json.Utilities.ThreadSafeStore`2::_creator
Func_2_t1251018457 * ____creator_2;
public:
inline static int32_t get_offset_of__lock_0() { return static_cast<int32_t>(offsetof(ThreadSafeStore_2_t4165332627, ____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((&____lock_0), value);
}
inline static int32_t get_offset_of__store_1() { return static_cast<int32_t>(offsetof(ThreadSafeStore_2_t4165332627, ____store_1)); }
inline Dictionary_2_t3231400531 * get__store_1() const { return ____store_1; }
inline Dictionary_2_t3231400531 ** get_address_of__store_1() { return &____store_1; }
inline void set__store_1(Dictionary_2_t3231400531 * value)
{
____store_1 = value;
Il2CppCodeGenWriteBarrier((&____store_1), value);
}
inline static int32_t get_offset_of__creator_2() { return static_cast<int32_t>(offsetof(ThreadSafeStore_2_t4165332627, ____creator_2)); }
inline Func_2_t1251018457 * get__creator_2() const { return ____creator_2; }
inline Func_2_t1251018457 ** get_address_of__creator_2() { return &____creator_2; }
inline void set__creator_2(Func_2_t1251018457 * value)
{
____creator_2 = value;
Il2CppCodeGenWriteBarrier((&____creator_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // THREADSAFESTORE_2_T4165332627_H
#ifndef DYNAMICUTILS_T3019670405_H
#define DYNAMICUTILS_T3019670405_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.DynamicUtils
struct DynamicUtils_t3019670405 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DYNAMICUTILS_T3019670405_H
#ifndef U3CU3EC__DISPLAYCLASS39_0_T4263629128_H
#define U3CU3EC__DISPLAYCLASS39_0_T4263629128_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass39_0
struct U3CU3Ec__DisplayClass39_0_t4263629128 : public RuntimeObject
{
public:
// System.Reflection.MemberInfo Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass39_0::member
MemberInfo_t * ___member_0;
public:
inline static int32_t get_offset_of_member_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass39_0_t4263629128, ___member_0)); }
inline MemberInfo_t * get_member_0() const { return ___member_0; }
inline MemberInfo_t ** get_address_of_member_0() { return &___member_0; }
inline void set_member_0(MemberInfo_t * value)
{
___member_0 = value;
Il2CppCodeGenWriteBarrier((&___member_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS39_0_T4263629128_H
#ifndef DATETIME_T3738529785_H
#define DATETIME_T3738529785_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.DateTime
struct DateTime_t3738529785
{
public:
// System.UInt64 System.DateTime::dateData
uint64_t ___dateData_44;
public:
inline static int32_t get_offset_of_dateData_44() { return static_cast<int32_t>(offsetof(DateTime_t3738529785, ___dateData_44)); }
inline uint64_t get_dateData_44() const { return ___dateData_44; }
inline uint64_t* get_address_of_dateData_44() { return &___dateData_44; }
inline void set_dateData_44(uint64_t value)
{
___dateData_44 = value;
}
};
struct DateTime_t3738529785_StaticFields
{
public:
// System.Int32[] System.DateTime::DaysToMonth365
Int32U5BU5D_t385246372* ___DaysToMonth365_29;
// System.Int32[] System.DateTime::DaysToMonth366
Int32U5BU5D_t385246372* ___DaysToMonth366_30;
// System.DateTime System.DateTime::MinValue
DateTime_t3738529785 ___MinValue_31;
// System.DateTime System.DateTime::MaxValue
DateTime_t3738529785 ___MaxValue_32;
public:
inline static int32_t get_offset_of_DaysToMonth365_29() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___DaysToMonth365_29)); }
inline Int32U5BU5D_t385246372* get_DaysToMonth365_29() const { return ___DaysToMonth365_29; }
inline Int32U5BU5D_t385246372** get_address_of_DaysToMonth365_29() { return &___DaysToMonth365_29; }
inline void set_DaysToMonth365_29(Int32U5BU5D_t385246372* value)
{
___DaysToMonth365_29 = value;
Il2CppCodeGenWriteBarrier((&___DaysToMonth365_29), value);
}
inline static int32_t get_offset_of_DaysToMonth366_30() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___DaysToMonth366_30)); }
inline Int32U5BU5D_t385246372* get_DaysToMonth366_30() const { return ___DaysToMonth366_30; }
inline Int32U5BU5D_t385246372** get_address_of_DaysToMonth366_30() { return &___DaysToMonth366_30; }
inline void set_DaysToMonth366_30(Int32U5BU5D_t385246372* value)
{
___DaysToMonth366_30 = value;
Il2CppCodeGenWriteBarrier((&___DaysToMonth366_30), value);
}
inline static int32_t get_offset_of_MinValue_31() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___MinValue_31)); }
inline DateTime_t3738529785 get_MinValue_31() const { return ___MinValue_31; }
inline DateTime_t3738529785 * get_address_of_MinValue_31() { return &___MinValue_31; }
inline void set_MinValue_31(DateTime_t3738529785 value)
{
___MinValue_31 = value;
}
inline static int32_t get_offset_of_MaxValue_32() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___MaxValue_32)); }
inline DateTime_t3738529785 get_MaxValue_32() const { return ___MaxValue_32; }
inline DateTime_t3738529785 * get_address_of_MaxValue_32() { return &___MaxValue_32; }
inline void set_MaxValue_32(DateTime_t3738529785 value)
{
___MaxValue_32 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DATETIME_T3738529785_H
#ifndef CONDITIONALEXPRESSION_T1874387742_H
#define CONDITIONALEXPRESSION_T1874387742_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.ConditionalExpression
struct ConditionalExpression_t1874387742 : public Expression_t1588164026
{
public:
// System.Linq.Expressions.Expression System.Linq.Expressions.ConditionalExpression::<Test>k__BackingField
Expression_t1588164026 * ___U3CTestU3Ek__BackingField_3;
// System.Linq.Expressions.Expression System.Linq.Expressions.ConditionalExpression::<IfTrue>k__BackingField
Expression_t1588164026 * ___U3CIfTrueU3Ek__BackingField_4;
public:
inline static int32_t get_offset_of_U3CTestU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(ConditionalExpression_t1874387742, ___U3CTestU3Ek__BackingField_3)); }
inline Expression_t1588164026 * get_U3CTestU3Ek__BackingField_3() const { return ___U3CTestU3Ek__BackingField_3; }
inline Expression_t1588164026 ** get_address_of_U3CTestU3Ek__BackingField_3() { return &___U3CTestU3Ek__BackingField_3; }
inline void set_U3CTestU3Ek__BackingField_3(Expression_t1588164026 * value)
{
___U3CTestU3Ek__BackingField_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CTestU3Ek__BackingField_3), value);
}
inline static int32_t get_offset_of_U3CIfTrueU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(ConditionalExpression_t1874387742, ___U3CIfTrueU3Ek__BackingField_4)); }
inline Expression_t1588164026 * get_U3CIfTrueU3Ek__BackingField_4() const { return ___U3CIfTrueU3Ek__BackingField_4; }
inline Expression_t1588164026 ** get_address_of_U3CIfTrueU3Ek__BackingField_4() { return &___U3CIfTrueU3Ek__BackingField_4; }
inline void set_U3CIfTrueU3Ek__BackingField_4(Expression_t1588164026 * value)
{
___U3CIfTrueU3Ek__BackingField_4 = value;
Il2CppCodeGenWriteBarrier((&___U3CIfTrueU3Ek__BackingField_4), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CONDITIONALEXPRESSION_T1874387742_H
#ifndef __STATICARRAYINITTYPESIZEU3D52_T2710732174_H
#define __STATICARRAYINITTYPESIZEU3D52_T2710732174_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=52
struct __StaticArrayInitTypeSizeU3D52_t2710732174
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D52_t2710732174__padding[52];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D52_T2710732174_H
#ifndef DECIMAL_T2948259380_H
#define DECIMAL_T2948259380_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Decimal
struct Decimal_t2948259380
{
public:
// System.Int32 System.Decimal::flags
int32_t ___flags_14;
// System.Int32 System.Decimal::hi
int32_t ___hi_15;
// System.Int32 System.Decimal::lo
int32_t ___lo_16;
// System.Int32 System.Decimal::mid
int32_t ___mid_17;
public:
inline static int32_t get_offset_of_flags_14() { return static_cast<int32_t>(offsetof(Decimal_t2948259380, ___flags_14)); }
inline int32_t get_flags_14() const { return ___flags_14; }
inline int32_t* get_address_of_flags_14() { return &___flags_14; }
inline void set_flags_14(int32_t value)
{
___flags_14 = value;
}
inline static int32_t get_offset_of_hi_15() { return static_cast<int32_t>(offsetof(Decimal_t2948259380, ___hi_15)); }
inline int32_t get_hi_15() const { return ___hi_15; }
inline int32_t* get_address_of_hi_15() { return &___hi_15; }
inline void set_hi_15(int32_t value)
{
___hi_15 = value;
}
inline static int32_t get_offset_of_lo_16() { return static_cast<int32_t>(offsetof(Decimal_t2948259380, ___lo_16)); }
inline int32_t get_lo_16() const { return ___lo_16; }
inline int32_t* get_address_of_lo_16() { return &___lo_16; }
inline void set_lo_16(int32_t value)
{
___lo_16 = value;
}
inline static int32_t get_offset_of_mid_17() { return static_cast<int32_t>(offsetof(Decimal_t2948259380, ___mid_17)); }
inline int32_t get_mid_17() const { return ___mid_17; }
inline int32_t* get_address_of_mid_17() { return &___mid_17; }
inline void set_mid_17(int32_t value)
{
___mid_17 = value;
}
};
struct Decimal_t2948259380_StaticFields
{
public:
// System.UInt32[] System.Decimal::Powers10
UInt32U5BU5D_t2770800703* ___Powers10_6;
// System.Decimal System.Decimal::Zero
Decimal_t2948259380 ___Zero_7;
// System.Decimal System.Decimal::One
Decimal_t2948259380 ___One_8;
// System.Decimal System.Decimal::MinusOne
Decimal_t2948259380 ___MinusOne_9;
// System.Decimal System.Decimal::MaxValue
Decimal_t2948259380 ___MaxValue_10;
// System.Decimal System.Decimal::MinValue
Decimal_t2948259380 ___MinValue_11;
// System.Decimal System.Decimal::NearNegativeZero
Decimal_t2948259380 ___NearNegativeZero_12;
// System.Decimal System.Decimal::NearPositiveZero
Decimal_t2948259380 ___NearPositiveZero_13;
public:
inline static int32_t get_offset_of_Powers10_6() { return static_cast<int32_t>(offsetof(Decimal_t2948259380_StaticFields, ___Powers10_6)); }
inline UInt32U5BU5D_t2770800703* get_Powers10_6() const { return ___Powers10_6; }
inline UInt32U5BU5D_t2770800703** get_address_of_Powers10_6() { return &___Powers10_6; }
inline void set_Powers10_6(UInt32U5BU5D_t2770800703* value)
{
___Powers10_6 = value;
Il2CppCodeGenWriteBarrier((&___Powers10_6), value);
}
inline static int32_t get_offset_of_Zero_7() { return static_cast<int32_t>(offsetof(Decimal_t2948259380_StaticFields, ___Zero_7)); }
inline Decimal_t2948259380 get_Zero_7() const { return ___Zero_7; }
inline Decimal_t2948259380 * get_address_of_Zero_7() { return &___Zero_7; }
inline void set_Zero_7(Decimal_t2948259380 value)
{
___Zero_7 = value;
}
inline static int32_t get_offset_of_One_8() { return static_cast<int32_t>(offsetof(Decimal_t2948259380_StaticFields, ___One_8)); }
inline Decimal_t2948259380 get_One_8() const { return ___One_8; }
inline Decimal_t2948259380 * get_address_of_One_8() { return &___One_8; }
inline void set_One_8(Decimal_t2948259380 value)
{
___One_8 = value;
}
inline static int32_t get_offset_of_MinusOne_9() { return static_cast<int32_t>(offsetof(Decimal_t2948259380_StaticFields, ___MinusOne_9)); }
inline Decimal_t2948259380 get_MinusOne_9() const { return ___MinusOne_9; }
inline Decimal_t2948259380 * get_address_of_MinusOne_9() { return &___MinusOne_9; }
inline void set_MinusOne_9(Decimal_t2948259380 value)
{
___MinusOne_9 = value;
}
inline static int32_t get_offset_of_MaxValue_10() { return static_cast<int32_t>(offsetof(Decimal_t2948259380_StaticFields, ___MaxValue_10)); }
inline Decimal_t2948259380 get_MaxValue_10() const { return ___MaxValue_10; }
inline Decimal_t2948259380 * get_address_of_MaxValue_10() { return &___MaxValue_10; }
inline void set_MaxValue_10(Decimal_t2948259380 value)
{
___MaxValue_10 = value;
}
inline static int32_t get_offset_of_MinValue_11() { return static_cast<int32_t>(offsetof(Decimal_t2948259380_StaticFields, ___MinValue_11)); }
inline Decimal_t2948259380 get_MinValue_11() const { return ___MinValue_11; }
inline Decimal_t2948259380 * get_address_of_MinValue_11() { return &___MinValue_11; }
inline void set_MinValue_11(Decimal_t2948259380 value)
{
___MinValue_11 = value;
}
inline static int32_t get_offset_of_NearNegativeZero_12() { return static_cast<int32_t>(offsetof(Decimal_t2948259380_StaticFields, ___NearNegativeZero_12)); }
inline Decimal_t2948259380 get_NearNegativeZero_12() const { return ___NearNegativeZero_12; }
inline Decimal_t2948259380 * get_address_of_NearNegativeZero_12() { return &___NearNegativeZero_12; }
inline void set_NearNegativeZero_12(Decimal_t2948259380 value)
{
___NearNegativeZero_12 = value;
}
inline static int32_t get_offset_of_NearPositiveZero_13() { return static_cast<int32_t>(offsetof(Decimal_t2948259380_StaticFields, ___NearPositiveZero_13)); }
inline Decimal_t2948259380 get_NearPositiveZero_13() const { return ___NearPositiveZero_13; }
inline Decimal_t2948259380 * get_address_of_NearPositiveZero_13() { return &___NearPositiveZero_13; }
inline void set_NearPositiveZero_13(Decimal_t2948259380 value)
{
___NearPositiveZero_13 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DECIMAL_T2948259380_H
#ifndef NOTHROWEXPRESSIONVISITOR_T3642055891_H
#define NOTHROWEXPRESSIONVISITOR_T3642055891_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.NoThrowExpressionVisitor
struct NoThrowExpressionVisitor_t3642055891 : public ExpressionVisitor_t1561124052
{
public:
public:
};
struct NoThrowExpressionVisitor_t3642055891_StaticFields
{
public:
// System.Object Newtonsoft.Json.Utilities.NoThrowExpressionVisitor::ErrorResult
RuntimeObject * ___ErrorResult_0;
public:
inline static int32_t get_offset_of_ErrorResult_0() { return static_cast<int32_t>(offsetof(NoThrowExpressionVisitor_t3642055891_StaticFields, ___ErrorResult_0)); }
inline RuntimeObject * get_ErrorResult_0() const { return ___ErrorResult_0; }
inline RuntimeObject ** get_address_of_ErrorResult_0() { return &___ErrorResult_0; }
inline void set_ErrorResult_0(RuntimeObject * value)
{
___ErrorResult_0 = value;
Il2CppCodeGenWriteBarrier((&___ErrorResult_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // NOTHROWEXPRESSIONVISITOR_T3642055891_H
#ifndef BYTE_T1134296376_H
#define BYTE_T1134296376_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Byte
struct Byte_t1134296376
{
public:
// System.Byte System.Byte::m_value
uint8_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Byte_t1134296376, ___m_value_0)); }
inline uint8_t get_m_value_0() const { return ___m_value_0; }
inline uint8_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint8_t value)
{
___m_value_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BYTE_T1134296376_H
#ifndef SINGLE_T1397266774_H
#define SINGLE_T1397266774_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Single
struct Single_t1397266774
{
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_t1397266774, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SINGLE_T1397266774_H
#ifndef EVENTINFO_T_H
#define EVENTINFO_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.EventInfo
struct EventInfo_t : public MemberInfo_t
{
public:
// System.Reflection.EventInfo/AddEventAdapter System.Reflection.EventInfo::cached_add_event
AddEventAdapter_t1787725097 * ___cached_add_event_0;
public:
inline static int32_t get_offset_of_cached_add_event_0() { return static_cast<int32_t>(offsetof(EventInfo_t, ___cached_add_event_0)); }
inline AddEventAdapter_t1787725097 * get_cached_add_event_0() const { return ___cached_add_event_0; }
inline AddEventAdapter_t1787725097 ** get_address_of_cached_add_event_0() { return &___cached_add_event_0; }
inline void set_cached_add_event_0(AddEventAdapter_t1787725097 * value)
{
___cached_add_event_0 = value;
Il2CppCodeGenWriteBarrier((&___cached_add_event_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EVENTINFO_T_H
#ifndef SYSTEMEXCEPTION_T176217640_H
#define SYSTEMEXCEPTION_T176217640_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.SystemException
struct SystemException_t176217640 : public Exception_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SYSTEMEXCEPTION_T176217640_H
#ifndef __STATICARRAYINITTYPESIZEU3D20_T1548391515_H
#define __STATICARRAYINITTYPESIZEU3D20_T1548391515_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=20
struct __StaticArrayInitTypeSizeU3D20_t1548391515
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D20_t1548391515__padding[20];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D20_T1548391515_H
#ifndef ENUM_T4135868527_H
#define ENUM_T4135868527_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Enum
struct Enum_t4135868527 : public ValueType_t3640485471
{
public:
public:
};
struct Enum_t4135868527_StaticFields
{
public:
// System.Char[] System.Enum::enumSeperatorCharArray
CharU5BU5D_t3528271667* ___enumSeperatorCharArray_0;
public:
inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t4135868527_StaticFields, ___enumSeperatorCharArray_0)); }
inline CharU5BU5D_t3528271667* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
inline CharU5BU5D_t3528271667** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
inline void set_enumSeperatorCharArray_0(CharU5BU5D_t3528271667* value)
{
___enumSeperatorCharArray_0 = value;
Il2CppCodeGenWriteBarrier((&___enumSeperatorCharArray_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t4135868527_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t4135868527_marshaled_com
{
};
#endif // ENUM_T4135868527_H
#ifndef STRINGBUFFER_T2235727887_H
#define STRINGBUFFER_T2235727887_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.StringBuffer
struct StringBuffer_t2235727887
{
public:
// System.Char[] Newtonsoft.Json.Utilities.StringBuffer::_buffer
CharU5BU5D_t3528271667* ____buffer_0;
// System.Int32 Newtonsoft.Json.Utilities.StringBuffer::_position
int32_t ____position_1;
public:
inline static int32_t get_offset_of__buffer_0() { return static_cast<int32_t>(offsetof(StringBuffer_t2235727887, ____buffer_0)); }
inline CharU5BU5D_t3528271667* get__buffer_0() const { return ____buffer_0; }
inline CharU5BU5D_t3528271667** get_address_of__buffer_0() { return &____buffer_0; }
inline void set__buffer_0(CharU5BU5D_t3528271667* value)
{
____buffer_0 = value;
Il2CppCodeGenWriteBarrier((&____buffer_0), value);
}
inline static int32_t get_offset_of__position_1() { return static_cast<int32_t>(offsetof(StringBuffer_t2235727887, ____position_1)); }
inline int32_t get__position_1() const { return ____position_1; }
inline int32_t* get_address_of__position_1() { return &____position_1; }
inline void set__position_1(int32_t value)
{
____position_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of Newtonsoft.Json.Utilities.StringBuffer
struct StringBuffer_t2235727887_marshaled_pinvoke
{
uint8_t* ____buffer_0;
int32_t ____position_1;
};
// Native definition for COM marshalling of Newtonsoft.Json.Utilities.StringBuffer
struct StringBuffer_t2235727887_marshaled_com
{
uint8_t* ____buffer_0;
int32_t ____position_1;
};
#endif // STRINGBUFFER_T2235727887_H
#ifndef INT64_T3736567304_H
#define INT64_T3736567304_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Int64
struct Int64_t3736567304
{
public:
// System.Int64 System.Int64::m_value
int64_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int64_t3736567304, ___m_value_0)); }
inline int64_t get_m_value_0() const { return ___m_value_0; }
inline int64_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(int64_t value)
{
___m_value_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INT64_T3736567304_H
#ifndef GUID_T_H
#define GUID_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// 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_t386037858 * ____rng_13;
// System.Security.Cryptography.RandomNumberGenerator System.Guid::_fastRng
RandomNumberGenerator_t386037858 * ____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((&____rngAccess_12), value);
}
inline static int32_t get_offset_of__rng_13() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____rng_13)); }
inline RandomNumberGenerator_t386037858 * get__rng_13() const { return ____rng_13; }
inline RandomNumberGenerator_t386037858 ** get_address_of__rng_13() { return &____rng_13; }
inline void set__rng_13(RandomNumberGenerator_t386037858 * value)
{
____rng_13 = value;
Il2CppCodeGenWriteBarrier((&____rng_13), value);
}
inline static int32_t get_offset_of__fastRng_14() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____fastRng_14)); }
inline RandomNumberGenerator_t386037858 * get__fastRng_14() const { return ____fastRng_14; }
inline RandomNumberGenerator_t386037858 ** get_address_of__fastRng_14() { return &____fastRng_14; }
inline void set__fastRng_14(RandomNumberGenerator_t386037858 * value)
{
____fastRng_14 = value;
Il2CppCodeGenWriteBarrier((&____fastRng_14), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // GUID_T_H
#ifndef __STATICARRAYINITTYPESIZEU3D44_T3517366766_H
#define __STATICARRAYINITTYPESIZEU3D44_T3517366766_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=44
struct __StaticArrayInitTypeSizeU3D44_t3517366766
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D44_t3517366766__padding[44];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D44_T3517366766_H
#ifndef __STATICARRAYINITTYPESIZEU3D12_T2710994321_H
#define __STATICARRAYINITTYPESIZEU3D12_T2710994321_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=12
struct __StaticArrayInitTypeSizeU3D12_t2710994321
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D12_t2710994321__padding[12];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D12_T2710994321_H
#ifndef __STATICARRAYINITTYPESIZEU3D24_T3517759982_H
#define __STATICARRAYINITTYPESIZEU3D24_T3517759982_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=24
struct __StaticArrayInitTypeSizeU3D24_t3517759982
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D24_t3517759982__padding[24];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D24_T3517759982_H
#ifndef __STATICARRAYINITTYPESIZEU3D28_T1904621873_H
#define __STATICARRAYINITTYPESIZEU3D28_T1904621873_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=28
struct __StaticArrayInitTypeSizeU3D28_t1904621873
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D28_t1904621873__padding[28];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D28_T1904621873_H
#ifndef STRINGREFERENCE_T2912309144_H
#define STRINGREFERENCE_T2912309144_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.StringReference
struct StringReference_t2912309144
{
public:
// System.Char[] Newtonsoft.Json.Utilities.StringReference::_chars
CharU5BU5D_t3528271667* ____chars_0;
// System.Int32 Newtonsoft.Json.Utilities.StringReference::_startIndex
int32_t ____startIndex_1;
// System.Int32 Newtonsoft.Json.Utilities.StringReference::_length
int32_t ____length_2;
public:
inline static int32_t get_offset_of__chars_0() { return static_cast<int32_t>(offsetof(StringReference_t2912309144, ____chars_0)); }
inline CharU5BU5D_t3528271667* get__chars_0() const { return ____chars_0; }
inline CharU5BU5D_t3528271667** get_address_of__chars_0() { return &____chars_0; }
inline void set__chars_0(CharU5BU5D_t3528271667* value)
{
____chars_0 = value;
Il2CppCodeGenWriteBarrier((&____chars_0), value);
}
inline static int32_t get_offset_of__startIndex_1() { return static_cast<int32_t>(offsetof(StringReference_t2912309144, ____startIndex_1)); }
inline int32_t get__startIndex_1() const { return ____startIndex_1; }
inline int32_t* get_address_of__startIndex_1() { return &____startIndex_1; }
inline void set__startIndex_1(int32_t value)
{
____startIndex_1 = value;
}
inline static int32_t get_offset_of__length_2() { return static_cast<int32_t>(offsetof(StringReference_t2912309144, ____length_2)); }
inline int32_t get__length_2() const { return ____length_2; }
inline int32_t* get_address_of__length_2() { return &____length_2; }
inline void set__length_2(int32_t value)
{
____length_2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of Newtonsoft.Json.Utilities.StringReference
struct StringReference_t2912309144_marshaled_pinvoke
{
uint8_t* ____chars_0;
int32_t ____startIndex_1;
int32_t ____length_2;
};
// Native definition for COM marshalling of Newtonsoft.Json.Utilities.StringReference
struct StringReference_t2912309144_marshaled_com
{
uint8_t* ____chars_0;
int32_t ____startIndex_1;
int32_t ____length_2;
};
#endif // STRINGREFERENCE_T2912309144_H
#ifndef __STATICARRAYINITTYPESIZEU3D16_T385395492_H
#define __STATICARRAYINITTYPESIZEU3D16_T385395492_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=16
struct __StaticArrayInitTypeSizeU3D16_t385395492
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D16_t385395492__padding[16];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D16_T385395492_H
#ifndef __STATICARRAYINITTYPESIZEU3D40_T1547998297_H
#define __STATICARRAYINITTYPESIZEU3D40_T1547998297_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=40
struct __StaticArrayInitTypeSizeU3D40_t1547998297
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D40_t1547998297__padding[40];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D40_T1547998297_H
#ifndef BINARYEXPRESSION_T77573129_H
#define BINARYEXPRESSION_T77573129_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.BinaryExpression
struct BinaryExpression_t77573129 : public Expression_t1588164026
{
public:
// System.Linq.Expressions.Expression System.Linq.Expressions.BinaryExpression::<Right>k__BackingField
Expression_t1588164026 * ___U3CRightU3Ek__BackingField_3;
// System.Linq.Expressions.Expression System.Linq.Expressions.BinaryExpression::<Left>k__BackingField
Expression_t1588164026 * ___U3CLeftU3Ek__BackingField_4;
public:
inline static int32_t get_offset_of_U3CRightU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(BinaryExpression_t77573129, ___U3CRightU3Ek__BackingField_3)); }
inline Expression_t1588164026 * get_U3CRightU3Ek__BackingField_3() const { return ___U3CRightU3Ek__BackingField_3; }
inline Expression_t1588164026 ** get_address_of_U3CRightU3Ek__BackingField_3() { return &___U3CRightU3Ek__BackingField_3; }
inline void set_U3CRightU3Ek__BackingField_3(Expression_t1588164026 * value)
{
___U3CRightU3Ek__BackingField_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CRightU3Ek__BackingField_3), value);
}
inline static int32_t get_offset_of_U3CLeftU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(BinaryExpression_t77573129, ___U3CLeftU3Ek__BackingField_4)); }
inline Expression_t1588164026 * get_U3CLeftU3Ek__BackingField_4() const { return ___U3CLeftU3Ek__BackingField_4; }
inline Expression_t1588164026 ** get_address_of_U3CLeftU3Ek__BackingField_4() { return &___U3CLeftU3Ek__BackingField_4; }
inline void set_U3CLeftU3Ek__BackingField_4(Expression_t1588164026 * value)
{
___U3CLeftU3Ek__BackingField_4 = value;
Il2CppCodeGenWriteBarrier((&___U3CLeftU3Ek__BackingField_4), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BINARYEXPRESSION_T77573129_H
#ifndef NEWEXPRESSION_T1271006003_H
#define NEWEXPRESSION_T1271006003_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.NewExpression
struct NewExpression_t1271006003 : public Expression_t1588164026
{
public:
// System.Collections.Generic.IReadOnlyList`1<System.Linq.Expressions.Expression> System.Linq.Expressions.NewExpression::_arguments
RuntimeObject* ____arguments_3;
// System.Reflection.ConstructorInfo System.Linq.Expressions.NewExpression::<Constructor>k__BackingField
ConstructorInfo_t5769829 * ___U3CConstructorU3Ek__BackingField_4;
// System.Collections.ObjectModel.ReadOnlyCollection`1<System.Reflection.MemberInfo> System.Linq.Expressions.NewExpression::<Members>k__BackingField
ReadOnlyCollection_1_t297610732 * ___U3CMembersU3Ek__BackingField_5;
public:
inline static int32_t get_offset_of__arguments_3() { return static_cast<int32_t>(offsetof(NewExpression_t1271006003, ____arguments_3)); }
inline RuntimeObject* get__arguments_3() const { return ____arguments_3; }
inline RuntimeObject** get_address_of__arguments_3() { return &____arguments_3; }
inline void set__arguments_3(RuntimeObject* value)
{
____arguments_3 = value;
Il2CppCodeGenWriteBarrier((&____arguments_3), value);
}
inline static int32_t get_offset_of_U3CConstructorU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(NewExpression_t1271006003, ___U3CConstructorU3Ek__BackingField_4)); }
inline ConstructorInfo_t5769829 * get_U3CConstructorU3Ek__BackingField_4() const { return ___U3CConstructorU3Ek__BackingField_4; }
inline ConstructorInfo_t5769829 ** get_address_of_U3CConstructorU3Ek__BackingField_4() { return &___U3CConstructorU3Ek__BackingField_4; }
inline void set_U3CConstructorU3Ek__BackingField_4(ConstructorInfo_t5769829 * value)
{
___U3CConstructorU3Ek__BackingField_4 = value;
Il2CppCodeGenWriteBarrier((&___U3CConstructorU3Ek__BackingField_4), value);
}
inline static int32_t get_offset_of_U3CMembersU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(NewExpression_t1271006003, ___U3CMembersU3Ek__BackingField_5)); }
inline ReadOnlyCollection_1_t297610732 * get_U3CMembersU3Ek__BackingField_5() const { return ___U3CMembersU3Ek__BackingField_5; }
inline ReadOnlyCollection_1_t297610732 ** get_address_of_U3CMembersU3Ek__BackingField_5() { return &___U3CMembersU3Ek__BackingField_5; }
inline void set_U3CMembersU3Ek__BackingField_5(ReadOnlyCollection_1_t297610732 * value)
{
___U3CMembersU3Ek__BackingField_5 = value;
Il2CppCodeGenWriteBarrier((&___U3CMembersU3Ek__BackingField_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // NEWEXPRESSION_T1271006003_H
#ifndef LAMBDAEXPRESSION_T3131094331_H
#define LAMBDAEXPRESSION_T3131094331_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.LambdaExpression
struct LambdaExpression_t3131094331 : public Expression_t1588164026
{
public:
// System.Linq.Expressions.Expression System.Linq.Expressions.LambdaExpression::_body
Expression_t1588164026 * ____body_3;
public:
inline static int32_t get_offset_of__body_3() { return static_cast<int32_t>(offsetof(LambdaExpression_t3131094331, ____body_3)); }
inline Expression_t1588164026 * get__body_3() const { return ____body_3; }
inline Expression_t1588164026 ** get_address_of__body_3() { return &____body_3; }
inline void set__body_3(Expression_t1588164026 * value)
{
____body_3 = value;
Il2CppCodeGenWriteBarrier((&____body_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LAMBDAEXPRESSION_T3131094331_H
#ifndef INT32_T2950945753_H
#define INT32_T2950945753_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Int32
struct Int32_t2950945753
{
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_t2950945753, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INT32_T2950945753_H
#ifndef METHODCALLEXPRESSION_T3675920717_H
#define METHODCALLEXPRESSION_T3675920717_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.MethodCallExpression
struct MethodCallExpression_t3675920717 : public Expression_t1588164026
{
public:
// System.Reflection.MethodInfo System.Linq.Expressions.MethodCallExpression::<Method>k__BackingField
MethodInfo_t * ___U3CMethodU3Ek__BackingField_3;
public:
inline static int32_t get_offset_of_U3CMethodU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(MethodCallExpression_t3675920717, ___U3CMethodU3Ek__BackingField_3)); }
inline MethodInfo_t * get_U3CMethodU3Ek__BackingField_3() const { return ___U3CMethodU3Ek__BackingField_3; }
inline MethodInfo_t ** get_address_of_U3CMethodU3Ek__BackingField_3() { return &___U3CMethodU3Ek__BackingField_3; }
inline void set_U3CMethodU3Ek__BackingField_3(MethodInfo_t * value)
{
___U3CMethodU3Ek__BackingField_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CMethodU3Ek__BackingField_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // METHODCALLEXPRESSION_T3675920717_H
#ifndef CHAR_T3634460470_H
#define CHAR_T3634460470_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Char
struct Char_t3634460470
{
public:
// System.Char System.Char::m_value
Il2CppChar ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Char_t3634460470, ___m_value_0)); }
inline Il2CppChar get_m_value_0() const { return ___m_value_0; }
inline Il2CppChar* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(Il2CppChar value)
{
___m_value_0 = value;
}
};
struct Char_t3634460470_StaticFields
{
public:
// System.Byte[] System.Char::categoryForLatin1
ByteU5BU5D_t4116647657* ___categoryForLatin1_3;
public:
inline static int32_t get_offset_of_categoryForLatin1_3() { return static_cast<int32_t>(offsetof(Char_t3634460470_StaticFields, ___categoryForLatin1_3)); }
inline ByteU5BU5D_t4116647657* get_categoryForLatin1_3() const { return ___categoryForLatin1_3; }
inline ByteU5BU5D_t4116647657** get_address_of_categoryForLatin1_3() { return &___categoryForLatin1_3; }
inline void set_categoryForLatin1_3(ByteU5BU5D_t4116647657* value)
{
___categoryForLatin1_3 = value;
Il2CppCodeGenWriteBarrier((&___categoryForLatin1_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CHAR_T3634460470_H
#ifndef __STATICARRAYINITTYPESIZEU3D10_T1548194905_H
#define __STATICARRAYINITTYPESIZEU3D10_T1548194905_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=10
struct __StaticArrayInitTypeSizeU3D10_t1548194905
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D10_t1548194905__padding[10];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D10_T1548194905_H
#ifndef BLOCKEXPRESSION_T2693004534_H
#define BLOCKEXPRESSION_T2693004534_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.BlockExpression
struct BlockExpression_t2693004534 : public Expression_t1588164026
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BLOCKEXPRESSION_T2693004534_H
#ifndef PROPERTYINFO_T_H
#define PROPERTYINFO_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.PropertyInfo
struct PropertyInfo_t : public MemberInfo_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PROPERTYINFO_T_H
#ifndef FIELDINFO_T_H
#define FIELDINFO_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.FieldInfo
struct FieldInfo_t : public MemberInfo_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FIELDINFO_T_H
#ifndef VOID_T1185182177_H
#define VOID_T1185182177_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void
struct Void_t1185182177
{
public:
union
{
struct
{
};
uint8_t Void_t1185182177__padding[1];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VOID_T1185182177_H
#ifndef CONSTANTEXPRESSION_T3613654278_H
#define CONSTANTEXPRESSION_T3613654278_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.ConstantExpression
struct ConstantExpression_t3613654278 : public Expression_t1588164026
{
public:
// System.Object System.Linq.Expressions.ConstantExpression::<Value>k__BackingField
RuntimeObject * ___U3CValueU3Ek__BackingField_3;
public:
inline static int32_t get_offset_of_U3CValueU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(ConstantExpression_t3613654278, ___U3CValueU3Ek__BackingField_3)); }
inline RuntimeObject * get_U3CValueU3Ek__BackingField_3() const { return ___U3CValueU3Ek__BackingField_3; }
inline RuntimeObject ** get_address_of_U3CValueU3Ek__BackingField_3() { return &___U3CValueU3Ek__BackingField_3; }
inline void set_U3CValueU3Ek__BackingField_3(RuntimeObject * value)
{
___U3CValueU3Ek__BackingField_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CValueU3Ek__BackingField_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CONSTANTEXPRESSION_T3613654278_H
#ifndef INTPTR_T_H
#define INTPTR_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// 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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTPTR_T_H
#ifndef BOOLEAN_T97287965_H
#define BOOLEAN_T97287965_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Boolean
struct Boolean_t97287965
{
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_t97287965, ___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_t97287965_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_t97287965_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((&___TrueString_5), value);
}
inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_t97287965_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((&___FalseString_6), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BOOLEAN_T97287965_H
#ifndef METHODBASE_T_H
#define METHODBASE_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.MethodBase
struct MethodBase_t : public MemberInfo_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // METHODBASE_T_H
#ifndef PARAMETEREXPRESSION_T1118422084_H
#define PARAMETEREXPRESSION_T1118422084_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.ParameterExpression
struct ParameterExpression_t1118422084 : public Expression_t1588164026
{
public:
// System.String System.Linq.Expressions.ParameterExpression::<Name>k__BackingField
String_t* ___U3CNameU3Ek__BackingField_3;
public:
inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(ParameterExpression_t1118422084, ___U3CNameU3Ek__BackingField_3)); }
inline String_t* get_U3CNameU3Ek__BackingField_3() const { return ___U3CNameU3Ek__BackingField_3; }
inline String_t** get_address_of_U3CNameU3Ek__BackingField_3() { return &___U3CNameU3Ek__BackingField_3; }
inline void set_U3CNameU3Ek__BackingField_3(String_t* value)
{
___U3CNameU3Ek__BackingField_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CNameU3Ek__BackingField_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PARAMETEREXPRESSION_T1118422084_H
#ifndef ENUMMEMBERATTRIBUTE_T1084128815_H
#define ENUMMEMBERATTRIBUTE_T1084128815_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Serialization.EnumMemberAttribute
struct EnumMemberAttribute_t1084128815 : public Attribute_t861562559
{
public:
// System.String System.Runtime.Serialization.EnumMemberAttribute::value
String_t* ___value_0;
public:
inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(EnumMemberAttribute_t1084128815, ___value_0)); }
inline String_t* get_value_0() const { return ___value_0; }
inline String_t** get_address_of_value_0() { return &___value_0; }
inline void set_value_0(String_t* value)
{
___value_0 = value;
Il2CppCodeGenWriteBarrier((&___value_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ENUMMEMBERATTRIBUTE_T1084128815_H
#ifndef EXPRESSIONREFLECTIONDELEGATEFACTORY_T3044714092_H
#define EXPRESSIONREFLECTIONDELEGATEFACTORY_T3044714092_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory
struct ExpressionReflectionDelegateFactory_t3044714092 : public ReflectionDelegateFactory_t2528576452
{
public:
public:
};
struct ExpressionReflectionDelegateFactory_t3044714092_StaticFields
{
public:
// Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory::_instance
ExpressionReflectionDelegateFactory_t3044714092 * ____instance_0;
public:
inline static int32_t get_offset_of__instance_0() { return static_cast<int32_t>(offsetof(ExpressionReflectionDelegateFactory_t3044714092_StaticFields, ____instance_0)); }
inline ExpressionReflectionDelegateFactory_t3044714092 * get__instance_0() const { return ____instance_0; }
inline ExpressionReflectionDelegateFactory_t3044714092 ** get_address_of__instance_0() { return &____instance_0; }
inline void set__instance_0(ExpressionReflectionDelegateFactory_t3044714092 * value)
{
____instance_0 = value;
Il2CppCodeGenWriteBarrier((&____instance_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EXPRESSIONREFLECTIONDELEGATEFACTORY_T3044714092_H
#ifndef DOUBLE_T594665363_H
#define DOUBLE_T594665363_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Double
struct Double_t594665363
{
public:
// System.Double System.Double::m_value
double ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Double_t594665363, ___m_value_0)); }
inline double get_m_value_0() const { return ___m_value_0; }
inline double* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(double value)
{
___m_value_0 = value;
}
};
struct Double_t594665363_StaticFields
{
public:
// System.Double System.Double::NegativeZero
double ___NegativeZero_7;
public:
inline static int32_t get_offset_of_NegativeZero_7() { return static_cast<int32_t>(offsetof(Double_t594665363_StaticFields, ___NegativeZero_7)); }
inline double get_NegativeZero_7() const { return ___NegativeZero_7; }
inline double* get_address_of_NegativeZero_7() { return &___NegativeZero_7; }
inline void set_NegativeZero_7(double value)
{
___NegativeZero_7 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DOUBLE_T594665363_H
#ifndef TEXTWRITER_T3478189236_H
#define TEXTWRITER_T3478189236_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.IO.TextWriter
struct TextWriter_t3478189236 : public MarshalByRefObject_t2760389100
{
public:
// System.Char[] System.IO.TextWriter::CoreNewLine
CharU5BU5D_t3528271667* ___CoreNewLine_9;
// System.IFormatProvider System.IO.TextWriter::InternalFormatProvider
RuntimeObject* ___InternalFormatProvider_10;
public:
inline static int32_t get_offset_of_CoreNewLine_9() { return static_cast<int32_t>(offsetof(TextWriter_t3478189236, ___CoreNewLine_9)); }
inline CharU5BU5D_t3528271667* get_CoreNewLine_9() const { return ___CoreNewLine_9; }
inline CharU5BU5D_t3528271667** get_address_of_CoreNewLine_9() { return &___CoreNewLine_9; }
inline void set_CoreNewLine_9(CharU5BU5D_t3528271667* value)
{
___CoreNewLine_9 = value;
Il2CppCodeGenWriteBarrier((&___CoreNewLine_9), value);
}
inline static int32_t get_offset_of_InternalFormatProvider_10() { return static_cast<int32_t>(offsetof(TextWriter_t3478189236, ___InternalFormatProvider_10)); }
inline RuntimeObject* get_InternalFormatProvider_10() const { return ___InternalFormatProvider_10; }
inline RuntimeObject** get_address_of_InternalFormatProvider_10() { return &___InternalFormatProvider_10; }
inline void set_InternalFormatProvider_10(RuntimeObject* value)
{
___InternalFormatProvider_10 = value;
Il2CppCodeGenWriteBarrier((&___InternalFormatProvider_10), value);
}
};
struct TextWriter_t3478189236_StaticFields
{
public:
// System.IO.TextWriter System.IO.TextWriter::Null
TextWriter_t3478189236 * ___Null_1;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteCharDelegate
Action_1_t3252573759 * ____WriteCharDelegate_2;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteStringDelegate
Action_1_t3252573759 * ____WriteStringDelegate_3;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteCharArrayRangeDelegate
Action_1_t3252573759 * ____WriteCharArrayRangeDelegate_4;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteLineCharDelegate
Action_1_t3252573759 * ____WriteLineCharDelegate_5;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteLineStringDelegate
Action_1_t3252573759 * ____WriteLineStringDelegate_6;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteLineCharArrayRangeDelegate
Action_1_t3252573759 * ____WriteLineCharArrayRangeDelegate_7;
// System.Action`1<System.Object> System.IO.TextWriter::_FlushDelegate
Action_1_t3252573759 * ____FlushDelegate_8;
public:
inline static int32_t get_offset_of_Null_1() { return static_cast<int32_t>(offsetof(TextWriter_t3478189236_StaticFields, ___Null_1)); }
inline TextWriter_t3478189236 * get_Null_1() const { return ___Null_1; }
inline TextWriter_t3478189236 ** get_address_of_Null_1() { return &___Null_1; }
inline void set_Null_1(TextWriter_t3478189236 * value)
{
___Null_1 = value;
Il2CppCodeGenWriteBarrier((&___Null_1), value);
}
inline static int32_t get_offset_of__WriteCharDelegate_2() { return static_cast<int32_t>(offsetof(TextWriter_t3478189236_StaticFields, ____WriteCharDelegate_2)); }
inline Action_1_t3252573759 * get__WriteCharDelegate_2() const { return ____WriteCharDelegate_2; }
inline Action_1_t3252573759 ** get_address_of__WriteCharDelegate_2() { return &____WriteCharDelegate_2; }
inline void set__WriteCharDelegate_2(Action_1_t3252573759 * value)
{
____WriteCharDelegate_2 = value;
Il2CppCodeGenWriteBarrier((&____WriteCharDelegate_2), value);
}
inline static int32_t get_offset_of__WriteStringDelegate_3() { return static_cast<int32_t>(offsetof(TextWriter_t3478189236_StaticFields, ____WriteStringDelegate_3)); }
inline Action_1_t3252573759 * get__WriteStringDelegate_3() const { return ____WriteStringDelegate_3; }
inline Action_1_t3252573759 ** get_address_of__WriteStringDelegate_3() { return &____WriteStringDelegate_3; }
inline void set__WriteStringDelegate_3(Action_1_t3252573759 * value)
{
____WriteStringDelegate_3 = value;
Il2CppCodeGenWriteBarrier((&____WriteStringDelegate_3), value);
}
inline static int32_t get_offset_of__WriteCharArrayRangeDelegate_4() { return static_cast<int32_t>(offsetof(TextWriter_t3478189236_StaticFields, ____WriteCharArrayRangeDelegate_4)); }
inline Action_1_t3252573759 * get__WriteCharArrayRangeDelegate_4() const { return ____WriteCharArrayRangeDelegate_4; }
inline Action_1_t3252573759 ** get_address_of__WriteCharArrayRangeDelegate_4() { return &____WriteCharArrayRangeDelegate_4; }
inline void set__WriteCharArrayRangeDelegate_4(Action_1_t3252573759 * value)
{
____WriteCharArrayRangeDelegate_4 = value;
Il2CppCodeGenWriteBarrier((&____WriteCharArrayRangeDelegate_4), value);
}
inline static int32_t get_offset_of__WriteLineCharDelegate_5() { return static_cast<int32_t>(offsetof(TextWriter_t3478189236_StaticFields, ____WriteLineCharDelegate_5)); }
inline Action_1_t3252573759 * get__WriteLineCharDelegate_5() const { return ____WriteLineCharDelegate_5; }
inline Action_1_t3252573759 ** get_address_of__WriteLineCharDelegate_5() { return &____WriteLineCharDelegate_5; }
inline void set__WriteLineCharDelegate_5(Action_1_t3252573759 * value)
{
____WriteLineCharDelegate_5 = value;
Il2CppCodeGenWriteBarrier((&____WriteLineCharDelegate_5), value);
}
inline static int32_t get_offset_of__WriteLineStringDelegate_6() { return static_cast<int32_t>(offsetof(TextWriter_t3478189236_StaticFields, ____WriteLineStringDelegate_6)); }
inline Action_1_t3252573759 * get__WriteLineStringDelegate_6() const { return ____WriteLineStringDelegate_6; }
inline Action_1_t3252573759 ** get_address_of__WriteLineStringDelegate_6() { return &____WriteLineStringDelegate_6; }
inline void set__WriteLineStringDelegate_6(Action_1_t3252573759 * value)
{
____WriteLineStringDelegate_6 = value;
Il2CppCodeGenWriteBarrier((&____WriteLineStringDelegate_6), value);
}
inline static int32_t get_offset_of__WriteLineCharArrayRangeDelegate_7() { return static_cast<int32_t>(offsetof(TextWriter_t3478189236_StaticFields, ____WriteLineCharArrayRangeDelegate_7)); }
inline Action_1_t3252573759 * get__WriteLineCharArrayRangeDelegate_7() const { return ____WriteLineCharArrayRangeDelegate_7; }
inline Action_1_t3252573759 ** get_address_of__WriteLineCharArrayRangeDelegate_7() { return &____WriteLineCharArrayRangeDelegate_7; }
inline void set__WriteLineCharArrayRangeDelegate_7(Action_1_t3252573759 * value)
{
____WriteLineCharArrayRangeDelegate_7 = value;
Il2CppCodeGenWriteBarrier((&____WriteLineCharArrayRangeDelegate_7), value);
}
inline static int32_t get_offset_of__FlushDelegate_8() { return static_cast<int32_t>(offsetof(TextWriter_t3478189236_StaticFields, ____FlushDelegate_8)); }
inline Action_1_t3252573759 * get__FlushDelegate_8() const { return ____FlushDelegate_8; }
inline Action_1_t3252573759 ** get_address_of__FlushDelegate_8() { return &____FlushDelegate_8; }
inline void set__FlushDelegate_8(Action_1_t3252573759 * value)
{
____FlushDelegate_8 = value;
Il2CppCodeGenWriteBarrier((&____FlushDelegate_8), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TEXTWRITER_T3478189236_H
#ifndef LATEBOUNDREFLECTIONDELEGATEFACTORY_T925499913_H
#define LATEBOUNDREFLECTIONDELEGATEFACTORY_T925499913_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory
struct LateBoundReflectionDelegateFactory_t925499913 : public ReflectionDelegateFactory_t2528576452
{
public:
public:
};
struct LateBoundReflectionDelegateFactory_t925499913_StaticFields
{
public:
// Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory::_instance
LateBoundReflectionDelegateFactory_t925499913 * ____instance_0;
public:
inline static int32_t get_offset_of__instance_0() { return static_cast<int32_t>(offsetof(LateBoundReflectionDelegateFactory_t925499913_StaticFields, ____instance_0)); }
inline LateBoundReflectionDelegateFactory_t925499913 * get__instance_0() const { return ____instance_0; }
inline LateBoundReflectionDelegateFactory_t925499913 ** get_address_of__instance_0() { return &____instance_0; }
inline void set__instance_0(LateBoundReflectionDelegateFactory_t925499913 * value)
{
____instance_0 = value;
Il2CppCodeGenWriteBarrier((&____instance_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LATEBOUNDREFLECTIONDELEGATEFACTORY_T925499913_H
#ifndef UINT64_T4134040092_H
#define UINT64_T4134040092_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.UInt64
struct UInt64_t4134040092
{
public:
// System.UInt64 System.UInt64::m_value
uint64_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt64_t4134040092, ___m_value_0)); }
inline uint64_t get_m_value_0() const { return ___m_value_0; }
inline uint64_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint64_t value)
{
___m_value_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // UINT64_T4134040092_H
#ifndef DYNAMICMETAOBJECTBINDER_T2517928906_H
#define DYNAMICMETAOBJECTBINDER_T2517928906_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Dynamic.DynamicMetaObjectBinder
struct DynamicMetaObjectBinder_t2517928906 : public CallSiteBinder_t1870160633
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DYNAMICMETAOBJECTBINDER_T2517928906_H
#ifndef NULLABLE_1_T378540539_H
#define NULLABLE_1_T378540539_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Nullable`1<System.Int32>
struct Nullable_1_t378540539
{
public:
// T System.Nullable`1::value
int32_t ___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_t378540539, ___value_0)); }
inline int32_t get_value_0() const { return ___value_0; }
inline int32_t* get_address_of_value_0() { return &___value_0; }
inline void set_value_0(int32_t value)
{
___value_0 = value;
}
inline static int32_t get_offset_of_has_value_1() { return static_cast<int32_t>(offsetof(Nullable_1_t378540539, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // NULLABLE_1_T378540539_H
#ifndef MEMBERTYPES_T2015719099_H
#define MEMBERTYPES_T2015719099_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.MemberTypes
struct MemberTypes_t2015719099
{
public:
// System.Int32 Newtonsoft.Json.Utilities.MemberTypes::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(MemberTypes_t2015719099, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MEMBERTYPES_T2015719099_H
#ifndef EXPRESSIONTYPE_T2886294549_H
#define EXPRESSIONTYPE_T2886294549_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.ExpressionType
struct ExpressionType_t2886294549
{
public:
// System.Int32 System.Linq.Expressions.ExpressionType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ExpressionType_t2886294549, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EXPRESSIONTYPE_T2886294549_H
#ifndef ARGUMENTEXCEPTION_T132251570_H
#define ARGUMENTEXCEPTION_T132251570_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.ArgumentException
struct ArgumentException_t132251570 : public SystemException_t176217640
{
public:
// System.String System.ArgumentException::m_paramName
String_t* ___m_paramName_17;
public:
inline static int32_t get_offset_of_m_paramName_17() { return static_cast<int32_t>(offsetof(ArgumentException_t132251570, ___m_paramName_17)); }
inline String_t* get_m_paramName_17() const { return ___m_paramName_17; }
inline String_t** get_address_of_m_paramName_17() { return &___m_paramName_17; }
inline void set_m_paramName_17(String_t* value)
{
___m_paramName_17 = value;
Il2CppCodeGenWriteBarrier((&___m_paramName_17), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ARGUMENTEXCEPTION_T132251570_H
#ifndef STRINGWRITER_T802263757_H
#define STRINGWRITER_T802263757_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.IO.StringWriter
struct StringWriter_t802263757 : public TextWriter_t3478189236
{
public:
// System.Text.StringBuilder System.IO.StringWriter::_sb
StringBuilder_t * ____sb_12;
// System.Boolean System.IO.StringWriter::_isOpen
bool ____isOpen_13;
public:
inline static int32_t get_offset_of__sb_12() { return static_cast<int32_t>(offsetof(StringWriter_t802263757, ____sb_12)); }
inline StringBuilder_t * get__sb_12() const { return ____sb_12; }
inline StringBuilder_t ** get_address_of__sb_12() { return &____sb_12; }
inline void set__sb_12(StringBuilder_t * value)
{
____sb_12 = value;
Il2CppCodeGenWriteBarrier((&____sb_12), value);
}
inline static int32_t get_offset_of__isOpen_13() { return static_cast<int32_t>(offsetof(StringWriter_t802263757, ____isOpen_13)); }
inline bool get__isOpen_13() const { return ____isOpen_13; }
inline bool* get_address_of__isOpen_13() { return &____isOpen_13; }
inline void set__isOpen_13(bool value)
{
____isOpen_13 = value;
}
};
struct StringWriter_t802263757_StaticFields
{
public:
// System.Text.UnicodeEncoding modreq(System.Runtime.CompilerServices.IsVolatile) System.IO.StringWriter::m_encoding
UnicodeEncoding_t1959134050 * ___m_encoding_11;
public:
inline static int32_t get_offset_of_m_encoding_11() { return static_cast<int32_t>(offsetof(StringWriter_t802263757_StaticFields, ___m_encoding_11)); }
inline UnicodeEncoding_t1959134050 * get_m_encoding_11() const { return ___m_encoding_11; }
inline UnicodeEncoding_t1959134050 ** get_address_of_m_encoding_11() { return &___m_encoding_11; }
inline void set_m_encoding_11(UnicodeEncoding_t1959134050 * value)
{
___m_encoding_11 = value;
Il2CppCodeGenWriteBarrier((&___m_encoding_11), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STRINGWRITER_T802263757_H
#ifndef DELEGATE_T1188392813_H
#define DELEGATE_T1188392813_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Delegate
struct Delegate_t1188392813 : public RuntimeObject
{
public:
// System.IntPtr System.Delegate::method_ptr
Il2CppMethodPointer ___method_ptr_0;
// System.IntPtr System.Delegate::invoke_impl
intptr_t ___invoke_impl_1;
// System.Object System.Delegate::m_target
RuntimeObject * ___m_target_2;
// System.IntPtr System.Delegate::method
intptr_t ___method_3;
// System.IntPtr System.Delegate::delegate_trampoline
intptr_t ___delegate_trampoline_4;
// System.IntPtr System.Delegate::extra_arg
intptr_t ___extra_arg_5;
// System.IntPtr System.Delegate::method_code
intptr_t ___method_code_6;
// System.Reflection.MethodInfo System.Delegate::method_info
MethodInfo_t * ___method_info_7;
// System.Reflection.MethodInfo System.Delegate::original_method_info
MethodInfo_t * ___original_method_info_8;
// System.DelegateData System.Delegate::data
DelegateData_t1677132599 * ___data_9;
// System.Boolean System.Delegate::method_is_virtual
bool ___method_is_virtual_10;
public:
inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_ptr_0)); }
inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; }
inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; }
inline void set_method_ptr_0(Il2CppMethodPointer value)
{
___method_ptr_0 = value;
}
inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___invoke_impl_1)); }
inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; }
inline intptr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; }
inline void set_invoke_impl_1(intptr_t value)
{
___invoke_impl_1 = value;
}
inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___m_target_2)); }
inline RuntimeObject * get_m_target_2() const { return ___m_target_2; }
inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; }
inline void set_m_target_2(RuntimeObject * value)
{
___m_target_2 = value;
Il2CppCodeGenWriteBarrier((&___m_target_2), value);
}
inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_3)); }
inline intptr_t get_method_3() const { return ___method_3; }
inline intptr_t* get_address_of_method_3() { return &___method_3; }
inline void set_method_3(intptr_t value)
{
___method_3 = value;
}
inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___delegate_trampoline_4)); }
inline intptr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; }
inline intptr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; }
inline void set_delegate_trampoline_4(intptr_t value)
{
___delegate_trampoline_4 = value;
}
inline static int32_t get_offset_of_extra_arg_5() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___extra_arg_5)); }
inline intptr_t get_extra_arg_5() const { return ___extra_arg_5; }
inline intptr_t* get_address_of_extra_arg_5() { return &___extra_arg_5; }
inline void set_extra_arg_5(intptr_t value)
{
___extra_arg_5 = value;
}
inline static int32_t get_offset_of_method_code_6() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_code_6)); }
inline intptr_t get_method_code_6() const { return ___method_code_6; }
inline intptr_t* get_address_of_method_code_6() { return &___method_code_6; }
inline void set_method_code_6(intptr_t value)
{
___method_code_6 = value;
}
inline static int32_t get_offset_of_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_info_7)); }
inline MethodInfo_t * get_method_info_7() const { return ___method_info_7; }
inline MethodInfo_t ** get_address_of_method_info_7() { return &___method_info_7; }
inline void set_method_info_7(MethodInfo_t * value)
{
___method_info_7 = value;
Il2CppCodeGenWriteBarrier((&___method_info_7), value);
}
inline static int32_t get_offset_of_original_method_info_8() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___original_method_info_8)); }
inline MethodInfo_t * get_original_method_info_8() const { return ___original_method_info_8; }
inline MethodInfo_t ** get_address_of_original_method_info_8() { return &___original_method_info_8; }
inline void set_original_method_info_8(MethodInfo_t * value)
{
___original_method_info_8 = value;
Il2CppCodeGenWriteBarrier((&___original_method_info_8), value);
}
inline static int32_t get_offset_of_data_9() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___data_9)); }
inline DelegateData_t1677132599 * get_data_9() const { return ___data_9; }
inline DelegateData_t1677132599 ** get_address_of_data_9() { return &___data_9; }
inline void set_data_9(DelegateData_t1677132599 * value)
{
___data_9 = value;
Il2CppCodeGenWriteBarrier((&___data_9), value);
}
inline static int32_t get_offset_of_method_is_virtual_10() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_is_virtual_10)); }
inline bool get_method_is_virtual_10() const { return ___method_is_virtual_10; }
inline bool* get_address_of_method_is_virtual_10() { return &___method_is_virtual_10; }
inline void set_method_is_virtual_10(bool value)
{
___method_is_virtual_10 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Delegate
struct Delegate_t1188392813_marshaled_pinvoke
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1677132599 * ___data_9;
int32_t ___method_is_virtual_10;
};
// Native definition for COM marshalling of System.Delegate
struct Delegate_t1188392813_marshaled_com
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1677132599 * ___data_9;
int32_t ___method_is_virtual_10;
};
#endif // DELEGATE_T1188392813_H
#ifndef GETMEMBERBINDER_T2463380603_H
#define GETMEMBERBINDER_T2463380603_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Dynamic.GetMemberBinder
struct GetMemberBinder_t2463380603 : public DynamicMetaObjectBinder_t2517928906
{
public:
// System.String System.Dynamic.GetMemberBinder::<Name>k__BackingField
String_t* ___U3CNameU3Ek__BackingField_1;
// System.Boolean System.Dynamic.GetMemberBinder::<IgnoreCase>k__BackingField
bool ___U3CIgnoreCaseU3Ek__BackingField_2;
public:
inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(GetMemberBinder_t2463380603, ___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((&___U3CNameU3Ek__BackingField_1), value);
}
inline static int32_t get_offset_of_U3CIgnoreCaseU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(GetMemberBinder_t2463380603, ___U3CIgnoreCaseU3Ek__BackingField_2)); }
inline bool get_U3CIgnoreCaseU3Ek__BackingField_2() const { return ___U3CIgnoreCaseU3Ek__BackingField_2; }
inline bool* get_address_of_U3CIgnoreCaseU3Ek__BackingField_2() { return &___U3CIgnoreCaseU3Ek__BackingField_2; }
inline void set_U3CIgnoreCaseU3Ek__BackingField_2(bool value)
{
___U3CIgnoreCaseU3Ek__BackingField_2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // GETMEMBERBINDER_T2463380603_H
#ifndef METHODINFO_T_H
#define METHODINFO_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.MethodInfo
struct MethodInfo_t : public MethodBase_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // METHODINFO_T_H
#ifndef DATETIMEOFFSET_T3229287507_H
#define DATETIMEOFFSET_T3229287507_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.DateTimeOffset
struct DateTimeOffset_t3229287507
{
public:
// System.DateTime System.DateTimeOffset::m_dateTime
DateTime_t3738529785 ___m_dateTime_2;
// System.Int16 System.DateTimeOffset::m_offsetMinutes
int16_t ___m_offsetMinutes_3;
public:
inline static int32_t get_offset_of_m_dateTime_2() { return static_cast<int32_t>(offsetof(DateTimeOffset_t3229287507, ___m_dateTime_2)); }
inline DateTime_t3738529785 get_m_dateTime_2() const { return ___m_dateTime_2; }
inline DateTime_t3738529785 * get_address_of_m_dateTime_2() { return &___m_dateTime_2; }
inline void set_m_dateTime_2(DateTime_t3738529785 value)
{
___m_dateTime_2 = value;
}
inline static int32_t get_offset_of_m_offsetMinutes_3() { return static_cast<int32_t>(offsetof(DateTimeOffset_t3229287507, ___m_offsetMinutes_3)); }
inline int16_t get_m_offsetMinutes_3() const { return ___m_offsetMinutes_3; }
inline int16_t* get_address_of_m_offsetMinutes_3() { return &___m_offsetMinutes_3; }
inline void set_m_offsetMinutes_3(int16_t value)
{
___m_offsetMinutes_3 = value;
}
};
struct DateTimeOffset_t3229287507_StaticFields
{
public:
// System.DateTimeOffset System.DateTimeOffset::MinValue
DateTimeOffset_t3229287507 ___MinValue_0;
// System.DateTimeOffset System.DateTimeOffset::MaxValue
DateTimeOffset_t3229287507 ___MaxValue_1;
public:
inline static int32_t get_offset_of_MinValue_0() { return static_cast<int32_t>(offsetof(DateTimeOffset_t3229287507_StaticFields, ___MinValue_0)); }
inline DateTimeOffset_t3229287507 get_MinValue_0() const { return ___MinValue_0; }
inline DateTimeOffset_t3229287507 * get_address_of_MinValue_0() { return &___MinValue_0; }
inline void set_MinValue_0(DateTimeOffset_t3229287507 value)
{
___MinValue_0 = value;
}
inline static int32_t get_offset_of_MaxValue_1() { return static_cast<int32_t>(offsetof(DateTimeOffset_t3229287507_StaticFields, ___MaxValue_1)); }
inline DateTimeOffset_t3229287507 get_MaxValue_1() const { return ___MaxValue_1; }
inline DateTimeOffset_t3229287507 * get_address_of_MaxValue_1() { return &___MaxValue_1; }
inline void set_MaxValue_1(DateTimeOffset_t3229287507 value)
{
___MaxValue_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DATETIMEOFFSET_T3229287507_H
#ifndef CONSTRUCTORINFO_T5769829_H
#define CONSTRUCTORINFO_T5769829_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.ConstructorInfo
struct ConstructorInfo_t5769829 : public MethodBase_t
{
public:
public:
};
struct ConstructorInfo_t5769829_StaticFields
{
public:
// System.String System.Reflection.ConstructorInfo::ConstructorName
String_t* ___ConstructorName_0;
// System.String System.Reflection.ConstructorInfo::TypeConstructorName
String_t* ___TypeConstructorName_1;
public:
inline static int32_t get_offset_of_ConstructorName_0() { return static_cast<int32_t>(offsetof(ConstructorInfo_t5769829_StaticFields, ___ConstructorName_0)); }
inline String_t* get_ConstructorName_0() const { return ___ConstructorName_0; }
inline String_t** get_address_of_ConstructorName_0() { return &___ConstructorName_0; }
inline void set_ConstructorName_0(String_t* value)
{
___ConstructorName_0 = value;
Il2CppCodeGenWriteBarrier((&___ConstructorName_0), value);
}
inline static int32_t get_offset_of_TypeConstructorName_1() { return static_cast<int32_t>(offsetof(ConstructorInfo_t5769829_StaticFields, ___TypeConstructorName_1)); }
inline String_t* get_TypeConstructorName_1() const { return ___TypeConstructorName_1; }
inline String_t** get_address_of_TypeConstructorName_1() { return &___TypeConstructorName_1; }
inline void set_TypeConstructorName_1(String_t* value)
{
___TypeConstructorName_1 = value;
Il2CppCodeGenWriteBarrier((&___TypeConstructorName_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CONSTRUCTORINFO_T5769829_H
#ifndef RUNTIMETYPEHANDLE_T3027515415_H
#define RUNTIMETYPEHANDLE_T3027515415_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.RuntimeTypeHandle
struct RuntimeTypeHandle_t3027515415
{
public:
// System.IntPtr System.RuntimeTypeHandle::value
intptr_t ___value_0;
public:
inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeTypeHandle_t3027515415, ___value_0)); }
inline intptr_t get_value_0() const { return ___value_0; }
inline intptr_t* get_address_of_value_0() { return &___value_0; }
inline void set_value_0(intptr_t value)
{
___value_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RUNTIMETYPEHANDLE_T3027515415_H
#ifndef PARAMETERATTRIBUTES_T1826424051_H
#define PARAMETERATTRIBUTES_T1826424051_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.ParameterAttributes
struct ParameterAttributes_t1826424051
{
public:
// System.Int32 System.Reflection.ParameterAttributes::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ParameterAttributes_t1826424051, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PARAMETERATTRIBUTES_T1826424051_H
#ifndef CSHARPARGUMENTINFOFLAGS_T2354760778_H
#define CSHARPARGUMENTINFOFLAGS_T2354760778_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags
struct CSharpArgumentInfoFlags_t2354760778
{
public:
// System.Int32 Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CSharpArgumentInfoFlags_t2354760778, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CSHARPARGUMENTINFOFLAGS_T2354760778_H
#ifndef CSHARPBINDERFLAGS_T2620443489_H
#define CSHARPBINDERFLAGS_T2620443489_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags
struct CSharpBinderFlags_t2620443489
{
public:
// System.Int32 Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CSharpBinderFlags_t2620443489, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CSHARPBINDERFLAGS_T2620443489_H
#ifndef BINDINGFLAGS_T2721792723_H
#define BINDINGFLAGS_T2721792723_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.BindingFlags
struct BindingFlags_t2721792723
{
public:
// System.Int32 System.Reflection.BindingFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(BindingFlags_t2721792723, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BINDINGFLAGS_T2721792723_H
#ifndef INVALIDOPERATIONEXCEPTION_T56020091_H
#define INVALIDOPERATIONEXCEPTION_T56020091_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.InvalidOperationException
struct InvalidOperationException_t56020091 : public SystemException_t176217640
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INVALIDOPERATIONEXCEPTION_T56020091_H
#ifndef STRINGCOMPARISON_T3657712135_H
#define STRINGCOMPARISON_T3657712135_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.StringComparison
struct StringComparison_t3657712135
{
public:
// System.Int32 System.StringComparison::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StringComparison_t3657712135, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STRINGCOMPARISON_T3657712135_H
#ifndef WRITESTATE_T2626176463_H
#define WRITESTATE_T2626176463_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.WriteState
struct WriteState_t2626176463
{
public:
// System.Int32 Newtonsoft.Json.WriteState::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(WriteState_t2626176463, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // WRITESTATE_T2626176463_H
#ifndef JSONTOKEN_T1917433489_H
#define JSONTOKEN_T1917433489_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.JsonToken
struct JsonToken_t1917433489
{
public:
// System.Int32 Newtonsoft.Json.JsonToken::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(JsonToken_t1917433489, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // JSONTOKEN_T1917433489_H
#ifndef FORMATTERASSEMBLYSTYLE_T868039826_H
#define FORMATTERASSEMBLYSTYLE_T868039826_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Serialization.Formatters.FormatterAssemblyStyle
struct FormatterAssemblyStyle_t868039826
{
public:
// System.Int32 System.Runtime.Serialization.Formatters.FormatterAssemblyStyle::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(FormatterAssemblyStyle_t868039826, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FORMATTERASSEMBLYSTYLE_T868039826_H
#ifndef PRIMITIVETYPECODE_T798949904_H
#define PRIMITIVETYPECODE_T798949904_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.PrimitiveTypeCode
struct PrimitiveTypeCode_t798949904
{
public:
// System.Int32 Newtonsoft.Json.Utilities.PrimitiveTypeCode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PrimitiveTypeCode_t798949904, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PRIMITIVETYPECODE_T798949904_H
#ifndef PARSERESULT_T747067398_H
#define PARSERESULT_T747067398_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ParseResult
struct ParseResult_t747067398
{
public:
// System.Int32 Newtonsoft.Json.Utilities.ParseResult::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ParseResult_t747067398, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PARSERESULT_T747067398_H
#ifndef PARSERTIMEZONE_T1439545141_H
#define PARSERTIMEZONE_T1439545141_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ParserTimeZone
struct ParserTimeZone_t1439545141
{
public:
// System.Int32 Newtonsoft.Json.Utilities.ParserTimeZone::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ParserTimeZone_t1439545141, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PARSERTIMEZONE_T1439545141_H
#ifndef ASSEMBLY_T_H
#define ASSEMBLY_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.Assembly
struct Assembly_t : public RuntimeObject
{
public:
// System.IntPtr System.Reflection.Assembly::_mono_assembly
intptr_t ____mono_assembly_0;
// System.Reflection.Assembly/ResolveEventHolder System.Reflection.Assembly::resolve_event_holder
ResolveEventHolder_t2120639521 * ___resolve_event_holder_1;
// System.Security.Policy.Evidence System.Reflection.Assembly::_evidence
Evidence_t2008144148 * ____evidence_2;
// System.Security.PermissionSet System.Reflection.Assembly::_minimum
PermissionSet_t223948603 * ____minimum_3;
// System.Security.PermissionSet System.Reflection.Assembly::_optional
PermissionSet_t223948603 * ____optional_4;
// System.Security.PermissionSet System.Reflection.Assembly::_refuse
PermissionSet_t223948603 * ____refuse_5;
// System.Security.PermissionSet System.Reflection.Assembly::_granted
PermissionSet_t223948603 * ____granted_6;
// System.Security.PermissionSet System.Reflection.Assembly::_denied
PermissionSet_t223948603 * ____denied_7;
// System.Boolean System.Reflection.Assembly::fromByteArray
bool ___fromByteArray_8;
// System.String System.Reflection.Assembly::assemblyName
String_t* ___assemblyName_9;
public:
inline static int32_t get_offset_of__mono_assembly_0() { return static_cast<int32_t>(offsetof(Assembly_t, ____mono_assembly_0)); }
inline intptr_t get__mono_assembly_0() const { return ____mono_assembly_0; }
inline intptr_t* get_address_of__mono_assembly_0() { return &____mono_assembly_0; }
inline void set__mono_assembly_0(intptr_t value)
{
____mono_assembly_0 = value;
}
inline static int32_t get_offset_of_resolve_event_holder_1() { return static_cast<int32_t>(offsetof(Assembly_t, ___resolve_event_holder_1)); }
inline ResolveEventHolder_t2120639521 * get_resolve_event_holder_1() const { return ___resolve_event_holder_1; }
inline ResolveEventHolder_t2120639521 ** get_address_of_resolve_event_holder_1() { return &___resolve_event_holder_1; }
inline void set_resolve_event_holder_1(ResolveEventHolder_t2120639521 * value)
{
___resolve_event_holder_1 = value;
Il2CppCodeGenWriteBarrier((&___resolve_event_holder_1), value);
}
inline static int32_t get_offset_of__evidence_2() { return static_cast<int32_t>(offsetof(Assembly_t, ____evidence_2)); }
inline Evidence_t2008144148 * get__evidence_2() const { return ____evidence_2; }
inline Evidence_t2008144148 ** get_address_of__evidence_2() { return &____evidence_2; }
inline void set__evidence_2(Evidence_t2008144148 * value)
{
____evidence_2 = value;
Il2CppCodeGenWriteBarrier((&____evidence_2), value);
}
inline static int32_t get_offset_of__minimum_3() { return static_cast<int32_t>(offsetof(Assembly_t, ____minimum_3)); }
inline PermissionSet_t223948603 * get__minimum_3() const { return ____minimum_3; }
inline PermissionSet_t223948603 ** get_address_of__minimum_3() { return &____minimum_3; }
inline void set__minimum_3(PermissionSet_t223948603 * value)
{
____minimum_3 = value;
Il2CppCodeGenWriteBarrier((&____minimum_3), value);
}
inline static int32_t get_offset_of__optional_4() { return static_cast<int32_t>(offsetof(Assembly_t, ____optional_4)); }
inline PermissionSet_t223948603 * get__optional_4() const { return ____optional_4; }
inline PermissionSet_t223948603 ** get_address_of__optional_4() { return &____optional_4; }
inline void set__optional_4(PermissionSet_t223948603 * value)
{
____optional_4 = value;
Il2CppCodeGenWriteBarrier((&____optional_4), value);
}
inline static int32_t get_offset_of__refuse_5() { return static_cast<int32_t>(offsetof(Assembly_t, ____refuse_5)); }
inline PermissionSet_t223948603 * get__refuse_5() const { return ____refuse_5; }
inline PermissionSet_t223948603 ** get_address_of__refuse_5() { return &____refuse_5; }
inline void set__refuse_5(PermissionSet_t223948603 * value)
{
____refuse_5 = value;
Il2CppCodeGenWriteBarrier((&____refuse_5), value);
}
inline static int32_t get_offset_of__granted_6() { return static_cast<int32_t>(offsetof(Assembly_t, ____granted_6)); }
inline PermissionSet_t223948603 * get__granted_6() const { return ____granted_6; }
inline PermissionSet_t223948603 ** get_address_of__granted_6() { return &____granted_6; }
inline void set__granted_6(PermissionSet_t223948603 * value)
{
____granted_6 = value;
Il2CppCodeGenWriteBarrier((&____granted_6), value);
}
inline static int32_t get_offset_of__denied_7() { return static_cast<int32_t>(offsetof(Assembly_t, ____denied_7)); }
inline PermissionSet_t223948603 * get__denied_7() const { return ____denied_7; }
inline PermissionSet_t223948603 ** get_address_of__denied_7() { return &____denied_7; }
inline void set__denied_7(PermissionSet_t223948603 * value)
{
____denied_7 = value;
Il2CppCodeGenWriteBarrier((&____denied_7), value);
}
inline static int32_t get_offset_of_fromByteArray_8() { return static_cast<int32_t>(offsetof(Assembly_t, ___fromByteArray_8)); }
inline bool get_fromByteArray_8() const { return ___fromByteArray_8; }
inline bool* get_address_of_fromByteArray_8() { return &___fromByteArray_8; }
inline void set_fromByteArray_8(bool value)
{
___fromByteArray_8 = value;
}
inline static int32_t get_offset_of_assemblyName_9() { return static_cast<int32_t>(offsetof(Assembly_t, ___assemblyName_9)); }
inline String_t* get_assemblyName_9() const { return ___assemblyName_9; }
inline String_t** get_address_of_assemblyName_9() { return &___assemblyName_9; }
inline void set_assemblyName_9(String_t* value)
{
___assemblyName_9 = value;
Il2CppCodeGenWriteBarrier((&___assemblyName_9), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Reflection.Assembly
struct Assembly_t_marshaled_pinvoke
{
intptr_t ____mono_assembly_0;
ResolveEventHolder_t2120639521 * ___resolve_event_holder_1;
Evidence_t2008144148 * ____evidence_2;
PermissionSet_t223948603 * ____minimum_3;
PermissionSet_t223948603 * ____optional_4;
PermissionSet_t223948603 * ____refuse_5;
PermissionSet_t223948603 * ____granted_6;
PermissionSet_t223948603 * ____denied_7;
int32_t ___fromByteArray_8;
char* ___assemblyName_9;
};
// Native definition for COM marshalling of System.Reflection.Assembly
struct Assembly_t_marshaled_com
{
intptr_t ____mono_assembly_0;
ResolveEventHolder_t2120639521 * ___resolve_event_holder_1;
Evidence_t2008144148 * ____evidence_2;
PermissionSet_t223948603 * ____minimum_3;
PermissionSet_t223948603 * ____optional_4;
PermissionSet_t223948603 * ____refuse_5;
PermissionSet_t223948603 * ____granted_6;
PermissionSet_t223948603 * ____denied_7;
int32_t ___fromByteArray_8;
Il2CppChar* ___assemblyName_9;
};
#endif // ASSEMBLY_T_H
#ifndef BINDINGFLAGS_T3509784737_H
#define BINDINGFLAGS_T3509784737_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.BindingFlags
struct BindingFlags_t3509784737
{
public:
// System.Int32 Newtonsoft.Json.Utilities.BindingFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(BindingFlags_t3509784737, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BINDINGFLAGS_T3509784737_H
#ifndef U3CPRIVATEIMPLEMENTATIONDETAILSU3E_T3057255369_H
#define U3CPRIVATEIMPLEMENTATIONDETAILSU3E_T3057255369_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>
struct U3CPrivateImplementationDetailsU3E_t3057255369 : public RuntimeObject
{
public:
public:
};
struct U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields
{
public:
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=20 <PrivateImplementationDetails>::0F002A59EC63CCA50A3CC2C062C42A4935A05C35
__StaticArrayInitTypeSizeU3D20_t1548391515 ___0F002A59EC63CCA50A3CC2C062C42A4935A05C35_0;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=16 <PrivateImplementationDetails>::2DD83A8B0A7366E2EAC75009078BFE8632CDC70D
__StaticArrayInitTypeSizeU3D16_t385395492 ___2DD83A8B0A7366E2EAC75009078BFE8632CDC70D_1;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=20 <PrivateImplementationDetails>::54B7E4C5C88483847DA5B1EFB2E217B53FEF9666
__StaticArrayInitTypeSizeU3D20_t1548391515 ___54B7E4C5C88483847DA5B1EFB2E217B53FEF9666_2;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=40 <PrivateImplementationDetails>::610F3BBD757449636B52AB1E8670DE917884C641
__StaticArrayInitTypeSizeU3D40_t1547998297 ___610F3BBD757449636B52AB1E8670DE917884C641_3;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=20 <PrivateImplementationDetails>::6F297923D21BE95CE222BF981C2B5FB1B824C582
__StaticArrayInitTypeSizeU3D20_t1548391515 ___6F297923D21BE95CE222BF981C2B5FB1B824C582_4;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=40 <PrivateImplementationDetails>::804BD52EB3CDCB7BB0E8C8567DDEE46653FC624E
__StaticArrayInitTypeSizeU3D40_t1547998297 ___804BD52EB3CDCB7BB0E8C8567DDEE46653FC624E_5;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=16 <PrivateImplementationDetails>::9A14E82BEEDCA749BDA3423758C6033328AE9D16
__StaticArrayInitTypeSizeU3D16_t385395492 ___9A14E82BEEDCA749BDA3423758C6033328AE9D16_6;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=28 <PrivateImplementationDetails>::9E31F24F64765FCAA589F589324D17C9FCF6A06D
__StaticArrayInitTypeSizeU3D28_t1904621873 ___9E31F24F64765FCAA589F589324D17C9FCF6A06D_7;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=44 <PrivateImplementationDetails>::A2ABD69721A03D7D0642D81CF0763E03FF1FFBB4
__StaticArrayInitTypeSizeU3D44_t3517366766 ___A2ABD69721A03D7D0642D81CF0763E03FF1FFBB4_8;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=16 <PrivateImplementationDetails>::A578D03ED416447261A6B1B139697ADD728B35B8
__StaticArrayInitTypeSizeU3D16_t385395492 ___A578D03ED416447261A6B1B139697ADD728B35B8_9;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=40 <PrivateImplementationDetails>::A6DC2102A5AEF8F5B8C5387A080F381336A1853F
__StaticArrayInitTypeSizeU3D40_t1547998297 ___A6DC2102A5AEF8F5B8C5387A080F381336A1853F_10;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=12 <PrivateImplementationDetails>::ADFD2E1C801C825415DD53F4F2F72A13B389313C
__StaticArrayInitTypeSizeU3D12_t2710994321 ___ADFD2E1C801C825415DD53F4F2F72A13B389313C_11;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=40 <PrivateImplementationDetails>::C4C312E2FC5BDFB59C5C048BCB568D6DD6D44220
__StaticArrayInitTypeSizeU3D40_t1547998297 ___C4C312E2FC5BDFB59C5C048BCB568D6DD6D44220_12;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=40 <PrivateImplementationDetails>::D06BCCE559D1067E5035085507D7504CDC37BF0A
__StaticArrayInitTypeSizeU3D40_t1547998297 ___D06BCCE559D1067E5035085507D7504CDC37BF0A_13;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=24 <PrivateImplementationDetails>::D288968AD84532DC3EF6F9F09DC70F2ACA02C7C6
__StaticArrayInitTypeSizeU3D24_t3517759982 ___D288968AD84532DC3EF6F9F09DC70F2ACA02C7C6_14;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=10 <PrivateImplementationDetails>::D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB
__StaticArrayInitTypeSizeU3D10_t1548194905 ___D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB_15;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=40 <PrivateImplementationDetails>::D68E65A98602F8616EEDC785B546177DF94150BD
__StaticArrayInitTypeSizeU3D40_t1547998297 ___D68E65A98602F8616EEDC785B546177DF94150BD_16;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=52 <PrivateImplementationDetails>::DD3AEFEADB1CD615F3017763F1568179FEE640B0
__StaticArrayInitTypeSizeU3D52_t2710732174 ___DD3AEFEADB1CD615F3017763F1568179FEE640B0_17;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=52 <PrivateImplementationDetails>::E92B39D8233061927D9ACDE54665E68E7535635A
__StaticArrayInitTypeSizeU3D52_t2710732174 ___E92B39D8233061927D9ACDE54665E68E7535635A_18;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=40 <PrivateImplementationDetails>::F0126FF7D771FAC4CE63479D6D4CF5934A341EC6
__StaticArrayInitTypeSizeU3D40_t1547998297 ___F0126FF7D771FAC4CE63479D6D4CF5934A341EC6_19;
public:
inline static int32_t get_offset_of_U30F002A59EC63CCA50A3CC2C062C42A4935A05C35_0() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___0F002A59EC63CCA50A3CC2C062C42A4935A05C35_0)); }
inline __StaticArrayInitTypeSizeU3D20_t1548391515 get_U30F002A59EC63CCA50A3CC2C062C42A4935A05C35_0() const { return ___0F002A59EC63CCA50A3CC2C062C42A4935A05C35_0; }
inline __StaticArrayInitTypeSizeU3D20_t1548391515 * get_address_of_U30F002A59EC63CCA50A3CC2C062C42A4935A05C35_0() { return &___0F002A59EC63CCA50A3CC2C062C42A4935A05C35_0; }
inline void set_U30F002A59EC63CCA50A3CC2C062C42A4935A05C35_0(__StaticArrayInitTypeSizeU3D20_t1548391515 value)
{
___0F002A59EC63CCA50A3CC2C062C42A4935A05C35_0 = value;
}
inline static int32_t get_offset_of_U32DD83A8B0A7366E2EAC75009078BFE8632CDC70D_1() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___2DD83A8B0A7366E2EAC75009078BFE8632CDC70D_1)); }
inline __StaticArrayInitTypeSizeU3D16_t385395492 get_U32DD83A8B0A7366E2EAC75009078BFE8632CDC70D_1() const { return ___2DD83A8B0A7366E2EAC75009078BFE8632CDC70D_1; }
inline __StaticArrayInitTypeSizeU3D16_t385395492 * get_address_of_U32DD83A8B0A7366E2EAC75009078BFE8632CDC70D_1() { return &___2DD83A8B0A7366E2EAC75009078BFE8632CDC70D_1; }
inline void set_U32DD83A8B0A7366E2EAC75009078BFE8632CDC70D_1(__StaticArrayInitTypeSizeU3D16_t385395492 value)
{
___2DD83A8B0A7366E2EAC75009078BFE8632CDC70D_1 = value;
}
inline static int32_t get_offset_of_U354B7E4C5C88483847DA5B1EFB2E217B53FEF9666_2() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___54B7E4C5C88483847DA5B1EFB2E217B53FEF9666_2)); }
inline __StaticArrayInitTypeSizeU3D20_t1548391515 get_U354B7E4C5C88483847DA5B1EFB2E217B53FEF9666_2() const { return ___54B7E4C5C88483847DA5B1EFB2E217B53FEF9666_2; }
inline __StaticArrayInitTypeSizeU3D20_t1548391515 * get_address_of_U354B7E4C5C88483847DA5B1EFB2E217B53FEF9666_2() { return &___54B7E4C5C88483847DA5B1EFB2E217B53FEF9666_2; }
inline void set_U354B7E4C5C88483847DA5B1EFB2E217B53FEF9666_2(__StaticArrayInitTypeSizeU3D20_t1548391515 value)
{
___54B7E4C5C88483847DA5B1EFB2E217B53FEF9666_2 = value;
}
inline static int32_t get_offset_of_U3610F3BBD757449636B52AB1E8670DE917884C641_3() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___610F3BBD757449636B52AB1E8670DE917884C641_3)); }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 get_U3610F3BBD757449636B52AB1E8670DE917884C641_3() const { return ___610F3BBD757449636B52AB1E8670DE917884C641_3; }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 * get_address_of_U3610F3BBD757449636B52AB1E8670DE917884C641_3() { return &___610F3BBD757449636B52AB1E8670DE917884C641_3; }
inline void set_U3610F3BBD757449636B52AB1E8670DE917884C641_3(__StaticArrayInitTypeSizeU3D40_t1547998297 value)
{
___610F3BBD757449636B52AB1E8670DE917884C641_3 = value;
}
inline static int32_t get_offset_of_U36F297923D21BE95CE222BF981C2B5FB1B824C582_4() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___6F297923D21BE95CE222BF981C2B5FB1B824C582_4)); }
inline __StaticArrayInitTypeSizeU3D20_t1548391515 get_U36F297923D21BE95CE222BF981C2B5FB1B824C582_4() const { return ___6F297923D21BE95CE222BF981C2B5FB1B824C582_4; }
inline __StaticArrayInitTypeSizeU3D20_t1548391515 * get_address_of_U36F297923D21BE95CE222BF981C2B5FB1B824C582_4() { return &___6F297923D21BE95CE222BF981C2B5FB1B824C582_4; }
inline void set_U36F297923D21BE95CE222BF981C2B5FB1B824C582_4(__StaticArrayInitTypeSizeU3D20_t1548391515 value)
{
___6F297923D21BE95CE222BF981C2B5FB1B824C582_4 = value;
}
inline static int32_t get_offset_of_U3804BD52EB3CDCB7BB0E8C8567DDEE46653FC624E_5() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___804BD52EB3CDCB7BB0E8C8567DDEE46653FC624E_5)); }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 get_U3804BD52EB3CDCB7BB0E8C8567DDEE46653FC624E_5() const { return ___804BD52EB3CDCB7BB0E8C8567DDEE46653FC624E_5; }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 * get_address_of_U3804BD52EB3CDCB7BB0E8C8567DDEE46653FC624E_5() { return &___804BD52EB3CDCB7BB0E8C8567DDEE46653FC624E_5; }
inline void set_U3804BD52EB3CDCB7BB0E8C8567DDEE46653FC624E_5(__StaticArrayInitTypeSizeU3D40_t1547998297 value)
{
___804BD52EB3CDCB7BB0E8C8567DDEE46653FC624E_5 = value;
}
inline static int32_t get_offset_of_U39A14E82BEEDCA749BDA3423758C6033328AE9D16_6() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___9A14E82BEEDCA749BDA3423758C6033328AE9D16_6)); }
inline __StaticArrayInitTypeSizeU3D16_t385395492 get_U39A14E82BEEDCA749BDA3423758C6033328AE9D16_6() const { return ___9A14E82BEEDCA749BDA3423758C6033328AE9D16_6; }
inline __StaticArrayInitTypeSizeU3D16_t385395492 * get_address_of_U39A14E82BEEDCA749BDA3423758C6033328AE9D16_6() { return &___9A14E82BEEDCA749BDA3423758C6033328AE9D16_6; }
inline void set_U39A14E82BEEDCA749BDA3423758C6033328AE9D16_6(__StaticArrayInitTypeSizeU3D16_t385395492 value)
{
___9A14E82BEEDCA749BDA3423758C6033328AE9D16_6 = value;
}
inline static int32_t get_offset_of_U39E31F24F64765FCAA589F589324D17C9FCF6A06D_7() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___9E31F24F64765FCAA589F589324D17C9FCF6A06D_7)); }
inline __StaticArrayInitTypeSizeU3D28_t1904621873 get_U39E31F24F64765FCAA589F589324D17C9FCF6A06D_7() const { return ___9E31F24F64765FCAA589F589324D17C9FCF6A06D_7; }
inline __StaticArrayInitTypeSizeU3D28_t1904621873 * get_address_of_U39E31F24F64765FCAA589F589324D17C9FCF6A06D_7() { return &___9E31F24F64765FCAA589F589324D17C9FCF6A06D_7; }
inline void set_U39E31F24F64765FCAA589F589324D17C9FCF6A06D_7(__StaticArrayInitTypeSizeU3D28_t1904621873 value)
{
___9E31F24F64765FCAA589F589324D17C9FCF6A06D_7 = value;
}
inline static int32_t get_offset_of_A2ABD69721A03D7D0642D81CF0763E03FF1FFBB4_8() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___A2ABD69721A03D7D0642D81CF0763E03FF1FFBB4_8)); }
inline __StaticArrayInitTypeSizeU3D44_t3517366766 get_A2ABD69721A03D7D0642D81CF0763E03FF1FFBB4_8() const { return ___A2ABD69721A03D7D0642D81CF0763E03FF1FFBB4_8; }
inline __StaticArrayInitTypeSizeU3D44_t3517366766 * get_address_of_A2ABD69721A03D7D0642D81CF0763E03FF1FFBB4_8() { return &___A2ABD69721A03D7D0642D81CF0763E03FF1FFBB4_8; }
inline void set_A2ABD69721A03D7D0642D81CF0763E03FF1FFBB4_8(__StaticArrayInitTypeSizeU3D44_t3517366766 value)
{
___A2ABD69721A03D7D0642D81CF0763E03FF1FFBB4_8 = value;
}
inline static int32_t get_offset_of_A578D03ED416447261A6B1B139697ADD728B35B8_9() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___A578D03ED416447261A6B1B139697ADD728B35B8_9)); }
inline __StaticArrayInitTypeSizeU3D16_t385395492 get_A578D03ED416447261A6B1B139697ADD728B35B8_9() const { return ___A578D03ED416447261A6B1B139697ADD728B35B8_9; }
inline __StaticArrayInitTypeSizeU3D16_t385395492 * get_address_of_A578D03ED416447261A6B1B139697ADD728B35B8_9() { return &___A578D03ED416447261A6B1B139697ADD728B35B8_9; }
inline void set_A578D03ED416447261A6B1B139697ADD728B35B8_9(__StaticArrayInitTypeSizeU3D16_t385395492 value)
{
___A578D03ED416447261A6B1B139697ADD728B35B8_9 = value;
}
inline static int32_t get_offset_of_A6DC2102A5AEF8F5B8C5387A080F381336A1853F_10() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___A6DC2102A5AEF8F5B8C5387A080F381336A1853F_10)); }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 get_A6DC2102A5AEF8F5B8C5387A080F381336A1853F_10() const { return ___A6DC2102A5AEF8F5B8C5387A080F381336A1853F_10; }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 * get_address_of_A6DC2102A5AEF8F5B8C5387A080F381336A1853F_10() { return &___A6DC2102A5AEF8F5B8C5387A080F381336A1853F_10; }
inline void set_A6DC2102A5AEF8F5B8C5387A080F381336A1853F_10(__StaticArrayInitTypeSizeU3D40_t1547998297 value)
{
___A6DC2102A5AEF8F5B8C5387A080F381336A1853F_10 = value;
}
inline static int32_t get_offset_of_ADFD2E1C801C825415DD53F4F2F72A13B389313C_11() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___ADFD2E1C801C825415DD53F4F2F72A13B389313C_11)); }
inline __StaticArrayInitTypeSizeU3D12_t2710994321 get_ADFD2E1C801C825415DD53F4F2F72A13B389313C_11() const { return ___ADFD2E1C801C825415DD53F4F2F72A13B389313C_11; }
inline __StaticArrayInitTypeSizeU3D12_t2710994321 * get_address_of_ADFD2E1C801C825415DD53F4F2F72A13B389313C_11() { return &___ADFD2E1C801C825415DD53F4F2F72A13B389313C_11; }
inline void set_ADFD2E1C801C825415DD53F4F2F72A13B389313C_11(__StaticArrayInitTypeSizeU3D12_t2710994321 value)
{
___ADFD2E1C801C825415DD53F4F2F72A13B389313C_11 = value;
}
inline static int32_t get_offset_of_C4C312E2FC5BDFB59C5C048BCB568D6DD6D44220_12() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___C4C312E2FC5BDFB59C5C048BCB568D6DD6D44220_12)); }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 get_C4C312E2FC5BDFB59C5C048BCB568D6DD6D44220_12() const { return ___C4C312E2FC5BDFB59C5C048BCB568D6DD6D44220_12; }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 * get_address_of_C4C312E2FC5BDFB59C5C048BCB568D6DD6D44220_12() { return &___C4C312E2FC5BDFB59C5C048BCB568D6DD6D44220_12; }
inline void set_C4C312E2FC5BDFB59C5C048BCB568D6DD6D44220_12(__StaticArrayInitTypeSizeU3D40_t1547998297 value)
{
___C4C312E2FC5BDFB59C5C048BCB568D6DD6D44220_12 = value;
}
inline static int32_t get_offset_of_D06BCCE559D1067E5035085507D7504CDC37BF0A_13() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___D06BCCE559D1067E5035085507D7504CDC37BF0A_13)); }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 get_D06BCCE559D1067E5035085507D7504CDC37BF0A_13() const { return ___D06BCCE559D1067E5035085507D7504CDC37BF0A_13; }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 * get_address_of_D06BCCE559D1067E5035085507D7504CDC37BF0A_13() { return &___D06BCCE559D1067E5035085507D7504CDC37BF0A_13; }
inline void set_D06BCCE559D1067E5035085507D7504CDC37BF0A_13(__StaticArrayInitTypeSizeU3D40_t1547998297 value)
{
___D06BCCE559D1067E5035085507D7504CDC37BF0A_13 = value;
}
inline static int32_t get_offset_of_D288968AD84532DC3EF6F9F09DC70F2ACA02C7C6_14() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___D288968AD84532DC3EF6F9F09DC70F2ACA02C7C6_14)); }
inline __StaticArrayInitTypeSizeU3D24_t3517759982 get_D288968AD84532DC3EF6F9F09DC70F2ACA02C7C6_14() const { return ___D288968AD84532DC3EF6F9F09DC70F2ACA02C7C6_14; }
inline __StaticArrayInitTypeSizeU3D24_t3517759982 * get_address_of_D288968AD84532DC3EF6F9F09DC70F2ACA02C7C6_14() { return &___D288968AD84532DC3EF6F9F09DC70F2ACA02C7C6_14; }
inline void set_D288968AD84532DC3EF6F9F09DC70F2ACA02C7C6_14(__StaticArrayInitTypeSizeU3D24_t3517759982 value)
{
___D288968AD84532DC3EF6F9F09DC70F2ACA02C7C6_14 = value;
}
inline static int32_t get_offset_of_D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB_15() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB_15)); }
inline __StaticArrayInitTypeSizeU3D10_t1548194905 get_D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB_15() const { return ___D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB_15; }
inline __StaticArrayInitTypeSizeU3D10_t1548194905 * get_address_of_D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB_15() { return &___D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB_15; }
inline void set_D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB_15(__StaticArrayInitTypeSizeU3D10_t1548194905 value)
{
___D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB_15 = value;
}
inline static int32_t get_offset_of_D68E65A98602F8616EEDC785B546177DF94150BD_16() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___D68E65A98602F8616EEDC785B546177DF94150BD_16)); }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 get_D68E65A98602F8616EEDC785B546177DF94150BD_16() const { return ___D68E65A98602F8616EEDC785B546177DF94150BD_16; }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 * get_address_of_D68E65A98602F8616EEDC785B546177DF94150BD_16() { return &___D68E65A98602F8616EEDC785B546177DF94150BD_16; }
inline void set_D68E65A98602F8616EEDC785B546177DF94150BD_16(__StaticArrayInitTypeSizeU3D40_t1547998297 value)
{
___D68E65A98602F8616EEDC785B546177DF94150BD_16 = value;
}
inline static int32_t get_offset_of_DD3AEFEADB1CD615F3017763F1568179FEE640B0_17() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___DD3AEFEADB1CD615F3017763F1568179FEE640B0_17)); }
inline __StaticArrayInitTypeSizeU3D52_t2710732174 get_DD3AEFEADB1CD615F3017763F1568179FEE640B0_17() const { return ___DD3AEFEADB1CD615F3017763F1568179FEE640B0_17; }
inline __StaticArrayInitTypeSizeU3D52_t2710732174 * get_address_of_DD3AEFEADB1CD615F3017763F1568179FEE640B0_17() { return &___DD3AEFEADB1CD615F3017763F1568179FEE640B0_17; }
inline void set_DD3AEFEADB1CD615F3017763F1568179FEE640B0_17(__StaticArrayInitTypeSizeU3D52_t2710732174 value)
{
___DD3AEFEADB1CD615F3017763F1568179FEE640B0_17 = value;
}
inline static int32_t get_offset_of_E92B39D8233061927D9ACDE54665E68E7535635A_18() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___E92B39D8233061927D9ACDE54665E68E7535635A_18)); }
inline __StaticArrayInitTypeSizeU3D52_t2710732174 get_E92B39D8233061927D9ACDE54665E68E7535635A_18() const { return ___E92B39D8233061927D9ACDE54665E68E7535635A_18; }
inline __StaticArrayInitTypeSizeU3D52_t2710732174 * get_address_of_E92B39D8233061927D9ACDE54665E68E7535635A_18() { return &___E92B39D8233061927D9ACDE54665E68E7535635A_18; }
inline void set_E92B39D8233061927D9ACDE54665E68E7535635A_18(__StaticArrayInitTypeSizeU3D52_t2710732174 value)
{
___E92B39D8233061927D9ACDE54665E68E7535635A_18 = value;
}
inline static int32_t get_offset_of_F0126FF7D771FAC4CE63479D6D4CF5934A341EC6_19() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255369_StaticFields, ___F0126FF7D771FAC4CE63479D6D4CF5934A341EC6_19)); }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 get_F0126FF7D771FAC4CE63479D6D4CF5934A341EC6_19() const { return ___F0126FF7D771FAC4CE63479D6D4CF5934A341EC6_19; }
inline __StaticArrayInitTypeSizeU3D40_t1547998297 * get_address_of_F0126FF7D771FAC4CE63479D6D4CF5934A341EC6_19() { return &___F0126FF7D771FAC4CE63479D6D4CF5934A341EC6_19; }
inline void set_F0126FF7D771FAC4CE63479D6D4CF5934A341EC6_19(__StaticArrayInitTypeSizeU3D40_t1547998297 value)
{
___F0126FF7D771FAC4CE63479D6D4CF5934A341EC6_19 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CPRIVATEIMPLEMENTATIONDETAILSU3E_T3057255369_H
#ifndef STRINGESCAPEHANDLING_T4077875565_H
#define STRINGESCAPEHANDLING_T4077875565_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.StringEscapeHandling
struct StringEscapeHandling_t4077875565
{
public:
// System.Int32 Newtonsoft.Json.StringEscapeHandling::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StringEscapeHandling_t4077875565, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STRINGESCAPEHANDLING_T4077875565_H
#ifndef SETMEMBERBINDER_T2112048622_H
#define SETMEMBERBINDER_T2112048622_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Dynamic.SetMemberBinder
struct SetMemberBinder_t2112048622 : public DynamicMetaObjectBinder_t2517928906
{
public:
// System.String System.Dynamic.SetMemberBinder::<Name>k__BackingField
String_t* ___U3CNameU3Ek__BackingField_1;
// System.Boolean System.Dynamic.SetMemberBinder::<IgnoreCase>k__BackingField
bool ___U3CIgnoreCaseU3Ek__BackingField_2;
public:
inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(SetMemberBinder_t2112048622, ___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((&___U3CNameU3Ek__BackingField_1), value);
}
inline static int32_t get_offset_of_U3CIgnoreCaseU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(SetMemberBinder_t2112048622, ___U3CIgnoreCaseU3Ek__BackingField_2)); }
inline bool get_U3CIgnoreCaseU3Ek__BackingField_2() const { return ___U3CIgnoreCaseU3Ek__BackingField_2; }
inline bool* get_address_of_U3CIgnoreCaseU3Ek__BackingField_2() { return &___U3CIgnoreCaseU3Ek__BackingField_2; }
inline void set_U3CIgnoreCaseU3Ek__BackingField_2(bool value)
{
___U3CIgnoreCaseU3Ek__BackingField_2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SETMEMBERBINDER_T2112048622_H
#ifndef RUNTIMEFIELDHANDLE_T1871169219_H
#define RUNTIMEFIELDHANDLE_T1871169219_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.RuntimeFieldHandle
struct RuntimeFieldHandle_t1871169219
{
public:
// System.IntPtr System.RuntimeFieldHandle::value
intptr_t ___value_0;
public:
inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeFieldHandle_t1871169219, ___value_0)); }
inline intptr_t get_value_0() const { return ___value_0; }
inline intptr_t* get_address_of_value_0() { return &___value_0; }
inline void set_value_0(intptr_t value)
{
___value_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RUNTIMEFIELDHANDLE_T1871169219_H
#ifndef ARGUMENTNULLEXCEPTION_T1615371798_H
#define ARGUMENTNULLEXCEPTION_T1615371798_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.ArgumentNullException
struct ArgumentNullException_t1615371798 : public ArgumentException_t132251570
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ARGUMENTNULLEXCEPTION_T1615371798_H
#ifndef UNARYEXPRESSION_T3914580921_H
#define UNARYEXPRESSION_T3914580921_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.UnaryExpression
struct UnaryExpression_t3914580921 : public Expression_t1588164026
{
public:
// System.Type System.Linq.Expressions.UnaryExpression::<Type>k__BackingField
Type_t * ___U3CTypeU3Ek__BackingField_3;
// System.Linq.Expressions.ExpressionType System.Linq.Expressions.UnaryExpression::<NodeType>k__BackingField
int32_t ___U3CNodeTypeU3Ek__BackingField_4;
// System.Linq.Expressions.Expression System.Linq.Expressions.UnaryExpression::<Operand>k__BackingField
Expression_t1588164026 * ___U3COperandU3Ek__BackingField_5;
// System.Reflection.MethodInfo System.Linq.Expressions.UnaryExpression::<Method>k__BackingField
MethodInfo_t * ___U3CMethodU3Ek__BackingField_6;
public:
inline static int32_t get_offset_of_U3CTypeU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(UnaryExpression_t3914580921, ___U3CTypeU3Ek__BackingField_3)); }
inline Type_t * get_U3CTypeU3Ek__BackingField_3() const { return ___U3CTypeU3Ek__BackingField_3; }
inline Type_t ** get_address_of_U3CTypeU3Ek__BackingField_3() { return &___U3CTypeU3Ek__BackingField_3; }
inline void set_U3CTypeU3Ek__BackingField_3(Type_t * value)
{
___U3CTypeU3Ek__BackingField_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CTypeU3Ek__BackingField_3), value);
}
inline static int32_t get_offset_of_U3CNodeTypeU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(UnaryExpression_t3914580921, ___U3CNodeTypeU3Ek__BackingField_4)); }
inline int32_t get_U3CNodeTypeU3Ek__BackingField_4() const { return ___U3CNodeTypeU3Ek__BackingField_4; }
inline int32_t* get_address_of_U3CNodeTypeU3Ek__BackingField_4() { return &___U3CNodeTypeU3Ek__BackingField_4; }
inline void set_U3CNodeTypeU3Ek__BackingField_4(int32_t value)
{
___U3CNodeTypeU3Ek__BackingField_4 = value;
}
inline static int32_t get_offset_of_U3COperandU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(UnaryExpression_t3914580921, ___U3COperandU3Ek__BackingField_5)); }
inline Expression_t1588164026 * get_U3COperandU3Ek__BackingField_5() const { return ___U3COperandU3Ek__BackingField_5; }
inline Expression_t1588164026 ** get_address_of_U3COperandU3Ek__BackingField_5() { return &___U3COperandU3Ek__BackingField_5; }
inline void set_U3COperandU3Ek__BackingField_5(Expression_t1588164026 * value)
{
___U3COperandU3Ek__BackingField_5 = value;
Il2CppCodeGenWriteBarrier((&___U3COperandU3Ek__BackingField_5), value);
}
inline static int32_t get_offset_of_U3CMethodU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(UnaryExpression_t3914580921, ___U3CMethodU3Ek__BackingField_6)); }
inline MethodInfo_t * get_U3CMethodU3Ek__BackingField_6() const { return ___U3CMethodU3Ek__BackingField_6; }
inline MethodInfo_t ** get_address_of_U3CMethodU3Ek__BackingField_6() { return &___U3CMethodU3Ek__BackingField_6; }
inline void set_U3CMethodU3Ek__BackingField_6(MethodInfo_t * value)
{
___U3CMethodU3Ek__BackingField_6 = value;
Il2CppCodeGenWriteBarrier((&___U3CMethodU3Ek__BackingField_6), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // UNARYEXPRESSION_T3914580921_H
#ifndef U3CU3EC__DISPLAYCLASS38_0_T1924976968_H
#define U3CU3EC__DISPLAYCLASS38_0_T1924976968_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass38_0
struct U3CU3Ec__DisplayClass38_0_t1924976968 : public RuntimeObject
{
public:
// Newtonsoft.Json.Utilities.BindingFlags Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass38_0::bindingFlags
int32_t ___bindingFlags_0;
public:
inline static int32_t get_offset_of_bindingFlags_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass38_0_t1924976968, ___bindingFlags_0)); }
inline int32_t get_bindingFlags_0() const { return ___bindingFlags_0; }
inline int32_t* get_address_of_bindingFlags_0() { return &___bindingFlags_0; }
inline void set_bindingFlags_0(int32_t value)
{
___bindingFlags_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS38_0_T1924976968_H
#ifndef ARGUMENTOUTOFRANGEEXCEPTION_T777629997_H
#define ARGUMENTOUTOFRANGEEXCEPTION_T777629997_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.ArgumentOutOfRangeException
struct ArgumentOutOfRangeException_t777629997 : public ArgumentException_t132251570
{
public:
// System.Object System.ArgumentOutOfRangeException::m_actualValue
RuntimeObject * ___m_actualValue_19;
public:
inline static int32_t get_offset_of_m_actualValue_19() { return static_cast<int32_t>(offsetof(ArgumentOutOfRangeException_t777629997, ___m_actualValue_19)); }
inline RuntimeObject * get_m_actualValue_19() const { return ___m_actualValue_19; }
inline RuntimeObject ** get_address_of_m_actualValue_19() { return &___m_actualValue_19; }
inline void set_m_actualValue_19(RuntimeObject * value)
{
___m_actualValue_19 = value;
Il2CppCodeGenWriteBarrier((&___m_actualValue_19), value);
}
};
struct ArgumentOutOfRangeException_t777629997_StaticFields
{
public:
// System.String modreq(System.Runtime.CompilerServices.IsVolatile) System.ArgumentOutOfRangeException::_rangeMessage
String_t* ____rangeMessage_18;
public:
inline static int32_t get_offset_of__rangeMessage_18() { return static_cast<int32_t>(offsetof(ArgumentOutOfRangeException_t777629997_StaticFields, ____rangeMessage_18)); }
inline String_t* get__rangeMessage_18() const { return ____rangeMessage_18; }
inline String_t** get_address_of__rangeMessage_18() { return &____rangeMessage_18; }
inline void set__rangeMessage_18(String_t* value)
{
____rangeMessage_18 = value;
Il2CppCodeGenWriteBarrier((&____rangeMessage_18), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ARGUMENTOUTOFRANGEEXCEPTION_T777629997_H
#ifndef MULTICASTDELEGATE_T_H
#define MULTICASTDELEGATE_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.MulticastDelegate
struct MulticastDelegate_t : public Delegate_t1188392813
{
public:
// System.Delegate[] System.MulticastDelegate::delegates
DelegateU5BU5D_t1703627840* ___delegates_11;
public:
inline static int32_t get_offset_of_delegates_11() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___delegates_11)); }
inline DelegateU5BU5D_t1703627840* get_delegates_11() const { return ___delegates_11; }
inline DelegateU5BU5D_t1703627840** get_address_of_delegates_11() { return &___delegates_11; }
inline void set_delegates_11(DelegateU5BU5D_t1703627840* value)
{
___delegates_11 = value;
Il2CppCodeGenWriteBarrier((&___delegates_11), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t1188392813_marshaled_pinvoke
{
DelegateU5BU5D_t1703627840* ___delegates_11;
};
// Native definition for COM marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_com : public Delegate_t1188392813_marshaled_com
{
DelegateU5BU5D_t1703627840* ___delegates_11;
};
#endif // MULTICASTDELEGATE_T_H
#ifndef CSHARPARGUMENTINFO_T1152531755_H
#define CSHARPARGUMENTINFO_T1152531755_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo
struct CSharpArgumentInfo_t1152531755 : public RuntimeObject
{
public:
// Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo::<Flags>k__BackingField
int32_t ___U3CFlagsU3Ek__BackingField_1;
// System.String Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo::<Name>k__BackingField
String_t* ___U3CNameU3Ek__BackingField_2;
public:
inline static int32_t get_offset_of_U3CFlagsU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(CSharpArgumentInfo_t1152531755, ___U3CFlagsU3Ek__BackingField_1)); }
inline int32_t get_U3CFlagsU3Ek__BackingField_1() const { return ___U3CFlagsU3Ek__BackingField_1; }
inline int32_t* get_address_of_U3CFlagsU3Ek__BackingField_1() { return &___U3CFlagsU3Ek__BackingField_1; }
inline void set_U3CFlagsU3Ek__BackingField_1(int32_t value)
{
___U3CFlagsU3Ek__BackingField_1 = value;
}
inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(CSharpArgumentInfo_t1152531755, ___U3CNameU3Ek__BackingField_2)); }
inline String_t* get_U3CNameU3Ek__BackingField_2() const { return ___U3CNameU3Ek__BackingField_2; }
inline String_t** get_address_of_U3CNameU3Ek__BackingField_2() { return &___U3CNameU3Ek__BackingField_2; }
inline void set_U3CNameU3Ek__BackingField_2(String_t* value)
{
___U3CNameU3Ek__BackingField_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CNameU3Ek__BackingField_2), value);
}
};
struct CSharpArgumentInfo_t1152531755_StaticFields
{
public:
// Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo::None
CSharpArgumentInfo_t1152531755 * ___None_0;
public:
inline static int32_t get_offset_of_None_0() { return static_cast<int32_t>(offsetof(CSharpArgumentInfo_t1152531755_StaticFields, ___None_0)); }
inline CSharpArgumentInfo_t1152531755 * get_None_0() const { return ___None_0; }
inline CSharpArgumentInfo_t1152531755 ** get_address_of_None_0() { return &___None_0; }
inline void set_None_0(CSharpArgumentInfo_t1152531755 * value)
{
___None_0 = value;
Il2CppCodeGenWriteBarrier((&___None_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CSHARPARGUMENTINFO_T1152531755_H
#ifndef U3CU3EC__DISPLAYCLASS46_0_T1945924471_H
#define U3CU3EC__DISPLAYCLASS46_0_T1945924471_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass46_0
struct U3CU3Ec__DisplayClass46_0_t1945924471 : public RuntimeObject
{
public:
// Newtonsoft.Json.Utilities.BindingFlags Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass46_0::bindingFlags
int32_t ___bindingFlags_0;
public:
inline static int32_t get_offset_of_bindingFlags_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass46_0_t1945924471, ___bindingFlags_0)); }
inline int32_t get_bindingFlags_0() const { return ___bindingFlags_0; }
inline int32_t* get_address_of_bindingFlags_0() { return &___bindingFlags_0; }
inline void set_bindingFlags_0(int32_t value)
{
___bindingFlags_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS46_0_T1945924471_H
#ifndef TYPE_T_H
#define TYPE_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Type
struct Type_t : public MemberInfo_t
{
public:
// System.RuntimeTypeHandle System.Type::_impl
RuntimeTypeHandle_t3027515415 ____impl_9;
public:
inline static int32_t get_offset_of__impl_9() { return static_cast<int32_t>(offsetof(Type_t, ____impl_9)); }
inline RuntimeTypeHandle_t3027515415 get__impl_9() const { return ____impl_9; }
inline RuntimeTypeHandle_t3027515415 * get_address_of__impl_9() { return &____impl_9; }
inline void set__impl_9(RuntimeTypeHandle_t3027515415 value)
{
____impl_9 = value;
}
};
struct Type_t_StaticFields
{
public:
// System.Reflection.MemberFilter System.Type::FilterAttribute
MemberFilter_t426314064 * ___FilterAttribute_0;
// System.Reflection.MemberFilter System.Type::FilterName
MemberFilter_t426314064 * ___FilterName_1;
// System.Reflection.MemberFilter System.Type::FilterNameIgnoreCase
MemberFilter_t426314064 * ___FilterNameIgnoreCase_2;
// System.Object System.Type::Missing
RuntimeObject * ___Missing_3;
// System.Char System.Type::Delimiter
Il2CppChar ___Delimiter_4;
// System.Type[] System.Type::EmptyTypes
TypeU5BU5D_t3940880105* ___EmptyTypes_5;
// System.Reflection.Binder System.Type::defaultBinder
Binder_t2999457153 * ___defaultBinder_6;
public:
inline static int32_t get_offset_of_FilterAttribute_0() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterAttribute_0)); }
inline MemberFilter_t426314064 * get_FilterAttribute_0() const { return ___FilterAttribute_0; }
inline MemberFilter_t426314064 ** get_address_of_FilterAttribute_0() { return &___FilterAttribute_0; }
inline void set_FilterAttribute_0(MemberFilter_t426314064 * value)
{
___FilterAttribute_0 = value;
Il2CppCodeGenWriteBarrier((&___FilterAttribute_0), value);
}
inline static int32_t get_offset_of_FilterName_1() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterName_1)); }
inline MemberFilter_t426314064 * get_FilterName_1() const { return ___FilterName_1; }
inline MemberFilter_t426314064 ** get_address_of_FilterName_1() { return &___FilterName_1; }
inline void set_FilterName_1(MemberFilter_t426314064 * value)
{
___FilterName_1 = value;
Il2CppCodeGenWriteBarrier((&___FilterName_1), value);
}
inline static int32_t get_offset_of_FilterNameIgnoreCase_2() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterNameIgnoreCase_2)); }
inline MemberFilter_t426314064 * get_FilterNameIgnoreCase_2() const { return ___FilterNameIgnoreCase_2; }
inline MemberFilter_t426314064 ** get_address_of_FilterNameIgnoreCase_2() { return &___FilterNameIgnoreCase_2; }
inline void set_FilterNameIgnoreCase_2(MemberFilter_t426314064 * value)
{
___FilterNameIgnoreCase_2 = value;
Il2CppCodeGenWriteBarrier((&___FilterNameIgnoreCase_2), value);
}
inline static int32_t get_offset_of_Missing_3() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Missing_3)); }
inline RuntimeObject * get_Missing_3() const { return ___Missing_3; }
inline RuntimeObject ** get_address_of_Missing_3() { return &___Missing_3; }
inline void set_Missing_3(RuntimeObject * value)
{
___Missing_3 = value;
Il2CppCodeGenWriteBarrier((&___Missing_3), value);
}
inline static int32_t get_offset_of_Delimiter_4() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Delimiter_4)); }
inline Il2CppChar get_Delimiter_4() const { return ___Delimiter_4; }
inline Il2CppChar* get_address_of_Delimiter_4() { return &___Delimiter_4; }
inline void set_Delimiter_4(Il2CppChar value)
{
___Delimiter_4 = value;
}
inline static int32_t get_offset_of_EmptyTypes_5() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___EmptyTypes_5)); }
inline TypeU5BU5D_t3940880105* get_EmptyTypes_5() const { return ___EmptyTypes_5; }
inline TypeU5BU5D_t3940880105** get_address_of_EmptyTypes_5() { return &___EmptyTypes_5; }
inline void set_EmptyTypes_5(TypeU5BU5D_t3940880105* value)
{
___EmptyTypes_5 = value;
Il2CppCodeGenWriteBarrier((&___EmptyTypes_5), value);
}
inline static int32_t get_offset_of_defaultBinder_6() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___defaultBinder_6)); }
inline Binder_t2999457153 * get_defaultBinder_6() const { return ___defaultBinder_6; }
inline Binder_t2999457153 ** get_address_of_defaultBinder_6() { return &___defaultBinder_6; }
inline void set_defaultBinder_6(Binder_t2999457153 * value)
{
___defaultBinder_6 = value;
Il2CppCodeGenWriteBarrier((&___defaultBinder_6), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TYPE_T_H
#ifndef PARAMETERINFO_T1861056598_H
#define PARAMETERINFO_T1861056598_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.ParameterInfo
struct ParameterInfo_t1861056598 : public RuntimeObject
{
public:
// System.Type System.Reflection.ParameterInfo::ClassImpl
Type_t * ___ClassImpl_0;
// System.Object System.Reflection.ParameterInfo::DefaultValueImpl
RuntimeObject * ___DefaultValueImpl_1;
// System.Reflection.MemberInfo System.Reflection.ParameterInfo::MemberImpl
MemberInfo_t * ___MemberImpl_2;
// System.String System.Reflection.ParameterInfo::NameImpl
String_t* ___NameImpl_3;
// System.Int32 System.Reflection.ParameterInfo::PositionImpl
int32_t ___PositionImpl_4;
// System.Reflection.ParameterAttributes System.Reflection.ParameterInfo::AttrsImpl
int32_t ___AttrsImpl_5;
// System.Runtime.InteropServices.MarshalAsAttribute System.Reflection.ParameterInfo::marshalAs
MarshalAsAttribute_t3522571978 * ___marshalAs_6;
public:
inline static int32_t get_offset_of_ClassImpl_0() { return static_cast<int32_t>(offsetof(ParameterInfo_t1861056598, ___ClassImpl_0)); }
inline Type_t * get_ClassImpl_0() const { return ___ClassImpl_0; }
inline Type_t ** get_address_of_ClassImpl_0() { return &___ClassImpl_0; }
inline void set_ClassImpl_0(Type_t * value)
{
___ClassImpl_0 = value;
Il2CppCodeGenWriteBarrier((&___ClassImpl_0), value);
}
inline static int32_t get_offset_of_DefaultValueImpl_1() { return static_cast<int32_t>(offsetof(ParameterInfo_t1861056598, ___DefaultValueImpl_1)); }
inline RuntimeObject * get_DefaultValueImpl_1() const { return ___DefaultValueImpl_1; }
inline RuntimeObject ** get_address_of_DefaultValueImpl_1() { return &___DefaultValueImpl_1; }
inline void set_DefaultValueImpl_1(RuntimeObject * value)
{
___DefaultValueImpl_1 = value;
Il2CppCodeGenWriteBarrier((&___DefaultValueImpl_1), value);
}
inline static int32_t get_offset_of_MemberImpl_2() { return static_cast<int32_t>(offsetof(ParameterInfo_t1861056598, ___MemberImpl_2)); }
inline MemberInfo_t * get_MemberImpl_2() const { return ___MemberImpl_2; }
inline MemberInfo_t ** get_address_of_MemberImpl_2() { return &___MemberImpl_2; }
inline void set_MemberImpl_2(MemberInfo_t * value)
{
___MemberImpl_2 = value;
Il2CppCodeGenWriteBarrier((&___MemberImpl_2), value);
}
inline static int32_t get_offset_of_NameImpl_3() { return static_cast<int32_t>(offsetof(ParameterInfo_t1861056598, ___NameImpl_3)); }
inline String_t* get_NameImpl_3() const { return ___NameImpl_3; }
inline String_t** get_address_of_NameImpl_3() { return &___NameImpl_3; }
inline void set_NameImpl_3(String_t* value)
{
___NameImpl_3 = value;
Il2CppCodeGenWriteBarrier((&___NameImpl_3), value);
}
inline static int32_t get_offset_of_PositionImpl_4() { return static_cast<int32_t>(offsetof(ParameterInfo_t1861056598, ___PositionImpl_4)); }
inline int32_t get_PositionImpl_4() const { return ___PositionImpl_4; }
inline int32_t* get_address_of_PositionImpl_4() { return &___PositionImpl_4; }
inline void set_PositionImpl_4(int32_t value)
{
___PositionImpl_4 = value;
}
inline static int32_t get_offset_of_AttrsImpl_5() { return static_cast<int32_t>(offsetof(ParameterInfo_t1861056598, ___AttrsImpl_5)); }
inline int32_t get_AttrsImpl_5() const { return ___AttrsImpl_5; }
inline int32_t* get_address_of_AttrsImpl_5() { return &___AttrsImpl_5; }
inline void set_AttrsImpl_5(int32_t value)
{
___AttrsImpl_5 = value;
}
inline static int32_t get_offset_of_marshalAs_6() { return static_cast<int32_t>(offsetof(ParameterInfo_t1861056598, ___marshalAs_6)); }
inline MarshalAsAttribute_t3522571978 * get_marshalAs_6() const { return ___marshalAs_6; }
inline MarshalAsAttribute_t3522571978 ** get_address_of_marshalAs_6() { return &___marshalAs_6; }
inline void set_marshalAs_6(MarshalAsAttribute_t3522571978 * value)
{
___marshalAs_6 = value;
Il2CppCodeGenWriteBarrier((&___marshalAs_6), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Reflection.ParameterInfo
struct ParameterInfo_t1861056598_marshaled_pinvoke
{
Type_t * ___ClassImpl_0;
Il2CppIUnknown* ___DefaultValueImpl_1;
MemberInfo_t * ___MemberImpl_2;
char* ___NameImpl_3;
int32_t ___PositionImpl_4;
int32_t ___AttrsImpl_5;
MarshalAsAttribute_t3522571978 * ___marshalAs_6;
};
// Native definition for COM marshalling of System.Reflection.ParameterInfo
struct ParameterInfo_t1861056598_marshaled_com
{
Type_t * ___ClassImpl_0;
Il2CppIUnknown* ___DefaultValueImpl_1;
MemberInfo_t * ___MemberImpl_2;
Il2CppChar* ___NameImpl_3;
int32_t ___PositionImpl_4;
int32_t ___AttrsImpl_5;
MarshalAsAttribute_t3522571978 * ___marshalAs_6;
};
#endif // PARAMETERINFO_T1861056598_H
#ifndef U3CU3EC__DISPLAYCLASS27_0_T1152408749_H
#define U3CU3EC__DISPLAYCLASS27_0_T1152408749_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass27_0
struct U3CU3Ec__DisplayClass27_0_t1152408749 : public RuntimeObject
{
public:
// System.String Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass27_0::name
String_t* ___name_0;
// Newtonsoft.Json.Utilities.BindingFlags Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass27_0::bindingFlags
int32_t ___bindingFlags_1;
// System.Collections.Generic.IList`1<System.Type> Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass27_0::parameterTypes
RuntimeObject* ___parameterTypes_2;
public:
inline static int32_t get_offset_of_name_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass27_0_t1152408749, ___name_0)); }
inline String_t* get_name_0() const { return ___name_0; }
inline String_t** get_address_of_name_0() { return &___name_0; }
inline void set_name_0(String_t* value)
{
___name_0 = value;
Il2CppCodeGenWriteBarrier((&___name_0), value);
}
inline static int32_t get_offset_of_bindingFlags_1() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass27_0_t1152408749, ___bindingFlags_1)); }
inline int32_t get_bindingFlags_1() const { return ___bindingFlags_1; }
inline int32_t* get_address_of_bindingFlags_1() { return &___bindingFlags_1; }
inline void set_bindingFlags_1(int32_t value)
{
___bindingFlags_1 = value;
}
inline static int32_t get_offset_of_parameterTypes_2() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass27_0_t1152408749, ___parameterTypes_2)); }
inline RuntimeObject* get_parameterTypes_2() const { return ___parameterTypes_2; }
inline RuntimeObject** get_address_of_parameterTypes_2() { return &___parameterTypes_2; }
inline void set_parameterTypes_2(RuntimeObject* value)
{
___parameterTypes_2 = value;
Il2CppCodeGenWriteBarrier((&___parameterTypes_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS27_0_T1152408749_H
#ifndef MODULE_T2987026101_H
#define MODULE_T2987026101_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.Module
struct Module_t2987026101 : public RuntimeObject
{
public:
// System.IntPtr System.Reflection.Module::_impl
intptr_t ____impl_2;
// System.Reflection.Assembly System.Reflection.Module::assembly
Assembly_t * ___assembly_3;
// System.String System.Reflection.Module::fqname
String_t* ___fqname_4;
// System.String System.Reflection.Module::name
String_t* ___name_5;
// System.String System.Reflection.Module::scopename
String_t* ___scopename_6;
// System.Boolean System.Reflection.Module::is_resource
bool ___is_resource_7;
// System.Int32 System.Reflection.Module::token
int32_t ___token_8;
public:
inline static int32_t get_offset_of__impl_2() { return static_cast<int32_t>(offsetof(Module_t2987026101, ____impl_2)); }
inline intptr_t get__impl_2() const { return ____impl_2; }
inline intptr_t* get_address_of__impl_2() { return &____impl_2; }
inline void set__impl_2(intptr_t value)
{
____impl_2 = value;
}
inline static int32_t get_offset_of_assembly_3() { return static_cast<int32_t>(offsetof(Module_t2987026101, ___assembly_3)); }
inline Assembly_t * get_assembly_3() const { return ___assembly_3; }
inline Assembly_t ** get_address_of_assembly_3() { return &___assembly_3; }
inline void set_assembly_3(Assembly_t * value)
{
___assembly_3 = value;
Il2CppCodeGenWriteBarrier((&___assembly_3), value);
}
inline static int32_t get_offset_of_fqname_4() { return static_cast<int32_t>(offsetof(Module_t2987026101, ___fqname_4)); }
inline String_t* get_fqname_4() const { return ___fqname_4; }
inline String_t** get_address_of_fqname_4() { return &___fqname_4; }
inline void set_fqname_4(String_t* value)
{
___fqname_4 = value;
Il2CppCodeGenWriteBarrier((&___fqname_4), value);
}
inline static int32_t get_offset_of_name_5() { return static_cast<int32_t>(offsetof(Module_t2987026101, ___name_5)); }
inline String_t* get_name_5() const { return ___name_5; }
inline String_t** get_address_of_name_5() { return &___name_5; }
inline void set_name_5(String_t* value)
{
___name_5 = value;
Il2CppCodeGenWriteBarrier((&___name_5), value);
}
inline static int32_t get_offset_of_scopename_6() { return static_cast<int32_t>(offsetof(Module_t2987026101, ___scopename_6)); }
inline String_t* get_scopename_6() const { return ___scopename_6; }
inline String_t** get_address_of_scopename_6() { return &___scopename_6; }
inline void set_scopename_6(String_t* value)
{
___scopename_6 = value;
Il2CppCodeGenWriteBarrier((&___scopename_6), value);
}
inline static int32_t get_offset_of_is_resource_7() { return static_cast<int32_t>(offsetof(Module_t2987026101, ___is_resource_7)); }
inline bool get_is_resource_7() const { return ___is_resource_7; }
inline bool* get_address_of_is_resource_7() { return &___is_resource_7; }
inline void set_is_resource_7(bool value)
{
___is_resource_7 = value;
}
inline static int32_t get_offset_of_token_8() { return static_cast<int32_t>(offsetof(Module_t2987026101, ___token_8)); }
inline int32_t get_token_8() const { return ___token_8; }
inline int32_t* get_address_of_token_8() { return &___token_8; }
inline void set_token_8(int32_t value)
{
___token_8 = value;
}
};
struct Module_t2987026101_StaticFields
{
public:
// System.Reflection.TypeFilter System.Reflection.Module::FilterTypeName
TypeFilter_t2356120900 * ___FilterTypeName_0;
// System.Reflection.TypeFilter System.Reflection.Module::FilterTypeNameIgnoreCase
TypeFilter_t2356120900 * ___FilterTypeNameIgnoreCase_1;
public:
inline static int32_t get_offset_of_FilterTypeName_0() { return static_cast<int32_t>(offsetof(Module_t2987026101_StaticFields, ___FilterTypeName_0)); }
inline TypeFilter_t2356120900 * get_FilterTypeName_0() const { return ___FilterTypeName_0; }
inline TypeFilter_t2356120900 ** get_address_of_FilterTypeName_0() { return &___FilterTypeName_0; }
inline void set_FilterTypeName_0(TypeFilter_t2356120900 * value)
{
___FilterTypeName_0 = value;
Il2CppCodeGenWriteBarrier((&___FilterTypeName_0), value);
}
inline static int32_t get_offset_of_FilterTypeNameIgnoreCase_1() { return static_cast<int32_t>(offsetof(Module_t2987026101_StaticFields, ___FilterTypeNameIgnoreCase_1)); }
inline TypeFilter_t2356120900 * get_FilterTypeNameIgnoreCase_1() const { return ___FilterTypeNameIgnoreCase_1; }
inline TypeFilter_t2356120900 ** get_address_of_FilterTypeNameIgnoreCase_1() { return &___FilterTypeNameIgnoreCase_1; }
inline void set_FilterTypeNameIgnoreCase_1(TypeFilter_t2356120900 * value)
{
___FilterTypeNameIgnoreCase_1 = value;
Il2CppCodeGenWriteBarrier((&___FilterTypeNameIgnoreCase_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Reflection.Module
struct Module_t2987026101_marshaled_pinvoke
{
intptr_t ____impl_2;
Assembly_t_marshaled_pinvoke* ___assembly_3;
char* ___fqname_4;
char* ___name_5;
char* ___scopename_6;
int32_t ___is_resource_7;
int32_t ___token_8;
};
// Native definition for COM marshalling of System.Reflection.Module
struct Module_t2987026101_marshaled_com
{
intptr_t ____impl_2;
Assembly_t_marshaled_com* ___assembly_3;
Il2CppChar* ___fqname_4;
Il2CppChar* ___name_5;
Il2CppChar* ___scopename_6;
int32_t ___is_resource_7;
int32_t ___token_8;
};
#endif // MODULE_T2987026101_H
#ifndef NOTHROWGETBINDERMEMBER_T2324270373_H
#define NOTHROWGETBINDERMEMBER_T2324270373_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.NoThrowGetBinderMember
struct NoThrowGetBinderMember_t2324270373 : public GetMemberBinder_t2463380603
{
public:
// System.Dynamic.GetMemberBinder Newtonsoft.Json.Utilities.NoThrowGetBinderMember::_innerBinder
GetMemberBinder_t2463380603 * ____innerBinder_3;
public:
inline static int32_t get_offset_of__innerBinder_3() { return static_cast<int32_t>(offsetof(NoThrowGetBinderMember_t2324270373, ____innerBinder_3)); }
inline GetMemberBinder_t2463380603 * get__innerBinder_3() const { return ____innerBinder_3; }
inline GetMemberBinder_t2463380603 ** get_address_of__innerBinder_3() { return &____innerBinder_3; }
inline void set__innerBinder_3(GetMemberBinder_t2463380603 * value)
{
____innerBinder_3 = value;
Il2CppCodeGenWriteBarrier((&____innerBinder_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // NOTHROWGETBINDERMEMBER_T2324270373_H
#ifndef TYPEEXTENSIONS_T264900522_H
#define TYPEEXTENSIONS_T264900522_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.TypeExtensions
struct TypeExtensions_t264900522 : public RuntimeObject
{
public:
public:
};
struct TypeExtensions_t264900522_StaticFields
{
public:
// Newtonsoft.Json.Utilities.BindingFlags Newtonsoft.Json.Utilities.TypeExtensions::DefaultFlags
int32_t ___DefaultFlags_0;
public:
inline static int32_t get_offset_of_DefaultFlags_0() { return static_cast<int32_t>(offsetof(TypeExtensions_t264900522_StaticFields, ___DefaultFlags_0)); }
inline int32_t get_DefaultFlags_0() const { return ___DefaultFlags_0; }
inline int32_t* get_address_of_DefaultFlags_0() { return &___DefaultFlags_0; }
inline void set_DefaultFlags_0(int32_t value)
{
___DefaultFlags_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TYPEEXTENSIONS_T264900522_H
#ifndef NOTHROWSETBINDERMEMBER_T2534771984_H
#define NOTHROWSETBINDERMEMBER_T2534771984_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.NoThrowSetBinderMember
struct NoThrowSetBinderMember_t2534771984 : public SetMemberBinder_t2112048622
{
public:
// System.Dynamic.SetMemberBinder Newtonsoft.Json.Utilities.NoThrowSetBinderMember::_innerBinder
SetMemberBinder_t2112048622 * ____innerBinder_3;
public:
inline static int32_t get_offset_of__innerBinder_3() { return static_cast<int32_t>(offsetof(NoThrowSetBinderMember_t2534771984, ____innerBinder_3)); }
inline SetMemberBinder_t2112048622 * get__innerBinder_3() const { return ____innerBinder_3; }
inline SetMemberBinder_t2112048622 ** get_address_of__innerBinder_3() { return &____innerBinder_3; }
inline void set__innerBinder_3(SetMemberBinder_t2112048622 * value)
{
____innerBinder_3 = value;
Il2CppCodeGenWriteBarrier((&____innerBinder_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // NOTHROWSETBINDERMEMBER_T2534771984_H
#ifndef U3CU3EC__DISPLAYCLASS30_0_T395628872_H
#define U3CU3EC__DISPLAYCLASS30_0_T395628872_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass30_0
struct U3CU3Ec__DisplayClass30_0_t395628872 : public RuntimeObject
{
public:
// Newtonsoft.Json.Utilities.BindingFlags Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass30_0::bindingFlags
int32_t ___bindingFlags_0;
// System.Collections.Generic.IList`1<System.Type> Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass30_0::parameterTypes
RuntimeObject* ___parameterTypes_1;
public:
inline static int32_t get_offset_of_bindingFlags_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass30_0_t395628872, ___bindingFlags_0)); }
inline int32_t get_bindingFlags_0() const { return ___bindingFlags_0; }
inline int32_t* get_address_of_bindingFlags_0() { return &___bindingFlags_0; }
inline void set_bindingFlags_0(int32_t value)
{
___bindingFlags_0 = value;
}
inline static int32_t get_offset_of_parameterTypes_1() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass30_0_t395628872, ___parameterTypes_1)); }
inline RuntimeObject* get_parameterTypes_1() const { return ___parameterTypes_1; }
inline RuntimeObject** get_address_of_parameterTypes_1() { return &___parameterTypes_1; }
inline void set_parameterTypes_1(RuntimeObject* value)
{
___parameterTypes_1 = value;
Il2CppCodeGenWriteBarrier((&___parameterTypes_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS30_0_T395628872_H
#ifndef NULLABLE_1_T3738281181_H
#define NULLABLE_1_T3738281181_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Nullable`1<Newtonsoft.Json.Utilities.MemberTypes>
struct Nullable_1_t3738281181
{
public:
// T System.Nullable`1::value
int32_t ___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_t3738281181, ___value_0)); }
inline int32_t get_value_0() const { return ___value_0; }
inline int32_t* get_address_of_value_0() { return &___value_0; }
inline void set_value_0(int32_t value)
{
___value_0 = value;
}
inline static int32_t get_offset_of_has_value_1() { return static_cast<int32_t>(offsetof(Nullable_1_t3738281181, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // NULLABLE_1_T3738281181_H
#ifndef FUNC_2_T1761491126_H
#define FUNC_2_T1761491126_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`2<System.Reflection.FieldInfo,System.Boolean>
struct Func_2_t1761491126 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_2_T1761491126_H
#ifndef FUNC_2_T3487522507_H
#define FUNC_2_T3487522507_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`2<System.Reflection.MethodInfo,System.Boolean>
struct Func_2_t3487522507 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_2_T3487522507_H
#ifndef FUNC_2_T3660693786_H
#define FUNC_2_T3660693786_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`2<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo,System.Boolean>
struct Func_2_t3660693786 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_2_T3660693786_H
#ifndef FUNC_2_T2377163032_H
#define FUNC_2_T2377163032_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`2<System.Reflection.PropertyInfo,System.Boolean>
struct Func_2_t2377163032 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_2_T2377163032_H
#ifndef ACTION_2_T2470008838_H
#define ACTION_2_T2470008838_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Action`2<System.Object,System.Object>
struct Action_2_t2470008838 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ACTION_2_T2470008838_H
#ifndef TYPEINFO_T1690786683_H
#define TYPEINFO_T1690786683_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.TypeInfo
struct TypeInfo_t1690786683 : public Type_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TYPEINFO_T1690786683_H
#ifndef FUNC_2_T3692615456_H
#define FUNC_2_T3692615456_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`2<System.Reflection.ParameterInfo,System.Type>
struct Func_2_t3692615456 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_2_T3692615456_H
#ifndef METHODCALL_2_T2845904993_H
#define METHODCALL_2_T2845904993_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>
struct MethodCall_2_t2845904993 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // METHODCALL_2_T2845904993_H
#ifndef FUNC_2_T1796590042_H
#define FUNC_2_T1796590042_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`2<System.Reflection.ConstructorInfo,System.Boolean>
struct Func_2_t1796590042 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_2_T1796590042_H
#ifndef FUNC_2_T1251018457_H
#define FUNC_2_T1251018457_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`2<System.Type,Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>>
struct Func_2_t1251018457 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_2_T1251018457_H
#ifndef FUNC_2_T2217434578_H
#define FUNC_2_T2217434578_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`2<System.Reflection.MemberInfo,System.Boolean>
struct Func_2_t2217434578 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_2_T2217434578_H
#ifndef U3CU3EC__DISPLAYCLASS35_0_T3498955080_H
#define U3CU3EC__DISPLAYCLASS35_0_T3498955080_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass35_0
struct U3CU3Ec__DisplayClass35_0_t3498955080 : public RuntimeObject
{
public:
// System.String Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass35_0::member
String_t* ___member_0;
// System.Nullable`1<Newtonsoft.Json.Utilities.MemberTypes> Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass35_0::memberType
Nullable_1_t3738281181 ___memberType_1;
// Newtonsoft.Json.Utilities.BindingFlags Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass35_0::bindingFlags
int32_t ___bindingFlags_2;
public:
inline static int32_t get_offset_of_member_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass35_0_t3498955080, ___member_0)); }
inline String_t* get_member_0() const { return ___member_0; }
inline String_t** get_address_of_member_0() { return &___member_0; }
inline void set_member_0(String_t* value)
{
___member_0 = value;
Il2CppCodeGenWriteBarrier((&___member_0), value);
}
inline static int32_t get_offset_of_memberType_1() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass35_0_t3498955080, ___memberType_1)); }
inline Nullable_1_t3738281181 get_memberType_1() const { return ___memberType_1; }
inline Nullable_1_t3738281181 * get_address_of_memberType_1() { return &___memberType_1; }
inline void set_memberType_1(Nullable_1_t3738281181 value)
{
___memberType_1 = value;
}
inline static int32_t get_offset_of_bindingFlags_2() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass35_0_t3498955080, ___bindingFlags_2)); }
inline int32_t get_bindingFlags_2() const { return ___bindingFlags_2; }
inline int32_t* get_address_of_bindingFlags_2() { return &___bindingFlags_2; }
inline void set_bindingFlags_2(int32_t value)
{
___bindingFlags_2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS35_0_T3498955080_H
#ifndef FUNC_2_T3967597302_H
#define FUNC_2_T3967597302_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`2<System.Reflection.MemberInfo,System.String>
struct Func_2_t3967597302 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_2_T3967597302_H
#ifndef FUNC_1_T2509852811_H
#define FUNC_1_T2509852811_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`1<System.Object>
struct Func_1_t2509852811 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_1_T2509852811_H
#ifndef FUNC_2_T2419460300_H
#define FUNC_2_T2419460300_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`2<System.Runtime.Serialization.EnumMemberAttribute,System.String>
struct Func_2_t2419460300 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_2_T2419460300_H
#ifndef FUNC_2_T2447130374_H
#define FUNC_2_T2447130374_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Func`2<System.Object,System.Object>
struct Func_2_t2447130374 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FUNC_2_T2447130374_H
#ifndef OBJECTCONSTRUCTOR_1_T3207922868_H
#define OBJECTCONSTRUCTOR_1_T3207922868_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object>
struct ObjectConstructor_1_t3207922868 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // OBJECTCONSTRUCTOR_1_T3207922868_H
// Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo[]
struct CSharpArgumentInfoU5BU5D_t4281174474 : public RuntimeArray
{
public:
ALIGN_FIELD (8) CSharpArgumentInfo_t1152531755 * m_Items[1];
public:
inline CSharpArgumentInfo_t1152531755 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline CSharpArgumentInfo_t1152531755 ** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, CSharpArgumentInfo_t1152531755 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline CSharpArgumentInfo_t1152531755 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline CSharpArgumentInfo_t1152531755 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, CSharpArgumentInfo_t1152531755 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// System.Linq.Expressions.ParameterExpression[]
struct ParameterExpressionU5BU5D_t2413162029 : public RuntimeArray
{
public:
ALIGN_FIELD (8) ParameterExpression_t1118422084 * m_Items[1];
public:
inline ParameterExpression_t1118422084 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline ParameterExpression_t1118422084 ** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, ParameterExpression_t1118422084 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline ParameterExpression_t1118422084 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline ParameterExpression_t1118422084 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, ParameterExpression_t1118422084 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// System.Reflection.ParameterInfo[]
struct ParameterInfoU5BU5D_t390618515 : public RuntimeArray
{
public:
ALIGN_FIELD (8) ParameterInfo_t1861056598 * m_Items[1];
public:
inline ParameterInfo_t1861056598 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline ParameterInfo_t1861056598 ** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, ParameterInfo_t1861056598 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline ParameterInfo_t1861056598 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline ParameterInfo_t1861056598 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, ParameterInfo_t1861056598 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// System.Linq.Expressions.Expression[]
struct ExpressionU5BU5D_t2266720799 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Expression_t1588164026 * m_Items[1];
public:
inline Expression_t1588164026 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Expression_t1588164026 ** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Expression_t1588164026 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline Expression_t1588164026 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Expression_t1588164026 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Expression_t1588164026 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// System.Object[]
struct ObjectU5BU5D_t2843939325 : public RuntimeArray
{
public:
ALIGN_FIELD (8) RuntimeObject * m_Items[1];
public:
inline RuntimeObject * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline RuntimeObject ** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, RuntimeObject * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline RuntimeObject * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline RuntimeObject ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, RuntimeObject * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// System.Type[]
struct TypeU5BU5D_t3940880105 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Type_t * m_Items[1];
public:
inline Type_t * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Type_t ** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Type_t * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline Type_t * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Type_t ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Type_t * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// System.Boolean[]
struct BooleanU5BU5D_t2897418192 : public RuntimeArray
{
public:
ALIGN_FIELD (8) bool m_Items[1];
public:
inline bool GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline bool* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, bool value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline bool GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline bool* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, bool value)
{
m_Items[index] = value;
}
};
// System.Char[]
struct CharU5BU5D_t3528271667 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Il2CppChar m_Items[1];
public:
inline Il2CppChar GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Il2CppChar* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Il2CppChar value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Il2CppChar GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Il2CppChar* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Il2CppChar value)
{
m_Items[index] = value;
}
};
// System.Byte[]
struct ByteU5BU5D_t4116647657 : public RuntimeArray
{
public:
ALIGN_FIELD (8) uint8_t m_Items[1];
public:
inline uint8_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline uint8_t* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, uint8_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline uint8_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline uint8_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, uint8_t value)
{
m_Items[index] = value;
}
};
// Newtonsoft.Json.Utilities.PropertyNameTable/Entry[]
struct EntryU5BU5D_t1995962374 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Entry_t2924091039 * m_Items[1];
public:
inline Entry_t2924091039 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Entry_t2924091039 ** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Entry_t2924091039 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline Entry_t2924091039 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Entry_t2924091039 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Entry_t2924091039 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// System.String[]
struct StringU5BU5D_t1281789340 : public RuntimeArray
{
public:
ALIGN_FIELD (8) String_t* m_Items[1];
public:
inline String_t* GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline String_t** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, String_t* value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline String_t* GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline String_t** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, String_t* value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// System.Reflection.MemberInfo[]
struct MemberInfoU5BU5D_t1302094432 : public RuntimeArray
{
public:
ALIGN_FIELD (8) MemberInfo_t * m_Items[1];
public:
inline MemberInfo_t * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline MemberInfo_t ** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, MemberInfo_t * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline MemberInfo_t * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline MemberInfo_t ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, MemberInfo_t * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// System.Attribute[]
struct AttributeU5BU5D_t1575011174 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Attribute_t861562559 * m_Items[1];
public:
inline Attribute_t861562559 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Attribute_t861562559 ** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Attribute_t861562559 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline Attribute_t861562559 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Attribute_t861562559 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Attribute_t861562559 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// System.Void Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.Object,System.Object>::.ctor(System.Collections.Generic.IEqualityComparer`1<TFirst>,System.Collections.Generic.IEqualityComparer`1<TSecond>)
extern "C" void BidirectionalDictionary_2__ctor_m2728182391_gshared (BidirectionalDictionary_2_t3581858927 * __this, RuntimeObject* p0, RuntimeObject* p1, const RuntimeMethod* method);
// System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable::Cast<System.Object>(System.Collections.IEnumerable)
extern "C" RuntimeObject* Enumerable_Cast_TisRuntimeObject_m4015728326_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, const RuntimeMethod* method);
// System.Void System.Func`2<System.Object,System.Object>::.ctor(System.Object,System.IntPtr)
extern "C" void Func_2__ctor_m3860723828_gshared (Func_2_t2447130374 * __this, RuntimeObject * p0, intptr_t p1, const RuntimeMethod* method);
// System.Collections.Generic.IEnumerable`1<!!1> System.Linq.Enumerable::Select<System.Object,System.Object>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,!!1>)
extern "C" RuntimeObject* Enumerable_Select_TisRuntimeObject_TisRuntimeObject_m3166653319_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, Func_2_t2447130374 * p1, const RuntimeMethod* method);
// !!0 System.Linq.Enumerable::SingleOrDefault<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>)
extern "C" RuntimeObject * Enumerable_SingleOrDefault_TisRuntimeObject_m2079752316_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, const RuntimeMethod* method);
// System.Boolean Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.Object,System.Object>::TryGetBySecond(TSecond,TFirst&)
extern "C" bool BidirectionalDictionary_2_TryGetBySecond_m1759937236_gshared (BidirectionalDictionary_2_t3581858927 * __this, RuntimeObject * p0, RuntimeObject ** p1, const RuntimeMethod* method);
// System.Void Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.Object,System.Object>::Set(TFirst,TSecond)
extern "C" void BidirectionalDictionary_2_Set_m1803187920_gshared (BidirectionalDictionary_2_t3581858927 * __this, RuntimeObject * p0, RuntimeObject * p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Object>::.ctor()
extern "C" void List_1__ctor_m2321703786_gshared (List_1_t257213610 * __this, const RuntimeMethod* method);
// System.Void System.Func`2<System.Object,System.Boolean>::.ctor(System.Object,System.IntPtr)
extern "C" void Func_2__ctor_m135484220_gshared (Func_2_t3759279471 * __this, RuntimeObject * p0, intptr_t p1, const RuntimeMethod* method);
// System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable::Where<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
extern "C" RuntimeObject* Enumerable_Where_TisRuntimeObject_m3429873137_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, Func_2_t3759279471 * p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Object>::Add(!0)
extern "C" void List_1_Add_m3338814081_gshared (List_1_t257213610 * __this, RuntimeObject * p0, const RuntimeMethod* method);
// System.Void Newtonsoft.Json.Utilities.ThreadSafeStore`2<System.Object,System.Object>::.ctor(System.Func`2<TKey,TValue>)
extern "C" void ThreadSafeStore_2__ctor_m3312637891_gshared (ThreadSafeStore_2_t1066477248 * __this, Func_2_t2447130374 * p0, const RuntimeMethod* method);
// TResult Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>::Invoke(T,System.Object[])
extern "C" RuntimeObject * MethodCall_2_Invoke_m386137395_gshared (MethodCall_2_t2845904993 * __this, RuntimeObject * p0, ObjectU5BU5D_t2843939325* p1, const RuntimeMethod* method);
// System.Void Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>::.ctor(System.Object,System.IntPtr)
extern "C" void MethodCall_2__ctor_m1888034670_gshared (MethodCall_2_t2845904993 * __this, RuntimeObject * p0, intptr_t p1, const RuntimeMethod* method);
// !!0 System.Linq.Enumerable::FirstOrDefault<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
extern "C" RuntimeObject * Enumerable_FirstOrDefault_TisRuntimeObject_m1181382667_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, Func_2_t3759279471 * p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Char>::.ctor()
extern "C" void List_1__ctor_m1735334926_gshared (List_1_t811567916 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Char>::Add(!0)
extern "C" void List_1_Add_m1266383442_gshared (List_1_t811567916 * __this, Il2CppChar p0, const RuntimeMethod* method);
// System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable::Union<System.Char>(System.Collections.Generic.IEnumerable`1<!!0>,System.Collections.Generic.IEnumerable`1<!!0>)
extern "C" RuntimeObject* Enumerable_Union_TisChar_t3634460470_m3294811350_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, RuntimeObject* p1, const RuntimeMethod* method);
// System.Boolean System.Nullable`1<System.Int32>::get_HasValue()
extern "C" bool Nullable_1_get_HasValue_m3898097692_gshared (Nullable_1_t378540539 * __this, const RuntimeMethod* method);
// !0 System.Nullable`1<System.Int32>::GetValueOrDefault()
extern "C" int32_t Nullable_1_GetValueOrDefault_m463439517_gshared (Nullable_1_t378540539 * __this, const RuntimeMethod* method);
// System.Void Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object>::.ctor(System.Object,System.IntPtr)
extern "C" void ObjectConstructor_1__ctor_m1181679199_gshared (ObjectConstructor_1_t3207922868 * __this, RuntimeObject * p0, intptr_t p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::.ctor()
extern "C" void Dictionary_2__ctor_m518943619_gshared (Dictionary_2_t132545152 * __this, const RuntimeMethod* method);
// !1 System.Func`2<System.Object,System.Object>::Invoke(!0)
extern "C" RuntimeObject * Func_2_Invoke_m3562087266_gshared (Func_2_t2447130374 * __this, RuntimeObject * p0, const RuntimeMethod* method);
// !!0 System.Linq.Enumerable::Single<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>)
extern "C" RuntimeObject * Enumerable_Single_TisRuntimeObject_m2766697436_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, const RuntimeMethod* method);
// System.Func`2<T,System.Object> Newtonsoft.Json.Utilities.ReflectionDelegateFactory::CreateGet<System.Object>(System.Reflection.MemberInfo)
extern "C" Func_2_t2447130374 * ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m2506523516_gshared (ReflectionDelegateFactory_t2528576452 * __this, MemberInfo_t * ___memberInfo0, const RuntimeMethod* method);
// System.Action`2<T,System.Object> Newtonsoft.Json.Utilities.ReflectionDelegateFactory::CreateSet<System.Object>(System.Reflection.MemberInfo)
extern "C" Action_2_t2470008838 * ReflectionDelegateFactory_CreateSet_TisRuntimeObject_m2440090338_gshared (ReflectionDelegateFactory_t2528576452 * __this, MemberInfo_t * ___memberInfo0, const RuntimeMethod* method);
// System.Void System.Action`2<System.Object,System.Object>::.ctor(System.Object,System.IntPtr)
extern "C" void Action_2__ctor_m22087660_gshared (Action_2_t2470008838 * __this, RuntimeObject * p0, intptr_t p1, const RuntimeMethod* method);
// !0 System.Func`1<System.Object>::Invoke()
extern "C" RuntimeObject * Func_1_Invoke_m2006563704_gshared (Func_1_t2509852811 * __this, const RuntimeMethod* method);
// !!0 System.Linq.Enumerable::SingleOrDefault<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
extern "C" RuntimeObject * Enumerable_SingleOrDefault_TisRuntimeObject_m2673734094_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, Func_2_t3759279471 * p1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Object>::AddRange(System.Collections.Generic.IEnumerable`1<!0>)
extern "C" void List_1_AddRange_m614412439_gshared (List_1_t257213610 * __this, RuntimeObject* p0, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.List`1<System.Object>::get_Count()
extern "C" int32_t List_1_get_Count_m2934127733_gshared (List_1_t257213610 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Object>::.ctor(System.Int32)
extern "C" void List_1__ctor_m3947764094_gshared (List_1_t257213610 * __this, int32_t p0, const RuntimeMethod* method);
// System.Collections.Generic.IEnumerable`1<System.Linq.IGrouping`2<!!1,!!0>> System.Linq.Enumerable::GroupBy<System.Object,System.Object>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,!!1>)
extern "C" RuntimeObject* Enumerable_GroupBy_TisRuntimeObject_TisRuntimeObject_m1565366059_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, Func_2_t2447130374 * p1, const RuntimeMethod* method);
// System.Int32 System.Linq.Enumerable::Count<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>)
extern "C" int32_t Enumerable_Count_TisRuntimeObject_m954665811_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, const RuntimeMethod* method);
// System.Collections.Generic.List`1<!!0> System.Linq.Enumerable::ToList<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>)
extern "C" List_1_t257213610 * Enumerable_ToList_TisRuntimeObject_m1484080463_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, const RuntimeMethod* method);
// !!0 System.Linq.Enumerable::First<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>)
extern "C" RuntimeObject * Enumerable_First_TisRuntimeObject_m4173419911_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, const RuntimeMethod* method);
// !!0[] System.Linq.Enumerable::ToArray<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>)
extern "C" ObjectU5BU5D_t2843939325* Enumerable_ToArray_TisRuntimeObject_m2312436077_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Object>::.ctor(System.Collections.Generic.IEnumerable`1<!0>)
extern "C" void List_1__ctor_m1581319360_gshared (List_1_t257213610 * __this, RuntimeObject* p0, const RuntimeMethod* method);
// !0 System.Collections.Generic.List`1<System.Object>::get_Item(System.Int32)
extern "C" RuntimeObject * List_1_get_Item_m1328026504_gshared (List_1_t257213610 * __this, int32_t p0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Object>::set_Item(System.Int32,!0)
extern "C" void List_1_set_Item_m550276520_gshared (List_1_t257213610 * __this, int32_t p0, RuntimeObject * p1, const RuntimeMethod* method);
// System.Int32 Newtonsoft.Json.Utilities.CollectionUtils::IndexOf<System.Object>(System.Collections.Generic.IEnumerable`1<T>,System.Func`2<T,System.Boolean>)
extern "C" int32_t CollectionUtils_IndexOf_TisRuntimeObject_m856514146_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* ___collection0, Func_2_t3759279471 * ___predicate1, const RuntimeMethod* method);
// System.Boolean System.Linq.Enumerable::Any<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>)
extern "C" bool Enumerable_Any_TisRuntimeObject_m3173759778_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, const RuntimeMethod* method);
// System.Int32 System.Array::IndexOf<System.Char>(!!0[],!!0,System.Int32,System.Int32)
extern "C" int32_t Array_IndexOf_TisChar_t3634460470_m1523447194_gshared (RuntimeObject * __this /* static, unused */, CharU5BU5D_t3528271667* p0, Il2CppChar p1, int32_t p2, int32_t p3, const RuntimeMethod* method);
// System.Void System.Nullable`1<System.Int32>::.ctor(!0)
extern "C" void Nullable_1__ctor_m2962682148_gshared (Nullable_1_t378540539 * __this, int32_t p0, const RuntimeMethod* method);
// System.Void System.Nullable`1<Newtonsoft.Json.Utilities.MemberTypes>::.ctor(!0)
extern "C" void Nullable_1__ctor_m3380486094_gshared (Nullable_1_t3738281181 * __this, int32_t p0, const RuntimeMethod* method);
// System.Boolean System.Linq.Enumerable::Any<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
extern "C" bool Enumerable_Any_TisRuntimeObject_m1496744490_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, Func_2_t3759279471 * p1, const RuntimeMethod* method);
// System.Boolean System.Linq.Enumerable::SequenceEqual<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>,System.Collections.Generic.IEnumerable`1<!!0>)
extern "C" bool Enumerable_SequenceEqual_TisRuntimeObject_m3499175202_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, RuntimeObject* p1, const RuntimeMethod* method);
// System.Boolean System.Nullable`1<Newtonsoft.Json.Utilities.MemberTypes>::get_HasValue()
extern "C" bool Nullable_1_get_HasValue_m950793993_gshared (Nullable_1_t3738281181 * __this, const RuntimeMethod* method);
// !0 System.Nullable`1<Newtonsoft.Json.Utilities.MemberTypes>::GetValueOrDefault()
extern "C" int32_t Nullable_1_GetValueOrDefault_m1125123534_gshared (Nullable_1_t3738281181 * __this, const RuntimeMethod* method);
// System.Linq.Expressions.ConstantExpression System.Linq.Expressions.Expression::Constant(System.Object)
extern "C" ConstantExpression_t3613654278 * Expression_Constant_m3269986673 (RuntimeObject * __this /* static, unused */, RuntimeObject * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo::Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags,System.String)
extern "C" CSharpArgumentInfo_t1152531755 * CSharpArgumentInfo_Create_m661819073 (RuntimeObject * __this /* static, unused */, int32_t p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder::GetMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags,System.String,System.Type,System.Collections.Generic.IEnumerable`1<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>)
extern "C" CallSiteBinder_t1870160633 * Binder_GetMember_m2789734420 (RuntimeObject * __this /* static, unused */, int32_t p0, String_t* p1, Type_t * p2, RuntimeObject* p3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder::SetMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags,System.String,System.Type,System.Collections.Generic.IEnumerable`1<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>)
extern "C" CallSiteBinder_t1870160633 * Binder_SetMember_m3918167857 (RuntimeObject * __this /* static, unused */, int32_t p0, String_t* p1, Type_t * p2, RuntimeObject* p3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.StringComparer System.StringComparer::get_OrdinalIgnoreCase()
extern "C" StringComparer_t3301955079 * StringComparer_get_OrdinalIgnoreCase_m2680809380 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>::.ctor(System.Collections.Generic.IEqualityComparer`1<TFirst>,System.Collections.Generic.IEqualityComparer`1<TSecond>)
#define BidirectionalDictionary_2__ctor_m58546930(__this, p0, p1, method) (( void (*) (BidirectionalDictionary_2_t787053467 *, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))BidirectionalDictionary_2__ctor_m2728182391_gshared)(__this, p0, p1, method)
// System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetFields(System.Type)
extern "C" RuntimeObject* TypeExtensions_GetFields_m2718563494 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Type System.Type::GetTypeFromHandle(System.RuntimeTypeHandle)
extern "C" Type_t * Type_GetTypeFromHandle_m1620074514 (RuntimeObject * __this /* static, unused */, RuntimeTypeHandle_t3027515415 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<System.Attribute> System.Reflection.CustomAttributeExtensions::GetCustomAttributes(System.Reflection.MemberInfo,System.Type,System.Boolean)
extern "C" RuntimeObject* CustomAttributeExtensions_GetCustomAttributes_m3308002549 (RuntimeObject * __this /* static, unused */, MemberInfo_t * p0, Type_t * p1, bool p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable::Cast<System.Runtime.Serialization.EnumMemberAttribute>(System.Collections.IEnumerable)
#define Enumerable_Cast_TisEnumMemberAttribute_t1084128815_m843212694(__this /* static, unused */, p0, method) (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_Cast_TisRuntimeObject_m4015728326_gshared)(__this /* static, unused */, p0, method)
// System.Void System.Func`2<System.Runtime.Serialization.EnumMemberAttribute,System.String>::.ctor(System.Object,System.IntPtr)
#define Func_2__ctor_m1969356281(__this, p0, p1, method) (( void (*) (Func_2_t2419460300 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m3860723828_gshared)(__this, p0, p1, method)
// System.Collections.Generic.IEnumerable`1<!!1> System.Linq.Enumerable::Select<System.Runtime.Serialization.EnumMemberAttribute,System.String>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,!!1>)
#define Enumerable_Select_TisEnumMemberAttribute_t1084128815_TisString_t_m3180131537(__this /* static, unused */, p0, p1, method) (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t2419460300 *, const RuntimeMethod*))Enumerable_Select_TisRuntimeObject_TisRuntimeObject_m3166653319_gshared)(__this /* static, unused */, p0, p1, method)
// !!0 System.Linq.Enumerable::SingleOrDefault<System.String>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_SingleOrDefault_TisString_t_m4035470101(__this /* static, unused */, p0, method) (( String_t* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_SingleOrDefault_TisRuntimeObject_m2079752316_gshared)(__this /* static, unused */, p0, method)
// System.Boolean Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>::TryGetBySecond(TSecond,TFirst&)
#define BidirectionalDictionary_2_TryGetBySecond_m954730245(__this, p0, p1, method) (( bool (*) (BidirectionalDictionary_2_t787053467 *, String_t*, String_t**, const RuntimeMethod*))BidirectionalDictionary_2_TryGetBySecond_m1759937236_gshared)(__this, p0, p1, method)
// System.Globalization.CultureInfo System.Globalization.CultureInfo::get_InvariantCulture()
extern "C" CultureInfo_t4157843068 * CultureInfo_get_InvariantCulture_m3532445182 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Newtonsoft.Json.Utilities.StringUtils::FormatWith(System.String,System.IFormatProvider,System.Object,System.Object)
extern "C" String_t* StringUtils_FormatWith_m353537829 (RuntimeObject * __this /* static, unused */, String_t* ___format0, RuntimeObject* ___provider1, RuntimeObject * ___arg02, RuntimeObject * ___arg13, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.InvalidOperationException::.ctor(System.String)
extern "C" void InvalidOperationException__ctor_m237278729 (InvalidOperationException_t56020091 * __this, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>::Set(TFirst,TSecond)
#define BidirectionalDictionary_2_Set_m3266748649(__this, p0, p1, method) (( void (*) (BidirectionalDictionary_2_t787053467 *, String_t*, String_t*, const RuntimeMethod*))BidirectionalDictionary_2_Set_m1803187920_gshared)(__this, p0, p1, method)
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsEnum(System.Type)
extern "C" bool TypeExtensions_IsEnum_m286495740 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.String::Concat(System.String,System.String,System.String)
extern "C" String_t* String_Concat_m3755062657 (RuntimeObject * __this /* static, unused */, String_t* p0, String_t* p1, String_t* p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.ArgumentException::.ctor(System.String)
extern "C" void ArgumentException__ctor_m1312628991 (ArgumentException_t132251570 * __this, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.List`1<System.Object>::.ctor()
#define List_1__ctor_m2321703786(__this, method) (( void (*) (List_1_t257213610 *, const RuntimeMethod*))List_1__ctor_m2321703786_gshared)(__this, method)
// System.Void System.Func`2<System.Reflection.FieldInfo,System.Boolean>::.ctor(System.Object,System.IntPtr)
#define Func_2__ctor_m3933480653(__this, p0, p1, method) (( void (*) (Func_2_t1761491126 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m135484220_gshared)(__this, p0, p1, method)
// System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable::Where<System.Reflection.FieldInfo>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
#define Enumerable_Where_TisFieldInfo_t_m2487357973(__this /* static, unused */, p0, p1, method) (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t1761491126 *, const RuntimeMethod*))Enumerable_Where_TisRuntimeObject_m3429873137_gshared)(__this /* static, unused */, p0, p1, method)
// System.Void System.Collections.Generic.List`1<System.Object>::Add(!0)
#define List_1_Add_m3338814081(__this, p0, method) (( void (*) (List_1_t257213610 *, RuntimeObject *, const RuntimeMethod*))List_1_Add_m3338814081_gshared)(__this, p0, method)
// System.Void System.Func`2<System.Type,Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>>::.ctor(System.Object,System.IntPtr)
#define Func_2__ctor_m1138174753(__this, p0, p1, method) (( void (*) (Func_2_t1251018457 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m3860723828_gshared)(__this, p0, p1, method)
// System.Void Newtonsoft.Json.Utilities.ThreadSafeStore`2<System.Type,Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String>>::.ctor(System.Func`2<TKey,TValue>)
#define ThreadSafeStore_2__ctor_m769843296(__this, p0, method) (( void (*) (ThreadSafeStore_2_t4165332627 *, Func_2_t1251018457 *, const RuntimeMethod*))ThreadSafeStore_2__ctor_m3312637891_gshared)(__this, p0, method)
// System.Void Newtonsoft.Json.Utilities.EnumUtils/<>c::.ctor()
extern "C" void U3CU3Ec__ctor_m4100598361 (U3CU3Ec_t2360567884 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Object::.ctor()
extern "C" void Object__ctor_m297566312 (RuntimeObject * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.Runtime.Serialization.EnumMemberAttribute::get_Value()
extern "C" String_t* EnumMemberAttribute_get_Value_m452041758 (EnumMemberAttribute_t1084128815 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Reflection.FieldInfo::get_IsLiteral()
extern "C" bool FieldInfo_get_IsLiteral_m534699794 (FieldInfo_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ValidationUtils::ArgumentNotNull(System.Object,System.String)
extern "C" void ValidationUtils_ArgumentNotNull_m5418296 (RuntimeObject * __this /* static, unused */, RuntimeObject * ___value0, String_t* ___parameterName1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.ParameterExpression System.Linq.Expressions.Expression::Parameter(System.Type,System.String)
extern "C" ParameterExpression_t1118422084 * Expression_Parameter_m4117869331 (RuntimeObject * __this /* static, unused */, Type_t * p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.Expression Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory::BuildMethodCall(System.Reflection.MethodBase,System.Type,System.Linq.Expressions.ParameterExpression,System.Linq.Expressions.ParameterExpression)
extern "C" Expression_t1588164026 * ExpressionReflectionDelegateFactory_BuildMethodCall_m3034515324 (ExpressionReflectionDelegateFactory_t3044714092 * __this, MethodBase_t * ___method0, Type_t * ___type1, ParameterExpression_t1118422084 * ___targetParameterExpression2, ParameterExpression_t1118422084 * ___argsParameterExpression3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.LambdaExpression System.Linq.Expressions.Expression::Lambda(System.Type,System.Linq.Expressions.Expression,System.Linq.Expressions.ParameterExpression[])
extern "C" LambdaExpression_t3131094331 * Expression_Lambda_m567659775 (RuntimeObject * __this /* static, unused */, Type_t * p0, Expression_t1588164026 * p1, ParameterExpressionU5BU5D_t2413162029* p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Delegate System.Linq.Expressions.LambdaExpression::Compile()
extern "C" Delegate_t1188392813 * LambdaExpression_Compile_m468455141 (LambdaExpression_t3131094331 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.List`1<Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter>::.ctor()
#define List_1__ctor_m243543808(__this, method) (( void (*) (List_1_t4069346525 *, const RuntimeMethod*))List_1__ctor_m2321703786_gshared)(__this, method)
// System.Boolean System.Type::get_IsByRef()
extern "C" bool Type_get_IsByRef_m1262524108 (Type_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.BinaryExpression System.Linq.Expressions.Expression::ArrayIndex(System.Linq.Expressions.Expression,System.Linq.Expressions.Expression)
extern "C" BinaryExpression_t77573129 * Expression_ArrayIndex_m829554235 (RuntimeObject * __this /* static, unused */, Expression_t1588164026 * p0, Expression_t1588164026 * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsValueType(System.Type)
extern "C" bool TypeExtensions_IsValueType_m852671066 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.NewExpression System.Linq.Expressions.Expression::New(System.Type)
extern "C" NewExpression_t1271006003 * Expression_New_m3056576841 (RuntimeObject * __this /* static, unused */, Type_t * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.BinaryExpression System.Linq.Expressions.Expression::Coalesce(System.Linq.Expressions.Expression,System.Linq.Expressions.Expression)
extern "C" BinaryExpression_t77573129 * Expression_Coalesce_m3938856077 (RuntimeObject * __this /* static, unused */, Expression_t1588164026 * p0, Expression_t1588164026 * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.Expression Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory::EnsureCastExpression(System.Linq.Expressions.Expression,System.Type)
extern "C" Expression_t1588164026 * ExpressionReflectionDelegateFactory_EnsureCastExpression_m3184564199 (ExpressionReflectionDelegateFactory_t3044714092 * __this, Expression_t1588164026 * ___expression0, Type_t * ___targetType1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.ParameterExpression System.Linq.Expressions.Expression::Variable(System.Type)
extern "C" ParameterExpression_t1118422084 * Expression_Variable_m1043725142 (RuntimeObject * __this /* static, unused */, Type_t * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter::.ctor()
extern "C" void ByRefParameter__ctor_m1062946956 (ByRefParameter_t2597271783 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Reflection.ParameterInfo::get_IsOut()
extern "C" bool ParameterInfo_get_IsOut_m867677222 (ParameterInfo_t1861056598 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Reflection.MethodBase::get_IsConstructor()
extern "C" bool MethodBase_get_IsConstructor_m1438333698 (MethodBase_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.NewExpression System.Linq.Expressions.Expression::New(System.Reflection.ConstructorInfo,System.Linq.Expressions.Expression[])
extern "C" NewExpression_t1271006003 * Expression_New_m457641601 (RuntimeObject * __this /* static, unused */, ConstructorInfo_t5769829 * p0, ExpressionU5BU5D_t2266720799* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Reflection.MethodBase::get_IsStatic()
extern "C" bool MethodBase_get_IsStatic_m2399864271 (MethodBase_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.MethodCallExpression System.Linq.Expressions.Expression::Call(System.Reflection.MethodInfo,System.Linq.Expressions.Expression[])
extern "C" MethodCallExpression_t3675920717 * Expression_Call_m2422675646 (RuntimeObject * __this /* static, unused */, MethodInfo_t * p0, ExpressionU5BU5D_t2266720799* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.MethodCallExpression System.Linq.Expressions.Expression::Call(System.Linq.Expressions.Expression,System.Reflection.MethodInfo,System.Linq.Expressions.Expression[])
extern "C" MethodCallExpression_t3675920717 * Expression_Call_m2714863137 (RuntimeObject * __this /* static, unused */, Expression_t1588164026 * p0, MethodInfo_t * p1, ExpressionU5BU5D_t2266720799* p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.BlockExpression System.Linq.Expressions.Expression::Block(System.Linq.Expressions.Expression,System.Linq.Expressions.Expression)
extern "C" BlockExpression_t2693004534 * Expression_Block_m3994705381 (RuntimeObject * __this /* static, unused */, Expression_t1588164026 * p0, Expression_t1588164026 * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.List`1<System.Linq.Expressions.ParameterExpression>::.ctor()
#define List_1__ctor_m4094288014(__this, method) (( void (*) (List_1_t2590496826 *, const RuntimeMethod*))List_1__ctor_m2321703786_gshared)(__this, method)
// System.Void System.Collections.Generic.List`1<System.Linq.Expressions.Expression>::.ctor()
#define List_1__ctor_m4116858772(__this, method) (( void (*) (List_1_t3060238768 *, const RuntimeMethod*))List_1__ctor_m2321703786_gshared)(__this, method)
// System.Linq.Expressions.BinaryExpression System.Linq.Expressions.Expression::Assign(System.Linq.Expressions.Expression,System.Linq.Expressions.Expression)
extern "C" BinaryExpression_t77573129 * Expression_Assign_m3503196189 (RuntimeObject * __this /* static, unused */, Expression_t1588164026 * p0, Expression_t1588164026 * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.BlockExpression System.Linq.Expressions.Expression::Block(System.Collections.Generic.IEnumerable`1<System.Linq.Expressions.ParameterExpression>,System.Collections.Generic.IEnumerable`1<System.Linq.Expressions.Expression>)
extern "C" BlockExpression_t2693004534 * Expression_Block_m2109601663 (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, RuntimeObject* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsAssignableFrom(System.Type,System.Type)
extern "C" bool TypeExtensions_IsAssignableFrom_m1207251774 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___c1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.UnaryExpression System.Linq.Expressions.Expression::Convert(System.Linq.Expressions.Expression,System.Type)
extern "C" UnaryExpression_t3914580921 * Expression_Convert_m3332325046 (RuntimeObject * __this /* static, unused */, Expression_t1588164026 * p0, Type_t * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ReflectionDelegateFactory::.ctor()
extern "C" void ReflectionDelegateFactory__ctor_m3277517333 (ReflectionDelegateFactory_t2528576452 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory::.ctor()
extern "C" void ExpressionReflectionDelegateFactory__ctor_m2673819214 (ExpressionReflectionDelegateFactory_t3044714092 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// TResult Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>::Invoke(T,System.Object[])
#define MethodCall_2_Invoke_m386137395(__this, p0, p1, method) (( RuntimeObject * (*) (MethodCall_2_t2845904993 *, RuntimeObject *, ObjectU5BU5D_t2843939325*, const RuntimeMethod*))MethodCall_2_Invoke_m386137395_gshared)(__this, p0, p1, method)
// System.Void System.Threading.Monitor::Enter(System.Object,System.Boolean&)
extern "C" void Monitor_Enter_m984175629 (RuntimeObject * __this /* static, unused */, RuntimeObject * p0, bool* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_FSharpCoreAssembly(System.Reflection.Assembly)
extern "C" void FSharpUtils_set_FSharpCoreAssembly_m1794540835 (RuntimeObject * __this /* static, unused */, Assembly_t * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.FSharpUtils::GetMethodWithNonPublicFallback(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" MethodInfo_t * FSharpUtils_GetMethodWithNonPublicFallback_m560151526 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___methodName1, int32_t ___bindingFlags2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// Newtonsoft.Json.Utilities.ReflectionDelegateFactory Newtonsoft.Json.Serialization.JsonTypeReflector::get_ReflectionDelegateFactory()
extern "C" ReflectionDelegateFactory_t2528576452 * JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_IsUnion(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_IsUnion_m1146927020 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_GetUnionCases(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_GetUnionCases_m3163215751 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::CreateFSharpFuncCall(System.Type,System.String)
extern "C" MethodCall_2_t2845904993 * FSharpUtils_CreateFSharpFuncCall_m848649464 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___methodName1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_PreComputeUnionTagReader(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_PreComputeUnionTagReader_m2586219813 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_PreComputeUnionReader(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_PreComputeUnionReader_m2409024186 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_PreComputeUnionConstructor(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_PreComputeUnionConstructor_m301096180 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.PropertyInfo Newtonsoft.Json.Utilities.TypeExtensions::GetProperty(System.Type,System.String)
extern "C" PropertyInfo_t * TypeExtensions_GetProperty_m777828875 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_GetUnionCaseInfoName(System.Func`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_GetUnionCaseInfoName_m2416808770 (RuntimeObject * __this /* static, unused */, Func_2_t2447130374 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_GetUnionCaseInfoTag(System.Func`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_GetUnionCaseInfoTag_m95408090 (RuntimeObject * __this /* static, unused */, Func_2_t2447130374 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_GetUnionCaseInfoDeclaringType(System.Func`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_GetUnionCaseInfoDeclaringType_m728957313 (RuntimeObject * __this /* static, unused */, Func_2_t2447130374 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetMethod(System.Type,System.String)
extern "C" MethodInfo_t * TypeExtensions_GetMethod_m3329308827 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_GetUnionCaseInfoFields(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_GetUnionCaseInfoFields_m559492724 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.Monitor::Exit(System.Object)
extern "C" void Monitor_Exit_m3585316909 (RuntimeObject * __this /* static, unused */, RuntimeObject * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetMethod(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" MethodInfo_t * TypeExtensions_GetMethod_m2065588957 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, int32_t ___bindingFlags2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpUtils/<>c__DisplayClass49_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass49_0__ctor_m39089669 (U3CU3Ec__DisplayClass49_0_t1290877595 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>::.ctor(System.Object,System.IntPtr)
#define MethodCall_2__ctor_m1888034670(__this, p0, p1, method) (( void (*) (MethodCall_2_t2845904993 *, RuntimeObject *, intptr_t, const RuntimeMethod*))MethodCall_2__ctor_m1888034670_gshared)(__this, p0, p1, method)
// System.Object System.Reflection.MethodBase::Invoke(System.Object,System.Object[])
extern "C" RuntimeObject * MethodBase_Invoke_m1776411915 (MethodBase_t * __this, RuntimeObject * p0, ObjectU5BU5D_t2843939325* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.FSharpFunction::.ctor(System.Object,Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpFunction__ctor_m4007359143 (FSharpFunction_t2521769750 * __this, RuntimeObject * ___instance0, MethodCall_2_t2845904993 * ___invoker1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsGenericType(System.Type)
extern "C" bool TypeExtensions_IsGenericType_m3947308765 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass24_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass24_0__ctor_m3082183600 (U3CU3Ec__DisplayClass24_0_t2581071253 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Func`2<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo,System.Boolean>::.ctor(System.Object,System.IntPtr)
#define Func_2__ctor_m3706440855(__this, p0, p1, method) (( void (*) (Func_2_t3660693786 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m135484220_gshared)(__this, p0, p1, method)
// !!0 System.Linq.Enumerable::FirstOrDefault<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
#define Enumerable_FirstOrDefault_TisImmutableCollectionTypeInfo_t3023729701_m959056564(__this /* static, unused */, p0, p1, method) (( ImmutableCollectionTypeInfo_t3023729701 * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t3660693786 *, const RuntimeMethod*))Enumerable_FirstOrDefault_TisRuntimeObject_m1181382667_gshared)(__this /* static, unused */, p0, p1, method)
// System.Reflection.Assembly Newtonsoft.Json.Utilities.TypeExtensions::Assembly(System.Type)
extern "C" Assembly_t * TypeExtensions_Assembly_m2111093205 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::get_CreatedTypeName()
extern "C" String_t* ImmutableCollectionTypeInfo_get_CreatedTypeName_m3640385327 (ImmutableCollectionTypeInfo_t3023729701 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::get_BuilderTypeName()
extern "C" String_t* ImmutableCollectionTypeInfo_get_BuilderTypeName_m3644216444 (ImmutableCollectionTypeInfo_t3023729701 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<System.Reflection.MethodInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetMethods(System.Type)
extern "C" RuntimeObject* TypeExtensions_GetMethods_m2399217383 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Func`2<System.Reflection.MethodInfo,System.Boolean>::.ctor(System.Object,System.IntPtr)
#define Func_2__ctor_m1610613808(__this, p0, p1, method) (( void (*) (Func_2_t3487522507 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m135484220_gshared)(__this, p0, p1, method)
// !!0 System.Linq.Enumerable::FirstOrDefault<System.Reflection.MethodInfo>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
#define Enumerable_FirstOrDefault_TisMethodInfo_t_m2995442962(__this /* static, unused */, p0, p1, method) (( MethodInfo_t * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t3487522507 *, const RuntimeMethod*))Enumerable_FirstOrDefault_TisRuntimeObject_m1181382667_gshared)(__this /* static, unused */, p0, p1, method)
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass25_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass25_0__ctor_m2921334785 (U3CU3Ec__DisplayClass25_0_t4147155194 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.List`1<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo>::.ctor()
#define List_1__ctor_m3987229414(__this, method) (( void (*) (List_1_t200837147 *, const RuntimeMethod*))List_1__ctor_m2321703786_gshared)(__this, method)
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::.ctor(System.String,System.String,System.String)
extern "C" void ImmutableCollectionTypeInfo__ctor_m2154205830 (ImmutableCollectionTypeInfo_t3023729701 * __this, String_t* ___contractTypeName0, String_t* ___createdTypeName1, String_t* ___builderTypeName2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.List`1<Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo>::Add(!0)
#define List_1_Add_m2120795546(__this, p0, method) (( void (*) (List_1_t200837147 *, ImmutableCollectionTypeInfo_t3023729701 *, const RuntimeMethod*))List_1_Add_m3338814081_gshared)(__this, p0, method)
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c::.ctor()
extern "C" void U3CU3Ec__ctor_m3145656006 (U3CU3Ec_t1160215063 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.String::op_Equality(System.String,System.String)
extern "C" bool String_op_Equality_m920492651 (RuntimeObject * __this /* static, unused */, String_t* p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::get_ContractTypeName()
extern "C" String_t* ImmutableCollectionTypeInfo_get_ContractTypeName_m1106369950 (ImmutableCollectionTypeInfo_t3023729701 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::set_ContractTypeName(System.String)
extern "C" void ImmutableCollectionTypeInfo_set_ContractTypeName_m2080545341 (ImmutableCollectionTypeInfo_t3023729701 * __this, String_t* ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::set_CreatedTypeName(System.String)
extern "C" void ImmutableCollectionTypeInfo_set_CreatedTypeName_m1127213754 (ImmutableCollectionTypeInfo_t3023729701 * __this, String_t* ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::set_BuilderTypeName(System.String)
extern "C" void ImmutableCollectionTypeInfo_set_BuilderTypeName_m2064247850 (ImmutableCollectionTypeInfo_t3023729701 * __this, String_t* ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.List`1<System.Char>::.ctor()
#define List_1__ctor_m1735334926(__this, method) (( void (*) (List_1_t811567916 *, const RuntimeMethod*))List_1__ctor_m1735334926_gshared)(__this, method)
// System.Void System.Collections.Generic.List`1<System.Char>::Add(!0)
#define List_1_Add_m1266383442(__this, p0, method) (( void (*) (List_1_t811567916 *, Il2CppChar, const RuntimeMethod*))List_1_Add_m1266383442_gshared)(__this, p0, method)
// System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable::Union<System.Char>(System.Collections.Generic.IEnumerable`1<!!0>,System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_Union_TisChar_t3634460470_m3294811350(__this /* static, unused */, p0, p1, method) (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))Enumerable_Union_TisChar_t3634460470_m3294811350_gshared)(__this /* static, unused */, p0, p1, method)
// System.Void System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(System.Array,System.RuntimeFieldHandle)
extern "C" void RuntimeHelpers_InitializeArray_m3117905507 (RuntimeObject * __this /* static, unused */, RuntimeArray * p0, RuntimeFieldHandle_t1871169219 p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Char System.String::get_Chars(System.Int32)
extern "C" Il2CppChar String_get_Chars_m2986988803 (String_t* __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.String::get_Length()
extern "C" int32_t String_get_Length_m3847582255 (String_t* __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Char[] Newtonsoft.Json.Utilities.BufferUtils::EnsureBufferSize(Newtonsoft.Json.IArrayPool`1<System.Char>,System.Int32,System.Char[])
extern "C" CharU5BU5D_t3528271667* BufferUtils_EnsureBufferSize_m2563135377 (RuntimeObject * __this /* static, unused */, RuntimeObject* ___bufferPool0, int32_t ___size1, CharU5BU5D_t3528271667* ___buffer2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.StringUtils::ToCharAsUnicode(System.Char,System.Char[])
extern "C" void StringUtils_ToCharAsUnicode_m1857241640 (RuntimeObject * __this /* static, unused */, Il2CppChar ___c0, CharU5BU5D_t3528271667* ___buffer1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.String::Equals(System.String,System.String)
extern "C" bool String_Equals_m1744302937 (RuntimeObject * __this /* static, unused */, String_t* p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Char[] Newtonsoft.Json.Utilities.BufferUtils::RentBuffer(Newtonsoft.Json.IArrayPool`1<System.Char>,System.Int32)
extern "C" CharU5BU5D_t3528271667* BufferUtils_RentBuffer_m2229979349 (RuntimeObject * __this /* static, unused */, RuntimeObject* ___bufferPool0, int32_t ___minSize1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Array::Copy(System.Array,System.Array,System.Int32)
extern "C" void Array_Copy_m1988217701 (RuntimeObject * __this /* static, unused */, RuntimeArray * p0, RuntimeArray * p1, int32_t p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.BufferUtils::ReturnBuffer(Newtonsoft.Json.IArrayPool`1<System.Char>,System.Char[])
extern "C" void BufferUtils_ReturnBuffer_m1757235126 (RuntimeObject * __this /* static, unused */, RuntimeObject* ___bufferPool0, CharU5BU5D_t3528271667* ___buffer1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.String::CopyTo(System.Int32,System.Char[],System.Int32,System.Int32)
extern "C" void String_CopyTo_m2803757991 (String_t* __this, int32_t p0, CharU5BU5D_t3528271667* p1, int32_t p2, int32_t p3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean[] Newtonsoft.Json.Utilities.JavaScriptUtils::GetCharEscapeFlags(Newtonsoft.Json.StringEscapeHandling,System.Char)
extern "C" BooleanU5BU5D_t2897418192* JavaScriptUtils_GetCharEscapeFlags_m2215130569 (RuntimeObject * __this /* static, unused */, int32_t ___stringEscapeHandling0, Il2CppChar ___quoteChar1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Nullable`1<System.Int32> Newtonsoft.Json.Utilities.StringUtils::GetLength(System.String)
extern "C" Nullable_1_t378540539 StringUtils_GetLength_m3427840909 (RuntimeObject * __this /* static, unused */, String_t* ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Nullable`1<System.Int32>::get_HasValue()
#define Nullable_1_get_HasValue_m3898097692(__this, method) (( bool (*) (Nullable_1_t378540539 *, const RuntimeMethod*))Nullable_1_get_HasValue_m3898097692_gshared)(__this, method)
// !0 System.Nullable`1<System.Int32>::GetValueOrDefault()
#define Nullable_1_GetValueOrDefault_m463439517(__this, method) (( int32_t (*) (Nullable_1_t378540539 *, const RuntimeMethod*))Nullable_1_GetValueOrDefault_m463439517_gshared)(__this, method)
// System.IO.StringWriter Newtonsoft.Json.Utilities.StringUtils::CreateStringWriter(System.Int32)
extern "C" StringWriter_t802263757 * StringUtils_CreateStringWriter_m3876739792 (RuntimeObject * __this /* static, unused */, int32_t ___capacity0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.JavaScriptUtils::WriteEscapedJavaScriptString(System.IO.TextWriter,System.String,System.Char,System.Boolean,System.Boolean[],Newtonsoft.Json.StringEscapeHandling,Newtonsoft.Json.IArrayPool`1<System.Char>,System.Char[]&)
extern "C" void JavaScriptUtils_WriteEscapedJavaScriptString_m1556362848 (RuntimeObject * __this /* static, unused */, TextWriter_t3478189236 * ___writer0, String_t* ___s1, Il2CppChar ___delimiter2, bool ___appendDelimiters3, BooleanU5BU5D_t2897418192* ___charEscapeFlags4, int32_t ___stringEscapeHandling5, RuntimeObject* ___bufferPool6, CharU5BU5D_t3528271667** ___writeBuffer7, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory/<>c__DisplayClass3_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass3_0__ctor_m3663881265 (U3CU3Ec__DisplayClass3_0_t1939583362 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object>::.ctor(System.Object,System.IntPtr)
#define ObjectConstructor_1__ctor_m1181679199(__this, p0, p1, method) (( void (*) (ObjectConstructor_1_t3207922868 *, RuntimeObject *, intptr_t, const RuntimeMethod*))ObjectConstructor_1__ctor_m1181679199_gshared)(__this, p0, p1, method)
// System.Void Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory::.ctor()
extern "C" void LateBoundReflectionDelegateFactory__ctor_m2734757472 (LateBoundReflectionDelegateFactory_t925499913 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Object System.Reflection.ConstructorInfo::Invoke(System.Object[])
extern "C" RuntimeObject * ConstructorInfo_Invoke_m4089836896 (ConstructorInfo_t5769829 * __this, ObjectU5BU5D_t2843939325* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Type System.Object::GetType()
extern "C" Type_t * Object_GetType_m88164663 (RuntimeObject * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.ConvertUtils::IsInteger(System.Object)
extern "C" bool ConvertUtils_IsInteger_m1782566389 (RuntimeObject * __this /* static, unused */, RuntimeObject * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Globalization.CultureInfo System.Globalization.CultureInfo::get_CurrentCulture()
extern "C" CultureInfo_t4157843068 * CultureInfo_get_CurrentCulture_m1632690660 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Decimal System.Convert::ToDecimal(System.Object,System.IFormatProvider)
extern "C" Decimal_t2948259380 Convert_ToDecimal_m3815908452 (RuntimeObject * __this /* static, unused */, RuntimeObject * p0, RuntimeObject* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Decimal::Equals(System.Decimal)
extern "C" bool Decimal_Equals_m2486655999 (Decimal_t2948259380 * __this, Decimal_t2948259380 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Double System.Convert::ToDouble(System.Object,System.IFormatProvider)
extern "C" double Convert_ToDouble_m4017511472 (RuntimeObject * __this /* static, unused */, RuntimeObject * p0, RuntimeObject* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.MathUtils::ApproxEquals(System.Double,System.Double)
extern "C" bool MathUtils_ApproxEquals_m663204704 (RuntimeObject * __this /* static, unused */, double ___d10, double ___d21, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.Environment::get_NewLine()
extern "C" String_t* Environment_get_NewLine_m3211016485 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Newtonsoft.Json.Utilities.StringUtils::FormatWith(System.String,System.IFormatProvider,System.Object)
extern "C" String_t* StringUtils_FormatWith_m3056805521 (RuntimeObject * __this /* static, unused */, String_t* ___format0, RuntimeObject* ___provider1, RuntimeObject * ___arg02, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.ArgumentOutOfRangeException::.ctor(System.String,System.String)
extern "C" void ArgumentOutOfRangeException__ctor_m282481429 (ArgumentOutOfRangeException_t777629997 * __this, String_t* p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.Int32::CompareTo(System.Int32)
extern "C" int32_t Int32_CompareTo_m4284770383 (int32_t* __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.Byte::CompareTo(System.Byte)
extern "C" int32_t Byte_CompareTo_m4207847027 (uint8_t* __this, uint8_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.Expression System.Linq.Expressions.ConditionalExpression::get_IfFalse()
extern "C" Expression_t1588164026 * ConditionalExpression_get_IfFalse_m2385420502 (ConditionalExpression_t1874387742 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.Expression System.Linq.Expressions.ConditionalExpression::get_Test()
extern "C" Expression_t1588164026 * ConditionalExpression_get_Test_m2318551020 (ConditionalExpression_t1874387742 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.Expression System.Linq.Expressions.ConditionalExpression::get_IfTrue()
extern "C" Expression_t1588164026 * ConditionalExpression_get_IfTrue_m2644523070 (ConditionalExpression_t1874387742 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.ConditionalExpression System.Linq.Expressions.Expression::Condition(System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression)
extern "C" ConditionalExpression_t1874387742 * Expression_Condition_m1950924631 (RuntimeObject * __this /* static, unused */, Expression_t1588164026 * p0, Expression_t1588164026 * p1, Expression_t1588164026 * p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Linq.Expressions.Expression System.Linq.Expressions.ExpressionVisitor::VisitConditional(System.Linq.Expressions.ConditionalExpression)
extern "C" Expression_t1588164026 * ExpressionVisitor_VisitConditional_m3160354326 (ExpressionVisitor_t1561124052 * __this, ConditionalExpression_t1874387742 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.Dynamic.GetMemberBinder::get_Name()
extern "C" String_t* GetMemberBinder_get_Name_m2062284678 (GetMemberBinder_t2463380603 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Dynamic.GetMemberBinder::get_IgnoreCase()
extern "C" bool GetMemberBinder_get_IgnoreCase_m3238376543 (GetMemberBinder_t2463380603 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Dynamic.GetMemberBinder::.ctor(System.String,System.Boolean)
extern "C" void GetMemberBinder__ctor_m2724656095 (GetMemberBinder_t2463380603 * __this, String_t* p0, bool p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.Dynamic.SetMemberBinder::get_Name()
extern "C" String_t* SetMemberBinder_get_Name_m1130965295 (SetMemberBinder_t2112048622 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Dynamic.SetMemberBinder::get_IgnoreCase()
extern "C" bool SetMemberBinder_get_IgnoreCase_m2254193583 (SetMemberBinder_t2112048622 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Dynamic.SetMemberBinder::.ctor(System.String,System.Boolean)
extern "C" void SetMemberBinder__ctor_m779483474 (SetMemberBinder_t2112048622 * __this, String_t* p0, bool p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.Environment::get_TickCount()
extern "C" int32_t Environment_get_TickCount_m2088073110 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.PropertyNameTable::TextEquals(System.String,System.Char[],System.Int32,System.Int32)
extern "C" bool PropertyNameTable_TextEquals_m2030128776 (RuntimeObject * __this /* static, unused */, String_t* ___str10, CharU5BU5D_t3528271667* ___str21, int32_t ___str2Start2, int32_t ___str2Length3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.ArgumentNullException::.ctor(System.String)
extern "C" void ArgumentNullException__ctor_m1170824041 (ArgumentNullException_t1615371798 * __this, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.String::Equals(System.String)
extern "C" bool String_Equals_m2270643605 (String_t* __this, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Newtonsoft.Json.Utilities.PropertyNameTable::AddEntry(System.String,System.Int32)
extern "C" String_t* PropertyNameTable_AddEntry_m2687197476 (PropertyNameTable_t4130830590 * __this, String_t* ___str0, int32_t ___hashCode1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.PropertyNameTable/Entry::.ctor(System.String,System.Int32,Newtonsoft.Json.Utilities.PropertyNameTable/Entry)
extern "C" void Entry__ctor_m1495177254 (Entry_t2924091039 * __this, String_t* ___value0, int32_t ___hashCode1, Entry_t2924091039 * ___next2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.PropertyNameTable::Grow()
extern "C" void PropertyNameTable_Grow_m2160967313 (PropertyNameTable_t4130830590 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.Dictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember>::.ctor()
#define Dictionary_2__ctor_m2127759587(__this, method) (( void (*) (Dictionary_2_t2440663781 *, const RuntimeMethod*))Dictionary_2__ctor_m518943619_gshared)(__this, method)
// System.Void Newtonsoft.Json.Utilities.ReflectionObject::set_Members(System.Collections.Generic.IDictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember>)
extern "C" void ReflectionObject_set_Members_m1728563473 (ReflectionObject_t701100009 * __this, RuntimeObject* ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IDictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember> Newtonsoft.Json.Utilities.ReflectionObject::get_Members()
extern "C" RuntimeObject* ReflectionObject_get_Members_m1237437266 (ReflectionObject_t701100009 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Func`2<System.Object,System.Object> Newtonsoft.Json.Utilities.ReflectionMember::get_Getter()
extern "C" Func_2_t2447130374 * ReflectionMember_get_Getter_m2488656156 (ReflectionMember_t2655407482 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !1 System.Func`2<System.Object,System.Object>::Invoke(!0)
#define Func_2_Invoke_m3562087266(__this, p0, method) (( RuntimeObject * (*) (Func_2_t2447130374 *, RuntimeObject *, const RuntimeMethod*))Func_2_Invoke_m3562087266_gshared)(__this, p0, method)
// System.Type Newtonsoft.Json.Utilities.ReflectionMember::get_MemberType()
extern "C" Type_t * ReflectionMember_get_MemberType_m1759785445 (ReflectionMember_t2655407482 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// Newtonsoft.Json.Utilities.ReflectionObject Newtonsoft.Json.Utilities.ReflectionObject::Create(System.Type,System.Reflection.MethodBase,System.String[])
extern "C" ReflectionObject_t701100009 * ReflectionObject_Create_m73781573 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, MethodBase_t * ___creator1, StringU5BU5D_t1281789340* ___memberNames2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ReflectionObject::.ctor()
extern "C" void ReflectionObject__ctor_m1062647964 (ReflectionObject_t701100009 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ReflectionObject::set_Creator(Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object>)
extern "C" void ReflectionObject_set_Creator_m3308348627 (ReflectionObject_t701100009 * __this, ObjectConstructor_1_t3207922868 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::HasDefaultConstructor(System.Type,System.Boolean)
extern "C" bool ReflectionUtils_HasDefaultConstructor_m3011828166 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, bool ___nonPublic1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass13_0__ctor_m2896337997 (U3CU3Ec__DisplayClass13_0_t4294006577 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.MemberInfo[] Newtonsoft.Json.Utilities.TypeExtensions::GetMember(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" MemberInfoU5BU5D_t1302094432* TypeExtensions_GetMember_m3247939173 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___member1, int32_t ___bindingFlags2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0 System.Linq.Enumerable::Single<System.Reflection.MemberInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_Single_TisMemberInfo_t_m851241132(__this /* static, unused */, p0, method) (( MemberInfo_t * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_Single_TisRuntimeObject_m2766697436_gshared)(__this /* static, unused */, p0, method)
// System.Void Newtonsoft.Json.Utilities.ReflectionMember::.ctor()
extern "C" void ReflectionMember__ctor_m2612443734 (ReflectionMember_t2655407482 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// Newtonsoft.Json.Utilities.MemberTypes Newtonsoft.Json.Utilities.TypeExtensions::MemberType(System.Reflection.MemberInfo)
extern "C" int32_t TypeExtensions_MemberType_m2046620246 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___memberInfo0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::CanReadMemberValue(System.Reflection.MemberInfo,System.Boolean)
extern "C" bool ReflectionUtils_CanReadMemberValue_m1473164796 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___member0, bool ___nonPublic1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Func`2<T,System.Object> Newtonsoft.Json.Utilities.ReflectionDelegateFactory::CreateGet<System.Object>(System.Reflection.MemberInfo)
#define ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m2506523516(__this, ___memberInfo0, method) (( Func_2_t2447130374 * (*) (ReflectionDelegateFactory_t2528576452 *, MemberInfo_t *, const RuntimeMethod*))ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m2506523516_gshared)(__this, ___memberInfo0, method)
// System.Void Newtonsoft.Json.Utilities.ReflectionMember::set_Getter(System.Func`2<System.Object,System.Object>)
extern "C" void ReflectionMember_set_Getter_m3541426260 (ReflectionMember_t2655407482 * __this, Func_2_t2447130374 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::CanSetMemberValue(System.Reflection.MemberInfo,System.Boolean,System.Boolean)
extern "C" bool ReflectionUtils_CanSetMemberValue_m1263216356 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___member0, bool ___nonPublic1, bool ___canSetReadOnly2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Action`2<T,System.Object> Newtonsoft.Json.Utilities.ReflectionDelegateFactory::CreateSet<System.Object>(System.Reflection.MemberInfo)
#define ReflectionDelegateFactory_CreateSet_TisRuntimeObject_m2440090338(__this, ___memberInfo0, method) (( Action_2_t2470008838 * (*) (ReflectionDelegateFactory_t2528576452 *, MemberInfo_t *, const RuntimeMethod*))ReflectionDelegateFactory_CreateSet_TisRuntimeObject_m2440090338_gshared)(__this, ___memberInfo0, method)
// System.Void Newtonsoft.Json.Utilities.ReflectionMember::set_Setter(System.Action`2<System.Object,System.Object>)
extern "C" void ReflectionMember_set_Setter_m1832329444 (ReflectionMember_t2655407482 * __this, Action_2_t2470008838 * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Reflection.MethodBase::get_IsPublic()
extern "C" bool MethodBase_get_IsPublic_m2180846589 (MethodBase_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_1::.ctor()
extern "C" void U3CU3Ec__DisplayClass13_1__ctor_m3019742285 (U3CU3Ec__DisplayClass13_1_t1955354417 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Func`2<System.Object,System.Object>::.ctor(System.Object,System.IntPtr)
#define Func_2__ctor_m3860723828(__this, p0, p1, method) (( void (*) (Func_2_t2447130374 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m3860723828_gshared)(__this, p0, p1, method)
// System.Void Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_2::.ctor()
extern "C" void U3CU3Ec__DisplayClass13_2__ctor_m1329372237 (U3CU3Ec__DisplayClass13_2_t381376305 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Action`2<System.Object,System.Object>::.ctor(System.Object,System.IntPtr)
#define Action_2__ctor_m22087660(__this, p0, p1, method) (( void (*) (Action_2_t2470008838 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_2__ctor_m22087660_gshared)(__this, p0, p1, method)
// System.Type Newtonsoft.Json.Utilities.ReflectionUtils::GetMemberUnderlyingType(System.Reflection.MemberInfo)
extern "C" Type_t * ReflectionUtils_GetMemberUnderlyingType_m841662456 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___member0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ReflectionMember::set_MemberType(System.Type)
extern "C" void ReflectionMember_set_MemberType_m3957217921 (ReflectionMember_t2655407482 * __this, Type_t * ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !0 System.Func`1<System.Object>::Invoke()
#define Func_1_Invoke_m2006563704(__this, method) (( RuntimeObject * (*) (Func_1_t2509852811 *, const RuntimeMethod*))Func_1_Invoke_m2006563704_gshared)(__this, method)
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetGetMethod(System.Reflection.PropertyInfo)
extern "C" MethodInfo_t * TypeExtensions_GetGetMethod_m1542366069 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Reflection.MethodBase::get_IsVirtual()
extern "C" bool MethodBase_get_IsVirtual_m2008546636 (MethodBase_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetSetMethod(System.Reflection.PropertyInfo)
extern "C" MethodInfo_t * TypeExtensions_GetSetMethod_m574838549 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetBaseDefinition(System.Reflection.MethodInfo)
extern "C" MethodInfo_t * TypeExtensions_GetBaseDefinition_m225967706 (RuntimeObject * __this /* static, unused */, MethodInfo_t * ___method0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.String::Concat(System.String,System.String)
extern "C" String_t* String_Concat_m3937257545 (RuntimeObject * __this /* static, unused */, String_t* p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Newtonsoft.Json.Utilities.ReflectionUtils::RemoveAssemblyDetails(System.String)
extern "C" String_t* ReflectionUtils_RemoveAssemblyDetails_m3671180266 (RuntimeObject * __this /* static, unused */, String_t* ___fullyQualifiedTypeName0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.ArgumentOutOfRangeException::.ctor()
extern "C" void ArgumentOutOfRangeException__ctor_m2047740448 (ArgumentOutOfRangeException_t777629997 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Text.StringBuilder::.ctor()
extern "C" void StringBuilder__ctor_m3121283359 (StringBuilder_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Text.StringBuilder System.Text.StringBuilder::Append(System.Char)
extern "C" StringBuilder_t * StringBuilder_Append_m2383614642 (StringBuilder_t * __this, Il2CppChar p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.ConstructorInfo Newtonsoft.Json.Utilities.ReflectionUtils::GetDefaultConstructor(System.Type,System.Boolean)
extern "C" ConstructorInfo_t5769829 * ReflectionUtils_GetDefaultConstructor_m3042638765 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, bool ___nonPublic1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<System.Reflection.ConstructorInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetConstructors(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* TypeExtensions_GetConstructors_m3290158206 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingFlags1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Func`2<System.Reflection.ConstructorInfo,System.Boolean>::.ctor(System.Object,System.IntPtr)
#define Func_2__ctor_m2207392731(__this, p0, p1, method) (( void (*) (Func_2_t1796590042 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m135484220_gshared)(__this, p0, p1, method)
// !!0 System.Linq.Enumerable::SingleOrDefault<System.Reflection.ConstructorInfo>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
#define Enumerable_SingleOrDefault_TisConstructorInfo_t5769829_m947313160(__this /* static, unused */, p0, p1, method) (( ConstructorInfo_t5769829 * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t1796590042 *, const RuntimeMethod*))Enumerable_SingleOrDefault_TisRuntimeObject_m2673734094_gshared)(__this /* static, unused */, p0, p1, method)
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsNullableType(System.Type)
extern "C" bool ReflectionUtils_IsNullableType_m2557784957 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Type System.Nullable::GetUnderlyingType(System.Type)
extern "C" Type_t * Nullable_GetUnderlyingType_m3905033790 (RuntimeObject * __this /* static, unused */, Type_t * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::ImplementsGenericDefinition(System.Type,System.Type,System.Type&)
extern "C" bool ReflectionUtils_ImplementsGenericDefinition_m2172968317 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___genericInterfaceDefinition1, Type_t ** ___implementingType2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsInterface(System.Type)
extern "C" bool TypeExtensions_IsInterface_m3543394130 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsGenericTypeDefinition(System.Type)
extern "C" bool TypeExtensions_IsGenericTypeDefinition_m2160044791 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<System.Type> Newtonsoft.Json.Utilities.TypeExtensions::GetInterfaces(System.Type)
extern "C" RuntimeObject* TypeExtensions_GetInterfaces_m3246501328 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::InheritsGenericDefinition(System.Type,System.Type,System.Type&)
extern "C" bool ReflectionUtils_InheritsGenericDefinition_m626434391 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___genericClassDefinition1, Type_t ** ___implementingType2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsClass(System.Type)
extern "C" bool TypeExtensions_IsClass_m3873378058 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::InheritsGenericDefinitionInternal(System.Type,System.Type,System.Type&)
extern "C" bool ReflectionUtils_InheritsGenericDefinitionInternal_m2113175446 (RuntimeObject * __this /* static, unused */, Type_t * ___currentType0, Type_t * ___genericClassDefinition1, Type_t ** ___implementingType2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Type Newtonsoft.Json.Utilities.TypeExtensions::BaseType(System.Type)
extern "C" Type_t * TypeExtensions_BaseType_m1084285535 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Type::get_IsArray()
extern "C" bool Type_get_IsArray_m2591212821 (Type_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Exception::.ctor(System.String)
extern "C" void Exception__ctor_m1152696503 (Exception_t * __this, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Type[] Newtonsoft.Json.Utilities.TypeExtensions::GetGenericArguments(System.Type)
extern "C" TypeU5BU5D_t3940880105* TypeExtensions_GetGenericArguments_m2598944752 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.ArgumentException::.ctor(System.String,System.String)
extern "C" void ArgumentException__ctor_m1216717135 (ArgumentException_t132251570 * __this, String_t* p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsIndexedProperty(System.Reflection.PropertyInfo)
extern "C" bool ReflectionUtils_IsIndexedProperty_m1455784124 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___property0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Reflection.FieldInfo::get_IsPublic()
extern "C" bool FieldInfo_get_IsPublic_m3378038140 (FieldInfo_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetGetMethod(System.Reflection.PropertyInfo,System.Boolean)
extern "C" MethodInfo_t * TypeExtensions_GetGetMethod_m2640593011 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, bool ___nonPublic1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Reflection.FieldInfo::get_IsInitOnly()
extern "C" bool FieldInfo_get_IsInitOnly_m930369112 (FieldInfo_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetSetMethod(System.Reflection.PropertyInfo,System.Boolean)
extern "C" MethodInfo_t * TypeExtensions_GetSetMethod_m1183273061 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, bool ___nonPublic1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.List`1<System.Reflection.MemberInfo>::.ctor()
#define List_1__ctor_m2845631487(__this, method) (( void (*) (List_1_t557109187 *, const RuntimeMethod*))List_1__ctor_m2321703786_gshared)(__this, method)
// System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo> Newtonsoft.Json.Utilities.ReflectionUtils::GetFields(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* ReflectionUtils_GetFields_m3475842270 (RuntimeObject * __this /* static, unused */, Type_t * ___targetType0, int32_t ___bindingAttr1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.List`1<System.Reflection.MemberInfo>::AddRange(System.Collections.Generic.IEnumerable`1<!0>)
#define List_1_AddRange_m2257680807(__this, p0, method) (( void (*) (List_1_t557109187 *, RuntimeObject*, const RuntimeMethod*))List_1_AddRange_m614412439_gshared)(__this, p0, method)
// System.Collections.Generic.IEnumerable`1<System.Reflection.PropertyInfo> Newtonsoft.Json.Utilities.ReflectionUtils::GetProperties(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* ReflectionUtils_GetProperties_m1937919674 (RuntimeObject * __this /* static, unused */, Type_t * ___targetType0, int32_t ___bindingAttr1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.Collections.Generic.List`1<System.Reflection.MemberInfo>::get_Count()
#define List_1_get_Count_m2508260589(__this, method) (( int32_t (*) (List_1_t557109187 *, const RuntimeMethod*))List_1_get_Count_m2934127733_gshared)(__this, method)
// System.Void System.Collections.Generic.List`1<System.Reflection.MemberInfo>::.ctor(System.Int32)
#define List_1__ctor_m4045609786(__this, p0, method) (( void (*) (List_1_t557109187 *, int32_t, const RuntimeMethod*))List_1__ctor_m3947764094_gshared)(__this, p0, method)
// System.Void System.Func`2<System.Reflection.MemberInfo,System.String>::.ctor(System.Object,System.IntPtr)
#define Func_2__ctor_m4252472063(__this, p0, p1, method) (( void (*) (Func_2_t3967597302 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m3860723828_gshared)(__this, p0, p1, method)
// System.Collections.Generic.IEnumerable`1<System.Linq.IGrouping`2<!!1,!!0>> System.Linq.Enumerable::GroupBy<System.Reflection.MemberInfo,System.String>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,!!1>)
#define Enumerable_GroupBy_TisMemberInfo_t_TisString_t_m1303684172(__this /* static, unused */, p0, p1, method) (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t3967597302 *, const RuntimeMethod*))Enumerable_GroupBy_TisRuntimeObject_TisRuntimeObject_m1565366059_gshared)(__this /* static, unused */, p0, p1, method)
// System.Int32 System.Linq.Enumerable::Count<System.Reflection.MemberInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_Count_TisMemberInfo_t_m2833200946(__this /* static, unused */, p0, method) (( int32_t (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_Count_TisRuntimeObject_m954665811_gshared)(__this /* static, unused */, p0, method)
// System.Collections.Generic.List`1<!!0> System.Linq.Enumerable::ToList<System.Reflection.MemberInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_ToList_TisMemberInfo_t_m3180374575(__this /* static, unused */, p0, method) (( List_1_t557109187 * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_ToList_TisRuntimeObject_m1484080463_gshared)(__this /* static, unused */, p0, method)
// !!0 System.Linq.Enumerable::First<System.Reflection.MemberInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_First_TisMemberInfo_t_m2952260960(__this /* static, unused */, p0, method) (( MemberInfo_t * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_First_TisRuntimeObject_m4173419911_gshared)(__this /* static, unused */, p0, method)
// System.Void System.Collections.Generic.List`1<System.Reflection.MemberInfo>::Add(!0)
#define List_1_Add_m304598357(__this, p0, method) (( void (*) (List_1_t557109187 *, MemberInfo_t *, const RuntimeMethod*))List_1_Add_m3338814081_gshared)(__this, p0, method)
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsOverridenGenericMember(System.Reflection.MemberInfo,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" bool ReflectionUtils_IsOverridenGenericMember_m2545602475 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___memberInfo0, int32_t ___bindingAttr1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsVirtual(System.Reflection.PropertyInfo)
extern "C" bool ReflectionUtils_IsVirtual_m3338583030 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.TypeInfo System.Reflection.IntrospectionExtensions::GetTypeInfo(System.Type)
extern "C" TypeInfo_t1690786683 * IntrospectionExtensions_GetTypeInfo_m2857548047 (RuntimeObject * __this /* static, unused */, Type_t * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<System.Attribute> System.Reflection.CustomAttributeExtensions::GetCustomAttributes(System.Reflection.MemberInfo,System.Boolean)
extern "C" RuntimeObject* CustomAttributeExtensions_GetCustomAttributes_m1839075053 (RuntimeObject * __this /* static, unused */, MemberInfo_t * p0, bool p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0[] System.Linq.Enumerable::ToArray<System.Attribute>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_ToArray_TisAttribute_t861562559_m1336572644(__this /* static, unused */, p0, method) (( AttributeU5BU5D_t1575011174* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_ToArray_TisRuntimeObject_m2312436077_gshared)(__this /* static, unused */, p0, method)
// System.Collections.Generic.IEnumerable`1<System.Attribute> System.Reflection.CustomAttributeExtensions::GetCustomAttributes(System.Reflection.Assembly)
extern "C" RuntimeObject* CustomAttributeExtensions_GetCustomAttributes_m1319214622 (RuntimeObject * __this /* static, unused */, Assembly_t * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<System.Attribute> System.Reflection.CustomAttributeExtensions::GetCustomAttributes(System.Reflection.Assembly,System.Type)
extern "C" RuntimeObject* CustomAttributeExtensions_GetCustomAttributes_m2987737937 (RuntimeObject * __this /* static, unused */, Assembly_t * p0, Type_t * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<System.Attribute> System.Reflection.CustomAttributeExtensions::GetCustomAttributes(System.Reflection.Module)
extern "C" RuntimeObject* CustomAttributeExtensions_GetCustomAttributes_m2825293004 (RuntimeObject * __this /* static, unused */, Module_t2987026101 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<System.Attribute> System.Reflection.CustomAttributeExtensions::GetCustomAttributes(System.Reflection.Module,System.Type)
extern "C" RuntimeObject* CustomAttributeExtensions_GetCustomAttributes_m1742953860 (RuntimeObject * __this /* static, unused */, Module_t2987026101 * p0, Type_t * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<System.Attribute> System.Reflection.CustomAttributeExtensions::GetCustomAttributes(System.Reflection.ParameterInfo,System.Boolean)
extern "C" RuntimeObject* CustomAttributeExtensions_GetCustomAttributes_m569238752 (RuntimeObject * __this /* static, unused */, ParameterInfo_t1861056598 * p0, bool p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<System.Attribute> System.Reflection.CustomAttributeExtensions::GetCustomAttributes(System.Reflection.ParameterInfo,System.Type,System.Boolean)
extern "C" RuntimeObject* CustomAttributeExtensions_GetCustomAttributes_m2430482735 (RuntimeObject * __this /* static, unused */, ParameterInfo_t1861056598 * p0, Type_t * p1, bool p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Func`2<System.Reflection.ParameterInfo,System.Type>::.ctor(System.Object,System.IntPtr)
#define Func_2__ctor_m249082317(__this, p0, p1, method) (( void (*) (Func_2_t3692615456 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m3860723828_gshared)(__this, p0, p1, method)
// System.Collections.Generic.IEnumerable`1<!!1> System.Linq.Enumerable::Select<System.Reflection.ParameterInfo,System.Type>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,!!1>)
#define Enumerable_Select_TisParameterInfo_t1861056598_TisType_t_m1700990983(__this /* static, unused */, p0, p1, method) (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t3692615456 *, const RuntimeMethod*))Enumerable_Select_TisRuntimeObject_TisRuntimeObject_m3166653319_gshared)(__this /* static, unused */, p0, p1, method)
// !!0[] System.Linq.Enumerable::ToArray<System.Type>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_ToArray_TisType_t_m4037995289(__this /* static, unused */, p0, method) (( TypeU5BU5D_t3940880105* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_ToArray_TisRuntimeObject_m2312436077_gshared)(__this /* static, unused */, p0, method)
// System.Reflection.PropertyInfo Newtonsoft.Json.Utilities.TypeExtensions::GetProperty(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags,System.Object,System.Type,System.Collections.Generic.IList`1<System.Type>,System.Object)
extern "C" PropertyInfo_t * TypeExtensions_GetProperty_m2099548567 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, int32_t ___bindingFlags2, RuntimeObject * ___placeholder13, Type_t * ___propertyType4, RuntimeObject* ___indexParameters5, RuntimeObject * ___placeholder26, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<System.Reflection.MemberInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetMember(System.Type,System.String,Newtonsoft.Json.Utilities.MemberTypes,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* TypeExtensions_GetMember_m1278713418 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, int32_t ___memberType2, int32_t ___bindingFlags3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0 System.Linq.Enumerable::SingleOrDefault<System.Reflection.MemberInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_SingleOrDefault_TisMemberInfo_t_m798163977(__this /* static, unused */, p0, method) (( MemberInfo_t * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_SingleOrDefault_TisRuntimeObject_m2079752316_gshared)(__this /* static, unused */, p0, method)
// System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetFields(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* TypeExtensions_GetFields_m1955241202 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingFlags1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.List`1<System.Reflection.MemberInfo>::.ctor(System.Collections.Generic.IEnumerable`1<!0>)
#define List_1__ctor_m832393913(__this, p0, method) (( void (*) (List_1_t557109187 *, RuntimeObject*, const RuntimeMethod*))List_1__ctor_m1581319360_gshared)(__this, p0, method)
// System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable::Cast<System.Reflection.FieldInfo>(System.Collections.IEnumerable)
#define Enumerable_Cast_TisFieldInfo_t_m1416808529(__this /* static, unused */, p0, method) (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_Cast_TisRuntimeObject_m4015728326_gshared)(__this /* static, unused */, p0, method)
// System.Collections.Generic.IEnumerable`1<System.Reflection.PropertyInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetProperties(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* TypeExtensions_GetProperties_m3775878448 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingFlags1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.List`1<System.Reflection.PropertyInfo>::.ctor(System.Collections.Generic.IEnumerable`1<!0>)
#define List_1__ctor_m2781142759(__this, p0, method) (( void (*) (List_1_t2159416693 *, RuntimeObject*, const RuntimeMethod*))List_1__ctor_m1581319360_gshared)(__this, p0, method)
// System.Void System.Collections.Generic.List`1<System.Reflection.PropertyInfo>::AddRange(System.Collections.Generic.IEnumerable`1<!0>)
#define List_1_AddRange_m4242658599(__this, p0, method) (( void (*) (List_1_t2159416693 *, RuntimeObject*, const RuntimeMethod*))List_1_AddRange_m614412439_gshared)(__this, p0, method)
// System.Void Newtonsoft.Json.Utilities.ReflectionUtils::GetChildPrivateProperties(System.Collections.Generic.IList`1<System.Reflection.PropertyInfo>,System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" void ReflectionUtils_GetChildPrivateProperties_m1647043387 (RuntimeObject * __this /* static, unused */, RuntimeObject* ___initialProperties0, Type_t * ___targetType1, int32_t ___bindingAttr2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !0 System.Collections.Generic.List`1<System.Reflection.PropertyInfo>::get_Item(System.Int32)
#define List_1_get_Item_m1771064164(__this, p0, method) (( PropertyInfo_t * (*) (List_1_t2159416693 *, int32_t, const RuntimeMethod*))List_1_get_Item_m1328026504_gshared)(__this, p0, method)
// System.Reflection.MemberInfo Newtonsoft.Json.Utilities.ReflectionUtils::GetMemberInfoFromType(System.Type,System.Reflection.MemberInfo)
extern "C" MemberInfo_t * ReflectionUtils_GetMemberInfoFromType_m1623736994 (RuntimeObject * __this /* static, unused */, Type_t * ___targetType0, MemberInfo_t * ___memberInfo1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.List`1<System.Reflection.PropertyInfo>::set_Item(System.Int32,!0)
#define List_1_set_Item_m1136100056(__this, p0, p1, method) (( void (*) (List_1_t2159416693 *, int32_t, PropertyInfo_t *, const RuntimeMethod*))List_1_set_Item_m550276520_gshared)(__this, p0, p1, method)
// System.Int32 System.Collections.Generic.List`1<System.Reflection.PropertyInfo>::get_Count()
#define List_1_get_Count_m4158400089(__this, method) (( int32_t (*) (List_1_t2159416693 *, const RuntimeMethod*))List_1_get_Count_m2934127733_gshared)(__this, method)
// System.Void Newtonsoft.Json.Utilities.ReflectionUtils/<>c__DisplayClass41_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass41_0__ctor_m3129161864 (U3CU3Ec__DisplayClass41_0_t549567115 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsPublic(System.Reflection.PropertyInfo)
extern "C" bool ReflectionUtils_IsPublic_m3896229770 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___property0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Func`2<System.Reflection.PropertyInfo,System.Boolean>::.ctor(System.Object,System.IntPtr)
#define Func_2__ctor_m3813751571(__this, p0, p1, method) (( void (*) (Func_2_t2377163032 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m135484220_gshared)(__this, p0, p1, method)
// System.Int32 Newtonsoft.Json.Utilities.CollectionUtils::IndexOf<System.Reflection.PropertyInfo>(System.Collections.Generic.IEnumerable`1<T>,System.Func`2<T,System.Boolean>)
#define CollectionUtils_IndexOf_TisPropertyInfo_t_m2841828123(__this /* static, unused */, ___collection0, ___predicate1, method) (( int32_t (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t2377163032 *, const RuntimeMethod*))CollectionUtils_IndexOf_TisRuntimeObject_m856514146_gshared)(__this /* static, unused */, ___collection0, ___predicate1, method)
// Newtonsoft.Json.Utilities.PrimitiveTypeCode Newtonsoft.Json.Utilities.ConvertUtils::GetTypeCode(System.Type)
extern "C" int32_t ConvertUtils_GetTypeCode_m66075454 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsNullable(System.Type)
extern "C" bool ReflectionUtils_IsNullable_m645225420 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Object System.Activator::CreateInstance(System.Type)
extern "C" RuntimeObject * Activator_CreateInstance_m3631483688 (RuntimeObject * __this /* static, unused */, Type_t * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.ReflectionUtils/<>c::.ctor()
extern "C" void U3CU3Ec__ctor_m999993876 (U3CU3Ec_t3587133118 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Linq.Enumerable::Any<System.Reflection.ParameterInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_Any_TisParameterInfo_t1861056598_m2308149110(__this /* static, unused */, p0, method) (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_Any_TisRuntimeObject_m3173759778_gshared)(__this /* static, unused */, p0, method)
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.ReflectionUtils::GetBaseDefinition(System.Reflection.PropertyInfo)
extern "C" MethodInfo_t * ReflectionUtils_GetBaseDefinition_m628546257 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 Newtonsoft.Json.Utilities.StringBuffer::get_Position()
extern "C" int32_t StringBuffer_get_Position_m2575134391 (StringBuffer_t2235727887 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.StringBuffer::set_Position(System.Int32)
extern "C" void StringBuffer_set_Position_m3776098892 (StringBuffer_t2235727887 * __this, int32_t ___value0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.StringBuffer::get_IsEmpty()
extern "C" bool StringBuffer_get_IsEmpty_m1286579341 (StringBuffer_t2235727887 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.StringBuffer::.ctor(System.Char[])
extern "C" void StringBuffer__ctor_m108922253 (StringBuffer_t2235727887 * __this, CharU5BU5D_t3528271667* ___buffer0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.StringBuffer::.ctor(Newtonsoft.Json.IArrayPool`1<System.Char>,System.Int32)
extern "C" void StringBuffer__ctor_m83474316 (StringBuffer_t2235727887 * __this, RuntimeObject* ___bufferPool0, int32_t ___initalSize1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.StringBuffer::EnsureSize(Newtonsoft.Json.IArrayPool`1<System.Char>,System.Int32)
extern "C" void StringBuffer_EnsureSize_m377227120 (StringBuffer_t2235727887 * __this, RuntimeObject* ___bufferPool0, int32_t ___appendLength1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.StringBuffer::Append(Newtonsoft.Json.IArrayPool`1<System.Char>,System.Char)
extern "C" void StringBuffer_Append_m1645108833 (StringBuffer_t2235727887 * __this, RuntimeObject* ___bufferPool0, Il2CppChar ___value1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Array::Copy(System.Array,System.Int32,System.Array,System.Int32,System.Int32)
extern "C" void Array_Copy_m344457298 (RuntimeObject * __this /* static, unused */, RuntimeArray * p0, int32_t p1, RuntimeArray * p2, int32_t p3, int32_t p4, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.StringBuffer::Append(Newtonsoft.Json.IArrayPool`1<System.Char>,System.Char[],System.Int32,System.Int32)
extern "C" void StringBuffer_Append_m109955405 (StringBuffer_t2235727887 * __this, RuntimeObject* ___bufferPool0, CharU5BU5D_t3528271667* ___buffer1, int32_t ___startIndex2, int32_t ___count3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.StringBuffer::Clear(Newtonsoft.Json.IArrayPool`1<System.Char>)
extern "C" void StringBuffer_Clear_m2783062614 (StringBuffer_t2235727887 * __this, RuntimeObject* ___bufferPool0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Newtonsoft.Json.Utilities.StringBuffer::ToString(System.Int32,System.Int32)
extern "C" String_t* StringBuffer_ToString_m3112979436 (StringBuffer_t2235727887 * __this, int32_t ___start0, int32_t ___length1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Newtonsoft.Json.Utilities.StringBuffer::ToString()
extern "C" String_t* StringBuffer_ToString_m2736734392 (StringBuffer_t2235727887 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.String::CreateString(System.Char[],System.Int32,System.Int32)
extern "C" String_t* String_CreateString_m860434552 (String_t* __this, CharU5BU5D_t3528271667* ___val0, int32_t ___startIndex1, int32_t ___length2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Char[] Newtonsoft.Json.Utilities.StringBuffer::get_InternalBuffer()
extern "C" CharU5BU5D_t3528271667* StringBuffer_get_InternalBuffer_m2608640496 (StringBuffer_t2235727887 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Char Newtonsoft.Json.Utilities.StringReference::get_Item(System.Int32)
extern "C" Il2CppChar StringReference_get_Item_m2821876239 (StringReference_t2912309144 * __this, int32_t ___i0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Char[] Newtonsoft.Json.Utilities.StringReference::get_Chars()
extern "C" CharU5BU5D_t3528271667* StringReference_get_Chars_m1428785588 (StringReference_t2912309144 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 Newtonsoft.Json.Utilities.StringReference::get_StartIndex()
extern "C" int32_t StringReference_get_StartIndex_m577516227 (StringReference_t2912309144 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 Newtonsoft.Json.Utilities.StringReference::get_Length()
extern "C" int32_t StringReference_get_Length_m1881544084 (StringReference_t2912309144 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.StringReference::.ctor(System.Char[],System.Int32,System.Int32)
extern "C" void StringReference__ctor_m345645319 (StringReference_t2912309144 * __this, CharU5BU5D_t3528271667* ___chars0, int32_t ___startIndex1, int32_t ___length2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Newtonsoft.Json.Utilities.StringReference::ToString()
extern "C" String_t* StringReference_ToString_m3051914173 (StringReference_t2912309144 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.Array::IndexOf<System.Char>(!!0[],!!0,System.Int32,System.Int32)
#define Array_IndexOf_TisChar_t3634460470_m1523447194(__this /* static, unused */, p0, p1, p2, p3, method) (( int32_t (*) (RuntimeObject * /* static, unused */, CharU5BU5D_t3528271667*, Il2CppChar, int32_t, int32_t, const RuntimeMethod*))Array_IndexOf_TisChar_t3634460470_m1523447194_gshared)(__this /* static, unused */, p0, p1, p2, p3, method)
// System.String Newtonsoft.Json.Utilities.StringUtils::FormatWith(System.String,System.IFormatProvider,System.Object[])
extern "C" String_t* StringUtils_FormatWith_m1786611224 (RuntimeObject * __this /* static, unused */, String_t* ___format0, RuntimeObject* ___provider1, ObjectU5BU5D_t2843939325* ___args2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.String::Format(System.IFormatProvider,System.String,System.Object[])
extern "C" String_t* String_Format_m1881875187 (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, String_t* p1, ObjectU5BU5D_t2843939325* p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Text.StringBuilder::.ctor(System.Int32)
extern "C" void StringBuilder__ctor_m2367297767 (StringBuilder_t * __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.IO.StringWriter::.ctor(System.Text.StringBuilder,System.IFormatProvider)
extern "C" void StringWriter__ctor_m3987072682 (StringWriter_t802263757 * __this, StringBuilder_t * p0, RuntimeObject* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Nullable`1<System.Int32>::.ctor(!0)
#define Nullable_1__ctor_m2962682148(__this, p0, method) (( void (*) (Nullable_1_t378540539 *, int32_t, const RuntimeMethod*))Nullable_1__ctor_m2962682148_gshared)(__this, p0, method)
// System.Char Newtonsoft.Json.Utilities.MathUtils::IntToHex(System.Int32)
extern "C" Il2CppChar MathUtils_IntToHex_m1986186787 (RuntimeObject * __this /* static, unused */, int32_t ___n0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Type::get_IsInterface()
extern "C" bool Type_get_IsInterface_m3284996719 (Type_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Type::get_IsClass()
extern "C" bool Type_get_IsClass_m589177581 (Type_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Type::get_IsSealed()
extern "C" bool Type_get_IsSealed_m3543837727 (Type_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass19_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass19_0__ctor_m1547535707 (U3CU3Ec__DisplayClass19_0_t1131461246 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable::Where<System.Reflection.PropertyInfo>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
#define Enumerable_Where_TisPropertyInfo_t_m3804523869(__this /* static, unused */, p0, p1, method) (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t2377163032 *, const RuntimeMethod*))Enumerable_Where_TisRuntimeObject_m3429873137_gshared)(__this /* static, unused */, p0, p1, method)
// !!0 System.Linq.Enumerable::SingleOrDefault<System.Reflection.PropertyInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_SingleOrDefault_TisPropertyInfo_t_m443362051(__this /* static, unused */, p0, method) (( PropertyInfo_t * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_SingleOrDefault_TisRuntimeObject_m2079752316_gshared)(__this /* static, unused */, p0, method)
// System.Void System.Nullable`1<Newtonsoft.Json.Utilities.MemberTypes>::.ctor(!0)
#define Nullable_1__ctor_m3380486094(__this, p0, method) (( void (*) (Nullable_1_t3738281181 *, int32_t, const RuntimeMethod*))Nullable_1__ctor_m3380486094_gshared)(__this, p0, method)
// System.Reflection.MemberInfo[] Newtonsoft.Json.Utilities.TypeExtensions::GetMemberInternal(System.Type,System.String,System.Nullable`1<Newtonsoft.Json.Utilities.MemberTypes>,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" MemberInfoU5BU5D_t1302094432* TypeExtensions_GetMemberInternal_m3246538528 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___member1, Nullable_1_t3738281181 ___memberType2, int32_t ___bindingFlags3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.MethodInfo System.Reflection.RuntimeReflectionExtensions::GetRuntimeBaseDefinition(System.Reflection.MethodInfo)
extern "C" MethodInfo_t * RuntimeReflectionExtensions_GetRuntimeBaseDefinition_m3606280828 (RuntimeObject * __this /* static, unused */, MethodInfo_t * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetMethod(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags,System.Object,System.Collections.Generic.IList`1<System.Type>,System.Object)
extern "C" MethodInfo_t * TypeExtensions_GetMethod_m4219855850 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, int32_t ___bindingFlags2, RuntimeObject * ___placeHolder13, RuntimeObject* ___parameterTypes4, RuntimeObject * ___placeHolder25, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass27_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass27_0__ctor_m191471575 (U3CU3Ec__DisplayClass27_0_t1152408749 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable::Where<System.Reflection.MethodInfo>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
#define Enumerable_Where_TisMethodInfo_t_m1737046122(__this /* static, unused */, p0, p1, method) (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t3487522507 *, const RuntimeMethod*))Enumerable_Where_TisRuntimeObject_m3429873137_gshared)(__this /* static, unused */, p0, p1, method)
// !!0 System.Linq.Enumerable::SingleOrDefault<System.Reflection.MethodInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_SingleOrDefault_TisMethodInfo_t_m1546770912(__this /* static, unused */, p0, method) (( MethodInfo_t * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_SingleOrDefault_TisRuntimeObject_m2079752316_gshared)(__this /* static, unused */, p0, method)
// System.Collections.Generic.IEnumerable`1<System.Reflection.ConstructorInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetConstructors(System.Type,Newtonsoft.Json.Utilities.BindingFlags,System.Collections.Generic.IList`1<System.Type>)
extern "C" RuntimeObject* TypeExtensions_GetConstructors_m1413194908 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingFlags1, RuntimeObject* ___parameterTypes2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass30_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass30_0__ctor_m117216210 (U3CU3Ec__DisplayClass30_0_t395628872 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable::Where<System.Reflection.ConstructorInfo>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
#define Enumerable_Where_TisConstructorInfo_t5769829_m3502358349(__this /* static, unused */, p0, p1, method) (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t1796590042 *, const RuntimeMethod*))Enumerable_Where_TisRuntimeObject_m3429873137_gshared)(__this /* static, unused */, p0, p1, method)
// System.Reflection.ConstructorInfo Newtonsoft.Json.Utilities.TypeExtensions::GetConstructor(System.Type,Newtonsoft.Json.Utilities.BindingFlags,System.Object,System.Collections.Generic.IList`1<System.Type>,System.Object)
extern "C" ConstructorInfo_t5769829 * TypeExtensions_GetConstructor_m3445485358 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingFlags1, RuntimeObject * ___placeholder12, RuntimeObject* ___parameterTypes3, RuntimeObject * ___placeholder24, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0 System.Linq.Enumerable::SingleOrDefault<System.Reflection.ConstructorInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_SingleOrDefault_TisConstructorInfo_t5769829_m1246530054(__this /* static, unused */, p0, method) (( ConstructorInfo_t5769829 * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_SingleOrDefault_TisRuntimeObject_m2079752316_gshared)(__this /* static, unused */, p0, method)
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass35_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass35_0__ctor_m3919978295 (U3CU3Ec__DisplayClass35_0_t3498955080 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IList`1<System.Reflection.MemberInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetMembersRecursive(System.Reflection.TypeInfo)
extern "C" RuntimeObject* TypeExtensions_GetMembersRecursive_m58266544 (RuntimeObject * __this /* static, unused */, TypeInfo_t1690786683 * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Func`2<System.Reflection.MemberInfo,System.Boolean>::.ctor(System.Object,System.IntPtr)
#define Func_2__ctor_m2384193652(__this, p0, p1, method) (( void (*) (Func_2_t2217434578 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m135484220_gshared)(__this, p0, p1, method)
// System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable::Where<System.Reflection.MemberInfo>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
#define Enumerable_Where_TisMemberInfo_t_m3084826832(__this /* static, unused */, p0, p1, method) (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t2217434578 *, const RuntimeMethod*))Enumerable_Where_TisRuntimeObject_m3429873137_gshared)(__this /* static, unused */, p0, p1, method)
// !!0[] System.Linq.Enumerable::ToArray<System.Reflection.MemberInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_ToArray_TisMemberInfo_t_m3769393944(__this /* static, unused */, p0, method) (( MemberInfoU5BU5D_t1302094432* (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_ToArray_TisRuntimeObject_m2312436077_gshared)(__this /* static, unused */, p0, method)
// System.Reflection.MemberInfo Newtonsoft.Json.Utilities.TypeExtensions::GetField(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" MemberInfo_t * TypeExtensions_GetField_m1836811458 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___member1, int32_t ___bindingFlags2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass38_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass38_0__ctor_m902981182 (U3CU3Ec__DisplayClass38_0_t1924976968 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Enum::HasFlag(System.Enum)
extern "C" bool Enum_HasFlag_m2701493155 (RuntimeObject * __this, Enum_t4135868527 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IList`1<System.Reflection.PropertyInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetPropertiesRecursive(System.Reflection.TypeInfo)
extern "C" RuntimeObject* TypeExtensions_GetPropertiesRecursive_m150458260 (RuntimeObject * __this /* static, unused */, TypeInfo_t1690786683 * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.List`1<!!0> System.Linq.Enumerable::ToList<System.Reflection.PropertyInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_ToList_TisPropertyInfo_t_m3139056877(__this /* static, unused */, p0, method) (( List_1_t2159416693 * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_ToList_TisRuntimeObject_m1484080463_gshared)(__this /* static, unused */, p0, method)
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass39_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass39_0__ctor_m3833518809 (U3CU3Ec__DisplayClass39_0_t4263629128 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Linq.Enumerable::Any<System.Reflection.MemberInfo>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
#define Enumerable_Any_TisMemberInfo_t_m2467286160(__this /* static, unused */, p0, p1, method) (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t2217434578 *, const RuntimeMethod*))Enumerable_Any_TisRuntimeObject_m1496744490_gshared)(__this /* static, unused */, p0, p1, method)
// System.Void System.Collections.Generic.List`1<System.Reflection.PropertyInfo>::.ctor()
#define List_1__ctor_m1816924367(__this, method) (( void (*) (List_1_t2159416693 *, const RuntimeMethod*))List_1__ctor_m2321703786_gshared)(__this, method)
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass40_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass40_0__ctor_m2465175745 (U3CU3Ec__DisplayClass40_0_t798913399 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Linq.Enumerable::Any<System.Reflection.PropertyInfo>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
#define Enumerable_Any_TisPropertyInfo_t_m1608260854(__this /* static, unused */, p0, p1, method) (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t2377163032 *, const RuntimeMethod*))Enumerable_Any_TisRuntimeObject_m1496744490_gshared)(__this /* static, unused */, p0, p1, method)
// System.Void System.Collections.Generic.List`1<System.Reflection.FieldInfo>::.ctor()
#define List_1__ctor_m1135576155(__this, method) (( void (*) (List_1_t1358810031 *, const RuntimeMethod*))List_1__ctor_m2321703786_gshared)(__this, method)
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass41_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass41_0__ctor_m3070114544 (U3CU3Ec__DisplayClass41_0_t3137565559 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Linq.Enumerable::Any<System.Reflection.FieldInfo>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
#define Enumerable_Any_TisFieldInfo_t_m3767954209(__this /* static, unused */, p0, p1, method) (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject*, Func_2_t1761491126 *, const RuntimeMethod*))Enumerable_Any_TisRuntimeObject_m1496744490_gshared)(__this /* static, unused */, p0, p1, method)
// System.Reflection.PropertyInfo Newtonsoft.Json.Utilities.TypeExtensions::GetProperty(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" PropertyInfo_t * TypeExtensions_GetProperty_m3913883510 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, int32_t ___bindingFlags2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass46_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass46_0__ctor_m3136907396 (U3CU3Ec__DisplayClass46_0_t1945924471 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.IList`1<System.Reflection.FieldInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetFieldsRecursive(System.Reflection.TypeInfo)
extern "C" RuntimeObject* TypeExtensions_GetFieldsRecursive_m1294857259 (RuntimeObject * __this /* static, unused */, TypeInfo_t1690786683 * ___type0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.Generic.List`1<!!0> System.Linq.Enumerable::ToList<System.Reflection.FieldInfo>(System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_ToList_TisFieldInfo_t_m1621873405(__this /* static, unused */, p0, method) (( List_1_t1358810031 * (*) (RuntimeObject * /* static, unused */, RuntimeObject*, const RuntimeMethod*))Enumerable_ToList_TisRuntimeObject_m1484080463_gshared)(__this /* static, unused */, p0, method)
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::TestAccessibility(System.Reflection.MethodBase,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" bool TypeExtensions_TestAccessibility_m3276524655 (RuntimeObject * __this /* static, unused */, MethodBase_t * ___member0, int32_t ___bindingFlags1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::TestAccessibility(System.Reflection.FieldInfo,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" bool TypeExtensions_TestAccessibility_m1649658994 (RuntimeObject * __this /* static, unused */, FieldInfo_t * ___member0, int32_t ___bindingFlags1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::TestAccessibility(System.Reflection.PropertyInfo,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" bool TypeExtensions_TestAccessibility_m3826617455 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___member0, int32_t ___bindingFlags1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Reflection.FieldInfo::get_IsStatic()
extern "C" bool FieldInfo_get_IsStatic_m3482711189 (FieldInfo_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Type::get_IsAbstract()
extern "C" bool Type_get_IsAbstract_m1120089130 (Type_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Type::get_IsValueType()
extern "C" bool Type_get_IsValueType_m3108065642 (Type_t * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.String::Equals(System.String,System.String,System.StringComparison)
extern "C" bool String_Equals_m2359609904 (RuntimeObject * __this /* static, unused */, String_t* p0, String_t* p1, int32_t p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::ImplementInterface(System.Type,System.Type)
extern "C" bool TypeExtensions_ImplementInterface_m4199275556 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___interfaceType1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c::.ctor()
extern "C" void U3CU3Ec__ctor_m160029176 (U3CU3Ec_t3984375077 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.String::op_Inequality(System.String,System.String)
extern "C" bool String_op_Inequality_m215368492 (RuntimeObject * __this /* static, unused */, String_t* p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.Linq.Enumerable::SequenceEqual<System.Type>(System.Collections.Generic.IEnumerable`1<!!0>,System.Collections.Generic.IEnumerable`1<!!0>)
#define Enumerable_SequenceEqual_TisType_t_m3724055240(__this /* static, unused */, p0, p1, method) (( bool (*) (RuntimeObject * /* static, unused */, RuntimeObject*, RuntimeObject*, const RuntimeMethod*))Enumerable_SequenceEqual_TisRuntimeObject_m3499175202_gshared)(__this /* static, unused */, p0, p1, method)
// System.Boolean System.Nullable`1<Newtonsoft.Json.Utilities.MemberTypes>::get_HasValue()
#define Nullable_1_get_HasValue_m950793993(__this, method) (( bool (*) (Nullable_1_t3738281181 *, const RuntimeMethod*))Nullable_1_get_HasValue_m950793993_gshared)(__this, method)
// !0 System.Nullable`1<Newtonsoft.Json.Utilities.MemberTypes>::GetValueOrDefault()
#define Nullable_1_GetValueOrDefault_m1125123534(__this, method) (( int32_t (*) (Nullable_1_t3738281181 *, const RuntimeMethod*))Nullable_1_GetValueOrDefault_m1125123534_gshared)(__this, method)
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::TestAccessibility(System.Reflection.MemberInfo,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" bool TypeExtensions_TestAccessibility_m1650814028 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___member0, int32_t ___bindingFlags1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.IEnumerable`1<System.String> Newtonsoft.Json.Utilities.DynamicUtils::GetDynamicMemberNames(System.Dynamic.IDynamicMetaObjectProvider)
extern "C" RuntimeObject* DynamicUtils_GetDynamicMemberNames_m2947149931 (RuntimeObject * __this /* static, unused */, RuntimeObject* ___dynamicProvider0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DynamicUtils_GetDynamicMemberNames_m2947149931_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject* L_0 = ___dynamicProvider0;
RuntimeObject* L_1 = ___dynamicProvider0;
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
ConstantExpression_t3613654278 * L_2 = Expression_Constant_m3269986673(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
NullCheck(L_0);
DynamicMetaObject_t4233896612 * L_3 = InterfaceFuncInvoker1< DynamicMetaObject_t4233896612 *, Expression_t1588164026 * >::Invoke(0 /* System.Dynamic.DynamicMetaObject System.Dynamic.IDynamicMetaObjectProvider::GetMetaObject(System.Linq.Expressions.Expression) */, IDynamicMetaObjectProvider_t2114558714_il2cpp_TypeInfo_var, L_0, L_2);
NullCheck(L_3);
RuntimeObject* L_4 = VirtFuncInvoker0< RuntimeObject* >::Invoke(4 /* System.Collections.Generic.IEnumerable`1<System.String> System.Dynamic.DynamicMetaObject::GetDynamicMemberNames() */, L_3);
return L_4;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.CallSiteBinder Newtonsoft.Json.Utilities.DynamicUtils/BinderWrapper::GetMember(System.String,System.Type)
extern "C" CallSiteBinder_t1870160633 * BinderWrapper_GetMember_m821812292 (RuntimeObject * __this /* static, unused */, String_t* ___name0, Type_t * ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BinderWrapper_GetMember_m821812292_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
String_t* L_0 = ___name0;
Type_t * L_1 = ___context1;
CSharpArgumentInfoU5BU5D_t4281174474* L_2 = ((CSharpArgumentInfoU5BU5D_t4281174474*)SZArrayNew(CSharpArgumentInfoU5BU5D_t4281174474_il2cpp_TypeInfo_var, (uint32_t)1));
IL2CPP_RUNTIME_CLASS_INIT(CSharpArgumentInfo_t1152531755_il2cpp_TypeInfo_var);
CSharpArgumentInfo_t1152531755 * L_3 = CSharpArgumentInfo_Create_m661819073(NULL /*static, unused*/, 0, (String_t*)NULL, /*hidden argument*/NULL);
NullCheck(L_2);
ArrayElementTypeCheck (L_2, L_3);
(L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (CSharpArgumentInfo_t1152531755 *)L_3);
CallSiteBinder_t1870160633 * L_4 = Binder_GetMember_m2789734420(NULL /*static, unused*/, 0, L_0, L_1, (RuntimeObject*)(RuntimeObject*)L_2, /*hidden argument*/NULL);
return L_4;
}
}
// System.Runtime.CompilerServices.CallSiteBinder Newtonsoft.Json.Utilities.DynamicUtils/BinderWrapper::SetMember(System.String,System.Type)
extern "C" CallSiteBinder_t1870160633 * BinderWrapper_SetMember_m63885457 (RuntimeObject * __this /* static, unused */, String_t* ___name0, Type_t * ___context1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BinderWrapper_SetMember_m63885457_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
String_t* L_0 = ___name0;
Type_t * L_1 = ___context1;
CSharpArgumentInfoU5BU5D_t4281174474* L_2 = ((CSharpArgumentInfoU5BU5D_t4281174474*)SZArrayNew(CSharpArgumentInfoU5BU5D_t4281174474_il2cpp_TypeInfo_var, (uint32_t)2));
IL2CPP_RUNTIME_CLASS_INIT(CSharpArgumentInfo_t1152531755_il2cpp_TypeInfo_var);
CSharpArgumentInfo_t1152531755 * L_3 = CSharpArgumentInfo_Create_m661819073(NULL /*static, unused*/, 1, (String_t*)NULL, /*hidden argument*/NULL);
NullCheck(L_2);
ArrayElementTypeCheck (L_2, L_3);
(L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (CSharpArgumentInfo_t1152531755 *)L_3);
CSharpArgumentInfoU5BU5D_t4281174474* L_4 = L_2;
CSharpArgumentInfo_t1152531755 * L_5 = CSharpArgumentInfo_Create_m661819073(NULL /*static, unused*/, 2, (String_t*)NULL, /*hidden argument*/NULL);
NullCheck(L_4);
ArrayElementTypeCheck (L_4, L_5);
(L_4)->SetAt(static_cast<il2cpp_array_size_t>(1), (CSharpArgumentInfo_t1152531755 *)L_5);
CallSiteBinder_t1870160633 * L_6 = Binder_SetMember_m3918167857(NULL /*static, unused*/, 0, L_0, L_1, (RuntimeObject*)(RuntimeObject*)L_4, /*hidden argument*/NULL);
return L_6;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.BidirectionalDictionary`2<System.String,System.String> Newtonsoft.Json.Utilities.EnumUtils::InitializeEnumType(System.Type)
extern "C" BidirectionalDictionary_2_t787053467 * EnumUtils_InitializeEnumType_m3064468690 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (EnumUtils_InitializeEnumType_m3064468690_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BidirectionalDictionary_2_t787053467 * V_0 = NULL;
RuntimeObject* V_1 = NULL;
FieldInfo_t * V_2 = NULL;
String_t* V_3 = NULL;
String_t* V_4 = NULL;
String_t* V_5 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
Func_2_t2419460300 * G_B4_0 = NULL;
RuntimeObject* G_B4_1 = NULL;
Func_2_t2419460300 * G_B3_0 = NULL;
RuntimeObject* G_B3_1 = NULL;
String_t* G_B6_0 = NULL;
String_t* G_B5_0 = NULL;
{
IL2CPP_RUNTIME_CLASS_INIT(StringComparer_t3301955079_il2cpp_TypeInfo_var);
StringComparer_t3301955079 * L_0 = StringComparer_get_OrdinalIgnoreCase_m2680809380(NULL /*static, unused*/, /*hidden argument*/NULL);
StringComparer_t3301955079 * L_1 = StringComparer_get_OrdinalIgnoreCase_m2680809380(NULL /*static, unused*/, /*hidden argument*/NULL);
BidirectionalDictionary_2_t787053467 * L_2 = (BidirectionalDictionary_2_t787053467 *)il2cpp_codegen_object_new(BidirectionalDictionary_2_t787053467_il2cpp_TypeInfo_var);
BidirectionalDictionary_2__ctor_m58546930(L_2, L_0, L_1, /*hidden argument*/BidirectionalDictionary_2__ctor_m58546930_RuntimeMethod_var);
V_0 = L_2;
Type_t * L_3 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_4 = TypeExtensions_GetFields_m2718563494(NULL /*static, unused*/, L_3, /*hidden argument*/NULL);
NullCheck(L_4);
RuntimeObject* L_5 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo>::GetEnumerator() */, IEnumerable_1_t3161555474_il2cpp_TypeInfo_var, L_4);
V_1 = L_5;
}
IL_001c:
try
{ // begin try (depth: 1)
{
goto IL_00ac;
}
IL_0021:
{
RuntimeObject* L_6 = V_1;
NullCheck(L_6);
FieldInfo_t * L_7 = InterfaceFuncInvoker0< FieldInfo_t * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Reflection.FieldInfo>::get_Current() */, IEnumerator_1_t319305757_il2cpp_TypeInfo_var, L_6);
V_2 = L_7;
FieldInfo_t * L_8 = V_2;
NullCheck(L_8);
String_t* L_9 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_8);
V_3 = L_9;
FieldInfo_t * L_10 = V_2;
RuntimeTypeHandle_t3027515415 L_11 = { reinterpret_cast<intptr_t> (EnumMemberAttribute_t1084128815_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_12 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_11, /*hidden argument*/NULL);
RuntimeObject* L_13 = CustomAttributeExtensions_GetCustomAttributes_m3308002549(NULL /*static, unused*/, L_10, L_12, (bool)1, /*hidden argument*/NULL);
RuntimeObject* L_14 = Enumerable_Cast_TisEnumMemberAttribute_t1084128815_m843212694(NULL /*static, unused*/, L_13, /*hidden argument*/Enumerable_Cast_TisEnumMemberAttribute_t1084128815_m843212694_RuntimeMethod_var);
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var);
Func_2_t2419460300 * L_15 = ((U3CU3Ec_t2360567884_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var))->get_U3CU3E9__1_0_1();
Func_2_t2419460300 * L_16 = L_15;
G_B3_0 = L_16;
G_B3_1 = L_14;
if (L_16)
{
G_B4_0 = L_16;
G_B4_1 = L_14;
goto IL_0064;
}
}
IL_004d:
{
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var);
U3CU3Ec_t2360567884 * L_17 = ((U3CU3Ec_t2360567884_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var))->get_U3CU3E9_0();
intptr_t L_18 = (intptr_t)U3CU3Ec_U3CInitializeEnumTypeU3Eb__1_0_m76424380_RuntimeMethod_var;
Func_2_t2419460300 * L_19 = (Func_2_t2419460300 *)il2cpp_codegen_object_new(Func_2_t2419460300_il2cpp_TypeInfo_var);
Func_2__ctor_m1969356281(L_19, L_17, L_18, /*hidden argument*/Func_2__ctor_m1969356281_RuntimeMethod_var);
Func_2_t2419460300 * L_20 = L_19;
((U3CU3Ec_t2360567884_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var))->set_U3CU3E9__1_0_1(L_20);
G_B4_0 = L_20;
G_B4_1 = G_B3_1;
}
IL_0064:
{
RuntimeObject* L_21 = Enumerable_Select_TisEnumMemberAttribute_t1084128815_TisString_t_m3180131537(NULL /*static, unused*/, G_B4_1, G_B4_0, /*hidden argument*/Enumerable_Select_TisEnumMemberAttribute_t1084128815_TisString_t_m3180131537_RuntimeMethod_var);
String_t* L_22 = Enumerable_SingleOrDefault_TisString_t_m4035470101(NULL /*static, unused*/, L_21, /*hidden argument*/Enumerable_SingleOrDefault_TisString_t_m4035470101_RuntimeMethod_var);
String_t* L_23 = L_22;
G_B5_0 = L_23;
if (L_23)
{
G_B6_0 = L_23;
goto IL_0078;
}
}
IL_0071:
{
FieldInfo_t * L_24 = V_2;
NullCheck(L_24);
String_t* L_25 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_24);
G_B6_0 = L_25;
}
IL_0078:
{
V_4 = G_B6_0;
BidirectionalDictionary_2_t787053467 * L_26 = V_0;
String_t* L_27 = V_4;
NullCheck(L_26);
bool L_28 = BidirectionalDictionary_2_TryGetBySecond_m954730245(L_26, L_27, (String_t**)(&V_5), /*hidden argument*/BidirectionalDictionary_2_TryGetBySecond_m954730245_RuntimeMethod_var);
if (!L_28)
{
goto IL_00a3;
}
}
IL_0086:
{
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_29 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
String_t* L_30 = V_4;
Type_t * L_31 = ___type0;
NullCheck(L_31);
String_t* L_32 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Type::get_Name() */, L_31);
String_t* L_33 = StringUtils_FormatWith_m353537829(NULL /*static, unused*/, _stringLiteral2810825232, L_29, L_30, L_32, /*hidden argument*/NULL);
InvalidOperationException_t56020091 * L_34 = (InvalidOperationException_t56020091 *)il2cpp_codegen_object_new(InvalidOperationException_t56020091_il2cpp_TypeInfo_var);
InvalidOperationException__ctor_m237278729(L_34, L_33, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_34, NULL, EnumUtils_InitializeEnumType_m3064468690_RuntimeMethod_var);
}
IL_00a3:
{
BidirectionalDictionary_2_t787053467 * L_35 = V_0;
String_t* L_36 = V_3;
String_t* L_37 = V_4;
NullCheck(L_35);
BidirectionalDictionary_2_Set_m3266748649(L_35, L_36, L_37, /*hidden argument*/BidirectionalDictionary_2_Set_m3266748649_RuntimeMethod_var);
}
IL_00ac:
{
RuntimeObject* L_38 = V_1;
NullCheck(L_38);
bool L_39 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_38);
if (L_39)
{
goto IL_0021;
}
}
IL_00b7:
{
IL2CPP_LEAVE(0xC3, FINALLY_00b9);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00b9;
}
FINALLY_00b9:
{ // begin finally (depth: 1)
{
RuntimeObject* L_40 = V_1;
if (!L_40)
{
goto IL_00c2;
}
}
IL_00bc:
{
RuntimeObject* L_41 = V_1;
NullCheck(L_41);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_41);
}
IL_00c2:
{
IL2CPP_END_FINALLY(185)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(185)
{
IL2CPP_JUMP_TBL(0xC3, IL_00c3)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00c3:
{
BidirectionalDictionary_2_t787053467 * L_42 = V_0;
return L_42;
}
}
// System.Collections.Generic.IList`1<System.Object> Newtonsoft.Json.Utilities.EnumUtils::GetValues(System.Type)
extern "C" RuntimeObject* EnumUtils_GetValues_m1997494740 (RuntimeObject * __this /* static, unused */, Type_t * ___enumType0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (EnumUtils_GetValues_m1997494740_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
List_1_t257213610 * V_0 = NULL;
RuntimeObject* V_1 = NULL;
RuntimeObject * V_2 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
Func_2_t1761491126 * G_B4_0 = NULL;
RuntimeObject* G_B4_1 = NULL;
Func_2_t1761491126 * G_B3_0 = NULL;
RuntimeObject* G_B3_1 = NULL;
{
Type_t * L_0 = ___enumType0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_1 = TypeExtensions_IsEnum_m286495740(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
if (L_1)
{
goto IL_0023;
}
}
{
Type_t * L_2 = ___enumType0;
NullCheck(L_2);
String_t* L_3 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Type::get_Name() */, L_2);
String_t* L_4 = String_Concat_m3755062657(NULL /*static, unused*/, _stringLiteral2097671996, L_3, _stringLiteral2532280278, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_5 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_5, L_4, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, NULL, EnumUtils_GetValues_m1997494740_RuntimeMethod_var);
}
IL_0023:
{
List_1_t257213610 * L_6 = (List_1_t257213610 *)il2cpp_codegen_object_new(List_1_t257213610_il2cpp_TypeInfo_var);
List_1__ctor_m2321703786(L_6, /*hidden argument*/List_1__ctor_m2321703786_RuntimeMethod_var);
V_0 = L_6;
Type_t * L_7 = ___enumType0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_8 = TypeExtensions_GetFields_m2718563494(NULL /*static, unused*/, L_7, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var);
Func_2_t1761491126 * L_9 = ((U3CU3Ec_t2360567884_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var))->get_U3CU3E9__5_0_2();
Func_2_t1761491126 * L_10 = L_9;
G_B3_0 = L_10;
G_B3_1 = L_8;
if (L_10)
{
G_B4_0 = L_10;
G_B4_1 = L_8;
goto IL_004e;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var);
U3CU3Ec_t2360567884 * L_11 = ((U3CU3Ec_t2360567884_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var))->get_U3CU3E9_0();
intptr_t L_12 = (intptr_t)U3CU3Ec_U3CGetValuesU3Eb__5_0_m762110753_RuntimeMethod_var;
Func_2_t1761491126 * L_13 = (Func_2_t1761491126 *)il2cpp_codegen_object_new(Func_2_t1761491126_il2cpp_TypeInfo_var);
Func_2__ctor_m3933480653(L_13, L_11, L_12, /*hidden argument*/Func_2__ctor_m3933480653_RuntimeMethod_var);
Func_2_t1761491126 * L_14 = L_13;
((U3CU3Ec_t2360567884_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var))->set_U3CU3E9__5_0_2(L_14);
G_B4_0 = L_14;
G_B4_1 = G_B3_1;
}
IL_004e:
{
RuntimeObject* L_15 = Enumerable_Where_TisFieldInfo_t_m2487357973(NULL /*static, unused*/, G_B4_1, G_B4_0, /*hidden argument*/Enumerable_Where_TisFieldInfo_t_m2487357973_RuntimeMethod_var);
NullCheck(L_15);
RuntimeObject* L_16 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo>::GetEnumerator() */, IEnumerable_1_t3161555474_il2cpp_TypeInfo_var, L_15);
V_1 = L_16;
}
IL_0059:
try
{ // begin try (depth: 1)
{
goto IL_006f;
}
IL_005b:
{
RuntimeObject* L_17 = V_1;
NullCheck(L_17);
FieldInfo_t * L_18 = InterfaceFuncInvoker0< FieldInfo_t * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Reflection.FieldInfo>::get_Current() */, IEnumerator_1_t319305757_il2cpp_TypeInfo_var, L_17);
Type_t * L_19 = ___enumType0;
NullCheck(L_18);
RuntimeObject * L_20 = VirtFuncInvoker1< RuntimeObject *, RuntimeObject * >::Invoke(19 /* System.Object System.Reflection.FieldInfo::GetValue(System.Object) */, L_18, L_19);
V_2 = L_20;
List_1_t257213610 * L_21 = V_0;
RuntimeObject * L_22 = V_2;
NullCheck(L_21);
List_1_Add_m3338814081(L_21, L_22, /*hidden argument*/List_1_Add_m3338814081_RuntimeMethod_var);
}
IL_006f:
{
RuntimeObject* L_23 = V_1;
NullCheck(L_23);
bool L_24 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_23);
if (L_24)
{
goto IL_005b;
}
}
IL_0077:
{
IL2CPP_LEAVE(0x83, FINALLY_0079);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0079;
}
FINALLY_0079:
{ // begin finally (depth: 1)
{
RuntimeObject* L_25 = V_1;
if (!L_25)
{
goto IL_0082;
}
}
IL_007c:
{
RuntimeObject* L_26 = V_1;
NullCheck(L_26);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_26);
}
IL_0082:
{
IL2CPP_END_FINALLY(121)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(121)
{
IL2CPP_JUMP_TBL(0x83, IL_0083)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0083:
{
List_1_t257213610 * L_27 = V_0;
return L_27;
}
}
// System.Void Newtonsoft.Json.Utilities.EnumUtils::.cctor()
extern "C" void EnumUtils__cctor_m3466973508 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (EnumUtils__cctor_m3466973508_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
intptr_t L_0 = (intptr_t)EnumUtils_InitializeEnumType_m3064468690_RuntimeMethod_var;
Func_2_t1251018457 * L_1 = (Func_2_t1251018457 *)il2cpp_codegen_object_new(Func_2_t1251018457_il2cpp_TypeInfo_var);
Func_2__ctor_m1138174753(L_1, NULL, L_0, /*hidden argument*/Func_2__ctor_m1138174753_RuntimeMethod_var);
ThreadSafeStore_2_t4165332627 * L_2 = (ThreadSafeStore_2_t4165332627 *)il2cpp_codegen_object_new(ThreadSafeStore_2_t4165332627_il2cpp_TypeInfo_var);
ThreadSafeStore_2__ctor_m769843296(L_2, L_1, /*hidden argument*/ThreadSafeStore_2__ctor_m769843296_RuntimeMethod_var);
((EnumUtils_t2002471470_StaticFields*)il2cpp_codegen_static_fields_for(EnumUtils_t2002471470_il2cpp_TypeInfo_var))->set_EnumMemberNamesPerType_0(L_2);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.EnumUtils/<>c::.cctor()
extern "C" void U3CU3Ec__cctor_m712977655 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__cctor_m712977655_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
U3CU3Ec_t2360567884 * L_0 = (U3CU3Ec_t2360567884 *)il2cpp_codegen_object_new(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var);
U3CU3Ec__ctor_m4100598361(L_0, /*hidden argument*/NULL);
((U3CU3Ec_t2360567884_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t2360567884_il2cpp_TypeInfo_var))->set_U3CU3E9_0(L_0);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.EnumUtils/<>c::.ctor()
extern "C" void U3CU3Ec__ctor_m4100598361 (U3CU3Ec_t2360567884 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.String Newtonsoft.Json.Utilities.EnumUtils/<>c::<InitializeEnumType>b__1_0(System.Runtime.Serialization.EnumMemberAttribute)
extern "C" String_t* U3CU3Ec_U3CInitializeEnumTypeU3Eb__1_0_m76424380 (U3CU3Ec_t2360567884 * __this, EnumMemberAttribute_t1084128815 * ___a0, const RuntimeMethod* method)
{
{
EnumMemberAttribute_t1084128815 * L_0 = ___a0;
NullCheck(L_0);
String_t* L_1 = EnumMemberAttribute_get_Value_m452041758(L_0, /*hidden argument*/NULL);
return L_1;
}
}
// System.Boolean Newtonsoft.Json.Utilities.EnumUtils/<>c::<GetValues>b__5_0(System.Reflection.FieldInfo)
extern "C" bool U3CU3Ec_U3CGetValuesU3Eb__5_0_m762110753 (U3CU3Ec_t2360567884 * __this, FieldInfo_t * ___f0, const RuntimeMethod* method)
{
{
FieldInfo_t * L_0 = ___f0;
NullCheck(L_0);
bool L_1 = FieldInfo_get_IsLiteral_m534699794(L_0, /*hidden argument*/NULL);
return L_1;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ReflectionDelegateFactory Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory::get_Instance()
extern "C" ReflectionDelegateFactory_t2528576452 * ExpressionReflectionDelegateFactory_get_Instance_m2194272564 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ExpressionReflectionDelegateFactory_get_Instance_m2194272564_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(ExpressionReflectionDelegateFactory_t3044714092_il2cpp_TypeInfo_var);
ExpressionReflectionDelegateFactory_t3044714092 * L_0 = ((ExpressionReflectionDelegateFactory_t3044714092_StaticFields*)il2cpp_codegen_static_fields_for(ExpressionReflectionDelegateFactory_t3044714092_il2cpp_TypeInfo_var))->get__instance_0();
return L_0;
}
}
// Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object> Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory::CreateParameterizedConstructor(System.Reflection.MethodBase)
extern "C" ObjectConstructor_1_t3207922868 * ExpressionReflectionDelegateFactory_CreateParameterizedConstructor_m3015126226 (ExpressionReflectionDelegateFactory_t3044714092 * __this, MethodBase_t * ___method0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ExpressionReflectionDelegateFactory_CreateParameterizedConstructor_m3015126226_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Type_t * V_0 = NULL;
ParameterExpression_t1118422084 * V_1 = NULL;
Expression_t1588164026 * V_2 = NULL;
{
MethodBase_t * L_0 = ___method0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral414301358, /*hidden argument*/NULL);
RuntimeTypeHandle_t3027515415 L_1 = { reinterpret_cast<intptr_t> (RuntimeObject_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_2 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
V_0 = L_2;
RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (ObjectU5BU5D_t2843939325_0_0_0_var) };
Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_3, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
ParameterExpression_t1118422084 * L_5 = Expression_Parameter_m4117869331(NULL /*static, unused*/, L_4, _stringLiteral728803974, /*hidden argument*/NULL);
V_1 = L_5;
MethodBase_t * L_6 = ___method0;
Type_t * L_7 = V_0;
ParameterExpression_t1118422084 * L_8 = V_1;
Expression_t1588164026 * L_9 = ExpressionReflectionDelegateFactory_BuildMethodCall_m3034515324(__this, L_6, L_7, (ParameterExpression_t1118422084 *)NULL, L_8, /*hidden argument*/NULL);
V_2 = L_9;
RuntimeTypeHandle_t3027515415 L_10 = { reinterpret_cast<intptr_t> (ObjectConstructor_1_t3207922868_0_0_0_var) };
Type_t * L_11 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_10, /*hidden argument*/NULL);
Expression_t1588164026 * L_12 = V_2;
ParameterExpressionU5BU5D_t2413162029* L_13 = ((ParameterExpressionU5BU5D_t2413162029*)SZArrayNew(ParameterExpressionU5BU5D_t2413162029_il2cpp_TypeInfo_var, (uint32_t)1));
ParameterExpression_t1118422084 * L_14 = V_1;
NullCheck(L_13);
ArrayElementTypeCheck (L_13, L_14);
(L_13)->SetAt(static_cast<il2cpp_array_size_t>(0), (ParameterExpression_t1118422084 *)L_14);
LambdaExpression_t3131094331 * L_15 = Expression_Lambda_m567659775(NULL /*static, unused*/, L_11, L_12, L_13, /*hidden argument*/NULL);
NullCheck(L_15);
Delegate_t1188392813 * L_16 = LambdaExpression_Compile_m468455141(L_15, /*hidden argument*/NULL);
return ((ObjectConstructor_1_t3207922868 *)CastclassSealed((RuntimeObject*)L_16, ObjectConstructor_1_t3207922868_il2cpp_TypeInfo_var));
}
}
// System.Linq.Expressions.Expression Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory::BuildMethodCall(System.Reflection.MethodBase,System.Type,System.Linq.Expressions.ParameterExpression,System.Linq.Expressions.ParameterExpression)
extern "C" Expression_t1588164026 * ExpressionReflectionDelegateFactory_BuildMethodCall_m3034515324 (ExpressionReflectionDelegateFactory_t3044714092 * __this, MethodBase_t * ___method0, Type_t * ___type1, ParameterExpression_t1118422084 * ___targetParameterExpression2, ParameterExpression_t1118422084 * ___argsParameterExpression3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ExpressionReflectionDelegateFactory_BuildMethodCall_m3034515324_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
ParameterInfoU5BU5D_t390618515* V_0 = NULL;
ExpressionU5BU5D_t2266720799* V_1 = NULL;
RuntimeObject* V_2 = NULL;
Expression_t1588164026 * V_3 = NULL;
int32_t V_4 = 0;
ParameterInfo_t1861056598 * V_5 = NULL;
Type_t * V_6 = NULL;
bool V_7 = false;
Expression_t1588164026 * V_8 = NULL;
Expression_t1588164026 * V_9 = NULL;
Expression_t1588164026 * V_10 = NULL;
BinaryExpression_t77573129 * V_11 = NULL;
ParameterExpression_t1118422084 * V_12 = NULL;
RuntimeObject* V_13 = NULL;
RuntimeObject* V_14 = NULL;
RuntimeObject* V_15 = NULL;
ByRefParameter_t2597271783 * V_16 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
MethodBase_t * L_0 = ___method0;
NullCheck(L_0);
ParameterInfoU5BU5D_t390618515* L_1 = VirtFuncInvoker0< ParameterInfoU5BU5D_t390618515* >::Invoke(17 /* System.Reflection.ParameterInfo[] System.Reflection.MethodBase::GetParameters() */, L_0);
V_0 = L_1;
ParameterInfoU5BU5D_t390618515* L_2 = V_0;
NullCheck(L_2);
V_1 = ((ExpressionU5BU5D_t2266720799*)SZArrayNew(ExpressionU5BU5D_t2266720799_il2cpp_TypeInfo_var, (uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_2)->max_length))))));
List_1_t4069346525 * L_3 = (List_1_t4069346525 *)il2cpp_codegen_object_new(List_1_t4069346525_il2cpp_TypeInfo_var);
List_1__ctor_m243543808(L_3, /*hidden argument*/List_1__ctor_m243543808_RuntimeMethod_var);
V_2 = (RuntimeObject*)L_3;
V_4 = 0;
goto IL_00d6;
}
IL_001e:
{
ParameterInfoU5BU5D_t390618515* L_4 = V_0;
int32_t L_5 = V_4;
NullCheck(L_4);
int32_t L_6 = L_5;
ParameterInfo_t1861056598 * L_7 = (L_4)->GetAt(static_cast<il2cpp_array_size_t>(L_6));
V_5 = L_7;
ParameterInfo_t1861056598 * L_8 = V_5;
NullCheck(L_8);
Type_t * L_9 = VirtFuncInvoker0< Type_t * >::Invoke(7 /* System.Type System.Reflection.ParameterInfo::get_ParameterType() */, L_8);
V_6 = L_9;
V_7 = (bool)0;
Type_t * L_10 = V_6;
NullCheck(L_10);
bool L_11 = Type_get_IsByRef_m1262524108(L_10, /*hidden argument*/NULL);
if (!L_11)
{
goto IL_0045;
}
}
{
Type_t * L_12 = V_6;
NullCheck(L_12);
Type_t * L_13 = VirtFuncInvoker0< Type_t * >::Invoke(107 /* System.Type System.Type::GetElementType() */, L_12);
V_6 = L_13;
V_7 = (bool)1;
}
IL_0045:
{
int32_t L_14 = V_4;
int32_t L_15 = L_14;
RuntimeObject * L_16 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_15);
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
ConstantExpression_t3613654278 * L_17 = Expression_Constant_m3269986673(NULL /*static, unused*/, L_16, /*hidden argument*/NULL);
V_8 = L_17;
ParameterExpression_t1118422084 * L_18 = ___argsParameterExpression3;
Expression_t1588164026 * L_19 = V_8;
BinaryExpression_t77573129 * L_20 = Expression_ArrayIndex_m829554235(NULL /*static, unused*/, L_18, L_19, /*hidden argument*/NULL);
V_9 = L_20;
Type_t * L_21 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_22 = TypeExtensions_IsValueType_m852671066(NULL /*static, unused*/, L_21, /*hidden argument*/NULL);
if (!L_22)
{
goto IL_0085;
}
}
{
Expression_t1588164026 * L_23 = V_9;
Type_t * L_24 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
NewExpression_t1271006003 * L_25 = Expression_New_m3056576841(NULL /*static, unused*/, L_24, /*hidden argument*/NULL);
BinaryExpression_t77573129 * L_26 = Expression_Coalesce_m3938856077(NULL /*static, unused*/, L_23, L_25, /*hidden argument*/NULL);
V_11 = L_26;
BinaryExpression_t77573129 * L_27 = V_11;
Type_t * L_28 = V_6;
Expression_t1588164026 * L_29 = ExpressionReflectionDelegateFactory_EnsureCastExpression_m3184564199(__this, L_27, L_28, /*hidden argument*/NULL);
V_10 = L_29;
goto IL_0091;
}
IL_0085:
{
Expression_t1588164026 * L_30 = V_9;
Type_t * L_31 = V_6;
Expression_t1588164026 * L_32 = ExpressionReflectionDelegateFactory_EnsureCastExpression_m3184564199(__this, L_30, L_31, /*hidden argument*/NULL);
V_10 = L_32;
}
IL_0091:
{
bool L_33 = V_7;
if (!L_33)
{
goto IL_00ca;
}
}
{
Type_t * L_34 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
ParameterExpression_t1118422084 * L_35 = Expression_Variable_m1043725142(NULL /*static, unused*/, L_34, /*hidden argument*/NULL);
V_12 = L_35;
RuntimeObject* L_36 = V_2;
ByRefParameter_t2597271783 * L_37 = (ByRefParameter_t2597271783 *)il2cpp_codegen_object_new(ByRefParameter_t2597271783_il2cpp_TypeInfo_var);
ByRefParameter__ctor_m1062946956(L_37, /*hidden argument*/NULL);
ByRefParameter_t2597271783 * L_38 = L_37;
Expression_t1588164026 * L_39 = V_10;
NullCheck(L_38);
L_38->set_Value_0(L_39);
ByRefParameter_t2597271783 * L_40 = L_38;
ParameterExpression_t1118422084 * L_41 = V_12;
NullCheck(L_40);
L_40->set_Variable_1(L_41);
ByRefParameter_t2597271783 * L_42 = L_40;
ParameterInfo_t1861056598 * L_43 = V_5;
NullCheck(L_43);
bool L_44 = ParameterInfo_get_IsOut_m867677222(L_43, /*hidden argument*/NULL);
NullCheck(L_42);
L_42->set_IsOut_2(L_44);
NullCheck(L_36);
InterfaceActionInvoker1< ByRefParameter_t2597271783 * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter>::Add(!0) */, ICollection_1_t1130456721_il2cpp_TypeInfo_var, L_36, L_42);
ParameterExpression_t1118422084 * L_45 = V_12;
V_10 = L_45;
}
IL_00ca:
{
ExpressionU5BU5D_t2266720799* L_46 = V_1;
int32_t L_47 = V_4;
Expression_t1588164026 * L_48 = V_10;
NullCheck(L_46);
ArrayElementTypeCheck (L_46, L_48);
(L_46)->SetAt(static_cast<il2cpp_array_size_t>(L_47), (Expression_t1588164026 *)L_48);
int32_t L_49 = V_4;
V_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_49, (int32_t)1));
}
IL_00d6:
{
int32_t L_50 = V_4;
ParameterInfoU5BU5D_t390618515* L_51 = V_0;
NullCheck(L_51);
if ((((int32_t)L_50) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_51)->max_length)))))))
{
goto IL_001e;
}
}
{
MethodBase_t * L_52 = ___method0;
NullCheck(L_52);
bool L_53 = MethodBase_get_IsConstructor_m1438333698(L_52, /*hidden argument*/NULL);
if (!L_53)
{
goto IL_00f7;
}
}
{
MethodBase_t * L_54 = ___method0;
ExpressionU5BU5D_t2266720799* L_55 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
NewExpression_t1271006003 * L_56 = Expression_New_m457641601(NULL /*static, unused*/, ((ConstructorInfo_t5769829 *)CastclassClass((RuntimeObject*)L_54, ConstructorInfo_t5769829_il2cpp_TypeInfo_var)), L_55, /*hidden argument*/NULL);
V_3 = L_56;
goto IL_0128;
}
IL_00f7:
{
MethodBase_t * L_57 = ___method0;
NullCheck(L_57);
bool L_58 = MethodBase_get_IsStatic_m2399864271(L_57, /*hidden argument*/NULL);
if (!L_58)
{
goto IL_010e;
}
}
{
MethodBase_t * L_59 = ___method0;
ExpressionU5BU5D_t2266720799* L_60 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
MethodCallExpression_t3675920717 * L_61 = Expression_Call_m2422675646(NULL /*static, unused*/, ((MethodInfo_t *)CastclassClass((RuntimeObject*)L_59, MethodInfo_t_il2cpp_TypeInfo_var)), L_60, /*hidden argument*/NULL);
V_3 = L_61;
goto IL_0128;
}
IL_010e:
{
ParameterExpression_t1118422084 * L_62 = ___targetParameterExpression2;
MethodBase_t * L_63 = ___method0;
NullCheck(L_63);
Type_t * L_64 = VirtFuncInvoker0< Type_t * >::Invoke(8 /* System.Type System.Reflection.MemberInfo::get_DeclaringType() */, L_63);
Expression_t1588164026 * L_65 = ExpressionReflectionDelegateFactory_EnsureCastExpression_m3184564199(__this, L_62, L_64, /*hidden argument*/NULL);
MethodBase_t * L_66 = ___method0;
ExpressionU5BU5D_t2266720799* L_67 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
MethodCallExpression_t3675920717 * L_68 = Expression_Call_m2714863137(NULL /*static, unused*/, L_65, ((MethodInfo_t *)CastclassClass((RuntimeObject*)L_66, MethodInfo_t_il2cpp_TypeInfo_var)), L_67, /*hidden argument*/NULL);
V_3 = L_68;
}
IL_0128:
{
MethodBase_t * L_69 = ___method0;
if (!((MethodInfo_t *)IsInstClass((RuntimeObject*)L_69, MethodInfo_t_il2cpp_TypeInfo_var)))
{
goto IL_0161;
}
}
{
MethodBase_t * L_70 = ___method0;
NullCheck(((MethodInfo_t *)CastclassClass((RuntimeObject*)L_70, MethodInfo_t_il2cpp_TypeInfo_var)));
Type_t * L_71 = VirtFuncInvoker0< Type_t * >::Invoke(44 /* System.Type System.Reflection.MethodInfo::get_ReturnType() */, ((MethodInfo_t *)CastclassClass((RuntimeObject*)L_70, MethodInfo_t_il2cpp_TypeInfo_var)));
RuntimeTypeHandle_t3027515415 L_72 = { reinterpret_cast<intptr_t> (Void_t1185182177_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_73 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_72, /*hidden argument*/NULL);
if ((((RuntimeObject*)(Type_t *)L_71) == ((RuntimeObject*)(Type_t *)L_73)))
{
goto IL_0152;
}
}
{
Expression_t1588164026 * L_74 = V_3;
Type_t * L_75 = ___type1;
Expression_t1588164026 * L_76 = ExpressionReflectionDelegateFactory_EnsureCastExpression_m3184564199(__this, L_74, L_75, /*hidden argument*/NULL);
V_3 = L_76;
goto IL_016a;
}
IL_0152:
{
Expression_t1588164026 * L_77 = V_3;
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
ConstantExpression_t3613654278 * L_78 = Expression_Constant_m3269986673(NULL /*static, unused*/, NULL, /*hidden argument*/NULL);
BlockExpression_t2693004534 * L_79 = Expression_Block_m3994705381(NULL /*static, unused*/, L_77, L_78, /*hidden argument*/NULL);
V_3 = L_79;
goto IL_016a;
}
IL_0161:
{
Expression_t1588164026 * L_80 = V_3;
Type_t * L_81 = ___type1;
Expression_t1588164026 * L_82 = ExpressionReflectionDelegateFactory_EnsureCastExpression_m3184564199(__this, L_80, L_81, /*hidden argument*/NULL);
V_3 = L_82;
}
IL_016a:
{
RuntimeObject* L_83 = V_2;
NullCheck(L_83);
int32_t L_84 = InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter>::get_Count() */, ICollection_1_t1130456721_il2cpp_TypeInfo_var, L_83);
if ((((int32_t)L_84) <= ((int32_t)0)))
{
goto IL_01ee;
}
}
{
List_1_t2590496826 * L_85 = (List_1_t2590496826 *)il2cpp_codegen_object_new(List_1_t2590496826_il2cpp_TypeInfo_var);
List_1__ctor_m4094288014(L_85, /*hidden argument*/List_1__ctor_m4094288014_RuntimeMethod_var);
V_13 = (RuntimeObject*)L_85;
List_1_t3060238768 * L_86 = (List_1_t3060238768 *)il2cpp_codegen_object_new(List_1_t3060238768_il2cpp_TypeInfo_var);
List_1__ctor_m4116858772(L_86, /*hidden argument*/List_1__ctor_m4116858772_RuntimeMethod_var);
V_14 = (RuntimeObject*)L_86;
RuntimeObject* L_87 = V_2;
NullCheck(L_87);
RuntimeObject* L_88 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter>::GetEnumerator() */, IEnumerable_1_t1577124672_il2cpp_TypeInfo_var, L_87);
V_15 = L_88;
}
IL_0189:
try
{ // begin try (depth: 1)
{
goto IL_01c5;
}
IL_018b:
{
RuntimeObject* L_89 = V_15;
NullCheck(L_89);
ByRefParameter_t2597271783 * L_90 = InterfaceFuncInvoker0< ByRefParameter_t2597271783 * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter>::get_Current() */, IEnumerator_1_t3029842251_il2cpp_TypeInfo_var, L_89);
V_16 = L_90;
ByRefParameter_t2597271783 * L_91 = V_16;
NullCheck(L_91);
bool L_92 = L_91->get_IsOut_2();
if (L_92)
{
goto IL_01b7;
}
}
IL_019d:
{
RuntimeObject* L_93 = V_14;
ByRefParameter_t2597271783 * L_94 = V_16;
NullCheck(L_94);
ParameterExpression_t1118422084 * L_95 = L_94->get_Variable_1();
ByRefParameter_t2597271783 * L_96 = V_16;
NullCheck(L_96);
Expression_t1588164026 * L_97 = L_96->get_Value_0();
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
BinaryExpression_t77573129 * L_98 = Expression_Assign_m3503196189(NULL /*static, unused*/, L_95, L_97, /*hidden argument*/NULL);
NullCheck(L_93);
InterfaceActionInvoker1< Expression_t1588164026 * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Linq.Expressions.Expression>::Add(!0) */, ICollection_1_t121348964_il2cpp_TypeInfo_var, L_93, L_98);
}
IL_01b7:
{
RuntimeObject* L_99 = V_13;
ByRefParameter_t2597271783 * L_100 = V_16;
NullCheck(L_100);
ParameterExpression_t1118422084 * L_101 = L_100->get_Variable_1();
NullCheck(L_99);
InterfaceActionInvoker1< ParameterExpression_t1118422084 * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Linq.Expressions.ParameterExpression>::Add(!0) */, ICollection_1_t3946574318_il2cpp_TypeInfo_var, L_99, L_101);
}
IL_01c5:
{
RuntimeObject* L_102 = V_15;
NullCheck(L_102);
bool L_103 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_102);
if (L_103)
{
goto IL_018b;
}
}
IL_01ce:
{
IL2CPP_LEAVE(0x1DC, FINALLY_01d0);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_01d0;
}
FINALLY_01d0:
{ // begin finally (depth: 1)
{
RuntimeObject* L_104 = V_15;
if (!L_104)
{
goto IL_01db;
}
}
IL_01d4:
{
RuntimeObject* L_105 = V_15;
NullCheck(L_105);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_105);
}
IL_01db:
{
IL2CPP_END_FINALLY(464)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(464)
{
IL2CPP_JUMP_TBL(0x1DC, IL_01dc)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_01dc:
{
RuntimeObject* L_106 = V_14;
Expression_t1588164026 * L_107 = V_3;
NullCheck(L_106);
InterfaceActionInvoker1< Expression_t1588164026 * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Linq.Expressions.Expression>::Add(!0) */, ICollection_1_t121348964_il2cpp_TypeInfo_var, L_106, L_107);
RuntimeObject* L_108 = V_13;
RuntimeObject* L_109 = V_14;
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
BlockExpression_t2693004534 * L_110 = Expression_Block_m2109601663(NULL /*static, unused*/, L_108, L_109, /*hidden argument*/NULL);
V_3 = L_110;
}
IL_01ee:
{
Expression_t1588164026 * L_111 = V_3;
return L_111;
}
}
// System.Linq.Expressions.Expression Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory::EnsureCastExpression(System.Linq.Expressions.Expression,System.Type)
extern "C" Expression_t1588164026 * ExpressionReflectionDelegateFactory_EnsureCastExpression_m3184564199 (ExpressionReflectionDelegateFactory_t3044714092 * __this, Expression_t1588164026 * ___expression0, Type_t * ___targetType1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ExpressionReflectionDelegateFactory_EnsureCastExpression_m3184564199_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Type_t * V_0 = NULL;
{
Expression_t1588164026 * L_0 = ___expression0;
NullCheck(L_0);
Type_t * L_1 = VirtFuncInvoker0< Type_t * >::Invoke(5 /* System.Type System.Linq.Expressions.Expression::get_Type() */, L_0);
V_0 = L_1;
Type_t * L_2 = V_0;
Type_t * L_3 = ___targetType1;
if ((((RuntimeObject*)(Type_t *)L_2) == ((RuntimeObject*)(Type_t *)L_3)))
{
goto IL_001c;
}
}
{
Type_t * L_4 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_5 = TypeExtensions_IsValueType_m852671066(NULL /*static, unused*/, L_4, /*hidden argument*/NULL);
if (L_5)
{
goto IL_001e;
}
}
{
Type_t * L_6 = ___targetType1;
Type_t * L_7 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_8 = TypeExtensions_IsAssignableFrom_m1207251774(NULL /*static, unused*/, L_6, L_7, /*hidden argument*/NULL);
if (!L_8)
{
goto IL_001e;
}
}
IL_001c:
{
Expression_t1588164026 * L_9 = ___expression0;
return L_9;
}
IL_001e:
{
Expression_t1588164026 * L_10 = ___expression0;
Type_t * L_11 = ___targetType1;
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
UnaryExpression_t3914580921 * L_12 = Expression_Convert_m3332325046(NULL /*static, unused*/, L_10, L_11, /*hidden argument*/NULL);
return L_12;
}
}
// System.Void Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory::.ctor()
extern "C" void ExpressionReflectionDelegateFactory__ctor_m2673819214 (ExpressionReflectionDelegateFactory_t3044714092 * __this, const RuntimeMethod* method)
{
{
ReflectionDelegateFactory__ctor_m3277517333(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory::.cctor()
extern "C" void ExpressionReflectionDelegateFactory__cctor_m3118070427 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ExpressionReflectionDelegateFactory__cctor_m3118070427_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
ExpressionReflectionDelegateFactory_t3044714092 * L_0 = (ExpressionReflectionDelegateFactory_t3044714092 *)il2cpp_codegen_object_new(ExpressionReflectionDelegateFactory_t3044714092_il2cpp_TypeInfo_var);
ExpressionReflectionDelegateFactory__ctor_m2673819214(L_0, /*hidden argument*/NULL);
((ExpressionReflectionDelegateFactory_t3044714092_StaticFields*)il2cpp_codegen_static_fields_for(ExpressionReflectionDelegateFactory_t3044714092_il2cpp_TypeInfo_var))->set__instance_0(L_0);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ExpressionReflectionDelegateFactory/ByRefParameter::.ctor()
extern "C" void ByRefParameter__ctor_m1062946956 (ByRefParameter_t2597271783 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.FSharpFunction::.ctor(System.Object,Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpFunction__ctor_m4007359143 (FSharpFunction_t2521769750 * __this, RuntimeObject * ___instance0, MethodCall_2_t2845904993 * ___invoker1, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
RuntimeObject * L_0 = ___instance0;
__this->set__instance_0(L_0);
MethodCall_2_t2845904993 * L_1 = ___invoker1;
__this->set__invoker_1(L_1);
return;
}
}
// System.Object Newtonsoft.Json.Utilities.FSharpFunction::Invoke(System.Object[])
extern "C" RuntimeObject * FSharpFunction_Invoke_m288720228 (FSharpFunction_t2521769750 * __this, ObjectU5BU5D_t2843939325* ___args0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpFunction_Invoke_m288720228_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MethodCall_2_t2845904993 * L_0 = __this->get__invoker_1();
RuntimeObject * L_1 = __this->get__instance_0();
ObjectU5BU5D_t2843939325* L_2 = ___args0;
NullCheck(L_0);
RuntimeObject * L_3 = MethodCall_2_Invoke_m386137395(L_0, L_1, L_2, /*hidden argument*/MethodCall_2_Invoke_m386137395_RuntimeMethod_var);
return L_3;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_FSharpCoreAssembly(System.Reflection.Assembly)
extern "C" void FSharpUtils_set_FSharpCoreAssembly_m1794540835 (RuntimeObject * __this /* static, unused */, Assembly_t * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_set_FSharpCoreAssembly_m1794540835_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Assembly_t * L_0 = ___value0;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set_U3CFSharpCoreAssemblyU3Ek__BackingField_4(L_0);
return;
}
}
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::get_IsUnion()
extern "C" MethodCall_2_t2845904993 * FSharpUtils_get_IsUnion_m3724400576 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_get_IsUnion_m3724400576_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
MethodCall_2_t2845904993 * L_0 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get_U3CIsUnionU3Ek__BackingField_5();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_IsUnion(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_IsUnion_m1146927020 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_set_IsUnion_m1146927020_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MethodCall_2_t2845904993 * L_0 = ___value0;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set_U3CIsUnionU3Ek__BackingField_5(L_0);
return;
}
}
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::get_GetUnionCases()
extern "C" MethodCall_2_t2845904993 * FSharpUtils_get_GetUnionCases_m161213611 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_get_GetUnionCases_m161213611_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
MethodCall_2_t2845904993 * L_0 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get_U3CGetUnionCasesU3Ek__BackingField_6();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_GetUnionCases(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_GetUnionCases_m3163215751 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_set_GetUnionCases_m3163215751_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MethodCall_2_t2845904993 * L_0 = ___value0;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set_U3CGetUnionCasesU3Ek__BackingField_6(L_0);
return;
}
}
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::get_PreComputeUnionTagReader()
extern "C" MethodCall_2_t2845904993 * FSharpUtils_get_PreComputeUnionTagReader_m1777833580 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_get_PreComputeUnionTagReader_m1777833580_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
MethodCall_2_t2845904993 * L_0 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get_U3CPreComputeUnionTagReaderU3Ek__BackingField_7();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_PreComputeUnionTagReader(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_PreComputeUnionTagReader_m2586219813 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_set_PreComputeUnionTagReader_m2586219813_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MethodCall_2_t2845904993 * L_0 = ___value0;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set_U3CPreComputeUnionTagReaderU3Ek__BackingField_7(L_0);
return;
}
}
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::get_PreComputeUnionReader()
extern "C" MethodCall_2_t2845904993 * FSharpUtils_get_PreComputeUnionReader_m1355674839 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_get_PreComputeUnionReader_m1355674839_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
MethodCall_2_t2845904993 * L_0 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get_U3CPreComputeUnionReaderU3Ek__BackingField_8();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_PreComputeUnionReader(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_PreComputeUnionReader_m2409024186 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_set_PreComputeUnionReader_m2409024186_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MethodCall_2_t2845904993 * L_0 = ___value0;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set_U3CPreComputeUnionReaderU3Ek__BackingField_8(L_0);
return;
}
}
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::get_PreComputeUnionConstructor()
extern "C" MethodCall_2_t2845904993 * FSharpUtils_get_PreComputeUnionConstructor_m3139238732 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_get_PreComputeUnionConstructor_m3139238732_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
MethodCall_2_t2845904993 * L_0 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get_U3CPreComputeUnionConstructorU3Ek__BackingField_9();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_PreComputeUnionConstructor(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_PreComputeUnionConstructor_m301096180 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_set_PreComputeUnionConstructor_m301096180_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MethodCall_2_t2845904993 * L_0 = ___value0;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set_U3CPreComputeUnionConstructorU3Ek__BackingField_9(L_0);
return;
}
}
// System.Func`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::get_GetUnionCaseInfoDeclaringType()
extern "C" Func_2_t2447130374 * FSharpUtils_get_GetUnionCaseInfoDeclaringType_m602979342 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_get_GetUnionCaseInfoDeclaringType_m602979342_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
Func_2_t2447130374 * L_0 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get_U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_GetUnionCaseInfoDeclaringType(System.Func`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_GetUnionCaseInfoDeclaringType_m728957313 (RuntimeObject * __this /* static, unused */, Func_2_t2447130374 * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_set_GetUnionCaseInfoDeclaringType_m728957313_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Func_2_t2447130374 * L_0 = ___value0;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set_U3CGetUnionCaseInfoDeclaringTypeU3Ek__BackingField_10(L_0);
return;
}
}
// System.Func`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::get_GetUnionCaseInfoName()
extern "C" Func_2_t2447130374 * FSharpUtils_get_GetUnionCaseInfoName_m3883626289 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_get_GetUnionCaseInfoName_m3883626289_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
Func_2_t2447130374 * L_0 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get_U3CGetUnionCaseInfoNameU3Ek__BackingField_11();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_GetUnionCaseInfoName(System.Func`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_GetUnionCaseInfoName_m2416808770 (RuntimeObject * __this /* static, unused */, Func_2_t2447130374 * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_set_GetUnionCaseInfoName_m2416808770_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Func_2_t2447130374 * L_0 = ___value0;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set_U3CGetUnionCaseInfoNameU3Ek__BackingField_11(L_0);
return;
}
}
// System.Func`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::get_GetUnionCaseInfoTag()
extern "C" Func_2_t2447130374 * FSharpUtils_get_GetUnionCaseInfoTag_m320318158 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_get_GetUnionCaseInfoTag_m320318158_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
Func_2_t2447130374 * L_0 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get_U3CGetUnionCaseInfoTagU3Ek__BackingField_12();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_GetUnionCaseInfoTag(System.Func`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_GetUnionCaseInfoTag_m95408090 (RuntimeObject * __this /* static, unused */, Func_2_t2447130374 * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_set_GetUnionCaseInfoTag_m95408090_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Func_2_t2447130374 * L_0 = ___value0;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set_U3CGetUnionCaseInfoTagU3Ek__BackingField_12(L_0);
return;
}
}
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::get_GetUnionCaseInfoFields()
extern "C" MethodCall_2_t2845904993 * FSharpUtils_get_GetUnionCaseInfoFields_m2060142814 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_get_GetUnionCaseInfoFields_m2060142814_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
MethodCall_2_t2845904993 * L_0 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get_U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::set_GetUnionCaseInfoFields(Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object>)
extern "C" void FSharpUtils_set_GetUnionCaseInfoFields_m559492724 (RuntimeObject * __this /* static, unused */, MethodCall_2_t2845904993 * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_set_GetUnionCaseInfoFields_m559492724_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MethodCall_2_t2845904993 * L_0 = ___value0;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set_U3CGetUnionCaseInfoFieldsU3Ek__BackingField_13(L_0);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::EnsureInitialized(System.Reflection.Assembly)
extern "C" void FSharpUtils_EnsureInitialized_m3964663339 (RuntimeObject * __this /* static, unused */, Assembly_t * ___fsharpCoreAssembly0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_EnsureInitialized_m3964663339_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
bool V_1 = false;
MethodInfo_t * V_2 = NULL;
MethodInfo_t * V_3 = NULL;
Type_t * V_4 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
bool L_0 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get__initialized_1();
if (L_0)
{
goto IL_015f;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
RuntimeObject * L_1 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get_Lock_0();
V_0 = L_1;
V_1 = (bool)0;
}
IL_0012:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_2 = V_0;
Monitor_Enter_m984175629(NULL /*static, unused*/, L_2, (bool*)(&V_1), /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
bool L_3 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get__initialized_1();
if (L_3)
{
goto IL_0153;
}
}
IL_0024:
{
Assembly_t * L_4 = ___fsharpCoreAssembly0;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
FSharpUtils_set_FSharpCoreAssembly_m1794540835(NULL /*static, unused*/, L_4, /*hidden argument*/NULL);
Assembly_t * L_5 = ___fsharpCoreAssembly0;
NullCheck(L_5);
Type_t * L_6 = VirtFuncInvoker1< Type_t *, String_t* >::Invoke(20 /* System.Type System.Reflection.Assembly::GetType(System.String) */, L_5, _stringLiteral2162518746);
Type_t * L_7 = L_6;
MethodInfo_t * L_8 = FSharpUtils_GetMethodWithNonPublicFallback_m560151526(NULL /*static, unused*/, L_7, _stringLiteral3764671851, ((int32_t)24), /*hidden argument*/NULL);
V_2 = L_8;
IL2CPP_RUNTIME_CLASS_INIT(JsonTypeReflector_t526591219_il2cpp_TypeInfo_var);
ReflectionDelegateFactory_t2528576452 * L_9 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
MethodInfo_t * L_10 = V_2;
NullCheck(L_9);
MethodCall_2_t2845904993 * L_11 = GenericVirtFuncInvoker1< MethodCall_2_t2845904993 *, MethodBase_t * >::Invoke(ReflectionDelegateFactory_CreateMethodCall_TisRuntimeObject_m2397225021_RuntimeMethod_var, L_9, L_10);
FSharpUtils_set_IsUnion_m1146927020(NULL /*static, unused*/, L_11, /*hidden argument*/NULL);
MethodInfo_t * L_12 = FSharpUtils_GetMethodWithNonPublicFallback_m560151526(NULL /*static, unused*/, L_7, _stringLiteral1640467425, ((int32_t)24), /*hidden argument*/NULL);
V_3 = L_12;
ReflectionDelegateFactory_t2528576452 * L_13 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
MethodInfo_t * L_14 = V_3;
NullCheck(L_13);
MethodCall_2_t2845904993 * L_15 = GenericVirtFuncInvoker1< MethodCall_2_t2845904993 *, MethodBase_t * >::Invoke(ReflectionDelegateFactory_CreateMethodCall_TisRuntimeObject_m2397225021_RuntimeMethod_var, L_13, L_14);
FSharpUtils_set_GetUnionCases_m3163215751(NULL /*static, unused*/, L_15, /*hidden argument*/NULL);
Assembly_t * L_16 = ___fsharpCoreAssembly0;
NullCheck(L_16);
Type_t * L_17 = VirtFuncInvoker1< Type_t *, String_t* >::Invoke(20 /* System.Type System.Reflection.Assembly::GetType(System.String) */, L_16, _stringLiteral1341674351);
Type_t * L_18 = L_17;
MethodCall_2_t2845904993 * L_19 = FSharpUtils_CreateFSharpFuncCall_m848649464(NULL /*static, unused*/, L_18, _stringLiteral1139406150, /*hidden argument*/NULL);
FSharpUtils_set_PreComputeUnionTagReader_m2586219813(NULL /*static, unused*/, L_19, /*hidden argument*/NULL);
Type_t * L_20 = L_18;
MethodCall_2_t2845904993 * L_21 = FSharpUtils_CreateFSharpFuncCall_m848649464(NULL /*static, unused*/, L_20, _stringLiteral2284646565, /*hidden argument*/NULL);
FSharpUtils_set_PreComputeUnionReader_m2409024186(NULL /*static, unused*/, L_21, /*hidden argument*/NULL);
MethodCall_2_t2845904993 * L_22 = FSharpUtils_CreateFSharpFuncCall_m848649464(NULL /*static, unused*/, L_20, _stringLiteral3672547367, /*hidden argument*/NULL);
FSharpUtils_set_PreComputeUnionConstructor_m301096180(NULL /*static, unused*/, L_22, /*hidden argument*/NULL);
Assembly_t * L_23 = ___fsharpCoreAssembly0;
NullCheck(L_23);
Type_t * L_24 = VirtFuncInvoker1< Type_t *, String_t* >::Invoke(20 /* System.Type System.Reflection.Assembly::GetType(System.String) */, L_23, _stringLiteral3513292049);
V_4 = L_24;
ReflectionDelegateFactory_t2528576452 * L_25 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
Type_t * L_26 = V_4;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
PropertyInfo_t * L_27 = TypeExtensions_GetProperty_m777828875(NULL /*static, unused*/, L_26, _stringLiteral62725275, /*hidden argument*/NULL);
NullCheck(L_25);
Func_2_t2447130374 * L_28 = GenericVirtFuncInvoker1< Func_2_t2447130374 *, PropertyInfo_t * >::Invoke(ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m3200749786_RuntimeMethod_var, L_25, L_27);
FSharpUtils_set_GetUnionCaseInfoName_m2416808770(NULL /*static, unused*/, L_28, /*hidden argument*/NULL);
ReflectionDelegateFactory_t2528576452 * L_29 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
Type_t * L_30 = V_4;
PropertyInfo_t * L_31 = TypeExtensions_GetProperty_m777828875(NULL /*static, unused*/, L_30, _stringLiteral2862656179, /*hidden argument*/NULL);
NullCheck(L_29);
Func_2_t2447130374 * L_32 = GenericVirtFuncInvoker1< Func_2_t2447130374 *, PropertyInfo_t * >::Invoke(ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m3200749786_RuntimeMethod_var, L_29, L_31);
FSharpUtils_set_GetUnionCaseInfoTag_m95408090(NULL /*static, unused*/, L_32, /*hidden argument*/NULL);
ReflectionDelegateFactory_t2528576452 * L_33 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
Type_t * L_34 = V_4;
PropertyInfo_t * L_35 = TypeExtensions_GetProperty_m777828875(NULL /*static, unused*/, L_34, _stringLiteral2725392681, /*hidden argument*/NULL);
NullCheck(L_33);
Func_2_t2447130374 * L_36 = GenericVirtFuncInvoker1< Func_2_t2447130374 *, PropertyInfo_t * >::Invoke(ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m3200749786_RuntimeMethod_var, L_33, L_35);
FSharpUtils_set_GetUnionCaseInfoDeclaringType_m728957313(NULL /*static, unused*/, L_36, /*hidden argument*/NULL);
ReflectionDelegateFactory_t2528576452 * L_37 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
Type_t * L_38 = V_4;
MethodInfo_t * L_39 = TypeExtensions_GetMethod_m3329308827(NULL /*static, unused*/, L_38, _stringLiteral2731568152, /*hidden argument*/NULL);
NullCheck(L_37);
MethodCall_2_t2845904993 * L_40 = GenericVirtFuncInvoker1< MethodCall_2_t2845904993 *, MethodBase_t * >::Invoke(ReflectionDelegateFactory_CreateMethodCall_TisRuntimeObject_m2397225021_RuntimeMethod_var, L_37, L_39);
FSharpUtils_set_GetUnionCaseInfoFields_m559492724(NULL /*static, unused*/, L_40, /*hidden argument*/NULL);
Assembly_t * L_41 = ___fsharpCoreAssembly0;
NullCheck(L_41);
Type_t * L_42 = VirtFuncInvoker1< Type_t *, String_t* >::Invoke(20 /* System.Type System.Reflection.Assembly::GetType(System.String) */, L_41, _stringLiteral4117654449);
MethodInfo_t * L_43 = TypeExtensions_GetMethod_m3329308827(NULL /*static, unused*/, L_42, _stringLiteral209041395, /*hidden argument*/NULL);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set__ofSeq_2(L_43);
Assembly_t * L_44 = ___fsharpCoreAssembly0;
NullCheck(L_44);
Type_t * L_45 = VirtFuncInvoker1< Type_t *, String_t* >::Invoke(20 /* System.Type System.Reflection.Assembly::GetType(System.String) */, L_44, _stringLiteral2967063848);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set__mapType_3(L_45);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set__initialized_1((bool)1);
}
IL_0153:
{
IL2CPP_LEAVE(0x15F, FINALLY_0155);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0155;
}
FINALLY_0155:
{ // begin finally (depth: 1)
{
bool L_46 = V_1;
if (!L_46)
{
goto IL_015e;
}
}
IL_0158:
{
RuntimeObject * L_47 = V_0;
Monitor_Exit_m3585316909(NULL /*static, unused*/, L_47, /*hidden argument*/NULL);
}
IL_015e:
{
IL2CPP_END_FINALLY(341)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(341)
{
IL2CPP_JUMP_TBL(0x15F, IL_015f)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_015f:
{
return;
}
}
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.FSharpUtils::GetMethodWithNonPublicFallback(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" MethodInfo_t * FSharpUtils_GetMethodWithNonPublicFallback_m560151526 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___methodName1, int32_t ___bindingFlags2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_GetMethodWithNonPublicFallback_m560151526_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
MethodInfo_t * V_0 = NULL;
{
Type_t * L_0 = ___type0;
String_t* L_1 = ___methodName1;
int32_t L_2 = ___bindingFlags2;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_3 = TypeExtensions_GetMethod_m2065588957(NULL /*static, unused*/, L_0, L_1, L_2, /*hidden argument*/NULL);
V_0 = L_3;
MethodInfo_t * L_4 = V_0;
if (L_4)
{
goto IL_0020;
}
}
{
int32_t L_5 = ___bindingFlags2;
if ((((int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)32)))) == ((int32_t)((int32_t)32))))
{
goto IL_0020;
}
}
{
Type_t * L_6 = ___type0;
String_t* L_7 = ___methodName1;
int32_t L_8 = ___bindingFlags2;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_9 = TypeExtensions_GetMethod_m2065588957(NULL /*static, unused*/, L_6, L_7, ((int32_t)((int32_t)L_8|(int32_t)((int32_t)32))), /*hidden argument*/NULL);
V_0 = L_9;
}
IL_0020:
{
MethodInfo_t * L_10 = V_0;
return L_10;
}
}
// Newtonsoft.Json.Utilities.MethodCall`2<System.Object,System.Object> Newtonsoft.Json.Utilities.FSharpUtils::CreateFSharpFuncCall(System.Type,System.String)
extern "C" MethodCall_2_t2845904993 * FSharpUtils_CreateFSharpFuncCall_m848649464 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___methodName1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_CreateFSharpFuncCall_m848649464_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
MethodInfo_t * V_0 = NULL;
MethodInfo_t * V_1 = NULL;
{
U3CU3Ec__DisplayClass49_0_t1290877595 * L_0 = (U3CU3Ec__DisplayClass49_0_t1290877595 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass49_0_t1290877595_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass49_0__ctor_m39089669(L_0, /*hidden argument*/NULL);
Type_t * L_1 = ___type0;
String_t* L_2 = ___methodName1;
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
MethodInfo_t * L_3 = FSharpUtils_GetMethodWithNonPublicFallback_m560151526(NULL /*static, unused*/, L_1, L_2, ((int32_t)24), /*hidden argument*/NULL);
V_0 = L_3;
MethodInfo_t * L_4 = V_0;
NullCheck(L_4);
Type_t * L_5 = VirtFuncInvoker0< Type_t * >::Invoke(44 /* System.Type System.Reflection.MethodInfo::get_ReturnType() */, L_4);
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_6 = TypeExtensions_GetMethod_m2065588957(NULL /*static, unused*/, L_5, _stringLiteral2401610308, ((int32_t)20), /*hidden argument*/NULL);
V_1 = L_6;
U3CU3Ec__DisplayClass49_0_t1290877595 * L_7 = L_0;
IL2CPP_RUNTIME_CLASS_INIT(JsonTypeReflector_t526591219_il2cpp_TypeInfo_var);
ReflectionDelegateFactory_t2528576452 * L_8 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
MethodInfo_t * L_9 = V_0;
NullCheck(L_8);
MethodCall_2_t2845904993 * L_10 = GenericVirtFuncInvoker1< MethodCall_2_t2845904993 *, MethodBase_t * >::Invoke(ReflectionDelegateFactory_CreateMethodCall_TisRuntimeObject_m2397225021_RuntimeMethod_var, L_8, L_9);
NullCheck(L_7);
L_7->set_call_0(L_10);
U3CU3Ec__DisplayClass49_0_t1290877595 * L_11 = L_7;
ReflectionDelegateFactory_t2528576452 * L_12 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
MethodInfo_t * L_13 = V_1;
NullCheck(L_12);
MethodCall_2_t2845904993 * L_14 = GenericVirtFuncInvoker1< MethodCall_2_t2845904993 *, MethodBase_t * >::Invoke(ReflectionDelegateFactory_CreateMethodCall_TisRuntimeObject_m2397225021_RuntimeMethod_var, L_12, L_13);
NullCheck(L_11);
L_11->set_invoke_1(L_14);
intptr_t L_15 = (intptr_t)U3CU3Ec__DisplayClass49_0_U3CCreateFSharpFuncCallU3Eb__0_m1602203469_RuntimeMethod_var;
MethodCall_2_t2845904993 * L_16 = (MethodCall_2_t2845904993 *)il2cpp_codegen_object_new(MethodCall_2_t2845904993_il2cpp_TypeInfo_var);
MethodCall_2__ctor_m1888034670(L_16, L_11, L_15, /*hidden argument*/MethodCall_2__ctor_m1888034670_RuntimeMethod_var);
return L_16;
}
}
// Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object> Newtonsoft.Json.Utilities.FSharpUtils::CreateSeq(System.Type)
extern "C" ObjectConstructor_1_t3207922868 * FSharpUtils_CreateSeq_m916446990 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_CreateSeq_m916446990_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
MethodInfo_t * V_0 = NULL;
{
IL2CPP_RUNTIME_CLASS_INIT(FSharpUtils_t833536174_il2cpp_TypeInfo_var);
MethodInfo_t * L_0 = ((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->get__ofSeq_2();
TypeU5BU5D_t3940880105* L_1 = ((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)1));
Type_t * L_2 = ___t0;
NullCheck(L_1);
ArrayElementTypeCheck (L_1, L_2);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_2);
NullCheck(L_0);
MethodInfo_t * L_3 = VirtFuncInvoker1< MethodInfo_t *, TypeU5BU5D_t3940880105* >::Invoke(47 /* System.Reflection.MethodInfo System.Reflection.MethodInfo::MakeGenericMethod(System.Type[]) */, L_0, L_1);
V_0 = L_3;
IL2CPP_RUNTIME_CLASS_INIT(JsonTypeReflector_t526591219_il2cpp_TypeInfo_var);
ReflectionDelegateFactory_t2528576452 * L_4 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
MethodInfo_t * L_5 = V_0;
NullCheck(L_4);
ObjectConstructor_1_t3207922868 * L_6 = VirtFuncInvoker1< ObjectConstructor_1_t3207922868 *, MethodBase_t * >::Invoke(5 /* Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object> Newtonsoft.Json.Utilities.ReflectionDelegateFactory::CreateParameterizedConstructor(System.Reflection.MethodBase) */, L_4, L_5);
return L_6;
}
}
// Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object> Newtonsoft.Json.Utilities.FSharpUtils::CreateMap(System.Type,System.Type)
extern "C" ObjectConstructor_1_t3207922868 * FSharpUtils_CreateMap_m30486044 (RuntimeObject * __this /* static, unused */, Type_t * ___keyType0, Type_t * ___valueType1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils_CreateMap_m30486044_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeTypeHandle_t3027515415 L_0 = { reinterpret_cast<intptr_t> (FSharpUtils_t833536174_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_1 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_2 = TypeExtensions_GetMethod_m3329308827(NULL /*static, unused*/, L_1, _stringLiteral3115901544, /*hidden argument*/NULL);
TypeU5BU5D_t3940880105* L_3 = ((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)2));
Type_t * L_4 = ___keyType0;
NullCheck(L_3);
ArrayElementTypeCheck (L_3, L_4);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_4);
TypeU5BU5D_t3940880105* L_5 = L_3;
Type_t * L_6 = ___valueType1;
NullCheck(L_5);
ArrayElementTypeCheck (L_5, L_6);
(L_5)->SetAt(static_cast<il2cpp_array_size_t>(1), (Type_t *)L_6);
NullCheck(L_2);
MethodInfo_t * L_7 = VirtFuncInvoker1< MethodInfo_t *, TypeU5BU5D_t3940880105* >::Invoke(47 /* System.Reflection.MethodInfo System.Reflection.MethodInfo::MakeGenericMethod(System.Type[]) */, L_2, L_5);
NullCheck(L_7);
RuntimeObject * L_8 = MethodBase_Invoke_m1776411915(L_7, NULL, (ObjectU5BU5D_t2843939325*)(ObjectU5BU5D_t2843939325*)NULL, /*hidden argument*/NULL);
return ((ObjectConstructor_1_t3207922868 *)CastclassSealed((RuntimeObject*)L_8, ObjectConstructor_1_t3207922868_il2cpp_TypeInfo_var));
}
}
// System.Void Newtonsoft.Json.Utilities.FSharpUtils::.cctor()
extern "C" void FSharpUtils__cctor_m949853073 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FSharpUtils__cctor_m949853073_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m297566312(L_0, /*hidden argument*/NULL);
((FSharpUtils_t833536174_StaticFields*)il2cpp_codegen_static_fields_for(FSharpUtils_t833536174_il2cpp_TypeInfo_var))->set_Lock_0(L_0);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.FSharpUtils/<>c__DisplayClass49_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass49_0__ctor_m39089669 (U3CU3Ec__DisplayClass49_0_t1290877595 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Object Newtonsoft.Json.Utilities.FSharpUtils/<>c__DisplayClass49_0::<CreateFSharpFuncCall>b__0(System.Object,System.Object[])
extern "C" RuntimeObject * U3CU3Ec__DisplayClass49_0_U3CCreateFSharpFuncCallU3Eb__0_m1602203469 (U3CU3Ec__DisplayClass49_0_t1290877595 * __this, RuntimeObject * ___target0, ObjectU5BU5D_t2843939325* ___args1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass49_0_U3CCreateFSharpFuncCallU3Eb__0_m1602203469_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MethodCall_2_t2845904993 * L_0 = __this->get_call_0();
RuntimeObject * L_1 = ___target0;
ObjectU5BU5D_t2843939325* L_2 = ___args1;
NullCheck(L_0);
RuntimeObject * L_3 = MethodCall_2_Invoke_m386137395(L_0, L_1, L_2, /*hidden argument*/MethodCall_2_Invoke_m386137395_RuntimeMethod_var);
MethodCall_2_t2845904993 * L_4 = __this->get_invoke_1();
FSharpFunction_t2521769750 * L_5 = (FSharpFunction_t2521769750 *)il2cpp_codegen_object_new(FSharpFunction_t2521769750_il2cpp_TypeInfo_var);
FSharpFunction__ctor_m4007359143(L_5, L_3, L_4, /*hidden argument*/NULL);
return L_5;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Boolean Newtonsoft.Json.Utilities.ImmutableCollectionsUtils::TryBuildImmutableForArrayContract(System.Type,System.Type,System.Type&,Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object>&)
extern "C" bool ImmutableCollectionsUtils_TryBuildImmutableForArrayContract_m2364781196 (RuntimeObject * __this /* static, unused */, Type_t * ___underlyingType0, Type_t * ___collectionItemType1, Type_t ** ___createdType2, ObjectConstructor_1_t3207922868 ** ___parameterizedCreator3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ImmutableCollectionsUtils_TryBuildImmutableForArrayContract_m2364781196_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass24_0_t2581071253 * V_0 = NULL;
Type_t * V_1 = NULL;
ImmutableCollectionTypeInfo_t3023729701 * V_2 = NULL;
Type_t * V_3 = NULL;
Type_t * V_4 = NULL;
MethodInfo_t * V_5 = NULL;
MethodInfo_t * V_6 = NULL;
Func_2_t3487522507 * G_B6_0 = NULL;
RuntimeObject* G_B6_1 = NULL;
Func_2_t3487522507 * G_B5_0 = NULL;
RuntimeObject* G_B5_1 = NULL;
{
Type_t * L_0 = ___underlyingType0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_1 = TypeExtensions_IsGenericType_m3947308765(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_00d3;
}
}
{
U3CU3Ec__DisplayClass24_0_t2581071253 * L_2 = (U3CU3Ec__DisplayClass24_0_t2581071253 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass24_0_t2581071253_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass24_0__ctor_m3082183600(L_2, /*hidden argument*/NULL);
V_0 = L_2;
Type_t * L_3 = ___underlyingType0;
NullCheck(L_3);
Type_t * L_4 = VirtFuncInvoker0< Type_t * >::Invoke(110 /* System.Type System.Type::GetGenericTypeDefinition() */, L_3);
V_1 = L_4;
U3CU3Ec__DisplayClass24_0_t2581071253 * L_5 = V_0;
Type_t * L_6 = V_1;
NullCheck(L_6);
String_t* L_7 = VirtFuncInvoker0< String_t* >::Invoke(26 /* System.String System.Type::get_FullName() */, L_6);
NullCheck(L_5);
L_5->set_name_0(L_7);
IL2CPP_RUNTIME_CLASS_INIT(ImmutableCollectionsUtils_t1187443225_il2cpp_TypeInfo_var);
RuntimeObject* L_8 = ((ImmutableCollectionsUtils_t1187443225_StaticFields*)il2cpp_codegen_static_fields_for(ImmutableCollectionsUtils_t1187443225_il2cpp_TypeInfo_var))->get_ArrayContractImmutableCollectionDefinitions_0();
U3CU3Ec__DisplayClass24_0_t2581071253 * L_9 = V_0;
intptr_t L_10 = (intptr_t)U3CU3Ec__DisplayClass24_0_U3CTryBuildImmutableForArrayContractU3Eb__0_m3747953282_RuntimeMethod_var;
Func_2_t3660693786 * L_11 = (Func_2_t3660693786 *)il2cpp_codegen_object_new(Func_2_t3660693786_il2cpp_TypeInfo_var);
Func_2__ctor_m3706440855(L_11, L_9, L_10, /*hidden argument*/Func_2__ctor_m3706440855_RuntimeMethod_var);
ImmutableCollectionTypeInfo_t3023729701 * L_12 = Enumerable_FirstOrDefault_TisImmutableCollectionTypeInfo_t3023729701_m959056564(NULL /*static, unused*/, L_8, L_11, /*hidden argument*/Enumerable_FirstOrDefault_TisImmutableCollectionTypeInfo_t3023729701_m959056564_RuntimeMethod_var);
V_2 = L_12;
ImmutableCollectionTypeInfo_t3023729701 * L_13 = V_2;
if (!L_13)
{
goto IL_00d3;
}
}
{
Type_t * L_14 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
Assembly_t * L_15 = TypeExtensions_Assembly_m2111093205(NULL /*static, unused*/, L_14, /*hidden argument*/NULL);
ImmutableCollectionTypeInfo_t3023729701 * L_16 = V_2;
NullCheck(L_16);
String_t* L_17 = ImmutableCollectionTypeInfo_get_CreatedTypeName_m3640385327(L_16, /*hidden argument*/NULL);
NullCheck(L_15);
Type_t * L_18 = VirtFuncInvoker1< Type_t *, String_t* >::Invoke(20 /* System.Type System.Reflection.Assembly::GetType(System.String) */, L_15, L_17);
V_3 = L_18;
Type_t * L_19 = V_1;
Assembly_t * L_20 = TypeExtensions_Assembly_m2111093205(NULL /*static, unused*/, L_19, /*hidden argument*/NULL);
ImmutableCollectionTypeInfo_t3023729701 * L_21 = V_2;
NullCheck(L_21);
String_t* L_22 = ImmutableCollectionTypeInfo_get_BuilderTypeName_m3644216444(L_21, /*hidden argument*/NULL);
NullCheck(L_20);
Type_t * L_23 = VirtFuncInvoker1< Type_t *, String_t* >::Invoke(20 /* System.Type System.Reflection.Assembly::GetType(System.String) */, L_20, L_22);
V_4 = L_23;
Type_t * L_24 = V_3;
if (!L_24)
{
goto IL_00d3;
}
}
{
Type_t * L_25 = V_4;
if (!L_25)
{
goto IL_00d3;
}
}
{
Type_t * L_26 = V_4;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_27 = TypeExtensions_GetMethods_m2399217383(NULL /*static, unused*/, L_26, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var);
Func_2_t3487522507 * L_28 = ((U3CU3Ec_t1160215063_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var))->get_U3CU3E9__24_1_1();
Func_2_t3487522507 * L_29 = L_28;
G_B5_0 = L_29;
G_B5_1 = L_27;
if (L_29)
{
G_B6_0 = L_29;
G_B6_1 = L_27;
goto IL_0093;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var);
U3CU3Ec_t1160215063 * L_30 = ((U3CU3Ec_t1160215063_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var))->get_U3CU3E9_0();
intptr_t L_31 = (intptr_t)U3CU3Ec_U3CTryBuildImmutableForArrayContractU3Eb__24_1_m1951904024_RuntimeMethod_var;
Func_2_t3487522507 * L_32 = (Func_2_t3487522507 *)il2cpp_codegen_object_new(Func_2_t3487522507_il2cpp_TypeInfo_var);
Func_2__ctor_m1610613808(L_32, L_30, L_31, /*hidden argument*/Func_2__ctor_m1610613808_RuntimeMethod_var);
Func_2_t3487522507 * L_33 = L_32;
((U3CU3Ec_t1160215063_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var))->set_U3CU3E9__24_1_1(L_33);
G_B6_0 = L_33;
G_B6_1 = G_B5_1;
}
IL_0093:
{
MethodInfo_t * L_34 = Enumerable_FirstOrDefault_TisMethodInfo_t_m2995442962(NULL /*static, unused*/, G_B6_1, G_B6_0, /*hidden argument*/Enumerable_FirstOrDefault_TisMethodInfo_t_m2995442962_RuntimeMethod_var);
V_5 = L_34;
MethodInfo_t * L_35 = V_5;
if (!L_35)
{
goto IL_00d3;
}
}
{
Type_t ** L_36 = ___createdType2;
Type_t * L_37 = V_3;
TypeU5BU5D_t3940880105* L_38 = ((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)1));
Type_t * L_39 = ___collectionItemType1;
NullCheck(L_38);
ArrayElementTypeCheck (L_38, L_39);
(L_38)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_39);
NullCheck(L_37);
Type_t * L_40 = VirtFuncInvoker1< Type_t *, TypeU5BU5D_t3940880105* >::Invoke(104 /* System.Type System.Type::MakeGenericType(System.Type[]) */, L_37, L_38);
*((RuntimeObject **)(L_36)) = (RuntimeObject *)L_40;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_36), (RuntimeObject *)L_40);
MethodInfo_t * L_41 = V_5;
TypeU5BU5D_t3940880105* L_42 = ((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)1));
Type_t * L_43 = ___collectionItemType1;
NullCheck(L_42);
ArrayElementTypeCheck (L_42, L_43);
(L_42)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_43);
NullCheck(L_41);
MethodInfo_t * L_44 = VirtFuncInvoker1< MethodInfo_t *, TypeU5BU5D_t3940880105* >::Invoke(47 /* System.Reflection.MethodInfo System.Reflection.MethodInfo::MakeGenericMethod(System.Type[]) */, L_41, L_42);
V_6 = L_44;
ObjectConstructor_1_t3207922868 ** L_45 = ___parameterizedCreator3;
IL2CPP_RUNTIME_CLASS_INIT(JsonTypeReflector_t526591219_il2cpp_TypeInfo_var);
ReflectionDelegateFactory_t2528576452 * L_46 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
MethodInfo_t * L_47 = V_6;
NullCheck(L_46);
ObjectConstructor_1_t3207922868 * L_48 = VirtFuncInvoker1< ObjectConstructor_1_t3207922868 *, MethodBase_t * >::Invoke(5 /* Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object> Newtonsoft.Json.Utilities.ReflectionDelegateFactory::CreateParameterizedConstructor(System.Reflection.MethodBase) */, L_46, L_47);
*((RuntimeObject **)(L_45)) = (RuntimeObject *)L_48;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_45), (RuntimeObject *)L_48);
return (bool)1;
}
IL_00d3:
{
Type_t ** L_49 = ___createdType2;
*((RuntimeObject **)(L_49)) = (RuntimeObject *)NULL;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_49), (RuntimeObject *)NULL);
ObjectConstructor_1_t3207922868 ** L_50 = ___parameterizedCreator3;
*((RuntimeObject **)(L_50)) = (RuntimeObject *)NULL;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_50), (RuntimeObject *)NULL);
return (bool)0;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ImmutableCollectionsUtils::TryBuildImmutableForDictionaryContract(System.Type,System.Type,System.Type,System.Type&,Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object>&)
extern "C" bool ImmutableCollectionsUtils_TryBuildImmutableForDictionaryContract_m3362888624 (RuntimeObject * __this /* static, unused */, Type_t * ___underlyingType0, Type_t * ___keyItemType1, Type_t * ___valueItemType2, Type_t ** ___createdType3, ObjectConstructor_1_t3207922868 ** ___parameterizedCreator4, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ImmutableCollectionsUtils_TryBuildImmutableForDictionaryContract_m3362888624_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass25_0_t4147155194 * V_0 = NULL;
Type_t * V_1 = NULL;
ImmutableCollectionTypeInfo_t3023729701 * V_2 = NULL;
Type_t * V_3 = NULL;
Type_t * V_4 = NULL;
MethodInfo_t * V_5 = NULL;
MethodInfo_t * V_6 = NULL;
Func_2_t3487522507 * G_B6_0 = NULL;
RuntimeObject* G_B6_1 = NULL;
Func_2_t3487522507 * G_B5_0 = NULL;
RuntimeObject* G_B5_1 = NULL;
{
Type_t * L_0 = ___underlyingType0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_1 = TypeExtensions_IsGenericType_m3947308765(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_00dc;
}
}
{
U3CU3Ec__DisplayClass25_0_t4147155194 * L_2 = (U3CU3Ec__DisplayClass25_0_t4147155194 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass25_0_t4147155194_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass25_0__ctor_m2921334785(L_2, /*hidden argument*/NULL);
V_0 = L_2;
Type_t * L_3 = ___underlyingType0;
NullCheck(L_3);
Type_t * L_4 = VirtFuncInvoker0< Type_t * >::Invoke(110 /* System.Type System.Type::GetGenericTypeDefinition() */, L_3);
V_1 = L_4;
U3CU3Ec__DisplayClass25_0_t4147155194 * L_5 = V_0;
Type_t * L_6 = V_1;
NullCheck(L_6);
String_t* L_7 = VirtFuncInvoker0< String_t* >::Invoke(26 /* System.String System.Type::get_FullName() */, L_6);
NullCheck(L_5);
L_5->set_name_0(L_7);
IL2CPP_RUNTIME_CLASS_INIT(ImmutableCollectionsUtils_t1187443225_il2cpp_TypeInfo_var);
RuntimeObject* L_8 = ((ImmutableCollectionsUtils_t1187443225_StaticFields*)il2cpp_codegen_static_fields_for(ImmutableCollectionsUtils_t1187443225_il2cpp_TypeInfo_var))->get_DictionaryContractImmutableCollectionDefinitions_1();
U3CU3Ec__DisplayClass25_0_t4147155194 * L_9 = V_0;
intptr_t L_10 = (intptr_t)U3CU3Ec__DisplayClass25_0_U3CTryBuildImmutableForDictionaryContractU3Eb__0_m142905130_RuntimeMethod_var;
Func_2_t3660693786 * L_11 = (Func_2_t3660693786 *)il2cpp_codegen_object_new(Func_2_t3660693786_il2cpp_TypeInfo_var);
Func_2__ctor_m3706440855(L_11, L_9, L_10, /*hidden argument*/Func_2__ctor_m3706440855_RuntimeMethod_var);
ImmutableCollectionTypeInfo_t3023729701 * L_12 = Enumerable_FirstOrDefault_TisImmutableCollectionTypeInfo_t3023729701_m959056564(NULL /*static, unused*/, L_8, L_11, /*hidden argument*/Enumerable_FirstOrDefault_TisImmutableCollectionTypeInfo_t3023729701_m959056564_RuntimeMethod_var);
V_2 = L_12;
ImmutableCollectionTypeInfo_t3023729701 * L_13 = V_2;
if (!L_13)
{
goto IL_00dc;
}
}
{
Type_t * L_14 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
Assembly_t * L_15 = TypeExtensions_Assembly_m2111093205(NULL /*static, unused*/, L_14, /*hidden argument*/NULL);
ImmutableCollectionTypeInfo_t3023729701 * L_16 = V_2;
NullCheck(L_16);
String_t* L_17 = ImmutableCollectionTypeInfo_get_CreatedTypeName_m3640385327(L_16, /*hidden argument*/NULL);
NullCheck(L_15);
Type_t * L_18 = VirtFuncInvoker1< Type_t *, String_t* >::Invoke(20 /* System.Type System.Reflection.Assembly::GetType(System.String) */, L_15, L_17);
V_3 = L_18;
Type_t * L_19 = V_1;
Assembly_t * L_20 = TypeExtensions_Assembly_m2111093205(NULL /*static, unused*/, L_19, /*hidden argument*/NULL);
ImmutableCollectionTypeInfo_t3023729701 * L_21 = V_2;
NullCheck(L_21);
String_t* L_22 = ImmutableCollectionTypeInfo_get_BuilderTypeName_m3644216444(L_21, /*hidden argument*/NULL);
NullCheck(L_20);
Type_t * L_23 = VirtFuncInvoker1< Type_t *, String_t* >::Invoke(20 /* System.Type System.Reflection.Assembly::GetType(System.String) */, L_20, L_22);
V_4 = L_23;
Type_t * L_24 = V_3;
if (!L_24)
{
goto IL_00dc;
}
}
{
Type_t * L_25 = V_4;
if (!L_25)
{
goto IL_00dc;
}
}
{
Type_t * L_26 = V_4;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_27 = TypeExtensions_GetMethods_m2399217383(NULL /*static, unused*/, L_26, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var);
Func_2_t3487522507 * L_28 = ((U3CU3Ec_t1160215063_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var))->get_U3CU3E9__25_1_2();
Func_2_t3487522507 * L_29 = L_28;
G_B5_0 = L_29;
G_B5_1 = L_27;
if (L_29)
{
G_B6_0 = L_29;
G_B6_1 = L_27;
goto IL_0093;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var);
U3CU3Ec_t1160215063 * L_30 = ((U3CU3Ec_t1160215063_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var))->get_U3CU3E9_0();
intptr_t L_31 = (intptr_t)U3CU3Ec_U3CTryBuildImmutableForDictionaryContractU3Eb__25_1_m1527846207_RuntimeMethod_var;
Func_2_t3487522507 * L_32 = (Func_2_t3487522507 *)il2cpp_codegen_object_new(Func_2_t3487522507_il2cpp_TypeInfo_var);
Func_2__ctor_m1610613808(L_32, L_30, L_31, /*hidden argument*/Func_2__ctor_m1610613808_RuntimeMethod_var);
Func_2_t3487522507 * L_33 = L_32;
((U3CU3Ec_t1160215063_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var))->set_U3CU3E9__25_1_2(L_33);
G_B6_0 = L_33;
G_B6_1 = G_B5_1;
}
IL_0093:
{
MethodInfo_t * L_34 = Enumerable_FirstOrDefault_TisMethodInfo_t_m2995442962(NULL /*static, unused*/, G_B6_1, G_B6_0, /*hidden argument*/Enumerable_FirstOrDefault_TisMethodInfo_t_m2995442962_RuntimeMethod_var);
V_5 = L_34;
MethodInfo_t * L_35 = V_5;
if (!L_35)
{
goto IL_00dc;
}
}
{
Type_t ** L_36 = ___createdType3;
Type_t * L_37 = V_3;
TypeU5BU5D_t3940880105* L_38 = ((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)2));
Type_t * L_39 = ___keyItemType1;
NullCheck(L_38);
ArrayElementTypeCheck (L_38, L_39);
(L_38)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_39);
TypeU5BU5D_t3940880105* L_40 = L_38;
Type_t * L_41 = ___valueItemType2;
NullCheck(L_40);
ArrayElementTypeCheck (L_40, L_41);
(L_40)->SetAt(static_cast<il2cpp_array_size_t>(1), (Type_t *)L_41);
NullCheck(L_37);
Type_t * L_42 = VirtFuncInvoker1< Type_t *, TypeU5BU5D_t3940880105* >::Invoke(104 /* System.Type System.Type::MakeGenericType(System.Type[]) */, L_37, L_40);
*((RuntimeObject **)(L_36)) = (RuntimeObject *)L_42;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_36), (RuntimeObject *)L_42);
MethodInfo_t * L_43 = V_5;
TypeU5BU5D_t3940880105* L_44 = ((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)2));
Type_t * L_45 = ___keyItemType1;
NullCheck(L_44);
ArrayElementTypeCheck (L_44, L_45);
(L_44)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_45);
TypeU5BU5D_t3940880105* L_46 = L_44;
Type_t * L_47 = ___valueItemType2;
NullCheck(L_46);
ArrayElementTypeCheck (L_46, L_47);
(L_46)->SetAt(static_cast<il2cpp_array_size_t>(1), (Type_t *)L_47);
NullCheck(L_43);
MethodInfo_t * L_48 = VirtFuncInvoker1< MethodInfo_t *, TypeU5BU5D_t3940880105* >::Invoke(47 /* System.Reflection.MethodInfo System.Reflection.MethodInfo::MakeGenericMethod(System.Type[]) */, L_43, L_46);
V_6 = L_48;
ObjectConstructor_1_t3207922868 ** L_49 = ___parameterizedCreator4;
IL2CPP_RUNTIME_CLASS_INIT(JsonTypeReflector_t526591219_il2cpp_TypeInfo_var);
ReflectionDelegateFactory_t2528576452 * L_50 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
MethodInfo_t * L_51 = V_6;
NullCheck(L_50);
ObjectConstructor_1_t3207922868 * L_52 = VirtFuncInvoker1< ObjectConstructor_1_t3207922868 *, MethodBase_t * >::Invoke(5 /* Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object> Newtonsoft.Json.Utilities.ReflectionDelegateFactory::CreateParameterizedConstructor(System.Reflection.MethodBase) */, L_50, L_51);
*((RuntimeObject **)(L_49)) = (RuntimeObject *)L_52;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_49), (RuntimeObject *)L_52);
return (bool)1;
}
IL_00dc:
{
Type_t ** L_53 = ___createdType3;
*((RuntimeObject **)(L_53)) = (RuntimeObject *)NULL;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_53), (RuntimeObject *)NULL);
ObjectConstructor_1_t3207922868 ** L_54 = ___parameterizedCreator4;
*((RuntimeObject **)(L_54)) = (RuntimeObject *)NULL;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_54), (RuntimeObject *)NULL);
return (bool)0;
}
}
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils::.cctor()
extern "C" void ImmutableCollectionsUtils__cctor_m2160828955 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ImmutableCollectionsUtils__cctor_m2160828955_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
List_1_t200837147 * L_0 = (List_1_t200837147 *)il2cpp_codegen_object_new(List_1_t200837147_il2cpp_TypeInfo_var);
List_1__ctor_m3987229414(L_0, /*hidden argument*/List_1__ctor_m3987229414_RuntimeMethod_var);
List_1_t200837147 * L_1 = L_0;
ImmutableCollectionTypeInfo_t3023729701 * L_2 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_2, _stringLiteral1750465957, _stringLiteral3085523314, _stringLiteral4039369550, /*hidden argument*/NULL);
NullCheck(L_1);
List_1_Add_m2120795546(L_1, L_2, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
List_1_t200837147 * L_3 = L_1;
ImmutableCollectionTypeInfo_t3023729701 * L_4 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_4, _stringLiteral3085523314, _stringLiteral3085523314, _stringLiteral4039369550, /*hidden argument*/NULL);
NullCheck(L_3);
List_1_Add_m2120795546(L_3, L_4, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
List_1_t200837147 * L_5 = L_3;
ImmutableCollectionTypeInfo_t3023729701 * L_6 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_6, _stringLiteral1584236629, _stringLiteral1570804612, _stringLiteral1216799084, /*hidden argument*/NULL);
NullCheck(L_5);
List_1_Add_m2120795546(L_5, L_6, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
List_1_t200837147 * L_7 = L_5;
ImmutableCollectionTypeInfo_t3023729701 * L_8 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_8, _stringLiteral1570804612, _stringLiteral1570804612, _stringLiteral1216799084, /*hidden argument*/NULL);
NullCheck(L_7);
List_1_Add_m2120795546(L_7, L_8, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
List_1_t200837147 * L_9 = L_7;
ImmutableCollectionTypeInfo_t3023729701 * L_10 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_10, _stringLiteral2849607304, _stringLiteral2161219340, _stringLiteral3803702388, /*hidden argument*/NULL);
NullCheck(L_9);
List_1_Add_m2120795546(L_9, L_10, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
List_1_t200837147 * L_11 = L_9;
ImmutableCollectionTypeInfo_t3023729701 * L_12 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_12, _stringLiteral2161219340, _stringLiteral2161219340, _stringLiteral3803702388, /*hidden argument*/NULL);
NullCheck(L_11);
List_1_Add_m2120795546(L_11, L_12, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
List_1_t200837147 * L_13 = L_11;
ImmutableCollectionTypeInfo_t3023729701 * L_14 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_14, _stringLiteral3759023024, _stringLiteral1349364048, _stringLiteral3684558125, /*hidden argument*/NULL);
NullCheck(L_13);
List_1_Add_m2120795546(L_13, L_14, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
List_1_t200837147 * L_15 = L_13;
ImmutableCollectionTypeInfo_t3023729701 * L_16 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_16, _stringLiteral1349364048, _stringLiteral1349364048, _stringLiteral3684558125, /*hidden argument*/NULL);
NullCheck(L_15);
List_1_Add_m2120795546(L_15, L_16, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
List_1_t200837147 * L_17 = L_15;
ImmutableCollectionTypeInfo_t3023729701 * L_18 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_18, _stringLiteral1677940749, _stringLiteral1677940749, _stringLiteral3842233882, /*hidden argument*/NULL);
NullCheck(L_17);
List_1_Add_m2120795546(L_17, L_18, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
List_1_t200837147 * L_19 = L_17;
ImmutableCollectionTypeInfo_t3023729701 * L_20 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_20, _stringLiteral3592137729, _stringLiteral3592137729, _stringLiteral3930192711, /*hidden argument*/NULL);
NullCheck(L_19);
List_1_Add_m2120795546(L_19, L_20, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
((ImmutableCollectionsUtils_t1187443225_StaticFields*)il2cpp_codegen_static_fields_for(ImmutableCollectionsUtils_t1187443225_il2cpp_TypeInfo_var))->set_ArrayContractImmutableCollectionDefinitions_0(L_19);
List_1_t200837147 * L_21 = (List_1_t200837147 *)il2cpp_codegen_object_new(List_1_t200837147_il2cpp_TypeInfo_var);
List_1__ctor_m3987229414(L_21, /*hidden argument*/List_1__ctor_m3987229414_RuntimeMethod_var);
List_1_t200837147 * L_22 = L_21;
ImmutableCollectionTypeInfo_t3023729701 * L_23 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_23, _stringLiteral678685504, _stringLiteral797115715, _stringLiteral2217537257, /*hidden argument*/NULL);
NullCheck(L_22);
List_1_Add_m2120795546(L_22, L_23, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
List_1_t200837147 * L_24 = L_22;
ImmutableCollectionTypeInfo_t3023729701 * L_25 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_25, _stringLiteral797115715, _stringLiteral797115715, _stringLiteral2217537257, /*hidden argument*/NULL);
NullCheck(L_24);
List_1_Add_m2120795546(L_24, L_25, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
List_1_t200837147 * L_26 = L_24;
ImmutableCollectionTypeInfo_t3023729701 * L_27 = (ImmutableCollectionTypeInfo_t3023729701 *)il2cpp_codegen_object_new(ImmutableCollectionTypeInfo_t3023729701_il2cpp_TypeInfo_var);
ImmutableCollectionTypeInfo__ctor_m2154205830(L_27, _stringLiteral2578847608, _stringLiteral2578847608, _stringLiteral3746828676, /*hidden argument*/NULL);
NullCheck(L_26);
List_1_Add_m2120795546(L_26, L_27, /*hidden argument*/List_1_Add_m2120795546_RuntimeMethod_var);
((ImmutableCollectionsUtils_t1187443225_StaticFields*)il2cpp_codegen_static_fields_for(ImmutableCollectionsUtils_t1187443225_il2cpp_TypeInfo_var))->set_DictionaryContractImmutableCollectionDefinitions_1(L_26);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c::.cctor()
extern "C" void U3CU3Ec__cctor_m2098059626 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__cctor_m2098059626_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
U3CU3Ec_t1160215063 * L_0 = (U3CU3Ec_t1160215063 *)il2cpp_codegen_object_new(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var);
U3CU3Ec__ctor_m3145656006(L_0, /*hidden argument*/NULL);
((U3CU3Ec_t1160215063_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t1160215063_il2cpp_TypeInfo_var))->set_U3CU3E9_0(L_0);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c::.ctor()
extern "C" void U3CU3Ec__ctor_m3145656006 (U3CU3Ec_t1160215063 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c::<TryBuildImmutableForArrayContract>b__24_1(System.Reflection.MethodInfo)
extern "C" bool U3CU3Ec_U3CTryBuildImmutableForArrayContractU3Eb__24_1_m1951904024 (U3CU3Ec_t1160215063 * __this, MethodInfo_t * ___m0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec_U3CTryBuildImmutableForArrayContractU3Eb__24_1_m1951904024_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MethodInfo_t * L_0 = ___m0;
NullCheck(L_0);
String_t* L_1 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_0);
bool L_2 = String_op_Equality_m920492651(NULL /*static, unused*/, L_1, _stringLiteral2011537708, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_001e;
}
}
{
MethodInfo_t * L_3 = ___m0;
NullCheck(L_3);
ParameterInfoU5BU5D_t390618515* L_4 = VirtFuncInvoker0< ParameterInfoU5BU5D_t390618515* >::Invoke(17 /* System.Reflection.ParameterInfo[] System.Reflection.MethodBase::GetParameters() */, L_3);
NullCheck(L_4);
return (bool)((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_4)->max_length))))) == ((int32_t)1))? 1 : 0);
}
IL_001e:
{
return (bool)0;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c::<TryBuildImmutableForDictionaryContract>b__25_1(System.Reflection.MethodInfo)
extern "C" bool U3CU3Ec_U3CTryBuildImmutableForDictionaryContractU3Eb__25_1_m1527846207 (U3CU3Ec_t1160215063 * __this, MethodInfo_t * ___m0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec_U3CTryBuildImmutableForDictionaryContractU3Eb__25_1_m1527846207_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
ParameterInfoU5BU5D_t390618515* V_0 = NULL;
{
MethodInfo_t * L_0 = ___m0;
NullCheck(L_0);
ParameterInfoU5BU5D_t390618515* L_1 = VirtFuncInvoker0< ParameterInfoU5BU5D_t390618515* >::Invoke(17 /* System.Reflection.ParameterInfo[] System.Reflection.MethodBase::GetParameters() */, L_0);
V_0 = L_1;
MethodInfo_t * L_2 = ___m0;
NullCheck(L_2);
String_t* L_3 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_2);
bool L_4 = String_op_Equality_m920492651(NULL /*static, unused*/, L_3, _stringLiteral2011537708, /*hidden argument*/NULL);
if (!L_4)
{
goto IL_0048;
}
}
{
ParameterInfoU5BU5D_t390618515* L_5 = V_0;
NullCheck(L_5);
if ((!(((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_5)->max_length))))) == ((uint32_t)1))))
{
goto IL_0048;
}
}
{
ParameterInfoU5BU5D_t390618515* L_6 = V_0;
NullCheck(L_6);
int32_t L_7 = 0;
ParameterInfo_t1861056598 * L_8 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_7));
NullCheck(L_8);
Type_t * L_9 = VirtFuncInvoker0< Type_t * >::Invoke(7 /* System.Type System.Reflection.ParameterInfo::get_ParameterType() */, L_8);
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_10 = TypeExtensions_IsGenericType_m3947308765(NULL /*static, unused*/, L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_0048;
}
}
{
ParameterInfoU5BU5D_t390618515* L_11 = V_0;
NullCheck(L_11);
int32_t L_12 = 0;
ParameterInfo_t1861056598 * L_13 = (L_11)->GetAt(static_cast<il2cpp_array_size_t>(L_12));
NullCheck(L_13);
Type_t * L_14 = VirtFuncInvoker0< Type_t * >::Invoke(7 /* System.Type System.Reflection.ParameterInfo::get_ParameterType() */, L_13);
NullCheck(L_14);
Type_t * L_15 = VirtFuncInvoker0< Type_t * >::Invoke(110 /* System.Type System.Type::GetGenericTypeDefinition() */, L_14);
RuntimeTypeHandle_t3027515415 L_16 = { reinterpret_cast<intptr_t> (IEnumerable_1_t1615002100_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_17 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_16, /*hidden argument*/NULL);
return (bool)((((RuntimeObject*)(Type_t *)L_15) == ((RuntimeObject*)(Type_t *)L_17))? 1 : 0);
}
IL_0048:
{
return (bool)0;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass24_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass24_0__ctor_m3082183600 (U3CU3Ec__DisplayClass24_0_t2581071253 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass24_0::<TryBuildImmutableForArrayContract>b__0(Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo)
extern "C" bool U3CU3Ec__DisplayClass24_0_U3CTryBuildImmutableForArrayContractU3Eb__0_m3747953282 (U3CU3Ec__DisplayClass24_0_t2581071253 * __this, ImmutableCollectionTypeInfo_t3023729701 * ___d0, const RuntimeMethod* method)
{
{
ImmutableCollectionTypeInfo_t3023729701 * L_0 = ___d0;
NullCheck(L_0);
String_t* L_1 = ImmutableCollectionTypeInfo_get_ContractTypeName_m1106369950(L_0, /*hidden argument*/NULL);
String_t* L_2 = __this->get_name_0();
bool L_3 = String_op_Equality_m920492651(NULL /*static, unused*/, L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass25_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass25_0__ctor_m2921334785 (U3CU3Ec__DisplayClass25_0_t4147155194 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/<>c__DisplayClass25_0::<TryBuildImmutableForDictionaryContract>b__0(Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo)
extern "C" bool U3CU3Ec__DisplayClass25_0_U3CTryBuildImmutableForDictionaryContractU3Eb__0_m142905130 (U3CU3Ec__DisplayClass25_0_t4147155194 * __this, ImmutableCollectionTypeInfo_t3023729701 * ___d0, const RuntimeMethod* method)
{
{
ImmutableCollectionTypeInfo_t3023729701 * L_0 = ___d0;
NullCheck(L_0);
String_t* L_1 = ImmutableCollectionTypeInfo_get_ContractTypeName_m1106369950(L_0, /*hidden argument*/NULL);
String_t* L_2 = __this->get_name_0();
bool L_3 = String_op_Equality_m920492651(NULL /*static, unused*/, L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::.ctor(System.String,System.String,System.String)
extern "C" void ImmutableCollectionTypeInfo__ctor_m2154205830 (ImmutableCollectionTypeInfo_t3023729701 * __this, String_t* ___contractTypeName0, String_t* ___createdTypeName1, String_t* ___builderTypeName2, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
String_t* L_0 = ___contractTypeName0;
ImmutableCollectionTypeInfo_set_ContractTypeName_m2080545341(__this, L_0, /*hidden argument*/NULL);
String_t* L_1 = ___createdTypeName1;
ImmutableCollectionTypeInfo_set_CreatedTypeName_m1127213754(__this, L_1, /*hidden argument*/NULL);
String_t* L_2 = ___builderTypeName2;
ImmutableCollectionTypeInfo_set_BuilderTypeName_m2064247850(__this, L_2, /*hidden argument*/NULL);
return;
}
}
// System.String Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::get_ContractTypeName()
extern "C" String_t* ImmutableCollectionTypeInfo_get_ContractTypeName_m1106369950 (ImmutableCollectionTypeInfo_t3023729701 * __this, const RuntimeMethod* method)
{
{
String_t* L_0 = __this->get_U3CContractTypeNameU3Ek__BackingField_0();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::set_ContractTypeName(System.String)
extern "C" void ImmutableCollectionTypeInfo_set_ContractTypeName_m2080545341 (ImmutableCollectionTypeInfo_t3023729701 * __this, String_t* ___value0, const RuntimeMethod* method)
{
{
String_t* L_0 = ___value0;
__this->set_U3CContractTypeNameU3Ek__BackingField_0(L_0);
return;
}
}
// System.String Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::get_CreatedTypeName()
extern "C" String_t* ImmutableCollectionTypeInfo_get_CreatedTypeName_m3640385327 (ImmutableCollectionTypeInfo_t3023729701 * __this, const RuntimeMethod* method)
{
{
String_t* L_0 = __this->get_U3CCreatedTypeNameU3Ek__BackingField_1();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::set_CreatedTypeName(System.String)
extern "C" void ImmutableCollectionTypeInfo_set_CreatedTypeName_m1127213754 (ImmutableCollectionTypeInfo_t3023729701 * __this, String_t* ___value0, const RuntimeMethod* method)
{
{
String_t* L_0 = ___value0;
__this->set_U3CCreatedTypeNameU3Ek__BackingField_1(L_0);
return;
}
}
// System.String Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::get_BuilderTypeName()
extern "C" String_t* ImmutableCollectionTypeInfo_get_BuilderTypeName_m3644216444 (ImmutableCollectionTypeInfo_t3023729701 * __this, const RuntimeMethod* method)
{
{
String_t* L_0 = __this->get_U3CBuilderTypeNameU3Ek__BackingField_2();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.ImmutableCollectionsUtils/ImmutableCollectionTypeInfo::set_BuilderTypeName(System.String)
extern "C" void ImmutableCollectionTypeInfo_set_BuilderTypeName_m2064247850 (ImmutableCollectionTypeInfo_t3023729701 * __this, String_t* ___value0, const RuntimeMethod* method)
{
{
String_t* L_0 = ___value0;
__this->set_U3CBuilderTypeNameU3Ek__BackingField_2(L_0);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.JavaScriptUtils::.cctor()
extern "C" void JavaScriptUtils__cctor_m2960747719 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (JavaScriptUtils__cctor_m2960747719_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* V_0 = NULL;
int32_t V_1 = 0;
RuntimeObject* V_2 = NULL;
Il2CppChar V_3 = 0x0;
Il2CppChar V_4 = 0x0;
Il2CppChar V_5 = 0x0;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
((JavaScriptUtils_t1108575081_StaticFields*)il2cpp_codegen_static_fields_for(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var))->set_SingleQuoteCharEscapeFlags_0(((BooleanU5BU5D_t2897418192*)SZArrayNew(BooleanU5BU5D_t2897418192_il2cpp_TypeInfo_var, (uint32_t)((int32_t)128))));
((JavaScriptUtils_t1108575081_StaticFields*)il2cpp_codegen_static_fields_for(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var))->set_DoubleQuoteCharEscapeFlags_1(((BooleanU5BU5D_t2897418192*)SZArrayNew(BooleanU5BU5D_t2897418192_il2cpp_TypeInfo_var, (uint32_t)((int32_t)128))));
((JavaScriptUtils_t1108575081_StaticFields*)il2cpp_codegen_static_fields_for(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var))->set_HtmlCharEscapeFlags_2(((BooleanU5BU5D_t2897418192*)SZArrayNew(BooleanU5BU5D_t2897418192_il2cpp_TypeInfo_var, (uint32_t)((int32_t)128))));
List_1_t811567916 * L_0 = (List_1_t811567916 *)il2cpp_codegen_object_new(List_1_t811567916_il2cpp_TypeInfo_var);
List_1__ctor_m1735334926(L_0, /*hidden argument*/List_1__ctor_m1735334926_RuntimeMethod_var);
List_1_t811567916 * L_1 = L_0;
NullCheck(L_1);
List_1_Add_m1266383442(L_1, ((int32_t)10), /*hidden argument*/List_1_Add_m1266383442_RuntimeMethod_var);
List_1_t811567916 * L_2 = L_1;
NullCheck(L_2);
List_1_Add_m1266383442(L_2, ((int32_t)13), /*hidden argument*/List_1_Add_m1266383442_RuntimeMethod_var);
List_1_t811567916 * L_3 = L_2;
NullCheck(L_3);
List_1_Add_m1266383442(L_3, ((int32_t)9), /*hidden argument*/List_1_Add_m1266383442_RuntimeMethod_var);
List_1_t811567916 * L_4 = L_3;
NullCheck(L_4);
List_1_Add_m1266383442(L_4, ((int32_t)92), /*hidden argument*/List_1_Add_m1266383442_RuntimeMethod_var);
List_1_t811567916 * L_5 = L_4;
NullCheck(L_5);
List_1_Add_m1266383442(L_5, ((int32_t)12), /*hidden argument*/List_1_Add_m1266383442_RuntimeMethod_var);
List_1_t811567916 * L_6 = L_5;
NullCheck(L_6);
List_1_Add_m1266383442(L_6, 8, /*hidden argument*/List_1_Add_m1266383442_RuntimeMethod_var);
V_0 = (RuntimeObject*)L_6;
V_1 = 0;
goto IL_0072;
}
IL_0066:
{
RuntimeObject* L_7 = V_0;
int32_t L_8 = V_1;
NullCheck(L_7);
InterfaceActionInvoker1< Il2CppChar >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Char>::Add(!0) */, ICollection_1_t2167645408_il2cpp_TypeInfo_var, L_7, (((int32_t)((uint16_t)L_8))));
int32_t L_9 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_9, (int32_t)1));
}
IL_0072:
{
int32_t L_10 = V_1;
if ((((int32_t)L_10) < ((int32_t)((int32_t)32))))
{
goto IL_0066;
}
}
{
RuntimeObject* L_11 = V_0;
CharU5BU5D_t3528271667* L_12 = ((CharU5BU5D_t3528271667*)SZArrayNew(CharU5BU5D_t3528271667_il2cpp_TypeInfo_var, (uint32_t)1));
NullCheck(L_12);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppChar)((int32_t)39));
RuntimeObject* L_13 = Enumerable_Union_TisChar_t3634460470_m3294811350(NULL /*static, unused*/, L_11, (RuntimeObject*)(RuntimeObject*)L_12, /*hidden argument*/Enumerable_Union_TisChar_t3634460470_m3294811350_RuntimeMethod_var);
NullCheck(L_13);
RuntimeObject* L_14 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Char>::GetEnumerator() */, IEnumerable_1_t2614313359_il2cpp_TypeInfo_var, L_13);
V_2 = L_14;
}
IL_008e:
try
{ // begin try (depth: 1)
{
goto IL_009f;
}
IL_0090:
{
RuntimeObject* L_15 = V_2;
NullCheck(L_15);
Il2CppChar L_16 = InterfaceFuncInvoker0< Il2CppChar >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Char>::get_Current() */, IEnumerator_1_t4067030938_il2cpp_TypeInfo_var, L_15);
V_3 = L_16;
BooleanU5BU5D_t2897418192* L_17 = ((JavaScriptUtils_t1108575081_StaticFields*)il2cpp_codegen_static_fields_for(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var))->get_SingleQuoteCharEscapeFlags_0();
Il2CppChar L_18 = V_3;
NullCheck(L_17);
(L_17)->SetAt(static_cast<il2cpp_array_size_t>(L_18), (bool)1);
}
IL_009f:
{
RuntimeObject* L_19 = V_2;
NullCheck(L_19);
bool L_20 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_19);
if (L_20)
{
goto IL_0090;
}
}
IL_00a7:
{
IL2CPP_LEAVE(0xB3, FINALLY_00a9);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00a9;
}
FINALLY_00a9:
{ // begin finally (depth: 1)
{
RuntimeObject* L_21 = V_2;
if (!L_21)
{
goto IL_00b2;
}
}
IL_00ac:
{
RuntimeObject* L_22 = V_2;
NullCheck(L_22);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_22);
}
IL_00b2:
{
IL2CPP_END_FINALLY(169)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(169)
{
IL2CPP_JUMP_TBL(0xB3, IL_00b3)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00b3:
{
RuntimeObject* L_23 = V_0;
CharU5BU5D_t3528271667* L_24 = ((CharU5BU5D_t3528271667*)SZArrayNew(CharU5BU5D_t3528271667_il2cpp_TypeInfo_var, (uint32_t)1));
NullCheck(L_24);
(L_24)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppChar)((int32_t)34));
RuntimeObject* L_25 = Enumerable_Union_TisChar_t3634460470_m3294811350(NULL /*static, unused*/, L_23, (RuntimeObject*)(RuntimeObject*)L_24, /*hidden argument*/Enumerable_Union_TisChar_t3634460470_m3294811350_RuntimeMethod_var);
NullCheck(L_25);
RuntimeObject* L_26 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Char>::GetEnumerator() */, IEnumerable_1_t2614313359_il2cpp_TypeInfo_var, L_25);
V_2 = L_26;
}
IL_00ca:
try
{ // begin try (depth: 1)
{
goto IL_00dd;
}
IL_00cc:
{
RuntimeObject* L_27 = V_2;
NullCheck(L_27);
Il2CppChar L_28 = InterfaceFuncInvoker0< Il2CppChar >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Char>::get_Current() */, IEnumerator_1_t4067030938_il2cpp_TypeInfo_var, L_27);
V_4 = L_28;
BooleanU5BU5D_t2897418192* L_29 = ((JavaScriptUtils_t1108575081_StaticFields*)il2cpp_codegen_static_fields_for(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var))->get_DoubleQuoteCharEscapeFlags_1();
Il2CppChar L_30 = V_4;
NullCheck(L_29);
(L_29)->SetAt(static_cast<il2cpp_array_size_t>(L_30), (bool)1);
}
IL_00dd:
{
RuntimeObject* L_31 = V_2;
NullCheck(L_31);
bool L_32 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_31);
if (L_32)
{
goto IL_00cc;
}
}
IL_00e5:
{
IL2CPP_LEAVE(0xF1, FINALLY_00e7);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00e7;
}
FINALLY_00e7:
{ // begin finally (depth: 1)
{
RuntimeObject* L_33 = V_2;
if (!L_33)
{
goto IL_00f0;
}
}
IL_00ea:
{
RuntimeObject* L_34 = V_2;
NullCheck(L_34);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_34);
}
IL_00f0:
{
IL2CPP_END_FINALLY(231)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(231)
{
IL2CPP_JUMP_TBL(0xF1, IL_00f1)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00f1:
{
RuntimeObject* L_35 = V_0;
CharU5BU5D_t3528271667* L_36 = ((CharU5BU5D_t3528271667*)SZArrayNew(CharU5BU5D_t3528271667_il2cpp_TypeInfo_var, (uint32_t)5));
RuntimeFieldHandle_t1871169219 L_37 = { reinterpret_cast<intptr_t> (U3CPrivateImplementationDetailsU3E_t3057255369____D40004AB0E92BF6C8DFE481B56BE3D04ABDA76EB_15_FieldInfo_var) };
RuntimeHelpers_InitializeArray_m3117905507(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_36, L_37, /*hidden argument*/NULL);
RuntimeObject* L_38 = Enumerable_Union_TisChar_t3634460470_m3294811350(NULL /*static, unused*/, L_35, (RuntimeObject*)(RuntimeObject*)L_36, /*hidden argument*/Enumerable_Union_TisChar_t3634460470_m3294811350_RuntimeMethod_var);
NullCheck(L_38);
RuntimeObject* L_39 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Char>::GetEnumerator() */, IEnumerable_1_t2614313359_il2cpp_TypeInfo_var, L_38);
V_2 = L_39;
}
IL_010e:
try
{ // begin try (depth: 1)
{
goto IL_0121;
}
IL_0110:
{
RuntimeObject* L_40 = V_2;
NullCheck(L_40);
Il2CppChar L_41 = InterfaceFuncInvoker0< Il2CppChar >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Char>::get_Current() */, IEnumerator_1_t4067030938_il2cpp_TypeInfo_var, L_40);
V_5 = L_41;
BooleanU5BU5D_t2897418192* L_42 = ((JavaScriptUtils_t1108575081_StaticFields*)il2cpp_codegen_static_fields_for(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var))->get_HtmlCharEscapeFlags_2();
Il2CppChar L_43 = V_5;
NullCheck(L_42);
(L_42)->SetAt(static_cast<il2cpp_array_size_t>(L_43), (bool)1);
}
IL_0121:
{
RuntimeObject* L_44 = V_2;
NullCheck(L_44);
bool L_45 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_44);
if (L_45)
{
goto IL_0110;
}
}
IL_0129:
{
IL2CPP_LEAVE(0x135, FINALLY_012b);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_012b;
}
FINALLY_012b:
{ // begin finally (depth: 1)
{
RuntimeObject* L_46 = V_2;
if (!L_46)
{
goto IL_0134;
}
}
IL_012e:
{
RuntimeObject* L_47 = V_2;
NullCheck(L_47);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_47);
}
IL_0134:
{
IL2CPP_END_FINALLY(299)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(299)
{
IL2CPP_JUMP_TBL(0x135, IL_0135)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0135:
{
return;
}
}
// System.Boolean[] Newtonsoft.Json.Utilities.JavaScriptUtils::GetCharEscapeFlags(Newtonsoft.Json.StringEscapeHandling,System.Char)
extern "C" BooleanU5BU5D_t2897418192* JavaScriptUtils_GetCharEscapeFlags_m2215130569 (RuntimeObject * __this /* static, unused */, int32_t ___stringEscapeHandling0, Il2CppChar ___quoteChar1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (JavaScriptUtils_GetCharEscapeFlags_m2215130569_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = ___stringEscapeHandling0;
if ((!(((uint32_t)L_0) == ((uint32_t)2))))
{
goto IL_000a;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var);
BooleanU5BU5D_t2897418192* L_1 = ((JavaScriptUtils_t1108575081_StaticFields*)il2cpp_codegen_static_fields_for(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var))->get_HtmlCharEscapeFlags_2();
return L_1;
}
IL_000a:
{
Il2CppChar L_2 = ___quoteChar1;
if ((!(((uint32_t)L_2) == ((uint32_t)((int32_t)34)))))
{
goto IL_0015;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var);
BooleanU5BU5D_t2897418192* L_3 = ((JavaScriptUtils_t1108575081_StaticFields*)il2cpp_codegen_static_fields_for(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var))->get_DoubleQuoteCharEscapeFlags_1();
return L_3;
}
IL_0015:
{
IL2CPP_RUNTIME_CLASS_INIT(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var);
BooleanU5BU5D_t2897418192* L_4 = ((JavaScriptUtils_t1108575081_StaticFields*)il2cpp_codegen_static_fields_for(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var))->get_SingleQuoteCharEscapeFlags_0();
return L_4;
}
}
// System.Boolean Newtonsoft.Json.Utilities.JavaScriptUtils::ShouldEscapeJavaScriptString(System.String,System.Boolean[])
extern "C" bool JavaScriptUtils_ShouldEscapeJavaScriptString_m4145948594 (RuntimeObject * __this /* static, unused */, String_t* ___s0, BooleanU5BU5D_t2897418192* ___charEscapeFlags1, const RuntimeMethod* method)
{
String_t* V_0 = NULL;
int32_t V_1 = 0;
Il2CppChar V_2 = 0x0;
{
String_t* L_0 = ___s0;
if (L_0)
{
goto IL_0005;
}
}
{
return (bool)0;
}
IL_0005:
{
String_t* L_1 = ___s0;
V_0 = L_1;
V_1 = 0;
goto IL_0024;
}
IL_000b:
{
String_t* L_2 = V_0;
int32_t L_3 = V_1;
NullCheck(L_2);
Il2CppChar L_4 = String_get_Chars_m2986988803(L_2, L_3, /*hidden argument*/NULL);
V_2 = L_4;
Il2CppChar L_5 = V_2;
BooleanU5BU5D_t2897418192* L_6 = ___charEscapeFlags1;
NullCheck(L_6);
if ((((int32_t)L_5) >= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_6)->max_length)))))))
{
goto IL_001e;
}
}
{
BooleanU5BU5D_t2897418192* L_7 = ___charEscapeFlags1;
Il2CppChar L_8 = V_2;
NullCheck(L_7);
Il2CppChar L_9 = L_8;
uint8_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
if (!L_10)
{
goto IL_0020;
}
}
IL_001e:
{
return (bool)1;
}
IL_0020:
{
int32_t L_11 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_11, (int32_t)1));
}
IL_0024:
{
int32_t L_12 = V_1;
String_t* L_13 = V_0;
NullCheck(L_13);
int32_t L_14 = String_get_Length_m3847582255(L_13, /*hidden argument*/NULL);
if ((((int32_t)L_12) < ((int32_t)L_14)))
{
goto IL_000b;
}
}
{
return (bool)0;
}
}
// System.Void Newtonsoft.Json.Utilities.JavaScriptUtils::WriteEscapedJavaScriptString(System.IO.TextWriter,System.String,System.Char,System.Boolean,System.Boolean[],Newtonsoft.Json.StringEscapeHandling,Newtonsoft.Json.IArrayPool`1<System.Char>,System.Char[]&)
extern "C" void JavaScriptUtils_WriteEscapedJavaScriptString_m1556362848 (RuntimeObject * __this /* static, unused */, TextWriter_t3478189236 * ___writer0, String_t* ___s1, Il2CppChar ___delimiter2, bool ___appendDelimiters3, BooleanU5BU5D_t2897418192* ___charEscapeFlags4, int32_t ___stringEscapeHandling5, RuntimeObject* ___bufferPool6, CharU5BU5D_t3528271667** ___writeBuffer7, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (JavaScriptUtils_WriteEscapedJavaScriptString_m1556362848_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
Il2CppChar V_2 = 0x0;
String_t* V_3 = NULL;
bool V_4 = false;
int32_t V_5 = 0;
int32_t V_6 = 0;
CharU5BU5D_t3528271667* V_7 = NULL;
int32_t V_8 = 0;
int32_t G_B40_0 = 0;
int32_t G_B39_0 = 0;
int32_t G_B41_0 = 0;
int32_t G_B41_1 = 0;
int32_t G_B44_0 = 0;
{
bool L_0 = ___appendDelimiters3;
if (!L_0)
{
goto IL_000a;
}
}
{
TextWriter_t3478189236 * L_1 = ___writer0;
Il2CppChar L_2 = ___delimiter2;
NullCheck(L_1);
VirtActionInvoker1< Il2CppChar >::Invoke(12 /* System.Void System.IO.TextWriter::Write(System.Char) */, L_1, L_2);
}
IL_000a:
{
String_t* L_3 = ___s1;
if (!L_3)
{
goto IL_0228;
}
}
{
V_0 = 0;
V_1 = 0;
goto IL_01d0;
}
IL_0019:
{
String_t* L_4 = ___s1;
int32_t L_5 = V_1;
NullCheck(L_4);
Il2CppChar L_6 = String_get_Chars_m2986988803(L_4, L_5, /*hidden argument*/NULL);
V_2 = L_6;
Il2CppChar L_7 = V_2;
BooleanU5BU5D_t2897418192* L_8 = ___charEscapeFlags4;
NullCheck(L_8);
if ((((int32_t)L_7) >= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_8)->max_length)))))))
{
goto IL_0031;
}
}
{
BooleanU5BU5D_t2897418192* L_9 = ___charEscapeFlags4;
Il2CppChar L_10 = V_2;
NullCheck(L_9);
Il2CppChar L_11 = L_10;
uint8_t L_12 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_11));
if (!L_12)
{
goto IL_01cc;
}
}
IL_0031:
{
Il2CppChar L_13 = V_2;
if ((!(((uint32_t)L_13) <= ((uint32_t)((int32_t)92)))))
{
goto IL_005d;
}
}
{
Il2CppChar L_14 = V_2;
switch (((int32_t)il2cpp_codegen_subtract((int32_t)L_14, (int32_t)8)))
{
case 0:
{
goto IL_00a3;
}
case 1:
{
goto IL_0077;
}
case 2:
{
goto IL_0082;
}
case 3:
{
goto IL_00cb;
}
case 4:
{
goto IL_0098;
}
case 5:
{
goto IL_008d;
}
}
}
{
Il2CppChar L_15 = V_2;
if ((((int32_t)L_15) == ((int32_t)((int32_t)92))))
{
goto IL_00ab;
}
}
{
goto IL_00cb;
}
IL_005d:
{
Il2CppChar L_16 = V_2;
if ((((int32_t)L_16) == ((int32_t)((int32_t)133))))
{
goto IL_00b3;
}
}
{
Il2CppChar L_17 = V_2;
if ((((int32_t)L_17) == ((int32_t)((int32_t)8232))))
{
goto IL_00bb;
}
}
{
Il2CppChar L_18 = V_2;
if ((((int32_t)L_18) == ((int32_t)((int32_t)8233))))
{
goto IL_00c3;
}
}
{
goto IL_00cb;
}
IL_0077:
{
V_3 = _stringLiteral3455498228;
goto IL_0129;
}
IL_0082:
{
V_3 = _stringLiteral3454842868;
goto IL_0129;
}
IL_008d:
{
V_3 = _stringLiteral3455629300;
goto IL_0129;
}
IL_0098:
{
V_3 = _stringLiteral3454318580;
goto IL_0129;
}
IL_00a3:
{
V_3 = _stringLiteral3454580724;
goto IL_0129;
}
IL_00ab:
{
V_3 = _stringLiteral3458119668;
goto IL_0129;
}
IL_00b3:
{
V_3 = _stringLiteral3145209596;
goto IL_0129;
}
IL_00bb:
{
V_3 = _stringLiteral12320812;
goto IL_0129;
}
IL_00c3:
{
V_3 = _stringLiteral12255276;
goto IL_0129;
}
IL_00cb:
{
Il2CppChar L_19 = V_2;
BooleanU5BU5D_t2897418192* L_20 = ___charEscapeFlags4;
NullCheck(L_20);
if ((((int32_t)L_19) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_20)->max_length)))))))
{
goto IL_00d7;
}
}
{
int32_t L_21 = ___stringEscapeHandling5;
if ((!(((uint32_t)L_21) == ((uint32_t)1))))
{
goto IL_0127;
}
}
IL_00d7:
{
Il2CppChar L_22 = V_2;
if ((!(((uint32_t)L_22) == ((uint32_t)((int32_t)39)))))
{
goto IL_00e9;
}
}
{
int32_t L_23 = ___stringEscapeHandling5;
if ((((int32_t)L_23) == ((int32_t)2)))
{
goto IL_00e9;
}
}
{
V_3 = _stringLiteral3450058740;
goto IL_0129;
}
IL_00e9:
{
Il2CppChar L_24 = V_2;
if ((!(((uint32_t)L_24) == ((uint32_t)((int32_t)34)))))
{
goto IL_00fb;
}
}
{
int32_t L_25 = ___stringEscapeHandling5;
if ((((int32_t)L_25) == ((int32_t)2)))
{
goto IL_00fb;
}
}
{
V_3 = _stringLiteral3450386420;
goto IL_0129;
}
IL_00fb:
{
CharU5BU5D_t3528271667** L_26 = ___writeBuffer7;
if (!(*((CharU5BU5D_t3528271667**)L_26)))
{
goto IL_0108;
}
}
{
CharU5BU5D_t3528271667** L_27 = ___writeBuffer7;
NullCheck((*((CharU5BU5D_t3528271667**)L_27)));
if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)(*((CharU5BU5D_t3528271667**)L_27)))->max_length))))) >= ((int32_t)6)))
{
goto IL_0116;
}
}
IL_0108:
{
CharU5BU5D_t3528271667** L_28 = ___writeBuffer7;
RuntimeObject* L_29 = ___bufferPool6;
CharU5BU5D_t3528271667** L_30 = ___writeBuffer7;
CharU5BU5D_t3528271667* L_31 = BufferUtils_EnsureBufferSize_m2563135377(NULL /*static, unused*/, L_29, 6, (*((CharU5BU5D_t3528271667**)L_30)), /*hidden argument*/NULL);
*((RuntimeObject **)(L_28)) = (RuntimeObject *)L_31;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_28), (RuntimeObject *)L_31);
}
IL_0116:
{
Il2CppChar L_32 = V_2;
CharU5BU5D_t3528271667** L_33 = ___writeBuffer7;
StringUtils_ToCharAsUnicode_m1857241640(NULL /*static, unused*/, L_32, (*((CharU5BU5D_t3528271667**)L_33)), /*hidden argument*/NULL);
V_3 = _stringLiteral3452614527;
goto IL_0129;
}
IL_0127:
{
V_3 = (String_t*)NULL;
}
IL_0129:
{
String_t* L_34 = V_3;
if (!L_34)
{
goto IL_01cc;
}
}
{
String_t* L_35 = V_3;
bool L_36 = String_Equals_m1744302937(NULL /*static, unused*/, L_35, _stringLiteral3452614527, /*hidden argument*/NULL);
V_4 = L_36;
int32_t L_37 = V_1;
int32_t L_38 = V_0;
if ((((int32_t)L_37) <= ((int32_t)L_38)))
{
goto IL_01b0;
}
}
{
int32_t L_39 = V_1;
int32_t L_40 = V_0;
bool L_41 = V_4;
G_B39_0 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_39, (int32_t)L_40));
if (L_41)
{
G_B40_0 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_39, (int32_t)L_40));
goto IL_014a;
}
}
{
G_B41_0 = 0;
G_B41_1 = G_B39_0;
goto IL_014b;
}
IL_014a:
{
G_B41_0 = 6;
G_B41_1 = G_B40_0;
}
IL_014b:
{
V_5 = ((int32_t)il2cpp_codegen_add((int32_t)G_B41_1, (int32_t)G_B41_0));
bool L_42 = V_4;
if (L_42)
{
goto IL_0155;
}
}
{
G_B44_0 = 0;
goto IL_0156;
}
IL_0155:
{
G_B44_0 = 6;
}
IL_0156:
{
V_6 = G_B44_0;
CharU5BU5D_t3528271667** L_43 = ___writeBuffer7;
if (!(*((CharU5BU5D_t3528271667**)L_43)))
{
goto IL_0166;
}
}
{
CharU5BU5D_t3528271667** L_44 = ___writeBuffer7;
NullCheck((*((CharU5BU5D_t3528271667**)L_44)));
int32_t L_45 = V_5;
if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)(*((CharU5BU5D_t3528271667**)L_44)))->max_length))))) >= ((int32_t)L_45)))
{
goto IL_018f;
}
}
IL_0166:
{
RuntimeObject* L_46 = ___bufferPool6;
int32_t L_47 = V_5;
CharU5BU5D_t3528271667* L_48 = BufferUtils_RentBuffer_m2229979349(NULL /*static, unused*/, L_46, L_47, /*hidden argument*/NULL);
V_7 = L_48;
bool L_49 = V_4;
if (!L_49)
{
goto IL_0180;
}
}
{
CharU5BU5D_t3528271667** L_50 = ___writeBuffer7;
CharU5BU5D_t3528271667* L_51 = V_7;
Array_Copy_m1988217701(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)(*((CharU5BU5D_t3528271667**)L_50)), (RuntimeArray *)(RuntimeArray *)L_51, 6, /*hidden argument*/NULL);
}
IL_0180:
{
RuntimeObject* L_52 = ___bufferPool6;
CharU5BU5D_t3528271667** L_53 = ___writeBuffer7;
BufferUtils_ReturnBuffer_m1757235126(NULL /*static, unused*/, L_52, (*((CharU5BU5D_t3528271667**)L_53)), /*hidden argument*/NULL);
CharU5BU5D_t3528271667** L_54 = ___writeBuffer7;
CharU5BU5D_t3528271667* L_55 = V_7;
*((RuntimeObject **)(L_54)) = (RuntimeObject *)L_55;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_54), (RuntimeObject *)L_55);
}
IL_018f:
{
String_t* L_56 = ___s1;
int32_t L_57 = V_0;
CharU5BU5D_t3528271667** L_58 = ___writeBuffer7;
int32_t L_59 = V_6;
int32_t L_60 = V_5;
int32_t L_61 = V_6;
NullCheck(L_56);
String_CopyTo_m2803757991(L_56, L_57, (*((CharU5BU5D_t3528271667**)L_58)), L_59, ((int32_t)il2cpp_codegen_subtract((int32_t)L_60, (int32_t)L_61)), /*hidden argument*/NULL);
TextWriter_t3478189236 * L_62 = ___writer0;
CharU5BU5D_t3528271667** L_63 = ___writeBuffer7;
int32_t L_64 = V_6;
int32_t L_65 = V_5;
int32_t L_66 = V_6;
NullCheck(L_62);
VirtActionInvoker3< CharU5BU5D_t3528271667*, int32_t, int32_t >::Invoke(14 /* System.Void System.IO.TextWriter::Write(System.Char[],System.Int32,System.Int32) */, L_62, (*((CharU5BU5D_t3528271667**)L_63)), L_64, ((int32_t)il2cpp_codegen_subtract((int32_t)L_65, (int32_t)L_66)));
}
IL_01b0:
{
int32_t L_67 = V_1;
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_67, (int32_t)1));
bool L_68 = V_4;
if (L_68)
{
goto IL_01c1;
}
}
{
TextWriter_t3478189236 * L_69 = ___writer0;
String_t* L_70 = V_3;
NullCheck(L_69);
VirtActionInvoker1< String_t* >::Invoke(15 /* System.Void System.IO.TextWriter::Write(System.String) */, L_69, L_70);
goto IL_01cc;
}
IL_01c1:
{
TextWriter_t3478189236 * L_71 = ___writer0;
CharU5BU5D_t3528271667** L_72 = ___writeBuffer7;
NullCheck(L_71);
VirtActionInvoker3< CharU5BU5D_t3528271667*, int32_t, int32_t >::Invoke(14 /* System.Void System.IO.TextWriter::Write(System.Char[],System.Int32,System.Int32) */, L_71, (*((CharU5BU5D_t3528271667**)L_72)), 0, 6);
}
IL_01cc:
{
int32_t L_73 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_73, (int32_t)1));
}
IL_01d0:
{
int32_t L_74 = V_1;
String_t* L_75 = ___s1;
NullCheck(L_75);
int32_t L_76 = String_get_Length_m3847582255(L_75, /*hidden argument*/NULL);
if ((((int32_t)L_74) < ((int32_t)L_76)))
{
goto IL_0019;
}
}
{
int32_t L_77 = V_0;
if (L_77)
{
goto IL_01e8;
}
}
{
TextWriter_t3478189236 * L_78 = ___writer0;
String_t* L_79 = ___s1;
NullCheck(L_78);
VirtActionInvoker1< String_t* >::Invoke(15 /* System.Void System.IO.TextWriter::Write(System.String) */, L_78, L_79);
goto IL_0228;
}
IL_01e8:
{
String_t* L_80 = ___s1;
NullCheck(L_80);
int32_t L_81 = String_get_Length_m3847582255(L_80, /*hidden argument*/NULL);
int32_t L_82 = V_0;
V_8 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_81, (int32_t)L_82));
CharU5BU5D_t3528271667** L_83 = ___writeBuffer7;
if (!(*((CharU5BU5D_t3528271667**)L_83)))
{
goto IL_0200;
}
}
{
CharU5BU5D_t3528271667** L_84 = ___writeBuffer7;
NullCheck((*((CharU5BU5D_t3528271667**)L_84)));
int32_t L_85 = V_8;
if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)(*((CharU5BU5D_t3528271667**)L_84)))->max_length))))) >= ((int32_t)L_85)))
{
goto IL_020f;
}
}
IL_0200:
{
CharU5BU5D_t3528271667** L_86 = ___writeBuffer7;
RuntimeObject* L_87 = ___bufferPool6;
int32_t L_88 = V_8;
CharU5BU5D_t3528271667** L_89 = ___writeBuffer7;
CharU5BU5D_t3528271667* L_90 = BufferUtils_EnsureBufferSize_m2563135377(NULL /*static, unused*/, L_87, L_88, (*((CharU5BU5D_t3528271667**)L_89)), /*hidden argument*/NULL);
*((RuntimeObject **)(L_86)) = (RuntimeObject *)L_90;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_86), (RuntimeObject *)L_90);
}
IL_020f:
{
String_t* L_91 = ___s1;
int32_t L_92 = V_0;
CharU5BU5D_t3528271667** L_93 = ___writeBuffer7;
int32_t L_94 = V_8;
NullCheck(L_91);
String_CopyTo_m2803757991(L_91, L_92, (*((CharU5BU5D_t3528271667**)L_93)), 0, L_94, /*hidden argument*/NULL);
TextWriter_t3478189236 * L_95 = ___writer0;
CharU5BU5D_t3528271667** L_96 = ___writeBuffer7;
int32_t L_97 = V_8;
NullCheck(L_95);
VirtActionInvoker3< CharU5BU5D_t3528271667*, int32_t, int32_t >::Invoke(14 /* System.Void System.IO.TextWriter::Write(System.Char[],System.Int32,System.Int32) */, L_95, (*((CharU5BU5D_t3528271667**)L_96)), 0, L_97);
}
IL_0228:
{
bool L_98 = ___appendDelimiters3;
if (!L_98)
{
goto IL_0232;
}
}
{
TextWriter_t3478189236 * L_99 = ___writer0;
Il2CppChar L_100 = ___delimiter2;
NullCheck(L_99);
VirtActionInvoker1< Il2CppChar >::Invoke(12 /* System.Void System.IO.TextWriter::Write(System.Char) */, L_99, L_100);
}
IL_0232:
{
return;
}
}
// System.String Newtonsoft.Json.Utilities.JavaScriptUtils::ToEscapedJavaScriptString(System.String,System.Char,System.Boolean,Newtonsoft.Json.StringEscapeHandling)
extern "C" String_t* JavaScriptUtils_ToEscapedJavaScriptString_m850540215 (RuntimeObject * __this /* static, unused */, String_t* ___value0, Il2CppChar ___delimiter1, bool ___appendDelimiters2, int32_t ___stringEscapeHandling3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (JavaScriptUtils_ToEscapedJavaScriptString_m850540215_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BooleanU5BU5D_t2897418192* V_0 = NULL;
StringWriter_t802263757 * V_1 = NULL;
Nullable_1_t378540539 V_2;
memset(&V_2, 0, sizeof(V_2));
CharU5BU5D_t3528271667* V_3 = NULL;
String_t* V_4 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
int32_t G_B3_0 = 0;
{
int32_t L_0 = ___stringEscapeHandling3;
Il2CppChar L_1 = ___delimiter1;
IL2CPP_RUNTIME_CLASS_INIT(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var);
BooleanU5BU5D_t2897418192* L_2 = JavaScriptUtils_GetCharEscapeFlags_m2215130569(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/NULL);
V_0 = L_2;
String_t* L_3 = ___value0;
Nullable_1_t378540539 L_4 = StringUtils_GetLength_m3427840909(NULL /*static, unused*/, L_3, /*hidden argument*/NULL);
V_2 = L_4;
bool L_5 = Nullable_1_get_HasValue_m3898097692((Nullable_1_t378540539 *)(&V_2), /*hidden argument*/Nullable_1_get_HasValue_m3898097692_RuntimeMethod_var);
if (L_5)
{
goto IL_001c;
}
}
{
G_B3_0 = ((int32_t)16);
goto IL_0023;
}
IL_001c:
{
int32_t L_6 = Nullable_1_GetValueOrDefault_m463439517((Nullable_1_t378540539 *)(&V_2), /*hidden argument*/Nullable_1_GetValueOrDefault_m463439517_RuntimeMethod_var);
G_B3_0 = L_6;
}
IL_0023:
{
StringWriter_t802263757 * L_7 = StringUtils_CreateStringWriter_m3876739792(NULL /*static, unused*/, G_B3_0, /*hidden argument*/NULL);
V_1 = L_7;
}
IL_0029:
try
{ // begin try (depth: 1)
V_3 = (CharU5BU5D_t3528271667*)NULL;
StringWriter_t802263757 * L_8 = V_1;
String_t* L_9 = ___value0;
Il2CppChar L_10 = ___delimiter1;
bool L_11 = ___appendDelimiters2;
BooleanU5BU5D_t2897418192* L_12 = V_0;
int32_t L_13 = ___stringEscapeHandling3;
IL2CPP_RUNTIME_CLASS_INIT(JavaScriptUtils_t1108575081_il2cpp_TypeInfo_var);
JavaScriptUtils_WriteEscapedJavaScriptString_m1556362848(NULL /*static, unused*/, L_8, L_9, L_10, L_11, L_12, L_13, (RuntimeObject*)NULL, (CharU5BU5D_t3528271667**)(&V_3), /*hidden argument*/NULL);
StringWriter_t802263757 * L_14 = V_1;
NullCheck(L_14);
String_t* L_15 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_14);
V_4 = L_15;
IL2CPP_LEAVE(0x4D, FINALLY_0043);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0043;
}
FINALLY_0043:
{ // begin finally (depth: 1)
{
StringWriter_t802263757 * L_16 = V_1;
if (!L_16)
{
goto IL_004c;
}
}
IL_0046:
{
StringWriter_t802263757 * L_17 = V_1;
NullCheck(L_17);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_17);
}
IL_004c:
{
IL2CPP_END_FINALLY(67)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(67)
{
IL2CPP_JUMP_TBL(0x4D, IL_004d)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_004d:
{
String_t* L_18 = V_4;
return L_18;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Boolean Newtonsoft.Json.Utilities.JsonTokenUtils::IsStartToken(Newtonsoft.Json.JsonToken)
extern "C" bool JsonTokenUtils_IsStartToken_m2983268978 (RuntimeObject * __this /* static, unused */, int32_t ___token0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___token0;
switch (((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)1)))
{
case 0:
{
goto IL_0016;
}
case 1:
{
goto IL_0016;
}
case 2:
{
goto IL_0016;
}
}
}
{
goto IL_0018;
}
IL_0016:
{
return (bool)1;
}
IL_0018:
{
return (bool)0;
}
}
// System.Boolean Newtonsoft.Json.Utilities.JsonTokenUtils::IsPrimitiveToken(Newtonsoft.Json.JsonToken)
extern "C" bool JsonTokenUtils_IsPrimitiveToken_m4162264142 (RuntimeObject * __this /* static, unused */, int32_t ___token0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___token0;
switch (((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)7)))
{
case 0:
{
goto IL_0036;
}
case 1:
{
goto IL_0036;
}
case 2:
{
goto IL_0036;
}
case 3:
{
goto IL_0036;
}
case 4:
{
goto IL_0036;
}
case 5:
{
goto IL_0036;
}
case 6:
{
goto IL_0038;
}
case 7:
{
goto IL_0038;
}
case 8:
{
goto IL_0038;
}
case 9:
{
goto IL_0036;
}
case 10:
{
goto IL_0036;
}
}
}
{
goto IL_0038;
}
IL_0036:
{
return (bool)1;
}
IL_0038:
{
return (bool)0;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Newtonsoft.Json.Utilities.ReflectionDelegateFactory Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory::get_Instance()
extern "C" ReflectionDelegateFactory_t2528576452 * LateBoundReflectionDelegateFactory_get_Instance_m3698844514 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (LateBoundReflectionDelegateFactory_get_Instance_m3698844514_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(LateBoundReflectionDelegateFactory_t925499913_il2cpp_TypeInfo_var);
LateBoundReflectionDelegateFactory_t925499913 * L_0 = ((LateBoundReflectionDelegateFactory_t925499913_StaticFields*)il2cpp_codegen_static_fields_for(LateBoundReflectionDelegateFactory_t925499913_il2cpp_TypeInfo_var))->get__instance_0();
return L_0;
}
}
// Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object> Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory::CreateParameterizedConstructor(System.Reflection.MethodBase)
extern "C" ObjectConstructor_1_t3207922868 * LateBoundReflectionDelegateFactory_CreateParameterizedConstructor_m655847845 (LateBoundReflectionDelegateFactory_t925499913 * __this, MethodBase_t * ___method0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (LateBoundReflectionDelegateFactory_CreateParameterizedConstructor_m655847845_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass3_0_t1939583362 * V_0 = NULL;
{
U3CU3Ec__DisplayClass3_0_t1939583362 * L_0 = (U3CU3Ec__DisplayClass3_0_t1939583362 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass3_0_t1939583362_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass3_0__ctor_m3663881265(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass3_0_t1939583362 * L_1 = V_0;
MethodBase_t * L_2 = ___method0;
NullCheck(L_1);
L_1->set_method_1(L_2);
U3CU3Ec__DisplayClass3_0_t1939583362 * L_3 = V_0;
NullCheck(L_3);
MethodBase_t * L_4 = L_3->get_method_1();
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_4, _stringLiteral414301358, /*hidden argument*/NULL);
U3CU3Ec__DisplayClass3_0_t1939583362 * L_5 = V_0;
U3CU3Ec__DisplayClass3_0_t1939583362 * L_6 = V_0;
NullCheck(L_6);
MethodBase_t * L_7 = L_6->get_method_1();
NullCheck(L_5);
L_5->set_c_0(((ConstructorInfo_t5769829 *)IsInstClass((RuntimeObject*)L_7, ConstructorInfo_t5769829_il2cpp_TypeInfo_var)));
U3CU3Ec__DisplayClass3_0_t1939583362 * L_8 = V_0;
NullCheck(L_8);
ConstructorInfo_t5769829 * L_9 = L_8->get_c_0();
if (!L_9)
{
goto IL_0043;
}
}
{
U3CU3Ec__DisplayClass3_0_t1939583362 * L_10 = V_0;
intptr_t L_11 = (intptr_t)U3CU3Ec__DisplayClass3_0_U3CCreateParameterizedConstructorU3Eb__0_m529644205_RuntimeMethod_var;
ObjectConstructor_1_t3207922868 * L_12 = (ObjectConstructor_1_t3207922868 *)il2cpp_codegen_object_new(ObjectConstructor_1_t3207922868_il2cpp_TypeInfo_var);
ObjectConstructor_1__ctor_m1181679199(L_12, L_10, L_11, /*hidden argument*/ObjectConstructor_1__ctor_m1181679199_RuntimeMethod_var);
return L_12;
}
IL_0043:
{
U3CU3Ec__DisplayClass3_0_t1939583362 * L_13 = V_0;
intptr_t L_14 = (intptr_t)U3CU3Ec__DisplayClass3_0_U3CCreateParameterizedConstructorU3Eb__1_m526498226_RuntimeMethod_var;
ObjectConstructor_1_t3207922868 * L_15 = (ObjectConstructor_1_t3207922868 *)il2cpp_codegen_object_new(ObjectConstructor_1_t3207922868_il2cpp_TypeInfo_var);
ObjectConstructor_1__ctor_m1181679199(L_15, L_13, L_14, /*hidden argument*/ObjectConstructor_1__ctor_m1181679199_RuntimeMethod_var);
return L_15;
}
}
// System.Void Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory::.ctor()
extern "C" void LateBoundReflectionDelegateFactory__ctor_m2734757472 (LateBoundReflectionDelegateFactory_t925499913 * __this, const RuntimeMethod* method)
{
{
ReflectionDelegateFactory__ctor_m3277517333(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory::.cctor()
extern "C" void LateBoundReflectionDelegateFactory__cctor_m3918907285 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (LateBoundReflectionDelegateFactory__cctor_m3918907285_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
LateBoundReflectionDelegateFactory_t925499913 * L_0 = (LateBoundReflectionDelegateFactory_t925499913 *)il2cpp_codegen_object_new(LateBoundReflectionDelegateFactory_t925499913_il2cpp_TypeInfo_var);
LateBoundReflectionDelegateFactory__ctor_m2734757472(L_0, /*hidden argument*/NULL);
((LateBoundReflectionDelegateFactory_t925499913_StaticFields*)il2cpp_codegen_static_fields_for(LateBoundReflectionDelegateFactory_t925499913_il2cpp_TypeInfo_var))->set__instance_0(L_0);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory/<>c__DisplayClass3_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass3_0__ctor_m3663881265 (U3CU3Ec__DisplayClass3_0_t1939583362 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Object Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory/<>c__DisplayClass3_0::<CreateParameterizedConstructor>b__0(System.Object[])
extern "C" RuntimeObject * U3CU3Ec__DisplayClass3_0_U3CCreateParameterizedConstructorU3Eb__0_m529644205 (U3CU3Ec__DisplayClass3_0_t1939583362 * __this, ObjectU5BU5D_t2843939325* ___a0, const RuntimeMethod* method)
{
ObjectU5BU5D_t2843939325* V_0 = NULL;
{
ObjectU5BU5D_t2843939325* L_0 = ___a0;
V_0 = L_0;
ConstructorInfo_t5769829 * L_1 = __this->get_c_0();
ObjectU5BU5D_t2843939325* L_2 = V_0;
NullCheck(L_1);
RuntimeObject * L_3 = ConstructorInfo_Invoke_m4089836896(L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
// System.Object Newtonsoft.Json.Utilities.LateBoundReflectionDelegateFactory/<>c__DisplayClass3_0::<CreateParameterizedConstructor>b__1(System.Object[])
extern "C" RuntimeObject * U3CU3Ec__DisplayClass3_0_U3CCreateParameterizedConstructorU3Eb__1_m526498226 (U3CU3Ec__DisplayClass3_0_t1939583362 * __this, ObjectU5BU5D_t2843939325* ___a0, const RuntimeMethod* method)
{
{
MethodBase_t * L_0 = __this->get_method_1();
ObjectU5BU5D_t2843939325* L_1 = ___a0;
NullCheck(L_0);
RuntimeObject * L_2 = MethodBase_Invoke_m1776411915(L_0, NULL, L_1, /*hidden argument*/NULL);
return L_2;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Int32 Newtonsoft.Json.Utilities.MathUtils::IntLength(System.UInt64)
extern "C" int32_t MathUtils_IntLength_m3543442926 (RuntimeObject * __this /* static, unused */, uint64_t ___i0, const RuntimeMethod* method)
{
{
uint64_t L_0 = ___i0;
if ((!(((uint64_t)L_0) < ((uint64_t)((int64_t)10000000000LL)))))
{
goto IL_006d;
}
}
{
uint64_t L_1 = ___i0;
if ((!(((uint64_t)L_1) < ((uint64_t)(((int64_t)((int64_t)((int32_t)10))))))))
{
goto IL_0014;
}
}
{
return 1;
}
IL_0014:
{
uint64_t L_2 = ___i0;
if ((!(((uint64_t)L_2) < ((uint64_t)(((int64_t)((int64_t)((int32_t)100))))))))
{
goto IL_001c;
}
}
{
return 2;
}
IL_001c:
{
uint64_t L_3 = ___i0;
if ((!(((uint64_t)L_3) < ((uint64_t)(((int64_t)((int64_t)((int32_t)1000))))))))
{
goto IL_0027;
}
}
{
return 3;
}
IL_0027:
{
uint64_t L_4 = ___i0;
if ((!(((uint64_t)L_4) < ((uint64_t)(((int64_t)((int64_t)((int32_t)10000))))))))
{
goto IL_0032;
}
}
{
return 4;
}
IL_0032:
{
uint64_t L_5 = ___i0;
if ((!(((uint64_t)L_5) < ((uint64_t)(((int64_t)((int64_t)((int32_t)100000))))))))
{
goto IL_003d;
}
}
{
return 5;
}
IL_003d:
{
uint64_t L_6 = ___i0;
if ((!(((uint64_t)L_6) < ((uint64_t)(((int64_t)((int64_t)((int32_t)1000000))))))))
{
goto IL_0048;
}
}
{
return 6;
}
IL_0048:
{
uint64_t L_7 = ___i0;
if ((!(((uint64_t)L_7) < ((uint64_t)(((int64_t)((int64_t)((int32_t)10000000))))))))
{
goto IL_0053;
}
}
{
return 7;
}
IL_0053:
{
uint64_t L_8 = ___i0;
if ((!(((uint64_t)L_8) < ((uint64_t)(((int64_t)((int64_t)((int32_t)100000000))))))))
{
goto IL_005e;
}
}
{
return 8;
}
IL_005e:
{
uint64_t L_9 = ___i0;
if ((!(((uint64_t)L_9) < ((uint64_t)(((int64_t)((int64_t)((int32_t)1000000000))))))))
{
goto IL_006a;
}
}
{
return ((int32_t)9);
}
IL_006a:
{
return ((int32_t)10);
}
IL_006d:
{
uint64_t L_10 = ___i0;
if ((!(((uint64_t)L_10) < ((uint64_t)((int64_t)100000000000LL)))))
{
goto IL_007c;
}
}
{
return ((int32_t)11);
}
IL_007c:
{
uint64_t L_11 = ___i0;
if ((!(((uint64_t)L_11) < ((uint64_t)((int64_t)1000000000000LL)))))
{
goto IL_008b;
}
}
{
return ((int32_t)12);
}
IL_008b:
{
uint64_t L_12 = ___i0;
if ((!(((uint64_t)L_12) < ((uint64_t)((int64_t)10000000000000LL)))))
{
goto IL_009a;
}
}
{
return ((int32_t)13);
}
IL_009a:
{
uint64_t L_13 = ___i0;
if ((!(((uint64_t)L_13) < ((uint64_t)((int64_t)100000000000000LL)))))
{
goto IL_00a9;
}
}
{
return ((int32_t)14);
}
IL_00a9:
{
uint64_t L_14 = ___i0;
if ((!(((uint64_t)L_14) < ((uint64_t)((int64_t)1000000000000000LL)))))
{
goto IL_00b8;
}
}
{
return ((int32_t)15);
}
IL_00b8:
{
uint64_t L_15 = ___i0;
if ((!(((uint64_t)L_15) < ((uint64_t)((int64_t)10000000000000000LL)))))
{
goto IL_00c7;
}
}
{
return ((int32_t)16);
}
IL_00c7:
{
uint64_t L_16 = ___i0;
if ((!(((uint64_t)L_16) < ((uint64_t)((int64_t)100000000000000000LL)))))
{
goto IL_00d6;
}
}
{
return ((int32_t)17);
}
IL_00d6:
{
uint64_t L_17 = ___i0;
if ((!(((uint64_t)L_17) < ((uint64_t)((int64_t)1000000000000000000LL)))))
{
goto IL_00e5;
}
}
{
return ((int32_t)18);
}
IL_00e5:
{
uint64_t L_18 = ___i0;
if ((!(((uint64_t)L_18) < ((uint64_t)((int64_t)-8446744073709551616LL)))))
{
goto IL_00f4;
}
}
{
return ((int32_t)19);
}
IL_00f4:
{
return ((int32_t)20);
}
}
// System.Char Newtonsoft.Json.Utilities.MathUtils::IntToHex(System.Int32)
extern "C" Il2CppChar MathUtils_IntToHex_m1986186787 (RuntimeObject * __this /* static, unused */, int32_t ___n0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___n0;
if ((((int32_t)L_0) > ((int32_t)((int32_t)9))))
{
goto IL_000b;
}
}
{
int32_t L_1 = ___n0;
return (((int32_t)((uint16_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)((int32_t)48))))));
}
IL_000b:
{
int32_t L_2 = ___n0;
return (((int32_t)((uint16_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_2, (int32_t)((int32_t)10))), (int32_t)((int32_t)97))))));
}
}
// System.Boolean Newtonsoft.Json.Utilities.MathUtils::ApproxEquals(System.Double,System.Double)
extern "C" bool MathUtils_ApproxEquals_m663204704 (RuntimeObject * __this /* static, unused */, double ___d10, double ___d21, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (MathUtils_ApproxEquals_m663204704_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
double V_0 = 0.0;
double V_1 = 0.0;
{
double L_0 = ___d10;
double L_1 = ___d21;
if ((!(((double)L_0) == ((double)L_1))))
{
goto IL_0006;
}
}
{
return (bool)1;
}
IL_0006:
{
double L_2 = ___d10;
IL2CPP_RUNTIME_CLASS_INIT(Math_t1671470975_il2cpp_TypeInfo_var);
double L_3 = fabs(L_2);
double L_4 = ___d21;
double L_5 = fabs(L_4);
V_0 = ((double)il2cpp_codegen_multiply((double)((double)il2cpp_codegen_add((double)((double)il2cpp_codegen_add((double)L_3, (double)L_5)), (double)(10.0))), (double)(2.2204460492503131E-16)));
double L_6 = ___d10;
double L_7 = ___d21;
V_1 = ((double)il2cpp_codegen_subtract((double)L_6, (double)L_7));
double L_8 = V_0;
double L_9 = V_1;
if ((!(((double)((-L_8))) < ((double)L_9))))
{
goto IL_0036;
}
}
{
double L_10 = V_0;
double L_11 = V_1;
return (bool)((((double)L_10) > ((double)L_11))? 1 : 0);
}
IL_0036:
{
return (bool)0;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Boolean Newtonsoft.Json.Utilities.MiscellaneousUtils::ValueEquals(System.Object,System.Object)
extern "C" bool MiscellaneousUtils_ValueEquals_m795470537 (RuntimeObject * __this /* static, unused */, RuntimeObject * ___objA0, RuntimeObject * ___objB1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (MiscellaneousUtils_ValueEquals_m795470537_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Decimal_t2948259380 V_0;
memset(&V_0, 0, sizeof(V_0));
{
RuntimeObject * L_0 = ___objA0;
if (L_0)
{
goto IL_0008;
}
}
{
RuntimeObject * L_1 = ___objB1;
if (L_1)
{
goto IL_0008;
}
}
{
return (bool)1;
}
IL_0008:
{
RuntimeObject * L_2 = ___objA0;
if (!L_2)
{
goto IL_0010;
}
}
{
RuntimeObject * L_3 = ___objB1;
if (L_3)
{
goto IL_0010;
}
}
{
return (bool)0;
}
IL_0010:
{
RuntimeObject * L_4 = ___objA0;
if (L_4)
{
goto IL_0018;
}
}
{
RuntimeObject * L_5 = ___objB1;
if (!L_5)
{
goto IL_0018;
}
}
{
return (bool)0;
}
IL_0018:
{
RuntimeObject * L_6 = ___objA0;
NullCheck(L_6);
Type_t * L_7 = Object_GetType_m88164663(L_6, /*hidden argument*/NULL);
RuntimeObject * L_8 = ___objB1;
NullCheck(L_8);
Type_t * L_9 = Object_GetType_m88164663(L_8, /*hidden argument*/NULL);
if ((((RuntimeObject*)(Type_t *)L_7) == ((RuntimeObject*)(Type_t *)L_9)))
{
goto IL_00a3;
}
}
{
RuntimeObject * L_10 = ___objA0;
IL2CPP_RUNTIME_CLASS_INIT(ConvertUtils_t2194062972_il2cpp_TypeInfo_var);
bool L_11 = ConvertUtils_IsInteger_m1782566389(NULL /*static, unused*/, L_10, /*hidden argument*/NULL);
if (!L_11)
{
goto IL_0055;
}
}
{
RuntimeObject * L_12 = ___objB1;
IL2CPP_RUNTIME_CLASS_INIT(ConvertUtils_t2194062972_il2cpp_TypeInfo_var);
bool L_13 = ConvertUtils_IsInteger_m1782566389(NULL /*static, unused*/, L_12, /*hidden argument*/NULL);
if (!L_13)
{
goto IL_0055;
}
}
{
RuntimeObject * L_14 = ___objA0;
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_15 = CultureInfo_get_CurrentCulture_m1632690660(NULL /*static, unused*/, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Convert_t2465617642_il2cpp_TypeInfo_var);
Decimal_t2948259380 L_16 = Convert_ToDecimal_m3815908452(NULL /*static, unused*/, L_14, L_15, /*hidden argument*/NULL);
V_0 = L_16;
RuntimeObject * L_17 = ___objB1;
CultureInfo_t4157843068 * L_18 = CultureInfo_get_CurrentCulture_m1632690660(NULL /*static, unused*/, /*hidden argument*/NULL);
Decimal_t2948259380 L_19 = Convert_ToDecimal_m3815908452(NULL /*static, unused*/, L_17, L_18, /*hidden argument*/NULL);
bool L_20 = Decimal_Equals_m2486655999((Decimal_t2948259380 *)(&V_0), L_19, /*hidden argument*/NULL);
return L_20;
}
IL_0055:
{
RuntimeObject * L_21 = ___objA0;
if (((RuntimeObject *)IsInstSealed((RuntimeObject*)L_21, Double_t594665363_il2cpp_TypeInfo_var)))
{
goto IL_006d;
}
}
{
RuntimeObject * L_22 = ___objA0;
if (((RuntimeObject *)IsInstSealed((RuntimeObject*)L_22, Single_t1397266774_il2cpp_TypeInfo_var)))
{
goto IL_006d;
}
}
{
RuntimeObject * L_23 = ___objA0;
if (!((RuntimeObject *)IsInstSealed((RuntimeObject*)L_23, Decimal_t2948259380_il2cpp_TypeInfo_var)))
{
goto IL_00a1;
}
}
IL_006d:
{
RuntimeObject * L_24 = ___objB1;
if (((RuntimeObject *)IsInstSealed((RuntimeObject*)L_24, Double_t594665363_il2cpp_TypeInfo_var)))
{
goto IL_0085;
}
}
{
RuntimeObject * L_25 = ___objB1;
if (((RuntimeObject *)IsInstSealed((RuntimeObject*)L_25, Single_t1397266774_il2cpp_TypeInfo_var)))
{
goto IL_0085;
}
}
{
RuntimeObject * L_26 = ___objB1;
if (!((RuntimeObject *)IsInstSealed((RuntimeObject*)L_26, Decimal_t2948259380_il2cpp_TypeInfo_var)))
{
goto IL_00a1;
}
}
IL_0085:
{
RuntimeObject * L_27 = ___objA0;
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_28 = CultureInfo_get_CurrentCulture_m1632690660(NULL /*static, unused*/, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Convert_t2465617642_il2cpp_TypeInfo_var);
double L_29 = Convert_ToDouble_m4017511472(NULL /*static, unused*/, L_27, L_28, /*hidden argument*/NULL);
RuntimeObject * L_30 = ___objB1;
CultureInfo_t4157843068 * L_31 = CultureInfo_get_CurrentCulture_m1632690660(NULL /*static, unused*/, /*hidden argument*/NULL);
double L_32 = Convert_ToDouble_m4017511472(NULL /*static, unused*/, L_30, L_31, /*hidden argument*/NULL);
bool L_33 = MathUtils_ApproxEquals_m663204704(NULL /*static, unused*/, L_29, L_32, /*hidden argument*/NULL);
return L_33;
}
IL_00a1:
{
return (bool)0;
}
IL_00a3:
{
RuntimeObject * L_34 = ___objA0;
RuntimeObject * L_35 = ___objB1;
NullCheck(L_34);
bool L_36 = VirtFuncInvoker1< bool, RuntimeObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, L_34, L_35);
return L_36;
}
}
// System.ArgumentOutOfRangeException Newtonsoft.Json.Utilities.MiscellaneousUtils::CreateArgumentOutOfRangeException(System.String,System.Object,System.String)
extern "C" ArgumentOutOfRangeException_t777629997 * MiscellaneousUtils_CreateArgumentOutOfRangeException_m1064925786 (RuntimeObject * __this /* static, unused */, String_t* ___paramName0, RuntimeObject * ___actualValue1, String_t* ___message2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (MiscellaneousUtils_CreateArgumentOutOfRangeException_m1064925786_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
String_t* V_0 = NULL;
{
String_t* L_0 = ___message2;
String_t* L_1 = Environment_get_NewLine_m3211016485(NULL /*static, unused*/, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_2 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
RuntimeObject * L_3 = ___actualValue1;
String_t* L_4 = StringUtils_FormatWith_m3056805521(NULL /*static, unused*/, _stringLiteral1502400109, L_2, L_3, /*hidden argument*/NULL);
String_t* L_5 = String_Concat_m3755062657(NULL /*static, unused*/, L_0, L_1, L_4, /*hidden argument*/NULL);
V_0 = L_5;
String_t* L_6 = ___paramName0;
String_t* L_7 = V_0;
ArgumentOutOfRangeException_t777629997 * L_8 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m282481429(L_8, L_6, L_7, /*hidden argument*/NULL);
return L_8;
}
}
// System.String Newtonsoft.Json.Utilities.MiscellaneousUtils::ToString(System.Object)
extern "C" String_t* MiscellaneousUtils_ToString_m4213282389 (RuntimeObject * __this /* static, unused */, RuntimeObject * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (MiscellaneousUtils_ToString_m4213282389_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = ___value0;
if (L_0)
{
goto IL_0009;
}
}
{
return _stringLiteral2395288344;
}
IL_0009:
{
RuntimeObject * L_1 = ___value0;
if (((String_t*)IsInstSealed((RuntimeObject*)L_1, String_t_il2cpp_TypeInfo_var)))
{
goto IL_0018;
}
}
{
RuntimeObject * L_2 = ___value0;
NullCheck(L_2);
String_t* L_3 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_2);
return L_3;
}
IL_0018:
{
RuntimeObject * L_4 = ___value0;
NullCheck(L_4);
String_t* L_5 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_4);
String_t* L_6 = String_Concat_m3755062657(NULL /*static, unused*/, _stringLiteral3452614526, L_5, _stringLiteral3452614526, /*hidden argument*/NULL);
return L_6;
}
}
// System.Int32 Newtonsoft.Json.Utilities.MiscellaneousUtils::ByteArrayCompare(System.Byte[],System.Byte[])
extern "C" int32_t MiscellaneousUtils_ByteArrayCompare_m2553453521 (RuntimeObject * __this /* static, unused */, ByteU5BU5D_t4116647657* ___a10, ByteU5BU5D_t4116647657* ___a21, const RuntimeMethod* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
ByteU5BU5D_t4116647657* L_0 = ___a10;
NullCheck(L_0);
V_1 = (((int32_t)((int32_t)(((RuntimeArray *)L_0)->max_length))));
ByteU5BU5D_t4116647657* L_1 = ___a21;
NullCheck(L_1);
int32_t L_2 = Int32_CompareTo_m4284770383((int32_t*)(&V_1), (((int32_t)((int32_t)(((RuntimeArray *)L_1)->max_length)))), /*hidden argument*/NULL);
V_0 = L_2;
int32_t L_3 = V_0;
if (!L_3)
{
goto IL_0014;
}
}
{
int32_t L_4 = V_0;
return L_4;
}
IL_0014:
{
V_2 = 0;
goto IL_0031;
}
IL_0018:
{
ByteU5BU5D_t4116647657* L_5 = ___a10;
int32_t L_6 = V_2;
NullCheck(L_5);
ByteU5BU5D_t4116647657* L_7 = ___a21;
int32_t L_8 = V_2;
NullCheck(L_7);
int32_t L_9 = L_8;
uint8_t L_10 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
int32_t L_11 = Byte_CompareTo_m4207847027((uint8_t*)((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6))), L_10, /*hidden argument*/NULL);
V_3 = L_11;
int32_t L_12 = V_3;
if (!L_12)
{
goto IL_002d;
}
}
{
int32_t L_13 = V_3;
return L_13;
}
IL_002d:
{
int32_t L_14 = V_2;
V_2 = ((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
}
IL_0031:
{
int32_t L_15 = V_2;
ByteU5BU5D_t4116647657* L_16 = ___a10;
NullCheck(L_16);
if ((((int32_t)L_15) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_16)->max_length)))))))
{
goto IL_0018;
}
}
{
return 0;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Linq.Expressions.Expression Newtonsoft.Json.Utilities.NoThrowExpressionVisitor::VisitConditional(System.Linq.Expressions.ConditionalExpression)
extern "C" Expression_t1588164026 * NoThrowExpressionVisitor_VisitConditional_m4050722395 (NoThrowExpressionVisitor_t3642055891 * __this, ConditionalExpression_t1874387742 * ___node0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (NoThrowExpressionVisitor_VisitConditional_m4050722395_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
ConditionalExpression_t1874387742 * L_0 = ___node0;
NullCheck(L_0);
Expression_t1588164026 * L_1 = ConditionalExpression_get_IfFalse_m2385420502(L_0, /*hidden argument*/NULL);
NullCheck(L_1);
int32_t L_2 = VirtFuncInvoker0< int32_t >::Invoke(4 /* System.Linq.Expressions.ExpressionType System.Linq.Expressions.Expression::get_NodeType() */, L_1);
if ((!(((uint32_t)L_2) == ((uint32_t)((int32_t)60)))))
{
goto IL_002b;
}
}
{
ConditionalExpression_t1874387742 * L_3 = ___node0;
NullCheck(L_3);
Expression_t1588164026 * L_4 = ConditionalExpression_get_Test_m2318551020(L_3, /*hidden argument*/NULL);
ConditionalExpression_t1874387742 * L_5 = ___node0;
NullCheck(L_5);
Expression_t1588164026 * L_6 = ConditionalExpression_get_IfTrue_m2644523070(L_5, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(NoThrowExpressionVisitor_t3642055891_il2cpp_TypeInfo_var);
RuntimeObject * L_7 = ((NoThrowExpressionVisitor_t3642055891_StaticFields*)il2cpp_codegen_static_fields_for(NoThrowExpressionVisitor_t3642055891_il2cpp_TypeInfo_var))->get_ErrorResult_0();
IL2CPP_RUNTIME_CLASS_INIT(Expression_t1588164026_il2cpp_TypeInfo_var);
ConstantExpression_t3613654278 * L_8 = Expression_Constant_m3269986673(NULL /*static, unused*/, L_7, /*hidden argument*/NULL);
ConditionalExpression_t1874387742 * L_9 = Expression_Condition_m1950924631(NULL /*static, unused*/, L_4, L_6, L_8, /*hidden argument*/NULL);
return L_9;
}
IL_002b:
{
ConditionalExpression_t1874387742 * L_10 = ___node0;
Expression_t1588164026 * L_11 = ExpressionVisitor_VisitConditional_m3160354326(__this, L_10, /*hidden argument*/NULL);
return L_11;
}
}
// System.Void Newtonsoft.Json.Utilities.NoThrowExpressionVisitor::.cctor()
extern "C" void NoThrowExpressionVisitor__cctor_m1704659045 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (NoThrowExpressionVisitor__cctor_m1704659045_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m297566312(L_0, /*hidden argument*/NULL);
((NoThrowExpressionVisitor_t3642055891_StaticFields*)il2cpp_codegen_static_fields_for(NoThrowExpressionVisitor_t3642055891_il2cpp_TypeInfo_var))->set_ErrorResult_0(L_0);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.NoThrowGetBinderMember::.ctor(System.Dynamic.GetMemberBinder)
extern "C" void NoThrowGetBinderMember__ctor_m316667281 (NoThrowGetBinderMember_t2324270373 * __this, GetMemberBinder_t2463380603 * ___innerBinder0, const RuntimeMethod* method)
{
{
GetMemberBinder_t2463380603 * L_0 = ___innerBinder0;
NullCheck(L_0);
String_t* L_1 = GetMemberBinder_get_Name_m2062284678(L_0, /*hidden argument*/NULL);
GetMemberBinder_t2463380603 * L_2 = ___innerBinder0;
NullCheck(L_2);
bool L_3 = GetMemberBinder_get_IgnoreCase_m3238376543(L_2, /*hidden argument*/NULL);
GetMemberBinder__ctor_m2724656095(__this, L_1, L_3, /*hidden argument*/NULL);
GetMemberBinder_t2463380603 * L_4 = ___innerBinder0;
__this->set__innerBinder_3(L_4);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.NoThrowSetBinderMember::.ctor(System.Dynamic.SetMemberBinder)
extern "C" void NoThrowSetBinderMember__ctor_m273945473 (NoThrowSetBinderMember_t2534771984 * __this, SetMemberBinder_t2112048622 * ___innerBinder0, const RuntimeMethod* method)
{
{
SetMemberBinder_t2112048622 * L_0 = ___innerBinder0;
NullCheck(L_0);
String_t* L_1 = SetMemberBinder_get_Name_m1130965295(L_0, /*hidden argument*/NULL);
SetMemberBinder_t2112048622 * L_2 = ___innerBinder0;
NullCheck(L_2);
bool L_3 = SetMemberBinder_get_IgnoreCase_m2254193583(L_2, /*hidden argument*/NULL);
SetMemberBinder__ctor_m779483474(__this, L_1, L_3, /*hidden argument*/NULL);
SetMemberBinder_t2112048622 * L_4 = ___innerBinder0;
__this->set__innerBinder_3(L_4);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.PropertyNameTable::.cctor()
extern "C" void PropertyNameTable__cctor_m1564092424 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PropertyNameTable__cctor_m1564092424_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = Environment_get_TickCount_m2088073110(NULL /*static, unused*/, /*hidden argument*/NULL);
((PropertyNameTable_t4130830590_StaticFields*)il2cpp_codegen_static_fields_for(PropertyNameTable_t4130830590_il2cpp_TypeInfo_var))->set_HashCodeRandomizer_0(L_0);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.PropertyNameTable::.ctor()
extern "C" void PropertyNameTable__ctor_m727499363 (PropertyNameTable_t4130830590 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PropertyNameTable__ctor_m727499363_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
__this->set__mask_3(((int32_t)31));
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
int32_t L_0 = __this->get__mask_3();
__this->set__entries_2(((EntryU5BU5D_t1995962374*)SZArrayNew(EntryU5BU5D_t1995962374_il2cpp_TypeInfo_var, (uint32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)1)))));
return;
}
}
// System.String Newtonsoft.Json.Utilities.PropertyNameTable::Get(System.Char[],System.Int32,System.Int32)
extern "C" String_t* PropertyNameTable_Get_m1245220493 (PropertyNameTable_t4130830590 * __this, CharU5BU5D_t3528271667* ___key0, int32_t ___start1, int32_t ___length2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PropertyNameTable_Get_m1245220493_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
Entry_t2924091039 * V_3 = NULL;
{
int32_t L_0 = ___length2;
if (L_0)
{
goto IL_0009;
}
}
{
String_t* L_1 = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
return L_1;
}
IL_0009:
{
int32_t L_2 = ___length2;
IL2CPP_RUNTIME_CLASS_INIT(PropertyNameTable_t4130830590_il2cpp_TypeInfo_var);
int32_t L_3 = ((PropertyNameTable_t4130830590_StaticFields*)il2cpp_codegen_static_fields_for(PropertyNameTable_t4130830590_il2cpp_TypeInfo_var))->get_HashCodeRandomizer_0();
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_2, (int32_t)L_3));
int32_t L_4 = V_0;
int32_t L_5 = V_0;
CharU5BU5D_t3528271667* L_6 = ___key0;
int32_t L_7 = ___start1;
NullCheck(L_6);
int32_t L_8 = L_7;
uint16_t L_9 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_8));
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_4, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_5<<(int32_t)7))^(int32_t)L_9))));
int32_t L_10 = ___start1;
int32_t L_11 = ___length2;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11));
int32_t L_12 = ___start1;
V_2 = ((int32_t)il2cpp_codegen_add((int32_t)L_12, (int32_t)1));
goto IL_0033;
}
IL_0025:
{
int32_t L_13 = V_0;
int32_t L_14 = V_0;
CharU5BU5D_t3528271667* L_15 = ___key0;
int32_t L_16 = V_2;
NullCheck(L_15);
int32_t L_17 = L_16;
uint16_t L_18 = (L_15)->GetAt(static_cast<il2cpp_array_size_t>(L_17));
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_14<<(int32_t)7))^(int32_t)L_18))));
int32_t L_19 = V_2;
V_2 = ((int32_t)il2cpp_codegen_add((int32_t)L_19, (int32_t)1));
}
IL_0033:
{
int32_t L_20 = V_2;
int32_t L_21 = V_1;
if ((((int32_t)L_20) < ((int32_t)L_21)))
{
goto IL_0025;
}
}
{
int32_t L_22 = V_0;
int32_t L_23 = V_0;
V_0 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_22, (int32_t)((int32_t)((int32_t)L_23>>(int32_t)((int32_t)17)))));
int32_t L_24 = V_0;
int32_t L_25 = V_0;
V_0 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_24, (int32_t)((int32_t)((int32_t)L_25>>(int32_t)((int32_t)11)))));
int32_t L_26 = V_0;
int32_t L_27 = V_0;
V_0 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_26, (int32_t)((int32_t)((int32_t)L_27>>(int32_t)5))));
EntryU5BU5D_t1995962374* L_28 = __this->get__entries_2();
int32_t L_29 = V_0;
int32_t L_30 = __this->get__mask_3();
NullCheck(L_28);
int32_t L_31 = ((int32_t)((int32_t)L_29&(int32_t)L_30));
Entry_t2924091039 * L_32 = (L_28)->GetAt(static_cast<il2cpp_array_size_t>(L_31));
V_3 = L_32;
goto IL_0084;
}
IL_005d:
{
Entry_t2924091039 * L_33 = V_3;
NullCheck(L_33);
int32_t L_34 = L_33->get_HashCode_1();
int32_t L_35 = V_0;
if ((!(((uint32_t)L_34) == ((uint32_t)L_35))))
{
goto IL_007d;
}
}
{
Entry_t2924091039 * L_36 = V_3;
NullCheck(L_36);
String_t* L_37 = L_36->get_Value_0();
CharU5BU5D_t3528271667* L_38 = ___key0;
int32_t L_39 = ___start1;
int32_t L_40 = ___length2;
IL2CPP_RUNTIME_CLASS_INIT(PropertyNameTable_t4130830590_il2cpp_TypeInfo_var);
bool L_41 = PropertyNameTable_TextEquals_m2030128776(NULL /*static, unused*/, L_37, L_38, L_39, L_40, /*hidden argument*/NULL);
if (!L_41)
{
goto IL_007d;
}
}
{
Entry_t2924091039 * L_42 = V_3;
NullCheck(L_42);
String_t* L_43 = L_42->get_Value_0();
return L_43;
}
IL_007d:
{
Entry_t2924091039 * L_44 = V_3;
NullCheck(L_44);
Entry_t2924091039 * L_45 = L_44->get_Next_2();
V_3 = L_45;
}
IL_0084:
{
Entry_t2924091039 * L_46 = V_3;
if (L_46)
{
goto IL_005d;
}
}
{
return (String_t*)NULL;
}
}
// System.String Newtonsoft.Json.Utilities.PropertyNameTable::Add(System.String)
extern "C" String_t* PropertyNameTable_Add_m2811283804 (PropertyNameTable_t4130830590 * __this, String_t* ___key0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PropertyNameTable_Add_m2811283804_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
Entry_t2924091039 * V_3 = NULL;
{
String_t* L_0 = ___key0;
if (L_0)
{
goto IL_000e;
}
}
{
ArgumentNullException_t1615371798 * L_1 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_1, _stringLiteral2600271970, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1, NULL, PropertyNameTable_Add_m2811283804_RuntimeMethod_var);
}
IL_000e:
{
String_t* L_2 = ___key0;
NullCheck(L_2);
int32_t L_3 = String_get_Length_m3847582255(L_2, /*hidden argument*/NULL);
V_0 = L_3;
int32_t L_4 = V_0;
if (L_4)
{
goto IL_001e;
}
}
{
String_t* L_5 = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
return L_5;
}
IL_001e:
{
int32_t L_6 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(PropertyNameTable_t4130830590_il2cpp_TypeInfo_var);
int32_t L_7 = ((PropertyNameTable_t4130830590_StaticFields*)il2cpp_codegen_static_fields_for(PropertyNameTable_t4130830590_il2cpp_TypeInfo_var))->get_HashCodeRandomizer_0();
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_6, (int32_t)L_7));
V_2 = 0;
goto IL_003c;
}
IL_002a:
{
int32_t L_8 = V_1;
int32_t L_9 = V_1;
String_t* L_10 = ___key0;
int32_t L_11 = V_2;
NullCheck(L_10);
Il2CppChar L_12 = String_get_Chars_m2986988803(L_10, L_11, /*hidden argument*/NULL);
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_9<<(int32_t)7))^(int32_t)L_12))));
int32_t L_13 = V_2;
V_2 = ((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)1));
}
IL_003c:
{
int32_t L_14 = V_2;
String_t* L_15 = ___key0;
NullCheck(L_15);
int32_t L_16 = String_get_Length_m3847582255(L_15, /*hidden argument*/NULL);
if ((((int32_t)L_14) < ((int32_t)L_16)))
{
goto IL_002a;
}
}
{
int32_t L_17 = V_1;
int32_t L_18 = V_1;
V_1 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)((int32_t)((int32_t)L_18>>(int32_t)((int32_t)17)))));
int32_t L_19 = V_1;
int32_t L_20 = V_1;
V_1 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)((int32_t)((int32_t)L_20>>(int32_t)((int32_t)11)))));
int32_t L_21 = V_1;
int32_t L_22 = V_1;
V_1 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)((int32_t)((int32_t)L_22>>(int32_t)5))));
EntryU5BU5D_t1995962374* L_23 = __this->get__entries_2();
int32_t L_24 = V_1;
int32_t L_25 = __this->get__mask_3();
NullCheck(L_23);
int32_t L_26 = ((int32_t)((int32_t)L_24&(int32_t)L_25));
Entry_t2924091039 * L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26));
V_3 = L_27;
goto IL_0090;
}
IL_006b:
{
Entry_t2924091039 * L_28 = V_3;
NullCheck(L_28);
int32_t L_29 = L_28->get_HashCode_1();
int32_t L_30 = V_1;
if ((!(((uint32_t)L_29) == ((uint32_t)L_30))))
{
goto IL_0089;
}
}
{
Entry_t2924091039 * L_31 = V_3;
NullCheck(L_31);
String_t* L_32 = L_31->get_Value_0();
String_t* L_33 = ___key0;
NullCheck(L_32);
bool L_34 = String_Equals_m2270643605(L_32, L_33, /*hidden argument*/NULL);
if (!L_34)
{
goto IL_0089;
}
}
{
Entry_t2924091039 * L_35 = V_3;
NullCheck(L_35);
String_t* L_36 = L_35->get_Value_0();
return L_36;
}
IL_0089:
{
Entry_t2924091039 * L_37 = V_3;
NullCheck(L_37);
Entry_t2924091039 * L_38 = L_37->get_Next_2();
V_3 = L_38;
}
IL_0090:
{
Entry_t2924091039 * L_39 = V_3;
if (L_39)
{
goto IL_006b;
}
}
{
String_t* L_40 = ___key0;
int32_t L_41 = V_1;
String_t* L_42 = PropertyNameTable_AddEntry_m2687197476(__this, L_40, L_41, /*hidden argument*/NULL);
return L_42;
}
}
// System.String Newtonsoft.Json.Utilities.PropertyNameTable::AddEntry(System.String,System.Int32)
extern "C" String_t* PropertyNameTable_AddEntry_m2687197476 (PropertyNameTable_t4130830590 * __this, String_t* ___str0, int32_t ___hashCode1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PropertyNameTable_AddEntry_m2687197476_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
Entry_t2924091039 * V_1 = NULL;
int32_t V_2 = 0;
{
int32_t L_0 = ___hashCode1;
int32_t L_1 = __this->get__mask_3();
V_0 = ((int32_t)((int32_t)L_0&(int32_t)L_1));
String_t* L_2 = ___str0;
int32_t L_3 = ___hashCode1;
EntryU5BU5D_t1995962374* L_4 = __this->get__entries_2();
int32_t L_5 = V_0;
NullCheck(L_4);
int32_t L_6 = L_5;
Entry_t2924091039 * L_7 = (L_4)->GetAt(static_cast<il2cpp_array_size_t>(L_6));
Entry_t2924091039 * L_8 = (Entry_t2924091039 *)il2cpp_codegen_object_new(Entry_t2924091039_il2cpp_TypeInfo_var);
Entry__ctor_m1495177254(L_8, L_2, L_3, L_7, /*hidden argument*/NULL);
V_1 = L_8;
EntryU5BU5D_t1995962374* L_9 = __this->get__entries_2();
int32_t L_10 = V_0;
Entry_t2924091039 * L_11 = V_1;
NullCheck(L_9);
ArrayElementTypeCheck (L_9, L_11);
(L_9)->SetAt(static_cast<il2cpp_array_size_t>(L_10), (Entry_t2924091039 *)L_11);
int32_t L_12 = __this->get__count_1();
V_2 = L_12;
int32_t L_13 = V_2;
__this->set__count_1(((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)1)));
int32_t L_14 = V_2;
int32_t L_15 = __this->get__mask_3();
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_0041;
}
}
{
PropertyNameTable_Grow_m2160967313(__this, /*hidden argument*/NULL);
}
IL_0041:
{
Entry_t2924091039 * L_16 = V_1;
NullCheck(L_16);
String_t* L_17 = L_16->get_Value_0();
return L_17;
}
}
// System.Void Newtonsoft.Json.Utilities.PropertyNameTable::Grow()
extern "C" void PropertyNameTable_Grow_m2160967313 (PropertyNameTable_t4130830590 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PropertyNameTable_Grow_m2160967313_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
EntryU5BU5D_t1995962374* V_0 = NULL;
int32_t V_1 = 0;
EntryU5BU5D_t1995962374* V_2 = NULL;
int32_t V_3 = 0;
Entry_t2924091039 * V_4 = NULL;
Entry_t2924091039 * V_5 = NULL;
int32_t V_6 = 0;
{
EntryU5BU5D_t1995962374* L_0 = __this->get__entries_2();
V_0 = L_0;
int32_t L_1 = __this->get__mask_3();
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)L_1, (int32_t)2)), (int32_t)1));
int32_t L_2 = V_1;
V_2 = ((EntryU5BU5D_t1995962374*)SZArrayNew(EntryU5BU5D_t1995962374_il2cpp_TypeInfo_var, (uint32_t)((int32_t)il2cpp_codegen_add((int32_t)L_2, (int32_t)1))));
V_3 = 0;
goto IL_0057;
}
IL_001f:
{
EntryU5BU5D_t1995962374* L_3 = V_0;
int32_t L_4 = V_3;
NullCheck(L_3);
int32_t L_5 = L_4;
Entry_t2924091039 * L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5));
V_5 = L_6;
goto IL_004f;
}
IL_0026:
{
Entry_t2924091039 * L_7 = V_5;
NullCheck(L_7);
int32_t L_8 = L_7->get_HashCode_1();
int32_t L_9 = V_1;
V_6 = ((int32_t)((int32_t)L_8&(int32_t)L_9));
Entry_t2924091039 * L_10 = V_5;
NullCheck(L_10);
Entry_t2924091039 * L_11 = L_10->get_Next_2();
V_4 = L_11;
Entry_t2924091039 * L_12 = V_5;
EntryU5BU5D_t1995962374* L_13 = V_2;
int32_t L_14 = V_6;
NullCheck(L_13);
int32_t L_15 = L_14;
Entry_t2924091039 * L_16 = (L_13)->GetAt(static_cast<il2cpp_array_size_t>(L_15));
NullCheck(L_12);
L_12->set_Next_2(L_16);
EntryU5BU5D_t1995962374* L_17 = V_2;
int32_t L_18 = V_6;
Entry_t2924091039 * L_19 = V_5;
NullCheck(L_17);
ArrayElementTypeCheck (L_17, L_19);
(L_17)->SetAt(static_cast<il2cpp_array_size_t>(L_18), (Entry_t2924091039 *)L_19);
Entry_t2924091039 * L_20 = V_4;
V_5 = L_20;
}
IL_004f:
{
Entry_t2924091039 * L_21 = V_5;
if (L_21)
{
goto IL_0026;
}
}
{
int32_t L_22 = V_3;
V_3 = ((int32_t)il2cpp_codegen_add((int32_t)L_22, (int32_t)1));
}
IL_0057:
{
int32_t L_23 = V_3;
EntryU5BU5D_t1995962374* L_24 = V_0;
NullCheck(L_24);
if ((((int32_t)L_23) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_24)->max_length)))))))
{
goto IL_001f;
}
}
{
EntryU5BU5D_t1995962374* L_25 = V_2;
__this->set__entries_2(L_25);
int32_t L_26 = V_1;
__this->set__mask_3(L_26);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.PropertyNameTable::TextEquals(System.String,System.Char[],System.Int32,System.Int32)
extern "C" bool PropertyNameTable_TextEquals_m2030128776 (RuntimeObject * __this /* static, unused */, String_t* ___str10, CharU5BU5D_t3528271667* ___str21, int32_t ___str2Start2, int32_t ___str2Length3, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
String_t* L_0 = ___str10;
NullCheck(L_0);
int32_t L_1 = String_get_Length_m3847582255(L_0, /*hidden argument*/NULL);
int32_t L_2 = ___str2Length3;
if ((((int32_t)L_1) == ((int32_t)L_2)))
{
goto IL_000b;
}
}
{
return (bool)0;
}
IL_000b:
{
V_0 = 0;
goto IL_0023;
}
IL_000f:
{
String_t* L_3 = ___str10;
int32_t L_4 = V_0;
NullCheck(L_3);
Il2CppChar L_5 = String_get_Chars_m2986988803(L_3, L_4, /*hidden argument*/NULL);
CharU5BU5D_t3528271667* L_6 = ___str21;
int32_t L_7 = ___str2Start2;
int32_t L_8 = V_0;
NullCheck(L_6);
int32_t L_9 = ((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)L_8));
uint16_t L_10 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
if ((((int32_t)L_5) == ((int32_t)L_10)))
{
goto IL_001f;
}
}
{
return (bool)0;
}
IL_001f:
{
int32_t L_11 = V_0;
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_11, (int32_t)1));
}
IL_0023:
{
int32_t L_12 = V_0;
String_t* L_13 = ___str10;
NullCheck(L_13);
int32_t L_14 = String_get_Length_m3847582255(L_13, /*hidden argument*/NULL);
if ((((int32_t)L_12) < ((int32_t)L_14)))
{
goto IL_000f;
}
}
{
return (bool)1;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.PropertyNameTable/Entry::.ctor(System.String,System.Int32,Newtonsoft.Json.Utilities.PropertyNameTable/Entry)
extern "C" void Entry__ctor_m1495177254 (Entry_t2924091039 * __this, String_t* ___value0, int32_t ___hashCode1, Entry_t2924091039 * ___next2, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
String_t* L_0 = ___value0;
__this->set_Value_0(L_0);
int32_t L_1 = ___hashCode1;
__this->set_HashCode_1(L_1);
Entry_t2924091039 * L_2 = ___next2;
__this->set_Next_2(L_2);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ReflectionDelegateFactory::.ctor()
extern "C" void ReflectionDelegateFactory__ctor_m3277517333 (ReflectionDelegateFactory_t2528576452 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Type Newtonsoft.Json.Utilities.ReflectionMember::get_MemberType()
extern "C" Type_t * ReflectionMember_get_MemberType_m1759785445 (ReflectionMember_t2655407482 * __this, const RuntimeMethod* method)
{
{
Type_t * L_0 = __this->get_U3CMemberTypeU3Ek__BackingField_0();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.ReflectionMember::set_MemberType(System.Type)
extern "C" void ReflectionMember_set_MemberType_m3957217921 (ReflectionMember_t2655407482 * __this, Type_t * ___value0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___value0;
__this->set_U3CMemberTypeU3Ek__BackingField_0(L_0);
return;
}
}
// System.Func`2<System.Object,System.Object> Newtonsoft.Json.Utilities.ReflectionMember::get_Getter()
extern "C" Func_2_t2447130374 * ReflectionMember_get_Getter_m2488656156 (ReflectionMember_t2655407482 * __this, const RuntimeMethod* method)
{
{
Func_2_t2447130374 * L_0 = __this->get_U3CGetterU3Ek__BackingField_1();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.ReflectionMember::set_Getter(System.Func`2<System.Object,System.Object>)
extern "C" void ReflectionMember_set_Getter_m3541426260 (ReflectionMember_t2655407482 * __this, Func_2_t2447130374 * ___value0, const RuntimeMethod* method)
{
{
Func_2_t2447130374 * L_0 = ___value0;
__this->set_U3CGetterU3Ek__BackingField_1(L_0);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.ReflectionMember::set_Setter(System.Action`2<System.Object,System.Object>)
extern "C" void ReflectionMember_set_Setter_m1832329444 (ReflectionMember_t2655407482 * __this, Action_2_t2470008838 * ___value0, const RuntimeMethod* method)
{
{
Action_2_t2470008838 * L_0 = ___value0;
__this->set_U3CSetterU3Ek__BackingField_2(L_0);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.ReflectionMember::.ctor()
extern "C" void ReflectionMember__ctor_m2612443734 (ReflectionMember_t2655407482 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ReflectionObject::set_Creator(Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object>)
extern "C" void ReflectionObject_set_Creator_m3308348627 (ReflectionObject_t701100009 * __this, ObjectConstructor_1_t3207922868 * ___value0, const RuntimeMethod* method)
{
{
ObjectConstructor_1_t3207922868 * L_0 = ___value0;
__this->set_U3CCreatorU3Ek__BackingField_0(L_0);
return;
}
}
// System.Collections.Generic.IDictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember> Newtonsoft.Json.Utilities.ReflectionObject::get_Members()
extern "C" RuntimeObject* ReflectionObject_get_Members_m1237437266 (ReflectionObject_t701100009 * __this, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = __this->get_U3CMembersU3Ek__BackingField_1();
return L_0;
}
}
// System.Void Newtonsoft.Json.Utilities.ReflectionObject::set_Members(System.Collections.Generic.IDictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember>)
extern "C" void ReflectionObject_set_Members_m1728563473 (ReflectionObject_t701100009 * __this, RuntimeObject* ___value0, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___value0;
__this->set_U3CMembersU3Ek__BackingField_1(L_0);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.ReflectionObject::.ctor()
extern "C" void ReflectionObject__ctor_m1062647964 (ReflectionObject_t701100009 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionObject__ctor_m1062647964_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
Dictionary_2_t2440663781 * L_0 = (Dictionary_2_t2440663781 *)il2cpp_codegen_object_new(Dictionary_2_t2440663781_il2cpp_TypeInfo_var);
Dictionary_2__ctor_m2127759587(L_0, /*hidden argument*/Dictionary_2__ctor_m2127759587_RuntimeMethod_var);
ReflectionObject_set_Members_m1728563473(__this, L_0, /*hidden argument*/NULL);
return;
}
}
// System.Object Newtonsoft.Json.Utilities.ReflectionObject::GetValue(System.Object,System.String)
extern "C" RuntimeObject * ReflectionObject_GetValue_m2531865869 (ReflectionObject_t701100009 * __this, RuntimeObject * ___target0, String_t* ___member1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionObject_GetValue_m2531865869_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject* L_0 = ReflectionObject_get_Members_m1237437266(__this, /*hidden argument*/NULL);
String_t* L_1 = ___member1;
NullCheck(L_0);
ReflectionMember_t2655407482 * L_2 = InterfaceFuncInvoker1< ReflectionMember_t2655407482 *, String_t* >::Invoke(0 /* !1 System.Collections.Generic.IDictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember>::get_Item(!0) */, IDictionary_2_t904515172_il2cpp_TypeInfo_var, L_0, L_1);
NullCheck(L_2);
Func_2_t2447130374 * L_3 = ReflectionMember_get_Getter_m2488656156(L_2, /*hidden argument*/NULL);
RuntimeObject * L_4 = ___target0;
NullCheck(L_3);
RuntimeObject * L_5 = Func_2_Invoke_m3562087266(L_3, L_4, /*hidden argument*/Func_2_Invoke_m3562087266_RuntimeMethod_var);
return L_5;
}
}
// System.Type Newtonsoft.Json.Utilities.ReflectionObject::GetType(System.String)
extern "C" Type_t * ReflectionObject_GetType_m2200262811 (ReflectionObject_t701100009 * __this, String_t* ___member0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionObject_GetType_m2200262811_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject* L_0 = ReflectionObject_get_Members_m1237437266(__this, /*hidden argument*/NULL);
String_t* L_1 = ___member0;
NullCheck(L_0);
ReflectionMember_t2655407482 * L_2 = InterfaceFuncInvoker1< ReflectionMember_t2655407482 *, String_t* >::Invoke(0 /* !1 System.Collections.Generic.IDictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember>::get_Item(!0) */, IDictionary_2_t904515172_il2cpp_TypeInfo_var, L_0, L_1);
NullCheck(L_2);
Type_t * L_3 = ReflectionMember_get_MemberType_m1759785445(L_2, /*hidden argument*/NULL);
return L_3;
}
}
// Newtonsoft.Json.Utilities.ReflectionObject Newtonsoft.Json.Utilities.ReflectionObject::Create(System.Type,System.String[])
extern "C" ReflectionObject_t701100009 * ReflectionObject_Create_m720835830 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, StringU5BU5D_t1281789340* ___memberNames1, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___t0;
StringU5BU5D_t1281789340* L_1 = ___memberNames1;
ReflectionObject_t701100009 * L_2 = ReflectionObject_Create_m73781573(NULL /*static, unused*/, L_0, (MethodBase_t *)NULL, L_1, /*hidden argument*/NULL);
return L_2;
}
}
// Newtonsoft.Json.Utilities.ReflectionObject Newtonsoft.Json.Utilities.ReflectionObject::Create(System.Type,System.Reflection.MethodBase,System.String[])
extern "C" ReflectionObject_t701100009 * ReflectionObject_Create_m73781573 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, MethodBase_t * ___creator1, StringU5BU5D_t1281789340* ___memberNames2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionObject_Create_m73781573_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
ReflectionObject_t701100009 * V_0 = NULL;
ReflectionDelegateFactory_t2528576452 * V_1 = NULL;
U3CU3Ec__DisplayClass13_0_t4294006577 * V_2 = NULL;
StringU5BU5D_t1281789340* V_3 = NULL;
int32_t V_4 = 0;
String_t* V_5 = NULL;
MemberInfo_t * V_6 = NULL;
ReflectionMember_t2655407482 * V_7 = NULL;
int32_t V_8 = 0;
MethodInfo_t * V_9 = NULL;
ParameterInfoU5BU5D_t390618515* V_10 = NULL;
U3CU3Ec__DisplayClass13_1_t1955354417 * V_11 = NULL;
U3CU3Ec__DisplayClass13_2_t381376305 * V_12 = NULL;
MemberInfoU5BU5D_t1302094432* G_B7_0 = NULL;
MemberInfoU5BU5D_t1302094432* G_B6_0 = NULL;
{
ReflectionObject_t701100009 * L_0 = (ReflectionObject_t701100009 *)il2cpp_codegen_object_new(ReflectionObject_t701100009_il2cpp_TypeInfo_var);
ReflectionObject__ctor_m1062647964(L_0, /*hidden argument*/NULL);
V_0 = L_0;
IL2CPP_RUNTIME_CLASS_INIT(JsonTypeReflector_t526591219_il2cpp_TypeInfo_var);
ReflectionDelegateFactory_t2528576452 * L_1 = JsonTypeReflector_get_ReflectionDelegateFactory_m2937328847(NULL /*static, unused*/, /*hidden argument*/NULL);
V_1 = L_1;
MethodBase_t * L_2 = ___creator1;
if (!L_2)
{
goto IL_001e;
}
}
{
ReflectionObject_t701100009 * L_3 = V_0;
ReflectionDelegateFactory_t2528576452 * L_4 = V_1;
MethodBase_t * L_5 = ___creator1;
NullCheck(L_4);
ObjectConstructor_1_t3207922868 * L_6 = VirtFuncInvoker1< ObjectConstructor_1_t3207922868 *, MethodBase_t * >::Invoke(5 /* Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object> Newtonsoft.Json.Utilities.ReflectionDelegateFactory::CreateParameterizedConstructor(System.Reflection.MethodBase) */, L_4, L_5);
NullCheck(L_3);
ReflectionObject_set_Creator_m3308348627(L_3, L_6, /*hidden argument*/NULL);
goto IL_004c;
}
IL_001e:
{
Type_t * L_7 = ___t0;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_8 = ReflectionUtils_HasDefaultConstructor_m3011828166(NULL /*static, unused*/, L_7, (bool)0, /*hidden argument*/NULL);
if (!L_8)
{
goto IL_004c;
}
}
{
U3CU3Ec__DisplayClass13_0_t4294006577 * L_9 = (U3CU3Ec__DisplayClass13_0_t4294006577 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass13_0_t4294006577_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass13_0__ctor_m2896337997(L_9, /*hidden argument*/NULL);
V_2 = L_9;
U3CU3Ec__DisplayClass13_0_t4294006577 * L_10 = V_2;
ReflectionDelegateFactory_t2528576452 * L_11 = V_1;
Type_t * L_12 = ___t0;
NullCheck(L_11);
Func_1_t2509852811 * L_13 = GenericVirtFuncInvoker1< Func_1_t2509852811 *, Type_t * >::Invoke(ReflectionDelegateFactory_CreateDefaultConstructor_TisRuntimeObject_m1416164154_RuntimeMethod_var, L_11, L_12);
NullCheck(L_10);
L_10->set_ctor_0(L_13);
ReflectionObject_t701100009 * L_14 = V_0;
U3CU3Ec__DisplayClass13_0_t4294006577 * L_15 = V_2;
intptr_t L_16 = (intptr_t)U3CU3Ec__DisplayClass13_0_U3CCreateU3Eb__0_m376730355_RuntimeMethod_var;
ObjectConstructor_1_t3207922868 * L_17 = (ObjectConstructor_1_t3207922868 *)il2cpp_codegen_object_new(ObjectConstructor_1_t3207922868_il2cpp_TypeInfo_var);
ObjectConstructor_1__ctor_m1181679199(L_17, L_15, L_16, /*hidden argument*/ObjectConstructor_1__ctor_m1181679199_RuntimeMethod_var);
NullCheck(L_14);
ReflectionObject_set_Creator_m3308348627(L_14, L_17, /*hidden argument*/NULL);
}
IL_004c:
{
StringU5BU5D_t1281789340* L_18 = ___memberNames2;
V_3 = L_18;
V_4 = 0;
goto IL_0217;
}
IL_0056:
{
StringU5BU5D_t1281789340* L_19 = V_3;
int32_t L_20 = V_4;
NullCheck(L_19);
int32_t L_21 = L_20;
String_t* L_22 = (L_19)->GetAt(static_cast<il2cpp_array_size_t>(L_21));
V_5 = L_22;
Type_t * L_23 = ___t0;
String_t* L_24 = V_5;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MemberInfoU5BU5D_t1302094432* L_25 = TypeExtensions_GetMember_m3247939173(NULL /*static, unused*/, L_23, L_24, ((int32_t)20), /*hidden argument*/NULL);
MemberInfoU5BU5D_t1302094432* L_26 = L_25;
NullCheck(L_26);
G_B6_0 = L_26;
if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_26)->max_length))))) == ((int32_t)1)))
{
G_B7_0 = L_26;
goto IL_0083;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_27 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
String_t* L_28 = V_5;
String_t* L_29 = StringUtils_FormatWith_m3056805521(NULL /*static, unused*/, _stringLiteral2233631454, L_27, L_28, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_30 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_30, L_29, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_30, NULL, ReflectionObject_Create_m73781573_RuntimeMethod_var);
}
IL_0083:
{
MemberInfo_t * L_31 = Enumerable_Single_TisMemberInfo_t_m851241132(NULL /*static, unused*/, (RuntimeObject*)(RuntimeObject*)G_B7_0, /*hidden argument*/Enumerable_Single_TisMemberInfo_t_m851241132_RuntimeMethod_var);
V_6 = L_31;
ReflectionMember_t2655407482 * L_32 = (ReflectionMember_t2655407482 *)il2cpp_codegen_object_new(ReflectionMember_t2655407482_il2cpp_TypeInfo_var);
ReflectionMember__ctor_m2612443734(L_32, /*hidden argument*/NULL);
V_7 = L_32;
MemberInfo_t * L_33 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_34 = TypeExtensions_MemberType_m2046620246(NULL /*static, unused*/, L_33, /*hidden argument*/NULL);
V_8 = L_34;
int32_t L_35 = V_8;
switch (L_35)
{
case 0:
{
goto IL_00b6;
}
case 1:
{
goto IL_00b6;
}
case 2:
{
goto IL_0199;
}
case 3:
{
goto IL_00f1;
}
}
}
{
goto IL_0199;
}
IL_00b6:
{
MemberInfo_t * L_36 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_37 = ReflectionUtils_CanReadMemberValue_m1473164796(NULL /*static, unused*/, L_36, (bool)0, /*hidden argument*/NULL);
if (!L_37)
{
goto IL_00cf;
}
}
{
ReflectionMember_t2655407482 * L_38 = V_7;
ReflectionDelegateFactory_t2528576452 * L_39 = V_1;
MemberInfo_t * L_40 = V_6;
NullCheck(L_39);
Func_2_t2447130374 * L_41 = ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m2506523516(L_39, L_40, /*hidden argument*/ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m2506523516_RuntimeMethod_var);
NullCheck(L_38);
ReflectionMember_set_Getter_m3541426260(L_38, L_41, /*hidden argument*/NULL);
}
IL_00cf:
{
MemberInfo_t * L_42 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_43 = ReflectionUtils_CanSetMemberValue_m1263216356(NULL /*static, unused*/, L_42, (bool)0, (bool)0, /*hidden argument*/NULL);
if (!L_43)
{
goto IL_01c1;
}
}
{
ReflectionMember_t2655407482 * L_44 = V_7;
ReflectionDelegateFactory_t2528576452 * L_45 = V_1;
MemberInfo_t * L_46 = V_6;
NullCheck(L_45);
Action_2_t2470008838 * L_47 = ReflectionDelegateFactory_CreateSet_TisRuntimeObject_m2440090338(L_45, L_46, /*hidden argument*/ReflectionDelegateFactory_CreateSet_TisRuntimeObject_m2440090338_RuntimeMethod_var);
NullCheck(L_44);
ReflectionMember_set_Setter_m1832329444(L_44, L_47, /*hidden argument*/NULL);
goto IL_01c1;
}
IL_00f1:
{
MemberInfo_t * L_48 = V_6;
V_9 = ((MethodInfo_t *)CastclassClass((RuntimeObject*)L_48, MethodInfo_t_il2cpp_TypeInfo_var));
MethodInfo_t * L_49 = V_9;
NullCheck(L_49);
bool L_50 = MethodBase_get_IsPublic_m2180846589(L_49, /*hidden argument*/NULL);
if (!L_50)
{
goto IL_01c1;
}
}
{
MethodInfo_t * L_51 = V_9;
NullCheck(L_51);
ParameterInfoU5BU5D_t390618515* L_52 = VirtFuncInvoker0< ParameterInfoU5BU5D_t390618515* >::Invoke(17 /* System.Reflection.ParameterInfo[] System.Reflection.MethodBase::GetParameters() */, L_51);
V_10 = L_52;
ParameterInfoU5BU5D_t390618515* L_53 = V_10;
NullCheck(L_53);
if ((((RuntimeArray *)L_53)->max_length))
{
goto IL_0153;
}
}
{
MethodInfo_t * L_54 = V_9;
NullCheck(L_54);
Type_t * L_55 = VirtFuncInvoker0< Type_t * >::Invoke(44 /* System.Type System.Reflection.MethodInfo::get_ReturnType() */, L_54);
RuntimeTypeHandle_t3027515415 L_56 = { reinterpret_cast<intptr_t> (Void_t1185182177_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_57 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_56, /*hidden argument*/NULL);
if ((((RuntimeObject*)(Type_t *)L_55) == ((RuntimeObject*)(Type_t *)L_57)))
{
goto IL_0153;
}
}
{
U3CU3Ec__DisplayClass13_1_t1955354417 * L_58 = (U3CU3Ec__DisplayClass13_1_t1955354417 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass13_1_t1955354417_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass13_1__ctor_m3019742285(L_58, /*hidden argument*/NULL);
V_11 = L_58;
U3CU3Ec__DisplayClass13_1_t1955354417 * L_59 = V_11;
ReflectionDelegateFactory_t2528576452 * L_60 = V_1;
MethodInfo_t * L_61 = V_9;
NullCheck(L_60);
MethodCall_2_t2845904993 * L_62 = GenericVirtFuncInvoker1< MethodCall_2_t2845904993 *, MethodBase_t * >::Invoke(ReflectionDelegateFactory_CreateMethodCall_TisRuntimeObject_m2397225021_RuntimeMethod_var, L_60, L_61);
NullCheck(L_59);
L_59->set_call_0(L_62);
ReflectionMember_t2655407482 * L_63 = V_7;
U3CU3Ec__DisplayClass13_1_t1955354417 * L_64 = V_11;
intptr_t L_65 = (intptr_t)U3CU3Ec__DisplayClass13_1_U3CCreateU3Eb__1_m2235834647_RuntimeMethod_var;
Func_2_t2447130374 * L_66 = (Func_2_t2447130374 *)il2cpp_codegen_object_new(Func_2_t2447130374_il2cpp_TypeInfo_var);
Func_2__ctor_m3860723828(L_66, L_64, L_65, /*hidden argument*/Func_2__ctor_m3860723828_RuntimeMethod_var);
NullCheck(L_63);
ReflectionMember_set_Getter_m3541426260(L_63, L_66, /*hidden argument*/NULL);
goto IL_01c1;
}
IL_0153:
{
ParameterInfoU5BU5D_t390618515* L_67 = V_10;
NullCheck(L_67);
if ((!(((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_67)->max_length))))) == ((uint32_t)1))))
{
goto IL_01c1;
}
}
{
MethodInfo_t * L_68 = V_9;
NullCheck(L_68);
Type_t * L_69 = VirtFuncInvoker0< Type_t * >::Invoke(44 /* System.Type System.Reflection.MethodInfo::get_ReturnType() */, L_68);
RuntimeTypeHandle_t3027515415 L_70 = { reinterpret_cast<intptr_t> (Void_t1185182177_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_71 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_70, /*hidden argument*/NULL);
if ((!(((RuntimeObject*)(Type_t *)L_69) == ((RuntimeObject*)(Type_t *)L_71))))
{
goto IL_01c1;
}
}
{
U3CU3Ec__DisplayClass13_2_t381376305 * L_72 = (U3CU3Ec__DisplayClass13_2_t381376305 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass13_2_t381376305_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass13_2__ctor_m1329372237(L_72, /*hidden argument*/NULL);
V_12 = L_72;
U3CU3Ec__DisplayClass13_2_t381376305 * L_73 = V_12;
ReflectionDelegateFactory_t2528576452 * L_74 = V_1;
MethodInfo_t * L_75 = V_9;
NullCheck(L_74);
MethodCall_2_t2845904993 * L_76 = GenericVirtFuncInvoker1< MethodCall_2_t2845904993 *, MethodBase_t * >::Invoke(ReflectionDelegateFactory_CreateMethodCall_TisRuntimeObject_m2397225021_RuntimeMethod_var, L_74, L_75);
NullCheck(L_73);
L_73->set_call_0(L_76);
ReflectionMember_t2655407482 * L_77 = V_7;
U3CU3Ec__DisplayClass13_2_t381376305 * L_78 = V_12;
intptr_t L_79 = (intptr_t)U3CU3Ec__DisplayClass13_2_U3CCreateU3Eb__2_m2723401855_RuntimeMethod_var;
Action_2_t2470008838 * L_80 = (Action_2_t2470008838 *)il2cpp_codegen_object_new(Action_2_t2470008838_il2cpp_TypeInfo_var);
Action_2__ctor_m22087660(L_80, L_78, L_79, /*hidden argument*/Action_2__ctor_m22087660_RuntimeMethod_var);
NullCheck(L_77);
ReflectionMember_set_Setter_m1832329444(L_77, L_80, /*hidden argument*/NULL);
goto IL_01c1;
}
IL_0199:
{
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_81 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
MemberInfo_t * L_82 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_83 = TypeExtensions_MemberType_m2046620246(NULL /*static, unused*/, L_82, /*hidden argument*/NULL);
int32_t L_84 = L_83;
RuntimeObject * L_85 = Box(MemberTypes_t2015719099_il2cpp_TypeInfo_var, &L_84);
MemberInfo_t * L_86 = V_6;
NullCheck(L_86);
String_t* L_87 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_86);
String_t* L_88 = StringUtils_FormatWith_m353537829(NULL /*static, unused*/, _stringLiteral3336955582, L_81, L_85, L_87, /*hidden argument*/NULL);
ArgumentException_t132251570 * L_89 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1312628991(L_89, L_88, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_89, NULL, ReflectionObject_Create_m73781573_RuntimeMethod_var);
}
IL_01c1:
{
MemberInfo_t * L_90 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_91 = ReflectionUtils_CanReadMemberValue_m1473164796(NULL /*static, unused*/, L_90, (bool)0, /*hidden argument*/NULL);
if (!L_91)
{
goto IL_01da;
}
}
{
ReflectionMember_t2655407482 * L_92 = V_7;
ReflectionDelegateFactory_t2528576452 * L_93 = V_1;
MemberInfo_t * L_94 = V_6;
NullCheck(L_93);
Func_2_t2447130374 * L_95 = ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m2506523516(L_93, L_94, /*hidden argument*/ReflectionDelegateFactory_CreateGet_TisRuntimeObject_m2506523516_RuntimeMethod_var);
NullCheck(L_92);
ReflectionMember_set_Getter_m3541426260(L_92, L_95, /*hidden argument*/NULL);
}
IL_01da:
{
MemberInfo_t * L_96 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_97 = ReflectionUtils_CanSetMemberValue_m1263216356(NULL /*static, unused*/, L_96, (bool)0, (bool)0, /*hidden argument*/NULL);
if (!L_97)
{
goto IL_01f4;
}
}
{
ReflectionMember_t2655407482 * L_98 = V_7;
ReflectionDelegateFactory_t2528576452 * L_99 = V_1;
MemberInfo_t * L_100 = V_6;
NullCheck(L_99);
Action_2_t2470008838 * L_101 = ReflectionDelegateFactory_CreateSet_TisRuntimeObject_m2440090338(L_99, L_100, /*hidden argument*/ReflectionDelegateFactory_CreateSet_TisRuntimeObject_m2440090338_RuntimeMethod_var);
NullCheck(L_98);
ReflectionMember_set_Setter_m1832329444(L_98, L_101, /*hidden argument*/NULL);
}
IL_01f4:
{
ReflectionMember_t2655407482 * L_102 = V_7;
MemberInfo_t * L_103 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
Type_t * L_104 = ReflectionUtils_GetMemberUnderlyingType_m841662456(NULL /*static, unused*/, L_103, /*hidden argument*/NULL);
NullCheck(L_102);
ReflectionMember_set_MemberType_m3957217921(L_102, L_104, /*hidden argument*/NULL);
ReflectionObject_t701100009 * L_105 = V_0;
NullCheck(L_105);
RuntimeObject* L_106 = ReflectionObject_get_Members_m1237437266(L_105, /*hidden argument*/NULL);
String_t* L_107 = V_5;
ReflectionMember_t2655407482 * L_108 = V_7;
NullCheck(L_106);
InterfaceActionInvoker2< String_t*, ReflectionMember_t2655407482 * >::Invoke(1 /* System.Void System.Collections.Generic.IDictionary`2<System.String,Newtonsoft.Json.Utilities.ReflectionMember>::set_Item(!0,!1) */, IDictionary_2_t904515172_il2cpp_TypeInfo_var, L_106, L_107, L_108);
int32_t L_109 = V_4;
V_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_109, (int32_t)1));
}
IL_0217:
{
int32_t L_110 = V_4;
StringU5BU5D_t1281789340* L_111 = V_3;
NullCheck(L_111);
if ((((int32_t)L_110) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_111)->max_length)))))))
{
goto IL_0056;
}
}
{
ReflectionObject_t701100009 * L_112 = V_0;
return L_112;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass13_0__ctor_m2896337997 (U3CU3Ec__DisplayClass13_0_t4294006577 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Object Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_0::<Create>b__0(System.Object[])
extern "C" RuntimeObject * U3CU3Ec__DisplayClass13_0_U3CCreateU3Eb__0_m376730355 (U3CU3Ec__DisplayClass13_0_t4294006577 * __this, ObjectU5BU5D_t2843939325* ___args0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass13_0_U3CCreateU3Eb__0_m376730355_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Func_1_t2509852811 * L_0 = __this->get_ctor_0();
NullCheck(L_0);
RuntimeObject * L_1 = Func_1_Invoke_m2006563704(L_0, /*hidden argument*/Func_1_Invoke_m2006563704_RuntimeMethod_var);
return L_1;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_1::.ctor()
extern "C" void U3CU3Ec__DisplayClass13_1__ctor_m3019742285 (U3CU3Ec__DisplayClass13_1_t1955354417 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Object Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_1::<Create>b__1(System.Object)
extern "C" RuntimeObject * U3CU3Ec__DisplayClass13_1_U3CCreateU3Eb__1_m2235834647 (U3CU3Ec__DisplayClass13_1_t1955354417 * __this, RuntimeObject * ___target0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass13_1_U3CCreateU3Eb__1_m2235834647_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MethodCall_2_t2845904993 * L_0 = __this->get_call_0();
RuntimeObject * L_1 = ___target0;
NullCheck(L_0);
RuntimeObject * L_2 = MethodCall_2_Invoke_m386137395(L_0, L_1, ((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)0)), /*hidden argument*/MethodCall_2_Invoke_m386137395_RuntimeMethod_var);
return L_2;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_2::.ctor()
extern "C" void U3CU3Ec__DisplayClass13_2__ctor_m1329372237 (U3CU3Ec__DisplayClass13_2_t381376305 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.ReflectionObject/<>c__DisplayClass13_2::<Create>b__2(System.Object,System.Object)
extern "C" void U3CU3Ec__DisplayClass13_2_U3CCreateU3Eb__2_m2723401855 (U3CU3Ec__DisplayClass13_2_t381376305 * __this, RuntimeObject * ___target0, RuntimeObject * ___arg1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass13_2_U3CCreateU3Eb__2_m2723401855_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MethodCall_2_t2845904993 * L_0 = __this->get_call_0();
RuntimeObject * L_1 = ___target0;
ObjectU5BU5D_t2843939325* L_2 = ((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)1));
RuntimeObject * L_3 = ___arg1;
NullCheck(L_2);
ArrayElementTypeCheck (L_2, L_3);
(L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_3);
NullCheck(L_0);
MethodCall_2_Invoke_m386137395(L_0, L_1, L_2, /*hidden argument*/MethodCall_2_Invoke_m386137395_RuntimeMethod_var);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ReflectionUtils::.cctor()
extern "C" void ReflectionUtils__cctor_m1077063625 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils__cctor_m1077063625_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
((ReflectionUtils_t2669115404_StaticFields*)il2cpp_codegen_static_fields_for(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var))->set_EmptyTypes_0(((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)0)));
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsVirtual(System.Reflection.PropertyInfo)
extern "C" bool ReflectionUtils_IsVirtual_m3338583030 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_IsVirtual_m3338583030_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
MethodInfo_t * V_0 = NULL;
{
PropertyInfo_t * L_0 = ___propertyInfo0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral2854063445, /*hidden argument*/NULL);
PropertyInfo_t * L_1 = ___propertyInfo0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_2 = TypeExtensions_GetGetMethod_m1542366069(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
V_0 = L_2;
MethodInfo_t * L_3 = V_0;
if (!L_3)
{
goto IL_001f;
}
}
{
MethodInfo_t * L_4 = V_0;
NullCheck(L_4);
bool L_5 = MethodBase_get_IsVirtual_m2008546636(L_4, /*hidden argument*/NULL);
if (!L_5)
{
goto IL_001f;
}
}
{
return (bool)1;
}
IL_001f:
{
PropertyInfo_t * L_6 = ___propertyInfo0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_7 = TypeExtensions_GetSetMethod_m574838549(NULL /*static, unused*/, L_6, /*hidden argument*/NULL);
V_0 = L_7;
MethodInfo_t * L_8 = V_0;
if (!L_8)
{
goto IL_0033;
}
}
{
MethodInfo_t * L_9 = V_0;
NullCheck(L_9);
bool L_10 = MethodBase_get_IsVirtual_m2008546636(L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_0033;
}
}
{
return (bool)1;
}
IL_0033:
{
return (bool)0;
}
}
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.ReflectionUtils::GetBaseDefinition(System.Reflection.PropertyInfo)
extern "C" MethodInfo_t * ReflectionUtils_GetBaseDefinition_m628546257 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetBaseDefinition_m628546257_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
MethodInfo_t * V_0 = NULL;
{
PropertyInfo_t * L_0 = ___propertyInfo0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral2854063445, /*hidden argument*/NULL);
PropertyInfo_t * L_1 = ___propertyInfo0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_2 = TypeExtensions_GetGetMethod_m1542366069(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
V_0 = L_2;
MethodInfo_t * L_3 = V_0;
if (!L_3)
{
goto IL_001c;
}
}
{
MethodInfo_t * L_4 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_5 = TypeExtensions_GetBaseDefinition_m225967706(NULL /*static, unused*/, L_4, /*hidden argument*/NULL);
return L_5;
}
IL_001c:
{
PropertyInfo_t * L_6 = ___propertyInfo0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_7 = TypeExtensions_GetSetMethod_m574838549(NULL /*static, unused*/, L_6, /*hidden argument*/NULL);
V_0 = L_7;
MethodInfo_t * L_8 = V_0;
if (!L_8)
{
goto IL_002d;
}
}
{
MethodInfo_t * L_9 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_10 = TypeExtensions_GetBaseDefinition_m225967706(NULL /*static, unused*/, L_9, /*hidden argument*/NULL);
return L_10;
}
IL_002d:
{
return (MethodInfo_t *)NULL;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsPublic(System.Reflection.PropertyInfo)
extern "C" bool ReflectionUtils_IsPublic_m3896229770 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___property0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_IsPublic_m3896229770_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
PropertyInfo_t * L_0 = ___property0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_1 = TypeExtensions_GetGetMethod_m1542366069(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_0017;
}
}
{
PropertyInfo_t * L_2 = ___property0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_3 = TypeExtensions_GetGetMethod_m1542366069(NULL /*static, unused*/, L_2, /*hidden argument*/NULL);
NullCheck(L_3);
bool L_4 = MethodBase_get_IsPublic_m2180846589(L_3, /*hidden argument*/NULL);
if (!L_4)
{
goto IL_0017;
}
}
{
return (bool)1;
}
IL_0017:
{
PropertyInfo_t * L_5 = ___property0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_6 = TypeExtensions_GetSetMethod_m574838549(NULL /*static, unused*/, L_5, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_002e;
}
}
{
PropertyInfo_t * L_7 = ___property0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_8 = TypeExtensions_GetSetMethod_m574838549(NULL /*static, unused*/, L_7, /*hidden argument*/NULL);
NullCheck(L_8);
bool L_9 = MethodBase_get_IsPublic_m2180846589(L_8, /*hidden argument*/NULL);
if (!L_9)
{
goto IL_002e;
}
}
{
return (bool)1;
}
IL_002e:
{
return (bool)0;
}
}
// System.String Newtonsoft.Json.Utilities.ReflectionUtils::GetTypeName(System.Type,System.Runtime.Serialization.Formatters.FormatterAssemblyStyle,Newtonsoft.Json.SerializationBinder)
extern "C" String_t* ReflectionUtils_GetTypeName_m2947614997 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, int32_t ___assemblyFormat1, SerializationBinder_t3983938482 * ___binder2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetTypeName_m2947614997_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
String_t* V_0 = NULL;
String_t* V_1 = NULL;
String_t* V_2 = NULL;
String_t* G_B3_0 = NULL;
String_t* G_B2_0 = NULL;
String_t* G_B4_0 = NULL;
String_t* G_B4_1 = NULL;
{
SerializationBinder_t3983938482 * L_0 = ___binder2;
if (!L_0)
{
goto IL_002c;
}
}
{
SerializationBinder_t3983938482 * L_1 = ___binder2;
Type_t * L_2 = ___t0;
NullCheck(L_1);
VirtActionInvoker3< Type_t *, String_t**, String_t** >::Invoke(4 /* System.Void Newtonsoft.Json.SerializationBinder::BindToName(System.Type,System.String&,System.String&) */, L_1, L_2, (String_t**)(&V_1), (String_t**)(&V_2));
String_t* L_3 = V_2;
String_t* L_4 = V_1;
G_B2_0 = L_3;
if (!L_4)
{
G_B3_0 = L_3;
goto IL_001f;
}
}
{
String_t* L_5 = V_1;
String_t* L_6 = String_Concat_m3937257545(NULL /*static, unused*/, _stringLiteral3450517380, L_5, /*hidden argument*/NULL);
G_B4_0 = L_6;
G_B4_1 = G_B2_0;
goto IL_0024;
}
IL_001f:
{
G_B4_0 = _stringLiteral757602046;
G_B4_1 = G_B3_0;
}
IL_0024:
{
String_t* L_7 = String_Concat_m3937257545(NULL /*static, unused*/, G_B4_1, G_B4_0, /*hidden argument*/NULL);
V_0 = L_7;
goto IL_0033;
}
IL_002c:
{
Type_t * L_8 = ___t0;
NullCheck(L_8);
String_t* L_9 = VirtFuncInvoker0< String_t* >::Invoke(28 /* System.String System.Type::get_AssemblyQualifiedName() */, L_8);
V_0 = L_9;
}
IL_0033:
{
int32_t L_10 = ___assemblyFormat1;
if (!L_10)
{
goto IL_003c;
}
}
{
int32_t L_11 = ___assemblyFormat1;
if ((((int32_t)L_11) == ((int32_t)1)))
{
goto IL_0043;
}
}
{
goto IL_0045;
}
IL_003c:
{
String_t* L_12 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
String_t* L_13 = ReflectionUtils_RemoveAssemblyDetails_m3671180266(NULL /*static, unused*/, L_12, /*hidden argument*/NULL);
return L_13;
}
IL_0043:
{
String_t* L_14 = V_0;
return L_14;
}
IL_0045:
{
ArgumentOutOfRangeException_t777629997 * L_15 = (ArgumentOutOfRangeException_t777629997 *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t777629997_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m2047740448(L_15, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_15, NULL, ReflectionUtils_GetTypeName_m2947614997_RuntimeMethod_var);
}
}
// System.String Newtonsoft.Json.Utilities.ReflectionUtils::RemoveAssemblyDetails(System.String)
extern "C" String_t* ReflectionUtils_RemoveAssemblyDetails_m3671180266 (RuntimeObject * __this /* static, unused */, String_t* ___fullyQualifiedTypeName0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_RemoveAssemblyDetails_m3671180266_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
StringBuilder_t * V_0 = NULL;
bool V_1 = false;
bool V_2 = false;
int32_t V_3 = 0;
Il2CppChar V_4 = 0x0;
{
StringBuilder_t * L_0 = (StringBuilder_t *)il2cpp_codegen_object_new(StringBuilder_t_il2cpp_TypeInfo_var);
StringBuilder__ctor_m3121283359(L_0, /*hidden argument*/NULL);
V_0 = L_0;
V_1 = (bool)0;
V_2 = (bool)0;
V_3 = 0;
goto IL_006d;
}
IL_000e:
{
String_t* L_1 = ___fullyQualifiedTypeName0;
int32_t L_2 = V_3;
NullCheck(L_1);
Il2CppChar L_3 = String_get_Chars_m2986988803(L_1, L_2, /*hidden argument*/NULL);
V_4 = L_3;
Il2CppChar L_4 = V_4;
if ((((int32_t)L_4) == ((int32_t)((int32_t)44))))
{
goto IL_0049;
}
}
{
Il2CppChar L_5 = V_4;
if ((((int32_t)L_5) == ((int32_t)((int32_t)91))))
{
goto IL_002b;
}
}
{
Il2CppChar L_6 = V_4;
if ((((int32_t)L_6) == ((int32_t)((int32_t)93))))
{
goto IL_003a;
}
}
{
goto IL_005d;
}
IL_002b:
{
V_1 = (bool)0;
V_2 = (bool)0;
StringBuilder_t * L_7 = V_0;
Il2CppChar L_8 = V_4;
NullCheck(L_7);
StringBuilder_Append_m2383614642(L_7, L_8, /*hidden argument*/NULL);
goto IL_0069;
}
IL_003a:
{
V_1 = (bool)0;
V_2 = (bool)0;
StringBuilder_t * L_9 = V_0;
Il2CppChar L_10 = V_4;
NullCheck(L_9);
StringBuilder_Append_m2383614642(L_9, L_10, /*hidden argument*/NULL);
goto IL_0069;
}
IL_0049:
{
bool L_11 = V_1;
if (L_11)
{
goto IL_0059;
}
}
{
V_1 = (bool)1;
StringBuilder_t * L_12 = V_0;
Il2CppChar L_13 = V_4;
NullCheck(L_12);
StringBuilder_Append_m2383614642(L_12, L_13, /*hidden argument*/NULL);
goto IL_0069;
}
IL_0059:
{
V_2 = (bool)1;
goto IL_0069;
}
IL_005d:
{
bool L_14 = V_2;
if (L_14)
{
goto IL_0069;
}
}
{
StringBuilder_t * L_15 = V_0;
Il2CppChar L_16 = V_4;
NullCheck(L_15);
StringBuilder_Append_m2383614642(L_15, L_16, /*hidden argument*/NULL);
}
IL_0069:
{
int32_t L_17 = V_3;
V_3 = ((int32_t)il2cpp_codegen_add((int32_t)L_17, (int32_t)1));
}
IL_006d:
{
int32_t L_18 = V_3;
String_t* L_19 = ___fullyQualifiedTypeName0;
NullCheck(L_19);
int32_t L_20 = String_get_Length_m3847582255(L_19, /*hidden argument*/NULL);
if ((((int32_t)L_18) < ((int32_t)L_20)))
{
goto IL_000e;
}
}
{
StringBuilder_t * L_21 = V_0;
NullCheck(L_21);
String_t* L_22 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_21);
return L_22;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::HasDefaultConstructor(System.Type,System.Boolean)
extern "C" bool ReflectionUtils_HasDefaultConstructor_m3011828166 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, bool ___nonPublic1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_HasDefaultConstructor_m3011828166_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___t0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral3452614604, /*hidden argument*/NULL);
Type_t * L_1 = ___t0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_2 = TypeExtensions_IsValueType_m852671066(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_0015;
}
}
{
return (bool)1;
}
IL_0015:
{
Type_t * L_3 = ___t0;
bool L_4 = ___nonPublic1;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
ConstructorInfo_t5769829 * L_5 = ReflectionUtils_GetDefaultConstructor_m3042638765(NULL /*static, unused*/, L_3, L_4, /*hidden argument*/NULL);
return (bool)((!(((RuntimeObject*)(ConstructorInfo_t5769829 *)L_5) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
}
// System.Reflection.ConstructorInfo Newtonsoft.Json.Utilities.ReflectionUtils::GetDefaultConstructor(System.Type)
extern "C" ConstructorInfo_t5769829 * ReflectionUtils_GetDefaultConstructor_m4213349706 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetDefaultConstructor_m4213349706_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___t0;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
ConstructorInfo_t5769829 * L_1 = ReflectionUtils_GetDefaultConstructor_m3042638765(NULL /*static, unused*/, L_0, (bool)0, /*hidden argument*/NULL);
return L_1;
}
}
// System.Reflection.ConstructorInfo Newtonsoft.Json.Utilities.ReflectionUtils::GetDefaultConstructor(System.Type,System.Boolean)
extern "C" ConstructorInfo_t5769829 * ReflectionUtils_GetDefaultConstructor_m3042638765 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, bool ___nonPublic1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetDefaultConstructor_m3042638765_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
Func_2_t1796590042 * G_B4_0 = NULL;
RuntimeObject* G_B4_1 = NULL;
Func_2_t1796590042 * G_B3_0 = NULL;
RuntimeObject* G_B3_1 = NULL;
{
V_0 = ((int32_t)20);
bool L_0 = ___nonPublic1;
if (!L_0)
{
goto IL_000b;
}
}
{
int32_t L_1 = V_0;
V_0 = ((int32_t)((int32_t)L_1|(int32_t)((int32_t)32)));
}
IL_000b:
{
Type_t * L_2 = ___t0;
int32_t L_3 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_4 = TypeExtensions_GetConstructors_m3290158206(NULL /*static, unused*/, L_2, L_3, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var);
Func_2_t1796590042 * L_5 = ((U3CU3Ec_t3587133118_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var))->get_U3CU3E9__10_0_1();
Func_2_t1796590042 * L_6 = L_5;
G_B3_0 = L_6;
G_B3_1 = L_4;
if (L_6)
{
G_B4_0 = L_6;
G_B4_1 = L_4;
goto IL_0031;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var);
U3CU3Ec_t3587133118 * L_7 = ((U3CU3Ec_t3587133118_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var))->get_U3CU3E9_0();
intptr_t L_8 = (intptr_t)U3CU3Ec_U3CGetDefaultConstructorU3Eb__10_0_m1917227267_RuntimeMethod_var;
Func_2_t1796590042 * L_9 = (Func_2_t1796590042 *)il2cpp_codegen_object_new(Func_2_t1796590042_il2cpp_TypeInfo_var);
Func_2__ctor_m2207392731(L_9, L_7, L_8, /*hidden argument*/Func_2__ctor_m2207392731_RuntimeMethod_var);
Func_2_t1796590042 * L_10 = L_9;
((U3CU3Ec_t3587133118_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var))->set_U3CU3E9__10_0_1(L_10);
G_B4_0 = L_10;
G_B4_1 = G_B3_1;
}
IL_0031:
{
ConstructorInfo_t5769829 * L_11 = Enumerable_SingleOrDefault_TisConstructorInfo_t5769829_m947313160(NULL /*static, unused*/, G_B4_1, G_B4_0, /*hidden argument*/Enumerable_SingleOrDefault_TisConstructorInfo_t5769829_m947313160_RuntimeMethod_var);
return L_11;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsNullable(System.Type)
extern "C" bool ReflectionUtils_IsNullable_m645225420 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_IsNullable_m645225420_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___t0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral3452614604, /*hidden argument*/NULL);
Type_t * L_1 = ___t0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_2 = TypeExtensions_IsValueType_m852671066(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_001a;
}
}
{
Type_t * L_3 = ___t0;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_4 = ReflectionUtils_IsNullableType_m2557784957(NULL /*static, unused*/, L_3, /*hidden argument*/NULL);
return L_4;
}
IL_001a:
{
return (bool)1;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsNullableType(System.Type)
extern "C" bool ReflectionUtils_IsNullableType_m2557784957 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_IsNullableType_m2557784957_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___t0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral3452614604, /*hidden argument*/NULL);
Type_t * L_1 = ___t0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_2 = TypeExtensions_IsGenericType_m3947308765(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_0026;
}
}
{
Type_t * L_3 = ___t0;
NullCheck(L_3);
Type_t * L_4 = VirtFuncInvoker0< Type_t * >::Invoke(110 /* System.Type System.Type::GetGenericTypeDefinition() */, L_3);
RuntimeTypeHandle_t3027515415 L_5 = { reinterpret_cast<intptr_t> (Nullable_1_t3772285925_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_6 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_5, /*hidden argument*/NULL);
return (bool)((((RuntimeObject*)(Type_t *)L_4) == ((RuntimeObject*)(Type_t *)L_6))? 1 : 0);
}
IL_0026:
{
return (bool)0;
}
}
// System.Type Newtonsoft.Json.Utilities.ReflectionUtils::EnsureNotNullableType(System.Type)
extern "C" Type_t * ReflectionUtils_EnsureNotNullableType_m3060298386 (RuntimeObject * __this /* static, unused */, Type_t * ___t0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_EnsureNotNullableType_m3060298386_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___t0;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_1 = ReflectionUtils_IsNullableType_m2557784957(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
if (L_1)
{
goto IL_000a;
}
}
{
Type_t * L_2 = ___t0;
return L_2;
}
IL_000a:
{
Type_t * L_3 = ___t0;
Type_t * L_4 = Nullable_GetUnderlyingType_m3905033790(NULL /*static, unused*/, L_3, /*hidden argument*/NULL);
return L_4;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsGenericDefinition(System.Type,System.Type)
extern "C" bool ReflectionUtils_IsGenericDefinition_m4108214610 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___genericInterfaceDefinition1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_IsGenericDefinition_m4108214610_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_1 = TypeExtensions_IsGenericType_m3947308765(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
if (L_1)
{
goto IL_000a;
}
}
{
return (bool)0;
}
IL_000a:
{
Type_t * L_2 = ___type0;
NullCheck(L_2);
Type_t * L_3 = VirtFuncInvoker0< Type_t * >::Invoke(110 /* System.Type System.Type::GetGenericTypeDefinition() */, L_2);
Type_t * L_4 = ___genericInterfaceDefinition1;
return (bool)((((RuntimeObject*)(Type_t *)L_3) == ((RuntimeObject*)(Type_t *)L_4))? 1 : 0);
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::ImplementsGenericDefinition(System.Type,System.Type)
extern "C" bool ReflectionUtils_ImplementsGenericDefinition_m1481186786 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___genericInterfaceDefinition1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_ImplementsGenericDefinition_m1481186786_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Type_t * V_0 = NULL;
{
Type_t * L_0 = ___type0;
Type_t * L_1 = ___genericInterfaceDefinition1;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_2 = ReflectionUtils_ImplementsGenericDefinition_m2172968317(NULL /*static, unused*/, L_0, L_1, (Type_t **)(&V_0), /*hidden argument*/NULL);
return L_2;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::ImplementsGenericDefinition(System.Type,System.Type,System.Type&)
extern "C" bool ReflectionUtils_ImplementsGenericDefinition_m2172968317 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___genericInterfaceDefinition1, Type_t ** ___implementingType2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_ImplementsGenericDefinition_m2172968317_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Type_t * V_0 = NULL;
RuntimeObject* V_1 = NULL;
Type_t * V_2 = NULL;
Type_t * V_3 = NULL;
bool V_4 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
Type_t * L_0 = ___type0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral3243520166, /*hidden argument*/NULL);
Type_t * L_1 = ___genericInterfaceDefinition1;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_1, _stringLiteral4032246892, /*hidden argument*/NULL);
Type_t * L_2 = ___genericInterfaceDefinition1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_3 = TypeExtensions_IsInterface_m3543394130(NULL /*static, unused*/, L_2, /*hidden argument*/NULL);
if (!L_3)
{
goto IL_0026;
}
}
{
Type_t * L_4 = ___genericInterfaceDefinition1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_5 = TypeExtensions_IsGenericTypeDefinition_m2160044791(NULL /*static, unused*/, L_4, /*hidden argument*/NULL);
if (L_5)
{
goto IL_003c;
}
}
IL_0026:
{
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_6 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
Type_t * L_7 = ___genericInterfaceDefinition1;
String_t* L_8 = StringUtils_FormatWith_m3056805521(NULL /*static, unused*/, _stringLiteral3302261911, L_6, L_7, /*hidden argument*/NULL);
ArgumentNullException_t1615371798 * L_9 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_9, L_8, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, NULL, ReflectionUtils_ImplementsGenericDefinition_m2172968317_RuntimeMethod_var);
}
IL_003c:
{
Type_t * L_10 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_11 = TypeExtensions_IsInterface_m3543394130(NULL /*static, unused*/, L_10, /*hidden argument*/NULL);
if (!L_11)
{
goto IL_005c;
}
}
{
Type_t * L_12 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_13 = TypeExtensions_IsGenericType_m3947308765(NULL /*static, unused*/, L_12, /*hidden argument*/NULL);
if (!L_13)
{
goto IL_005c;
}
}
{
Type_t * L_14 = ___type0;
NullCheck(L_14);
Type_t * L_15 = VirtFuncInvoker0< Type_t * >::Invoke(110 /* System.Type System.Type::GetGenericTypeDefinition() */, L_14);
V_0 = L_15;
Type_t * L_16 = ___genericInterfaceDefinition1;
Type_t * L_17 = V_0;
if ((!(((RuntimeObject*)(Type_t *)L_16) == ((RuntimeObject*)(Type_t *)L_17))))
{
goto IL_005c;
}
}
{
Type_t ** L_18 = ___implementingType2;
Type_t * L_19 = ___type0;
*((RuntimeObject **)(L_18)) = (RuntimeObject *)L_19;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_18), (RuntimeObject *)L_19);
return (bool)1;
}
IL_005c:
{
Type_t * L_20 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_21 = TypeExtensions_GetInterfaces_m3246501328(NULL /*static, unused*/, L_20, /*hidden argument*/NULL);
NullCheck(L_21);
RuntimeObject* L_22 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Type>::GetEnumerator() */, IEnumerable_1_t1463797649_il2cpp_TypeInfo_var, L_21);
V_1 = L_22;
}
IL_0068:
try
{ // begin try (depth: 1)
{
goto IL_008c;
}
IL_006a:
{
RuntimeObject* L_23 = V_1;
NullCheck(L_23);
Type_t * L_24 = InterfaceFuncInvoker0< Type_t * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Type>::get_Current() */, IEnumerator_1_t2916515228_il2cpp_TypeInfo_var, L_23);
V_2 = L_24;
Type_t * L_25 = V_2;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_26 = TypeExtensions_IsGenericType_m3947308765(NULL /*static, unused*/, L_25, /*hidden argument*/NULL);
if (!L_26)
{
goto IL_008c;
}
}
IL_0079:
{
Type_t * L_27 = V_2;
NullCheck(L_27);
Type_t * L_28 = VirtFuncInvoker0< Type_t * >::Invoke(110 /* System.Type System.Type::GetGenericTypeDefinition() */, L_27);
V_3 = L_28;
Type_t * L_29 = ___genericInterfaceDefinition1;
Type_t * L_30 = V_3;
if ((!(((RuntimeObject*)(Type_t *)L_29) == ((RuntimeObject*)(Type_t *)L_30))))
{
goto IL_008c;
}
}
IL_0084:
{
Type_t ** L_31 = ___implementingType2;
Type_t * L_32 = V_2;
*((RuntimeObject **)(L_31)) = (RuntimeObject *)L_32;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_31), (RuntimeObject *)L_32);
V_4 = (bool)1;
IL2CPP_LEAVE(0xA5, FINALLY_0096);
}
IL_008c:
{
RuntimeObject* L_33 = V_1;
NullCheck(L_33);
bool L_34 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_33);
if (L_34)
{
goto IL_006a;
}
}
IL_0094:
{
IL2CPP_LEAVE(0xA0, FINALLY_0096);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0096;
}
FINALLY_0096:
{ // begin finally (depth: 1)
{
RuntimeObject* L_35 = V_1;
if (!L_35)
{
goto IL_009f;
}
}
IL_0099:
{
RuntimeObject* L_36 = V_1;
NullCheck(L_36);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_36);
}
IL_009f:
{
IL2CPP_END_FINALLY(150)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(150)
{
IL2CPP_JUMP_TBL(0xA5, IL_00a5)
IL2CPP_JUMP_TBL(0xA0, IL_00a0)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00a0:
{
Type_t ** L_37 = ___implementingType2;
*((RuntimeObject **)(L_37)) = (RuntimeObject *)NULL;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_37), (RuntimeObject *)NULL);
return (bool)0;
}
IL_00a5:
{
bool L_38 = V_4;
return L_38;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::InheritsGenericDefinition(System.Type,System.Type)
extern "C" bool ReflectionUtils_InheritsGenericDefinition_m3900283873 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___genericClassDefinition1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_InheritsGenericDefinition_m3900283873_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Type_t * V_0 = NULL;
{
Type_t * L_0 = ___type0;
Type_t * L_1 = ___genericClassDefinition1;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_2 = ReflectionUtils_InheritsGenericDefinition_m626434391(NULL /*static, unused*/, L_0, L_1, (Type_t **)(&V_0), /*hidden argument*/NULL);
return L_2;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::InheritsGenericDefinition(System.Type,System.Type,System.Type&)
extern "C" bool ReflectionUtils_InheritsGenericDefinition_m626434391 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___genericClassDefinition1, Type_t ** ___implementingType2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_InheritsGenericDefinition_m626434391_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral3243520166, /*hidden argument*/NULL);
Type_t * L_1 = ___genericClassDefinition1;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_1, _stringLiteral908082501, /*hidden argument*/NULL);
Type_t * L_2 = ___genericClassDefinition1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_3 = TypeExtensions_IsClass_m3873378058(NULL /*static, unused*/, L_2, /*hidden argument*/NULL);
if (!L_3)
{
goto IL_0026;
}
}
{
Type_t * L_4 = ___genericClassDefinition1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_5 = TypeExtensions_IsGenericTypeDefinition_m2160044791(NULL /*static, unused*/, L_4, /*hidden argument*/NULL);
if (L_5)
{
goto IL_003c;
}
}
IL_0026:
{
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_6 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
Type_t * L_7 = ___genericClassDefinition1;
String_t* L_8 = StringUtils_FormatWith_m3056805521(NULL /*static, unused*/, _stringLiteral3820141517, L_6, L_7, /*hidden argument*/NULL);
ArgumentNullException_t1615371798 * L_9 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_9, L_8, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_9, NULL, ReflectionUtils_InheritsGenericDefinition_m626434391_RuntimeMethod_var);
}
IL_003c:
{
Type_t * L_10 = ___type0;
Type_t * L_11 = ___genericClassDefinition1;
Type_t ** L_12 = ___implementingType2;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_13 = ReflectionUtils_InheritsGenericDefinitionInternal_m2113175446(NULL /*static, unused*/, L_10, L_11, (Type_t **)L_12, /*hidden argument*/NULL);
return L_13;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::InheritsGenericDefinitionInternal(System.Type,System.Type,System.Type&)
extern "C" bool ReflectionUtils_InheritsGenericDefinitionInternal_m2113175446 (RuntimeObject * __this /* static, unused */, Type_t * ___currentType0, Type_t * ___genericClassDefinition1, Type_t ** ___implementingType2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_InheritsGenericDefinitionInternal_m2113175446_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Type_t * V_0 = NULL;
{
Type_t * L_0 = ___currentType0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_1 = TypeExtensions_IsGenericType_m3947308765(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_0018;
}
}
{
Type_t * L_2 = ___currentType0;
NullCheck(L_2);
Type_t * L_3 = VirtFuncInvoker0< Type_t * >::Invoke(110 /* System.Type System.Type::GetGenericTypeDefinition() */, L_2);
V_0 = L_3;
Type_t * L_4 = ___genericClassDefinition1;
Type_t * L_5 = V_0;
if ((!(((RuntimeObject*)(Type_t *)L_4) == ((RuntimeObject*)(Type_t *)L_5))))
{
goto IL_0018;
}
}
{
Type_t ** L_6 = ___implementingType2;
Type_t * L_7 = ___currentType0;
*((RuntimeObject **)(L_6)) = (RuntimeObject *)L_7;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_6), (RuntimeObject *)L_7);
return (bool)1;
}
IL_0018:
{
Type_t * L_8 = ___currentType0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
Type_t * L_9 = TypeExtensions_BaseType_m1084285535(NULL /*static, unused*/, L_8, /*hidden argument*/NULL);
if (L_9)
{
goto IL_0025;
}
}
{
Type_t ** L_10 = ___implementingType2;
*((RuntimeObject **)(L_10)) = (RuntimeObject *)NULL;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_10), (RuntimeObject *)NULL);
return (bool)0;
}
IL_0025:
{
Type_t * L_11 = ___currentType0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
Type_t * L_12 = TypeExtensions_BaseType_m1084285535(NULL /*static, unused*/, L_11, /*hidden argument*/NULL);
Type_t * L_13 = ___genericClassDefinition1;
Type_t ** L_14 = ___implementingType2;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_15 = ReflectionUtils_InheritsGenericDefinitionInternal_m2113175446(NULL /*static, unused*/, L_12, L_13, (Type_t **)L_14, /*hidden argument*/NULL);
return L_15;
}
}
// System.Type Newtonsoft.Json.Utilities.ReflectionUtils::GetCollectionItemType(System.Type)
extern "C" Type_t * ReflectionUtils_GetCollectionItemType_m1243555655 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetCollectionItemType_m1243555655_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Type_t * V_0 = NULL;
{
Type_t * L_0 = ___type0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral3243520166, /*hidden argument*/NULL);
Type_t * L_1 = ___type0;
NullCheck(L_1);
bool L_2 = Type_get_IsArray_m2591212821(L_1, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_001a;
}
}
{
Type_t * L_3 = ___type0;
NullCheck(L_3);
Type_t * L_4 = VirtFuncInvoker0< Type_t * >::Invoke(107 /* System.Type System.Type::GetElementType() */, L_3);
return L_4;
}
IL_001a:
{
Type_t * L_5 = ___type0;
RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IEnumerable_1_t1615002100_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_6, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_8 = ReflectionUtils_ImplementsGenericDefinition_m2172968317(NULL /*static, unused*/, L_5, L_7, (Type_t **)(&V_0), /*hidden argument*/NULL);
if (!L_8)
{
goto IL_0055;
}
}
{
Type_t * L_9 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_10 = TypeExtensions_IsGenericTypeDefinition_m2160044791(NULL /*static, unused*/, L_9, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_004c;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_11 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
Type_t * L_12 = ___type0;
String_t* L_13 = StringUtils_FormatWith_m3056805521(NULL /*static, unused*/, _stringLiteral809145522, L_11, L_12, /*hidden argument*/NULL);
Exception_t * L_14 = (Exception_t *)il2cpp_codegen_object_new(Exception_t_il2cpp_TypeInfo_var);
Exception__ctor_m1152696503(L_14, L_13, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_14, NULL, ReflectionUtils_GetCollectionItemType_m1243555655_RuntimeMethod_var);
}
IL_004c:
{
Type_t * L_15 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
TypeU5BU5D_t3940880105* L_16 = TypeExtensions_GetGenericArguments_m2598944752(NULL /*static, unused*/, L_15, /*hidden argument*/NULL);
NullCheck(L_16);
int32_t L_17 = 0;
Type_t * L_18 = (L_16)->GetAt(static_cast<il2cpp_array_size_t>(L_17));
return L_18;
}
IL_0055:
{
RuntimeTypeHandle_t3027515415 L_19 = { reinterpret_cast<intptr_t> (IEnumerable_t1941168011_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_20 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_19, /*hidden argument*/NULL);
Type_t * L_21 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_22 = TypeExtensions_IsAssignableFrom_m1207251774(NULL /*static, unused*/, L_20, L_21, /*hidden argument*/NULL);
if (!L_22)
{
goto IL_0069;
}
}
{
return (Type_t *)NULL;
}
IL_0069:
{
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_23 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
Type_t * L_24 = ___type0;
String_t* L_25 = StringUtils_FormatWith_m3056805521(NULL /*static, unused*/, _stringLiteral809145522, L_23, L_24, /*hidden argument*/NULL);
Exception_t * L_26 = (Exception_t *)il2cpp_codegen_object_new(Exception_t_il2cpp_TypeInfo_var);
Exception__ctor_m1152696503(L_26, L_25, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_26, NULL, ReflectionUtils_GetCollectionItemType_m1243555655_RuntimeMethod_var);
}
}
// System.Void Newtonsoft.Json.Utilities.ReflectionUtils::GetDictionaryKeyValueTypes(System.Type,System.Type&,System.Type&)
extern "C" void ReflectionUtils_GetDictionaryKeyValueTypes_m3140437744 (RuntimeObject * __this /* static, unused */, Type_t * ___dictionaryType0, Type_t ** ___keyType1, Type_t ** ___valueType2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetDictionaryKeyValueTypes_m3140437744_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Type_t * V_0 = NULL;
TypeU5BU5D_t3940880105* V_1 = NULL;
{
Type_t * L_0 = ___dictionaryType0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral1925115738, /*hidden argument*/NULL);
Type_t * L_1 = ___dictionaryType0;
RuntimeTypeHandle_t3027515415 L_2 = { reinterpret_cast<intptr_t> (IDictionary_2_t3177279192_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_3 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_2, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_4 = ReflectionUtils_ImplementsGenericDefinition_m2172968317(NULL /*static, unused*/, L_1, L_3, (Type_t **)(&V_0), /*hidden argument*/NULL);
if (!L_4)
{
goto IL_004f;
}
}
{
Type_t * L_5 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_6 = TypeExtensions_IsGenericTypeDefinition_m2160044791(NULL /*static, unused*/, L_5, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_003d;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_7 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
Type_t * L_8 = ___dictionaryType0;
String_t* L_9 = StringUtils_FormatWith_m3056805521(NULL /*static, unused*/, _stringLiteral2465504375, L_7, L_8, /*hidden argument*/NULL);
Exception_t * L_10 = (Exception_t *)il2cpp_codegen_object_new(Exception_t_il2cpp_TypeInfo_var);
Exception__ctor_m1152696503(L_10, L_9, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, NULL, ReflectionUtils_GetDictionaryKeyValueTypes_m3140437744_RuntimeMethod_var);
}
IL_003d:
{
Type_t * L_11 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
TypeU5BU5D_t3940880105* L_12 = TypeExtensions_GetGenericArguments_m2598944752(NULL /*static, unused*/, L_11, /*hidden argument*/NULL);
V_1 = L_12;
Type_t ** L_13 = ___keyType1;
TypeU5BU5D_t3940880105* L_14 = V_1;
NullCheck(L_14);
int32_t L_15 = 0;
Type_t * L_16 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_15));
*((RuntimeObject **)(L_13)) = (RuntimeObject *)L_16;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_13), (RuntimeObject *)L_16);
Type_t ** L_17 = ___valueType2;
TypeU5BU5D_t3940880105* L_18 = V_1;
NullCheck(L_18);
int32_t L_19 = 1;
Type_t * L_20 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_19));
*((RuntimeObject **)(L_17)) = (RuntimeObject *)L_20;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_17), (RuntimeObject *)L_20);
return;
}
IL_004f:
{
RuntimeTypeHandle_t3027515415 L_21 = { reinterpret_cast<intptr_t> (IDictionary_t1363984059_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_22 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, L_21, /*hidden argument*/NULL);
Type_t * L_23 = ___dictionaryType0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_24 = TypeExtensions_IsAssignableFrom_m1207251774(NULL /*static, unused*/, L_22, L_23, /*hidden argument*/NULL);
if (!L_24)
{
goto IL_0068;
}
}
{
Type_t ** L_25 = ___keyType1;
*((RuntimeObject **)(L_25)) = (RuntimeObject *)NULL;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_25), (RuntimeObject *)NULL);
Type_t ** L_26 = ___valueType2;
*((RuntimeObject **)(L_26)) = (RuntimeObject *)NULL;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_26), (RuntimeObject *)NULL);
return;
}
IL_0068:
{
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_27 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
Type_t * L_28 = ___dictionaryType0;
String_t* L_29 = StringUtils_FormatWith_m3056805521(NULL /*static, unused*/, _stringLiteral2465504375, L_27, L_28, /*hidden argument*/NULL);
Exception_t * L_30 = (Exception_t *)il2cpp_codegen_object_new(Exception_t_il2cpp_TypeInfo_var);
Exception__ctor_m1152696503(L_30, L_29, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_30, NULL, ReflectionUtils_GetDictionaryKeyValueTypes_m3140437744_RuntimeMethod_var);
}
}
// System.Type Newtonsoft.Json.Utilities.ReflectionUtils::GetMemberUnderlyingType(System.Reflection.MemberInfo)
extern "C" Type_t * ReflectionUtils_GetMemberUnderlyingType_m841662456 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___member0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetMemberUnderlyingType_m841662456_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
MemberInfo_t * L_0 = ___member0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral1586550295, /*hidden argument*/NULL);
MemberInfo_t * L_1 = ___member0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_2 = TypeExtensions_MemberType_m2046620246(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
V_0 = L_2;
int32_t L_3 = V_0;
switch (L_3)
{
case 0:
{
goto IL_0036;
}
case 1:
{
goto IL_002a;
}
case 2:
{
goto IL_0042;
}
case 3:
{
goto IL_004e;
}
}
}
{
goto IL_005a;
}
IL_002a:
{
MemberInfo_t * L_4 = ___member0;
NullCheck(((FieldInfo_t *)CastclassClass((RuntimeObject*)L_4, FieldInfo_t_il2cpp_TypeInfo_var)));
Type_t * L_5 = VirtFuncInvoker0< Type_t * >::Invoke(18 /* System.Type System.Reflection.FieldInfo::get_FieldType() */, ((FieldInfo_t *)CastclassClass((RuntimeObject*)L_4, FieldInfo_t_il2cpp_TypeInfo_var)));
return L_5;
}
IL_0036:
{
MemberInfo_t * L_6 = ___member0;
NullCheck(((PropertyInfo_t *)CastclassClass((RuntimeObject*)L_6, PropertyInfo_t_il2cpp_TypeInfo_var)));
Type_t * L_7 = VirtFuncInvoker0< Type_t * >::Invoke(21 /* System.Type System.Reflection.PropertyInfo::get_PropertyType() */, ((PropertyInfo_t *)CastclassClass((RuntimeObject*)L_6, PropertyInfo_t_il2cpp_TypeInfo_var)));
return L_7;
}
IL_0042:
{
MemberInfo_t * L_8 = ___member0;
NullCheck(((EventInfo_t *)CastclassClass((RuntimeObject*)L_8, EventInfo_t_il2cpp_TypeInfo_var)));
Type_t * L_9 = VirtFuncInvoker0< Type_t * >::Invoke(16 /* System.Type System.Reflection.EventInfo::get_EventHandlerType() */, ((EventInfo_t *)CastclassClass((RuntimeObject*)L_8, EventInfo_t_il2cpp_TypeInfo_var)));
return L_9;
}
IL_004e:
{
MemberInfo_t * L_10 = ___member0;
NullCheck(((MethodInfo_t *)CastclassClass((RuntimeObject*)L_10, MethodInfo_t_il2cpp_TypeInfo_var)));
Type_t * L_11 = VirtFuncInvoker0< Type_t * >::Invoke(44 /* System.Type System.Reflection.MethodInfo::get_ReturnType() */, ((MethodInfo_t *)CastclassClass((RuntimeObject*)L_10, MethodInfo_t_il2cpp_TypeInfo_var)));
return L_11;
}
IL_005a:
{
ArgumentException_t132251570 * L_12 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var);
ArgumentException__ctor_m1216717135(L_12, _stringLiteral328953099, _stringLiteral1586550295, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, ReflectionUtils_GetMemberUnderlyingType_m841662456_RuntimeMethod_var);
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsIndexedProperty(System.Reflection.MemberInfo)
extern "C" bool ReflectionUtils_IsIndexedProperty_m3237349032 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___member0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_IsIndexedProperty_m3237349032_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
PropertyInfo_t * V_0 = NULL;
{
MemberInfo_t * L_0 = ___member0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral1586550295, /*hidden argument*/NULL);
MemberInfo_t * L_1 = ___member0;
V_0 = ((PropertyInfo_t *)IsInstClass((RuntimeObject*)L_1, PropertyInfo_t_il2cpp_TypeInfo_var));
PropertyInfo_t * L_2 = V_0;
if (!L_2)
{
goto IL_001c;
}
}
{
PropertyInfo_t * L_3 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_4 = ReflectionUtils_IsIndexedProperty_m1455784124(NULL /*static, unused*/, L_3, /*hidden argument*/NULL);
return L_4;
}
IL_001c:
{
return (bool)0;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsIndexedProperty(System.Reflection.PropertyInfo)
extern "C" bool ReflectionUtils_IsIndexedProperty_m1455784124 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___property0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_IsIndexedProperty_m1455784124_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
PropertyInfo_t * L_0 = ___property0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral4193571962, /*hidden argument*/NULL);
PropertyInfo_t * L_1 = ___property0;
NullCheck(L_1);
ParameterInfoU5BU5D_t390618515* L_2 = VirtFuncInvoker0< ParameterInfoU5BU5D_t390618515* >::Invoke(25 /* System.Reflection.ParameterInfo[] System.Reflection.PropertyInfo::GetIndexParameters() */, L_1);
NullCheck(L_2);
return (bool)((!(((uint32_t)(((RuntimeArray *)L_2)->max_length)) <= ((uint32_t)0)))? 1 : 0);
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::CanReadMemberValue(System.Reflection.MemberInfo,System.Boolean)
extern "C" bool ReflectionUtils_CanReadMemberValue_m1473164796 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___member0, bool ___nonPublic1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_CanReadMemberValue_m1473164796_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
FieldInfo_t * V_1 = NULL;
PropertyInfo_t * V_2 = NULL;
{
MemberInfo_t * L_0 = ___member0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_1 = TypeExtensions_MemberType_m2046620246(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
V_0 = L_1;
int32_t L_2 = V_0;
if (!L_2)
{
goto IL_0026;
}
}
{
int32_t L_3 = V_0;
if ((!(((uint32_t)L_3) == ((uint32_t)1))))
{
goto IL_0047;
}
}
{
MemberInfo_t * L_4 = ___member0;
V_1 = ((FieldInfo_t *)CastclassClass((RuntimeObject*)L_4, FieldInfo_t_il2cpp_TypeInfo_var));
bool L_5 = ___nonPublic1;
if (!L_5)
{
goto IL_001a;
}
}
{
return (bool)1;
}
IL_001a:
{
FieldInfo_t * L_6 = V_1;
NullCheck(L_6);
bool L_7 = FieldInfo_get_IsPublic_m3378038140(L_6, /*hidden argument*/NULL);
if (!L_7)
{
goto IL_0024;
}
}
{
return (bool)1;
}
IL_0024:
{
return (bool)0;
}
IL_0026:
{
MemberInfo_t * L_8 = ___member0;
V_2 = ((PropertyInfo_t *)CastclassClass((RuntimeObject*)L_8, PropertyInfo_t_il2cpp_TypeInfo_var));
PropertyInfo_t * L_9 = V_2;
NullCheck(L_9);
bool L_10 = VirtFuncInvoker0< bool >::Invoke(17 /* System.Boolean System.Reflection.PropertyInfo::get_CanRead() */, L_9);
if (L_10)
{
goto IL_0037;
}
}
{
return (bool)0;
}
IL_0037:
{
bool L_11 = ___nonPublic1;
if (!L_11)
{
goto IL_003c;
}
}
{
return (bool)1;
}
IL_003c:
{
PropertyInfo_t * L_12 = V_2;
bool L_13 = ___nonPublic1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_14 = TypeExtensions_GetGetMethod_m2640593011(NULL /*static, unused*/, L_12, L_13, /*hidden argument*/NULL);
return (bool)((!(((RuntimeObject*)(MethodInfo_t *)L_14) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
IL_0047:
{
return (bool)0;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::CanSetMemberValue(System.Reflection.MemberInfo,System.Boolean,System.Boolean)
extern "C" bool ReflectionUtils_CanSetMemberValue_m1263216356 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___member0, bool ___nonPublic1, bool ___canSetReadOnly2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_CanSetMemberValue_m1263216356_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
FieldInfo_t * V_1 = NULL;
PropertyInfo_t * V_2 = NULL;
{
MemberInfo_t * L_0 = ___member0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_1 = TypeExtensions_MemberType_m2046620246(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
V_0 = L_1;
int32_t L_2 = V_0;
if (!L_2)
{
goto IL_003d;
}
}
{
int32_t L_3 = V_0;
if ((!(((uint32_t)L_3) == ((uint32_t)1))))
{
goto IL_005e;
}
}
{
MemberInfo_t * L_4 = ___member0;
V_1 = ((FieldInfo_t *)CastclassClass((RuntimeObject*)L_4, FieldInfo_t_il2cpp_TypeInfo_var));
FieldInfo_t * L_5 = V_1;
NullCheck(L_5);
bool L_6 = FieldInfo_get_IsLiteral_m534699794(L_5, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_001f;
}
}
{
return (bool)0;
}
IL_001f:
{
FieldInfo_t * L_7 = V_1;
NullCheck(L_7);
bool L_8 = FieldInfo_get_IsInitOnly_m930369112(L_7, /*hidden argument*/NULL);
if (!L_8)
{
goto IL_002c;
}
}
{
bool L_9 = ___canSetReadOnly2;
if (L_9)
{
goto IL_002c;
}
}
{
return (bool)0;
}
IL_002c:
{
bool L_10 = ___nonPublic1;
if (!L_10)
{
goto IL_0031;
}
}
{
return (bool)1;
}
IL_0031:
{
FieldInfo_t * L_11 = V_1;
NullCheck(L_11);
bool L_12 = FieldInfo_get_IsPublic_m3378038140(L_11, /*hidden argument*/NULL);
if (!L_12)
{
goto IL_003b;
}
}
{
return (bool)1;
}
IL_003b:
{
return (bool)0;
}
IL_003d:
{
MemberInfo_t * L_13 = ___member0;
V_2 = ((PropertyInfo_t *)CastclassClass((RuntimeObject*)L_13, PropertyInfo_t_il2cpp_TypeInfo_var));
PropertyInfo_t * L_14 = V_2;
NullCheck(L_14);
bool L_15 = VirtFuncInvoker0< bool >::Invoke(18 /* System.Boolean System.Reflection.PropertyInfo::get_CanWrite() */, L_14);
if (L_15)
{
goto IL_004e;
}
}
{
return (bool)0;
}
IL_004e:
{
bool L_16 = ___nonPublic1;
if (!L_16)
{
goto IL_0053;
}
}
{
return (bool)1;
}
IL_0053:
{
PropertyInfo_t * L_17 = V_2;
bool L_18 = ___nonPublic1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_19 = TypeExtensions_GetSetMethod_m1183273061(NULL /*static, unused*/, L_17, L_18, /*hidden argument*/NULL);
return (bool)((!(((RuntimeObject*)(MethodInfo_t *)L_19) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
}
IL_005e:
{
return (bool)0;
}
}
// System.Collections.Generic.List`1<System.Reflection.MemberInfo> Newtonsoft.Json.Utilities.ReflectionUtils::GetFieldsAndProperties(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" List_1_t557109187 * ReflectionUtils_GetFieldsAndProperties_m2855589198 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingAttr1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetFieldsAndProperties_m2855589198_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
List_1_t557109187 * V_0 = NULL;
RuntimeObject* V_1 = NULL;
int32_t V_2 = 0;
RuntimeObject* V_3 = NULL;
RuntimeObject* V_4 = NULL;
RuntimeObject* V_5 = NULL;
MemberInfo_t * V_6 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
Func_2_t3967597302 * G_B2_0 = NULL;
List_1_t557109187 * G_B2_1 = NULL;
Func_2_t3967597302 * G_B1_0 = NULL;
List_1_t557109187 * G_B1_1 = NULL;
{
List_1_t557109187 * L_0 = (List_1_t557109187 *)il2cpp_codegen_object_new(List_1_t557109187_il2cpp_TypeInfo_var);
List_1__ctor_m2845631487(L_0, /*hidden argument*/List_1__ctor_m2845631487_RuntimeMethod_var);
List_1_t557109187 * L_1 = L_0;
Type_t * L_2 = ___type0;
int32_t L_3 = ___bindingAttr1;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
RuntimeObject* L_4 = ReflectionUtils_GetFields_m3475842270(NULL /*static, unused*/, L_2, L_3, /*hidden argument*/NULL);
NullCheck(L_1);
List_1_AddRange_m2257680807(L_1, L_4, /*hidden argument*/List_1_AddRange_m2257680807_RuntimeMethod_var);
List_1_t557109187 * L_5 = L_1;
Type_t * L_6 = ___type0;
int32_t L_7 = ___bindingAttr1;
RuntimeObject* L_8 = ReflectionUtils_GetProperties_m1937919674(NULL /*static, unused*/, L_6, L_7, /*hidden argument*/NULL);
NullCheck(L_5);
List_1_AddRange_m2257680807(L_5, L_8, /*hidden argument*/List_1_AddRange_m2257680807_RuntimeMethod_var);
List_1_t557109187 * L_9 = L_5;
NullCheck(L_9);
int32_t L_10 = List_1_get_Count_m2508260589(L_9, /*hidden argument*/List_1_get_Count_m2508260589_RuntimeMethod_var);
List_1_t557109187 * L_11 = (List_1_t557109187 *)il2cpp_codegen_object_new(List_1_t557109187_il2cpp_TypeInfo_var);
List_1__ctor_m4045609786(L_11, L_10, /*hidden argument*/List_1__ctor_m4045609786_RuntimeMethod_var);
V_0 = L_11;
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var);
Func_2_t3967597302 * L_12 = ((U3CU3Ec_t3587133118_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var))->get_U3CU3E9__29_0_2();
Func_2_t3967597302 * L_13 = L_12;
G_B1_0 = L_13;
G_B1_1 = L_9;
if (L_13)
{
G_B2_0 = L_13;
G_B2_1 = L_9;
goto IL_004a;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var);
U3CU3Ec_t3587133118 * L_14 = ((U3CU3Ec_t3587133118_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var))->get_U3CU3E9_0();
intptr_t L_15 = (intptr_t)U3CU3Ec_U3CGetFieldsAndPropertiesU3Eb__29_0_m3758209495_RuntimeMethod_var;
Func_2_t3967597302 * L_16 = (Func_2_t3967597302 *)il2cpp_codegen_object_new(Func_2_t3967597302_il2cpp_TypeInfo_var);
Func_2__ctor_m4252472063(L_16, L_14, L_15, /*hidden argument*/Func_2__ctor_m4252472063_RuntimeMethod_var);
Func_2_t3967597302 * L_17 = L_16;
((U3CU3Ec_t3587133118_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var))->set_U3CU3E9__29_0_2(L_17);
G_B2_0 = L_17;
G_B2_1 = G_B1_1;
}
IL_004a:
{
RuntimeObject* L_18 = Enumerable_GroupBy_TisMemberInfo_t_TisString_t_m1303684172(NULL /*static, unused*/, G_B2_1, G_B2_0, /*hidden argument*/Enumerable_GroupBy_TisMemberInfo_t_TisString_t_m1303684172_RuntimeMethod_var);
NullCheck(L_18);
RuntimeObject* L_19 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Linq.IGrouping`2<System.String,System.Reflection.MemberInfo>>::GetEnumerator() */, IEnumerable_1_t761185857_il2cpp_TypeInfo_var, L_18);
V_1 = L_19;
}
IL_0055:
try
{ // begin try (depth: 1)
{
goto IL_00f2;
}
IL_005a:
{
RuntimeObject* L_20 = V_1;
NullCheck(L_20);
RuntimeObject* L_21 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Linq.IGrouping`2<System.String,System.Reflection.MemberInfo>>::get_Current() */, IEnumerator_1_t2213903436_il2cpp_TypeInfo_var, L_20);
RuntimeObject* L_22 = L_21;
int32_t L_23 = Enumerable_Count_TisMemberInfo_t_m2833200946(NULL /*static, unused*/, L_22, /*hidden argument*/Enumerable_Count_TisMemberInfo_t_m2833200946_RuntimeMethod_var);
V_2 = L_23;
List_1_t557109187 * L_24 = Enumerable_ToList_TisMemberInfo_t_m3180374575(NULL /*static, unused*/, L_22, /*hidden argument*/Enumerable_ToList_TisMemberInfo_t_m3180374575_RuntimeMethod_var);
V_3 = (RuntimeObject*)L_24;
int32_t L_25 = V_2;
if ((!(((uint32_t)L_25) == ((uint32_t)1))))
{
goto IL_007f;
}
}
IL_0071:
{
List_1_t557109187 * L_26 = V_0;
RuntimeObject* L_27 = V_3;
MemberInfo_t * L_28 = Enumerable_First_TisMemberInfo_t_m2952260960(NULL /*static, unused*/, L_27, /*hidden argument*/Enumerable_First_TisMemberInfo_t_m2952260960_RuntimeMethod_var);
NullCheck(L_26);
List_1_Add_m304598357(L_26, L_28, /*hidden argument*/List_1_Add_m304598357_RuntimeMethod_var);
goto IL_00f2;
}
IL_007f:
{
List_1_t557109187 * L_29 = (List_1_t557109187 *)il2cpp_codegen_object_new(List_1_t557109187_il2cpp_TypeInfo_var);
List_1__ctor_m2845631487(L_29, /*hidden argument*/List_1__ctor_m2845631487_RuntimeMethod_var);
V_4 = (RuntimeObject*)L_29;
RuntimeObject* L_30 = V_3;
NullCheck(L_30);
RuntimeObject* L_31 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Reflection.MemberInfo>::GetEnumerator() */, IEnumerable_1_t2359854630_il2cpp_TypeInfo_var, L_30);
V_5 = L_31;
}
IL_008e:
try
{ // begin try (depth: 2)
{
goto IL_00d3;
}
IL_0090:
{
RuntimeObject* L_32 = V_5;
NullCheck(L_32);
MemberInfo_t * L_33 = InterfaceFuncInvoker0< MemberInfo_t * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Reflection.MemberInfo>::get_Current() */, IEnumerator_1_t3812572209_il2cpp_TypeInfo_var, L_32);
V_6 = L_33;
RuntimeObject* L_34 = V_4;
NullCheck(L_34);
int32_t L_35 = InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Reflection.MemberInfo>::get_Count() */, ICollection_1_t1913186679_il2cpp_TypeInfo_var, L_34);
if (L_35)
{
goto IL_00ad;
}
}
IL_00a2:
{
RuntimeObject* L_36 = V_4;
MemberInfo_t * L_37 = V_6;
NullCheck(L_36);
InterfaceActionInvoker1< MemberInfo_t * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Reflection.MemberInfo>::Add(!0) */, ICollection_1_t1913186679_il2cpp_TypeInfo_var, L_36, L_37);
goto IL_00d3;
}
IL_00ad:
{
MemberInfo_t * L_38 = V_6;
int32_t L_39 = ___bindingAttr1;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_40 = ReflectionUtils_IsOverridenGenericMember_m2545602475(NULL /*static, unused*/, L_38, L_39, /*hidden argument*/NULL);
if (!L_40)
{
goto IL_00ca;
}
}
IL_00b7:
{
MemberInfo_t * L_41 = V_6;
NullCheck(L_41);
String_t* L_42 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_41);
bool L_43 = String_op_Equality_m920492651(NULL /*static, unused*/, L_42, _stringLiteral1949155704, /*hidden argument*/NULL);
if (!L_43)
{
goto IL_00d3;
}
}
IL_00ca:
{
RuntimeObject* L_44 = V_4;
MemberInfo_t * L_45 = V_6;
NullCheck(L_44);
InterfaceActionInvoker1< MemberInfo_t * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Reflection.MemberInfo>::Add(!0) */, ICollection_1_t1913186679_il2cpp_TypeInfo_var, L_44, L_45);
}
IL_00d3:
{
RuntimeObject* L_46 = V_5;
NullCheck(L_46);
bool L_47 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_46);
if (L_47)
{
goto IL_0090;
}
}
IL_00dc:
{
IL2CPP_LEAVE(0xEA, FINALLY_00de);
}
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00de;
}
FINALLY_00de:
{ // begin finally (depth: 2)
{
RuntimeObject* L_48 = V_5;
if (!L_48)
{
goto IL_00e9;
}
}
IL_00e2:
{
RuntimeObject* L_49 = V_5;
NullCheck(L_49);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_49);
}
IL_00e9:
{
IL2CPP_END_FINALLY(222)
}
} // end finally (depth: 2)
IL2CPP_CLEANUP(222)
{
IL2CPP_JUMP_TBL(0xEA, IL_00ea)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00ea:
{
List_1_t557109187 * L_50 = V_0;
RuntimeObject* L_51 = V_4;
NullCheck(L_50);
List_1_AddRange_m2257680807(L_50, L_51, /*hidden argument*/List_1_AddRange_m2257680807_RuntimeMethod_var);
}
IL_00f2:
{
RuntimeObject* L_52 = V_1;
NullCheck(L_52);
bool L_53 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_52);
if (L_53)
{
goto IL_005a;
}
}
IL_00fd:
{
IL2CPP_LEAVE(0x109, FINALLY_00ff);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00ff;
}
FINALLY_00ff:
{ // begin finally (depth: 1)
{
RuntimeObject* L_54 = V_1;
if (!L_54)
{
goto IL_0108;
}
}
IL_0102:
{
RuntimeObject* L_55 = V_1;
NullCheck(L_55);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_55);
}
IL_0108:
{
IL2CPP_END_FINALLY(255)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(255)
{
IL2CPP_JUMP_TBL(0x109, IL_0109)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0109:
{
List_1_t557109187 * L_56 = V_0;
return L_56;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils::IsOverridenGenericMember(System.Reflection.MemberInfo,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" bool ReflectionUtils_IsOverridenGenericMember_m2545602475 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___memberInfo0, int32_t ___bindingAttr1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_IsOverridenGenericMember_m2545602475_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
PropertyInfo_t * V_0 = NULL;
Type_t * V_1 = NULL;
Type_t * V_2 = NULL;
MemberInfoU5BU5D_t1302094432* V_3 = NULL;
{
MemberInfo_t * L_0 = ___memberInfo0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_1 = TypeExtensions_MemberType_m2046620246(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_000a;
}
}
{
return (bool)0;
}
IL_000a:
{
MemberInfo_t * L_2 = ___memberInfo0;
V_0 = ((PropertyInfo_t *)CastclassClass((RuntimeObject*)L_2, PropertyInfo_t_il2cpp_TypeInfo_var));
PropertyInfo_t * L_3 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_4 = ReflectionUtils_IsVirtual_m3338583030(NULL /*static, unused*/, L_3, /*hidden argument*/NULL);
if (L_4)
{
goto IL_001b;
}
}
{
return (bool)0;
}
IL_001b:
{
PropertyInfo_t * L_5 = V_0;
NullCheck(L_5);
Type_t * L_6 = VirtFuncInvoker0< Type_t * >::Invoke(8 /* System.Type System.Reflection.MemberInfo::get_DeclaringType() */, L_5);
V_1 = L_6;
Type_t * L_7 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_8 = TypeExtensions_IsGenericType_m3947308765(NULL /*static, unused*/, L_7, /*hidden argument*/NULL);
if (L_8)
{
goto IL_002c;
}
}
{
return (bool)0;
}
IL_002c:
{
Type_t * L_9 = V_1;
NullCheck(L_9);
Type_t * L_10 = VirtFuncInvoker0< Type_t * >::Invoke(110 /* System.Type System.Type::GetGenericTypeDefinition() */, L_9);
V_2 = L_10;
Type_t * L_11 = V_2;
if (L_11)
{
goto IL_0038;
}
}
{
return (bool)0;
}
IL_0038:
{
Type_t * L_12 = V_2;
PropertyInfo_t * L_13 = V_0;
NullCheck(L_13);
String_t* L_14 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_13);
int32_t L_15 = ___bindingAttr1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MemberInfoU5BU5D_t1302094432* L_16 = TypeExtensions_GetMember_m3247939173(NULL /*static, unused*/, L_12, L_14, L_15, /*hidden argument*/NULL);
V_3 = L_16;
MemberInfoU5BU5D_t1302094432* L_17 = V_3;
NullCheck(L_17);
if ((((RuntimeArray *)L_17)->max_length))
{
goto IL_004c;
}
}
{
return (bool)0;
}
IL_004c:
{
MemberInfoU5BU5D_t1302094432* L_18 = V_3;
NullCheck(L_18);
int32_t L_19 = 0;
MemberInfo_t * L_20 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_19));
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
Type_t * L_21 = ReflectionUtils_GetMemberUnderlyingType_m841662456(NULL /*static, unused*/, L_20, /*hidden argument*/NULL);
NullCheck(L_21);
bool L_22 = VirtFuncInvoker0< bool >::Invoke(86 /* System.Boolean System.Type::get_IsGenericParameter() */, L_21);
if (L_22)
{
goto IL_005d;
}
}
{
return (bool)0;
}
IL_005d:
{
return (bool)1;
}
}
// System.Attribute[] Newtonsoft.Json.Utilities.ReflectionUtils::GetAttributes(System.Object,System.Type,System.Boolean)
extern "C" AttributeU5BU5D_t1575011174* ReflectionUtils_GetAttributes_m2593182657 (RuntimeObject * __this /* static, unused */, RuntimeObject * ___provider0, Type_t * ___attributeType1, bool ___inherit2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetAttributes_m2593182657_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Type_t * V_0 = NULL;
Assembly_t * V_1 = NULL;
MemberInfo_t * V_2 = NULL;
Module_t2987026101 * V_3 = NULL;
ParameterInfo_t1861056598 * V_4 = NULL;
{
RuntimeObject * L_0 = ___provider0;
if (!((Type_t *)IsInstClass((RuntimeObject*)L_0, Type_t_il2cpp_TypeInfo_var)))
{
goto IL_0037;
}
}
{
RuntimeObject * L_1 = ___provider0;
V_0 = ((Type_t *)CastclassClass((RuntimeObject*)L_1, Type_t_il2cpp_TypeInfo_var));
Type_t * L_2 = ___attributeType1;
if (L_2)
{
goto IL_0024;
}
}
{
Type_t * L_3 = V_0;
TypeInfo_t1690786683 * L_4 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_3, /*hidden argument*/NULL);
bool L_5 = ___inherit2;
RuntimeObject* L_6 = CustomAttributeExtensions_GetCustomAttributes_m1839075053(NULL /*static, unused*/, L_4, L_5, /*hidden argument*/NULL);
AttributeU5BU5D_t1575011174* L_7 = Enumerable_ToArray_TisAttribute_t861562559_m1336572644(NULL /*static, unused*/, L_6, /*hidden argument*/Enumerable_ToArray_TisAttribute_t861562559_m1336572644_RuntimeMethod_var);
return L_7;
}
IL_0024:
{
Type_t * L_8 = V_0;
TypeInfo_t1690786683 * L_9 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_8, /*hidden argument*/NULL);
Type_t * L_10 = ___attributeType1;
bool L_11 = ___inherit2;
RuntimeObject* L_12 = CustomAttributeExtensions_GetCustomAttributes_m3308002549(NULL /*static, unused*/, L_9, L_10, L_11, /*hidden argument*/NULL);
AttributeU5BU5D_t1575011174* L_13 = Enumerable_ToArray_TisAttribute_t861562559_m1336572644(NULL /*static, unused*/, L_12, /*hidden argument*/Enumerable_ToArray_TisAttribute_t861562559_m1336572644_RuntimeMethod_var);
return L_13;
}
IL_0037:
{
RuntimeObject * L_14 = ___provider0;
if (!((Assembly_t *)IsInstClass((RuntimeObject*)L_14, Assembly_t_il2cpp_TypeInfo_var)))
{
goto IL_0062;
}
}
{
RuntimeObject * L_15 = ___provider0;
V_1 = ((Assembly_t *)CastclassClass((RuntimeObject*)L_15, Assembly_t_il2cpp_TypeInfo_var));
Type_t * L_16 = ___attributeType1;
if (L_16)
{
goto IL_0055;
}
}
{
Assembly_t * L_17 = V_1;
RuntimeObject* L_18 = CustomAttributeExtensions_GetCustomAttributes_m1319214622(NULL /*static, unused*/, L_17, /*hidden argument*/NULL);
AttributeU5BU5D_t1575011174* L_19 = Enumerable_ToArray_TisAttribute_t861562559_m1336572644(NULL /*static, unused*/, L_18, /*hidden argument*/Enumerable_ToArray_TisAttribute_t861562559_m1336572644_RuntimeMethod_var);
return L_19;
}
IL_0055:
{
Assembly_t * L_20 = V_1;
Type_t * L_21 = ___attributeType1;
RuntimeObject* L_22 = CustomAttributeExtensions_GetCustomAttributes_m2987737937(NULL /*static, unused*/, L_20, L_21, /*hidden argument*/NULL);
AttributeU5BU5D_t1575011174* L_23 = Enumerable_ToArray_TisAttribute_t861562559_m1336572644(NULL /*static, unused*/, L_22, /*hidden argument*/Enumerable_ToArray_TisAttribute_t861562559_m1336572644_RuntimeMethod_var);
return L_23;
}
IL_0062:
{
RuntimeObject * L_24 = ___provider0;
if (!((MemberInfo_t *)IsInstClass((RuntimeObject*)L_24, MemberInfo_t_il2cpp_TypeInfo_var)))
{
goto IL_008f;
}
}
{
RuntimeObject * L_25 = ___provider0;
V_2 = ((MemberInfo_t *)CastclassClass((RuntimeObject*)L_25, MemberInfo_t_il2cpp_TypeInfo_var));
Type_t * L_26 = ___attributeType1;
if (L_26)
{
goto IL_0081;
}
}
{
MemberInfo_t * L_27 = V_2;
bool L_28 = ___inherit2;
RuntimeObject* L_29 = CustomAttributeExtensions_GetCustomAttributes_m1839075053(NULL /*static, unused*/, L_27, L_28, /*hidden argument*/NULL);
AttributeU5BU5D_t1575011174* L_30 = Enumerable_ToArray_TisAttribute_t861562559_m1336572644(NULL /*static, unused*/, L_29, /*hidden argument*/Enumerable_ToArray_TisAttribute_t861562559_m1336572644_RuntimeMethod_var);
return L_30;
}
IL_0081:
{
MemberInfo_t * L_31 = V_2;
Type_t * L_32 = ___attributeType1;
bool L_33 = ___inherit2;
RuntimeObject* L_34 = CustomAttributeExtensions_GetCustomAttributes_m3308002549(NULL /*static, unused*/, L_31, L_32, L_33, /*hidden argument*/NULL);
AttributeU5BU5D_t1575011174* L_35 = Enumerable_ToArray_TisAttribute_t861562559_m1336572644(NULL /*static, unused*/, L_34, /*hidden argument*/Enumerable_ToArray_TisAttribute_t861562559_m1336572644_RuntimeMethod_var);
return L_35;
}
IL_008f:
{
RuntimeObject * L_36 = ___provider0;
if (!((Module_t2987026101 *)IsInstClass((RuntimeObject*)L_36, Module_t2987026101_il2cpp_TypeInfo_var)))
{
goto IL_00ba;
}
}
{
RuntimeObject * L_37 = ___provider0;
V_3 = ((Module_t2987026101 *)CastclassClass((RuntimeObject*)L_37, Module_t2987026101_il2cpp_TypeInfo_var));
Type_t * L_38 = ___attributeType1;
if (L_38)
{
goto IL_00ad;
}
}
{
Module_t2987026101 * L_39 = V_3;
RuntimeObject* L_40 = CustomAttributeExtensions_GetCustomAttributes_m2825293004(NULL /*static, unused*/, L_39, /*hidden argument*/NULL);
AttributeU5BU5D_t1575011174* L_41 = Enumerable_ToArray_TisAttribute_t861562559_m1336572644(NULL /*static, unused*/, L_40, /*hidden argument*/Enumerable_ToArray_TisAttribute_t861562559_m1336572644_RuntimeMethod_var);
return L_41;
}
IL_00ad:
{
Module_t2987026101 * L_42 = V_3;
Type_t * L_43 = ___attributeType1;
RuntimeObject* L_44 = CustomAttributeExtensions_GetCustomAttributes_m1742953860(NULL /*static, unused*/, L_42, L_43, /*hidden argument*/NULL);
AttributeU5BU5D_t1575011174* L_45 = Enumerable_ToArray_TisAttribute_t861562559_m1336572644(NULL /*static, unused*/, L_44, /*hidden argument*/Enumerable_ToArray_TisAttribute_t861562559_m1336572644_RuntimeMethod_var);
return L_45;
}
IL_00ba:
{
RuntimeObject * L_46 = ___provider0;
if (!((ParameterInfo_t1861056598 *)IsInstClass((RuntimeObject*)L_46, ParameterInfo_t1861056598_il2cpp_TypeInfo_var)))
{
goto IL_00ea;
}
}
{
RuntimeObject * L_47 = ___provider0;
V_4 = ((ParameterInfo_t1861056598 *)CastclassClass((RuntimeObject*)L_47, ParameterInfo_t1861056598_il2cpp_TypeInfo_var));
Type_t * L_48 = ___attributeType1;
if (L_48)
{
goto IL_00db;
}
}
{
ParameterInfo_t1861056598 * L_49 = V_4;
bool L_50 = ___inherit2;
RuntimeObject* L_51 = CustomAttributeExtensions_GetCustomAttributes_m569238752(NULL /*static, unused*/, L_49, L_50, /*hidden argument*/NULL);
AttributeU5BU5D_t1575011174* L_52 = Enumerable_ToArray_TisAttribute_t861562559_m1336572644(NULL /*static, unused*/, L_51, /*hidden argument*/Enumerable_ToArray_TisAttribute_t861562559_m1336572644_RuntimeMethod_var);
return L_52;
}
IL_00db:
{
ParameterInfo_t1861056598 * L_53 = V_4;
Type_t * L_54 = ___attributeType1;
bool L_55 = ___inherit2;
RuntimeObject* L_56 = CustomAttributeExtensions_GetCustomAttributes_m2430482735(NULL /*static, unused*/, L_53, L_54, L_55, /*hidden argument*/NULL);
AttributeU5BU5D_t1575011174* L_57 = Enumerable_ToArray_TisAttribute_t861562559_m1336572644(NULL /*static, unused*/, L_56, /*hidden argument*/Enumerable_ToArray_TisAttribute_t861562559_m1336572644_RuntimeMethod_var);
return L_57;
}
IL_00ea:
{
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_58 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
RuntimeObject * L_59 = ___provider0;
String_t* L_60 = StringUtils_FormatWith_m3056805521(NULL /*static, unused*/, _stringLiteral732772559, L_58, L_59, /*hidden argument*/NULL);
Exception_t * L_61 = (Exception_t *)il2cpp_codegen_object_new(Exception_t_il2cpp_TypeInfo_var);
Exception__ctor_m1152696503(L_61, L_60, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_61, NULL, ReflectionUtils_GetAttributes_m2593182657_RuntimeMethod_var);
}
}
// System.Reflection.MemberInfo Newtonsoft.Json.Utilities.ReflectionUtils::GetMemberInfoFromType(System.Type,System.Reflection.MemberInfo)
extern "C" MemberInfo_t * ReflectionUtils_GetMemberInfoFromType_m1623736994 (RuntimeObject * __this /* static, unused */, Type_t * ___targetType0, MemberInfo_t * ___memberInfo1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetMemberInfoFromType_m1623736994_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
PropertyInfo_t * V_1 = NULL;
TypeU5BU5D_t3940880105* V_2 = NULL;
Func_2_t3692615456 * G_B3_0 = NULL;
ParameterInfoU5BU5D_t390618515* G_B3_1 = NULL;
Func_2_t3692615456 * G_B2_0 = NULL;
ParameterInfoU5BU5D_t390618515* G_B2_1 = NULL;
{
MemberInfo_t * L_0 = ___memberInfo1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_1 = TypeExtensions_MemberType_m2046620246(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
V_0 = L_1;
int32_t L_2 = V_0;
if (L_2)
{
goto IL_0059;
}
}
{
MemberInfo_t * L_3 = ___memberInfo1;
V_1 = ((PropertyInfo_t *)CastclassClass((RuntimeObject*)L_3, PropertyInfo_t_il2cpp_TypeInfo_var));
PropertyInfo_t * L_4 = V_1;
NullCheck(L_4);
ParameterInfoU5BU5D_t390618515* L_5 = VirtFuncInvoker0< ParameterInfoU5BU5D_t390618515* >::Invoke(25 /* System.Reflection.ParameterInfo[] System.Reflection.PropertyInfo::GetIndexParameters() */, L_4);
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var);
Func_2_t3692615456 * L_6 = ((U3CU3Ec_t3587133118_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var))->get_U3CU3E9__37_0_3();
Func_2_t3692615456 * L_7 = L_6;
G_B2_0 = L_7;
G_B2_1 = L_5;
if (L_7)
{
G_B3_0 = L_7;
G_B3_1 = L_5;
goto IL_0036;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var);
U3CU3Ec_t3587133118 * L_8 = ((U3CU3Ec_t3587133118_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var))->get_U3CU3E9_0();
intptr_t L_9 = (intptr_t)U3CU3Ec_U3CGetMemberInfoFromTypeU3Eb__37_0_m156713168_RuntimeMethod_var;
Func_2_t3692615456 * L_10 = (Func_2_t3692615456 *)il2cpp_codegen_object_new(Func_2_t3692615456_il2cpp_TypeInfo_var);
Func_2__ctor_m249082317(L_10, L_8, L_9, /*hidden argument*/Func_2__ctor_m249082317_RuntimeMethod_var);
Func_2_t3692615456 * L_11 = L_10;
((U3CU3Ec_t3587133118_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var))->set_U3CU3E9__37_0_3(L_11);
G_B3_0 = L_11;
G_B3_1 = G_B2_1;
}
IL_0036:
{
RuntimeObject* L_12 = Enumerable_Select_TisParameterInfo_t1861056598_TisType_t_m1700990983(NULL /*static, unused*/, (RuntimeObject*)(RuntimeObject*)G_B3_1, G_B3_0, /*hidden argument*/Enumerable_Select_TisParameterInfo_t1861056598_TisType_t_m1700990983_RuntimeMethod_var);
TypeU5BU5D_t3940880105* L_13 = Enumerable_ToArray_TisType_t_m4037995289(NULL /*static, unused*/, L_12, /*hidden argument*/Enumerable_ToArray_TisType_t_m4037995289_RuntimeMethod_var);
V_2 = L_13;
Type_t * L_14 = ___targetType0;
PropertyInfo_t * L_15 = V_1;
NullCheck(L_15);
String_t* L_16 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_15);
PropertyInfo_t * L_17 = V_1;
NullCheck(L_17);
Type_t * L_18 = VirtFuncInvoker0< Type_t * >::Invoke(21 /* System.Type System.Reflection.PropertyInfo::get_PropertyType() */, L_17);
TypeU5BU5D_t3940880105* L_19 = V_2;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
PropertyInfo_t * L_20 = TypeExtensions_GetProperty_m2099548567(NULL /*static, unused*/, L_14, L_16, ((int32_t)60), NULL, L_18, (RuntimeObject*)(RuntimeObject*)L_19, NULL, /*hidden argument*/NULL);
return L_20;
}
IL_0059:
{
Type_t * L_21 = ___targetType0;
MemberInfo_t * L_22 = ___memberInfo1;
NullCheck(L_22);
String_t* L_23 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_22);
MemberInfo_t * L_24 = ___memberInfo1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_25 = TypeExtensions_MemberType_m2046620246(NULL /*static, unused*/, L_24, /*hidden argument*/NULL);
RuntimeObject* L_26 = TypeExtensions_GetMember_m1278713418(NULL /*static, unused*/, L_21, L_23, L_25, ((int32_t)60), /*hidden argument*/NULL);
MemberInfo_t * L_27 = Enumerable_SingleOrDefault_TisMemberInfo_t_m798163977(NULL /*static, unused*/, L_26, /*hidden argument*/Enumerable_SingleOrDefault_TisMemberInfo_t_m798163977_RuntimeMethod_var);
return L_27;
}
}
// System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo> Newtonsoft.Json.Utilities.ReflectionUtils::GetFields(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* ReflectionUtils_GetFields_m3475842270 (RuntimeObject * __this /* static, unused */, Type_t * ___targetType0, int32_t ___bindingAttr1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetFields_m3475842270_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___targetType0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral3252615044, /*hidden argument*/NULL);
Type_t * L_1 = ___targetType0;
int32_t L_2 = ___bindingAttr1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_3 = TypeExtensions_GetFields_m1955241202(NULL /*static, unused*/, L_1, L_2, /*hidden argument*/NULL);
List_1_t557109187 * L_4 = (List_1_t557109187 *)il2cpp_codegen_object_new(List_1_t557109187_il2cpp_TypeInfo_var);
List_1__ctor_m832393913(L_4, L_3, /*hidden argument*/List_1__ctor_m832393913_RuntimeMethod_var);
RuntimeObject* L_5 = Enumerable_Cast_TisFieldInfo_t_m1416808529(NULL /*static, unused*/, L_4, /*hidden argument*/Enumerable_Cast_TisFieldInfo_t_m1416808529_RuntimeMethod_var);
return L_5;
}
}
// System.Collections.Generic.IEnumerable`1<System.Reflection.PropertyInfo> Newtonsoft.Json.Utilities.ReflectionUtils::GetProperties(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* ReflectionUtils_GetProperties_m1937919674 (RuntimeObject * __this /* static, unused */, Type_t * ___targetType0, int32_t ___bindingAttr1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetProperties_m1937919674_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
List_1_t2159416693 * V_0 = NULL;
RuntimeObject* V_1 = NULL;
Type_t * V_2 = NULL;
int32_t V_3 = 0;
PropertyInfo_t * V_4 = NULL;
PropertyInfo_t * V_5 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
Type_t * L_0 = ___targetType0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral3252615044, /*hidden argument*/NULL);
Type_t * L_1 = ___targetType0;
int32_t L_2 = ___bindingAttr1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_3 = TypeExtensions_GetProperties_m3775878448(NULL /*static, unused*/, L_1, L_2, /*hidden argument*/NULL);
List_1_t2159416693 * L_4 = (List_1_t2159416693 *)il2cpp_codegen_object_new(List_1_t2159416693_il2cpp_TypeInfo_var);
List_1__ctor_m2781142759(L_4, L_3, /*hidden argument*/List_1__ctor_m2781142759_RuntimeMethod_var);
V_0 = L_4;
Type_t * L_5 = ___targetType0;
bool L_6 = TypeExtensions_IsInterface_m3543394130(NULL /*static, unused*/, L_5, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0056;
}
}
{
Type_t * L_7 = ___targetType0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_8 = TypeExtensions_GetInterfaces_m3246501328(NULL /*static, unused*/, L_7, /*hidden argument*/NULL);
NullCheck(L_8);
RuntimeObject* L_9 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Type>::GetEnumerator() */, IEnumerable_1_t1463797649_il2cpp_TypeInfo_var, L_8);
V_1 = L_9;
}
IL_002c:
try
{ // begin try (depth: 1)
{
goto IL_0042;
}
IL_002e:
{
RuntimeObject* L_10 = V_1;
NullCheck(L_10);
Type_t * L_11 = InterfaceFuncInvoker0< Type_t * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Type>::get_Current() */, IEnumerator_1_t2916515228_il2cpp_TypeInfo_var, L_10);
V_2 = L_11;
List_1_t2159416693 * L_12 = V_0;
Type_t * L_13 = V_2;
int32_t L_14 = ___bindingAttr1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_15 = TypeExtensions_GetProperties_m3775878448(NULL /*static, unused*/, L_13, L_14, /*hidden argument*/NULL);
NullCheck(L_12);
List_1_AddRange_m4242658599(L_12, L_15, /*hidden argument*/List_1_AddRange_m4242658599_RuntimeMethod_var);
}
IL_0042:
{
RuntimeObject* L_16 = V_1;
NullCheck(L_16);
bool L_17 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_16);
if (L_17)
{
goto IL_002e;
}
}
IL_004a:
{
IL2CPP_LEAVE(0x56, FINALLY_004c);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_004c;
}
FINALLY_004c:
{ // begin finally (depth: 1)
{
RuntimeObject* L_18 = V_1;
if (!L_18)
{
goto IL_0055;
}
}
IL_004f:
{
RuntimeObject* L_19 = V_1;
NullCheck(L_19);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_19);
}
IL_0055:
{
IL2CPP_END_FINALLY(76)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(76)
{
IL2CPP_JUMP_TBL(0x56, IL_0056)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0056:
{
List_1_t2159416693 * L_20 = V_0;
Type_t * L_21 = ___targetType0;
int32_t L_22 = ___bindingAttr1;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
ReflectionUtils_GetChildPrivateProperties_m1647043387(NULL /*static, unused*/, L_20, L_21, L_22, /*hidden argument*/NULL);
V_3 = 0;
goto IL_0097;
}
IL_0062:
{
List_1_t2159416693 * L_23 = V_0;
int32_t L_24 = V_3;
NullCheck(L_23);
PropertyInfo_t * L_25 = List_1_get_Item_m1771064164(L_23, L_24, /*hidden argument*/List_1_get_Item_m1771064164_RuntimeMethod_var);
V_4 = L_25;
PropertyInfo_t * L_26 = V_4;
NullCheck(L_26);
Type_t * L_27 = VirtFuncInvoker0< Type_t * >::Invoke(8 /* System.Type System.Reflection.MemberInfo::get_DeclaringType() */, L_26);
Type_t * L_28 = ___targetType0;
if ((((RuntimeObject*)(Type_t *)L_27) == ((RuntimeObject*)(Type_t *)L_28)))
{
goto IL_0093;
}
}
{
PropertyInfo_t * L_29 = V_4;
NullCheck(L_29);
Type_t * L_30 = VirtFuncInvoker0< Type_t * >::Invoke(8 /* System.Type System.Reflection.MemberInfo::get_DeclaringType() */, L_29);
PropertyInfo_t * L_31 = V_4;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
MemberInfo_t * L_32 = ReflectionUtils_GetMemberInfoFromType_m1623736994(NULL /*static, unused*/, L_30, L_31, /*hidden argument*/NULL);
V_5 = ((PropertyInfo_t *)CastclassClass((RuntimeObject*)L_32, PropertyInfo_t_il2cpp_TypeInfo_var));
List_1_t2159416693 * L_33 = V_0;
int32_t L_34 = V_3;
PropertyInfo_t * L_35 = V_5;
NullCheck(L_33);
List_1_set_Item_m1136100056(L_33, L_34, L_35, /*hidden argument*/List_1_set_Item_m1136100056_RuntimeMethod_var);
}
IL_0093:
{
int32_t L_36 = V_3;
V_3 = ((int32_t)il2cpp_codegen_add((int32_t)L_36, (int32_t)1));
}
IL_0097:
{
int32_t L_37 = V_3;
List_1_t2159416693 * L_38 = V_0;
NullCheck(L_38);
int32_t L_39 = List_1_get_Count_m4158400089(L_38, /*hidden argument*/List_1_get_Count_m4158400089_RuntimeMethod_var);
if ((((int32_t)L_37) < ((int32_t)L_39)))
{
goto IL_0062;
}
}
{
List_1_t2159416693 * L_40 = V_0;
return L_40;
}
}
// System.Void Newtonsoft.Json.Utilities.ReflectionUtils::GetChildPrivateProperties(System.Collections.Generic.IList`1<System.Reflection.PropertyInfo>,System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" void ReflectionUtils_GetChildPrivateProperties_m1647043387 (RuntimeObject * __this /* static, unused */, RuntimeObject* ___initialProperties0, Type_t * ___targetType1, int32_t ___bindingAttr2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetChildPrivateProperties_m1647043387_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* V_0 = NULL;
PropertyInfo_t * V_1 = NULL;
U3CU3Ec__DisplayClass41_0_t549567115 * V_2 = NULL;
int32_t V_3 = 0;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
goto IL_00e2;
}
IL_0005:
{
Type_t * L_0 = ___targetType1;
int32_t L_1 = ___bindingAttr2;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_2 = TypeExtensions_GetProperties_m3775878448(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/NULL);
NullCheck(L_2);
RuntimeObject* L_3 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Reflection.PropertyInfo>::GetEnumerator() */, IEnumerable_1_t3962162136_il2cpp_TypeInfo_var, L_2);
V_0 = L_3;
}
IL_0012:
try
{ // begin try (depth: 1)
{
goto IL_00cb;
}
IL_0017:
{
RuntimeObject* L_4 = V_0;
NullCheck(L_4);
PropertyInfo_t * L_5 = InterfaceFuncInvoker0< PropertyInfo_t * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Reflection.PropertyInfo>::get_Current() */, IEnumerator_1_t1119912419_il2cpp_TypeInfo_var, L_4);
V_1 = L_5;
U3CU3Ec__DisplayClass41_0_t549567115 * L_6 = (U3CU3Ec__DisplayClass41_0_t549567115 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass41_0_t549567115_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass41_0__ctor_m3129161864(L_6, /*hidden argument*/NULL);
V_2 = L_6;
U3CU3Ec__DisplayClass41_0_t549567115 * L_7 = V_2;
PropertyInfo_t * L_8 = V_1;
NullCheck(L_7);
L_7->set_subTypeProperty_0(L_8);
U3CU3Ec__DisplayClass41_0_t549567115 * L_9 = V_2;
NullCheck(L_9);
PropertyInfo_t * L_10 = L_9->get_subTypeProperty_0();
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_11 = ReflectionUtils_IsPublic_m3896229770(NULL /*static, unused*/, L_10, /*hidden argument*/NULL);
if (L_11)
{
goto IL_007a;
}
}
IL_0038:
{
RuntimeObject* L_12 = ___initialProperties0;
U3CU3Ec__DisplayClass41_0_t549567115 * L_13 = V_2;
intptr_t L_14 = (intptr_t)U3CU3Ec__DisplayClass41_0_U3CGetChildPrivatePropertiesU3Eb__0_m3158891196_RuntimeMethod_var;
Func_2_t2377163032 * L_15 = (Func_2_t2377163032 *)il2cpp_codegen_object_new(Func_2_t2377163032_il2cpp_TypeInfo_var);
Func_2__ctor_m3813751571(L_15, L_13, L_14, /*hidden argument*/Func_2__ctor_m3813751571_RuntimeMethod_var);
int32_t L_16 = CollectionUtils_IndexOf_TisPropertyInfo_t_m2841828123(NULL /*static, unused*/, L_12, L_15, /*hidden argument*/CollectionUtils_IndexOf_TisPropertyInfo_t_m2841828123_RuntimeMethod_var);
V_3 = L_16;
int32_t L_17 = V_3;
if ((!(((uint32_t)L_17) == ((uint32_t)(-1)))))
{
goto IL_005d;
}
}
IL_004f:
{
RuntimeObject* L_18 = ___initialProperties0;
U3CU3Ec__DisplayClass41_0_t549567115 * L_19 = V_2;
NullCheck(L_19);
PropertyInfo_t * L_20 = L_19->get_subTypeProperty_0();
NullCheck(L_18);
InterfaceActionInvoker1< PropertyInfo_t * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Reflection.PropertyInfo>::Add(!0) */, ICollection_1_t3515494185_il2cpp_TypeInfo_var, L_18, L_20);
goto IL_00cb;
}
IL_005d:
{
RuntimeObject* L_21 = ___initialProperties0;
int32_t L_22 = V_3;
NullCheck(L_21);
PropertyInfo_t * L_23 = InterfaceFuncInvoker1< PropertyInfo_t *, int32_t >::Invoke(0 /* !0 System.Collections.Generic.IList`1<System.Reflection.PropertyInfo>::get_Item(System.Int32) */, IList_1_t2502661734_il2cpp_TypeInfo_var, L_21, L_22);
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_24 = ReflectionUtils_IsPublic_m3896229770(NULL /*static, unused*/, L_23, /*hidden argument*/NULL);
if (L_24)
{
goto IL_00cb;
}
}
IL_006b:
{
RuntimeObject* L_25 = ___initialProperties0;
int32_t L_26 = V_3;
U3CU3Ec__DisplayClass41_0_t549567115 * L_27 = V_2;
NullCheck(L_27);
PropertyInfo_t * L_28 = L_27->get_subTypeProperty_0();
NullCheck(L_25);
InterfaceActionInvoker2< int32_t, PropertyInfo_t * >::Invoke(1 /* System.Void System.Collections.Generic.IList`1<System.Reflection.PropertyInfo>::set_Item(System.Int32,!0) */, IList_1_t2502661734_il2cpp_TypeInfo_var, L_25, L_26, L_28);
goto IL_00cb;
}
IL_007a:
{
U3CU3Ec__DisplayClass41_0_t549567115 * L_29 = V_2;
NullCheck(L_29);
PropertyInfo_t * L_30 = L_29->get_subTypeProperty_0();
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_31 = ReflectionUtils_IsVirtual_m3338583030(NULL /*static, unused*/, L_30, /*hidden argument*/NULL);
if (L_31)
{
goto IL_00aa;
}
}
IL_0087:
{
RuntimeObject* L_32 = ___initialProperties0;
U3CU3Ec__DisplayClass41_0_t549567115 * L_33 = V_2;
intptr_t L_34 = (intptr_t)U3CU3Ec__DisplayClass41_0_U3CGetChildPrivatePropertiesU3Eb__1_m2333622814_RuntimeMethod_var;
Func_2_t2377163032 * L_35 = (Func_2_t2377163032 *)il2cpp_codegen_object_new(Func_2_t2377163032_il2cpp_TypeInfo_var);
Func_2__ctor_m3813751571(L_35, L_33, L_34, /*hidden argument*/Func_2__ctor_m3813751571_RuntimeMethod_var);
int32_t L_36 = CollectionUtils_IndexOf_TisPropertyInfo_t_m2841828123(NULL /*static, unused*/, L_32, L_35, /*hidden argument*/CollectionUtils_IndexOf_TisPropertyInfo_t_m2841828123_RuntimeMethod_var);
if ((!(((uint32_t)L_36) == ((uint32_t)(-1)))))
{
goto IL_00cb;
}
}
IL_009c:
{
RuntimeObject* L_37 = ___initialProperties0;
U3CU3Ec__DisplayClass41_0_t549567115 * L_38 = V_2;
NullCheck(L_38);
PropertyInfo_t * L_39 = L_38->get_subTypeProperty_0();
NullCheck(L_37);
InterfaceActionInvoker1< PropertyInfo_t * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Reflection.PropertyInfo>::Add(!0) */, ICollection_1_t3515494185_il2cpp_TypeInfo_var, L_37, L_39);
goto IL_00cb;
}
IL_00aa:
{
RuntimeObject* L_40 = ___initialProperties0;
U3CU3Ec__DisplayClass41_0_t549567115 * L_41 = V_2;
intptr_t L_42 = (intptr_t)U3CU3Ec__DisplayClass41_0_U3CGetChildPrivatePropertiesU3Eb__2_m3720114576_RuntimeMethod_var;
Func_2_t2377163032 * L_43 = (Func_2_t2377163032 *)il2cpp_codegen_object_new(Func_2_t2377163032_il2cpp_TypeInfo_var);
Func_2__ctor_m3813751571(L_43, L_41, L_42, /*hidden argument*/Func_2__ctor_m3813751571_RuntimeMethod_var);
int32_t L_44 = CollectionUtils_IndexOf_TisPropertyInfo_t_m2841828123(NULL /*static, unused*/, L_40, L_43, /*hidden argument*/CollectionUtils_IndexOf_TisPropertyInfo_t_m2841828123_RuntimeMethod_var);
if ((!(((uint32_t)L_44) == ((uint32_t)(-1)))))
{
goto IL_00cb;
}
}
IL_00bf:
{
RuntimeObject* L_45 = ___initialProperties0;
U3CU3Ec__DisplayClass41_0_t549567115 * L_46 = V_2;
NullCheck(L_46);
PropertyInfo_t * L_47 = L_46->get_subTypeProperty_0();
NullCheck(L_45);
InterfaceActionInvoker1< PropertyInfo_t * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Reflection.PropertyInfo>::Add(!0) */, ICollection_1_t3515494185_il2cpp_TypeInfo_var, L_45, L_47);
}
IL_00cb:
{
RuntimeObject* L_48 = V_0;
NullCheck(L_48);
bool L_49 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_48);
if (L_49)
{
goto IL_0017;
}
}
IL_00d6:
{
IL2CPP_LEAVE(0xE2, FINALLY_00d8);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00d8;
}
FINALLY_00d8:
{ // begin finally (depth: 1)
{
RuntimeObject* L_50 = V_0;
if (!L_50)
{
goto IL_00e1;
}
}
IL_00db:
{
RuntimeObject* L_51 = V_0;
NullCheck(L_51);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_51);
}
IL_00e1:
{
IL2CPP_END_FINALLY(216)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(216)
{
IL2CPP_JUMP_TBL(0xE2, IL_00e2)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00e2:
{
Type_t * L_52 = ___targetType1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
Type_t * L_53 = TypeExtensions_BaseType_m1084285535(NULL /*static, unused*/, L_52, /*hidden argument*/NULL);
Type_t * L_54 = L_53;
___targetType1 = L_54;
if (L_54)
{
goto IL_0005;
}
}
{
return;
}
}
// System.Object Newtonsoft.Json.Utilities.ReflectionUtils::GetDefaultValue(System.Type)
extern "C" RuntimeObject * ReflectionUtils_GetDefaultValue_m3591065878 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ReflectionUtils_GetDefaultValue_m3591065878_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
DateTime_t3738529785 V_1;
memset(&V_1, 0, sizeof(V_1));
Guid_t V_2;
memset(&V_2, 0, sizeof(V_2));
DateTimeOffset_t3229287507 V_3;
memset(&V_3, 0, sizeof(V_3));
{
Type_t * L_0 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_1 = TypeExtensions_IsValueType_m852671066(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
if (L_1)
{
goto IL_000a;
}
}
{
return NULL;
}
IL_000a:
{
Type_t * L_2 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(ConvertUtils_t2194062972_il2cpp_TypeInfo_var);
int32_t L_3 = ConvertUtils_GetTypeCode_m66075454(NULL /*static, unused*/, L_2, /*hidden argument*/NULL);
V_0 = L_3;
int32_t L_4 = V_0;
switch (((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)2)))
{
case 0:
{
goto IL_009e;
}
case 1:
{
goto IL_00ff;
}
case 2:
{
goto IL_0097;
}
case 3:
{
goto IL_00ff;
}
case 4:
{
goto IL_009e;
}
case 5:
{
goto IL_00ff;
}
case 6:
{
goto IL_009e;
}
case 7:
{
goto IL_00ff;
}
case 8:
{
goto IL_009e;
}
case 9:
{
goto IL_00ff;
}
case 10:
{
goto IL_009e;
}
case 11:
{
goto IL_00ff;
}
case 12:
{
goto IL_009e;
}
case 13:
{
goto IL_00ff;
}
case 14:
{
goto IL_009e;
}
case 15:
{
goto IL_00ff;
}
case 16:
{
goto IL_00a5;
}
case 17:
{
goto IL_00ff;
}
case 18:
{
goto IL_00a5;
}
case 19:
{
goto IL_00ff;
}
case 20:
{
goto IL_00ad;
}
case 21:
{
goto IL_00ff;
}
case 22:
{
goto IL_00b8;
}
case 23:
{
goto IL_00ff;
}
case 24:
{
goto IL_00d2;
}
case 25:
{
goto IL_00ff;
}
case 26:
{
goto IL_00f0;
}
case 27:
{
goto IL_00ff;
}
case 28:
{
goto IL_00c7;
}
case 29:
{
goto IL_00ff;
}
case 30:
{
goto IL_00e1;
}
}
}
{
goto IL_00ff;
}
IL_0097:
{
bool L_5 = ((bool)0);
RuntimeObject * L_6 = Box(Boolean_t97287965_il2cpp_TypeInfo_var, &L_5);
return L_6;
}
IL_009e:
{
int32_t L_7 = 0;
RuntimeObject * L_8 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_7);
return L_8;
}
IL_00a5:
{
int64_t L_9 = (((int64_t)((int64_t)0)));
RuntimeObject * L_10 = Box(Int64_t3736567304_il2cpp_TypeInfo_var, &L_9);
return L_10;
}
IL_00ad:
{
float L_11 = (0.0f);
RuntimeObject * L_12 = Box(Single_t1397266774_il2cpp_TypeInfo_var, &L_11);
return L_12;
}
IL_00b8:
{
double L_13 = (0.0);
RuntimeObject * L_14 = Box(Double_t594665363_il2cpp_TypeInfo_var, &L_13);
return L_14;
}
IL_00c7:
{
IL2CPP_RUNTIME_CLASS_INIT(Decimal_t2948259380_il2cpp_TypeInfo_var);
Decimal_t2948259380 L_15 = ((Decimal_t2948259380_StaticFields*)il2cpp_codegen_static_fields_for(Decimal_t2948259380_il2cpp_TypeInfo_var))->get_Zero_7();
Decimal_t2948259380 L_16 = L_15;
RuntimeObject * L_17 = Box(Decimal_t2948259380_il2cpp_TypeInfo_var, &L_16);
return L_17;
}
IL_00d2:
{
il2cpp_codegen_initobj((&V_1), sizeof(DateTime_t3738529785 ));
DateTime_t3738529785 L_18 = V_1;
DateTime_t3738529785 L_19 = L_18;
RuntimeObject * L_20 = Box(DateTime_t3738529785_il2cpp_TypeInfo_var, &L_19);
return L_20;
}
IL_00e1:
{
il2cpp_codegen_initobj((&V_2), sizeof(Guid_t ));
Guid_t L_21 = V_2;
Guid_t L_22 = L_21;
RuntimeObject * L_23 = Box(Guid_t_il2cpp_TypeInfo_var, &L_22);
return L_23;
}
IL_00f0:
{
il2cpp_codegen_initobj((&V_3), sizeof(DateTimeOffset_t3229287507 ));
DateTimeOffset_t3229287507 L_24 = V_3;
DateTimeOffset_t3229287507 L_25 = L_24;
RuntimeObject * L_26 = Box(DateTimeOffset_t3229287507_il2cpp_TypeInfo_var, &L_25);
return L_26;
}
IL_00ff:
{
Type_t * L_27 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_28 = ReflectionUtils_IsNullable_m645225420(NULL /*static, unused*/, L_27, /*hidden argument*/NULL);
if (!L_28)
{
goto IL_0109;
}
}
{
return NULL;
}
IL_0109:
{
Type_t * L_29 = ___type0;
RuntimeObject * L_30 = Activator_CreateInstance_m3631483688(NULL /*static, unused*/, L_29, /*hidden argument*/NULL);
return L_30;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ReflectionUtils/<>c::.cctor()
extern "C" void U3CU3Ec__cctor_m3974653786 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__cctor_m3974653786_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
U3CU3Ec_t3587133118 * L_0 = (U3CU3Ec_t3587133118 *)il2cpp_codegen_object_new(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var);
U3CU3Ec__ctor_m999993876(L_0, /*hidden argument*/NULL);
((U3CU3Ec_t3587133118_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3587133118_il2cpp_TypeInfo_var))->set_U3CU3E9_0(L_0);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.ReflectionUtils/<>c::.ctor()
extern "C" void U3CU3Ec__ctor_m999993876 (U3CU3Ec_t3587133118 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils/<>c::<GetDefaultConstructor>b__10_0(System.Reflection.ConstructorInfo)
extern "C" bool U3CU3Ec_U3CGetDefaultConstructorU3Eb__10_0_m1917227267 (U3CU3Ec_t3587133118 * __this, ConstructorInfo_t5769829 * ___c0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec_U3CGetDefaultConstructorU3Eb__10_0_m1917227267_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
ConstructorInfo_t5769829 * L_0 = ___c0;
NullCheck(L_0);
ParameterInfoU5BU5D_t390618515* L_1 = VirtFuncInvoker0< ParameterInfoU5BU5D_t390618515* >::Invoke(17 /* System.Reflection.ParameterInfo[] System.Reflection.MethodBase::GetParameters() */, L_0);
bool L_2 = Enumerable_Any_TisParameterInfo_t1861056598_m2308149110(NULL /*static, unused*/, (RuntimeObject*)(RuntimeObject*)L_1, /*hidden argument*/Enumerable_Any_TisParameterInfo_t1861056598_m2308149110_RuntimeMethod_var);
return (bool)((((int32_t)L_2) == ((int32_t)0))? 1 : 0);
}
}
// System.String Newtonsoft.Json.Utilities.ReflectionUtils/<>c::<GetFieldsAndProperties>b__29_0(System.Reflection.MemberInfo)
extern "C" String_t* U3CU3Ec_U3CGetFieldsAndPropertiesU3Eb__29_0_m3758209495 (U3CU3Ec_t3587133118 * __this, MemberInfo_t * ___m0, const RuntimeMethod* method)
{
{
MemberInfo_t * L_0 = ___m0;
NullCheck(L_0);
String_t* L_1 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_0);
return L_1;
}
}
// System.Type Newtonsoft.Json.Utilities.ReflectionUtils/<>c::<GetMemberInfoFromType>b__37_0(System.Reflection.ParameterInfo)
extern "C" Type_t * U3CU3Ec_U3CGetMemberInfoFromTypeU3Eb__37_0_m156713168 (U3CU3Ec_t3587133118 * __this, ParameterInfo_t1861056598 * ___p0, const RuntimeMethod* method)
{
{
ParameterInfo_t1861056598 * L_0 = ___p0;
NullCheck(L_0);
Type_t * L_1 = VirtFuncInvoker0< Type_t * >::Invoke(7 /* System.Type System.Reflection.ParameterInfo::get_ParameterType() */, L_0);
return L_1;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ReflectionUtils/<>c__DisplayClass41_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass41_0__ctor_m3129161864 (U3CU3Ec__DisplayClass41_0_t549567115 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils/<>c__DisplayClass41_0::<GetChildPrivateProperties>b__0(System.Reflection.PropertyInfo)
extern "C" bool U3CU3Ec__DisplayClass41_0_U3CGetChildPrivatePropertiesU3Eb__0_m3158891196 (U3CU3Ec__DisplayClass41_0_t549567115 * __this, PropertyInfo_t * ___p0, const RuntimeMethod* method)
{
{
PropertyInfo_t * L_0 = ___p0;
NullCheck(L_0);
String_t* L_1 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_0);
PropertyInfo_t * L_2 = __this->get_subTypeProperty_0();
NullCheck(L_2);
String_t* L_3 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_2);
bool L_4 = String_op_Equality_m920492651(NULL /*static, unused*/, L_1, L_3, /*hidden argument*/NULL);
return L_4;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils/<>c__DisplayClass41_0::<GetChildPrivateProperties>b__1(System.Reflection.PropertyInfo)
extern "C" bool U3CU3Ec__DisplayClass41_0_U3CGetChildPrivatePropertiesU3Eb__1_m2333622814 (U3CU3Ec__DisplayClass41_0_t549567115 * __this, PropertyInfo_t * ___p0, const RuntimeMethod* method)
{
{
PropertyInfo_t * L_0 = ___p0;
NullCheck(L_0);
String_t* L_1 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_0);
PropertyInfo_t * L_2 = __this->get_subTypeProperty_0();
NullCheck(L_2);
String_t* L_3 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_2);
bool L_4 = String_op_Equality_m920492651(NULL /*static, unused*/, L_1, L_3, /*hidden argument*/NULL);
if (!L_4)
{
goto IL_002c;
}
}
{
PropertyInfo_t * L_5 = ___p0;
NullCheck(L_5);
Type_t * L_6 = VirtFuncInvoker0< Type_t * >::Invoke(8 /* System.Type System.Reflection.MemberInfo::get_DeclaringType() */, L_5);
PropertyInfo_t * L_7 = __this->get_subTypeProperty_0();
NullCheck(L_7);
Type_t * L_8 = VirtFuncInvoker0< Type_t * >::Invoke(8 /* System.Type System.Reflection.MemberInfo::get_DeclaringType() */, L_7);
return (bool)((((RuntimeObject*)(Type_t *)L_6) == ((RuntimeObject*)(Type_t *)L_8))? 1 : 0);
}
IL_002c:
{
return (bool)0;
}
}
// System.Boolean Newtonsoft.Json.Utilities.ReflectionUtils/<>c__DisplayClass41_0::<GetChildPrivateProperties>b__2(System.Reflection.PropertyInfo)
extern "C" bool U3CU3Ec__DisplayClass41_0_U3CGetChildPrivatePropertiesU3Eb__2_m3720114576 (U3CU3Ec__DisplayClass41_0_t549567115 * __this, PropertyInfo_t * ___p0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass41_0_U3CGetChildPrivatePropertiesU3Eb__2_m3720114576_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
PropertyInfo_t * L_0 = ___p0;
NullCheck(L_0);
String_t* L_1 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_0);
PropertyInfo_t * L_2 = __this->get_subTypeProperty_0();
NullCheck(L_2);
String_t* L_3 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_2);
bool L_4 = String_op_Equality_m920492651(NULL /*static, unused*/, L_1, L_3, /*hidden argument*/NULL);
if (!L_4)
{
goto IL_0049;
}
}
{
PropertyInfo_t * L_5 = ___p0;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
bool L_6 = ReflectionUtils_IsVirtual_m3338583030(NULL /*static, unused*/, L_5, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0049;
}
}
{
PropertyInfo_t * L_7 = ___p0;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
MethodInfo_t * L_8 = ReflectionUtils_GetBaseDefinition_m628546257(NULL /*static, unused*/, L_7, /*hidden argument*/NULL);
if (!L_8)
{
goto IL_0049;
}
}
{
PropertyInfo_t * L_9 = ___p0;
IL2CPP_RUNTIME_CLASS_INIT(ReflectionUtils_t2669115404_il2cpp_TypeInfo_var);
MethodInfo_t * L_10 = ReflectionUtils_GetBaseDefinition_m628546257(NULL /*static, unused*/, L_9, /*hidden argument*/NULL);
NullCheck(L_10);
Type_t * L_11 = VirtFuncInvoker0< Type_t * >::Invoke(8 /* System.Type System.Reflection.MemberInfo::get_DeclaringType() */, L_10);
PropertyInfo_t * L_12 = __this->get_subTypeProperty_0();
MethodInfo_t * L_13 = ReflectionUtils_GetBaseDefinition_m628546257(NULL /*static, unused*/, L_12, /*hidden argument*/NULL);
NullCheck(L_13);
Type_t * L_14 = VirtFuncInvoker0< Type_t * >::Invoke(8 /* System.Type System.Reflection.MemberInfo::get_DeclaringType() */, L_13);
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_15 = TypeExtensions_IsAssignableFrom_m1207251774(NULL /*static, unused*/, L_11, L_14, /*hidden argument*/NULL);
return L_15;
}
IL_0049:
{
return (bool)0;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Conversion methods for marshalling of: Newtonsoft.Json.Utilities.StringBuffer
extern "C" void StringBuffer_t2235727887_marshal_pinvoke(const StringBuffer_t2235727887& unmarshaled, StringBuffer_t2235727887_marshaled_pinvoke& marshaled)
{
if (unmarshaled.get__buffer_0() != NULL)
{
il2cpp_array_size_t _unmarshaled__buffer_Length = (unmarshaled.get__buffer_0())->max_length;
marshaled.____buffer_0 = il2cpp_codegen_marshal_allocate_array<uint8_t>(_unmarshaled__buffer_Length);
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(_unmarshaled__buffer_Length); i++)
{
(marshaled.____buffer_0)[i] = static_cast<uint8_t>((unmarshaled.get__buffer_0())->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i)));
}
}
else
{
marshaled.____buffer_0 = NULL;
}
marshaled.____position_1 = unmarshaled.get__position_1();
}
extern "C" void StringBuffer_t2235727887_marshal_pinvoke_back(const StringBuffer_t2235727887_marshaled_pinvoke& marshaled, StringBuffer_t2235727887& unmarshaled)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringBuffer_t2235727887_pinvoke_FromNativeMethodDefinition_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
if (marshaled.____buffer_0 != NULL)
{
if (unmarshaled.get__buffer_0() == NULL)
{
unmarshaled.set__buffer_0(reinterpret_cast<CharU5BU5D_t3528271667*>(SZArrayNew(CharU5BU5D_t3528271667_il2cpp_TypeInfo_var, 1)));
}
il2cpp_array_size_t _arrayLength = (unmarshaled.get__buffer_0())->max_length;
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(_arrayLength); i++)
{
(unmarshaled.get__buffer_0())->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), static_cast<Il2CppChar>((marshaled.____buffer_0)[i]));
}
}
int32_t unmarshaled__position_temp_1 = 0;
unmarshaled__position_temp_1 = marshaled.____position_1;
unmarshaled.set__position_1(unmarshaled__position_temp_1);
}
// Conversion method for clean up from marshalling of: Newtonsoft.Json.Utilities.StringBuffer
extern "C" void StringBuffer_t2235727887_marshal_pinvoke_cleanup(StringBuffer_t2235727887_marshaled_pinvoke& marshaled)
{
if (marshaled.____buffer_0 != NULL)
{
il2cpp_codegen_marshal_free(marshaled.____buffer_0);
marshaled.____buffer_0 = NULL;
}
}
// Conversion methods for marshalling of: Newtonsoft.Json.Utilities.StringBuffer
extern "C" void StringBuffer_t2235727887_marshal_com(const StringBuffer_t2235727887& unmarshaled, StringBuffer_t2235727887_marshaled_com& marshaled)
{
if (unmarshaled.get__buffer_0() != NULL)
{
il2cpp_array_size_t _unmarshaled__buffer_Length = (unmarshaled.get__buffer_0())->max_length;
marshaled.____buffer_0 = il2cpp_codegen_marshal_allocate_array<uint8_t>(_unmarshaled__buffer_Length);
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(_unmarshaled__buffer_Length); i++)
{
(marshaled.____buffer_0)[i] = static_cast<uint8_t>((unmarshaled.get__buffer_0())->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i)));
}
}
else
{
marshaled.____buffer_0 = NULL;
}
marshaled.____position_1 = unmarshaled.get__position_1();
}
extern "C" void StringBuffer_t2235727887_marshal_com_back(const StringBuffer_t2235727887_marshaled_com& marshaled, StringBuffer_t2235727887& unmarshaled)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringBuffer_t2235727887_com_FromNativeMethodDefinition_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
if (marshaled.____buffer_0 != NULL)
{
if (unmarshaled.get__buffer_0() == NULL)
{
unmarshaled.set__buffer_0(reinterpret_cast<CharU5BU5D_t3528271667*>(SZArrayNew(CharU5BU5D_t3528271667_il2cpp_TypeInfo_var, 1)));
}
il2cpp_array_size_t _arrayLength = (unmarshaled.get__buffer_0())->max_length;
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(_arrayLength); i++)
{
(unmarshaled.get__buffer_0())->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), static_cast<Il2CppChar>((marshaled.____buffer_0)[i]));
}
}
int32_t unmarshaled__position_temp_1 = 0;
unmarshaled__position_temp_1 = marshaled.____position_1;
unmarshaled.set__position_1(unmarshaled__position_temp_1);
}
// Conversion method for clean up from marshalling of: Newtonsoft.Json.Utilities.StringBuffer
extern "C" void StringBuffer_t2235727887_marshal_com_cleanup(StringBuffer_t2235727887_marshaled_com& marshaled)
{
if (marshaled.____buffer_0 != NULL)
{
il2cpp_codegen_marshal_free(marshaled.____buffer_0);
marshaled.____buffer_0 = NULL;
}
}
// System.Int32 Newtonsoft.Json.Utilities.StringBuffer::get_Position()
extern "C" int32_t StringBuffer_get_Position_m2575134391 (StringBuffer_t2235727887 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get__position_1();
return L_0;
}
}
extern "C" int32_t StringBuffer_get_Position_m2575134391_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
return StringBuffer_get_Position_m2575134391(_thisAdjusted, method);
}
// System.Void Newtonsoft.Json.Utilities.StringBuffer::set_Position(System.Int32)
extern "C" void StringBuffer_set_Position_m3776098892 (StringBuffer_t2235727887 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set__position_1(L_0);
return;
}
}
extern "C" void StringBuffer_set_Position_m3776098892_AdjustorThunk (RuntimeObject * __this, int32_t ___value0, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
StringBuffer_set_Position_m3776098892(_thisAdjusted, ___value0, method);
}
// System.Boolean Newtonsoft.Json.Utilities.StringBuffer::get_IsEmpty()
extern "C" bool StringBuffer_get_IsEmpty_m1286579341 (StringBuffer_t2235727887 * __this, const RuntimeMethod* method)
{
{
CharU5BU5D_t3528271667* L_0 = __this->get__buffer_0();
return (bool)((((RuntimeObject*)(CharU5BU5D_t3528271667*)L_0) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
}
}
extern "C" bool StringBuffer_get_IsEmpty_m1286579341_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
return StringBuffer_get_IsEmpty_m1286579341(_thisAdjusted, method);
}
// System.Void Newtonsoft.Json.Utilities.StringBuffer::.ctor(Newtonsoft.Json.IArrayPool`1<System.Char>,System.Int32)
extern "C" void StringBuffer__ctor_m83474316 (StringBuffer_t2235727887 * __this, RuntimeObject* ___bufferPool0, int32_t ___initalSize1, const RuntimeMethod* method)
{
{
RuntimeObject* L_0 = ___bufferPool0;
int32_t L_1 = ___initalSize1;
CharU5BU5D_t3528271667* L_2 = BufferUtils_RentBuffer_m2229979349(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/NULL);
StringBuffer__ctor_m108922253((StringBuffer_t2235727887 *)__this, L_2, /*hidden argument*/NULL);
return;
}
}
extern "C" void StringBuffer__ctor_m83474316_AdjustorThunk (RuntimeObject * __this, RuntimeObject* ___bufferPool0, int32_t ___initalSize1, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
StringBuffer__ctor_m83474316(_thisAdjusted, ___bufferPool0, ___initalSize1, method);
}
// System.Void Newtonsoft.Json.Utilities.StringBuffer::.ctor(System.Char[])
extern "C" void StringBuffer__ctor_m108922253 (StringBuffer_t2235727887 * __this, CharU5BU5D_t3528271667* ___buffer0, const RuntimeMethod* method)
{
{
CharU5BU5D_t3528271667* L_0 = ___buffer0;
__this->set__buffer_0(L_0);
__this->set__position_1(0);
return;
}
}
extern "C" void StringBuffer__ctor_m108922253_AdjustorThunk (RuntimeObject * __this, CharU5BU5D_t3528271667* ___buffer0, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
StringBuffer__ctor_m108922253(_thisAdjusted, ___buffer0, method);
}
// System.Void Newtonsoft.Json.Utilities.StringBuffer::Append(Newtonsoft.Json.IArrayPool`1<System.Char>,System.Char)
extern "C" void StringBuffer_Append_m1645108833 (StringBuffer_t2235727887 * __this, RuntimeObject* ___bufferPool0, Il2CppChar ___value1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = __this->get__position_1();
CharU5BU5D_t3528271667* L_1 = __this->get__buffer_0();
NullCheck(L_1);
if ((!(((uint32_t)L_0) == ((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_1)->max_length))))))))
{
goto IL_0018;
}
}
{
RuntimeObject* L_2 = ___bufferPool0;
StringBuffer_EnsureSize_m377227120((StringBuffer_t2235727887 *)__this, L_2, 1, /*hidden argument*/NULL);
}
IL_0018:
{
CharU5BU5D_t3528271667* L_3 = __this->get__buffer_0();
int32_t L_4 = __this->get__position_1();
V_0 = L_4;
int32_t L_5 = V_0;
__this->set__position_1(((int32_t)il2cpp_codegen_add((int32_t)L_5, (int32_t)1)));
int32_t L_6 = V_0;
Il2CppChar L_7 = ___value1;
NullCheck(L_3);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(L_6), (Il2CppChar)L_7);
return;
}
}
extern "C" void StringBuffer_Append_m1645108833_AdjustorThunk (RuntimeObject * __this, RuntimeObject* ___bufferPool0, Il2CppChar ___value1, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
StringBuffer_Append_m1645108833(_thisAdjusted, ___bufferPool0, ___value1, method);
}
// System.Void Newtonsoft.Json.Utilities.StringBuffer::Append(Newtonsoft.Json.IArrayPool`1<System.Char>,System.Char[],System.Int32,System.Int32)
extern "C" void StringBuffer_Append_m109955405 (StringBuffer_t2235727887 * __this, RuntimeObject* ___bufferPool0, CharU5BU5D_t3528271667* ___buffer1, int32_t ___startIndex2, int32_t ___count3, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get__position_1();
int32_t L_1 = ___count3;
CharU5BU5D_t3528271667* L_2 = __this->get__buffer_0();
NullCheck(L_2);
if ((((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1))) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_2)->max_length)))))))
{
goto IL_001c;
}
}
{
RuntimeObject* L_3 = ___bufferPool0;
int32_t L_4 = ___count3;
StringBuffer_EnsureSize_m377227120((StringBuffer_t2235727887 *)__this, L_3, L_4, /*hidden argument*/NULL);
}
IL_001c:
{
CharU5BU5D_t3528271667* L_5 = ___buffer1;
int32_t L_6 = ___startIndex2;
CharU5BU5D_t3528271667* L_7 = __this->get__buffer_0();
int32_t L_8 = __this->get__position_1();
int32_t L_9 = ___count3;
Array_Copy_m344457298(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_5, L_6, (RuntimeArray *)(RuntimeArray *)L_7, L_8, L_9, /*hidden argument*/NULL);
int32_t L_10 = __this->get__position_1();
int32_t L_11 = ___count3;
__this->set__position_1(((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)));
return;
}
}
extern "C" void StringBuffer_Append_m109955405_AdjustorThunk (RuntimeObject * __this, RuntimeObject* ___bufferPool0, CharU5BU5D_t3528271667* ___buffer1, int32_t ___startIndex2, int32_t ___count3, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
StringBuffer_Append_m109955405(_thisAdjusted, ___bufferPool0, ___buffer1, ___startIndex2, ___count3, method);
}
// System.Void Newtonsoft.Json.Utilities.StringBuffer::Clear(Newtonsoft.Json.IArrayPool`1<System.Char>)
extern "C" void StringBuffer_Clear_m2783062614 (StringBuffer_t2235727887 * __this, RuntimeObject* ___bufferPool0, const RuntimeMethod* method)
{
{
CharU5BU5D_t3528271667* L_0 = __this->get__buffer_0();
if (!L_0)
{
goto IL_001b;
}
}
{
RuntimeObject* L_1 = ___bufferPool0;
CharU5BU5D_t3528271667* L_2 = __this->get__buffer_0();
BufferUtils_ReturnBuffer_m1757235126(NULL /*static, unused*/, L_1, L_2, /*hidden argument*/NULL);
__this->set__buffer_0((CharU5BU5D_t3528271667*)NULL);
}
IL_001b:
{
__this->set__position_1(0);
return;
}
}
extern "C" void StringBuffer_Clear_m2783062614_AdjustorThunk (RuntimeObject * __this, RuntimeObject* ___bufferPool0, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
StringBuffer_Clear_m2783062614(_thisAdjusted, ___bufferPool0, method);
}
// System.Void Newtonsoft.Json.Utilities.StringBuffer::EnsureSize(Newtonsoft.Json.IArrayPool`1<System.Char>,System.Int32)
extern "C" void StringBuffer_EnsureSize_m377227120 (StringBuffer_t2235727887 * __this, RuntimeObject* ___bufferPool0, int32_t ___appendLength1, const RuntimeMethod* method)
{
CharU5BU5D_t3528271667* V_0 = NULL;
{
RuntimeObject* L_0 = ___bufferPool0;
int32_t L_1 = __this->get__position_1();
int32_t L_2 = ___appendLength1;
CharU5BU5D_t3528271667* L_3 = BufferUtils_RentBuffer_m2229979349(NULL /*static, unused*/, L_0, ((int32_t)il2cpp_codegen_multiply((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_2)), (int32_t)2)), /*hidden argument*/NULL);
V_0 = L_3;
CharU5BU5D_t3528271667* L_4 = __this->get__buffer_0();
if (!L_4)
{
goto IL_0037;
}
}
{
CharU5BU5D_t3528271667* L_5 = __this->get__buffer_0();
CharU5BU5D_t3528271667* L_6 = V_0;
int32_t L_7 = __this->get__position_1();
Array_Copy_m1988217701(NULL /*static, unused*/, (RuntimeArray *)(RuntimeArray *)L_5, (RuntimeArray *)(RuntimeArray *)L_6, L_7, /*hidden argument*/NULL);
RuntimeObject* L_8 = ___bufferPool0;
CharU5BU5D_t3528271667* L_9 = __this->get__buffer_0();
BufferUtils_ReturnBuffer_m1757235126(NULL /*static, unused*/, L_8, L_9, /*hidden argument*/NULL);
}
IL_0037:
{
CharU5BU5D_t3528271667* L_10 = V_0;
__this->set__buffer_0(L_10);
return;
}
}
extern "C" void StringBuffer_EnsureSize_m377227120_AdjustorThunk (RuntimeObject * __this, RuntimeObject* ___bufferPool0, int32_t ___appendLength1, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
StringBuffer_EnsureSize_m377227120(_thisAdjusted, ___bufferPool0, ___appendLength1, method);
}
// System.String Newtonsoft.Json.Utilities.StringBuffer::ToString()
extern "C" String_t* StringBuffer_ToString_m2736734392 (StringBuffer_t2235727887 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get__position_1();
String_t* L_1 = StringBuffer_ToString_m3112979436((StringBuffer_t2235727887 *)__this, 0, L_0, /*hidden argument*/NULL);
return L_1;
}
}
extern "C" String_t* StringBuffer_ToString_m2736734392_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
return StringBuffer_ToString_m2736734392(_thisAdjusted, method);
}
// System.String Newtonsoft.Json.Utilities.StringBuffer::ToString(System.Int32,System.Int32)
extern "C" String_t* StringBuffer_ToString_m3112979436 (StringBuffer_t2235727887 * __this, int32_t ___start0, int32_t ___length1, const RuntimeMethod* method)
{
{
CharU5BU5D_t3528271667* L_0 = __this->get__buffer_0();
int32_t L_1 = ___start0;
int32_t L_2 = ___length1;
String_t* L_3 = String_CreateString_m860434552(NULL, L_0, L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
extern "C" String_t* StringBuffer_ToString_m3112979436_AdjustorThunk (RuntimeObject * __this, int32_t ___start0, int32_t ___length1, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
return StringBuffer_ToString_m3112979436(_thisAdjusted, ___start0, ___length1, method);
}
// System.Char[] Newtonsoft.Json.Utilities.StringBuffer::get_InternalBuffer()
extern "C" CharU5BU5D_t3528271667* StringBuffer_get_InternalBuffer_m2608640496 (StringBuffer_t2235727887 * __this, const RuntimeMethod* method)
{
{
CharU5BU5D_t3528271667* L_0 = __this->get__buffer_0();
return L_0;
}
}
extern "C" CharU5BU5D_t3528271667* StringBuffer_get_InternalBuffer_m2608640496_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
StringBuffer_t2235727887 * _thisAdjusted = reinterpret_cast<StringBuffer_t2235727887 *>(__this + 1);
return StringBuffer_get_InternalBuffer_m2608640496(_thisAdjusted, method);
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Conversion methods for marshalling of: Newtonsoft.Json.Utilities.StringReference
extern "C" void StringReference_t2912309144_marshal_pinvoke(const StringReference_t2912309144& unmarshaled, StringReference_t2912309144_marshaled_pinvoke& marshaled)
{
if (unmarshaled.get__chars_0() != NULL)
{
il2cpp_array_size_t _unmarshaled__chars_Length = (unmarshaled.get__chars_0())->max_length;
marshaled.____chars_0 = il2cpp_codegen_marshal_allocate_array<uint8_t>(_unmarshaled__chars_Length);
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(_unmarshaled__chars_Length); i++)
{
(marshaled.____chars_0)[i] = static_cast<uint8_t>((unmarshaled.get__chars_0())->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i)));
}
}
else
{
marshaled.____chars_0 = NULL;
}
marshaled.____startIndex_1 = unmarshaled.get__startIndex_1();
marshaled.____length_2 = unmarshaled.get__length_2();
}
extern "C" void StringReference_t2912309144_marshal_pinvoke_back(const StringReference_t2912309144_marshaled_pinvoke& marshaled, StringReference_t2912309144& unmarshaled)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringReference_t2912309144_pinvoke_FromNativeMethodDefinition_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
if (marshaled.____chars_0 != NULL)
{
if (unmarshaled.get__chars_0() == NULL)
{
unmarshaled.set__chars_0(reinterpret_cast<CharU5BU5D_t3528271667*>(SZArrayNew(CharU5BU5D_t3528271667_il2cpp_TypeInfo_var, 1)));
}
il2cpp_array_size_t _arrayLength = (unmarshaled.get__chars_0())->max_length;
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(_arrayLength); i++)
{
(unmarshaled.get__chars_0())->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), static_cast<Il2CppChar>((marshaled.____chars_0)[i]));
}
}
int32_t unmarshaled__startIndex_temp_1 = 0;
unmarshaled__startIndex_temp_1 = marshaled.____startIndex_1;
unmarshaled.set__startIndex_1(unmarshaled__startIndex_temp_1);
int32_t unmarshaled__length_temp_2 = 0;
unmarshaled__length_temp_2 = marshaled.____length_2;
unmarshaled.set__length_2(unmarshaled__length_temp_2);
}
// Conversion method for clean up from marshalling of: Newtonsoft.Json.Utilities.StringReference
extern "C" void StringReference_t2912309144_marshal_pinvoke_cleanup(StringReference_t2912309144_marshaled_pinvoke& marshaled)
{
if (marshaled.____chars_0 != NULL)
{
il2cpp_codegen_marshal_free(marshaled.____chars_0);
marshaled.____chars_0 = NULL;
}
}
// Conversion methods for marshalling of: Newtonsoft.Json.Utilities.StringReference
extern "C" void StringReference_t2912309144_marshal_com(const StringReference_t2912309144& unmarshaled, StringReference_t2912309144_marshaled_com& marshaled)
{
if (unmarshaled.get__chars_0() != NULL)
{
il2cpp_array_size_t _unmarshaled__chars_Length = (unmarshaled.get__chars_0())->max_length;
marshaled.____chars_0 = il2cpp_codegen_marshal_allocate_array<uint8_t>(_unmarshaled__chars_Length);
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(_unmarshaled__chars_Length); i++)
{
(marshaled.____chars_0)[i] = static_cast<uint8_t>((unmarshaled.get__chars_0())->GetAtUnchecked(static_cast<il2cpp_array_size_t>(i)));
}
}
else
{
marshaled.____chars_0 = NULL;
}
marshaled.____startIndex_1 = unmarshaled.get__startIndex_1();
marshaled.____length_2 = unmarshaled.get__length_2();
}
extern "C" void StringReference_t2912309144_marshal_com_back(const StringReference_t2912309144_marshaled_com& marshaled, StringReference_t2912309144& unmarshaled)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringReference_t2912309144_com_FromNativeMethodDefinition_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
if (marshaled.____chars_0 != NULL)
{
if (unmarshaled.get__chars_0() == NULL)
{
unmarshaled.set__chars_0(reinterpret_cast<CharU5BU5D_t3528271667*>(SZArrayNew(CharU5BU5D_t3528271667_il2cpp_TypeInfo_var, 1)));
}
il2cpp_array_size_t _arrayLength = (unmarshaled.get__chars_0())->max_length;
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(_arrayLength); i++)
{
(unmarshaled.get__chars_0())->SetAtUnchecked(static_cast<il2cpp_array_size_t>(i), static_cast<Il2CppChar>((marshaled.____chars_0)[i]));
}
}
int32_t unmarshaled__startIndex_temp_1 = 0;
unmarshaled__startIndex_temp_1 = marshaled.____startIndex_1;
unmarshaled.set__startIndex_1(unmarshaled__startIndex_temp_1);
int32_t unmarshaled__length_temp_2 = 0;
unmarshaled__length_temp_2 = marshaled.____length_2;
unmarshaled.set__length_2(unmarshaled__length_temp_2);
}
// Conversion method for clean up from marshalling of: Newtonsoft.Json.Utilities.StringReference
extern "C" void StringReference_t2912309144_marshal_com_cleanup(StringReference_t2912309144_marshaled_com& marshaled)
{
if (marshaled.____chars_0 != NULL)
{
il2cpp_codegen_marshal_free(marshaled.____chars_0);
marshaled.____chars_0 = NULL;
}
}
// System.Char Newtonsoft.Json.Utilities.StringReference::get_Item(System.Int32)
extern "C" Il2CppChar StringReference_get_Item_m2821876239 (StringReference_t2912309144 * __this, int32_t ___i0, const RuntimeMethod* method)
{
{
CharU5BU5D_t3528271667* L_0 = __this->get__chars_0();
int32_t L_1 = ___i0;
NullCheck(L_0);
int32_t L_2 = L_1;
uint16_t L_3 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_2));
return L_3;
}
}
extern "C" Il2CppChar StringReference_get_Item_m2821876239_AdjustorThunk (RuntimeObject * __this, int32_t ___i0, const RuntimeMethod* method)
{
StringReference_t2912309144 * _thisAdjusted = reinterpret_cast<StringReference_t2912309144 *>(__this + 1);
return StringReference_get_Item_m2821876239(_thisAdjusted, ___i0, method);
}
// System.Char[] Newtonsoft.Json.Utilities.StringReference::get_Chars()
extern "C" CharU5BU5D_t3528271667* StringReference_get_Chars_m1428785588 (StringReference_t2912309144 * __this, const RuntimeMethod* method)
{
{
CharU5BU5D_t3528271667* L_0 = __this->get__chars_0();
return L_0;
}
}
extern "C" CharU5BU5D_t3528271667* StringReference_get_Chars_m1428785588_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
StringReference_t2912309144 * _thisAdjusted = reinterpret_cast<StringReference_t2912309144 *>(__this + 1);
return StringReference_get_Chars_m1428785588(_thisAdjusted, method);
}
// System.Int32 Newtonsoft.Json.Utilities.StringReference::get_StartIndex()
extern "C" int32_t StringReference_get_StartIndex_m577516227 (StringReference_t2912309144 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get__startIndex_1();
return L_0;
}
}
extern "C" int32_t StringReference_get_StartIndex_m577516227_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
StringReference_t2912309144 * _thisAdjusted = reinterpret_cast<StringReference_t2912309144 *>(__this + 1);
return StringReference_get_StartIndex_m577516227(_thisAdjusted, method);
}
// System.Int32 Newtonsoft.Json.Utilities.StringReference::get_Length()
extern "C" int32_t StringReference_get_Length_m1881544084 (StringReference_t2912309144 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get__length_2();
return L_0;
}
}
extern "C" int32_t StringReference_get_Length_m1881544084_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
StringReference_t2912309144 * _thisAdjusted = reinterpret_cast<StringReference_t2912309144 *>(__this + 1);
return StringReference_get_Length_m1881544084(_thisAdjusted, method);
}
// System.Void Newtonsoft.Json.Utilities.StringReference::.ctor(System.Char[],System.Int32,System.Int32)
extern "C" void StringReference__ctor_m345645319 (StringReference_t2912309144 * __this, CharU5BU5D_t3528271667* ___chars0, int32_t ___startIndex1, int32_t ___length2, const RuntimeMethod* method)
{
{
CharU5BU5D_t3528271667* L_0 = ___chars0;
__this->set__chars_0(L_0);
int32_t L_1 = ___startIndex1;
__this->set__startIndex_1(L_1);
int32_t L_2 = ___length2;
__this->set__length_2(L_2);
return;
}
}
extern "C" void StringReference__ctor_m345645319_AdjustorThunk (RuntimeObject * __this, CharU5BU5D_t3528271667* ___chars0, int32_t ___startIndex1, int32_t ___length2, const RuntimeMethod* method)
{
StringReference_t2912309144 * _thisAdjusted = reinterpret_cast<StringReference_t2912309144 *>(__this + 1);
StringReference__ctor_m345645319(_thisAdjusted, ___chars0, ___startIndex1, ___length2, method);
}
// System.String Newtonsoft.Json.Utilities.StringReference::ToString()
extern "C" String_t* StringReference_ToString_m3051914173 (StringReference_t2912309144 * __this, const RuntimeMethod* method)
{
{
CharU5BU5D_t3528271667* L_0 = __this->get__chars_0();
int32_t L_1 = __this->get__startIndex_1();
int32_t L_2 = __this->get__length_2();
String_t* L_3 = String_CreateString_m860434552(NULL, L_0, L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
extern "C" String_t* StringReference_ToString_m3051914173_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
StringReference_t2912309144 * _thisAdjusted = reinterpret_cast<StringReference_t2912309144 *>(__this + 1);
return StringReference_ToString_m3051914173(_thisAdjusted, method);
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Int32 Newtonsoft.Json.Utilities.StringReferenceExtensions::IndexOf(Newtonsoft.Json.Utilities.StringReference,System.Char,System.Int32,System.Int32)
extern "C" int32_t StringReferenceExtensions_IndexOf_m2457125624 (RuntimeObject * __this /* static, unused */, StringReference_t2912309144 ___s0, Il2CppChar ___c1, int32_t ___startIndex2, int32_t ___length3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringReferenceExtensions_IndexOf_m2457125624_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
CharU5BU5D_t3528271667* L_0 = StringReference_get_Chars_m1428785588((StringReference_t2912309144 *)(&___s0), /*hidden argument*/NULL);
Il2CppChar L_1 = ___c1;
int32_t L_2 = StringReference_get_StartIndex_m577516227((StringReference_t2912309144 *)(&___s0), /*hidden argument*/NULL);
int32_t L_3 = ___startIndex2;
int32_t L_4 = ___length3;
int32_t L_5 = Array_IndexOf_TisChar_t3634460470_m1523447194(NULL /*static, unused*/, L_0, L_1, ((int32_t)il2cpp_codegen_add((int32_t)L_2, (int32_t)L_3)), L_4, /*hidden argument*/Array_IndexOf_TisChar_t3634460470_m1523447194_RuntimeMethod_var);
V_0 = L_5;
int32_t L_6 = V_0;
if ((!(((uint32_t)L_6) == ((uint32_t)(-1)))))
{
goto IL_001e;
}
}
{
return (-1);
}
IL_001e:
{
int32_t L_7 = V_0;
int32_t L_8 = StringReference_get_StartIndex_m577516227((StringReference_t2912309144 *)(&___s0), /*hidden argument*/NULL);
return ((int32_t)il2cpp_codegen_subtract((int32_t)L_7, (int32_t)L_8));
}
}
// System.Boolean Newtonsoft.Json.Utilities.StringReferenceExtensions::StartsWith(Newtonsoft.Json.Utilities.StringReference,System.String)
extern "C" bool StringReferenceExtensions_StartsWith_m3064397327 (RuntimeObject * __this /* static, unused */, StringReference_t2912309144 ___s0, String_t* ___text1, const RuntimeMethod* method)
{
CharU5BU5D_t3528271667* V_0 = NULL;
int32_t V_1 = 0;
{
String_t* L_0 = ___text1;
NullCheck(L_0);
int32_t L_1 = String_get_Length_m3847582255(L_0, /*hidden argument*/NULL);
int32_t L_2 = StringReference_get_Length_m1881544084((StringReference_t2912309144 *)(&___s0), /*hidden argument*/NULL);
if ((((int32_t)L_1) <= ((int32_t)L_2)))
{
goto IL_0011;
}
}
{
return (bool)0;
}
IL_0011:
{
CharU5BU5D_t3528271667* L_3 = StringReference_get_Chars_m1428785588((StringReference_t2912309144 *)(&___s0), /*hidden argument*/NULL);
V_0 = L_3;
V_1 = 0;
goto IL_0037;
}
IL_001d:
{
String_t* L_4 = ___text1;
int32_t L_5 = V_1;
NullCheck(L_4);
Il2CppChar L_6 = String_get_Chars_m2986988803(L_4, L_5, /*hidden argument*/NULL);
CharU5BU5D_t3528271667* L_7 = V_0;
int32_t L_8 = V_1;
int32_t L_9 = StringReference_get_StartIndex_m577516227((StringReference_t2912309144 *)(&___s0), /*hidden argument*/NULL);
NullCheck(L_7);
int32_t L_10 = ((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)L_9));
uint16_t L_11 = (L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
if ((((int32_t)L_6) == ((int32_t)L_11)))
{
goto IL_0033;
}
}
{
return (bool)0;
}
IL_0033:
{
int32_t L_12 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_12, (int32_t)1));
}
IL_0037:
{
int32_t L_13 = V_1;
String_t* L_14 = ___text1;
NullCheck(L_14);
int32_t L_15 = String_get_Length_m3847582255(L_14, /*hidden argument*/NULL);
if ((((int32_t)L_13) < ((int32_t)L_15)))
{
goto IL_001d;
}
}
{
return (bool)1;
}
}
// System.Boolean Newtonsoft.Json.Utilities.StringReferenceExtensions::EndsWith(Newtonsoft.Json.Utilities.StringReference,System.String)
extern "C" bool StringReferenceExtensions_EndsWith_m2070211976 (RuntimeObject * __this /* static, unused */, StringReference_t2912309144 ___s0, String_t* ___text1, const RuntimeMethod* method)
{
CharU5BU5D_t3528271667* V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
{
String_t* L_0 = ___text1;
NullCheck(L_0);
int32_t L_1 = String_get_Length_m3847582255(L_0, /*hidden argument*/NULL);
int32_t L_2 = StringReference_get_Length_m1881544084((StringReference_t2912309144 *)(&___s0), /*hidden argument*/NULL);
if ((((int32_t)L_1) <= ((int32_t)L_2)))
{
goto IL_0011;
}
}
{
return (bool)0;
}
IL_0011:
{
CharU5BU5D_t3528271667* L_3 = StringReference_get_Chars_m1428785588((StringReference_t2912309144 *)(&___s0), /*hidden argument*/NULL);
V_0 = L_3;
int32_t L_4 = StringReference_get_StartIndex_m577516227((StringReference_t2912309144 *)(&___s0), /*hidden argument*/NULL);
int32_t L_5 = StringReference_get_Length_m1881544084((StringReference_t2912309144 *)(&___s0), /*hidden argument*/NULL);
String_t* L_6 = ___text1;
NullCheck(L_6);
int32_t L_7 = String_get_Length_m3847582255(L_6, /*hidden argument*/NULL);
V_1 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_4, (int32_t)L_5)), (int32_t)L_7));
V_2 = 0;
goto IL_0048;
}
IL_0034:
{
String_t* L_8 = ___text1;
int32_t L_9 = V_2;
NullCheck(L_8);
Il2CppChar L_10 = String_get_Chars_m2986988803(L_8, L_9, /*hidden argument*/NULL);
CharU5BU5D_t3528271667* L_11 = V_0;
int32_t L_12 = V_2;
int32_t L_13 = V_1;
NullCheck(L_11);
int32_t L_14 = ((int32_t)il2cpp_codegen_add((int32_t)L_12, (int32_t)L_13));
uint16_t L_15 = (L_11)->GetAt(static_cast<il2cpp_array_size_t>(L_14));
if ((((int32_t)L_10) == ((int32_t)L_15)))
{
goto IL_0044;
}
}
{
return (bool)0;
}
IL_0044:
{
int32_t L_16 = V_2;
V_2 = ((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1));
}
IL_0048:
{
int32_t L_17 = V_2;
String_t* L_18 = ___text1;
NullCheck(L_18);
int32_t L_19 = String_get_Length_m3847582255(L_18, /*hidden argument*/NULL);
if ((((int32_t)L_17) < ((int32_t)L_19)))
{
goto IL_0034;
}
}
{
return (bool)1;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.String Newtonsoft.Json.Utilities.StringUtils::FormatWith(System.String,System.IFormatProvider,System.Object)
extern "C" String_t* StringUtils_FormatWith_m3056805521 (RuntimeObject * __this /* static, unused */, String_t* ___format0, RuntimeObject* ___provider1, RuntimeObject * ___arg02, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringUtils_FormatWith_m3056805521_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
String_t* L_0 = ___format0;
RuntimeObject* L_1 = ___provider1;
ObjectU5BU5D_t2843939325* L_2 = ((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)1));
RuntimeObject * L_3 = ___arg02;
NullCheck(L_2);
ArrayElementTypeCheck (L_2, L_3);
(L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_3);
String_t* L_4 = StringUtils_FormatWith_m1786611224(NULL /*static, unused*/, L_0, L_1, L_2, /*hidden argument*/NULL);
return L_4;
}
}
// System.String Newtonsoft.Json.Utilities.StringUtils::FormatWith(System.String,System.IFormatProvider,System.Object,System.Object)
extern "C" String_t* StringUtils_FormatWith_m353537829 (RuntimeObject * __this /* static, unused */, String_t* ___format0, RuntimeObject* ___provider1, RuntimeObject * ___arg02, RuntimeObject * ___arg13, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringUtils_FormatWith_m353537829_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
String_t* L_0 = ___format0;
RuntimeObject* L_1 = ___provider1;
ObjectU5BU5D_t2843939325* L_2 = ((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)2));
RuntimeObject * L_3 = ___arg02;
NullCheck(L_2);
ArrayElementTypeCheck (L_2, L_3);
(L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_3);
ObjectU5BU5D_t2843939325* L_4 = L_2;
RuntimeObject * L_5 = ___arg13;
NullCheck(L_4);
ArrayElementTypeCheck (L_4, L_5);
(L_4)->SetAt(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_5);
String_t* L_6 = StringUtils_FormatWith_m1786611224(NULL /*static, unused*/, L_0, L_1, L_4, /*hidden argument*/NULL);
return L_6;
}
}
// System.String Newtonsoft.Json.Utilities.StringUtils::FormatWith(System.String,System.IFormatProvider,System.Object,System.Object,System.Object)
extern "C" String_t* StringUtils_FormatWith_m17931563 (RuntimeObject * __this /* static, unused */, String_t* ___format0, RuntimeObject* ___provider1, RuntimeObject * ___arg02, RuntimeObject * ___arg13, RuntimeObject * ___arg24, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringUtils_FormatWith_m17931563_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
String_t* L_0 = ___format0;
RuntimeObject* L_1 = ___provider1;
ObjectU5BU5D_t2843939325* L_2 = ((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)3));
RuntimeObject * L_3 = ___arg02;
NullCheck(L_2);
ArrayElementTypeCheck (L_2, L_3);
(L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_3);
ObjectU5BU5D_t2843939325* L_4 = L_2;
RuntimeObject * L_5 = ___arg13;
NullCheck(L_4);
ArrayElementTypeCheck (L_4, L_5);
(L_4)->SetAt(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_5);
ObjectU5BU5D_t2843939325* L_6 = L_4;
RuntimeObject * L_7 = ___arg24;
NullCheck(L_6);
ArrayElementTypeCheck (L_6, L_7);
(L_6)->SetAt(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)L_7);
String_t* L_8 = StringUtils_FormatWith_m1786611224(NULL /*static, unused*/, L_0, L_1, L_6, /*hidden argument*/NULL);
return L_8;
}
}
// System.String Newtonsoft.Json.Utilities.StringUtils::FormatWith(System.String,System.IFormatProvider,System.Object,System.Object,System.Object,System.Object)
extern "C" String_t* StringUtils_FormatWith_m2539955297 (RuntimeObject * __this /* static, unused */, String_t* ___format0, RuntimeObject* ___provider1, RuntimeObject * ___arg02, RuntimeObject * ___arg13, RuntimeObject * ___arg24, RuntimeObject * ___arg35, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringUtils_FormatWith_m2539955297_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
String_t* L_0 = ___format0;
RuntimeObject* L_1 = ___provider1;
ObjectU5BU5D_t2843939325* L_2 = ((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)4));
RuntimeObject * L_3 = ___arg02;
NullCheck(L_2);
ArrayElementTypeCheck (L_2, L_3);
(L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_3);
ObjectU5BU5D_t2843939325* L_4 = L_2;
RuntimeObject * L_5 = ___arg13;
NullCheck(L_4);
ArrayElementTypeCheck (L_4, L_5);
(L_4)->SetAt(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_5);
ObjectU5BU5D_t2843939325* L_6 = L_4;
RuntimeObject * L_7 = ___arg24;
NullCheck(L_6);
ArrayElementTypeCheck (L_6, L_7);
(L_6)->SetAt(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)L_7);
ObjectU5BU5D_t2843939325* L_8 = L_6;
RuntimeObject * L_9 = ___arg35;
NullCheck(L_8);
ArrayElementTypeCheck (L_8, L_9);
(L_8)->SetAt(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_9);
String_t* L_10 = StringUtils_FormatWith_m1786611224(NULL /*static, unused*/, L_0, L_1, L_8, /*hidden argument*/NULL);
return L_10;
}
}
// System.String Newtonsoft.Json.Utilities.StringUtils::FormatWith(System.String,System.IFormatProvider,System.Object[])
extern "C" String_t* StringUtils_FormatWith_m1786611224 (RuntimeObject * __this /* static, unused */, String_t* ___format0, RuntimeObject* ___provider1, ObjectU5BU5D_t2843939325* ___args2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringUtils_FormatWith_m1786611224_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
String_t* L_0 = ___format0;
ValidationUtils_ArgumentNotNull_m5418296(NULL /*static, unused*/, L_0, _stringLiteral446157247, /*hidden argument*/NULL);
RuntimeObject* L_1 = ___provider1;
String_t* L_2 = ___format0;
ObjectU5BU5D_t2843939325* L_3 = ___args2;
String_t* L_4 = String_Format_m1881875187(NULL /*static, unused*/, L_1, L_2, L_3, /*hidden argument*/NULL);
return L_4;
}
}
// System.IO.StringWriter Newtonsoft.Json.Utilities.StringUtils::CreateStringWriter(System.Int32)
extern "C" StringWriter_t802263757 * StringUtils_CreateStringWriter_m3876739792 (RuntimeObject * __this /* static, unused */, int32_t ___capacity0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringUtils_CreateStringWriter_m3876739792_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = ___capacity0;
StringBuilder_t * L_1 = (StringBuilder_t *)il2cpp_codegen_object_new(StringBuilder_t_il2cpp_TypeInfo_var);
StringBuilder__ctor_m2367297767(L_1, L_0, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t4157843068_il2cpp_TypeInfo_var);
CultureInfo_t4157843068 * L_2 = CultureInfo_get_InvariantCulture_m3532445182(NULL /*static, unused*/, /*hidden argument*/NULL);
StringWriter_t802263757 * L_3 = (StringWriter_t802263757 *)il2cpp_codegen_object_new(StringWriter_t802263757_il2cpp_TypeInfo_var);
StringWriter__ctor_m3987072682(L_3, L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
// System.Nullable`1<System.Int32> Newtonsoft.Json.Utilities.StringUtils::GetLength(System.String)
extern "C" Nullable_1_t378540539 StringUtils_GetLength_m3427840909 (RuntimeObject * __this /* static, unused */, String_t* ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (StringUtils_GetLength_m3427840909_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Nullable_1_t378540539 V_0;
memset(&V_0, 0, sizeof(V_0));
{
String_t* L_0 = ___value0;
if (L_0)
{
goto IL_000d;
}
}
{
il2cpp_codegen_initobj((&V_0), sizeof(Nullable_1_t378540539 ));
Nullable_1_t378540539 L_1 = V_0;
return L_1;
}
IL_000d:
{
String_t* L_2 = ___value0;
NullCheck(L_2);
int32_t L_3 = String_get_Length_m3847582255(L_2, /*hidden argument*/NULL);
Nullable_1_t378540539 L_4;
memset(&L_4, 0, sizeof(L_4));
Nullable_1__ctor_m2962682148((&L_4), L_3, /*hidden argument*/Nullable_1__ctor_m2962682148_RuntimeMethod_var);
return L_4;
}
}
// System.Void Newtonsoft.Json.Utilities.StringUtils::ToCharAsUnicode(System.Char,System.Char[])
extern "C" void StringUtils_ToCharAsUnicode_m1857241640 (RuntimeObject * __this /* static, unused */, Il2CppChar ___c0, CharU5BU5D_t3528271667* ___buffer1, const RuntimeMethod* method)
{
{
CharU5BU5D_t3528271667* L_0 = ___buffer1;
NullCheck(L_0);
(L_0)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppChar)((int32_t)92));
CharU5BU5D_t3528271667* L_1 = ___buffer1;
NullCheck(L_1);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(1), (Il2CppChar)((int32_t)117));
CharU5BU5D_t3528271667* L_2 = ___buffer1;
Il2CppChar L_3 = ___c0;
Il2CppChar L_4 = MathUtils_IntToHex_m1986186787(NULL /*static, unused*/, ((int32_t)((int32_t)((int32_t)((int32_t)L_3>>(int32_t)((int32_t)12)))&(int32_t)((int32_t)15))), /*hidden argument*/NULL);
NullCheck(L_2);
(L_2)->SetAt(static_cast<il2cpp_array_size_t>(2), (Il2CppChar)L_4);
CharU5BU5D_t3528271667* L_5 = ___buffer1;
Il2CppChar L_6 = ___c0;
Il2CppChar L_7 = MathUtils_IntToHex_m1986186787(NULL /*static, unused*/, ((int32_t)((int32_t)((int32_t)((int32_t)L_6>>(int32_t)8))&(int32_t)((int32_t)15))), /*hidden argument*/NULL);
NullCheck(L_5);
(L_5)->SetAt(static_cast<il2cpp_array_size_t>(3), (Il2CppChar)L_7);
CharU5BU5D_t3528271667* L_8 = ___buffer1;
Il2CppChar L_9 = ___c0;
Il2CppChar L_10 = MathUtils_IntToHex_m1986186787(NULL /*static, unused*/, ((int32_t)((int32_t)((int32_t)((int32_t)L_9>>(int32_t)4))&(int32_t)((int32_t)15))), /*hidden argument*/NULL);
NullCheck(L_8);
(L_8)->SetAt(static_cast<il2cpp_array_size_t>(4), (Il2CppChar)L_10);
CharU5BU5D_t3528271667* L_11 = ___buffer1;
Il2CppChar L_12 = ___c0;
Il2CppChar L_13 = MathUtils_IntToHex_m1986186787(NULL /*static, unused*/, ((int32_t)((int32_t)L_12&(int32_t)((int32_t)15))), /*hidden argument*/NULL);
NullCheck(L_11);
(L_11)->SetAt(static_cast<il2cpp_array_size_t>(5), (Il2CppChar)L_13);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.StringUtils::IsHighSurrogate(System.Char)
extern "C" bool StringUtils_IsHighSurrogate_m2271768366 (RuntimeObject * __this /* static, unused */, Il2CppChar ___c0, const RuntimeMethod* method)
{
{
Il2CppChar L_0 = ___c0;
if ((((int32_t)L_0) < ((int32_t)((int32_t)55296))))
{
goto IL_0014;
}
}
{
Il2CppChar L_1 = ___c0;
return (bool)((((int32_t)((((int32_t)L_1) > ((int32_t)((int32_t)56319)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
IL_0014:
{
return (bool)0;
}
}
// System.Boolean Newtonsoft.Json.Utilities.StringUtils::IsLowSurrogate(System.Char)
extern "C" bool StringUtils_IsLowSurrogate_m4258024248 (RuntimeObject * __this /* static, unused */, Il2CppChar ___c0, const RuntimeMethod* method)
{
{
Il2CppChar L_0 = ___c0;
if ((((int32_t)L_0) < ((int32_t)((int32_t)56320))))
{
goto IL_0014;
}
}
{
Il2CppChar L_1 = ___c0;
return (bool)((((int32_t)((((int32_t)L_1) > ((int32_t)((int32_t)57343)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
IL_0014:
{
return (bool)0;
}
}
// System.Boolean Newtonsoft.Json.Utilities.StringUtils::EndsWith(System.String,System.Char)
extern "C" bool StringUtils_EndsWith_m1814538149 (RuntimeObject * __this /* static, unused */, String_t* ___source0, Il2CppChar ___value1, const RuntimeMethod* method)
{
{
String_t* L_0 = ___source0;
NullCheck(L_0);
int32_t L_1 = String_get_Length_m3847582255(L_0, /*hidden argument*/NULL);
if ((((int32_t)L_1) <= ((int32_t)0)))
{
goto IL_001b;
}
}
{
String_t* L_2 = ___source0;
String_t* L_3 = ___source0;
NullCheck(L_3);
int32_t L_4 = String_get_Length_m3847582255(L_3, /*hidden argument*/NULL);
NullCheck(L_2);
Il2CppChar L_5 = String_get_Chars_m2986988803(L_2, ((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)1)), /*hidden argument*/NULL);
Il2CppChar L_6 = ___value1;
return (bool)((((int32_t)L_5) == ((int32_t)L_6))? 1 : 0);
}
IL_001b:
{
return (bool)0;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetGetMethod(System.Reflection.PropertyInfo)
extern "C" MethodInfo_t * TypeExtensions_GetGetMethod_m1542366069 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetGetMethod_m1542366069_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
PropertyInfo_t * L_0 = ___propertyInfo0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_1 = TypeExtensions_GetGetMethod_m2640593011(NULL /*static, unused*/, L_0, (bool)0, /*hidden argument*/NULL);
return L_1;
}
}
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetGetMethod(System.Reflection.PropertyInfo,System.Boolean)
extern "C" MethodInfo_t * TypeExtensions_GetGetMethod_m2640593011 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, bool ___nonPublic1, const RuntimeMethod* method)
{
MethodInfo_t * V_0 = NULL;
{
PropertyInfo_t * L_0 = ___propertyInfo0;
NullCheck(L_0);
MethodInfo_t * L_1 = VirtFuncInvoker0< MethodInfo_t * >::Invoke(19 /* System.Reflection.MethodInfo System.Reflection.PropertyInfo::get_GetMethod() */, L_0);
V_0 = L_1;
MethodInfo_t * L_2 = V_0;
if (!L_2)
{
goto IL_0016;
}
}
{
MethodInfo_t * L_3 = V_0;
NullCheck(L_3);
bool L_4 = MethodBase_get_IsPublic_m2180846589(L_3, /*hidden argument*/NULL);
bool L_5 = ___nonPublic1;
if (!((int32_t)((int32_t)L_4|(int32_t)L_5)))
{
goto IL_0016;
}
}
{
MethodInfo_t * L_6 = V_0;
return L_6;
}
IL_0016:
{
return (MethodInfo_t *)NULL;
}
}
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetSetMethod(System.Reflection.PropertyInfo)
extern "C" MethodInfo_t * TypeExtensions_GetSetMethod_m574838549 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetSetMethod_m574838549_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
PropertyInfo_t * L_0 = ___propertyInfo0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MethodInfo_t * L_1 = TypeExtensions_GetSetMethod_m1183273061(NULL /*static, unused*/, L_0, (bool)0, /*hidden argument*/NULL);
return L_1;
}
}
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetSetMethod(System.Reflection.PropertyInfo,System.Boolean)
extern "C" MethodInfo_t * TypeExtensions_GetSetMethod_m1183273061 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___propertyInfo0, bool ___nonPublic1, const RuntimeMethod* method)
{
MethodInfo_t * V_0 = NULL;
{
PropertyInfo_t * L_0 = ___propertyInfo0;
NullCheck(L_0);
MethodInfo_t * L_1 = VirtFuncInvoker0< MethodInfo_t * >::Invoke(20 /* System.Reflection.MethodInfo System.Reflection.PropertyInfo::get_SetMethod() */, L_0);
V_0 = L_1;
MethodInfo_t * L_2 = V_0;
if (!L_2)
{
goto IL_0016;
}
}
{
MethodInfo_t * L_3 = V_0;
NullCheck(L_3);
bool L_4 = MethodBase_get_IsPublic_m2180846589(L_3, /*hidden argument*/NULL);
bool L_5 = ___nonPublic1;
if (!((int32_t)((int32_t)L_4|(int32_t)L_5)))
{
goto IL_0016;
}
}
{
MethodInfo_t * L_6 = V_0;
return L_6;
}
IL_0016:
{
return (MethodInfo_t *)NULL;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsSubclassOf(System.Type,System.Type)
extern "C" bool TypeExtensions_IsSubclassOf_m3010665877 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___c1, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
Type_t * L_2 = ___c1;
NullCheck(L_1);
bool L_3 = VirtFuncInvoker1< bool, Type_t * >::Invoke(118 /* System.Boolean System.Reflection.TypeInfo::IsSubclassOf(System.Type) */, L_1, L_2);
return L_3;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsAssignableFrom(System.Type,System.Type)
extern "C" bool TypeExtensions_IsAssignableFrom_m1207251774 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___c1, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
Type_t * L_2 = ___c1;
TypeInfo_t1690786683 * L_3 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_2, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_4 = VirtFuncInvoker1< bool, TypeInfo_t1690786683 * >::Invoke(134 /* System.Boolean System.Reflection.TypeInfo::IsAssignableFrom(System.Reflection.TypeInfo) */, L_1, L_3);
return L_4;
}
}
// Newtonsoft.Json.Utilities.MemberTypes Newtonsoft.Json.Utilities.TypeExtensions::MemberType(System.Reflection.MemberInfo)
extern "C" int32_t TypeExtensions_MemberType_m2046620246 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___memberInfo0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_MemberType_m2046620246_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MemberInfo_t * L_0 = ___memberInfo0;
if (!((PropertyInfo_t *)IsInstClass((RuntimeObject*)L_0, PropertyInfo_t_il2cpp_TypeInfo_var)))
{
goto IL_000a;
}
}
{
return (int32_t)(0);
}
IL_000a:
{
MemberInfo_t * L_1 = ___memberInfo0;
if (!((FieldInfo_t *)IsInstClass((RuntimeObject*)L_1, FieldInfo_t_il2cpp_TypeInfo_var)))
{
goto IL_0014;
}
}
{
return (int32_t)(1);
}
IL_0014:
{
MemberInfo_t * L_2 = ___memberInfo0;
if (!((EventInfo_t *)IsInstClass((RuntimeObject*)L_2, EventInfo_t_il2cpp_TypeInfo_var)))
{
goto IL_001e;
}
}
{
return (int32_t)(2);
}
IL_001e:
{
MemberInfo_t * L_3 = ___memberInfo0;
if (!((MethodInfo_t *)IsInstClass((RuntimeObject*)L_3, MethodInfo_t_il2cpp_TypeInfo_var)))
{
goto IL_0028;
}
}
{
return (int32_t)(3);
}
IL_0028:
{
return (int32_t)(4);
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::ContainsGenericParameters(System.Type)
extern "C" bool TypeExtensions_ContainsGenericParameters_m2408384511 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_2 = VirtFuncInvoker0< bool >::Invoke(88 /* System.Boolean System.Reflection.TypeInfo::get_ContainsGenericParameters() */, L_1);
return L_2;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsInterface(System.Type)
extern "C" bool TypeExtensions_IsInterface_m3543394130 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_2 = Type_get_IsInterface_m3284996719(L_1, /*hidden argument*/NULL);
return L_2;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsGenericType(System.Type)
extern "C" bool TypeExtensions_IsGenericType_m3947308765 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_2 = VirtFuncInvoker0< bool >::Invoke(83 /* System.Boolean System.Reflection.TypeInfo::get_IsGenericType() */, L_1);
return L_2;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsGenericTypeDefinition(System.Type)
extern "C" bool TypeExtensions_IsGenericTypeDefinition_m2160044791 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_2 = VirtFuncInvoker0< bool >::Invoke(84 /* System.Boolean System.Reflection.TypeInfo::get_IsGenericTypeDefinition() */, L_1);
return L_2;
}
}
// System.Type Newtonsoft.Json.Utilities.TypeExtensions::BaseType(System.Type)
extern "C" Type_t * TypeExtensions_BaseType_m1084285535 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
Type_t * L_2 = VirtFuncInvoker0< Type_t * >::Invoke(30 /* System.Type System.Reflection.TypeInfo::get_BaseType() */, L_1);
return L_2;
}
}
// System.Reflection.Assembly Newtonsoft.Json.Utilities.TypeExtensions::Assembly(System.Type)
extern "C" Assembly_t * TypeExtensions_Assembly_m2111093205 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
Assembly_t * L_2 = VirtFuncInvoker0< Assembly_t * >::Invoke(24 /* System.Reflection.Assembly System.Reflection.TypeInfo::get_Assembly() */, L_1);
return L_2;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsEnum(System.Type)
extern "C" bool TypeExtensions_IsEnum_m286495740 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_2 = VirtFuncInvoker0< bool >::Invoke(78 /* System.Boolean System.Reflection.TypeInfo::get_IsEnum() */, L_1);
return L_2;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsClass(System.Type)
extern "C" bool TypeExtensions_IsClass_m3873378058 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_2 = Type_get_IsClass_m589177581(L_1, /*hidden argument*/NULL);
return L_2;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsSealed(System.Type)
extern "C" bool TypeExtensions_IsSealed_m1488474977 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_2 = Type_get_IsSealed_m3543837727(L_1, /*hidden argument*/NULL);
return L_2;
}
}
// System.Reflection.PropertyInfo Newtonsoft.Json.Utilities.TypeExtensions::GetProperty(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags,System.Object,System.Type,System.Collections.Generic.IList`1<System.Type>,System.Object)
extern "C" PropertyInfo_t * TypeExtensions_GetProperty_m2099548567 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, int32_t ___bindingFlags2, RuntimeObject * ___placeholder13, Type_t * ___propertyType4, RuntimeObject* ___indexParameters5, RuntimeObject * ___placeholder26, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetProperty_m2099548567_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass19_0_t1131461246 * V_0 = NULL;
{
U3CU3Ec__DisplayClass19_0_t1131461246 * L_0 = (U3CU3Ec__DisplayClass19_0_t1131461246 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass19_0_t1131461246_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass19_0__ctor_m1547535707(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass19_0_t1131461246 * L_1 = V_0;
String_t* L_2 = ___name1;
NullCheck(L_1);
L_1->set_name_0(L_2);
U3CU3Ec__DisplayClass19_0_t1131461246 * L_3 = V_0;
Type_t * L_4 = ___propertyType4;
NullCheck(L_3);
L_3->set_propertyType_1(L_4);
U3CU3Ec__DisplayClass19_0_t1131461246 * L_5 = V_0;
RuntimeObject* L_6 = ___indexParameters5;
NullCheck(L_5);
L_5->set_indexParameters_2(L_6);
Type_t * L_7 = ___type0;
int32_t L_8 = ___bindingFlags2;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_9 = TypeExtensions_GetProperties_m3775878448(NULL /*static, unused*/, L_7, L_8, /*hidden argument*/NULL);
U3CU3Ec__DisplayClass19_0_t1131461246 * L_10 = V_0;
intptr_t L_11 = (intptr_t)U3CU3Ec__DisplayClass19_0_U3CGetPropertyU3Eb__0_m1618760806_RuntimeMethod_var;
Func_2_t2377163032 * L_12 = (Func_2_t2377163032 *)il2cpp_codegen_object_new(Func_2_t2377163032_il2cpp_TypeInfo_var);
Func_2__ctor_m3813751571(L_12, L_10, L_11, /*hidden argument*/Func_2__ctor_m3813751571_RuntimeMethod_var);
RuntimeObject* L_13 = Enumerable_Where_TisPropertyInfo_t_m3804523869(NULL /*static, unused*/, L_9, L_12, /*hidden argument*/Enumerable_Where_TisPropertyInfo_t_m3804523869_RuntimeMethod_var);
PropertyInfo_t * L_14 = Enumerable_SingleOrDefault_TisPropertyInfo_t_m443362051(NULL /*static, unused*/, L_13, /*hidden argument*/Enumerable_SingleOrDefault_TisPropertyInfo_t_m443362051_RuntimeMethod_var);
return L_14;
}
}
// System.Collections.Generic.IEnumerable`1<System.Reflection.MemberInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetMember(System.Type,System.String,Newtonsoft.Json.Utilities.MemberTypes,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* TypeExtensions_GetMember_m1278713418 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, int32_t ___memberType2, int32_t ___bindingFlags3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetMember_m1278713418_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
String_t* L_1 = ___name1;
int32_t L_2 = ___memberType2;
Nullable_1_t3738281181 L_3;
memset(&L_3, 0, sizeof(L_3));
Nullable_1__ctor_m3380486094((&L_3), L_2, /*hidden argument*/Nullable_1__ctor_m3380486094_RuntimeMethod_var);
int32_t L_4 = ___bindingFlags3;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MemberInfoU5BU5D_t1302094432* L_5 = TypeExtensions_GetMemberInternal_m3246538528(NULL /*static, unused*/, L_0, L_1, L_3, L_4, /*hidden argument*/NULL);
return (RuntimeObject*)L_5;
}
}
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetBaseDefinition(System.Reflection.MethodInfo)
extern "C" MethodInfo_t * TypeExtensions_GetBaseDefinition_m225967706 (RuntimeObject * __this /* static, unused */, MethodInfo_t * ___method0, const RuntimeMethod* method)
{
{
MethodInfo_t * L_0 = ___method0;
MethodInfo_t * L_1 = RuntimeReflectionExtensions_GetRuntimeBaseDefinition_m3606280828(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
return L_1;
}
}
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetMethod(System.Type,System.String)
extern "C" MethodInfo_t * TypeExtensions_GetMethod_m3329308827 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetMethod_m3329308827_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
String_t* L_1 = ___name1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_2 = ((TypeExtensions_t264900522_StaticFields*)il2cpp_codegen_static_fields_for(TypeExtensions_t264900522_il2cpp_TypeInfo_var))->get_DefaultFlags_0();
MethodInfo_t * L_3 = TypeExtensions_GetMethod_m2065588957(NULL /*static, unused*/, L_0, L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetMethod(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" MethodInfo_t * TypeExtensions_GetMethod_m2065588957 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, int32_t ___bindingFlags2, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
String_t* L_2 = ___name1;
NullCheck(L_1);
MethodInfo_t * L_3 = VirtFuncInvoker1< MethodInfo_t *, String_t* >::Invoke(136 /* System.Reflection.MethodInfo System.Reflection.TypeInfo::GetDeclaredMethod(System.String) */, L_1, L_2);
return L_3;
}
}
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetMethod(System.Type,System.String,System.Collections.Generic.IList`1<System.Type>)
extern "C" MethodInfo_t * TypeExtensions_GetMethod_m2693588587 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, RuntimeObject* ___parameterTypes2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetMethod_m2693588587_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
String_t* L_1 = ___name1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_2 = ((TypeExtensions_t264900522_StaticFields*)il2cpp_codegen_static_fields_for(TypeExtensions_t264900522_il2cpp_TypeInfo_var))->get_DefaultFlags_0();
RuntimeObject* L_3 = ___parameterTypes2;
MethodInfo_t * L_4 = TypeExtensions_GetMethod_m4219855850(NULL /*static, unused*/, L_0, L_1, L_2, NULL, L_3, NULL, /*hidden argument*/NULL);
return L_4;
}
}
// System.Reflection.MethodInfo Newtonsoft.Json.Utilities.TypeExtensions::GetMethod(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags,System.Object,System.Collections.Generic.IList`1<System.Type>,System.Object)
extern "C" MethodInfo_t * TypeExtensions_GetMethod_m4219855850 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, int32_t ___bindingFlags2, RuntimeObject * ___placeHolder13, RuntimeObject* ___parameterTypes4, RuntimeObject * ___placeHolder25, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetMethod_m4219855850_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass27_0_t1152408749 * V_0 = NULL;
{
U3CU3Ec__DisplayClass27_0_t1152408749 * L_0 = (U3CU3Ec__DisplayClass27_0_t1152408749 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass27_0_t1152408749_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass27_0__ctor_m191471575(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass27_0_t1152408749 * L_1 = V_0;
String_t* L_2 = ___name1;
NullCheck(L_1);
L_1->set_name_0(L_2);
U3CU3Ec__DisplayClass27_0_t1152408749 * L_3 = V_0;
int32_t L_4 = ___bindingFlags2;
NullCheck(L_3);
L_3->set_bindingFlags_1(L_4);
U3CU3Ec__DisplayClass27_0_t1152408749 * L_5 = V_0;
RuntimeObject* L_6 = ___parameterTypes4;
NullCheck(L_5);
L_5->set_parameterTypes_2(L_6);
Type_t * L_7 = ___type0;
TypeInfo_t1690786683 * L_8 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_7, /*hidden argument*/NULL);
NullCheck(L_8);
RuntimeObject* L_9 = VirtFuncInvoker0< RuntimeObject* >::Invoke(141 /* System.Collections.Generic.IEnumerable`1<System.Reflection.MethodInfo> System.Reflection.TypeInfo::get_DeclaredMethods() */, L_8);
U3CU3Ec__DisplayClass27_0_t1152408749 * L_10 = V_0;
intptr_t L_11 = (intptr_t)U3CU3Ec__DisplayClass27_0_U3CGetMethodU3Eb__0_m3350391101_RuntimeMethod_var;
Func_2_t3487522507 * L_12 = (Func_2_t3487522507 *)il2cpp_codegen_object_new(Func_2_t3487522507_il2cpp_TypeInfo_var);
Func_2__ctor_m1610613808(L_12, L_10, L_11, /*hidden argument*/Func_2__ctor_m1610613808_RuntimeMethod_var);
RuntimeObject* L_13 = Enumerable_Where_TisMethodInfo_t_m1737046122(NULL /*static, unused*/, L_9, L_12, /*hidden argument*/Enumerable_Where_TisMethodInfo_t_m1737046122_RuntimeMethod_var);
MethodInfo_t * L_14 = Enumerable_SingleOrDefault_TisMethodInfo_t_m1546770912(NULL /*static, unused*/, L_13, /*hidden argument*/Enumerable_SingleOrDefault_TisMethodInfo_t_m1546770912_RuntimeMethod_var);
return L_14;
}
}
// System.Collections.Generic.IEnumerable`1<System.Reflection.ConstructorInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetConstructors(System.Type)
extern "C" RuntimeObject* TypeExtensions_GetConstructors_m2840976236 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetConstructors_m2840976236_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_1 = ((TypeExtensions_t264900522_StaticFields*)il2cpp_codegen_static_fields_for(TypeExtensions_t264900522_il2cpp_TypeInfo_var))->get_DefaultFlags_0();
RuntimeObject* L_2 = TypeExtensions_GetConstructors_m3290158206(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/NULL);
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<System.Reflection.ConstructorInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetConstructors(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* TypeExtensions_GetConstructors_m3290158206 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingFlags1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetConstructors_m3290158206_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
int32_t L_1 = ___bindingFlags1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_2 = TypeExtensions_GetConstructors_m1413194908(NULL /*static, unused*/, L_0, L_1, (RuntimeObject*)NULL, /*hidden argument*/NULL);
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<System.Reflection.ConstructorInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetConstructors(System.Type,Newtonsoft.Json.Utilities.BindingFlags,System.Collections.Generic.IList`1<System.Type>)
extern "C" RuntimeObject* TypeExtensions_GetConstructors_m1413194908 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingFlags1, RuntimeObject* ___parameterTypes2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetConstructors_m1413194908_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass30_0_t395628872 * V_0 = NULL;
{
U3CU3Ec__DisplayClass30_0_t395628872 * L_0 = (U3CU3Ec__DisplayClass30_0_t395628872 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass30_0_t395628872_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass30_0__ctor_m117216210(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass30_0_t395628872 * L_1 = V_0;
int32_t L_2 = ___bindingFlags1;
NullCheck(L_1);
L_1->set_bindingFlags_0(L_2);
U3CU3Ec__DisplayClass30_0_t395628872 * L_3 = V_0;
RuntimeObject* L_4 = ___parameterTypes2;
NullCheck(L_3);
L_3->set_parameterTypes_1(L_4);
Type_t * L_5 = ___type0;
TypeInfo_t1690786683 * L_6 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_5, /*hidden argument*/NULL);
NullCheck(L_6);
RuntimeObject* L_7 = VirtFuncInvoker0< RuntimeObject* >::Invoke(138 /* System.Collections.Generic.IEnumerable`1<System.Reflection.ConstructorInfo> System.Reflection.TypeInfo::get_DeclaredConstructors() */, L_6);
U3CU3Ec__DisplayClass30_0_t395628872 * L_8 = V_0;
intptr_t L_9 = (intptr_t)U3CU3Ec__DisplayClass30_0_U3CGetConstructorsU3Eb__0_m3639680810_RuntimeMethod_var;
Func_2_t1796590042 * L_10 = (Func_2_t1796590042 *)il2cpp_codegen_object_new(Func_2_t1796590042_il2cpp_TypeInfo_var);
Func_2__ctor_m2207392731(L_10, L_8, L_9, /*hidden argument*/Func_2__ctor_m2207392731_RuntimeMethod_var);
RuntimeObject* L_11 = Enumerable_Where_TisConstructorInfo_t5769829_m3502358349(NULL /*static, unused*/, L_7, L_10, /*hidden argument*/Enumerable_Where_TisConstructorInfo_t5769829_m3502358349_RuntimeMethod_var);
return L_11;
}
}
// System.Reflection.ConstructorInfo Newtonsoft.Json.Utilities.TypeExtensions::GetConstructor(System.Type,System.Collections.Generic.IList`1<System.Type>)
extern "C" ConstructorInfo_t5769829 * TypeExtensions_GetConstructor_m1014186903 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, RuntimeObject* ___parameterTypes1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetConstructor_m1014186903_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_1 = ((TypeExtensions_t264900522_StaticFields*)il2cpp_codegen_static_fields_for(TypeExtensions_t264900522_il2cpp_TypeInfo_var))->get_DefaultFlags_0();
RuntimeObject* L_2 = ___parameterTypes1;
ConstructorInfo_t5769829 * L_3 = TypeExtensions_GetConstructor_m3445485358(NULL /*static, unused*/, L_0, L_1, NULL, L_2, NULL, /*hidden argument*/NULL);
return L_3;
}
}
// System.Reflection.ConstructorInfo Newtonsoft.Json.Utilities.TypeExtensions::GetConstructor(System.Type,Newtonsoft.Json.Utilities.BindingFlags,System.Object,System.Collections.Generic.IList`1<System.Type>,System.Object)
extern "C" ConstructorInfo_t5769829 * TypeExtensions_GetConstructor_m3445485358 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingFlags1, RuntimeObject * ___placeholder12, RuntimeObject* ___parameterTypes3, RuntimeObject * ___placeholder24, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetConstructor_m3445485358_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
int32_t L_1 = ___bindingFlags1;
RuntimeObject* L_2 = ___parameterTypes3;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_3 = TypeExtensions_GetConstructors_m1413194908(NULL /*static, unused*/, L_0, L_1, L_2, /*hidden argument*/NULL);
ConstructorInfo_t5769829 * L_4 = Enumerable_SingleOrDefault_TisConstructorInfo_t5769829_m1246530054(NULL /*static, unused*/, L_3, /*hidden argument*/Enumerable_SingleOrDefault_TisConstructorInfo_t5769829_m1246530054_RuntimeMethod_var);
return L_4;
}
}
// System.Reflection.MemberInfo[] Newtonsoft.Json.Utilities.TypeExtensions::GetMember(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" MemberInfoU5BU5D_t1302094432* TypeExtensions_GetMember_m3247939173 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___member1, int32_t ___bindingFlags2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetMember_m3247939173_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Nullable_1_t3738281181 V_0;
memset(&V_0, 0, sizeof(V_0));
{
Type_t * L_0 = ___type0;
String_t* L_1 = ___member1;
il2cpp_codegen_initobj((&V_0), sizeof(Nullable_1_t3738281181 ));
Nullable_1_t3738281181 L_2 = V_0;
int32_t L_3 = ___bindingFlags2;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
MemberInfoU5BU5D_t1302094432* L_4 = TypeExtensions_GetMemberInternal_m3246538528(NULL /*static, unused*/, L_0, L_1, L_2, L_3, /*hidden argument*/NULL);
return L_4;
}
}
// System.Reflection.MemberInfo[] Newtonsoft.Json.Utilities.TypeExtensions::GetMemberInternal(System.Type,System.String,System.Nullable`1<Newtonsoft.Json.Utilities.MemberTypes>,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" MemberInfoU5BU5D_t1302094432* TypeExtensions_GetMemberInternal_m3246538528 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___member1, Nullable_1_t3738281181 ___memberType2, int32_t ___bindingFlags3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetMemberInternal_m3246538528_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass35_0_t3498955080 * V_0 = NULL;
{
U3CU3Ec__DisplayClass35_0_t3498955080 * L_0 = (U3CU3Ec__DisplayClass35_0_t3498955080 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass35_0_t3498955080_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass35_0__ctor_m3919978295(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass35_0_t3498955080 * L_1 = V_0;
String_t* L_2 = ___member1;
NullCheck(L_1);
L_1->set_member_0(L_2);
U3CU3Ec__DisplayClass35_0_t3498955080 * L_3 = V_0;
Nullable_1_t3738281181 L_4 = ___memberType2;
NullCheck(L_3);
L_3->set_memberType_1(L_4);
U3CU3Ec__DisplayClass35_0_t3498955080 * L_5 = V_0;
int32_t L_6 = ___bindingFlags3;
NullCheck(L_5);
L_5->set_bindingFlags_2(L_6);
Type_t * L_7 = ___type0;
TypeInfo_t1690786683 * L_8 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_7, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_9 = TypeExtensions_GetMembersRecursive_m58266544(NULL /*static, unused*/, L_8, /*hidden argument*/NULL);
U3CU3Ec__DisplayClass35_0_t3498955080 * L_10 = V_0;
intptr_t L_11 = (intptr_t)U3CU3Ec__DisplayClass35_0_U3CGetMemberInternalU3Eb__0_m3802384112_RuntimeMethod_var;
Func_2_t2217434578 * L_12 = (Func_2_t2217434578 *)il2cpp_codegen_object_new(Func_2_t2217434578_il2cpp_TypeInfo_var);
Func_2__ctor_m2384193652(L_12, L_10, L_11, /*hidden argument*/Func_2__ctor_m2384193652_RuntimeMethod_var);
RuntimeObject* L_13 = Enumerable_Where_TisMemberInfo_t_m3084826832(NULL /*static, unused*/, L_9, L_12, /*hidden argument*/Enumerable_Where_TisMemberInfo_t_m3084826832_RuntimeMethod_var);
MemberInfoU5BU5D_t1302094432* L_14 = Enumerable_ToArray_TisMemberInfo_t_m3769393944(NULL /*static, unused*/, L_13, /*hidden argument*/Enumerable_ToArray_TisMemberInfo_t_m3769393944_RuntimeMethod_var);
return L_14;
}
}
// System.Reflection.MemberInfo Newtonsoft.Json.Utilities.TypeExtensions::GetField(System.Type,System.String)
extern "C" MemberInfo_t * TypeExtensions_GetField_m3452767802 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___member1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetField_m3452767802_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
String_t* L_1 = ___member1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_2 = ((TypeExtensions_t264900522_StaticFields*)il2cpp_codegen_static_fields_for(TypeExtensions_t264900522_il2cpp_TypeInfo_var))->get_DefaultFlags_0();
MemberInfo_t * L_3 = TypeExtensions_GetField_m1836811458(NULL /*static, unused*/, L_0, L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
// System.Reflection.MemberInfo Newtonsoft.Json.Utilities.TypeExtensions::GetField(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" MemberInfo_t * TypeExtensions_GetField_m1836811458 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___member1, int32_t ___bindingFlags2, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
String_t* L_2 = ___member1;
NullCheck(L_1);
FieldInfo_t * L_3 = VirtFuncInvoker1< FieldInfo_t *, String_t* >::Invoke(135 /* System.Reflection.FieldInfo System.Reflection.TypeInfo::GetDeclaredField(System.String) */, L_1, L_2);
return L_3;
}
}
// System.Collections.Generic.IEnumerable`1<System.Reflection.PropertyInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetProperties(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* TypeExtensions_GetProperties_m3775878448 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingFlags1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetProperties_m3775878448_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass38_0_t1924976968 * V_0 = NULL;
RuntimeObject* V_1 = NULL;
RuntimeObject* G_B3_0 = NULL;
{
U3CU3Ec__DisplayClass38_0_t1924976968 * L_0 = (U3CU3Ec__DisplayClass38_0_t1924976968 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass38_0_t1924976968_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass38_0__ctor_m902981182(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass38_0_t1924976968 * L_1 = V_0;
int32_t L_2 = ___bindingFlags1;
NullCheck(L_1);
L_1->set_bindingFlags_0(L_2);
U3CU3Ec__DisplayClass38_0_t1924976968 * L_3 = V_0;
NullCheck(L_3);
int32_t L_4 = L_3->get_bindingFlags_0();
int32_t L_5 = L_4;
RuntimeObject * L_6 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_5);
int32_t L_7 = ((int32_t)2);
RuntimeObject * L_8 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_7);
NullCheck((Enum_t4135868527 *)L_6);
bool L_9 = Enum_HasFlag_m2701493155((Enum_t4135868527 *)L_6, (Enum_t4135868527 *)L_8, /*hidden argument*/NULL);
if (L_9)
{
goto IL_0032;
}
}
{
Type_t * L_10 = ___type0;
TypeInfo_t1690786683 * L_11 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_10, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_12 = TypeExtensions_GetPropertiesRecursive_m150458260(NULL /*static, unused*/, L_11, /*hidden argument*/NULL);
G_B3_0 = L_12;
goto IL_0044;
}
IL_0032:
{
Type_t * L_13 = ___type0;
TypeInfo_t1690786683 * L_14 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_13, /*hidden argument*/NULL);
NullCheck(L_14);
RuntimeObject* L_15 = VirtFuncInvoker0< RuntimeObject* >::Invoke(142 /* System.Collections.Generic.IEnumerable`1<System.Reflection.PropertyInfo> System.Reflection.TypeInfo::get_DeclaredProperties() */, L_14);
List_1_t2159416693 * L_16 = Enumerable_ToList_TisPropertyInfo_t_m3139056877(NULL /*static, unused*/, L_15, /*hidden argument*/Enumerable_ToList_TisPropertyInfo_t_m3139056877_RuntimeMethod_var);
V_1 = (RuntimeObject*)L_16;
RuntimeObject* L_17 = V_1;
G_B3_0 = L_17;
}
IL_0044:
{
U3CU3Ec__DisplayClass38_0_t1924976968 * L_18 = V_0;
intptr_t L_19 = (intptr_t)U3CU3Ec__DisplayClass38_0_U3CGetPropertiesU3Eb__0_m604864516_RuntimeMethod_var;
Func_2_t2377163032 * L_20 = (Func_2_t2377163032 *)il2cpp_codegen_object_new(Func_2_t2377163032_il2cpp_TypeInfo_var);
Func_2__ctor_m3813751571(L_20, L_18, L_19, /*hidden argument*/Func_2__ctor_m3813751571_RuntimeMethod_var);
RuntimeObject* L_21 = Enumerable_Where_TisPropertyInfo_t_m3804523869(NULL /*static, unused*/, G_B3_0, L_20, /*hidden argument*/Enumerable_Where_TisPropertyInfo_t_m3804523869_RuntimeMethod_var);
return L_21;
}
}
// System.Collections.Generic.IList`1<System.Reflection.MemberInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetMembersRecursive(System.Reflection.TypeInfo)
extern "C" RuntimeObject* TypeExtensions_GetMembersRecursive_m58266544 (RuntimeObject * __this /* static, unused */, TypeInfo_t1690786683 * ___type0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetMembersRecursive_m58266544_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
TypeInfo_t1690786683 * V_0 = NULL;
RuntimeObject* V_1 = NULL;
RuntimeObject* V_2 = NULL;
U3CU3Ec__DisplayClass39_0_t4263629128 * V_3 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
TypeInfo_t1690786683 * G_B13_0 = NULL;
{
TypeInfo_t1690786683 * L_0 = ___type0;
V_0 = L_0;
List_1_t557109187 * L_1 = (List_1_t557109187 *)il2cpp_codegen_object_new(List_1_t557109187_il2cpp_TypeInfo_var);
List_1__ctor_m2845631487(L_1, /*hidden argument*/List_1__ctor_m2845631487_RuntimeMethod_var);
V_1 = (RuntimeObject*)L_1;
goto IL_0075;
}
IL_000a:
{
TypeInfo_t1690786683 * L_2 = V_0;
NullCheck(L_2);
RuntimeObject* L_3 = VirtFuncInvoker0< RuntimeObject* >::Invoke(140 /* System.Collections.Generic.IEnumerable`1<System.Reflection.MemberInfo> System.Reflection.TypeInfo::get_DeclaredMembers() */, L_2);
NullCheck(L_3);
RuntimeObject* L_4 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Reflection.MemberInfo>::GetEnumerator() */, IEnumerable_1_t2359854630_il2cpp_TypeInfo_var, L_3);
V_2 = L_4;
}
IL_0016:
try
{ // begin try (depth: 1)
{
goto IL_004a;
}
IL_0018:
{
U3CU3Ec__DisplayClass39_0_t4263629128 * L_5 = (U3CU3Ec__DisplayClass39_0_t4263629128 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass39_0_t4263629128_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass39_0__ctor_m3833518809(L_5, /*hidden argument*/NULL);
V_3 = L_5;
U3CU3Ec__DisplayClass39_0_t4263629128 * L_6 = V_3;
RuntimeObject* L_7 = V_2;
NullCheck(L_7);
MemberInfo_t * L_8 = InterfaceFuncInvoker0< MemberInfo_t * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Reflection.MemberInfo>::get_Current() */, IEnumerator_1_t3812572209_il2cpp_TypeInfo_var, L_7);
NullCheck(L_6);
L_6->set_member_0(L_8);
RuntimeObject* L_9 = V_1;
U3CU3Ec__DisplayClass39_0_t4263629128 * L_10 = V_3;
intptr_t L_11 = (intptr_t)U3CU3Ec__DisplayClass39_0_U3CGetMembersRecursiveU3Eb__0_m2056120950_RuntimeMethod_var;
Func_2_t2217434578 * L_12 = (Func_2_t2217434578 *)il2cpp_codegen_object_new(Func_2_t2217434578_il2cpp_TypeInfo_var);
Func_2__ctor_m2384193652(L_12, L_10, L_11, /*hidden argument*/Func_2__ctor_m2384193652_RuntimeMethod_var);
bool L_13 = Enumerable_Any_TisMemberInfo_t_m2467286160(NULL /*static, unused*/, L_9, L_12, /*hidden argument*/Enumerable_Any_TisMemberInfo_t_m2467286160_RuntimeMethod_var);
if (L_13)
{
goto IL_004a;
}
}
IL_003e:
{
RuntimeObject* L_14 = V_1;
U3CU3Ec__DisplayClass39_0_t4263629128 * L_15 = V_3;
NullCheck(L_15);
MemberInfo_t * L_16 = L_15->get_member_0();
NullCheck(L_14);
InterfaceActionInvoker1< MemberInfo_t * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Reflection.MemberInfo>::Add(!0) */, ICollection_1_t1913186679_il2cpp_TypeInfo_var, L_14, L_16);
}
IL_004a:
{
RuntimeObject* L_17 = V_2;
NullCheck(L_17);
bool L_18 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_17);
if (L_18)
{
goto IL_0018;
}
}
IL_0052:
{
IL2CPP_LEAVE(0x5E, FINALLY_0054);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0054;
}
FINALLY_0054:
{ // begin finally (depth: 1)
{
RuntimeObject* L_19 = V_2;
if (!L_19)
{
goto IL_005d;
}
}
IL_0057:
{
RuntimeObject* L_20 = V_2;
NullCheck(L_20);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_20);
}
IL_005d:
{
IL2CPP_END_FINALLY(84)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(84)
{
IL2CPP_JUMP_TBL(0x5E, IL_005e)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_005e:
{
TypeInfo_t1690786683 * L_21 = V_0;
NullCheck(L_21);
Type_t * L_22 = VirtFuncInvoker0< Type_t * >::Invoke(30 /* System.Type System.Reflection.TypeInfo::get_BaseType() */, L_21);
if (L_22)
{
goto IL_0069;
}
}
{
G_B13_0 = ((TypeInfo_t1690786683 *)(NULL));
goto IL_0074;
}
IL_0069:
{
TypeInfo_t1690786683 * L_23 = V_0;
NullCheck(L_23);
Type_t * L_24 = VirtFuncInvoker0< Type_t * >::Invoke(30 /* System.Type System.Reflection.TypeInfo::get_BaseType() */, L_23);
TypeInfo_t1690786683 * L_25 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_24, /*hidden argument*/NULL);
G_B13_0 = L_25;
}
IL_0074:
{
V_0 = G_B13_0;
}
IL_0075:
{
TypeInfo_t1690786683 * L_26 = V_0;
if (L_26)
{
goto IL_000a;
}
}
{
RuntimeObject* L_27 = V_1;
return L_27;
}
}
// System.Collections.Generic.IList`1<System.Reflection.PropertyInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetPropertiesRecursive(System.Reflection.TypeInfo)
extern "C" RuntimeObject* TypeExtensions_GetPropertiesRecursive_m150458260 (RuntimeObject * __this /* static, unused */, TypeInfo_t1690786683 * ___type0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetPropertiesRecursive_m150458260_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
TypeInfo_t1690786683 * V_0 = NULL;
RuntimeObject* V_1 = NULL;
RuntimeObject* V_2 = NULL;
U3CU3Ec__DisplayClass40_0_t798913399 * V_3 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
TypeInfo_t1690786683 * G_B13_0 = NULL;
{
TypeInfo_t1690786683 * L_0 = ___type0;
V_0 = L_0;
List_1_t2159416693 * L_1 = (List_1_t2159416693 *)il2cpp_codegen_object_new(List_1_t2159416693_il2cpp_TypeInfo_var);
List_1__ctor_m1816924367(L_1, /*hidden argument*/List_1__ctor_m1816924367_RuntimeMethod_var);
V_1 = (RuntimeObject*)L_1;
goto IL_0075;
}
IL_000a:
{
TypeInfo_t1690786683 * L_2 = V_0;
NullCheck(L_2);
RuntimeObject* L_3 = VirtFuncInvoker0< RuntimeObject* >::Invoke(142 /* System.Collections.Generic.IEnumerable`1<System.Reflection.PropertyInfo> System.Reflection.TypeInfo::get_DeclaredProperties() */, L_2);
NullCheck(L_3);
RuntimeObject* L_4 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Reflection.PropertyInfo>::GetEnumerator() */, IEnumerable_1_t3962162136_il2cpp_TypeInfo_var, L_3);
V_2 = L_4;
}
IL_0016:
try
{ // begin try (depth: 1)
{
goto IL_004a;
}
IL_0018:
{
U3CU3Ec__DisplayClass40_0_t798913399 * L_5 = (U3CU3Ec__DisplayClass40_0_t798913399 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass40_0_t798913399_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass40_0__ctor_m2465175745(L_5, /*hidden argument*/NULL);
V_3 = L_5;
U3CU3Ec__DisplayClass40_0_t798913399 * L_6 = V_3;
RuntimeObject* L_7 = V_2;
NullCheck(L_7);
PropertyInfo_t * L_8 = InterfaceFuncInvoker0< PropertyInfo_t * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Reflection.PropertyInfo>::get_Current() */, IEnumerator_1_t1119912419_il2cpp_TypeInfo_var, L_7);
NullCheck(L_6);
L_6->set_member_0(L_8);
RuntimeObject* L_9 = V_1;
U3CU3Ec__DisplayClass40_0_t798913399 * L_10 = V_3;
intptr_t L_11 = (intptr_t)U3CU3Ec__DisplayClass40_0_U3CGetPropertiesRecursiveU3Eb__0_m1637646411_RuntimeMethod_var;
Func_2_t2377163032 * L_12 = (Func_2_t2377163032 *)il2cpp_codegen_object_new(Func_2_t2377163032_il2cpp_TypeInfo_var);
Func_2__ctor_m3813751571(L_12, L_10, L_11, /*hidden argument*/Func_2__ctor_m3813751571_RuntimeMethod_var);
bool L_13 = Enumerable_Any_TisPropertyInfo_t_m1608260854(NULL /*static, unused*/, L_9, L_12, /*hidden argument*/Enumerable_Any_TisPropertyInfo_t_m1608260854_RuntimeMethod_var);
if (L_13)
{
goto IL_004a;
}
}
IL_003e:
{
RuntimeObject* L_14 = V_1;
U3CU3Ec__DisplayClass40_0_t798913399 * L_15 = V_3;
NullCheck(L_15);
PropertyInfo_t * L_16 = L_15->get_member_0();
NullCheck(L_14);
InterfaceActionInvoker1< PropertyInfo_t * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Reflection.PropertyInfo>::Add(!0) */, ICollection_1_t3515494185_il2cpp_TypeInfo_var, L_14, L_16);
}
IL_004a:
{
RuntimeObject* L_17 = V_2;
NullCheck(L_17);
bool L_18 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_17);
if (L_18)
{
goto IL_0018;
}
}
IL_0052:
{
IL2CPP_LEAVE(0x5E, FINALLY_0054);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0054;
}
FINALLY_0054:
{ // begin finally (depth: 1)
{
RuntimeObject* L_19 = V_2;
if (!L_19)
{
goto IL_005d;
}
}
IL_0057:
{
RuntimeObject* L_20 = V_2;
NullCheck(L_20);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_20);
}
IL_005d:
{
IL2CPP_END_FINALLY(84)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(84)
{
IL2CPP_JUMP_TBL(0x5E, IL_005e)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_005e:
{
TypeInfo_t1690786683 * L_21 = V_0;
NullCheck(L_21);
Type_t * L_22 = VirtFuncInvoker0< Type_t * >::Invoke(30 /* System.Type System.Reflection.TypeInfo::get_BaseType() */, L_21);
if (L_22)
{
goto IL_0069;
}
}
{
G_B13_0 = ((TypeInfo_t1690786683 *)(NULL));
goto IL_0074;
}
IL_0069:
{
TypeInfo_t1690786683 * L_23 = V_0;
NullCheck(L_23);
Type_t * L_24 = VirtFuncInvoker0< Type_t * >::Invoke(30 /* System.Type System.Reflection.TypeInfo::get_BaseType() */, L_23);
TypeInfo_t1690786683 * L_25 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_24, /*hidden argument*/NULL);
G_B13_0 = L_25;
}
IL_0074:
{
V_0 = G_B13_0;
}
IL_0075:
{
TypeInfo_t1690786683 * L_26 = V_0;
if (L_26)
{
goto IL_000a;
}
}
{
RuntimeObject* L_27 = V_1;
return L_27;
}
}
// System.Collections.Generic.IList`1<System.Reflection.FieldInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetFieldsRecursive(System.Reflection.TypeInfo)
extern "C" RuntimeObject* TypeExtensions_GetFieldsRecursive_m1294857259 (RuntimeObject * __this /* static, unused */, TypeInfo_t1690786683 * ___type0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetFieldsRecursive_m1294857259_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
TypeInfo_t1690786683 * V_0 = NULL;
RuntimeObject* V_1 = NULL;
RuntimeObject* V_2 = NULL;
U3CU3Ec__DisplayClass41_0_t3137565559 * V_3 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
TypeInfo_t1690786683 * G_B13_0 = NULL;
{
TypeInfo_t1690786683 * L_0 = ___type0;
V_0 = L_0;
List_1_t1358810031 * L_1 = (List_1_t1358810031 *)il2cpp_codegen_object_new(List_1_t1358810031_il2cpp_TypeInfo_var);
List_1__ctor_m1135576155(L_1, /*hidden argument*/List_1__ctor_m1135576155_RuntimeMethod_var);
V_1 = (RuntimeObject*)L_1;
goto IL_0075;
}
IL_000a:
{
TypeInfo_t1690786683 * L_2 = V_0;
NullCheck(L_2);
RuntimeObject* L_3 = VirtFuncInvoker0< RuntimeObject* >::Invoke(139 /* System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo> System.Reflection.TypeInfo::get_DeclaredFields() */, L_2);
NullCheck(L_3);
RuntimeObject* L_4 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo>::GetEnumerator() */, IEnumerable_1_t3161555474_il2cpp_TypeInfo_var, L_3);
V_2 = L_4;
}
IL_0016:
try
{ // begin try (depth: 1)
{
goto IL_004a;
}
IL_0018:
{
U3CU3Ec__DisplayClass41_0_t3137565559 * L_5 = (U3CU3Ec__DisplayClass41_0_t3137565559 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass41_0_t3137565559_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass41_0__ctor_m3070114544(L_5, /*hidden argument*/NULL);
V_3 = L_5;
U3CU3Ec__DisplayClass41_0_t3137565559 * L_6 = V_3;
RuntimeObject* L_7 = V_2;
NullCheck(L_7);
FieldInfo_t * L_8 = InterfaceFuncInvoker0< FieldInfo_t * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Reflection.FieldInfo>::get_Current() */, IEnumerator_1_t319305757_il2cpp_TypeInfo_var, L_7);
NullCheck(L_6);
L_6->set_member_0(L_8);
RuntimeObject* L_9 = V_1;
U3CU3Ec__DisplayClass41_0_t3137565559 * L_10 = V_3;
intptr_t L_11 = (intptr_t)U3CU3Ec__DisplayClass41_0_U3CGetFieldsRecursiveU3Eb__0_m1425895027_RuntimeMethod_var;
Func_2_t1761491126 * L_12 = (Func_2_t1761491126 *)il2cpp_codegen_object_new(Func_2_t1761491126_il2cpp_TypeInfo_var);
Func_2__ctor_m3933480653(L_12, L_10, L_11, /*hidden argument*/Func_2__ctor_m3933480653_RuntimeMethod_var);
bool L_13 = Enumerable_Any_TisFieldInfo_t_m3767954209(NULL /*static, unused*/, L_9, L_12, /*hidden argument*/Enumerable_Any_TisFieldInfo_t_m3767954209_RuntimeMethod_var);
if (L_13)
{
goto IL_004a;
}
}
IL_003e:
{
RuntimeObject* L_14 = V_1;
U3CU3Ec__DisplayClass41_0_t3137565559 * L_15 = V_3;
NullCheck(L_15);
FieldInfo_t * L_16 = L_15->get_member_0();
NullCheck(L_14);
InterfaceActionInvoker1< FieldInfo_t * >::Invoke(2 /* System.Void System.Collections.Generic.ICollection`1<System.Reflection.FieldInfo>::Add(!0) */, ICollection_1_t2714887523_il2cpp_TypeInfo_var, L_14, L_16);
}
IL_004a:
{
RuntimeObject* L_17 = V_2;
NullCheck(L_17);
bool L_18 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_17);
if (L_18)
{
goto IL_0018;
}
}
IL_0052:
{
IL2CPP_LEAVE(0x5E, FINALLY_0054);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0054;
}
FINALLY_0054:
{ // begin finally (depth: 1)
{
RuntimeObject* L_19 = V_2;
if (!L_19)
{
goto IL_005d;
}
}
IL_0057:
{
RuntimeObject* L_20 = V_2;
NullCheck(L_20);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_20);
}
IL_005d:
{
IL2CPP_END_FINALLY(84)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(84)
{
IL2CPP_JUMP_TBL(0x5E, IL_005e)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_005e:
{
TypeInfo_t1690786683 * L_21 = V_0;
NullCheck(L_21);
Type_t * L_22 = VirtFuncInvoker0< Type_t * >::Invoke(30 /* System.Type System.Reflection.TypeInfo::get_BaseType() */, L_21);
if (L_22)
{
goto IL_0069;
}
}
{
G_B13_0 = ((TypeInfo_t1690786683 *)(NULL));
goto IL_0074;
}
IL_0069:
{
TypeInfo_t1690786683 * L_23 = V_0;
NullCheck(L_23);
Type_t * L_24 = VirtFuncInvoker0< Type_t * >::Invoke(30 /* System.Type System.Reflection.TypeInfo::get_BaseType() */, L_23);
TypeInfo_t1690786683 * L_25 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_24, /*hidden argument*/NULL);
G_B13_0 = L_25;
}
IL_0074:
{
V_0 = G_B13_0;
}
IL_0075:
{
TypeInfo_t1690786683 * L_26 = V_0;
if (L_26)
{
goto IL_000a;
}
}
{
RuntimeObject* L_27 = V_1;
return L_27;
}
}
// System.Collections.Generic.IEnumerable`1<System.Reflection.MethodInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetMethods(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* TypeExtensions_GetMethods_m3209390533 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingFlags1, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
RuntimeObject* L_2 = VirtFuncInvoker0< RuntimeObject* >::Invoke(141 /* System.Collections.Generic.IEnumerable`1<System.Reflection.MethodInfo> System.Reflection.TypeInfo::get_DeclaredMethods() */, L_1);
return L_2;
}
}
// System.Reflection.PropertyInfo Newtonsoft.Json.Utilities.TypeExtensions::GetProperty(System.Type,System.String)
extern "C" PropertyInfo_t * TypeExtensions_GetProperty_m777828875 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetProperty_m777828875_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
String_t* L_1 = ___name1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_2 = ((TypeExtensions_t264900522_StaticFields*)il2cpp_codegen_static_fields_for(TypeExtensions_t264900522_il2cpp_TypeInfo_var))->get_DefaultFlags_0();
PropertyInfo_t * L_3 = TypeExtensions_GetProperty_m3913883510(NULL /*static, unused*/, L_0, L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
// System.Reflection.PropertyInfo Newtonsoft.Json.Utilities.TypeExtensions::GetProperty(System.Type,System.String,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" PropertyInfo_t * TypeExtensions_GetProperty_m3913883510 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___name1, int32_t ___bindingFlags2, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
String_t* L_2 = ___name1;
NullCheck(L_1);
PropertyInfo_t * L_3 = VirtFuncInvoker1< PropertyInfo_t *, String_t* >::Invoke(137 /* System.Reflection.PropertyInfo System.Reflection.TypeInfo::GetDeclaredProperty(System.String) */, L_1, L_2);
return L_3;
}
}
// System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetFields(System.Type)
extern "C" RuntimeObject* TypeExtensions_GetFields_m2718563494 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetFields_m2718563494_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Type_t * L_0 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_1 = ((TypeExtensions_t264900522_StaticFields*)il2cpp_codegen_static_fields_for(TypeExtensions_t264900522_il2cpp_TypeInfo_var))->get_DefaultFlags_0();
RuntimeObject* L_2 = TypeExtensions_GetFields_m1955241202(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/NULL);
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetFields(System.Type,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" RuntimeObject* TypeExtensions_GetFields_m1955241202 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, int32_t ___bindingFlags1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_GetFields_m1955241202_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass46_0_t1945924471 * V_0 = NULL;
RuntimeObject* V_1 = NULL;
RuntimeObject* G_B3_0 = NULL;
{
U3CU3Ec__DisplayClass46_0_t1945924471 * L_0 = (U3CU3Ec__DisplayClass46_0_t1945924471 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass46_0_t1945924471_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass46_0__ctor_m3136907396(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass46_0_t1945924471 * L_1 = V_0;
int32_t L_2 = ___bindingFlags1;
NullCheck(L_1);
L_1->set_bindingFlags_0(L_2);
U3CU3Ec__DisplayClass46_0_t1945924471 * L_3 = V_0;
NullCheck(L_3);
int32_t L_4 = L_3->get_bindingFlags_0();
int32_t L_5 = L_4;
RuntimeObject * L_6 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_5);
int32_t L_7 = ((int32_t)2);
RuntimeObject * L_8 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_7);
NullCheck((Enum_t4135868527 *)L_6);
bool L_9 = Enum_HasFlag_m2701493155((Enum_t4135868527 *)L_6, (Enum_t4135868527 *)L_8, /*hidden argument*/NULL);
if (L_9)
{
goto IL_0032;
}
}
{
Type_t * L_10 = ___type0;
TypeInfo_t1690786683 * L_11 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_10, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_12 = TypeExtensions_GetFieldsRecursive_m1294857259(NULL /*static, unused*/, L_11, /*hidden argument*/NULL);
G_B3_0 = L_12;
goto IL_0044;
}
IL_0032:
{
Type_t * L_13 = ___type0;
TypeInfo_t1690786683 * L_14 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_13, /*hidden argument*/NULL);
NullCheck(L_14);
RuntimeObject* L_15 = VirtFuncInvoker0< RuntimeObject* >::Invoke(139 /* System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo> System.Reflection.TypeInfo::get_DeclaredFields() */, L_14);
List_1_t1358810031 * L_16 = Enumerable_ToList_TisFieldInfo_t_m1621873405(NULL /*static, unused*/, L_15, /*hidden argument*/Enumerable_ToList_TisFieldInfo_t_m1621873405_RuntimeMethod_var);
V_1 = (RuntimeObject*)L_16;
RuntimeObject* L_17 = V_1;
G_B3_0 = L_17;
}
IL_0044:
{
U3CU3Ec__DisplayClass46_0_t1945924471 * L_18 = V_0;
intptr_t L_19 = (intptr_t)U3CU3Ec__DisplayClass46_0_U3CGetFieldsU3Eb__0_m154848375_RuntimeMethod_var;
Func_2_t1761491126 * L_20 = (Func_2_t1761491126 *)il2cpp_codegen_object_new(Func_2_t1761491126_il2cpp_TypeInfo_var);
Func_2__ctor_m3933480653(L_20, L_18, L_19, /*hidden argument*/Func_2__ctor_m3933480653_RuntimeMethod_var);
RuntimeObject* L_21 = Enumerable_Where_TisFieldInfo_t_m2487357973(NULL /*static, unused*/, G_B3_0, L_20, /*hidden argument*/Enumerable_Where_TisFieldInfo_t_m2487357973_RuntimeMethod_var);
List_1_t1358810031 * L_22 = Enumerable_ToList_TisFieldInfo_t_m1621873405(NULL /*static, unused*/, L_21, /*hidden argument*/Enumerable_ToList_TisFieldInfo_t_m1621873405_RuntimeMethod_var);
return L_22;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::TestAccessibility(System.Reflection.PropertyInfo,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" bool TypeExtensions_TestAccessibility_m3826617455 (RuntimeObject * __this /* static, unused */, PropertyInfo_t * ___member0, int32_t ___bindingFlags1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_TestAccessibility_m3826617455_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
PropertyInfo_t * L_0 = ___member0;
NullCheck(L_0);
MethodInfo_t * L_1 = VirtFuncInvoker0< MethodInfo_t * >::Invoke(19 /* System.Reflection.MethodInfo System.Reflection.PropertyInfo::get_GetMethod() */, L_0);
if (!L_1)
{
goto IL_0018;
}
}
{
PropertyInfo_t * L_2 = ___member0;
NullCheck(L_2);
MethodInfo_t * L_3 = VirtFuncInvoker0< MethodInfo_t * >::Invoke(19 /* System.Reflection.MethodInfo System.Reflection.PropertyInfo::get_GetMethod() */, L_2);
int32_t L_4 = ___bindingFlags1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_5 = TypeExtensions_TestAccessibility_m3276524655(NULL /*static, unused*/, L_3, L_4, /*hidden argument*/NULL);
if (!L_5)
{
goto IL_0018;
}
}
{
return (bool)1;
}
IL_0018:
{
PropertyInfo_t * L_6 = ___member0;
NullCheck(L_6);
MethodInfo_t * L_7 = VirtFuncInvoker0< MethodInfo_t * >::Invoke(20 /* System.Reflection.MethodInfo System.Reflection.PropertyInfo::get_SetMethod() */, L_6);
if (!L_7)
{
goto IL_0030;
}
}
{
PropertyInfo_t * L_8 = ___member0;
NullCheck(L_8);
MethodInfo_t * L_9 = VirtFuncInvoker0< MethodInfo_t * >::Invoke(20 /* System.Reflection.MethodInfo System.Reflection.PropertyInfo::get_SetMethod() */, L_8);
int32_t L_10 = ___bindingFlags1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_11 = TypeExtensions_TestAccessibility_m3276524655(NULL /*static, unused*/, L_9, L_10, /*hidden argument*/NULL);
if (!L_11)
{
goto IL_0030;
}
}
{
return (bool)1;
}
IL_0030:
{
return (bool)0;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::TestAccessibility(System.Reflection.MemberInfo,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" bool TypeExtensions_TestAccessibility_m1650814028 (RuntimeObject * __this /* static, unused */, MemberInfo_t * ___member0, int32_t ___bindingFlags1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_TestAccessibility_m1650814028_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
MemberInfo_t * L_0 = ___member0;
if (!((FieldInfo_t *)IsInstClass((RuntimeObject*)L_0, FieldInfo_t_il2cpp_TypeInfo_var)))
{
goto IL_0015;
}
}
{
MemberInfo_t * L_1 = ___member0;
int32_t L_2 = ___bindingFlags1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_3 = TypeExtensions_TestAccessibility_m1649658994(NULL /*static, unused*/, ((FieldInfo_t *)CastclassClass((RuntimeObject*)L_1, FieldInfo_t_il2cpp_TypeInfo_var)), L_2, /*hidden argument*/NULL);
return L_3;
}
IL_0015:
{
MemberInfo_t * L_4 = ___member0;
if (!((MethodBase_t *)IsInstClass((RuntimeObject*)L_4, MethodBase_t_il2cpp_TypeInfo_var)))
{
goto IL_002a;
}
}
{
MemberInfo_t * L_5 = ___member0;
int32_t L_6 = ___bindingFlags1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_7 = TypeExtensions_TestAccessibility_m3276524655(NULL /*static, unused*/, ((MethodBase_t *)CastclassClass((RuntimeObject*)L_5, MethodBase_t_il2cpp_TypeInfo_var)), L_6, /*hidden argument*/NULL);
return L_7;
}
IL_002a:
{
MemberInfo_t * L_8 = ___member0;
if (!((PropertyInfo_t *)IsInstClass((RuntimeObject*)L_8, PropertyInfo_t_il2cpp_TypeInfo_var)))
{
goto IL_003f;
}
}
{
MemberInfo_t * L_9 = ___member0;
int32_t L_10 = ___bindingFlags1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_11 = TypeExtensions_TestAccessibility_m3826617455(NULL /*static, unused*/, ((PropertyInfo_t *)CastclassClass((RuntimeObject*)L_9, PropertyInfo_t_il2cpp_TypeInfo_var)), L_10, /*hidden argument*/NULL);
return L_11;
}
IL_003f:
{
Exception_t * L_12 = (Exception_t *)il2cpp_codegen_object_new(Exception_t_il2cpp_TypeInfo_var);
Exception__ctor_m1152696503(L_12, _stringLiteral3915385281, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, TypeExtensions_TestAccessibility_m1650814028_RuntimeMethod_var);
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::TestAccessibility(System.Reflection.FieldInfo,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" bool TypeExtensions_TestAccessibility_m1649658994 (RuntimeObject * __this /* static, unused */, FieldInfo_t * ___member0, int32_t ___bindingFlags1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_TestAccessibility_m1649658994_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
int32_t G_B6_0 = 0;
int32_t G_B8_0 = 0;
int32_t G_B7_0 = 0;
int32_t G_B11_0 = 0;
int32_t G_B10_0 = 0;
int32_t G_B9_0 = 0;
int32_t G_B12_0 = 0;
int32_t G_B12_1 = 0;
{
FieldInfo_t * L_0 = ___member0;
NullCheck(L_0);
bool L_1 = FieldInfo_get_IsPublic_m3378038140(L_0, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_001c;
}
}
{
int32_t L_2 = ___bindingFlags1;
int32_t L_3 = L_2;
RuntimeObject * L_4 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_3);
int32_t L_5 = ((int32_t)((int32_t)16));
RuntimeObject * L_6 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_5);
NullCheck((Enum_t4135868527 *)L_4);
bool L_7 = Enum_HasFlag_m2701493155((Enum_t4135868527 *)L_4, (Enum_t4135868527 *)L_6, /*hidden argument*/NULL);
if (L_7)
{
goto IL_003b;
}
}
IL_001c:
{
FieldInfo_t * L_8 = ___member0;
NullCheck(L_8);
bool L_9 = FieldInfo_get_IsPublic_m3378038140(L_8, /*hidden argument*/NULL);
if (L_9)
{
goto IL_0038;
}
}
{
int32_t L_10 = ___bindingFlags1;
int32_t L_11 = L_10;
RuntimeObject * L_12 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_11);
int32_t L_13 = ((int32_t)((int32_t)32));
RuntimeObject * L_14 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_13);
NullCheck((Enum_t4135868527 *)L_12);
bool L_15 = Enum_HasFlag_m2701493155((Enum_t4135868527 *)L_12, (Enum_t4135868527 *)L_14, /*hidden argument*/NULL);
G_B6_0 = ((int32_t)(L_15));
goto IL_003c;
}
IL_0038:
{
G_B6_0 = 0;
goto IL_003c;
}
IL_003b:
{
G_B6_0 = 1;
}
IL_003c:
{
FieldInfo_t * L_16 = ___member0;
NullCheck(L_16);
bool L_17 = FieldInfo_get_IsStatic_m3482711189(L_16, /*hidden argument*/NULL);
G_B7_0 = G_B6_0;
if (!L_17)
{
G_B8_0 = G_B6_0;
goto IL_0057;
}
}
{
int32_t L_18 = ___bindingFlags1;
int32_t L_19 = L_18;
RuntimeObject * L_20 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_19);
int32_t L_21 = ((int32_t)8);
RuntimeObject * L_22 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_21);
NullCheck((Enum_t4135868527 *)L_20);
bool L_23 = Enum_HasFlag_m2701493155((Enum_t4135868527 *)L_20, (Enum_t4135868527 *)L_22, /*hidden argument*/NULL);
G_B8_0 = G_B7_0;
if (L_23)
{
G_B11_0 = G_B7_0;
goto IL_0075;
}
}
IL_0057:
{
FieldInfo_t * L_24 = ___member0;
NullCheck(L_24);
bool L_25 = FieldInfo_get_IsStatic_m3482711189(L_24, /*hidden argument*/NULL);
G_B9_0 = G_B8_0;
if (L_25)
{
G_B10_0 = G_B8_0;
goto IL_0072;
}
}
{
int32_t L_26 = ___bindingFlags1;
int32_t L_27 = L_26;
RuntimeObject * L_28 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_27);
int32_t L_29 = ((int32_t)4);
RuntimeObject * L_30 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_29);
NullCheck((Enum_t4135868527 *)L_28);
bool L_31 = Enum_HasFlag_m2701493155((Enum_t4135868527 *)L_28, (Enum_t4135868527 *)L_30, /*hidden argument*/NULL);
G_B12_0 = ((int32_t)(L_31));
G_B12_1 = G_B9_0;
goto IL_0076;
}
IL_0072:
{
G_B12_0 = 0;
G_B12_1 = G_B10_0;
goto IL_0076;
}
IL_0075:
{
G_B12_0 = 1;
G_B12_1 = G_B11_0;
}
IL_0076:
{
V_0 = (bool)G_B12_0;
bool L_32 = V_0;
return (bool)((int32_t)((int32_t)G_B12_1&(int32_t)L_32));
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::TestAccessibility(System.Reflection.MethodBase,Newtonsoft.Json.Utilities.BindingFlags)
extern "C" bool TypeExtensions_TestAccessibility_m3276524655 (RuntimeObject * __this /* static, unused */, MethodBase_t * ___member0, int32_t ___bindingFlags1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_TestAccessibility_m3276524655_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
int32_t G_B6_0 = 0;
int32_t G_B8_0 = 0;
int32_t G_B7_0 = 0;
int32_t G_B11_0 = 0;
int32_t G_B10_0 = 0;
int32_t G_B9_0 = 0;
int32_t G_B12_0 = 0;
int32_t G_B12_1 = 0;
{
MethodBase_t * L_0 = ___member0;
NullCheck(L_0);
bool L_1 = MethodBase_get_IsPublic_m2180846589(L_0, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_001c;
}
}
{
int32_t L_2 = ___bindingFlags1;
int32_t L_3 = L_2;
RuntimeObject * L_4 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_3);
int32_t L_5 = ((int32_t)((int32_t)16));
RuntimeObject * L_6 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_5);
NullCheck((Enum_t4135868527 *)L_4);
bool L_7 = Enum_HasFlag_m2701493155((Enum_t4135868527 *)L_4, (Enum_t4135868527 *)L_6, /*hidden argument*/NULL);
if (L_7)
{
goto IL_003b;
}
}
IL_001c:
{
MethodBase_t * L_8 = ___member0;
NullCheck(L_8);
bool L_9 = MethodBase_get_IsPublic_m2180846589(L_8, /*hidden argument*/NULL);
if (L_9)
{
goto IL_0038;
}
}
{
int32_t L_10 = ___bindingFlags1;
int32_t L_11 = L_10;
RuntimeObject * L_12 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_11);
int32_t L_13 = ((int32_t)((int32_t)32));
RuntimeObject * L_14 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_13);
NullCheck((Enum_t4135868527 *)L_12);
bool L_15 = Enum_HasFlag_m2701493155((Enum_t4135868527 *)L_12, (Enum_t4135868527 *)L_14, /*hidden argument*/NULL);
G_B6_0 = ((int32_t)(L_15));
goto IL_003c;
}
IL_0038:
{
G_B6_0 = 0;
goto IL_003c;
}
IL_003b:
{
G_B6_0 = 1;
}
IL_003c:
{
MethodBase_t * L_16 = ___member0;
NullCheck(L_16);
bool L_17 = MethodBase_get_IsStatic_m2399864271(L_16, /*hidden argument*/NULL);
G_B7_0 = G_B6_0;
if (!L_17)
{
G_B8_0 = G_B6_0;
goto IL_0057;
}
}
{
int32_t L_18 = ___bindingFlags1;
int32_t L_19 = L_18;
RuntimeObject * L_20 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_19);
int32_t L_21 = ((int32_t)8);
RuntimeObject * L_22 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_21);
NullCheck((Enum_t4135868527 *)L_20);
bool L_23 = Enum_HasFlag_m2701493155((Enum_t4135868527 *)L_20, (Enum_t4135868527 *)L_22, /*hidden argument*/NULL);
G_B8_0 = G_B7_0;
if (L_23)
{
G_B11_0 = G_B7_0;
goto IL_0075;
}
}
IL_0057:
{
MethodBase_t * L_24 = ___member0;
NullCheck(L_24);
bool L_25 = MethodBase_get_IsStatic_m2399864271(L_24, /*hidden argument*/NULL);
G_B9_0 = G_B8_0;
if (L_25)
{
G_B10_0 = G_B8_0;
goto IL_0072;
}
}
{
int32_t L_26 = ___bindingFlags1;
int32_t L_27 = L_26;
RuntimeObject * L_28 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_27);
int32_t L_29 = ((int32_t)4);
RuntimeObject * L_30 = Box(BindingFlags_t3509784737_il2cpp_TypeInfo_var, &L_29);
NullCheck((Enum_t4135868527 *)L_28);
bool L_31 = Enum_HasFlag_m2701493155((Enum_t4135868527 *)L_28, (Enum_t4135868527 *)L_30, /*hidden argument*/NULL);
G_B12_0 = ((int32_t)(L_31));
G_B12_1 = G_B9_0;
goto IL_0076;
}
IL_0072:
{
G_B12_0 = 0;
G_B12_1 = G_B10_0;
goto IL_0076;
}
IL_0075:
{
G_B12_0 = 1;
G_B12_1 = G_B11_0;
}
IL_0076:
{
V_0 = (bool)G_B12_0;
bool L_32 = V_0;
return (bool)((int32_t)((int32_t)G_B12_1&(int32_t)L_32));
}
}
// System.Type[] Newtonsoft.Json.Utilities.TypeExtensions::GetGenericArguments(System.Type)
extern "C" TypeU5BU5D_t3940880105* TypeExtensions_GetGenericArguments_m2598944752 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
TypeU5BU5D_t3940880105* L_2 = VirtFuncInvoker0< TypeU5BU5D_t3940880105* >::Invoke(109 /* System.Type[] System.Reflection.TypeInfo::get_GenericTypeArguments() */, L_1);
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<System.Type> Newtonsoft.Json.Utilities.TypeExtensions::GetInterfaces(System.Type)
extern "C" RuntimeObject* TypeExtensions_GetInterfaces_m3246501328 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
RuntimeObject* L_2 = VirtFuncInvoker0< RuntimeObject* >::Invoke(143 /* System.Collections.Generic.IEnumerable`1<System.Type> System.Reflection.TypeInfo::get_ImplementedInterfaces() */, L_1);
return L_2;
}
}
// System.Collections.Generic.IEnumerable`1<System.Reflection.MethodInfo> Newtonsoft.Json.Utilities.TypeExtensions::GetMethods(System.Type)
extern "C" RuntimeObject* TypeExtensions_GetMethods_m2399217383 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
RuntimeObject* L_2 = VirtFuncInvoker0< RuntimeObject* >::Invoke(141 /* System.Collections.Generic.IEnumerable`1<System.Reflection.MethodInfo> System.Reflection.TypeInfo::get_DeclaredMethods() */, L_1);
return L_2;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsAbstract(System.Type)
extern "C" bool TypeExtensions_IsAbstract_m723195064 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_2 = Type_get_IsAbstract_m1120089130(L_1, /*hidden argument*/NULL);
return L_2;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::IsValueType(System.Type)
extern "C" bool TypeExtensions_IsValueType_m852671066 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, const RuntimeMethod* method)
{
{
Type_t * L_0 = ___type0;
TypeInfo_t1690786683 * L_1 = IntrospectionExtensions_GetTypeInfo_m2857548047(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_2 = Type_get_IsValueType_m3108065642(L_1, /*hidden argument*/NULL);
return L_2;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::AssignableToTypeName(System.Type,System.String,System.Type&)
extern "C" bool TypeExtensions_AssignableToTypeName_m503478083 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, String_t* ___fullTypeName1, Type_t ** ___match2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_AssignableToTypeName_m503478083_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Type_t * V_0 = NULL;
RuntimeObject* V_1 = NULL;
bool V_2 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
Type_t * L_0 = ___type0;
V_0 = L_0;
goto IL_001f;
}
IL_0004:
{
Type_t * L_1 = V_0;
NullCheck(L_1);
String_t* L_2 = VirtFuncInvoker0< String_t* >::Invoke(26 /* System.String System.Type::get_FullName() */, L_1);
String_t* L_3 = ___fullTypeName1;
bool L_4 = String_Equals_m2359609904(NULL /*static, unused*/, L_2, L_3, 4, /*hidden argument*/NULL);
if (!L_4)
{
goto IL_0018;
}
}
{
Type_t ** L_5 = ___match2;
Type_t * L_6 = V_0;
*((RuntimeObject **)(L_5)) = (RuntimeObject *)L_6;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_5), (RuntimeObject *)L_6);
return (bool)1;
}
IL_0018:
{
Type_t * L_7 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
Type_t * L_8 = TypeExtensions_BaseType_m1084285535(NULL /*static, unused*/, L_7, /*hidden argument*/NULL);
V_0 = L_8;
}
IL_001f:
{
Type_t * L_9 = V_0;
if (L_9)
{
goto IL_0004;
}
}
{
Type_t * L_10 = ___type0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_11 = TypeExtensions_GetInterfaces_m3246501328(NULL /*static, unused*/, L_10, /*hidden argument*/NULL);
NullCheck(L_11);
RuntimeObject* L_12 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Type>::GetEnumerator() */, IEnumerable_1_t1463797649_il2cpp_TypeInfo_var, L_11);
V_1 = L_12;
}
IL_002e:
try
{ // begin try (depth: 1)
{
goto IL_004b;
}
IL_0030:
{
RuntimeObject* L_13 = V_1;
NullCheck(L_13);
Type_t * L_14 = InterfaceFuncInvoker0< Type_t * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Type>::get_Current() */, IEnumerator_1_t2916515228_il2cpp_TypeInfo_var, L_13);
NullCheck(L_14);
String_t* L_15 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Type::get_Name() */, L_14);
String_t* L_16 = ___fullTypeName1;
bool L_17 = String_Equals_m2359609904(NULL /*static, unused*/, L_15, L_16, 4, /*hidden argument*/NULL);
if (!L_17)
{
goto IL_004b;
}
}
IL_0044:
{
Type_t ** L_18 = ___match2;
Type_t * L_19 = ___type0;
*((RuntimeObject **)(L_18)) = (RuntimeObject *)L_19;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_18), (RuntimeObject *)L_19);
V_2 = (bool)1;
IL2CPP_LEAVE(0x64, FINALLY_0055);
}
IL_004b:
{
RuntimeObject* L_20 = V_1;
NullCheck(L_20);
bool L_21 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_20);
if (L_21)
{
goto IL_0030;
}
}
IL_0053:
{
IL2CPP_LEAVE(0x5F, FINALLY_0055);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0055;
}
FINALLY_0055:
{ // begin finally (depth: 1)
{
RuntimeObject* L_22 = V_1;
if (!L_22)
{
goto IL_005e;
}
}
IL_0058:
{
RuntimeObject* L_23 = V_1;
NullCheck(L_23);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_23);
}
IL_005e:
{
IL2CPP_END_FINALLY(85)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(85)
{
IL2CPP_JUMP_TBL(0x64, IL_0064)
IL2CPP_JUMP_TBL(0x5F, IL_005f)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_005f:
{
Type_t ** L_24 = ___match2;
*((RuntimeObject **)(L_24)) = (RuntimeObject *)NULL;
Il2CppCodeGenWriteBarrier((RuntimeObject **)(L_24), (RuntimeObject *)NULL);
return (bool)0;
}
IL_0064:
{
bool L_25 = V_2;
return L_25;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions::ImplementInterface(System.Type,System.Type)
extern "C" bool TypeExtensions_ImplementInterface_m4199275556 (RuntimeObject * __this /* static, unused */, Type_t * ___type0, Type_t * ___interfaceType1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions_ImplementInterface_m4199275556_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Type_t * V_0 = NULL;
RuntimeObject* V_1 = NULL;
Type_t * V_2 = NULL;
bool V_3 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
Type_t * L_0 = ___type0;
V_0 = L_0;
goto IL_0048;
}
IL_0004:
{
Type_t * L_1 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
RuntimeObject* L_2 = TypeExtensions_GetInterfaces_m3246501328(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
NullCheck(L_2);
RuntimeObject* L_3 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<!0> System.Collections.Generic.IEnumerable`1<System.Type>::GetEnumerator() */, IEnumerable_1_t1463797649_il2cpp_TypeInfo_var, L_2);
V_1 = L_3;
}
IL_0010:
try
{ // begin try (depth: 1)
{
goto IL_002d;
}
IL_0012:
{
RuntimeObject* L_4 = V_1;
NullCheck(L_4);
Type_t * L_5 = InterfaceFuncInvoker0< Type_t * >::Invoke(0 /* !0 System.Collections.Generic.IEnumerator`1<System.Type>::get_Current() */, IEnumerator_1_t2916515228_il2cpp_TypeInfo_var, L_4);
V_2 = L_5;
Type_t * L_6 = V_2;
Type_t * L_7 = ___interfaceType1;
if ((((RuntimeObject*)(Type_t *)L_6) == ((RuntimeObject*)(Type_t *)L_7)))
{
goto IL_0029;
}
}
IL_001d:
{
Type_t * L_8 = V_2;
if (!L_8)
{
goto IL_002d;
}
}
IL_0020:
{
Type_t * L_9 = V_2;
Type_t * L_10 = ___interfaceType1;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_11 = TypeExtensions_ImplementInterface_m4199275556(NULL /*static, unused*/, L_9, L_10, /*hidden argument*/NULL);
if (!L_11)
{
goto IL_002d;
}
}
IL_0029:
{
V_3 = (bool)1;
IL2CPP_LEAVE(0x4D, FINALLY_0037);
}
IL_002d:
{
RuntimeObject* L_12 = V_1;
NullCheck(L_12);
bool L_13 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_12);
if (L_13)
{
goto IL_0012;
}
}
IL_0035:
{
IL2CPP_LEAVE(0x41, FINALLY_0037);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0037;
}
FINALLY_0037:
{ // begin finally (depth: 1)
{
RuntimeObject* L_14 = V_1;
if (!L_14)
{
goto IL_0040;
}
}
IL_003a:
{
RuntimeObject* L_15 = V_1;
NullCheck(L_15);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_15);
}
IL_0040:
{
IL2CPP_END_FINALLY(55)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(55)
{
IL2CPP_JUMP_TBL(0x4D, IL_004d)
IL2CPP_JUMP_TBL(0x41, IL_0041)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0041:
{
Type_t * L_16 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
Type_t * L_17 = TypeExtensions_BaseType_m1084285535(NULL /*static, unused*/, L_16, /*hidden argument*/NULL);
V_0 = L_17;
}
IL_0048:
{
Type_t * L_18 = V_0;
if (L_18)
{
goto IL_0004;
}
}
{
return (bool)0;
}
IL_004d:
{
bool L_19 = V_3;
return L_19;
}
}
// System.Void Newtonsoft.Json.Utilities.TypeExtensions::.cctor()
extern "C" void TypeExtensions__cctor_m162231158 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TypeExtensions__cctor_m162231158_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
((TypeExtensions_t264900522_StaticFields*)il2cpp_codegen_static_fields_for(TypeExtensions_t264900522_il2cpp_TypeInfo_var))->set_DefaultFlags_0(((int32_t)28));
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c::.cctor()
extern "C" void U3CU3Ec__cctor_m2712130729 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__cctor_m2712130729_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
U3CU3Ec_t3984375077 * L_0 = (U3CU3Ec_t3984375077 *)il2cpp_codegen_object_new(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var);
U3CU3Ec__ctor_m160029176(L_0, /*hidden argument*/NULL);
((U3CU3Ec_t3984375077_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var))->set_U3CU3E9_0(L_0);
return;
}
}
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c::.ctor()
extern "C" void U3CU3Ec__ctor_m160029176 (U3CU3Ec_t3984375077 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Type Newtonsoft.Json.Utilities.TypeExtensions/<>c::<GetProperty>b__19_1(System.Reflection.ParameterInfo)
extern "C" Type_t * U3CU3Ec_U3CGetPropertyU3Eb__19_1_m3919702162 (U3CU3Ec_t3984375077 * __this, ParameterInfo_t1861056598 * ___ip0, const RuntimeMethod* method)
{
{
ParameterInfo_t1861056598 * L_0 = ___ip0;
NullCheck(L_0);
Type_t * L_1 = VirtFuncInvoker0< Type_t * >::Invoke(7 /* System.Type System.Reflection.ParameterInfo::get_ParameterType() */, L_0);
return L_1;
}
}
// System.Type Newtonsoft.Json.Utilities.TypeExtensions/<>c::<GetMethod>b__27_1(System.Reflection.ParameterInfo)
extern "C" Type_t * U3CU3Ec_U3CGetMethodU3Eb__27_1_m2544709825 (U3CU3Ec_t3984375077 * __this, ParameterInfo_t1861056598 * ___p0, const RuntimeMethod* method)
{
{
ParameterInfo_t1861056598 * L_0 = ___p0;
NullCheck(L_0);
Type_t * L_1 = VirtFuncInvoker0< Type_t * >::Invoke(7 /* System.Type System.Reflection.ParameterInfo::get_ParameterType() */, L_0);
return L_1;
}
}
// System.Type Newtonsoft.Json.Utilities.TypeExtensions/<>c::<GetConstructors>b__30_1(System.Reflection.ParameterInfo)
extern "C" Type_t * U3CU3Ec_U3CGetConstructorsU3Eb__30_1_m1576061797 (U3CU3Ec_t3984375077 * __this, ParameterInfo_t1861056598 * ___p0, const RuntimeMethod* method)
{
{
ParameterInfo_t1861056598 * L_0 = ___p0;
NullCheck(L_0);
Type_t * L_1 = VirtFuncInvoker0< Type_t * >::Invoke(7 /* System.Type System.Reflection.ParameterInfo::get_ParameterType() */, L_0);
return L_1;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass19_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass19_0__ctor_m1547535707 (U3CU3Ec__DisplayClass19_0_t1131461246 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass19_0::<GetProperty>b__0(System.Reflection.PropertyInfo)
extern "C" bool U3CU3Ec__DisplayClass19_0_U3CGetPropertyU3Eb__0_m1618760806 (U3CU3Ec__DisplayClass19_0_t1131461246 * __this, PropertyInfo_t * ___p0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass19_0_U3CGetPropertyU3Eb__0_m1618760806_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Func_2_t3692615456 * G_B9_0 = NULL;
ParameterInfoU5BU5D_t390618515* G_B9_1 = NULL;
Func_2_t3692615456 * G_B8_0 = NULL;
ParameterInfoU5BU5D_t390618515* G_B8_1 = NULL;
{
String_t* L_0 = __this->get_name_0();
if (!L_0)
{
goto IL_001d;
}
}
{
String_t* L_1 = __this->get_name_0();
PropertyInfo_t * L_2 = ___p0;
NullCheck(L_2);
String_t* L_3 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_2);
bool L_4 = String_op_Inequality_m215368492(NULL /*static, unused*/, L_1, L_3, /*hidden argument*/NULL);
if (!L_4)
{
goto IL_001d;
}
}
{
return (bool)0;
}
IL_001d:
{
Type_t * L_5 = __this->get_propertyType_1();
if (!L_5)
{
goto IL_0035;
}
}
{
Type_t * L_6 = __this->get_propertyType_1();
PropertyInfo_t * L_7 = ___p0;
NullCheck(L_7);
Type_t * L_8 = VirtFuncInvoker0< Type_t * >::Invoke(21 /* System.Type System.Reflection.PropertyInfo::get_PropertyType() */, L_7);
if ((((RuntimeObject*)(Type_t *)L_6) == ((RuntimeObject*)(Type_t *)L_8)))
{
goto IL_0035;
}
}
{
return (bool)0;
}
IL_0035:
{
RuntimeObject* L_9 = __this->get_indexParameters_2();
if (!L_9)
{
goto IL_0076;
}
}
{
PropertyInfo_t * L_10 = ___p0;
NullCheck(L_10);
ParameterInfoU5BU5D_t390618515* L_11 = VirtFuncInvoker0< ParameterInfoU5BU5D_t390618515* >::Invoke(25 /* System.Reflection.ParameterInfo[] System.Reflection.PropertyInfo::GetIndexParameters() */, L_10);
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var);
Func_2_t3692615456 * L_12 = ((U3CU3Ec_t3984375077_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var))->get_U3CU3E9__19_1_1();
Func_2_t3692615456 * L_13 = L_12;
G_B8_0 = L_13;
G_B8_1 = L_11;
if (L_13)
{
G_B9_0 = L_13;
G_B9_1 = L_11;
goto IL_0062;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var);
U3CU3Ec_t3984375077 * L_14 = ((U3CU3Ec_t3984375077_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var))->get_U3CU3E9_0();
intptr_t L_15 = (intptr_t)U3CU3Ec_U3CGetPropertyU3Eb__19_1_m3919702162_RuntimeMethod_var;
Func_2_t3692615456 * L_16 = (Func_2_t3692615456 *)il2cpp_codegen_object_new(Func_2_t3692615456_il2cpp_TypeInfo_var);
Func_2__ctor_m249082317(L_16, L_14, L_15, /*hidden argument*/Func_2__ctor_m249082317_RuntimeMethod_var);
Func_2_t3692615456 * L_17 = L_16;
((U3CU3Ec_t3984375077_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var))->set_U3CU3E9__19_1_1(L_17);
G_B9_0 = L_17;
G_B9_1 = G_B8_1;
}
IL_0062:
{
RuntimeObject* L_18 = Enumerable_Select_TisParameterInfo_t1861056598_TisType_t_m1700990983(NULL /*static, unused*/, (RuntimeObject*)(RuntimeObject*)G_B9_1, G_B9_0, /*hidden argument*/Enumerable_Select_TisParameterInfo_t1861056598_TisType_t_m1700990983_RuntimeMethod_var);
RuntimeObject* L_19 = __this->get_indexParameters_2();
bool L_20 = Enumerable_SequenceEqual_TisType_t_m3724055240(NULL /*static, unused*/, L_18, L_19, /*hidden argument*/Enumerable_SequenceEqual_TisType_t_m3724055240_RuntimeMethod_var);
if (L_20)
{
goto IL_0076;
}
}
{
return (bool)0;
}
IL_0076:
{
return (bool)1;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass27_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass27_0__ctor_m191471575 (U3CU3Ec__DisplayClass27_0_t1152408749 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass27_0::<GetMethod>b__0(System.Reflection.MethodInfo)
extern "C" bool U3CU3Ec__DisplayClass27_0_U3CGetMethodU3Eb__0_m3350391101 (U3CU3Ec__DisplayClass27_0_t1152408749 * __this, MethodInfo_t * ___m0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass27_0_U3CGetMethodU3Eb__0_m3350391101_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Func_2_t3692615456 * G_B7_0 = NULL;
ParameterInfoU5BU5D_t390618515* G_B7_1 = NULL;
Func_2_t3692615456 * G_B6_0 = NULL;
ParameterInfoU5BU5D_t390618515* G_B6_1 = NULL;
{
String_t* L_0 = __this->get_name_0();
if (!L_0)
{
goto IL_001d;
}
}
{
MethodInfo_t * L_1 = ___m0;
NullCheck(L_1);
String_t* L_2 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_1);
String_t* L_3 = __this->get_name_0();
bool L_4 = String_op_Inequality_m215368492(NULL /*static, unused*/, L_2, L_3, /*hidden argument*/NULL);
if (!L_4)
{
goto IL_001d;
}
}
{
return (bool)0;
}
IL_001d:
{
MethodInfo_t * L_5 = ___m0;
int32_t L_6 = __this->get_bindingFlags_1();
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_7 = TypeExtensions_TestAccessibility_m3276524655(NULL /*static, unused*/, L_5, L_6, /*hidden argument*/NULL);
if (L_7)
{
goto IL_002d;
}
}
{
return (bool)0;
}
IL_002d:
{
MethodInfo_t * L_8 = ___m0;
NullCheck(L_8);
ParameterInfoU5BU5D_t390618515* L_9 = VirtFuncInvoker0< ParameterInfoU5BU5D_t390618515* >::Invoke(17 /* System.Reflection.ParameterInfo[] System.Reflection.MethodBase::GetParameters() */, L_8);
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var);
Func_2_t3692615456 * L_10 = ((U3CU3Ec_t3984375077_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var))->get_U3CU3E9__27_1_2();
Func_2_t3692615456 * L_11 = L_10;
G_B6_0 = L_11;
G_B6_1 = L_9;
if (L_11)
{
G_B7_0 = L_11;
G_B7_1 = L_9;
goto IL_0052;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var);
U3CU3Ec_t3984375077 * L_12 = ((U3CU3Ec_t3984375077_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var))->get_U3CU3E9_0();
intptr_t L_13 = (intptr_t)U3CU3Ec_U3CGetMethodU3Eb__27_1_m2544709825_RuntimeMethod_var;
Func_2_t3692615456 * L_14 = (Func_2_t3692615456 *)il2cpp_codegen_object_new(Func_2_t3692615456_il2cpp_TypeInfo_var);
Func_2__ctor_m249082317(L_14, L_12, L_13, /*hidden argument*/Func_2__ctor_m249082317_RuntimeMethod_var);
Func_2_t3692615456 * L_15 = L_14;
((U3CU3Ec_t3984375077_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var))->set_U3CU3E9__27_1_2(L_15);
G_B7_0 = L_15;
G_B7_1 = G_B6_1;
}
IL_0052:
{
RuntimeObject* L_16 = Enumerable_Select_TisParameterInfo_t1861056598_TisType_t_m1700990983(NULL /*static, unused*/, (RuntimeObject*)(RuntimeObject*)G_B7_1, G_B7_0, /*hidden argument*/Enumerable_Select_TisParameterInfo_t1861056598_TisType_t_m1700990983_RuntimeMethod_var);
RuntimeObject* L_17 = __this->get_parameterTypes_2();
bool L_18 = Enumerable_SequenceEqual_TisType_t_m3724055240(NULL /*static, unused*/, L_16, L_17, /*hidden argument*/Enumerable_SequenceEqual_TisType_t_m3724055240_RuntimeMethod_var);
return L_18;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass30_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass30_0__ctor_m117216210 (U3CU3Ec__DisplayClass30_0_t395628872 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass30_0::<GetConstructors>b__0(System.Reflection.ConstructorInfo)
extern "C" bool U3CU3Ec__DisplayClass30_0_U3CGetConstructorsU3Eb__0_m3639680810 (U3CU3Ec__DisplayClass30_0_t395628872 * __this, ConstructorInfo_t5769829 * ___c0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass30_0_U3CGetConstructorsU3Eb__0_m3639680810_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Func_2_t3692615456 * G_B5_0 = NULL;
ParameterInfoU5BU5D_t390618515* G_B5_1 = NULL;
Func_2_t3692615456 * G_B4_0 = NULL;
ParameterInfoU5BU5D_t390618515* G_B4_1 = NULL;
{
ConstructorInfo_t5769829 * L_0 = ___c0;
int32_t L_1 = __this->get_bindingFlags_0();
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_2 = TypeExtensions_TestAccessibility_m3276524655(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/NULL);
if (L_2)
{
goto IL_0010;
}
}
{
return (bool)0;
}
IL_0010:
{
RuntimeObject* L_3 = __this->get_parameterTypes_1();
if (!L_3)
{
goto IL_0051;
}
}
{
ConstructorInfo_t5769829 * L_4 = ___c0;
NullCheck(L_4);
ParameterInfoU5BU5D_t390618515* L_5 = VirtFuncInvoker0< ParameterInfoU5BU5D_t390618515* >::Invoke(17 /* System.Reflection.ParameterInfo[] System.Reflection.MethodBase::GetParameters() */, L_4);
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var);
Func_2_t3692615456 * L_6 = ((U3CU3Ec_t3984375077_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var))->get_U3CU3E9__30_1_3();
Func_2_t3692615456 * L_7 = L_6;
G_B4_0 = L_7;
G_B4_1 = L_5;
if (L_7)
{
G_B5_0 = L_7;
G_B5_1 = L_5;
goto IL_003d;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var);
U3CU3Ec_t3984375077 * L_8 = ((U3CU3Ec_t3984375077_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var))->get_U3CU3E9_0();
intptr_t L_9 = (intptr_t)U3CU3Ec_U3CGetConstructorsU3Eb__30_1_m1576061797_RuntimeMethod_var;
Func_2_t3692615456 * L_10 = (Func_2_t3692615456 *)il2cpp_codegen_object_new(Func_2_t3692615456_il2cpp_TypeInfo_var);
Func_2__ctor_m249082317(L_10, L_8, L_9, /*hidden argument*/Func_2__ctor_m249082317_RuntimeMethod_var);
Func_2_t3692615456 * L_11 = L_10;
((U3CU3Ec_t3984375077_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_t3984375077_il2cpp_TypeInfo_var))->set_U3CU3E9__30_1_3(L_11);
G_B5_0 = L_11;
G_B5_1 = G_B4_1;
}
IL_003d:
{
RuntimeObject* L_12 = Enumerable_Select_TisParameterInfo_t1861056598_TisType_t_m1700990983(NULL /*static, unused*/, (RuntimeObject*)(RuntimeObject*)G_B5_1, G_B5_0, /*hidden argument*/Enumerable_Select_TisParameterInfo_t1861056598_TisType_t_m1700990983_RuntimeMethod_var);
RuntimeObject* L_13 = __this->get_parameterTypes_1();
bool L_14 = Enumerable_SequenceEqual_TisType_t_m3724055240(NULL /*static, unused*/, L_12, L_13, /*hidden argument*/Enumerable_SequenceEqual_TisType_t_m3724055240_RuntimeMethod_var);
if (L_14)
{
goto IL_0051;
}
}
{
return (bool)0;
}
IL_0051:
{
return (bool)1;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass35_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass35_0__ctor_m3919978295 (U3CU3Ec__DisplayClass35_0_t3498955080 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass35_0::<GetMemberInternal>b__0(System.Reflection.MemberInfo)
extern "C" bool U3CU3Ec__DisplayClass35_0_U3CGetMemberInternalU3Eb__0_m3802384112 (U3CU3Ec__DisplayClass35_0_t3498955080 * __this, MemberInfo_t * ___m0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass35_0_U3CGetMemberInternalU3Eb__0_m3802384112_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Nullable_1_t3738281181 V_0;
memset(&V_0, 0, sizeof(V_0));
int32_t G_B5_0 = 0;
{
MemberInfo_t * L_0 = ___m0;
NullCheck(L_0);
String_t* L_1 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_0);
String_t* L_2 = __this->get_member_0();
bool L_3 = String_op_Equality_m920492651(NULL /*static, unused*/, L_1, L_2, /*hidden argument*/NULL);
if (!L_3)
{
goto IL_004f;
}
}
{
Nullable_1_t3738281181 * L_4 = __this->get_address_of_memberType_1();
bool L_5 = Nullable_1_get_HasValue_m950793993((Nullable_1_t3738281181 *)L_4, /*hidden argument*/Nullable_1_get_HasValue_m950793993_RuntimeMethod_var);
if (!L_5)
{
goto IL_0042;
}
}
{
MemberInfo_t * L_6 = ___m0;
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
int32_t L_7 = TypeExtensions_MemberType_m2046620246(NULL /*static, unused*/, L_6, /*hidden argument*/NULL);
Nullable_1_t3738281181 L_8 = __this->get_memberType_1();
V_0 = L_8;
int32_t L_9 = Nullable_1_GetValueOrDefault_m1125123534((Nullable_1_t3738281181 *)(&V_0), /*hidden argument*/Nullable_1_GetValueOrDefault_m1125123534_RuntimeMethod_var);
if ((((int32_t)L_7) == ((int32_t)L_9)))
{
goto IL_0039;
}
}
{
G_B5_0 = 0;
goto IL_0040;
}
IL_0039:
{
bool L_10 = Nullable_1_get_HasValue_m950793993((Nullable_1_t3738281181 *)(&V_0), /*hidden argument*/Nullable_1_get_HasValue_m950793993_RuntimeMethod_var);
G_B5_0 = ((int32_t)(L_10));
}
IL_0040:
{
if (!G_B5_0)
{
goto IL_004f;
}
}
IL_0042:
{
MemberInfo_t * L_11 = ___m0;
int32_t L_12 = __this->get_bindingFlags_2();
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_13 = TypeExtensions_TestAccessibility_m1650814028(NULL /*static, unused*/, L_11, L_12, /*hidden argument*/NULL);
return L_13;
}
IL_004f:
{
return (bool)0;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass38_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass38_0__ctor_m902981182 (U3CU3Ec__DisplayClass38_0_t1924976968 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass38_0::<GetProperties>b__0(System.Reflection.PropertyInfo)
extern "C" bool U3CU3Ec__DisplayClass38_0_U3CGetPropertiesU3Eb__0_m604864516 (U3CU3Ec__DisplayClass38_0_t1924976968 * __this, PropertyInfo_t * ___p0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass38_0_U3CGetPropertiesU3Eb__0_m604864516_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
PropertyInfo_t * L_0 = ___p0;
int32_t L_1 = __this->get_bindingFlags_0();
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_2 = TypeExtensions_TestAccessibility_m3826617455(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/NULL);
return L_2;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass39_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass39_0__ctor_m3833518809 (U3CU3Ec__DisplayClass39_0_t4263629128 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass39_0::<GetMembersRecursive>b__0(System.Reflection.MemberInfo)
extern "C" bool U3CU3Ec__DisplayClass39_0_U3CGetMembersRecursiveU3Eb__0_m2056120950 (U3CU3Ec__DisplayClass39_0_t4263629128 * __this, MemberInfo_t * ___p0, const RuntimeMethod* method)
{
{
MemberInfo_t * L_0 = ___p0;
NullCheck(L_0);
String_t* L_1 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_0);
MemberInfo_t * L_2 = __this->get_member_0();
NullCheck(L_2);
String_t* L_3 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_2);
bool L_4 = String_op_Equality_m920492651(NULL /*static, unused*/, L_1, L_3, /*hidden argument*/NULL);
return L_4;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass40_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass40_0__ctor_m2465175745 (U3CU3Ec__DisplayClass40_0_t798913399 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass40_0::<GetPropertiesRecursive>b__0(System.Reflection.PropertyInfo)
extern "C" bool U3CU3Ec__DisplayClass40_0_U3CGetPropertiesRecursiveU3Eb__0_m1637646411 (U3CU3Ec__DisplayClass40_0_t798913399 * __this, PropertyInfo_t * ___p0, const RuntimeMethod* method)
{
{
PropertyInfo_t * L_0 = ___p0;
NullCheck(L_0);
String_t* L_1 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_0);
PropertyInfo_t * L_2 = __this->get_member_0();
NullCheck(L_2);
String_t* L_3 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_2);
bool L_4 = String_op_Equality_m920492651(NULL /*static, unused*/, L_1, L_3, /*hidden argument*/NULL);
return L_4;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass41_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass41_0__ctor_m3070114544 (U3CU3Ec__DisplayClass41_0_t3137565559 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass41_0::<GetFieldsRecursive>b__0(System.Reflection.FieldInfo)
extern "C" bool U3CU3Ec__DisplayClass41_0_U3CGetFieldsRecursiveU3Eb__0_m1425895027 (U3CU3Ec__DisplayClass41_0_t3137565559 * __this, FieldInfo_t * ___p0, const RuntimeMethod* method)
{
{
FieldInfo_t * L_0 = ___p0;
NullCheck(L_0);
String_t* L_1 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_0);
FieldInfo_t * L_2 = __this->get_member_0();
NullCheck(L_2);
String_t* L_3 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_2);
bool L_4 = String_op_Equality_m920492651(NULL /*static, unused*/, L_1, L_3, /*hidden argument*/NULL);
return L_4;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass46_0::.ctor()
extern "C" void U3CU3Ec__DisplayClass46_0__ctor_m3136907396 (U3CU3Ec__DisplayClass46_0_t1945924471 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Newtonsoft.Json.Utilities.TypeExtensions/<>c__DisplayClass46_0::<GetFields>b__0(System.Reflection.FieldInfo)
extern "C" bool U3CU3Ec__DisplayClass46_0_U3CGetFieldsU3Eb__0_m154848375 (U3CU3Ec__DisplayClass46_0_t1945924471 * __this, FieldInfo_t * ___f0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass46_0_U3CGetFieldsU3Eb__0_m154848375_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
FieldInfo_t * L_0 = ___f0;
int32_t L_1 = __this->get_bindingFlags_0();
IL2CPP_RUNTIME_CLASS_INIT(TypeExtensions_t264900522_il2cpp_TypeInfo_var);
bool L_2 = TypeExtensions_TestAccessibility_m1649658994(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/NULL);
return L_2;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Newtonsoft.Json.Utilities.ValidationUtils::ArgumentNotNull(System.Object,System.String)
extern "C" void ValidationUtils_ArgumentNotNull_m5418296 (RuntimeObject * __this /* static, unused */, RuntimeObject * ___value0, String_t* ___parameterName1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ValidationUtils_ArgumentNotNull_m5418296_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = ___value0;
if (L_0)
{
goto IL_000a;
}
}
{
String_t* L_1 = ___parameterName1;
ArgumentNullException_t1615371798 * L_2 = (ArgumentNullException_t1615371798 *)il2cpp_codegen_object_new(ArgumentNullException_t1615371798_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_m1170824041(L_2, L_1, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_2, NULL, ValidationUtils_ArgumentNotNull_m5418296_RuntimeMethod_var);
}
IL_000a:
{
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
| 43.209731 | 430 | 0.803785 | [
"object"
] |
b90f9ae0881eb25689b2d6ee5226ba483f3eb390 | 6,796 | hpp | C++ | include/caffe/util/util_others.hpp | fzd9752/caffe | d2dfe624c741ff38e604f4d37c8eecb095c3dd73 | [
"Intel",
"BSD-2-Clause"
] | null | null | null | include/caffe/util/util_others.hpp | fzd9752/caffe | d2dfe624c741ff38e604f4d37c8eecb095c3dd73 | [
"Intel",
"BSD-2-Clause"
] | null | null | null | include/caffe/util/util_others.hpp | fzd9752/caffe | d2dfe624c741ff38e604f4d37c8eecb095c3dd73 | [
"Intel",
"BSD-2-Clause"
] | null | null | null |
#ifndef CAFFE_UTIL_UTIL_OTHERS_HPP_
#define CAFFE_UTIL_UTIL_OTHERS_HPP_
#include <string>
#include <map>
#include <utility>
#include <vector>
#include "caffe/common.hpp"
#include "caffe/proto/caffe.pb.h"
using namespace std;
namespace caffe
{
template <typename Dtype>
struct InfoCam3d
{
InfoCam3d() {
x = y = z = h = w = l = o = 0;
}
Dtype x;
Dtype y;
Dtype z;
Dtype h;
Dtype w;
Dtype l;
Dtype o;
vector<vector<Dtype> > pts3d;
vector<vector<Dtype> > pts2d;
};
// 0410Rui //
template <typename Dtype>
struct BBox
{
BBox()
{
id = center_h = center_w = score = x1 = x2 = y1 = y2 = 0;
}
Dtype score, x1, y1, x2, y2, center_h, center_w, id;
Dtype fdlx, fdly, fdrx, fdry, bdrx, bdry, bdlx, bdly;
Dtype fulx, fuly, furx, fury, burx, bury, bulx, buly;
Dtype l_3d, w_3d, h_3d;
Dtype thl, yaw;
// tracking fea extra //
int scale_id;
int heat_map_y;
int heat_map_x;
std::vector<Dtype> data;
vector<Dtype> prbs;
vector<Dtype> ftrs;
vector<Dtype> atrs;
vector<std::pair<Dtype, Dtype> > kpts;
vector<Dtype> kpts_prbs;
//spatial maps for each instance
vector<vector<Dtype> > spmp;
InfoCam3d<Dtype> cam3d;
static bool greater(const BBox<Dtype>& a, const BBox<Dtype>& b)
{return a.score > b.score;}
};
/////////////////////////////////////////////////////////
vector<string> std_split(string str, string reg);
/////////////////////////////////////////////////////////
template <typename Dtype>
Dtype GetArea(const vector<Dtype>& bbox);
template <typename Dtype>
Dtype GetArea(const Dtype x1, const Dtype y1, const Dtype x2, const Dtype y2);
// intersection over union
enum OverlapType{ OVERLAP_UNION,OVERLAP_BOX1, OVERLAP_BOX2 };
template <typename Dtype>
Dtype GetOverlap(const vector<Dtype>& bbox1, const vector<Dtype>& bbox2);
template <typename Dtype>
Dtype GetOverlap(const Dtype x11, const Dtype y11, const Dtype x12,
const Dtype y12, const Dtype x21, const Dtype y21,
const Dtype x22, const Dtype y22,
const OverlapType overlap_type);
/////////////////////////////////////////////////////////
template <typename Dtype>
bool compareCandidate(const pair<Dtype, vector<float> >& c1,
const pair<Dtype, vector<float> >& c2);
template <typename Dtype>
bool compareCandidate_v2(const vector<Dtype> & c1, const vector<Dtype> & c2);
/* Non-maximum suppression. return a mask which elements are selected overlap
* Overlap threshold for suppression For a selected box Bi, all boxes Bj that are covered by more than overlap are suppressed.
* Note that 'covered' is is |Bi \cap Bj| / |Bj|, not the PASCAL intersection over union measure.
* if addscore == true, then the scores of all the overlap bboxes will be added
*/
template <typename Dtype>
const vector<bool> nms(vector<pair<Dtype, vector<float> > >& candidates,
const float overlap, const int top_N,
const bool addScore = false);
// Non-maximum suppression. return a mask which elements are selected
// overlap Overlap threshold for suppression
// For a selected box Bi, all boxes Bj that are covered by
// more than overlap are suppressed. Note that 'covered' is
// is |Bi \cap Bj| / min(|Bj|,|Bi|), n
// if addscore == true, then the scores of all the overlap bboxes will be added
template <typename Dtype>
const vector<bool> nms(vector<vector<Dtype> >& candidates, const Dtype overlap,
const int top_N, const bool addScore = false);
template <typename Dtype>
const vector<bool> nms(vector< BBox<Dtype> >& candidates, const Dtype overlap,
const int top_N, const bool addScore = false);
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
template <typename Dtype>
void PushBBoxTo(std::ofstream & out_result_file,
const vector< BBox<Dtype> >& bboxes, bool with_cam3d = false);
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
/* This function return a vector showing whether the candidate is correct according to overlap ratio. */
vector<bool> GetPredictedResult(
const vector< std::pair<int, vector<float> > > >_instances,
const vector< std::pair<float, vector<float> > > &pred_instances,
float ratio = 0.5);
/////////////////////////////////////////////////////////
float GetPRPoint_FDDB(
vector< std::pair<float, vector<float> > >& pred_instances_with_gt,
const int n_positive,vector<float>& precision,vector<float> &recall);
// from mscnn
template <typename Dtype>
Dtype BoxIOU(const Dtype x1, const Dtype y1, const Dtype w1, const Dtype h1,
const Dtype x2, const Dtype y2, const Dtype w2, const Dtype h2,
const string mode, bool bbox_size_add_one = false);
template <typename Dtype>
void coords2targets(const Dtype ltx, const Dtype lty, const Dtype rbx,
const Dtype rby,
const Dtype acx, const Dtype acy, const Dtype acw, const Dtype ach,
const bool use_target_type_rcnn, const bool do_bbox_norm,
const vector<Dtype>& bbox_means, const vector<Dtype>& bbox_stds,
Dtype& tg0, Dtype& tg1, Dtype& tg2, Dtype& tg3,
bool bbox_size_add_one = false);
template <typename Dtype>
void targets2coords(const Dtype tg0, const Dtype tg1, const Dtype tg2,
const Dtype tg3,
const Dtype acx, const Dtype acy, const Dtype acw, const Dtype ach,
const bool use_target_type_rcnn, const bool do_bbox_norm,
const vector<Dtype>& bbox_means, const vector<Dtype>& bbox_stds,
Dtype& ltx, Dtype& lty, Dtype& rbx, Dtype& rby,
bool bbox_size_add_one = false);
// nms
template <typename Dtype>
const vector<bool> nms_lm(vector< BBox<Dtype> >& candidates,
const Dtype overlap, const int top_N, const bool addScore = false,
const int max_candidate_N = -1, bool bbox_size_add_one = true,
bool voting = true, Dtype vote_iou = 0.5);
// soft nms
template <typename Dtype>
const vector<bool> soft_nms_lm(vector< BBox<Dtype> >& candidates,
const Dtype iou_std, const int top_N,
const int max_candidate_N = -1, bool bbox_size_add_one = true,
bool voting = true, Dtype vote_iou = 0.5);
template <typename Dtype>
void coef2dTo3d(Dtype cam_xpz, Dtype cam_xct, Dtype cam_ypz,
Dtype cam_yct, Dtype cam_pitch, Dtype px, Dtype py,
Dtype & k1, Dtype & k2, Dtype & u, Dtype & v);
template <typename Dtype>
void cord2dTo3d(Dtype k1, Dtype k2, Dtype u,
Dtype v, Dtype ph, Dtype rh,
Dtype & x, Dtype & y, Dtype & z);
} // namespace caffe
#endif // CAFFE_UTIL_UTIL_OTHERS_HPP_
| 35.957672 | 127 | 0.633608 | [
"vector"
] |
b91227ca346e1d021ae180adfa3eeef489661b3e | 1,358 | cpp | C++ | projectGame/src/scene_death.cpp | Gilleslenaerts007/gba-sprite-engine | 0675291392a950c6edd1eecc13c6528bc6fe2c87 | [
"MIT"
] | null | null | null | projectGame/src/scene_death.cpp | Gilleslenaerts007/gba-sprite-engine | 0675291392a950c6edd1eecc13c6528bc6fe2c87 | [
"MIT"
] | null | null | null | projectGame/src/scene_death.cpp | Gilleslenaerts007/gba-sprite-engine | 0675291392a950c6edd1eecc13c6528bc6fe2c87 | [
"MIT"
] | null | null | null | //
// Created by Gille on 1/26/2021.
//
#include <libgba-sprite-engine/sprites/sprite_builder.h>
#include <libgba-sprite-engine/background/text_stream.h>
#include <libgba-sprite-engine/gba/tonc_memdef.h>
#include <libgba-sprite-engine/gba_engine.h>
#include <libgba-sprite-engine/effects/fade_out_scene.h>
#include "scene_death.h"
#include "bg_Menu.h"
#include "pixel_player.h"
#include "scene_Chapter1.h"
#include "scene_start.h"
#include "../audio/death.h"
scene_death::scene_death(const std::shared_ptr<GBAEngine> &engine) : Scene(engine){}
std::vector<Background *> scene_death::backgrounds() {
return {bg.get()};
}
std::vector<Sprite *> scene_death::sprites() {
return {};
}
void scene_death::load() {
backgroundPalette = std::unique_ptr<BackgroundPaletteManager>(new BackgroundPaletteManager(menuPal, sizeof(menuPal)));
engine.get()->enqueueSound(death, death_bytes, 16000);
//REG_DISPCNT = DCNT_MODE0 | DCNT_OBJ | DCNT_OBJ_1D | DCNT_BG0 | DCNT_BG1;
bg = std::unique_ptr<Background>(new Background(1, menuTiles, sizeof(menuTiles), menuMap, sizeof(menuMap)));
bg.get()->useMapScreenBlock(26);
TextStream::instance().setText("You have died !.... ", 8, 5);
}
void scene_death::tick(u16 keys) {
if(keys & KEY_START) {
bg.get_deleter();
engine->setScene(new scene_start(engine));
}
} | 30.177778 | 122 | 0.707658 | [
"vector"
] |
b9134d2f71b00a4c1dbdb473304df05382d64322 | 8,958 | hxx | C++ | main/slideshow/source/inc/slide.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/slideshow/source/inc/slide.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/slideshow/source/inc/slide.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef INCLUDED_SLIDESHOW_SLIDE_HXX
#define INCLUDED_SLIDESHOW_SLIDE_HXX
#include "shapemanager.hxx"
#include "subsettableshapemanager.hxx"
#include "unoviewcontainer.hxx"
#include "slidebitmap.hxx"
#include "shapemaps.hxx"
#include <boost/shared_ptr.hpp>
namespace com { namespace sun { namespace star {
namespace drawing {
class XDrawPage;
class XDrawPagesSupplier;
}
namespace uno {
class XComponentContext;
}
namespace animations {
class XAnimationNode;
} } } }
namespace basegfx
{
class B2IVector;
}
/* Definition of Slide interface */
namespace slideshow
{
namespace internal
{
class RGBColor;
class ScreenUpdater;
typedef ::std::vector< ::cppcanvas::PolyPolygonSharedPtr> PolyPolygonVector;
class Slide
{
public:
// Showing
// -------------------------------------------------------------------
/** Prepares to show slide.
Call this method to reduce the timeout show(), and
getInitialSlideBitmap() need to complete. If
prefetch() is not called explicitly, the named
methods will call it implicitly.
*/
virtual bool prefetch() = 0;
/** Shows the slide on all registered views
After this call, the slide will render itself to the
views, and start its animations.
@param bSlideBackgoundPainted
When true, the initial slide content on the background
layer is already rendered (e.g. from a previous slide
transition). When false, Slide renders initial content of
slide.
*/
virtual bool show( bool bSlideBackgoundPainted ) = 0;
/** Force-ends the slide
After this call, the slide has stopped all animations,
and ceased rendering/visualization on all views.
*/
virtual void hide() = 0;
// Queries
// -------------------------------------------------------------------
/** Query the size of this slide in user coordinates
This value is retrieved from the XDrawPage properties.
*/
virtual basegfx::B2IVector getSlideSize() const = 0;
/// Gets the underlying API page
virtual ::com::sun::star::uno::Reference<
::com::sun::star::drawing::XDrawPage > getXDrawPage() const = 0;
/// Gets the animation node.
virtual ::com::sun::star::uno::Reference<
::com::sun::star::animations::XAnimationNode > getXAnimationNode() const = 0;
///Gets the slide Polygons
virtual PolyPolygonVector getPolygons() = 0;
///Draw the slide Polygons
virtual void drawPolygons() const = 0;
///Check if paint overlay is already active
virtual bool isPaintOverlayActive() const = 0;
virtual void enablePaintOverlay() = 0;
virtual void disablePaintOverlay() = 0;
virtual void update_settings( bool bUserPaintEnabled, RGBColor const& aUserPaintColor, double dUserPaintStrokeWidth ) = 0;
// Slide bitmaps
// -------------------------------------------------------------------
/** Request bitmap for current slide appearance.
The bitmap returned by this method depends on the
current state of the slide and the contained
animations. A newly generated slide will return the
initial slide content here (e.g. with all 'appear'
effect shapes invisible), a slide whose effects are
currently running will return a bitmap corresponding
to the current position on the animation timeline, and
a slide whose effects have all been run will generate
a bitmap with the final slide appearance (e.g. with
all 'hide' effect shapes invisible).
@param rView
View to retrieve bitmap for (note that the bitmap will
have device-pixel equivalence to the content that
would have been rendered onto the given view). Note
that the view must have been added to this slide
before via viewAdded().
*/
virtual SlideBitmapSharedPtr
getCurrentSlideBitmap( const UnoViewSharedPtr& rView ) const = 0;
};
typedef ::boost::shared_ptr< Slide > SlideSharedPtr;
class EventQueue;
class CursorManager;
class EventMultiplexer;
class ActivitiesQueue;
class UserEventQueue;
class RGBColor;
/** Construct from XDrawPage
The Slide object generally works in XDrawPage model
coordinates, that is, the page will have the width and
height as specified in the XDrawPage's property
set. The top, left corner of the page will be rendered
at (0,0) in the given canvas' view coordinate system.
Does not render anything initially
@param xDrawPage
Page to display on this slide
@param xRootNode
Root of the SMIL animation tree. Used to animate the slide.
@param rEventQueue
EventQueue. Used to post events.
@param rActivitiesQueue
ActivitiesQueue. Used to run animations.
@param rEventMultiplexer
Event source
@param rUserEventQueue
UserEeventQueue
*/
SlideSharedPtr createSlide( const ::com::sun::star::uno::Reference<
::com::sun::star::drawing::XDrawPage >& xDrawPage,
const ::com::sun::star::uno::Reference<
::com::sun::star::drawing::XDrawPagesSupplier >& xDrawPages,
const ::com::sun::star::uno::Reference<
::com::sun::star::animations::XAnimationNode >& xRootNode,
EventQueue& rEventQueue,
EventMultiplexer& rEventMultiplexer,
ScreenUpdater& rScreenUpdater,
ActivitiesQueue& rActivitiesQueue,
UserEventQueue& rUserEventQueue,
CursorManager& rCursorManager,
const UnoViewContainer& rViewContainer,
const ::com::sun::star::uno::Reference<
::com::sun::star::uno::XComponentContext >& xContext,
const ShapeEventListenerMap& rShapeListenerMap,
const ShapeCursorMap& rShapeCursorMap,
const PolyPolygonVector& rPolyPolygonVector,
RGBColor const& aUserPaintColor,
double dUserPaintStrokeWidth,
bool bUserPaintEnabled,
bool bIntrinsicAnimationsAllowed,
bool bDisableAnimationZOrder );
}
}
#endif /* INCLUDED_SLIDESHOW_SLIDE_HXX */
| 40.90411 | 125 | 0.519536 | [
"render",
"object",
"vector",
"model"
] |
b9152a60415df856c89380c992015c206a1740e2 | 761 | cpp | C++ | clic/src/tier1/cleEqualKernel.cpp | StRigaud/CLIc_prototype | 83fe15b3f8406c4e5a1f415fcba29dc30b12cad3 | [
"BSD-3-Clause"
] | 1 | 2021-01-04T14:34:45.000Z | 2021-01-04T14:34:45.000Z | clic/src/tier1/cleEqualKernel.cpp | StRigaud/CLIc_prototype | 83fe15b3f8406c4e5a1f415fcba29dc30b12cad3 | [
"BSD-3-Clause"
] | null | null | null | clic/src/tier1/cleEqualKernel.cpp | StRigaud/CLIc_prototype | 83fe15b3f8406c4e5a1f415fcba29dc30b12cad3 | [
"BSD-3-Clause"
] | 1 | 2021-01-02T17:27:35.000Z | 2021-01-02T17:27:35.000Z |
#include "cleEqualKernel.hpp"
namespace cle
{
EqualKernel::EqualKernel(std::shared_ptr<GPU> t_gpu) :
Kernel( t_gpu,
"equal",
{"src1", "src2", "dst"}
)
{
this->m_Sources.insert({this->m_KernelName + "_2d", this->m_OclHeader2d});
this->m_Sources.insert({this->m_KernelName + "_3d", this->m_OclHeader3d});
}
void EqualKernel::SetInput1(Object& t_x)
{
this->AddObject(t_x, "src1");
}
void EqualKernel::SetInput2(Object& t_x)
{
this->AddObject(t_x, "src2");
}
void EqualKernel::SetOutput(Object& t_x)
{
this->AddObject(t_x, "dst");
}
void EqualKernel::Execute()
{
this->ManageDimensions("dst");
this->BuildProgramKernel();
this->SetArguments();
this->EnqueueKernel();
}
} // namespace cle
| 18.560976 | 78 | 0.638633 | [
"object"
] |
b917d7674b05070096aa2631249d5ba6195890fd | 3,209 | hpp | C++ | lumino/LuminoEngine/include/LuminoEngine/Scene/Camera.hpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 113 | 2020-03-05T01:27:59.000Z | 2022-03-28T13:20:51.000Z | lumino/LuminoEngine/include/LuminoEngine/Scene/Camera.hpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 35 | 2016-04-18T06:14:08.000Z | 2020-02-09T15:51:58.000Z | lumino/LuminoEngine/include/LuminoEngine/Scene/Camera.hpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 12 | 2020-12-21T12:03:59.000Z | 2021-12-15T02:07:49.000Z |
#pragma once
#include <LuminoEngine/Visual/CameraComponent.hpp>
#include "WorldObject.hpp"
namespace ln {
class WorldRenderView;
class CameraComponent;
/**
* カメラのクラスです。カメラは 3D シーンを描画する際の視点となります。
*/
LN_CLASS()
class Camera
: public WorldObject
{
LN_OBJECT;
public:
/** 既定の設定で Camera を作成します。 */
static Ref<Camera> create();
/** Y 方向視野角の設定 */
void setFov(float value) { m_component->setFovY(value); }
/** Y 方向視野角の取得 */
float fov() const { return m_component->getFovY(); }
/** 最も近いビュープレーン位置を設定します。(0 は無効値です) */
void setNearClip(float value) { m_component->setNearClip(value); }
/** 最も近いビュープレーン位置を取得します。 */
float getNearClip() const { return m_component->getNearClip(); }
/** 最も遠いビュープレーン位置を設定します。 */
void setFarClip(float value) { m_component->setFarClip(value); }
/** 最も遠いビュープレーン位置を取得します。 */
float getFarClip() const { return m_component->getFarClip(); }
/** カメラの投影モードを設定します。(default: Perspective) */
void setProjectionMode(ProjectionMode value) { m_component->setProjectionMode(value); }
/** カメラの投影モードを取得します。 */
ProjectionMode projectionMode() const { return m_component->projectionMode(); }
/** 平行投影モード時の、ビューサイズに対するワールド空間内の距離を設定します。(default: (16.0, 12.0)) */
void setOrthographicSize(const Size& size) { m_component->setOrthographicSize(size); }
/** 平行投影モード時の、ビューサイズに対するワールド空間内の距離を設定します。(default: (16.0, 12.0)) */
void setOrthographicSize(float width, float height) { setOrthographicSize(Size(width, height)); }
/** 平行投影モード時の、ビューの縦幅に対するワールド空間内の距離を設定します。(default: (16.0, 12.0)) */
void setOrthographicSize(float height) { setOrthographicSize(Size(0.0f, height)); }
/** 平行投影モード時の、ビューサイズに対するワールド空間内の距離を取得します。 */
const Size& orthographicSize() const { return m_component->orthographicSize(); }
/** ビュー行列を取得します。カメラの姿勢に同期するように別のオブジェクトの更新を行う場合、onPostUpdate() でこの行列を取得します。onUpdate() 時点では最新の行列が返るとは限りません。 */
const Matrix& viewMatrix() const;
/** プロジェクション行列を取得します。カメラの姿勢に同期するように別のオブジェクトの更新を行う場合、onPostUpdate() でこの行列を取得します。onUpdate() 時点では最新の行列が返るとは限りません。 */
const Matrix& projectionMatrix() const;
/** ビュー行列とプロジェクション行列の積を取得します。カメラの姿勢に同期するように別のオブジェクトの更新を行う場合、onPostUpdate() でこの行列を取得します。onUpdate() 時点では最新の行列が返るとは限りません。 */
const Matrix& viewProjectionMatrix() const;
// 3D→2D(unit:dp)
Vector3 worldToScreenPoint(const Vector3& position) const;
// 2D(unit:dp)→3D
Vector3 screenToWorldPoint(const Vector3& position) const;
Ray screenToWorldRay(const Vector2& position) const;
SceneClearMode clearMode() const;
void setClearMode(SceneClearMode value);
const Color& backgroundColor() const;
void setBackgroundColor(const Color& value);
CameraComponent* cameraComponent() const;
WorldRenderView* renderView() const;
protected:
// WorldObject interface
virtual void onUpdate(float elapsedSeconds) override;
LN_CONSTRUCT_ACCESS:
Camera();
virtual ~Camera();
void init(/*CameraWorld proj, bool defcmp*/);
//LN_INTERNAL_ACCESS:
// void setCameraComponent(CameraComponent* component);
private:
Ref<CameraComponent> m_component;
//WorldRenderView* m_ownerRenderView;
//friend class WorldRenderView;
};
} // namespace ln
| 29.990654 | 125 | 0.724836 | [
"3d"
] |
2c710e5a951133fd673bd13bc0044d53c4e03993 | 1,458 | cpp | C++ | examples/contrib/Server/client.cpp | micpub/WebSocket | 6274b62b64e71ecdb8e47f0fcf2ac63f95395923 | [
"MIT"
] | 26 | 2020-04-18T09:27:55.000Z | 2022-03-11T15:36:29.000Z | examples/contrib/Server/client.cpp | micpub/WebSocket | 6274b62b64e71ecdb8e47f0fcf2ac63f95395923 | [
"MIT"
] | 2 | 2020-04-18T09:46:18.000Z | 2021-04-14T15:54:32.000Z | examples/contrib/Server/client.cpp | micpub/WebSocket | 6274b62b64e71ecdb8e47f0fcf2ac63f95395923 | [
"MIT"
] | 4 | 2020-04-18T09:43:11.000Z | 2021-05-27T12:40:57.000Z | #include "client.h"
#include <WebSocket.h>
#include <QDateTime>
#include <QDebug>
#include <QTimer>
#include <memory>
Client::Client(QTcpSocket *sock, QObject *parent)
: QObject(parent)
{
p_wrapper = new WebSocket::Wrapper(sock /* ownership of socket passed to wrapper object */, this);
connect(p_wrapper, &WebSocket::Wrapper::messagesReady, this, &Client::clientReadyRead);
connect(p_wrapper, &WebSocket::Wrapper::handshakeFinished, this, &Client::handshakeSuccess, Qt::QueuedConnection);
connect(p_wrapper, &WebSocket::Wrapper::handshakeFailed, this, &Client::handshakeFailed);
connect(p_wrapper, &WebSocket::Wrapper::disconnected, this, &Client::disconnected);
p_wrapper->startServerHandshake();
}
Client::~Client()
{
qDebug() << "client deleted";
}
void Client::handshakeSuccess()
{
qDebug() << "ws ok!";
// send a message after 500 msec
QTimer::singleShot(500, this, [this]{
const QString msg = QString("hellow world from server (%1)").arg(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss"));
p_wrapper->sendText(msg.toUtf8());
});
}
void Client::handshakeFailed()
{
qDebug() << "ws error!";
deleteLater();
}
void Client::clientReadyRead()
{
while (p_wrapper->messagesAvailable() > 0) {
auto msg = p_wrapper->readNextMessage();
qDebug() << "Msg received:" << QString::fromUtf8(msg);
}
}
| 28.588235 | 136 | 0.652263 | [
"object"
] |
2c77508d92e48a473372165eb59626c08967d25c | 5,437 | cpp | C++ | codeforces/practice/EDU2_77E.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | 3 | 2020-02-08T10:34:16.000Z | 2020-02-09T10:23:19.000Z | codeforces/practice/EDU2_77E.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | null | null | null | codeforces/practice/EDU2_77E.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | 2 | 2020-10-02T19:05:32.000Z | 2021-09-08T07:01:49.000Z | // Optimise
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
// #define MULTI_TEST
#ifdef LOCAL
#define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__);
#define pc(...) PC(#__VA_ARGS__, __VA_ARGS__);
template <typename T, typename U>
ostream &operator<<(ostream &out, const pair<T, U> &p)
{
out << '[' << p.first << ", " << p.second << ']';
return out;
}
template <typename Arg>
void PC(const char *name, Arg &&arg)
{
while (*name == ',' || *name == ' ')
name++;
std::cerr << name << " { ";
for (const auto &v : arg)
cerr << v << ' ';
cerr << " }\n";
}
template <typename Arg1, typename... Args>
void PC(const char *names, Arg1 &&arg1, Args &&... args)
{
while (*names == ',' || *names == ' ')
names++;
const char *comma = strchr(names, ',');
std::cerr.write(names, comma - names) << " { ";
for (const auto &v : arg1)
cerr << v << ' ';
cerr << " }\n";
PC(comma, args...);
}
template <typename Arg1>
void ZZ(const char *name, Arg1 &&arg1)
{
std::cerr << name << " = " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void ZZ(const char *names, Arg1 &&arg1, Args &&... args)
{
const char *comma = strchr(names + 1, ',');
std::cerr.write(names, comma - names) << " = " << arg1;
ZZ(comma, args...);
}
#else
#define db(...)
#define pc(...)
#endif
using ll = long long;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define f first
#define s second
#define pb push_back
#define all(v) v.begin(), v.end()
auto TimeStart = chrono::steady_clock::now();
auto seed = TimeStart.time_since_epoch().count();
std::mt19937 rng(seed);
template <typename T>
using Random = std::uniform_int_distribution<T>;
const int NAX = 3e5 + 5, MOD = 1000000007;
vector<pair<int, pair<int, int>>> q;
int n, m, a[NAX], mnvl[NAX], mxvl[NAX];
int st[4 * NAX], used[NAX];
void solveCase()
{
cin >> n >> m;
ordered_set<int> s;
map<int, vector<int>> idv;
db("a");
for (int i = 1; i <= m; i++)
{
cin >> a[i];
if (!idv.count(a[i]))
{
int totalElements = s.size();
int smallerElements = s.order_of_key(a[i]);
int greaterElements = totalElements - smallerElements;
mxvl[a[i]] = greaterElements + a[i];
}
s.insert(a[i]);
idv[a[i]].pb(i);
}
db("b");
for (int i = 1; i <= n; i++)
{
if (s.find(i) != s.end())
mnvl[i] = 1;
else
{
int totalElements = s.size();
auto smallerElements = s.order_of_key(a[i]);
auto greaterElements = totalElements - smallerElements;
mxvl[a[i]] = greaterElements + a[i];
mnvl[i] = i;
}
}
db("c");
s.clear();
for (int i = m; i >= 1; i--)
{
if (idv[a[i]].back() == i)
{
int sz = s.size();
mxvl[a[i]] = max(mxvl[a[i]], sz + 1);
}
s.insert(a[i]);
}
db("d");
for (auto &el : idv)
{
for (size_t i = 0; i + 1 < el.s.size(); i++)
q.pb({el.s[i], {el.s[i + 1], el.f}});
}
db("e");
sort(all(q), [&](pair<int, pair<int, int>> A, pair<int, pair<int, int>> B) -> bool {
if (A.s.f != B.s.f)
return A.s.f < B.s.f;
return A.f < B.f;
});
db("f");
int j = 1;
function<void(int, int, int, int, int)> update = [&update](int node, int l, int r, int x, int d) -> void {
if (l == r)
{
st[node] = d;
return;
}
int mid = (l + r) / 2;
if (x <= mid)
update(2 * node, l, mid, x, d);
else
update(2 * node + 1, l, mid, x, d);
st[node] = st[2 * node] + st[2 * node + 1];
};
db("g");
function<int(int, int, int, int, int)> find = [&find](int node, int A, int B, int l, int r) -> int {
if (l > B || r < A)
return 0;
if (A <= l && r <= B)
return st[node];
int mid = (l + r) / 2;
return find(2 * node, A, B, l, mid) + find(2 * node + 1, A, B, mid + 1, r);
};
db("h");
for (int i = 1; i <= n; i++)
cout << mnvl[i] << ' ' << mxvl[i] << '\n';
pc(q);
for (size_t i = 0; i < q.size(); i++)
{
while (j <= q[i].s.f)
{
if (!used[a[j]])
{
update(1, 1, m, j, 1);
used[a[j]] = j;
}
else
{
update(1, 1, m, used[a[j]], 0);
update(1, 1, m, j, 1);
used[a[j]] = j;
}
++j;
}
int diff = find(1, 1, m, q[i].f, q[i].s.f);
db(q[i], diff);
mxvl[q[i].s.s] = max(mxvl[q[i].s.s], diff);
}
db("i");
for (int i = 1; i <= n; i++)
cout << mnvl[i] << ' ' << mxvl[i] << '\n';
}
int main()
{
#ifndef LOCAL
ios_base::sync_with_stdio(0);
cin.tie(0);
#endif
int t = 1;
#ifdef MULTI_TEST
cin >> t;
#endif
for (int i = 1; i <= t; ++i)
{
solveCase();
#ifdef TIME
cerr << "Case #" << i << ": Time " << chrono::duration<double>(chrono::steady_clock::now() - TimeStart).count() << " s.\n";
TimeStart = chrono::steady_clock::now();
#endif
}
return 0;
}
| 26.393204 | 131 | 0.467905 | [
"vector"
] |
2c77f4c00e371d421a8e73be5690740bbfa9cf6b | 75,434 | cpp | C++ | DaggerTool.cpp | Interkarma/daggerfallcartographer | 8cc55dc66dbd8065ca11a11bb51a0e317862cb62 | [
"MIT"
] | 3 | 2019-06-30T22:32:03.000Z | 2021-11-14T17:46:57.000Z | DaggerTool.cpp | Interkarma/daggerfallcartographer | 8cc55dc66dbd8065ca11a11bb51a0e317862cb62 | [
"MIT"
] | null | null | null | DaggerTool.cpp | Interkarma/daggerfallcartographer | 8cc55dc66dbd8065ca11a11bb51a0e317862cb62 | [
"MIT"
] | null | null | null | /*************************************************************************************************\
*
* Filename: DaggerTool.cpp
* Purpose: Implement all Daggerfall tool classes
* Version: 0.90
* Author: Gavin Clayton
*
* Last Updated: 29/08/2002
*
* Copyright 2002. Gavin Clayton. All Rights Reserved.
*
*
* NOTE:
* This information is derived from Dave Humphrey's DF hacking articles (http://www.m0use.net/~uesp).
* I have occasionally used different naming conventions and expanded based on my own investigations.
* I am deeply grateful to Dave Humphrey for his work. This would not be possible without him.
*
* If changes are made by you to this code, please log them below:
*
*
\*************************************************************************************************/
#include "stdafx.h"
#include "DaggerTool.h"
#include "Other/DH/DFFaceTex.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// BSAMaps Construction / Destruction
//////////////////////////////////////////////////////////////////////
BSAMaps::BSAMaps()
{
// Initialise
m_pRecordDirectory = NULL;
m_bIsRegionOpen = false;
m_pData_MapPItem = NULL;
m_pData_MapDItem = NULL;
m_pData_MapTable = NULL;
m_pData_MapNames = NULL;
}/* BSAMaps */
BSAMaps::~BSAMaps()
{
Close();
}/* ~BSAMaps */
//////////////////////////////////////////////////////////////////////
// BSAMaps Member Functions
//////////////////////////////////////////////////////////////////////
bool BSAMaps::Open( LPCSTR pszPath, BOOL bReadOnly/*=TRUE*/ )
{
if ( !BSAArchive::Open( pszPath, "MAPS.BSA", bReadOnly ) )
return false;
m_pRecordDirectory = m_pRecordDirectoryLong;
return true;
}/* Open */
void BSAMaps::Close()
{
if ( !IsOpen() )
return;
CloseRegion();
BSAArchive::Close();
// Initialise
m_pRecordDirectory = NULL;
}/* Close */
bool BSAMaps::OpenRegion( long nRegion )
{
if ( !IsOpen() )
return false;
// nRegion must be within limits
_ASSERT( nRegion >= 0 && nRegion <= NUM_REGION_COUNT );
// There are 4 records for each region
long nRegionRecord = nRegion * 4;
// Close any existing object
if ( IsRegionOpen() )
CloseRegion();
// Get MapPItem record
char *pData_MapPItem = NULL;
long nLength = GetRecordLength( nRegionRecord );
if ( nLength ) {
pData_MapPItem = new char[nLength];
if ( !pData_MapPItem ) return false;
if ( !GetRecord( nRegionRecord, pData_MapPItem, nLength ) ) {
delete[] pData_MapPItem;
return false;
}
}
// Get MapDItem record
nRegionRecord++;
char *pData_MapDItem = NULL;
nLength = GetRecordLength( nRegionRecord );
if ( nLength ) {
pData_MapDItem = new char[nLength];
if ( !pData_MapDItem ) return false;
if ( !GetRecord( nRegionRecord, pData_MapDItem, nLength ) ) {
delete[] pData_MapPItem;
delete[] pData_MapDItem;
return false;
}
}
// Get MapTable record
nRegionRecord++;
char *pData_MapTable = NULL;
nLength = GetRecordLength( nRegionRecord );
if ( nLength ) {
pData_MapTable = new char[nLength];
if ( !pData_MapTable ) return false;
if ( !GetRecord( nRegionRecord, pData_MapTable, nLength ) ) {
delete[] pData_MapPItem;
delete[] pData_MapDItem;
delete[] pData_MapTable;
return false;
}
}
// Get MapNames record
nRegionRecord++;
char *pData_MapNames = NULL;
nLength = GetRecordLength( nRegionRecord );
if ( nLength ) {
pData_MapNames = new char[nLength];
if ( !pData_MapNames ) return false;
if ( !GetRecord( nRegionRecord, pData_MapNames, nLength ) ) {
delete[] pData_MapPItem;
delete[] pData_MapDItem;
delete[] pData_MapTable;
delete[] pData_MapNames;
return false;
}
}
// Set values
m_bIsRegionOpen = true;
m_pData_MapPItem = pData_MapPItem;
m_pData_MapDItem = pData_MapDItem;
m_pData_MapTable = pData_MapTable;
m_pData_MapNames = pData_MapNames;
m_nCurRegion = nRegion;
return true;
}/* OpenRegion */
void BSAMaps::CloseRegion()
{
if ( !IsRegionOpen() )
return;
// Initialise
if ( m_pData_MapPItem ) {delete[] m_pData_MapPItem;}
if ( m_pData_MapDItem ) {delete[] m_pData_MapDItem;}
if ( m_pData_MapTable ) {delete[] m_pData_MapTable;}
if ( m_pData_MapNames ) {delete[] m_pData_MapNames;}
m_pData_MapPItem = NULL;
m_pData_MapDItem = NULL;
m_pData_MapTable = NULL;
m_pData_MapNames = NULL;
m_bIsRegionOpen = false;
}/* CloseRegion */
long BSAMaps::GetLocationCount()
{
if ( !IsRegionOpen() )
return 0;
LPREGION_MAPNAMES pMapNames = (LPREGION_MAPNAMES)m_pData_MapNames;
if ( !pMapNames )
return 0;
return pMapNames->nCount;
}/* GetLocationCount */
bool BSAMaps::GetLocationName( long nLocation, char* pszBuffer )
{
_ASSERT( pszBuffer );
if ( !IsRegionOpen() )
return false;
LPREGION_MAPNAMES pMapNames = (LPREGION_MAPNAMES)m_pData_MapNames;
if ( !pMapNames )
return 0;
char *pszName = &pMapNames->Data;
pszName += nLocation * 32;
strncpy( pszBuffer, pszName, 32 );
return true;
}/* GetLocationName */
long BSAMaps::GetLocationType( long nLocation )
{
if ( !IsRegionOpen() )
return false;
LPREGION_MAPTABLE pMapTable = (LPREGION_MAPTABLE)m_pData_MapTable;
if ( !pMapTable )
return 0;
long nType = 0;
nType = pMapTable[nLocation].XPosAndType >> 17;
return nType;
}/* GetLocationType */
LPLOCATION_DESCRIPTION BSAMaps::GetLocationDescription( long nLocation )
{
LPLOCATION_DESCRIPTION pLocationDescription = NULL;
if ( !IsRegionOpen() )
return NULL;
if ( !m_pData_MapPItem )
return NULL;
// Get location count
long nLocationCount = GetLocationCount();
if ( !nLocationCount )
return NULL;
// Get offset table
long *pOffsetList = (long*)m_pData_MapPItem;
long nOffset = pOffsetList[nLocation];
// Get PreRecord header
char *pData = m_pData_MapPItem + nLocationCount * sizeof(long) + nOffset;
LPLOCATION_PRERECORDHEADER pPreRecordHeader = (LPLOCATION_PRERECORDHEADER)pData;
// Get location header
pData += sizeof(LOCATION_PRERECORDHEADER)-1 + pPreRecordHeader->PreRecordCount * sizeof(LOCATION_PRERECORD);
LPLOCATION_HEADER pLocationHeader = (LPLOCATION_HEADER)pData;
// KLUDGE: Detect non-0x8000 locations
_ASSERT( 0x8000 == pLocationHeader->Type );
// Get Location PostRecord header
pData += sizeof(LOCATION_HEADER);
LPLOCATION_POSTRECORDHEADER pPostRecordHeader = (LPLOCATION_POSTRECORDHEADER)pData;
// Get Location Description
pData += sizeof(LOCATION_POSTRECORDHEADER)-1 + pLocationHeader->PostRecordCount * sizeof(LOCATION_POSTRECORD);
pLocationDescription = (LPLOCATION_DESCRIPTION)pData;
return pLocationDescription;
}/* GetLocationDescription */
bool BSAMaps::GetLocationBlockLayout( long nLocation, BSABlocks *pBlocks, LPLOCATION_BLOCKLAYOUT pBlockLayout )
{
_ASSERT( pBlocks );
_ASSERT( pBlockLayout );
if ( !IsRegionOpen() )
return false;
if ( !m_pData_MapPItem )
return false;
// Get location description
LPLOCATION_DESCRIPTION pLocationDescription = GetLocationDescription( nLocation );
// Write the block layout and flip y pos so it makes sense
long lBlock = -1;
pBlockLayout->nWidth = pLocationDescription->BlockWidth;
pBlockLayout->nHeight = pLocationDescription->BlockHeight;
for ( int y = 0; y < pLocationDescription->BlockHeight; y++ ) {
for ( int x = 0; x < pLocationDescription->BlockWidth; x ++ ) {
lBlock = ResolveBlockIndex( pBlocks, pLocationDescription, x, y );
pBlockLayout->Tiles[(pBlockLayout->nHeight-y-1)*pBlockLayout->nWidth + x] = lBlock;
/*
if ( -1 == (lBlock = ResolveBlockIndex( pBlocks, pLocationDescription, x, y )) )
return false;
else
pBlockLayout->Tiles[(pBlockLayout->nHeight-y-1)*pBlockLayout->nWidth + x] = lBlock;
*/
}
}
return true;
}/* GetLocationBlockLayout */
long BSAMaps::ResolveBlockIndex( BSABlocks *pBlocks, LPLOCATION_DESCRIPTION pDesc, int x, int y )
{
_ASSERT(pBlocks);
_ASSERT(pDesc);
// Get index information
int nOffset = y*pDesc->BlockWidth+x;
unsigned char FileIndex = pDesc->BlockFileIndex[nOffset];
unsigned char FileNumber = pDesc->BlockFileNumber[nOffset];
unsigned char FileChar = pDesc->BlockFileChar[nOffset];
// Resolve filename index
CString strIndex = FileIndices[FileIndex];
// Resolve filename character
// NOTE: This is highly experimental
CString strChar;
switch ( FileChar )
{
case 0x00:
case 0x01:
case 0x02:
case 0x03: // ??
case 0x04: // ??
case 0x05: // ??
case 0x06: // ??
case 0x07:
case 0x8F:
strChar = "AA";
break;
case 0x0F:
//_ASSERT(FALSE); // When is this used?
//strChar = "DA";
strChar = "AA";
break;
case 0x11:
_ASSERT(FALSE); // When is this used? - Kairou Cities
//strChar = "DA";
strChar = "AA";
break;
case 0x13:
//_ASSERT(FALSE); // When is this used?
//strChar = "DA";
strChar = "AA";
break;
case 0x15:
_ASSERT(FALSE); // When is this used?
//strChar = "DA";
strChar = "AA";
break;
case 0x1F:
//_ASSERT(FALSE); // When is this used?
//strChar = "DA";
switch ( FileIndex )
{
case 36: // MAGE
case 38: // DARK
case 39: // FIGH
strChar = "AA";
break;
default:
strChar = "GA";
}
break;
case 0x2F:
strChar = "AL";
break;
case 0x3F:
//_ASSERT(FALSE); // When is this used?
//strChar = "DL";
switch ( FileIndex )
{
case 39: // FIGH
strChar = "GL";
break;
default:
strChar = "AL";
}
break;
case 0x4F:
strChar = "AM";
break;
case 0x5F:
_ASSERT(FALSE); // When is this used?
strChar = "DM";
break;
case 0x6F:
strChar = "AS";
break;
case 0x7F:
_ASSERT(FALSE); // When is this used?
strChar = "DS";
break;
case 0x9F:
//_ASSERT(FALSE); // When is this used?
//strChar = "DA";
strChar = "GA";
break;
default:
_ASSERT(FALSE); // We have a mystery character
break;
}
// Format block filename
CString strName;
strName.Format( "%s%s%02d%s", strIndex.Left(4), strChar, FileNumber, strIndex.Right(4) );
// Resolve block ID from file name
long lBlock = pBlocks->ResolveBlockID( strName );
_ASSERT( lBlock != -1 );
return lBlock;
}/* ResolveBlockIndex */
//////////////////////////////////////////////////////////////////////
// BSABlocks Construction / Destruction
//////////////////////////////////////////////////////////////////////
BSABlocks::BSABlocks()
{
// Initialise
m_pRecordDirectory = NULL;
m_pFLD = NULL;
m_nBlockSubRecordCount = m_nOutsideBlockSubRecordCount = m_nInsideBlockSubRecordCount = 0;
}/* BSABlocks */
BSABlocks::~BSABlocks()
{
Close();
}/* ~BSABlocks */
//////////////////////////////////////////////////////////////////////
// BSABlocks Member Functions
//////////////////////////////////////////////////////////////////////
bool BSABlocks::Open( LPCSTR pszPath, BOOL bReadOnly/*=TRUE*/ )
{
// Open the blocm
if ( !BSAArchive::Open( pszPath, "BLOCKS.BSA", bReadOnly ) )
return false;
m_pRecordDirectory = m_pRecordDirectoryLong;
// Index all objects by ID
char sz[64];
UINT* pn;
//char r = 'a';
for ( long n = 0; n < NUM_UPPER_BLOCK_RECORD; n++ ) {
GetRecordDesc( n, sz, 64 );
pn = m_haObjectID.New( sz );
_ASSERT( pn ); // Tripped if duplicate found
*pn = n;
CString str(sz);
if ( str.Left( 4 ) == "GENR" ) {
int foo = 0;
}
/*
if ( !pn ) {
// Resolve conflict
strncat( sz, &r, 1 );
r++;
pn = m_haObjectID.New( sz );
_ASSERT( pn );
if ( pn ) {
*pn = n;
}
}
else {
// Set number
*pn = n;
}
*/
}
return true;
}/* Open */
void BSABlocks::Close()
{
if ( !IsOpen() )
return;
if ( IsBlockOpen() )
CloseBlock();
BSAArchive::Close();
// Initialise
m_pRecordDirectory = NULL;
m_haObjectID.Destroy();
}/* Close */
bool BSABlocks::OpenBlock( long nBlock )
{
// Archive must be open
if ( !IsOpen() )
return false;
// nBlock must be within limits
_ASSERT( nBlock >= 0 && nBlock <= GetRecordCount() );
// Close any existing object
if ( IsBlockOpen() )
CloseBlock();
// Page the record into RAM
char *pData;
long nLength = GetRecordLength( nBlock );
try {
pData = new char[nLength];
}
catch( ... ) {
return false;
}
if ( !pData ) return false;
if ( !GetRecord( nBlock, pData, nLength ) ) {
delete[] pData;
return false;
}
// Check filename, as only RMB objects are known at this time
char sz[64];
GetRecordDesc( nBlock, sz, 64 );
CString strFilename = sz;
if ( strFilename.Right(4) != ".RMB" ) {
delete[] pData;
return false;
}
// Set values
m_bIsBlockOpen = true;
m_pData = pData;
m_nDataLength = nLength;
m_pFLD = (LPRMBFLD)pData;
m_nCurBlock = nBlock;
m_nBlockSubRecordCount = m_pFLD->nSubRecords1;
return true;
}/* OpenBlock */
void BSABlocks::CloseBlock()
{
if ( !IsBlockOpen() )
return;
// Initialise
if ( m_pData ) {
delete[] m_pData;
m_pData = NULL;
}
m_nDataLength = 0;
m_bIsBlockOpen = false;
m_pFLD = NULL;
m_nBlockSubRecordCount = m_nOutsideBlockSubRecordCount = m_nInsideBlockSubRecordCount = 0;
}/* CloseObject */
LPRMB_BLOCKHEADER BSABlocks::GetOutsideBlockSubRecord( long nRecord )
{
_ASSERT( nRecord <= m_nBlockSubRecordCount );
if ( !IsBlockOpen() )
return NULL;
// Exit NULL if this block has no subrecords
if ( 0 == m_nBlockSubRecordCount ) {
return NULL;
}
// Compute offset to outside header
DWORD dwOffset = 0;
for ( long r = 0; r < nRecord; r++ ) {
dwOffset += m_pFLD->Offsets[r];
}
// Find start of specified outside header
char *pData = m_pData + sizeof(RMBFLD) + dwOffset;
return (LPRMB_BLOCKHEADER)pData;
}/* GetOutsideBlockSubRecord */
LPRMB_BLOCKHEADER BSABlocks::GetInsideBlockSubRecord( long nRecord )
{
// Get outside header for this subrecord
LPRMB_BLOCKHEADER pOutside = GetOutsideBlockSubRecord( nRecord );
if ( !pOutside )
return NULL;
// Compute offset to inside header
char *pData = (char*)pOutside;
pData += sizeof(RMB_BLOCKHEADER);
pData += sizeof(RMB_BLOCK3DOBJECTS) * pOutside->n3DObjectRecords;
pData += sizeof(RMB_BLOCKFLATOBJECTS) * pOutside->nFlatObjectsRecords;
pData += sizeof(RMB_BLOCKDATA3) * pOutside->nSection3Records;
pData += sizeof(RMB_BLOCKPEOPLEOBJECTS) * pOutside->nPeopleRecords;
pData += sizeof(RMB_BLOCKDOOROBJECTS) * pOutside->nDoorRecords;
return (LPRMB_BLOCKHEADER)pData;
}/* GetInsideBlockSubRecord */
LPRMB_BLOCK3DOBJECTS BSABlocks::GetBlockSubRecord3DObjects( LPRMB_BLOCKHEADER pBlockHeader )
{
_ASSERT( pBlockHeader );
if ( !IsBlockOpen() )
return NULL;
// Calculate offset to 3D objects
char *pData = (char*)pBlockHeader;
pData += sizeof(RMB_BLOCKHEADER);
return (LPRMB_BLOCK3DOBJECTS)pData;
}/* GetBlockSubRecord3DObjects */
LPRMB_BLOCK3DOBJECTS BSABlocks::GetBlock3DObjects()
{
if ( !IsBlockOpen() )
return NULL;
// Get start of data
char* pData = (char*)GetOutsideBlockSubRecord( m_nBlockSubRecordCount );
return (LPRMB_BLOCK3DOBJECTS)pData;
}/* GetBlock3DObjects */
bool BSABlocks::GetBlockAutomap( LPBLKIMG_AUTOMAP pAutomapOut )
{
// Validate
_ASSERT( pAutomapOut );
if ( !IsBlockOpen() )
return false;
// Locate automap pixel data
char *pImageRaw = m_pFLD->Automap;
// Set colors of image buffer in R8G8B8 format
int cx = 64;
int cy = 64;
for ( int y = 0; y < cy; y++ )
{
for ( int x = 0; x < cx; x++ )
{
// Determine palette index
unsigned char nIndex = pImageRaw[ y * 64 + x ];
// Extract the RGB colours for this pixel
unsigned char r = 200, g = 200, b = 200;
switch ( nIndex )
{
case 0x00:
r = g = b = 0;
break;
case 0x03:
r = 240;
g = 120;
b = 0;
break;
case 0x10:
r = 0;
g = 200;
b = 0;
break;
case 0x12:
case 0x13:
case 0x14:
r = 100;
g = 100;
b = 50;
break;
case 0x0e:
r = 1;
g = 1;
b = 1;
break;
case 0xfa:
case 0xfb:
r = 0;
g = 0;
b = 200;
break;
}
// Set the pixel colour
unsigned char *pOut = (unsigned char*)&pAutomapOut->pBuffer[(y*BLKSIZE_IMAGE_PITCH)+(x*3)];
pOut[0] = b;
pOut[1] = g;
pOut[2] = r;
}// end for ( x = 0; x < cx; x++ )
}// end for ( y = 0; y < cy; y++ )
return true;
}/* GetBlockAutomap */
long BSABlocks::ResolveBlockID( LPCSTR pszObjectID )
{
_ASSERT( pszObjectID );
// Resolve the ID
UINT *pu = m_haObjectID.GetObject( pszObjectID );
if ( !pu )
return -1;
return *pu;
}/* ResolveObjectID */
//////////////////////////////////////////////////////////////////////
// BSAArch3D Construction / Destruction
//////////////////////////////////////////////////////////////////////
BSAArch3D::BSAArch3D()
{
// Initialise
m_bIsObjectOpen = false;
m_pData = NULL;
m_nDataLength = 0;
m_pHeader = NULL;
m_pPointList = NULL;
m_pNormalList = NULL;
m_lVersion = 0;
m_pRecordDirectory = NULL;
}/* BSAArch3D */
BSAArch3D::~BSAArch3D()
{
Close();
}/* ~BSAArch3D */
//////////////////////////////////////////////////////////////////////
// BSAArch3D Member Functions
//////////////////////////////////////////////////////////////////////
bool BSAArch3D::Open( LPCSTR pszPath, BOOL bReadOnly/*=TRUE*/ )
{
if ( !BSAArchive::Open( pszPath, "ARCH3D.BSA", bReadOnly ) )
return false;
m_pRecordDirectory = m_pRecordDirectoryShort;
// Index all objects by ID
char sz[64];
UINT* pn;
char r = 'a';
for ( long n = 0; n < NUM_UPPER_ARCH3D_RECORD; n++ ) {
GetRecordDesc( n, sz, 64 );
pn = m_haObjectID.New( sz );
if ( !pn ) {
// Resolve conflict
strncat( sz, &r, 1 );
r++;
pn = m_haObjectID.New( sz );
_ASSERT( pn );
if ( pn ) {
*pn = n;
}
}
else {
// Set number
*pn = n;
}
}
return true;
}/* Open */
void BSAArch3D::Close()
{
if ( !IsOpen() )
return;
if ( IsObjectOpen() )
CloseObject();
BSAArchive::Close();
// Initialise
m_pRecordDirectory = NULL;
m_haObjectID.Destroy();
}/* Close */
bool BSAArch3D::OpenObject( long nObject )
{
// Archive must be open
if ( !IsOpen() )
return false;
// nObject must be within limits
_ASSERT( nObject >= 0 && nObject <= GetRecordCount() );
// Close any existing object
if ( IsObjectOpen() )
CloseObject();
// Page the record into RAM
char *pData;
long nLength = GetRecordLength( nObject );
try {
pData = new char[nLength];
}
catch( ... ) {
return false;
}
if ( !pData ) return false;
if ( !GetRecord( nObject, pData, nLength ) ) {
delete[] pData;
return false;
}
// Set values
m_nCurObject = nObject;
m_bIsObjectOpen = true;
m_pData = pData;
m_nDataLength = nLength;
m_pHeader = (LPARCH3D_HEADER)pData;
m_pPointList = (LPARCH3D_POINT)(pData + m_pHeader->nPointOffset);
m_pNormalList = (LPARCH3D_POINT)(pData + m_pHeader->nNormalOffset);
if ( 0 == strncmp( m_pHeader->szVersion, "v2.7", 4 ) )
m_lVersion = ARCH3DVERSION_27;
else if ( 0 == strncmp( m_pHeader->szVersion, "v2.6", 4 ) )
m_lVersion = ARCH3DVERSION_26;
else if ( 0 == strncmp( m_pHeader->szVersion, "v2.5", 4 ) )
m_lVersion = ARCH3DVERSION_25;
else
m_lVersion = ARCH3DVERSION_UNKNOWN;
return true;
}/* OpenObject */
void BSAArch3D::CloseObject()
{
if ( !IsObjectOpen() )
return;
// Initialise
if ( m_pData ) {
delete[] m_pData;
m_pData = NULL;
}
m_nDataLength = 0;
m_bIsObjectOpen = false;
m_pHeader = NULL;
m_pPointList = NULL;
m_pNormalList = NULL;
m_lVersion = 0;
}/* CloseObject */
float BSAArch3D::GetVersionAsFloat()
{
float fv = 0.0f;
switch ( m_lVersion )
{
case ARCH3DVERSION_25:
fv = 2.5f;
break;
case ARCH3DVERSION_26:
fv = 2.6f;
break;
case ARCH3DVERSION_27:
fv = 2.7f;
break;
default:
fv = 0.0f;
}
return fv;
}/* GetVersionAsFloat */
long BSAArch3D::GetFaceCount()
{
// Object must be open
if ( !IsObjectOpen() )
return 0;
return m_pHeader->nFaceCount;
}/* GetFaceCount */
LPARCH3D_FACE BSAArch3D::GetFace( int nFace )
{
// Object must be open
_ASSERT( IsObjectOpen() );
if ( !IsObjectOpen() )
return NULL;
// nFace must be within limits
_ASSERT( nFace < m_pHeader->nFaceCount );
// Locate face
int nFaceDataOffset = m_pHeader->nPointOffset + (m_pHeader->nPointCount * 12);
if ( nFaceDataOffset == m_pHeader->nNormalOffset ) {
return NULL;
}
LPARCH3D_FACE pFace = (LPARCH3D_FACE)(m_pData + nFaceDataOffset);
for ( int i = 0; i < nFace; i++ ) {
char *pWork = (char*)pFace;
pWork += (8 + (pFace->nPointCount * 8));
pFace = (LPARCH3D_FACE)pWork;
}
// Some faces on various objects seem to have malformed texture coordinates
// These faces are patched in memory here until I find out what's going on
// NOTE: Confirmed the game displays most of these malformed faces incorrectly also
// Possible it uses an in-memory patch similar to this one.
switch ( m_nCurObject )
{
case 5563:
if ( nFace == 45 ) PatchPointUV( pFace, 1, 1024, DFTOOL_NOPATCH );
break;
case 5571:
if ( nFace == 18 ) {
PatchPointUV( pFace, 0, 0, DFTOOL_NOPATCH );
PatchPointUV( pFace, 1, 0, DFTOOL_NOPATCH );
PatchPointUV( pFace, 3, 0, DFTOOL_NOPATCH );
}
break;
}
return pFace;
}/* GetFace */
bool BSAArch3D::GetFaceTexture( LPARCH3D_FACE pFace, long* pnArchiveOut, long* pnRecordOut )
{
// Object must be open
if ( !IsObjectOpen() )
return false;
// Out values cannot be NULL
_ASSERT( pnArchiveOut );
_ASSERT( pnRecordOut );
// pFace cannot be NULL
_ASSERT( pFace );
*pnRecordOut = pFace->nTexture & 0x7f;
*pnArchiveOut = (pFace->nTexture / 0x80);
return true;
}/* GetFaceTexture */
bool BSAArch3D::GetPureFaceUV( LPARCH3D_FACE pFace, LPSIZE uvOut )
{
// Object must be open
if ( !IsObjectOpen() )
return false;
// Out values cannot be NULL
_ASSERT( uvOut );
// pFace cannot be NULL
_ASSERT( pFace );
// pFace must have 3 or more points
_ASSERT( pFace->nPointCount >= 3 );
// Read UV settings from face
OBJVERTEX v;
for ( int p = 0; p < 3; p++ ) {
GetPoint( pFace, p, &v );
uvOut[p].cx = (long)v.tu;
uvOut[p].cy = (long)v.tv;
}
// Read point 4 from UV list if present
if ( pFace->nPointCount > 3 ) {
GetPoint( pFace, 3, &v );
uvOut[3].cx = (long)v.tu;
uvOut[3].cy = (long)v.tv;
}
else {
uvOut[3].cx = 0;
uvOut[3].cy = 0;
}
return true;
}/* GetPureFaceUV */
long BSAArch3D::GetPointCount( LPARCH3D_FACE pFace )
{
// Object must be open
if ( !IsObjectOpen() )
return 0;
// pFace cannot be NULL
_ASSERT( pFace );
return pFace->nPointCount;
}/* GetPointCount */
bool BSAArch3D::GetPoint( LPARCH3D_FACE pFace, int nPoint, LPOBJVERTEX pvOut )
{
// Object must be open
if ( !IsObjectOpen() )
return false;
// pvOut cannot be NULL
_ASSERT( pvOut );
// pFace cannot be NULL
_ASSERT( pFace );
// nPoint must be within limits
_ASSERT( nPoint < pFace->nPointCount );
// Locate other resources
LPARCH3D_POINTDESC pFacePointData = (LPARCH3D_POINTDESC)&pFace->Data;
LPARCH3D_POINTDESC pPointDesc = pFacePointData + nPoint;
// Output point information based on version
long nDivisor;
( GetVersion() == ARCH3DVERSION_25 ) ? nDivisor = 4 : nDivisor = 12;
GetDFFP( pvOut->pos.x, m_pPointList[pPointDesc->nOffset/nDivisor].x );
GetDFFP( pvOut->pos.y, m_pPointList[pPointDesc->nOffset/nDivisor].y );
GetDFFP( pvOut->pos.z, m_pPointList[pPointDesc->nOffset/nDivisor].z );
pvOut->normal.x = 0.0f;
pvOut->normal.y = 0.0f;
pvOut->normal.z = 0.0f;
short tu, tv;
tu = pPointDesc->tu;
tv = pPointDesc->tv;
/*
if ( tu > 16384 ) tu -= 32768;
if ( tu < -16384 ) tu += 32768;
if ( tv > 16384 ) tv -= 32768;
if ( tv < -16384 ) tv += 32768;
if ( tu > 8192 ) tu -= 16384;
if ( tu < -8192 ) tu += 16384;
if ( tv > 8192 ) tv -= 16384;
if ( tv < -8192 ) tv += 16384;
if ( tu > 4096 ) tu -= 8192;
if ( tu < -4096 ) tu += 8192;
if ( tv > 4096 ) tv -= 8192;
if ( tv < -4096 ) tv += 8192;
*/
pvOut->tu = (float)tu;
pvOut->tv = (float)tv;
return true;
}/* GetPoint */
bool BSAArch3D::PatchPointUV( LPARCH3D_FACE pFace, int nPoint, int U, int V )
{
// pFace cannot be NULL
_ASSERT( pFace );
// nPoint must be within limits
_ASSERT( nPoint < pFace->nPointCount );
// Locate other resources
LPARCH3D_POINTDESC pFacePointData = (LPARCH3D_POINTDESC)&pFace->Data;
LPARCH3D_POINTDESC pPointDesc = pFacePointData + nPoint;
// Patch U value
if ( U != DFTOOL_NOPATCH ) {
pPointDesc->tu = U;
}
// Patch V value
if ( V != DFTOOL_NOPATCH ) {
pPointDesc->tv = V;
}
return true;
}/* PatchPointUV */
long BSAArch3D::GetCornerPoints( LPARCH3D_FACE pFace, int* pCornerBuffer/*=NULL*/, LPOBJVERTEX pPointBuffer/*=NULL*/ )
{
// Object must be open
if ( !IsObjectOpen() )
return 0;
// pFace cannot be NULL
_ASSERT( pFace );
// Get point count
int nPoints = pFace->nPointCount;
// Must have greater than 3 points
_ASSERT( nPoints >= 3 );
// Get an export of the face
OBJVERTEX vArray[NUM_MAX_CORNER_POINTS];
for ( int p = 0; p < nPoints; p++ ) {
GetPoint( pFace, p, &vArray[p] );
// Scale vertex so very small faces (8906) don't get overlooked
vArray[p].pos.x *= 3;
vArray[p].pos.y *= 3;
vArray[p].pos.z *= 3;
}
// Step through points to count angles
int nAngles = 0, nCorner = 0;
float theta = 0.0f, costheta = 0.0f;
D3DXVECTOR3 v0, v1, v2, l0, l1;
for ( p = 0; p < nPoints; p++ ) {
// Determine angle between current vertex and next two vertices
if ( p < nPoints - 2 ) {
v0 = vArray[p].pos;
v1 = vArray[p+1].pos;
v2 = vArray[p+2].pos;
nCorner = p+1;
}
else if ( p < nPoints - 1 ) {
v0 = vArray[p].pos;
v1 = vArray[p+1].pos;
v2 = vArray[0].pos;
nCorner = p+1;
}
else {
v0 = vArray[p].pos;
v1 = vArray[0].pos;
v2 = vArray[1].pos;
nCorner = 0;
}
// Construct direction vertex for line0 and line1
l0 = v1 - v0;
l1 = v2 - v0;
// Obtain angle between direction vectors
costheta = D3DXVec3Dot(&l0,&l1) / (D3DXVec3Length(&l0) * D3DXVec3Length(&l1));
// Colinear lines have a costheta of 1.0f - threshold is lower to avoid precision errors
if ( costheta < 1.0f ) {
// Write this corner to a buffer
if ( pCornerBuffer ) {
pCornerBuffer[nAngles] = nCorner;
}
// Write this point to a buffer
if ( pPointBuffer ) {
GetPoint( pFace, nCorner, &pPointBuffer[nAngles] );
}
// Increment corner count
nAngles++;
}
}
return nAngles;
}/* GetCornerPoints */
bool BSAArch3D::ExportPureFace( LPARCH3D_FACE pFace, LPOBJVERTEX pvOut, int* pPointCountOut )
{
int nPoint;
int nFacePointCount = pFace->nPointCount;
int nCount = 0, nVertex = 0;
OBJVERTEX vStart, v0, v1;
// Object must be open
if ( !IsObjectOpen() )
return false;
// pvOut cannot be NULL
_ASSERT( pvOut );
// pFace cannot be NULL
_ASSERT( pFace );
// Obtain the point count of this face
GetPoint( pFace, 0, &vStart );
for ( nPoint = 0; nPoint < nFacePointCount - 1; nPoint++ )
{
GetPoint( pFace, nPoint, &v0 );
pvOut[nVertex].pos = -v0.pos;
pvOut[nVertex].normal = -v0.normal;
pvOut[nVertex].tu = 0.0f;
pvOut[nVertex].tv = 0.0f;
GetPoint( pFace, nPoint+1, &v1 );
pvOut[nVertex+1].pos = -v1.pos;
pvOut[nVertex+1].normal = -v1.normal;
pvOut[nVertex+1].tu = 0.0f;
pvOut[nVertex+1].tv = 0.0f;
nCount += 2;
nVertex += 2;
}
// Close polygon
pvOut[nVertex].pos = -v1.pos;
pvOut[nVertex].normal = -v1.normal;
pvOut[nVertex].tu = 0.0f;
pvOut[nVertex].tv = 0.0f;
pvOut[nVertex+1].pos = -vStart.pos;
pvOut[nVertex+1].normal = -vStart.normal;
pvOut[nVertex+1].tu = 0.0f;
pvOut[nVertex+1].tv = 0.0f;
nCount += 2;
*pPointCountOut = nCount;
return true;
}/* ExportPureFace */
bool BSAArch3D::ExportTriangulatedFace( LPARCH3D_FACE pFace, LPOBJVERTEX pvOut, int* pPointCountOut, LPSIZE pSrcSize/*=NULL*/, LPRECT pSubRect/*=NULL*/ )
{
// Validate
_ASSERT( pFace );
_ASSERT( pvOut );
_ASSERT( pPointCountOut );
// Object must be open
if ( !IsObjectOpen() )
return false;
// Get corner points
int CornerBuffer[NUM_MAX_CORNER_POINTS];
OBJVERTEX PointBuffer[NUM_MAX_CORNER_POINTS];
int nCornerCount = GetCornerPoints( pFace, CornerBuffer, PointBuffer );
// Set UV coordinates if texture dimensions are specified
if ( pSrcSize && pSubRect ) {
SetFaceUV( pFace, nCornerCount, PointBuffer, pSrcSize, pSubRect );
}
// Split corner points into triangles
int nFaceCount = 0, nCount = 0;
int s = 0, n = nCornerCount - 1;
while ( nFaceCount != (nCornerCount - 2) )
{
// Write triangle 1
pvOut[nCount].pos = -PointBuffer[s].pos;
pvOut[nCount].normal = -PointBuffer[s].normal;
pvOut[nCount].tu = PointBuffer[s].tu;
pvOut[nCount].tv = PointBuffer[s].tv;
pvOut[nCount+1].pos = -PointBuffer[n].pos;
pvOut[nCount+1].normal = -PointBuffer[n].normal;
pvOut[nCount+1].tu = PointBuffer[n].tu;
pvOut[nCount+1].tv = PointBuffer[n].tv;
pvOut[nCount+2].pos = -PointBuffer[s+1].pos;
pvOut[nCount+2].normal = -PointBuffer[s+1].normal;
pvOut[nCount+2].tu = PointBuffer[s+1].tu;
pvOut[nCount+2].tv = PointBuffer[s+1].tv;
nFaceCount++;
nCount += 3;
if ( nFaceCount == (nCornerCount - 2) )
break;
// Write triangle 2
pvOut[nCount].pos = -PointBuffer[s+1].pos;
pvOut[nCount].normal = -PointBuffer[s+1].normal;
pvOut[nCount].tu = PointBuffer[s+1].tu;
pvOut[nCount].tv = PointBuffer[s+1].tv;
pvOut[nCount+1].pos = -PointBuffer[n].pos;
pvOut[nCount+1].normal = -PointBuffer[n].normal;
pvOut[nCount+1].tu = PointBuffer[n].tu;
pvOut[nCount+1].tv = PointBuffer[n].tv;
pvOut[nCount+2].pos = -PointBuffer[n-1].pos;
pvOut[nCount+2].normal = -PointBuffer[n-1].normal;
pvOut[nCount+2].tu = PointBuffer[n-1].tu;
pvOut[nCount+2].tv = PointBuffer[n-1].tv;
s++;
n--;
nFaceCount++;
nCount += 3;
}
// Store values
*pPointCountOut = nCount;
return true;
}/* ExportTriangulatedFace */
//
// bool SetFaceUV( LPARCH3D_FACE pFace, long nCornerCount, LPOBJVERTEX pCornerVertexBuffer, LPSIZE pSrcSize, LPRECT pSubRect )
// Performs UV setup for the specified face
// Return: true if successful, otherwise false
//
bool BSAArch3D::SetFaceUV( LPARCH3D_FACE pFace, long nCornerCount, LPOBJVERTEX pCornerVertexBuffer, LPSIZE pSrcSize, LPRECT pSubRect )
{
// Validate
_ASSERT( nCornerCount >= 3 );
_ASSERT( pCornerVertexBuffer );
_ASSERT( pSrcSize );
_ASSERT( pSubRect );
// Get first four points of this face
OBJVERTEX verts[4];
GetPoint( pFace, 0, &verts[0] );
GetPoint( pFace, 1, &verts[1] );
GetPoint( pFace, 2, &verts[2] );
if ( pFace->nPointCount > 3 ) {
GetPoint( pFace, 3, &verts[3] );
}
else {
verts[3].pos = D3DXVECTOR3(0.0f, 0.0f, 0.0f);
verts[3].normal = D3DXVECTOR3(0.0f, 0.0f, 0.0f);
verts[3].tu = 0.0f;
verts[3].tv = 0.0f;
}
// Calculate absolute UV coordinates for point 1, 2
verts[1].tu += verts[0].tu;
verts[1].tv += verts[0].tv;
verts[2].tu += verts[1].tu;
verts[2].tv += verts[1].tv;
// Get texture dimensions and divisors
int nTextureWidth = pSubRect->right - pSubRect->left;
int nTextureHeight = pSubRect->bottom - pSubRect->top;
float fWidthDivisor = 16.0f * nTextureWidth;
float fHeightDivisor = 16.0f * nTextureHeight;
// Calculate smallest POW2 texture size and subregion
// This simulates the POW2 logic in Alchemy so we know how large the end texture will be
// This is neccessary because not all DF textures are POW2 and will be resized by Alchemy
int smx = 8, smy = 8;
while ( smx < (int)nTextureWidth ) smx *= 2;
while ( smy < (int)nTextureHeight ) smy *= 2;
float stu = (float)nTextureWidth / smx;
float stv = (float)nTextureHeight / smy;
// Triangles can be handled quickly and easily
long cnr;
if ( pFace->nPointCount == 3 && nCornerCount == 3 ) {
pCornerVertexBuffer[0].tu = verts[1].tu / fWidthDivisor;
pCornerVertexBuffer[0].tv = verts[1].tv / fHeightDivisor;
pCornerVertexBuffer[1].tu = verts[2].tu / fWidthDivisor;
pCornerVertexBuffer[1].tv = verts[2].tv / fHeightDivisor;
pCornerVertexBuffer[2].tu = verts[0].tu / fWidthDivisor;
pCornerVertexBuffer[2].tv = verts[0].tv / fHeightDivisor;
// Adjust UV to reference subregion of texture
for ( cnr = 0; cnr < nCornerCount; cnr++ ) {
pCornerVertexBuffer[cnr].tu *= stu;
pCornerVertexBuffer[cnr].tv *= stv;
#ifdef _DEBUG
// Look for overflow on subregion textures
if ( smx > nTextureWidth && pCornerVertexBuffer[cnr].tu > 1.0f ) _ASSERT(FALSE);
if ( smy > nTextureHeight && pCornerVertexBuffer[cnr].tv > 1.0f ) _ASSERT(FALSE);
#endif
}
return true;
}
// Use Dave Humphrey's matrix generator and solve for remaining corner points
DFFaceTex dft;
df3duvmatrix_t mat;
if ( dft.ComputeDFFaceTextureUVMatrix( mat, verts ) ) {
// Solve for each point in the corner array
float x, y, z;
for ( cnr = 0; cnr < nCornerCount; cnr++ ) {
// Get UV coordinates
x = pCornerVertexBuffer[cnr].pos.x;
y = pCornerVertexBuffer[cnr].pos.y;
z = pCornerVertexBuffer[cnr].pos.z;
pCornerVertexBuffer[cnr].tu = ((x*mat.UA) + (y*mat.UB) + (z*mat.UC) + mat.UD) / fWidthDivisor * stu;
pCornerVertexBuffer[cnr].tv = ((x*mat.VA) + (y*mat.VB) + (z*mat.VC) + mat.VD) / fHeightDivisor * stv;
#ifdef _DEBUG
// Look for overflow on subregion textures
if ( smx > nTextureWidth && pCornerVertexBuffer[cnr].tu > 1.0f ) _ASSERT(FALSE);
if ( smy > nTextureHeight && pCornerVertexBuffer[cnr].tv > 1.0f ) _ASSERT(FALSE);
#endif
}
}
else {
// Quads can be handled quickly and easily
if ( pFace->nPointCount == 4 && nCornerCount == 4 ) {
pCornerVertexBuffer[0].tu = verts[1].tu / fWidthDivisor;
pCornerVertexBuffer[0].tv = verts[1].tv / fHeightDivisor;
pCornerVertexBuffer[1].tu = verts[2].tu / fWidthDivisor;
pCornerVertexBuffer[1].tv = verts[2].tv / fHeightDivisor;
pCornerVertexBuffer[2].tu = verts[3].tu / fWidthDivisor;
pCornerVertexBuffer[2].tv = verts[3].tv / fHeightDivisor;
pCornerVertexBuffer[3].tu = verts[0].tu / fWidthDivisor;
pCornerVertexBuffer[3].tv = verts[0].tv / fHeightDivisor;
// Adjust UV to reference subregion of texture
for ( cnr = 0; cnr < nCornerCount; cnr++ ) {
pCornerVertexBuffer[cnr].tu *= stu;
pCornerVertexBuffer[cnr].tv *= stv;
#ifdef _DEBUG
// Look for overflow on subregion textures
if ( smx > nTextureWidth && pCornerVertexBuffer[cnr].tu > 1.0f ) _ASSERT(FALSE);
if ( smy > nTextureHeight && pCornerVertexBuffer[cnr].tv > 1.0f ) _ASSERT(FALSE);
#endif
}
return true;
}
// Fail back to my basic method for all other faces
// TODO: Use the techniques Dave emailed me to replace this call
return SetFaceUVOld( pFace, nCornerCount, pCornerVertexBuffer, pSrcSize, pSubRect );
//_ASSERT(FALSE);
}
return true;
}/* SetFaceUV */
//
// bool SetFaceUVOld( LPARCH3D_FACE pFace, long nCornerCount, LPOBJVERTEX pCornerVertexBuffer, LPSIZE pSrcSize, LPRECT pSubRect )
// Performs UV setup for the specified face
// Return: true if successful, otherwise false
// Note: This method is depreciated and is to be removed in the near future
//
bool BSAArch3D::SetFaceUVOld( LPARCH3D_FACE pFace, long nCornerCount, LPOBJVERTEX pCornerVertexBuffer, LPSIZE pSrcSize, LPRECT pSubRect )
{
// Validate
_ASSERT( nCornerCount >= 3 );
_ASSERT( pCornerVertexBuffer );
_ASSERT( pSrcSize );
_ASSERT( pSubRect );
// Get texture dimensions
int nTextureWidth = pSubRect->right - pSubRect->left;
int nTextureHeight = pSubRect->bottom - pSubRect->top;
// Get first three points of this face and calculate their UV values
OBJVERTEX p0, p1, p2;
GetPoint( pFace, 0, &p0 );
GetPoint( pFace, 1, &p1 );
GetPoint( pFace, 2, &p2 );
p0.tu = p0.tu / 16 / nTextureWidth;
p0.tv = p0.tv / 16 / nTextureHeight;
p1.tu = p1.tu / 16 / nTextureWidth + p0.tu;
p1.tv = p1.tv / 16 / nTextureHeight + p0.tv;
p2.tu = p2.tu / 16 / nTextureWidth + p1.tu;
p2.tv = p2.tv / 16 / nTextureHeight + p1.tv;
// Point 1 is always the first corner point (index 0 in the corner vertex buffer)
pCornerVertexBuffer[0].tu = p1.tu;
pCornerVertexBuffer[0].tv = p1.tv;
// Create vectors for difference between p0 and p2
OBJVERTEX vDif, vCmpDif;
vDif.tu = p2.tu - p0.tu;
vDif.tv = p2.tv - p0.tv;
vDif.pos = p2.pos - p0.pos;
// Start finding axis of smallest change by starting with Z
float valu, valv;
float fMinDif = (float)fabs(vDif.pos.z);
float *pDifU = &vDif.pos.x;
float *pDifV = &vDif.pos.y;
float *pCmpDifU = &vCmpDif.pos.x;
float *pCmpDifV = &vCmpDif.pos.y;
// Compare smallest with Y
if ( fabs(vDif.pos.y) < fMinDif ) {
fMinDif = (float)fabs(vDif.pos.y);
pDifU = &vDif.pos.x;
pDifV = &vDif.pos.z;
pCmpDifU = &vCmpDif.pos.x;
pCmpDifV = &vCmpDif.pos.z;
}
// Compare smallest with X
if ( fabs(vDif.pos.x) < fMinDif ) {
pDifU = &vDif.pos.z;
pDifV = &vDif.pos.y;
pCmpDifU = &vCmpDif.pos.z;
pCmpDifV = &vCmpDif.pos.y;
}
// Calculate UV for all remaining corner points
for ( long cnr = 1; cnr < nCornerCount; cnr++ ) {
// Create vector for difference between point cnr and p0
vCmpDif.pos = pCornerVertexBuffer[cnr].pos - p0.pos;
valu = (*pCmpDifU / *pDifU) * vDif.tu;
valv = (*pCmpDifV / *pDifV) * vDif.tv;
pCornerVertexBuffer[cnr].tu = p0.tu + valu;
pCornerVertexBuffer[cnr].tv = p0.tv + valv;
}
return true;
}/* SetFaceUVOld */
//
// bool SetPointUV( LPARCH3D_FACE pFace, int nPoint, short u, short v )
// Set UV values on the specified point
// Return: true if successful, otherwise FALSE
//
bool BSAArch3D::SetPointUV( LPARCH3D_FACE pFace, int nPoint, short u, short v )
{
// Object must be open
if ( !IsObjectOpen() )
return false;
// pFace cannot be NULL
_ASSERT( pFace );
// nPoint must be within limits
_ASSERT( nPoint < pFace->nPointCount );
// Locate other resources
LPARCH3D_POINTDESC pFacePointData = (LPARCH3D_POINTDESC)&pFace->Data;
LPARCH3D_POINTDESC pPointDesc = pFacePointData + nPoint;
// Set tu and tv for this point
pPointDesc->tu = u;
pPointDesc->tv = v;
return true;
}/* SetPointUV */
//
// bool SaveObject()
// Warning - this will save any changes made to the object in memory to ARCH3D.BSA
// Return: true if successful, otherwise false
//
bool BSAArch3D::SaveObject()
{
// Object must be open
if ( !IsObjectOpen() )
return false;
return SetRecord( m_nCurObject, m_pData, m_nDataLength );
}/* SaveObject */
//
// long ResolveObjectID( long ObjectID )
// Resolves an ObjectID to an object index number
// Return: The object ordinal if successful, otherwise -1
//
long BSAArch3D::ResolveObjectID( long nObjectID )
{
// Prepare the ObjectID string
CString str;
str.Format( "%d", nObjectID );
// Resolve the ID
UINT *pu = m_haObjectID.GetObject( str );
if ( !pu )
return -1;
return *pu;
}/* ResolveObjectID */
//////////////////////////////////////////////////////////////////////
// BSAArchive Construction / Destruction
//////////////////////////////////////////////////////////////////////
BSAArchive::BSAArchive()
{
// Initialise
m_dwLength = 0;
m_bIsOpen = false;
memset( &m_bsaHeader, 0, sizeof(BSA_ARCHIVEHEADER) );
m_nRecordDirectoryEntryLength = 0;
m_nRecordDirectoryType = 0;
m_nRecordCount = 0;
m_pRecordDirectoryLong = NULL;
m_pRecordDirectoryShort = NULL;
}/* BSAArchive */
BSAArchive::~BSAArchive()
{
Close();
}/* ~BSAArchive */
//////////////////////////////////////////////////////////////////////
// BSAArchive Member Functions
//////////////////////////////////////////////////////////////////////
bool BSAArchive::Open( LPCSTR pszPath, LPCSTR pszArchive, BOOL bReadOnly/*=TRUE*/ )
{
if ( IsOpen() )
Close();
// Open the archive
CString str = pszPath;
if ( str.Right(1) != "\\" ) str += "\\";
str += pszArchive;
if ( bReadOnly ) {
if ( !m_bsaFile.Open( str, CFile::modeRead | CFile::shareDenyNone | CFile::typeBinary ) )
return false;
}
else {
if ( !m_bsaFile.Open( str, CFile::modeReadWrite | CFile::shareDenyNone | CFile::typeBinary ) )
return false;
}
// Obtain file length
DWORD dwLength = (DWORD)m_bsaFile.GetLength();
// Read the header
m_bsaFile.SeekToBegin();
m_bsaFile.Read( &m_bsaHeader, sizeof(BSA_ARCHIVEHEADER) );
// Set values
m_strArena2Path = pszPath;
m_dwLength = dwLength;
m_bIsOpen = true;
m_nRecordCount = m_bsaHeader.nRecordCount;
m_nRecordDirectoryType = m_bsaHeader.nRecordType;
if ( BSA_RECORDTYPELONG == m_nRecordDirectoryType )
m_nRecordDirectoryEntryLength = BSARECORD_LENGTH_LONG;
else
m_nRecordDirectoryEntryLength = BSARECORD_LENGTH_SHORT;
// Page the directory into RAM
long nDirectoryLength = m_nRecordCount * m_nRecordDirectoryEntryLength;
char* pDirectory = new char[nDirectoryLength];
if ( !pDirectory ) {
Close();
return false;
}
m_bsaFile.Seek( -nDirectoryLength, CFile::end );
m_bsaFile.Read( pDirectory, nDirectoryLength );
if ( BSA_RECORDTYPELONG == m_nRecordDirectoryType )
m_pRecordDirectoryLong = (LPBSA_RECORDDIRECTORYLONG)pDirectory;
else
m_pRecordDirectoryShort = (LPBSA_RECORDDIRECTORYSHORT)pDirectory;
return true;
}/* Open */
void BSAArchive::Close()
{
if ( !IsOpen() )
return;
// Initialise
m_strArena2Path = "";
m_bsaFile.Close();
m_dwLength = 0;
m_bIsOpen = false;
memset( &m_bsaHeader, 0, sizeof(BSA_ARCHIVEHEADER) );
m_nRecordDirectoryEntryLength = 0;
m_nRecordDirectoryType = 0;
m_nRecordCount = 0;
if ( m_pRecordDirectoryLong ) {
delete[] m_pRecordDirectoryLong;
m_pRecordDirectoryLong = NULL;
}
if ( m_pRecordDirectoryShort ) {
delete[] m_pRecordDirectoryShort;
m_pRecordDirectoryShort = NULL;
}
}/* Close */
long BSAArchive::GetRecordLength( long nRecord )
{
if ( !IsOpen() )
return 0;
if ( BSA_RECORDTYPELONG == m_nRecordDirectoryType )
return m_pRecordDirectoryLong[nRecord].nSize;
else
return m_pRecordDirectoryShort[nRecord].nSize;
}/* GetRecordLength */
bool BSAArchive::GetRecord( long nRecord, char* pDataOut, long nLength )
{
if ( !IsOpen() )
return false;
// Validate
_ASSERT( pDataOut );
_ASSERT( nRecord < GetRecordCount() );
// Locate start of record
long record = 0;
DWORD dwOffset = sizeof(BSA_ARCHIVEHEADER);
while ( record < nRecord )
{
dwOffset += GetRecordLength( record++ );
}
// Read record into buffer
long nRecordLength = GetRecordLength( nRecord );
if ( nLength > nRecordLength ) nLength = nRecordLength;
m_bsaFile.Seek( dwOffset, CFile::begin );
m_bsaFile.Read( pDataOut, nLength );
return true;
}/* GetRecord */
bool BSAArchive::SetRecord( long nRecord, char *pDataIn, long nLength )
{
if ( !IsOpen() )
return false;
// Locate start of record
long record = 0;
DWORD dwOffset = sizeof(BSA_ARCHIVEHEADER);
while ( record < nRecord )
{
dwOffset += GetRecordLength( record++ );
}
// Validate
_ASSERT( pDataIn );
_ASSERT( nRecord < GetRecordCount() );
// Write record from buffer
long nRecordLength = GetRecordLength( nRecord );
_ASSERT( nLength == nRecordLength );
if ( nLength != nRecordLength ) return false;
m_bsaFile.Seek( dwOffset, CFile::begin );
m_bsaFile.Write( pDataIn, nLength );
return true;
}
bool BSAArchive::GetRecordDesc( long nRecord, char* pBufferOut, long nLength )
{
if ( !IsOpen() )
return FALSE;
// Validate
_ASSERT( pBufferOut );
_ASSERT( nRecord < GetRecordCount() );
if ( BSA_RECORDTYPELONG == m_nRecordDirectoryType )
{
// Copy record name to output buffer
strncpy( pBufferOut, m_pRecordDirectoryLong[nRecord].pszName, nLength );
}
else
{
// Format record ID into output buffer
char buffer[32];
memset( buffer, 0, 32 );
sprintf( buffer, "%d", m_pRecordDirectoryShort[nRecord].nID );
strncpy( pBufferOut, buffer, nLength );
}
return true;
}/* GetRecordDesc */
//////////////////////////////////////////////////////////////////////
// DTXArchive Construction / Destruction
//////////////////////////////////////////////////////////////////////
DTXArchive::DTXArchive()
{
// Initialise
m_pArchive = NULL;
m_dwLength = 0;
m_dwRecordCount = 0;
m_bIsOpen = m_bIsCreated = false;
m_pHeader = NULL;
m_pRecordDirectory = NULL;
}
DTXArchive::~DTXArchive()
{
Close();
}
//////////////////////////////////////////////////////////////////////
// DTXArchive Member Functions
//////////////////////////////////////////////////////////////////////
bool DTXArchive::Create( LPCSTR pszArena2Path )
{
// Open the palette
CString str;
CFile file;
str.Format( "%s\\%s", pszArena2Path, "PAL.PAL" );
if ( !file.Open( str, CFile::modeRead | CFile::shareDenyNone | CFile::typeBinary ) )
return false;
// Read the palette
file.Seek( 8, CFile::begin );
file.Read( (void*)&m_Palette, 768 );
file.Close();
/*
// KLUDGE: Try merging parts of another palette into the first 32 entries of PAL.PAL
str.Format( "%s\\%s", pszArena2Path, "PAL.RAW" );
if ( file.Open( str, CFile::modeRead | CFile::shareDenyNone | CFile::typeBinary ) ) {
char* pDst = (char*)&m_Palette;
// Read the palette
// 8, 104, 200, 296, 392, 488, 584, 680, 776
file.Seek( 8, CFile::begin );
file.Read( pDst + 3, 96 );
file.Close();
}
*/
m_strArena2Path = pszArena2Path;
m_bIsCreated = true;
return true;
}
bool DTXArchive::Open( LPCSTR pszArchive )
{
// Must be created
_ASSERT( m_bIsCreated );
_ASSERT( pszArchive );
if ( IsOpen() )
Close();
// Open the archive
CFile file;
CString str;
str.Format( "%s\\%s", m_strArena2Path, pszArchive );
if ( !file.Open( str, CFile::modeRead | CFile::shareDenyNone | CFile::typeBinary ) )
return false;
// Read the archive
DWORD dwLength = (DWORD)file.GetLength();
char *pArchive = new char[dwLength];
if ( !pArchive )
{
file.Close();
return false;
}
file.Read( pArchive, dwLength );
file.Close();
// Set values
m_dwLength = dwLength;
m_pArchive = pArchive;
m_strArchiveName = pszArchive;
m_bIsOpen = true;
m_pHeader = (LPDTX_ARCHIVEHEADER)pArchive;
m_pRecordDirectory = LPDTX_RECORDDIRECTORY(pArchive + sizeof(DTX_ARCHIVEHEADER));
m_dwRecordCount = m_pHeader->nRecords;
// Compose archive name
char pszBuffer[32];
memset( pszBuffer, 0, 32 );
strncpy( pszBuffer, m_pHeader->strName, 24 );
m_strArchiveDesc = pszBuffer;
m_strArchiveDesc.TrimLeft();
m_strArchiveDesc.TrimRight();
// Set solid flag
str = pszArchive;
if ( str == "TEXTURE.000" )
m_nSolidType = DTX_SOLIDA;
else if ( str == "TEXTURE.001" )
m_nSolidType = DTX_SOLIDB;
else
m_nSolidType = DTX_NOTSOLID;
return true;
}
void DTXArchive::Close()
{
if ( !IsOpen() )
return;
// Clean up
if ( m_pArchive ) delete[] m_pArchive;
m_pArchive = NULL;
m_dwLength = 0;
m_dwRecordCount = 0;
m_bIsOpen = false;
m_pHeader = NULL;
m_pRecordDirectory = NULL;
m_strArchiveName = "";
}
/*
BOOL DTXArchive::GetImageRect( DWORD dwRecord, DWORD dwImage, LPRECT pRectOut )
{
RECT rct;
int cx=0, cy=0;
// Validate
_ASSERT( IsOpen() );
_ASSERT( pRectOut );
_ASSERT( dwRecord < GetRecordCount() );
_ASSERT( dwImage <= GetImageCount(dwRecord) );
// Locate record in archive
DWORD dwOffset = m_pRecordDirectory[dwRecord].nOffset;
LPDTX_RECORDHEADER pRecordHeader = LPDTX_RECORDHEADER(m_pArchive + dwOffset);
// Locate record data
char *pData = (char*)pRecordHeader + pRecordHeader->nDataOffset;
// Start unpacking image
if ( pRecordHeader->nImages == 1 || pRecordHeader->Compression == DTX_IMAGERLE )
{
// Get image size
cx = pRecordHeader->cx;
cy = pRecordHeader->cy;
}
else if ( pRecordHeader->nImages > 1 )
{
// Locate image
LPDTX_IMAGEDIRECTORY pImageDirectory = (LPDTX_IMAGEDIRECTORY)pData;
char *p = (char*)pImageDirectory + pImageDirectory[dwImage].nOffset;
LPDTX_IMAGEDATA pImage = (LPDTX_IMAGEDATA)p;
// Get image size
cx = pImage->cx;
cy = pImage->cy;
}
rct.top = 0;
rct.left = 0;
rct.right = cx;
rct.bottom = cy;
*pRectOut = rct;
return TRUE;
}/* GetImageRect */
inline void DTXArchive::DecodeRLERows( char *pImageRaw, LPDTX_RECORDHEADER pRecordHeader, LPDTX_RLEROWDIRECTORY pRowDirectory, int cx, int cy )
{
unsigned char pixel=0;
// Read the RLE compressed image from the record data
for ( int y = 0; y < cy; y++ )
{
// Decode this row
char *p = (char*)pRecordHeader + pRowDirectory[y].nOffset;
LPDTX_RLEROWDATA pRow = (LPDTX_RLEROWDATA)p;
char *pRowData = &pRow->Data;
unsigned short nRowPos = 0;
while ( nRowPos < cx )
{
// Read compressed row
if ( pRowDirectory[y].Encoded == DTX_ROWENCODED )
{
LPDTX_RLEROWCHUNK pChunk = (LPDTX_RLEROWCHUNK)pRowData;
if ( pChunk->nCount > 0 )
{
// Stream non-RLE bytes
char* pPixelStream = (char*)&pChunk->Data;
short nCount = pChunk->nCount + nRowPos;
short k = 0;
for ( ; nRowPos < nCount; nRowPos++ )
{
pixel = pPixelStream[k++];
pImageRaw[y*256+nRowPos] = pixel;
}// end for ( ; nRowPos < pChunk->nCount; nRowPos++ )
pRowData += (2 + pChunk->nCount);
}
else
{
// Stream nCount RLE bytes of Data
pixel = pChunk->Data;
short nCount = -(pChunk->nCount) + nRowPos;
while ( nRowPos < nCount )
{
pImageRaw[y*256+nRowPos] = pixel;
nRowPos++;
}
pRowData += 3;
}// end if ( pChunk->nCount >= 0 )
}// end if ( pRowDirectory[y].Encoded == DTX_ROWENCODED )
else
{
// Offset pRow Data
pRowData -= 2;
// Read uncompressed row
for ( int x = 0; x < cx; x++ )
{
pixel = pRowData[x];
pImageRaw[y*256+x] = pixel;
nRowPos++;
}// end for ( x = 0; x < nWidth; x++ )
}// end if ( pRowDirectory[y].Encoded == DTX_ROWENCODED )
}// end while ( nRowPos < nWidth )
}// end for ( y = 0; y < cy; y++ )
}/* DecodeRLERows */
BOOL DTXArchive::GetImage( DWORD dwRecord, DWORD dwImage, LPDTX_IMAGEDESC pImageDescOut, char* pBitsOut/*=NULL*/, DWORD dwPitchInBytes/*=0*/ )
{
char pImageRaw[256*256];
char *pImageOut = NULL;
int x=0, y=0, cx=0, cy=0;
unsigned char pixel=0;
// Validate
_ASSERT( IsOpen() );
_ASSERT( pImageDescOut );
_ASSERT( dwRecord < GetRecordCount() );
_ASSERT( dwImage <= GetImageCount(dwRecord) );
// Prepare output location
if ( pBitsOut ) {
// If you specify another destination for bits, the pitch must be set
_ASSERT( dwPitchInBytes );
pImageOut = pBitsOut;
}
else {
// Set standard output location and pitch
pImageOut = pImageDescOut->pBuffer;
dwPitchInBytes = DTXSIZE_IMAGE_PITCH;
}
// Handle solid colour extraction
if ( m_nSolidType ) {
// Determine palette index
unsigned char nIndex = (unsigned char)dwRecord;
if ( DTX_SOLIDB == m_nSolidType ) {
// Offset to solid colours B
nIndex += 128;
}
// Extract the RGB colours for this pixel
char r = m_Palette.colour[nIndex].r;
char g = m_Palette.colour[nIndex].g;
char b = m_Palette.colour[nIndex].b;
unsigned char *pOut = NULL;
cx = cy = DFTOOL_SOLIDTEXTURESIZE;
for ( y = 0; y < cy; y++ )
{
for ( x = 0; x < cx; x++ )
{
// Set the pixel colour
pOut = (unsigned char*)&pImageOut[(y*dwPitchInBytes)+(x*3)];
pOut[0] = b;
pOut[1] = g;
pOut[2] = r;
}// end for ( x = 0; x < cx; x++ )
}// end for ( y = 0; y < cy; y++ )
return TRUE;
}
// Locate record in archive
DWORD dwOffset = m_pRecordDirectory[dwRecord].nOffset;
LPDTX_RECORDHEADER pRecordHeader = LPDTX_RECORDHEADER(m_pArchive + dwOffset);
// Locate record data
char *pData = (char*)pRecordHeader + pRecordHeader->nDataOffset;
// Start unpacking image
if ( pRecordHeader->nImages == 1 )
{
// Get image size
cx = pRecordHeader->cx;
cy = pRecordHeader->cy;
if ( pRecordHeader->Compression == DTX_RECORDRLE || pRecordHeader->Compression == DTX_IMAGERLE )
{
// Locate the row directory
LPDTX_RLEROWDIRECTORY pRowDirectory = (LPDTX_RLEROWDIRECTORY)pData;
// Decode rows
DecodeRLERows( pImageRaw, pRecordHeader, pRowDirectory, cx, cy );
}
else
{
// Read a single image from record data
for ( y = 0; y < cy; y++ )
{
for ( x = 0; x < cx; x++ )
{
pixel = pData[y*256+x];
pImageRaw[y*256+x] = pixel;
}// end for ( int x = 0; x < cx; x++ )
}// end for ( int y = 0; y < cy; y++ )
}// end if ( pRecordHeader->Compression == DTX_RECORDRLE )
}
else if ( pRecordHeader->nImages > 1 )
{
// Locate image
LPDTX_IMAGEDIRECTORY pImageDirectory = (LPDTX_IMAGEDIRECTORY)pData;
char *p = (char*)pImageDirectory + pImageDirectory[dwImage].nOffset;
LPDTX_IMAGEDATA pImage = (LPDTX_IMAGEDATA)p;
char *pImageData = &pImage->Data;
// Get image size
cx = pRecordHeader->cx;
cy = pRecordHeader->cy;
if ( pRecordHeader->Compression == DTX_IMAGERLE )
{
// Locate the row directory
char *p = (char*)pData + ((cy * dwImage) * sizeof(DTX_RLEROWDIRECTORY));
LPDTX_RLEROWDIRECTORY pRowDirectory = (LPDTX_RLEROWDIRECTORY)p;
// Decode rows
DecodeRLERows( pImageRaw, pRecordHeader, pRowDirectory, cx, cy );
}
else
{
// Read image nImage from record data
int run, pos = 0;
for ( y = 0; y < cy; y++ )
{
x = 0;
while ( x < cx )
{
// Write transparent bytes
pixel = pImageData[pos++];
run = x + pixel;
for ( ; x < run; x++ )
{
pImageRaw[y*256+x] = 0;
}
// Write image bytes
pixel = pImageData[pos++];
run = x + pixel;
for ( ; x < run; x++ )
{
pixel = pImageData[pos++];
pImageRaw[y*256+x] = pixel;
}
}// end while ( x < cx )
}// end for ( y = 0; y < cy; y++ )
}
}// end if ( pRecordHeader->nImages == 1 )
// Set dimensions of image
pImageDescOut->cx = cx;
pImageDescOut->cy = cy;
// Set colors of image buffer in R8G8B8 format
for ( y = 0; y < cy; y++ )
{
for ( x = 0; x < cx; x++ )
{
// Determine palette index
unsigned char nIndex = pImageRaw[ y * 256 + x ];
// Extract the RGB colours for this pixel
char r = m_Palette.colour[nIndex].r;
char g = m_Palette.colour[nIndex].g;
char b = m_Palette.colour[nIndex].b;
// Set the pixel colour
unsigned char *pOut = (unsigned char*)&pImageOut[(y*dwPitchInBytes)+(x*3)];
pOut[0] = b;
pOut[1] = g;
pOut[2] = r;
}// end for ( x = 0; x < cx; x++ )
}// end for ( y = 0; y < cy; y++ )
return TRUE;
}/* GetImage */
//////////////////////////////////////////////////////////////////////
// CIFArchive Construction / Destruction
//////////////////////////////////////////////////////////////////////
CIFArchive::CIFArchive()
{
// Initialise
m_pArchive = NULL;
m_dwLength = 0;
m_bIsOpen = FALSE;
m_dwLastRecordCount = 0;
}/* CIFArchive */
CIFArchive::~CIFArchive()
{
Close();
}/* ~CIFArchive */
//////////////////////////////////////////////////////////////////////
// CIFArchive Member Functions
//////////////////////////////////////////////////////////////////////
//
// BOOL Open( LPCSTR pszPath, LPCSTR pszArchive )
// Open the specified CIF archive
// Return: TRUE if successful, otherwise FALSE
//
BOOL CIFArchive::Open( LPCSTR pszPath, LPCSTR pszArchive )
{
CFile file;
CString str;
if ( IsOpen() )
Close();
// Open the archive
str.Format( "%s\\%s", pszPath, pszArchive );
if ( !file.Open( str, CFile::modeRead | CFile::shareDenyNone | CFile::typeBinary ) )
return FALSE;
// Read the archive
DWORD dwLength = (DWORD)file.GetLength();
char *pArchive = new char[dwLength];
if ( !pArchive ) {
file.Close();
return FALSE;
}
file.Read( pArchive, dwLength );
file.Close();
// Set palette
char szPalette[16];
strcpy( szPalette, "ART_PAL.COL" );
// Read palette
CString strPalette;
strPalette.Format( "%s\\%s", pszPath, szPalette );
if ( !file.Open( strPalette, CFile::modeRead | CFile::shareDenyNone | CFile::typeBinary ) ) {
delete[] pArchive;
return FALSE;
}
// Read the palette
if ( strPalette.Right( 3 ) == "PAL" ) {
file.Read( (void*)&m_Palette, 768 );
}
else if ( strPalette.Right( 3 ) == "COL" )
{
file.Seek( 8, CFile::begin );
file.Read( (void*)&m_Palette, 768 );
}
else {
file.Close();
delete[] pArchive;
return FALSE;
}
file.Close();
// Set values
m_strArena2Path = pszPath;
m_strArchiveName = pszArchive;
m_strArchiveName.MakeUpper();
m_dwLength = dwLength;
m_pArchive = pArchive;
m_bIsOpen = TRUE;
return true;
}/* Open */
//
// void Close()
// Close the currently open CIF archive
//
void CIFArchive::Close()
{
if ( !IsOpen() )
return;
// Clean up
if ( m_pArchive ) {
delete[] m_pArchive;
m_pArchive = NULL;
}
// Initialise
m_dwLength = 0;
m_bIsOpen = FALSE;
m_strArena2Path.Empty();
m_strArchiveName.Empty();
m_dwLastRecordCount = 0;
}/* Close */
//
// BOOL GetImage( LPCIF_RECORDDESC pCIFArchDescInOut )
// Scan for first / next CIF image in specified archive
// Return: TRUE if successful, otherwise FALSE
//
BOOL CIFArchive::GetImage( LPCIF_RECORDDESC pCIFArchDescInOut )
{
// Validate
_ASSERT( pCIFArchDescInOut );
// Must be open
if ( !IsOpen() ) {
return FALSE;
}
// Get offset
DWORD dwOffset = pCIFArchDescInOut->dwOffset;
// Locate header
char *pb = m_pArchive + dwOffset;
LPIMG_HEADER pHeader = (LPIMG_HEADER)pb;
// This assertion will be tripped if the specified offset is larger than memory buffer
_ASSERT( dwOffset <= m_dwLength );
// This assertion will be tripped if memory buffer is not greater than IMG_HEADER in length
_ASSERT( m_dwLength > sizeof(IMG_HEADER) );
// If less than IMG_HEADER bytes remain in memory buffer then all images have been found
if ( (m_dwLength - dwOffset) < sizeof(IMG_HEADER) ) {
pCIFArchDescInOut->dwOffset = 0;
pCIFArchDescInOut->bFinished = TRUE;
m_dwLastRecordCount = pCIFArchDescInOut->nCurImage + 1;
return TRUE;
}
// Handle FACES.CIF and TFAC00I0.RCI and CHLD00I0.RCI (These are the known portrait types, all using the same format)
if ( m_strArchiveName == "FACES.CIF" || m_strArchiveName == "TFAC00I0.RCI" || m_strArchiveName == "CHLD00I0.RCI" ) {
// Transfer properties to pCIFArchDescInOut
pCIFArchDescInOut->Compression = 0;
pCIFArchDescInOut->cx = 64;
pCIFArchDescInOut->cy = 64;
pCIFArchDescInOut->bFinished = FALSE;
(dwOffset) ? pCIFArchDescInOut->nCurImage++ : pCIFArchDescInOut->nCurImage = 0;
// Get this image
DecodeImage( pCIFArchDescInOut, m_pArchive + dwOffset );
// Update dwOffset to next image
pCIFArchDescInOut->dwOffset += (64 * 64);
return TRUE;
}// end if ( m_strArchiveName == "FACES.CIF" || m_strArchiveName == "TFAC00I0.RCI" || m_strArchiveName == "CHLD00I0.RCI" )
// Handle BUTTONS.RCI
if ( m_strArchiveName == "BUTTONS.RCI" ) {
// Transfer properties to pCIFArchDescInOut
pCIFArchDescInOut->Compression = 0;
pCIFArchDescInOut->cx = 32;
pCIFArchDescInOut->cy = 16;
pCIFArchDescInOut->bFinished = FALSE;
(dwOffset) ? pCIFArchDescInOut->nCurImage++ : pCIFArchDescInOut->nCurImage = 0;
// Get this image
DecodeImage( pCIFArchDescInOut, m_pArchive + dwOffset );
// Update dwOffset to next image
pCIFArchDescInOut->dwOffset += (32 * 16);
return TRUE;
}// end if ( m_strArchiveName == "BUTTONS.RCI" )
// Handle MPOP.RCI
if ( m_strArchiveName == "MPOP.RCI" ) {
// Transfer properties to pCIFArchDescInOut
pCIFArchDescInOut->Compression = 0;
pCIFArchDescInOut->cx = 17;
pCIFArchDescInOut->cy = 17;
pCIFArchDescInOut->bFinished = FALSE;
(dwOffset) ? pCIFArchDescInOut->nCurImage++ : pCIFArchDescInOut->nCurImage = 0;
// Get this image
DecodeImage( pCIFArchDescInOut, m_pArchive + dwOffset );
// Update dwOffset to next image
pCIFArchDescInOut->dwOffset += (17 * 17);
return TRUE;
}// end if ( m_strArchiveName == "MPOP.RCI" )
// Handle SPOP.RCI
if ( m_strArchiveName == "SPOP.RCI" ) {
// Transfer properties to pCIFArchDescInOut
pCIFArchDescInOut->Compression = 0;
pCIFArchDescInOut->cx = 22;
pCIFArchDescInOut->cy = 22;
pCIFArchDescInOut->bFinished = FALSE;
(dwOffset) ? pCIFArchDescInOut->nCurImage++ : pCIFArchDescInOut->nCurImage = 0;
// Get this image
DecodeImage( pCIFArchDescInOut, m_pArchive + dwOffset );
// Update dwOffset to next image
pCIFArchDescInOut->dwOffset += (22 * 22);
return TRUE;
}// end if ( m_strArchiveName == "SPOP.RCI" )
// Handle NOTE.RCI
if ( m_strArchiveName == "NOTE.RCI" ) {
// Transfer properties to pCIFArchDescInOut
pCIFArchDescInOut->Compression = 0;
pCIFArchDescInOut->cx = 44;
pCIFArchDescInOut->cy = 9;
pCIFArchDescInOut->bFinished = FALSE;
(dwOffset) ? pCIFArchDescInOut->nCurImage++ : pCIFArchDescInOut->nCurImage = 0;
// Get this image
DecodeImage( pCIFArchDescInOut, m_pArchive + dwOffset );
// Update dwOffset to next image
pCIFArchDescInOut->dwOffset += (44 * 9);
return TRUE;
}// end if ( m_strArchiveName == "NOTE.RCI" )
// Handle weapon CIF files
if ( m_strArchiveName.Left(5) == "WEAPO" ) {
// Handle first image
if ( 0 == pCIFArchDescInOut->nCurImage ) {
if ( m_strArchiveName != "WEAPON09.CIF" ) {
// Transfer properties to pCIFArchDescInOut
pCIFArchDescInOut->nSubImage = 0;
pCIFArchDescInOut->cx = pHeader->cx;
pCIFArchDescInOut->cy = pHeader->cy;
pCIFArchDescInOut->bFinished = FALSE;
pCIFArchDescInOut->Compression = 0;
pCIFArchDescInOut->bWeaponGroup = FALSE;
pCIFArchDescInOut->bFirstInGroup = FALSE;
// Get this image
DecodeImage( pCIFArchDescInOut, &pHeader->Data );
// Update dwOffset to next image, subtract one to account for bogus Data entry in header
pCIFArchDescInOut->dwOffset += ((sizeof(IMG_HEADER) - 1) + pHeader->nImageSize);
}
// Increment image count
pCIFArchDescInOut->nCurImage++;
}
else {
// Set first in group flag
if ( 0 == pCIFArchDescInOut->nSubImage )
pCIFArchDescInOut->bFirstInGroup = TRUE;
else
pCIFArchDescInOut->bFirstInGroup = FALSE;
// Handle subsequent images
LPCIF_WEAPONHEADER pWeaponHeader = (LPCIF_WEAPONHEADER)pHeader;
// Transfer properties to pCIFArchDescInOut
pCIFArchDescInOut->cx = pWeaponHeader->cx;
pCIFArchDescInOut->cy = pWeaponHeader->cy;
pCIFArchDescInOut->bFinished = FALSE;
pCIFArchDescInOut->Compression = CIF_WEAPONGROUP;
pCIFArchDescInOut->bWeaponGroup = TRUE;
pb = (char*)pHeader;
pb += pWeaponHeader->OffsetList[pCIFArchDescInOut->nSubImage];
DecodeImage( pCIFArchDescInOut, pb );
// Increment subimage count
pCIFArchDescInOut->nSubImage++;
// Test for group end
if ( pWeaponHeader->OffsetList[pCIFArchDescInOut->nSubImage] < 1 ) {
// Test for end of group images
if ( pWeaponHeader->OffsetList[31] < 1 ) {
pCIFArchDescInOut->bFinished = TRUE;
m_dwLastRecordCount = pCIFArchDescInOut->nCurImage + 1;
return TRUE;
}
// Locate next group header
pCIFArchDescInOut->dwOffset += pWeaponHeader->OffsetList[31];
pCIFArchDescInOut->nCurImage++;
pCIFArchDescInOut->nSubImage = 0;
}
}// end if ( 0 == pCIFArchDescInOut->nCurImage )
return TRUE;
}// end if ( m_strArchiveName.Left(5) == "WEAPO" )
// Transfer properties to pCIFArchDescInOut
pCIFArchDescInOut->Compression = pHeader->Compression;
pCIFArchDescInOut->cx = pHeader->cx;
pCIFArchDescInOut->cy = pHeader->cy;
pCIFArchDescInOut->bFinished = FALSE;
(dwOffset) ? pCIFArchDescInOut->nCurImage++ : pCIFArchDescInOut->nCurImage = 0;
// Get this image
DecodeImage( pCIFArchDescInOut, &pHeader->Data );
// Update dwOffset to next image, subtract one to account for bogus Data entry in header
pCIFArchDescInOut->dwOffset += ((sizeof(IMG_HEADER) - 1) + pHeader->nImageSize);
return TRUE;
}/* GetImage */
//
// BOOL DecodeImage( LPCIF_RECORDDESC pCIFArchDesc, char *pData )
// Read the specified image
// Return: TRUE if successful, otherwise FALSE
//
inline BOOL CIFArchive::DecodeImage( LPCIF_RECORDDESC pCIFArchDesc, char *pData )
{
// Validate
_ASSERT( pCIFArchDesc );
_ASSERT( pData );
// Locate start of raw image data
char *pImageRaw = NULL;
char *pImageBuffer = NULL;
if ( CIF_COMPRESSED == pCIFArchDesc->Compression ) {
// Locate header
char *pb = m_pArchive + pCIFArchDesc->dwOffset;
LPIMG_HEADER pHeader = (LPIMG_HEADER)pb;
// Decode the RLE image into a buffer
pImageBuffer = new char[pCIFArchDesc->cx * pCIFArchDesc->cy];
if ( !pImageBuffer ) return FALSE;
DecodeRLEImage( pImageBuffer, pCIFArchDesc->cx, pCIFArchDesc->cy, &pHeader->Data );
pImageRaw = pImageBuffer;
}
else if ( CIF_WEAPONGROUP == pCIFArchDesc->Compression ) {
// Decode the RLE image into a buffer
pImageBuffer = new char[pCIFArchDesc->cx * pCIFArchDesc->cy];
if ( !pImageBuffer ) return FALSE;
DecodeRLEImage( pImageBuffer, pCIFArchDesc->cx, pCIFArchDesc->cy, pData );
pImageRaw = pImageBuffer;
}
else {
// Simply point to the image data
pImageRaw = pData;
}
// Set colors of output image buffer in R8G8B8 format
for ( int y = 0; y < pCIFArchDesc->cy; y++ )
{
for ( int x = 0; x < pCIFArchDesc->cx; x++ )
{
// Determine palette index
unsigned char nIndex = pImageRaw[ (y * pCIFArchDesc->cx) + x ];
// Extract the RGB colours for this pixel
char r = m_Palette.colour[nIndex].r;
char g = m_Palette.colour[nIndex].g;
char b = m_Palette.colour[nIndex].b;
// Set the pixel colour
unsigned char *pOut = (unsigned char*)&pCIFArchDesc->pBuffer[(y*CIFSIZE_IMAGE_PITCH)+(x*3)];
pOut[0] = b;
pOut[1] = g;
pOut[2] = r;
}// end for ( x = 0; x < cx; x++ )
}// end for ( y = 0; y < cy; y++ )
// Clean up
if ( pImageBuffer ) {
delete[] pImageBuffer;
}
return TRUE;
}/* DecodeImage */
//
// void DecodeRLEImage( char *pImageRaw, int cx, int cy, char* pDataIn )
// Decode a RLE compressed image
//
inline void CIFArchive::DecodeRLEImage( char *pDataOut, int cx, int cy, char* pDataIn )
{
// Validate
_ASSERT( pDataOut );
_ASSERT( pDataIn );
// Read RLE compressed image from the raw data
int nCount = 0;
unsigned char code = 0;
char* pData = pDataIn;
DWORD dwPos = 0, dwLength = cx * cy;
while ( dwPos < dwLength ) {
// Decode image pixels into buffer
code = pData[0];
pData++;
if ( code > 127 ) {
// Stream RLE bytes
for ( nCount = 0; nCount < code - 127; nCount++ ) {
pDataOut[dwPos++] = pData[0];
}
pData++;
}
else {
// Stream non-RLE bytes
for ( nCount = 0; nCount < code + 1; nCount++ ) {
pDataOut[dwPos++] = pData[0];
pData++;
}
}// end if ( pChunk->nCount > 0 )
_ASSERT( dwPos <= dwLength );
}// while ( dwPos < dwLength )
}/* DecodeRLEImage */
//////////////////////////////////////////////////////////////////////
// CDaggerTool Construction / Destruction
//////////////////////////////////////////////////////////////////////
CDaggerTool::CDaggerTool()
{
// Initialise
m_bArena2Open = FALSE;
}
CDaggerTool::~CDaggerTool()
{
CloseArena2();
}
//////////////////////////////////////////////////////////////////////
// CDaggerTool Member Functions
//////////////////////////////////////////////////////////////////////
//
// BOOL OpenArena2( LPCSTR pszPath, BOOL bReadOnly = TRUE )
// Open Arena2 media path
// Return: TRUE if successful, otherwise FALSE
//
BOOL CDaggerTool::OpenArena2( LPCSTR pszPath, BOOL bReadOnly/*=TRUE*/ )
{
// Validate
_ASSERT( pszPath );
// Test Arena2 path
if ( !TestArena2Path( pszPath ) )
return FALSE;
// Close existing
if ( IsArena2Open() )
CloseArena2();
// Create DTXArchive
if ( !m_dtxArchive.Create( pszPath ) )
return FALSE;
// Open ARCH3D.BSA for general use
if ( !m_Arch3D.Open( pszPath, bReadOnly ) ) {
return FALSE;
}
// Open BLOCKS.BSA for general use
if ( !m_ArchBlocks.Open( pszPath, bReadOnly ) ) {
m_Arch3D.Close();
return FALSE;
}
// Open MAPS.BSA for general use
if ( !m_ArchMaps.Open( pszPath, bReadOnly ) ) {
m_ArchBlocks.Close();
m_Arch3D.Close();
return FALSE;
}
// Store path
m_strArena2Path = pszPath;
// Set flags
m_bArena2Open = TRUE;
return TRUE;
}/* OpenArena2 */
//
// void CloseArena2()
// Close an open Arena2 path
//
void CDaggerTool::CloseArena2()
{
if ( !IsArena2Open() )
return;
// Initialise
m_bArena2Open = FALSE;
m_strArena2Path = "";
m_dtxArchive.Close();
m_Arch3D.Close();
m_ArchBlocks.Close();
m_ArchMaps.Close();
}/* CloseArena2 */
//
// BOOL TestArena2Path( LPCSTR pszPath )
// Test Arena2 path for validity
// Return: TRUE if valid, otherwise FALSE
//
BOOL CDaggerTool::TestArena2Path( LPCSTR pszPath )
{
// KLUDGE: These basic tests must be enhanced
// Test for existance of WOODS.WLD
CString strPath = pszPath;
strPath += "\\woods.wld";
CFile file;
if ( !file.Open( strPath, CFile::modeRead | CFile::shareDenyNone | CFile::typeBinary ) )
{
return FALSE;
}
else
{
file.Close();
}
return TRUE;
}/* TestArena2Path */
//
// BOOL OpenTextureArchive( LPCSTR pszName )
// Helper method to open a texture archive
// Return: TRUE if successful, otherwise FALSE
//
BOOL CDaggerTool::OpenTextureArchive( LPCSTR pszName )
{
// Attempt to open the archive
return m_dtxArchive.Open( pszName );
}/* OpenTextureArchive */
//
// BOOL OpenCIFArchive( LPCSTR pszName )
// Helper method to open a CIF archive
// Return: TRUE if successful, otherwise FALSE
//
BOOL CDaggerTool::OpenCIFArchive( LPCSTR pszName )
{
// Attempt to open the archive
return m_cifArchive.Open( m_strArena2Path, pszName );
}/* OpenCIFArchive */
//
// BOOL GetIMGDesc( LPCSTR pszName, LPIMG_IMAGEDESC pIMGDescOut )
// Get description of specified IMG image
// Return: TRUE if successful, otherwise FALSE
//
BOOL CDaggerTool::GetIMGDesc( LPCSTR pszName, LPIMG_IMAGEDESC pIMGDescOut )
{
// Validate
_ASSERT( pszName );
_ASSERT( pIMGDescOut );
// Open IMG file
CFile file;
CString strPath;
strPath.Format( "%s\\%s", m_strArena2Path, pszName );
if ( !file.Open( strPath, CFile::modeRead | CFile::shareDenyNone | CFile::typeBinary ) )
return FALSE;
// Read the file into memory
DWORD dwLength = (DWORD)file.GetLength();
char *pBuffer = new char[dwLength];
if ( !pBuffer ) {
file.Close();
return FALSE;
}
else {
if ( dwLength != file.Read( pBuffer, dwLength ) ) {
delete[] pBuffer;
file.Close();
return FALSE;
}
}
file.Close();
// Acquire header
LPIMG_HEADER pHeader = (LPIMG_HEADER)pBuffer;
// Set image dimensions
switch ( dwLength )
{
case 720:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 9;
pIMGDescOut->dwHeight = 80;
break;
case 990:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 45;
pIMGDescOut->dwHeight = 22;
break;
case 1720:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 43;
pIMGDescOut->dwHeight = 40;
break;
case 2140:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 107;
pIMGDescOut->dwHeight = 20;
break;
case 2916:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 81;
pIMGDescOut->dwHeight = 36;
break;
case 3200:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 40;
pIMGDescOut->dwHeight = 80;
break;
case 3938:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 179;
pIMGDescOut->dwHeight = 22;
break;
case 4280:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 107;
pIMGDescOut->dwHeight = 40;
break;
case 4508:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 322;
pIMGDescOut->dwHeight = 14;
break;
case 20480:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 320;
pIMGDescOut->dwHeight = 64;
break;
case 26496:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 184;
pIMGDescOut->dwHeight = 144;
break;
case 64000:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 320;
pIMGDescOut->dwHeight = 200;
break;
case 64768:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = TRUE;
pIMGDescOut->dwWidth = 320;
pIMGDescOut->dwHeight = 200;
break;
case 68800:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 320;
pIMGDescOut->dwHeight = 215;
break;
case 112128:
pIMGDescOut->bHeader = FALSE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = 512;
pIMGDescOut->dwHeight = 219;
break;
default:
pIMGDescOut->bHeader = TRUE;
pIMGDescOut->bPalette = FALSE;
pIMGDescOut->dwWidth = pHeader->cx;
pIMGDescOut->dwHeight = pHeader->cy;
break;
}
// Set required palette
CString strName = pszName;
if ( strName == "DANK02I0.IMG" )
strcpy( pIMGDescOut->szPalette, "DANKBMAP.COL" );
else if ( strName.Left(4) == "FMAP" )
strcpy( pIMGDescOut->szPalette, "FMAP_PAL.COL" );
else if ( strName.Left(4) == "NITE" )
strcpy( pIMGDescOut->szPalette, "NIGHTSKY.COL" );
else
strcpy( pIMGDescOut->szPalette, "ART_PAL.COL" );
// Set required image buffer size
pIMGDescOut->dwBufferSize = (pIMGDescOut->dwWidth * 3) * pIMGDescOut->dwHeight;
// Store name of this image
m_strLastIMGName = pszName;
// Clean up
delete[] pBuffer;
return TRUE;
}/* GetIMGDesc */
//
// BOOL GetIMGImage( LPCSTR pszName, char* pBufferOut, LPIMG_IMAGEDESC pIMGDesc = NULL )
// Read image data into the provided buffer in R8G8B8 format
// Note: Buffer must be of correct size
// Return: TRUE if successful, otherwise FALSE
//
BOOL CDaggerTool::GetIMGImage( LPCSTR pszName, char* pBufferOut, LPIMG_IMAGEDESC pIMGDesc/*=NULL*/ )
{
// Validate
_ASSERT( pszName );
_ASSERT( pBufferOut );
// Acquire description if not provided
IMG_IMAGEDESC id;
if ( !pIMGDesc ) {
if ( !GetIMGDesc( pszName, &id ) )
return FALSE;
pIMGDesc = &id;
}
// Open IMG file
CFile file;
CString strPath;
strPath.Format( "%s\\%s", m_strArena2Path, pszName );
if ( !file.Open( strPath, CFile::modeRead | CFile::shareDenyNone | CFile::typeBinary ) )
return FALSE;
// Read the file into memory
DWORD dwLength = (DWORD)file.GetLength();
char *pBuffer = new char[dwLength];
if ( !pBuffer ) {
file.Close();
return FALSE;
}
else {
if ( dwLength != file.Read( pBuffer, dwLength ) ) {
delete[] pBuffer;
file.Close();
return FALSE;
}
}
file.Close();
// Acquire header
LPIMG_HEADER pHeader = (LPIMG_HEADER)pBuffer;
// This assertion is tripped if compression is enabled
_ASSERT( pHeader->Compression != CIF_COMPRESSED );
// Read palette
palette_t pal;
if ( pIMGDesc->bPalette ) {
// Open the palette from within the image buffer
char *pb = pBuffer;
pb += (dwLength - 768);
for ( int pe = 0; pe < 256; pe++ ) {
pal.colour[pe].r = pb[0] << 2;
pal.colour[pe].g = pb[1] << 2;
pal.colour[pe].b = pb[2] << 2;
pb += 3;
}
}
else {
// Open the palette from a file
CString strPalette;
strPalette.Format( "%s\\%s", m_strArena2Path, pIMGDesc->szPalette );
if ( !file.Open( strPalette, CFile::modeRead | CFile::shareDenyNone | CFile::typeBinary ) ) {
delete[] pBuffer;
return FALSE;
}
// Read the palette
if ( strPalette.Right( 3 ) == "PAL" ) {
file.Read( (void*)&pal, 768 );
}
else if ( strPalette.Right( 3 ) == "COL" )
{
file.Seek( 8, CFile::begin );
file.Read( (void*)&pal, 768 );
}
else {
delete[] pBuffer;
return FALSE;
}
file.Close();
}
// Locate start of image data
char *pImageRaw = NULL;
if ( pIMGDesc->bHeader ) {
pImageRaw = &pHeader->Data;
}
else {
pImageRaw = pBuffer;
}
// Read the image into the temporary buffer
DWORD dwPitch = pIMGDesc->dwWidth * 3;
// Set colors of image buffer in R8G8B8 format
for ( int y = 0; y < (int)pIMGDesc->dwHeight; y++ )
{
for ( int x = 0; x < (int)pIMGDesc->dwWidth; x++ )
{
// Determine palette index
unsigned char nIndex = pImageRaw[ y * pIMGDesc->dwWidth + x ];
// Extract the RGB colours for this pixel
char r = pal.colour[nIndex].r;
char g = pal.colour[nIndex].g;
char b = pal.colour[nIndex].b;
// Set the pixel colour
char *pOut = &pBufferOut[(y*dwPitch)+(x*3)];
pOut[0] = b;
pOut[1] = g;
pOut[2] = r;
}// end for ( x = 0; x < cx; x++ )
}// end for ( y = 0; y < cy; y++ )
// Clean up
delete[] pBuffer;
return TRUE;
}/* GetIMGImage */
| 24.03122 | 153 | 0.652955 | [
"object",
"vector",
"3d",
"solid"
] |
2c7fb9bb609d112da91904e00b2f01fd36544819 | 13,413 | cc | C++ | ge/graph/passes/atomic_addr_clean_pass.cc | tomzhang/graphengine | 49aa7bb17b371caf58a871172fc53afc31b8022c | [
"Apache-2.0"
] | null | null | null | ge/graph/passes/atomic_addr_clean_pass.cc | tomzhang/graphengine | 49aa7bb17b371caf58a871172fc53afc31b8022c | [
"Apache-2.0"
] | null | null | null | ge/graph/passes/atomic_addr_clean_pass.cc | tomzhang/graphengine | 49aa7bb17b371caf58a871172fc53afc31b8022c | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2019-2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "graph/passes/atomic_addr_clean_pass.h"
#include <map>
#include <memory>
#include <string>
#include <sstream>
#include <vector>
#include "common/ge_inner_error_codes.h"
#include "common/ge/ge_util.h"
#include "graph/common/ge_call_wrapper.h"
#include "graph/debug/ge_attr_define.h"
#include "graph/utils/node_utils.h"
#include "init/gelib.h"
namespace ge {
Status AtomicAddrCleanPass::Run(ComputeGraphPtr graph) {
GE_CHECK_NOTNULL(graph);
GELOGD("AtomicAddrCleanPass begin.");
// 1.Recoginze atomic and loop mark
vector<NodePtr> atomic_node_vec;
for (NodePtr &node : graph->GetDirectNode()) {
if (IsAtomicOp(node)) {
atomic_node_vec.push_back(node);
}
if (!is_loop_graph_ && node->GetType() == LOOPCOND) {
// there is loop in this graph
GELOGD("There is no loop node. It will insert clean node follow atomic node.");
is_loop_graph_ = true;
}
}
if (atomic_node_vec.empty()) {
GELOGI("There is no atomic node. Ignore atomicAddrClean pass.");
return SUCCESS;
}
bool is_known_graph = graph->GetGraphUnknownFlag();
if (is_known_graph) {
GELOGD("Graph[%s] is unknown graph. It will call fe interface to compile op.", graph->GetName().c_str());
GE_CHK_STATUS_RET(CompileUnknownGraphOp(atomic_node_vec));
return SUCCESS;
}
// 2.Insert clean node and link to atomic node
Status ret;
if (is_loop_graph_) {
ret = HandleLoopGraph(graph, atomic_node_vec);
if (ret != SUCCESS) {
return ret;
}
} else {
ret = HandleNormalGraph(graph, atomic_node_vec);
if (ret != SUCCESS) {
return ret;
}
}
GELOGD("AtomicAddrCleanPass end.");
return SUCCESS;
}
Status AtomicAddrCleanPass::HandleLoopGraph(ComputeGraphPtr &graph, const vector<NodePtr> &atomic_node_vec) {
// Loop graph , insert clean node follow atomic node
int index = 0;
for (const auto &node : atomic_node_vec) {
// Insert atomic clean op
NodePtr clean_addr_node = InsertAtomicAddrCleanNode(graph);
if (clean_addr_node == nullptr) {
GELOGE(FAILED, "Insert AtomicAddrClean node failed. Ignore atomicAddrClean pass.");
return FAILED;
}
GE_CHECK_NOTNULL(clean_addr_node->GetOpDesc());
string node_name = clean_addr_node->GetOpDesc()->GetName();
std::ostringstream oss;
oss << node_name << index;
node_name = oss.str();
clean_addr_node->GetOpDesc()->SetName(node_name); // [Cascade Pointer]
GELOGD("Inserted atomic clean node name is %s", node_name.c_str());
auto ret = LinkToAtomicNode(node, clean_addr_node);
if (ret != SUCCESS) {
GELOGE(ret, "Link control anchor failed from atomic node to atomic_addr_clean node.");
return ret;
}
index++;
}
return SUCCESS;
}
Status AtomicAddrCleanPass::HandleNormalGraph(ComputeGraphPtr &graph, const vector<NodePtr> &atomic_node_vec) {
GELOGD("Not loop graph and unknown graph. It will insert only 1 clean node.");
vector<NodePtr> common_atomic_nodes;
auto ret = HandleDispersedAtomicNodes(graph, atomic_node_vec, common_atomic_nodes);
if (ret != SUCCESS) {
GELOGE(ret, "Handle dispersed atomic nodes failed, graph name is %s.", graph->GetName().c_str());
return ret;
}
if (common_atomic_nodes.empty()) {
GELOGI("common_atomic_nodes is empty");
return SUCCESS;
}
// not loop graph , insert only one clean node in graph
NodePtr clean_addr_node = InsertAtomicAddrCleanNode(graph);
if (clean_addr_node == nullptr) {
GELOGE(FAILED, "Insert AtomicAddrClean node failed. Ignore atomicAddrClean pass.");
return FAILED;
}
for (const auto &node : common_atomic_nodes) {
ret = LinkToAtomicNode(node, clean_addr_node);
if (ret != SUCCESS) {
GELOGE(ret, "Link control anchor failed from atomic node to atomic_addr_clean node.");
return ret;
}
}
// for HCOM atomic node, add one more control link to peer-in node
for (auto &node : hcom_node_vec_) {
for (auto &in_anchor : node->GetAllInDataAnchors()) {
GE_CHECK_NOTNULL(in_anchor->GetPeerOutAnchor());
NodePtr peer_in_node = in_anchor->GetPeerOutAnchor()->GetOwnerNode();
ret = LinkToAtomicNode(peer_in_node, clean_addr_node);
if (ret != SUCCESS) {
GELOGE(ret, "Link failed, %s : %s", peer_in_node->GetName().c_str(), clean_addr_node->GetName().c_str());
return ret;
}
}
}
return SUCCESS;
}
Status AtomicAddrCleanPass::HandleDispersedAtomicNodes(ComputeGraphPtr &graph,
const std::vector<NodePtr> &atomic_node_vec,
std::vector<NodePtr> &common_atomic_nodes) {
int index = 0;
for (const auto &node : atomic_node_vec) {
vector<int> node_anchors_connect_netoutput;
// If GetBool fail, attr is_connect_netoutput is an empty vector.
(void)ge::AttrUtils::GetListInt(node->GetOpDesc(), ATTR_NAME_NODE_CONNECT_OUTPUT, node_anchors_connect_netoutput);
if (!node_anchors_connect_netoutput.empty()) {
NodePtr dispersed_clean_addr_node = InsertAtomicAddrCleanNode(graph);
if (dispersed_clean_addr_node == nullptr) {
GELOGE(FAILED, "Insert AtomicAddrClean node failed. Ignore atomicAddrClean pass.");
return FAILED;
}
auto dispersed_node_op_desc = dispersed_clean_addr_node->GetOpDesc();
GE_CHECK_NOTNULL(dispersed_node_op_desc);
string node_name = dispersed_node_op_desc->GetName();
std::ostringstream oss;
oss << node_name << "_" << index;
node_name = oss.str();
dispersed_node_op_desc->SetName(node_name);
GELOGD("Inserted dispersed atomic clean node name is %s", node_name.c_str());
++index;
Status ret = LinkToAtomicNode(node, dispersed_clean_addr_node);
if (ret != SUCCESS) {
GELOGE(ret, "Link control anchor failed from atomic node: %s to atomic_addr_clean node: %s.",
node->GetName().c_str(), dispersed_clean_addr_node->GetName().c_str());
return ret;
}
} else {
common_atomic_nodes.emplace_back(node);
}
}
return SUCCESS;
}
NodePtr AtomicAddrCleanPass::InsertAtomicAddrCleanNode(ComputeGraphPtr &graph) {
OpDescPtr op_desc = MakeShared<OpDesc>(NODE_NAME_ATOMIC_ADDR_CLEAN, ATOMICADDRCLEAN);
if (op_desc == nullptr) {
GELOGE(INTERNAL_ERROR, "Make shared atomic addr clean op failed.");
return nullptr;
}
string session_graph_id;
if (!AttrUtils::GetStr(*graph, ATTR_NAME_SESSION_GRAPH_ID, session_graph_id)) {
GELOGW("Get graph session_graph_id attr failed.");
}
if (!session_graph_id.empty()) {
(void)AttrUtils::SetStr(op_desc, ATTR_NAME_SESSION_GRAPH_ID, session_graph_id);
}
string node_name = op_desc->GetName();
// Only flush subgraph name
if (graph->GetParentGraph() != nullptr) {
node_name = graph->GetName() + "_" + node_name;
}
string name = node_name + session_graph_id;
op_desc->SetName(name);
GELOGI("Create cleanAddr op:%s.", op_desc->GetName().c_str());
// To avoid same name between graphs, set session graph id to this node
NodePtr clean_addr_node = graph->AddNodeFront(op_desc);
return clean_addr_node;
}
Status AtomicAddrCleanPass::LinkToAtomicNode(const NodePtr &atomic_node, NodePtr &atomic_clean_node) {
GE_IF_BOOL_EXEC(atomic_node == nullptr || atomic_clean_node == nullptr,
DOMI_LOGE("param [atomic_node][atomic_clean_node] must not be null.");
return PARAM_INVALID);
InControlAnchorPtr in_ctrl_anchor = atomic_node->GetInControlAnchor();
OutControlAnchorPtr out_ctrl_anchor = atomic_clean_node->GetOutControlAnchor();
if (in_ctrl_anchor == nullptr || out_ctrl_anchor == nullptr) {
GELOGE(INTERNAL_ERROR, "Get control anchor faild, dst node: %s.", atomic_node->GetName().c_str());
return INTERNAL_ERROR;
}
graphStatus status = GraphUtils::AddEdge(out_ctrl_anchor, in_ctrl_anchor);
if (status != GRAPH_SUCCESS) {
GELOGE(INTERNAL_ERROR, "Graph add cleanAddrNode op out ctrl edge fail, dst node: %s.",
atomic_node->GetName().c_str());
return INTERNAL_ERROR;
}
GELOGD("Graph add cleanAddrNode op out ctrl edge, dst node: %s.", atomic_node->GetName().c_str());
std::string stream_label;
if (is_loop_graph_ && AttrUtils::GetStr(atomic_node->GetOpDesc(), ATTR_NAME_STREAM_LABEL, stream_label)) {
if (!AttrUtils::SetStr(atomic_clean_node->GetOpDesc(), ATTR_NAME_STREAM_LABEL, stream_label)) {
GELOGW("LinkToAtomicNode: SetStr failed");
return INTERNAL_ERROR;
}
}
return SUCCESS;
}
bool AtomicAddrCleanPass::IsAtomicOp(const NodePtr &node) {
GE_IF_BOOL_EXEC(node == nullptr, GELOGE(FAILED, "node is null."); return false);
OpDescPtr op_desc = node->GetOpDesc();
if (op_desc == nullptr) {
return false;
}
// 1.Check if isAtomic attrs exist for HCOM
std::shared_ptr<GELib> instance_ptr = GELib::GetInstance();
if ((instance_ptr == nullptr) || (!instance_ptr->InitFlag())) {
GELOGW("GELib not initialized");
return false;
}
OpsKernelManager &ops_kernel_manager = instance_ptr->OpsKernelManagerObj();
vector<OpInfo> op_info_vec = ops_kernel_manager.GetOpsKernelInfo(op_desc->GetType());
for (const auto &op_info : op_info_vec) {
if (op_info.isAtomic) {
GELOGI("Recognized atomic op %s from DNN_HCCL engine.", op_desc->GetName().c_str());
// check peer input is DATA
for (auto &in_data_anchor : node->GetAllInDataAnchors()) {
if (in_data_anchor->GetPeerOutAnchor() != nullptr &&
in_data_anchor->GetPeerOutAnchor()->GetOwnerNode() != nullptr) {
auto peer_in_node = in_data_anchor->GetPeerOutAnchor()->GetOwnerNode();
if (peer_in_node->GetType() == DATA) {
GELOGI("Recognized atomic op %s from DNN_HCCL engine and input is DATA.", op_desc->GetName().c_str());
return false;
}
}
}
hcom_node_vec_.push_back(node);
return true;
}
}
// 2.Check atomic attr in node
std::map<string, std::map<int, int>> node_workspace_offset;
bool has_atomic_input = op_desc->HasAttr(ATOMIC_ATTR_INPUT_INDEX);
bool has_atomic_output = op_desc->HasAttr(ATOMIC_ATTR_OUTPUT_INDEX);
node_workspace_offset = op_desc->TryGetExtAttr(EXT_ATTR_ATOMIC_WORKSPACE_OFFSET, node_workspace_offset);
if (!has_atomic_input && !has_atomic_output && node_workspace_offset.empty()) {
return false;
}
graphStatus ret = op_desc->SetAttr(ATOMIC_ATTR_IS_ATOMIC_NODE, GeAttrValue::CreateFrom<GeAttrValue::BOOL>(true));
if (ret != GRAPH_SUCCESS) {
GELOGW("set attr ATOMIC_ATTR_IS_ATOMIC_NODE fail.");
}
GELOGD("Recognized atomic op %s from FE engine.", op_desc->GetName().c_str());
return true;
}
///
/// @brief Clear Status, used for subgraph pass
/// @return SUCCESS
///
Status AtomicAddrCleanPass::ClearStatus() {
hcom_node_vec_.clear();
return SUCCESS;
}
Status AtomicAddrCleanPass::CompileUnknownGraphOp(const vector<NodePtr> &atomic_node_vec) {
GE_TIMESTAMP_CALLNUM_START(UnknownGraphCompileOp);
std::unordered_map<string, vector<ge::NodePtr>> node_vector_map;
std::shared_ptr<GELib> instance = ge::GELib::GetInstance();
if ((instance == nullptr) || !instance->InitFlag()) {
GELOGE(ge::GE_CLI_GE_NOT_INITIALIZED, "CompileSingleOp failed.");
return ge::GE_CLI_GE_NOT_INITIALIZED;
}
for (auto &atomic_node : atomic_node_vec) {
auto op_desc = atomic_node->GetOpDesc();
if (op_desc == nullptr) {
GELOGW("op desc is nullptr.");
continue;
}
string kernel_lib_name = op_desc->GetOpKernelLibName();
if (kernel_lib_name.empty()) {
GELOGE(ge::INTERNAL_ERROR, "Get atomic node:%s(%s) kernel lib failed.", atomic_node->GetName().c_str(),
atomic_node->GetType().c_str());
return ge::INTERNAL_ERROR;
}
OpsKernelInfoStorePtr kernel_info = instance->OpsKernelManagerObj().GetOpsKernelInfoStore(kernel_lib_name);
GE_CHECK_NOTNULL(kernel_info);
node_vector_map[kernel_lib_name].emplace_back(atomic_node);
}
for (auto &it : node_vector_map) {
auto &kernel_lib_name = it.first;
auto &node_vector = it.second;
OpsKernelInfoStorePtr kernel_info = instance->OpsKernelManagerObj().GetOpsKernelInfoStore(kernel_lib_name);
GE_CHECK_NOTNULL(kernel_info);
GE_TIMESTAMP_RESTART(UnknownGraphCompileOp);
auto ret = kernel_info->CompileOp(node_vector);
GELOGI("The atomic node size of compile op of %s is %zu", kernel_lib_name.c_str(), node_vector.size());
GE_TIMESTAMP_ADD(UnknownGraphCompileOp);
if (ret != ge::SUCCESS) {
GELOGE(ret, "Compile atomic op failed, kernel lib name is %s", kernel_lib_name.c_str());
return ret;
}
}
GE_TIMESTAMP_CALLNUM_END(UnknownGraphCompileOp, "AtomicAddrCleanPass::CompileUnknownGraphOp");
return SUCCESS;
}
} // namespace ge
| 38.765896 | 118 | 0.70126 | [
"vector"
] |
2c86c3fb063c39dac2f49876de1bf51f5ca30c9f | 1,132 | cpp | C++ | LeetCode/0062/0062_2.cpp | samsonwang/ToyCpp | a6a757aacf1a0e6d9ba3c943c5744fde611a2f7c | [
"MIT"
] | null | null | null | LeetCode/0062/0062_2.cpp | samsonwang/ToyCpp | a6a757aacf1a0e6d9ba3c943c5744fde611a2f7c | [
"MIT"
] | null | null | null | LeetCode/0062/0062_2.cpp | samsonwang/ToyCpp | a6a757aacf1a0e6d9ba3c943c5744fde611a2f7c | [
"MIT"
] | null | null | null |
/*
https://leetcode.com/problems/unique-paths/discuss/22954/C%2B%2B-DP
使用dp方法,这篇文章逐步推进,展现了对内存空间使用的优化思路
*/
// 普通dp方法
class Solution {
public:
int uniquePaths(int m, int n) {
vector<vector<int>> dp(m, vector<int>(n, 1));
for (int i = 1; i < m; i++) {
for (int j = 1; j < n; j++) {
dp[i][j] = dp[i-1][j] + dp[i][j-1];
}
}
return dp[m-1][n-1];
}
};
// 由于在每次计算时,只需要用到本行和前一行中的数据
// 所以可以将空间复杂度降低为 O(n)
class Solution2 {
public:
int uniquePaths(int m, int n) {
vector<int> pre(n, 1), cur(n, 1);
for (int i = 1; i < m; i++) {
for (int j = 1; j < n; j++) {
cur[j] = pre[j] + cur[j - 1];
}
swap(pre, cur);
}
return pre[n - 1];
}
};
// 重新检查代码,能够发现 pre[j] 是 cur[j] 更新之前的数据,
// 所以就可以简化为使用一行空间
class Solution3 {
public:
int uniquePaths(int m, int n) {
vector<int> cur(n, 1);
for (int i = 1; i < m; i++) {
for (int j = 1; j < n; j++) {
cur[j] += cur[j - 1];
}
}
return cur[n - 1];
}
};
| 21.358491 | 69 | 0.441696 | [
"vector"
] |
2c8bacacff120e32bb7c82e5cfc91e3002af2ac2 | 2,595 | cpp | C++ | lib/scipoptsuite-5.0.1/soplex/src/example.cpp | npwebste/UPS_Controller | a90ce2229108197fd48f956310ae2929e0fa5d9a | [
"AFL-1.1"
] | null | null | null | lib/scipoptsuite-5.0.1/soplex/src/example.cpp | npwebste/UPS_Controller | a90ce2229108197fd48f956310ae2929e0fa5d9a | [
"AFL-1.1"
] | null | null | null | lib/scipoptsuite-5.0.1/soplex/src/example.cpp | npwebste/UPS_Controller | a90ce2229108197fd48f956310ae2929e0fa5d9a | [
"AFL-1.1"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the class library */
/* SoPlex --- the Sequential object-oriented simPlex. */
/* */
/* Copyright (C) 1996-2018 Konrad-Zuse-Zentrum */
/* fuer Informationstechnik Berlin */
/* */
/* SoPlex is distributed under the terms of the ZIB Academic Licence. */
/* */
/* You should have received a copy of the ZIB Academic License */
/* along with SoPlex; see the file COPYING. If not email to soplex@zib.de. */
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/**@file example.cpp
* @brief simple example of how to build up and solve an lp using the SoPlex callable library
*
* @author Ambros Gleixner
*/
#include <iostream>
#include "soplex.h"
using namespace soplex;
int main()
{
SoPlex mysoplex;
/* set the objective sense */
mysoplex.setIntParam(SoPlex::OBJSENSE, SoPlex::OBJSENSE_MINIMIZE);
/* we first add variables */
DSVector dummycol(0);
mysoplex.addColReal(LPCol(2.0, dummycol, infinity, 15.0));
mysoplex.addColReal(LPCol(3.0, dummycol, infinity, 20.0));
/* then constraints one by one */
DSVector row1(2);
row1.add(0, 1.0);
row1.add(1, 5.0);
mysoplex.addRowReal(LPRow(100.0, row1, infinity));
/* NOTE: alternatively, we could have added the matrix nonzeros in dummycol already; nonexisting rows are then
* automatically created. */
/* write LP in .lp format */
mysoplex.writeFileReal("dump.lp", NULL, NULL, NULL);
/* solve LP */
SPxSolver::Status stat;
DVector prim(2);
DVector dual(1);
stat = mysoplex.optimize();
/* get solution */
if( stat == SPxSolver::OPTIMAL )
{
mysoplex.getPrimalReal(prim);
mysoplex.getDualReal(dual);
std::cout << "LP solved to optimality.\n";
std::cout << "Objective value is " << mysoplex.objValueReal() << ".\n";
std::cout << "Primal solution is [" << prim[0] << ", " << prim[1] << "].\n";
std::cout << "Dual solution is [" << dual[0] << "].\n";
}
return 0;
}
| 36.549296 | 113 | 0.470906 | [
"object"
] |
2c8ee0f3609a8a933549a54831e3840f2a4851a5 | 9,119 | hpp | C++ | external/boost_1_47_0/boost/geometry/strategies/cartesian/distance_pythagoras.hpp | zigaosolin/Raytracer | df17f77e814b2e4b90c4a194e18cc81fa84dcb27 | [
"MIT"
] | 47 | 2015-01-01T14:37:36.000Z | 2021-04-25T07:38:07.000Z | external/boost_1_47_0/boost/geometry/strategies/cartesian/distance_pythagoras.hpp | zigaosolin/Raytracer | df17f77e814b2e4b90c4a194e18cc81fa84dcb27 | [
"MIT"
] | 6 | 2016-01-11T05:20:05.000Z | 2021-02-06T11:37:24.000Z | external/boost_1_47_0/boost/geometry/strategies/cartesian/distance_pythagoras.hpp | zigaosolin/Raytracer | df17f77e814b2e4b90c4a194e18cc81fa84dcb27 | [
"MIT"
] | 17 | 2015-01-05T15:10:43.000Z | 2021-06-22T04:59:16.000Z | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2008-2011 Bruno Lalande, Paris, France.
// Copyright (c) 2008-2011 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2009-2011 Mateusz Loskot, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_GEOMETRY_STRATEGIES_CARTESIAN_DISTANCE_PYTHAGORAS_HPP
#define BOOST_GEOMETRY_STRATEGIES_CARTESIAN_DISTANCE_PYTHAGORAS_HPP
#include <boost/mpl/if.hpp>
#include <boost/type_traits.hpp>
#include <boost/geometry/core/access.hpp>
#include <boost/geometry/strategies/distance.hpp>
#include <boost/geometry/util/select_calculation_type.hpp>
#include <boost/geometry/util/promote_floating_point.hpp>
namespace boost { namespace geometry
{
namespace strategy { namespace distance
{
#ifndef DOXYGEN_NO_DETAIL
namespace detail
{
template <typename Point1, typename Point2, size_t I, typename T>
struct compute_pythagoras
{
static inline T apply(Point1 const& p1, Point2 const& p2)
{
T const c1 = boost::numeric_cast<T>(get<I-1>(p2));
T const c2 = boost::numeric_cast<T>(get<I-1>(p1));
T const d = c1 - c2;
return d * d + compute_pythagoras<Point1, Point2, I-1, T>::apply(p1, p2);
}
};
template <typename Point1, typename Point2, typename T>
struct compute_pythagoras<Point1, Point2, 0, T>
{
static inline T apply(Point1 const&, Point2 const&)
{
return boost::numeric_cast<T>(0);
}
};
}
#endif // DOXYGEN_NO_DETAIL
namespace comparable
{
/*!
\brief Strategy to calculate comparable distance between two points
\ingroup strategies
\tparam Point1 \tparam_first_point
\tparam Point2 \tparam_second_point
\tparam CalculationType \tparam_calculation
*/
template
<
typename Point1,
typename Point2 = Point1,
typename CalculationType = void
>
class pythagoras
{
public :
typedef typename select_calculation_type
<
Point1,
Point2,
CalculationType
>::type calculation_type;
static inline calculation_type apply(Point1 const& p1, Point2 const& p2)
{
BOOST_CONCEPT_ASSERT( (concept::ConstPoint<Point1>) );
BOOST_CONCEPT_ASSERT( (concept::ConstPoint<Point2>) );
// Calculate distance using Pythagoras
// (Leave comment above for Doxygen)
assert_dimension_equal<Point1, Point2>();
return detail::compute_pythagoras
<
Point1, Point2,
dimension<Point1>::value,
calculation_type
>::apply(p1, p2);
}
};
} // namespace comparable
/*!
\brief Strategy to calculate the distance between two points
\ingroup strategies
\tparam Point1 \tparam_first_point
\tparam Point2 \tparam_second_point
\tparam CalculationType \tparam_calculation
\qbk{
[heading Notes]
[note Can be used for points with two\, three or more dimensions]
[heading See also]
[link geometry.reference.algorithms.distance.distance_3_with_strategy distance (with strategy)]
}
*/
template
<
typename Point1,
typename Point2 = Point1,
typename CalculationType = void
>
class pythagoras
{
typedef comparable::pythagoras<Point1, Point2, CalculationType> comparable_type;
public :
typedef typename promote_floating_point
<
typename services::return_type<comparable_type>::type
>::type calculation_type;
/*!
\brief applies the distance calculation using pythagoras
\return the calculated distance (including taking the square root)
\param p1 first point
\param p2 second point
*/
static inline calculation_type apply(Point1 const& p1, Point2 const& p2)
{
calculation_type const t = comparable_type::apply(p1, p2);
return sqrt(t);
}
};
#ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
namespace services
{
template <typename Point1, typename Point2, typename CalculationType>
struct tag<pythagoras<Point1, Point2, CalculationType> >
{
typedef strategy_tag_distance_point_point type;
};
template <typename Point1, typename Point2, typename CalculationType>
struct return_type<pythagoras<Point1, Point2, CalculationType> >
{
typedef typename pythagoras<Point1, Point2, CalculationType>::calculation_type type;
};
template
<
typename Point1,
typename Point2,
typename CalculationType,
typename P1,
typename P2
>
struct similar_type<pythagoras<Point1, Point2, CalculationType>, P1, P2>
{
typedef pythagoras<P1, P2, CalculationType> type;
};
template
<
typename Point1,
typename Point2,
typename CalculationType,
typename P1,
typename P2
>
struct get_similar<pythagoras<Point1, Point2, CalculationType>, P1, P2>
{
static inline typename similar_type
<
pythagoras<Point1, Point2, CalculationType>, P1, P2
>::type apply(pythagoras<Point1, Point2, CalculationType> const& )
{
return pythagoras<P1, P2, CalculationType>();
}
};
template <typename Point1, typename Point2, typename CalculationType>
struct comparable_type<pythagoras<Point1, Point2, CalculationType> >
{
typedef comparable::pythagoras<Point1, Point2, CalculationType> type;
};
template <typename Point1, typename Point2, typename CalculationType>
struct get_comparable<pythagoras<Point1, Point2, CalculationType> >
{
typedef comparable::pythagoras<Point1, Point2, CalculationType> comparable_type;
public :
static inline comparable_type apply(pythagoras<Point1, Point2, CalculationType> const& input)
{
return comparable_type();
}
};
template <typename Point1, typename Point2, typename CalculationType>
struct result_from_distance<pythagoras<Point1, Point2, CalculationType> >
{
private :
typedef typename return_type<pythagoras<Point1, Point2, CalculationType> >::type return_type;
public :
template <typename T>
static inline return_type apply(pythagoras<Point1, Point2, CalculationType> const& , T const& value)
{
return return_type(value);
}
};
// Specializations for comparable::pythagoras
template <typename Point1, typename Point2, typename CalculationType>
struct tag<comparable::pythagoras<Point1, Point2, CalculationType> >
{
typedef strategy_tag_distance_point_point type;
};
template <typename Point1, typename Point2, typename CalculationType>
struct return_type<comparable::pythagoras<Point1, Point2, CalculationType> >
{
typedef typename comparable::pythagoras<Point1, Point2, CalculationType>::calculation_type type;
};
template
<
typename Point1,
typename Point2,
typename CalculationType,
typename P1,
typename P2
>
struct similar_type<comparable::pythagoras<Point1, Point2, CalculationType>, P1, P2>
{
typedef comparable::pythagoras<P1, P2, CalculationType> type;
};
template
<
typename Point1,
typename Point2,
typename CalculationType,
typename P1,
typename P2
>
struct get_similar<comparable::pythagoras<Point1, Point2, CalculationType>, P1, P2>
{
static inline typename similar_type
<
comparable::pythagoras<Point1, Point2, CalculationType>, P1, P2
>::type apply(comparable::pythagoras<Point1, Point2, CalculationType> const& )
{
return comparable::pythagoras<P1, P2, CalculationType>();
}
};
template <typename Point1, typename Point2, typename CalculationType>
struct comparable_type<comparable::pythagoras<Point1, Point2, CalculationType> >
{
typedef comparable::pythagoras<Point1, Point2, CalculationType> type;
};
template <typename Point1, typename Point2, typename CalculationType>
struct get_comparable<comparable::pythagoras<Point1, Point2, CalculationType> >
{
typedef comparable::pythagoras<Point1, Point2, CalculationType> comparable_type;
public :
static inline comparable_type apply(comparable::pythagoras<Point1, Point2, CalculationType> const& input)
{
return comparable_type();
}
};
template <typename Point1, typename Point2, typename CalculationType>
struct result_from_distance<comparable::pythagoras<Point1, Point2, CalculationType> >
{
private :
typedef typename return_type<comparable::pythagoras<Point1, Point2, CalculationType> >::type return_type;
public :
template <typename T>
static inline return_type apply(comparable::pythagoras<Point1, Point2, CalculationType> const& , T const& value)
{
return_type const v = value;
return v * v;
}
};
template <typename Point1, typename Point2>
struct default_strategy<point_tag, Point1, Point2, cartesian_tag, cartesian_tag, void>
{
typedef pythagoras<Point1, Point2> type;
};
} // namespace services
#endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
}} // namespace strategy::distance
}} // namespace boost::geometry
#endif // BOOST_GEOMETRY_STRATEGIES_CARTESIAN_DISTANCE_PYTHAGORAS_HPP
| 26.355491 | 116 | 0.728369 | [
"geometry"
] |
2c909b93b829c3a0eb2501e3ec1785f319ea3cbc | 1,075 | hpp | C++ | stapl_release/stapl/containers/graph/mesh/geom_vector.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/containers/graph/mesh/geom_vector.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/containers/graph/mesh/geom_vector.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part without explicit written authorization from TEES.
*/
#ifndef STAPL_CONTAINERS_GRAPH_MESH_GEOM_VECTOR_HPP
#define STAPL_CONTAINERS_GRAPH_MESH_GEOM_VECTOR_HPP
namespace stapl {
//////////////////////////////////////////////////////////////////////
/// @brief n-dimensional geometric vector
/// @tparam DIM dimension of the vector.
/// @tparam ELEMENT type of elements stored in vector.
///
/// Base templated class. Template specializations are required
/// for each dimension supported.
//////////////////////////////////////////////////////////////////////
template<int DIM, typename ELEMENT>
class geom_vector
{ };
} //namespace stapl
#include <stapl/containers/graph/mesh/geom_vector2.hpp>
#include <stapl/containers/graph/mesh/geom_vector3.hpp>
#endif
| 30.714286 | 74 | 0.674419 | [
"mesh",
"vector"
] |
2c928e73ddbb28055f33255f8db733c8fc31be8b | 130,820 | cpp | C++ | winprom/Domain.cpp | Frontline-Processing/winprom | 621e1422333a9b4e84cd2f507a412e8bb0e68c46 | [
"MIT"
] | 17 | 2015-10-23T13:07:06.000Z | 2021-08-25T07:06:13.000Z | winprom/Domain.cpp | Frontline-Processing/winprom | 621e1422333a9b4e84cd2f507a412e8bb0e68c46 | [
"MIT"
] | null | null | null | winprom/Domain.cpp | Frontline-Processing/winprom | 621e1422333a9b4e84cd2f507a412e8bb0e68c46 | [
"MIT"
] | 3 | 2016-01-27T22:13:40.000Z | 2018-05-09T12:56:02.000Z | // WinProm Copyright 2015 Edward Earl
// All rights reserved.
//
// This software is distributed under a license that is described in
// the LICENSE file that accompanies it.
//
#pragma warning (disable : 4786)
#include "stdafx.h"
#include <algorithm>
#include <map>
#include "domain.h"
//#define trace_connect
#ifndef NDEBUG
#define timer
#endif
using namespace std;
const char *Elev_intvl::format="%L to %H";
const char *Elev_intvl::field_format="%s";
const char *Elev_intvl::elem_format="%5d";
const char *Elev_intvl::hdr_string=0;
const char *Elev_intvl::range_format="%3d";
const char *Elev_intvl::precise_format=0;
const char *Elev_intvl::min_format="%5d or more";
const char *Elev_intvl::max_format="at most %5d";
const char *Elev_intvl::limitless_string="Who knows?";
const char *Elev_intvl::plus_infty_string="high point";
const char *Elev_intvl::minus_infty_string="";
const char *Elev_intvl::empty_string="empty";
static const short unsigned VERSION_FS=257,
VERSION_SADL_STAT=258,VERSION_SADL_STAT_RIVER=259;
#pragma warning (disable : 4786)
#if 0
void LIS::update(const Elev_intvl& a)
{
if (a.high<elev) {
elev=a.high;
closed=a.high==a.low;
}
else if (a.high==elev) {
if (a.low<a.high) closed=false;
}
}
bool LIS::test(const Elev_intvl& a) const
{
return zero_prob ? a.low<=elev :
a.low<elev || closed && a.low==elev && a.low==a.high;
}
#endif
/* SADDLE MEMBERS */
bool Saddle::distance_io=false;
unsigned short Saddle::stat_io=0;
bool Saddle::use_status=false;
const char *const Saddle::status_name[] = {"River","Unk","Real","Prom"};
Saddle::Status Saddle::eff_stat(bool splice_mode) const
{
return edge_effect?
(splice_mode?STAT_RIVER:STAT_PROM):
(use_status?(Status)status:STAT_UNKNOWN);
}
void Saddle::transform(float m, float b, bool trans_edit)
{
Feature::transform(m,b,trans_edit);
if (flat_sep<0 && (trans_edit || !edited)) flat_sep*=abs(m);
}
void Saddle::write(FILE *f) const
{
Feature::write(f);
fwrite(flat_sep,f);
fwrite(status,f);
}
void Saddle::read(FILE *f)
{
Feature::read(f);
if (distance_io) fread(flat_sep,f);
else flat_sep=0;
if (stat_io) {
fread(status,f);
if (stat_io==1) ++status;
}
else status=STAT_UNKNOWN;
}
/* RUNOFF DATA MEMBERS */
const char
*Runoff::format="RO #I: IQ=%q, %F",
*Runoff::IQ_format="%2d ",
*Runoff::id_ro_hdr=0,
*Runoff::IQ_hdr="IQs";
/* RUNOFF MEMBER FUNCTIONS */
void Runoff::splice(Runoff& a, Basin_saddle& basin_sadl)
{
if (peak && a.peak && (peak->peak.elev.high==4714 || a.peak->peak.elev.high==4714)) {
int aa=1;
}
Domain *a_peak=0;
interior_quads+=a.interior_quads;
edit(a); // coalesce runoffs
if (a.peak) {
if (peak) {
Saddle new_sadl=*this;
if (flat_sep>=0 && a.flat_sep>=0)
new_sadl.flat_sep=flat_sep+a.flat_sep;
else if (flat_sep>a.flat_sep) new_sadl.flat_sep=flat_sep;
else new_sadl.flat_sep=a.flat_sep;
new_sadl.edge_effect=interior_quads<4;
if (peak!=a.peak) {
// parent peaks are not the same
Domain::connect(new_sadl,peak,a.peak,basin_sadl,
true,edge_effect||a.edge_effect);
Domain::connect_nbr(basin_sadl,peak,a.peak);
if (a.edge_effect) {
#ifdef trace_splice
TRACE(" Peak #%ld is edge effect- removing it\n",
Divide_tree::writing->index(a.peak));
#endif
if (basin_sadl) {
if (basin_sadl.peak1==a.peak) basin_sadl.peak1=peak;
if (basin_sadl.peak2==a.peak) basin_sadl.peak2=peak;
#ifdef trace_splice
TRACE(" Basin saddle relinked to #%ld and #%ld\n",
Divide_tree::writing->index(basin_sadl.peak1),
Divide_tree::writing->index(basin_sadl.peak2));
#endif
}
a.peak->remove(peak,edge_effect);
}
else if (edge_effect) {
#ifdef trace_splice
TRACE(" Peak #%ld is edge effect- removing it\n",
Divide_tree::writing->index(peak));
#endif
if (basin_sadl) {
if (basin_sadl.peak1==peak) basin_sadl.peak1=a.peak;
if (basin_sadl.peak2==peak) basin_sadl.peak2=a.peak;
#ifdef trace_splice
TRACE(" Basin saddle relinked to #%ld and #%ld\n",
Divide_tree::writing->index(basin_sadl.peak1),
Divide_tree::writing->index(basin_sadl.peak2));
#endif
}
peak->remove(a.peak,a.edge_effect);
}
}
if (!a.edge_effect) edge_effect=false;
}
else {
peak=a.peak;
edge_effect=a.edge_effect;
// we'll soon have to make a's owner "this"s owner;
// save it now before a is removed
a_peak=a.peak;
}
}
a.remove();
if (a_peak) a_peak->add_nbr(this);
if (interior_quads>=4) {
if (edge_effect && peak) {
ROiter roi;
for (roi=peak->runoffs.begin(); roi!=peak->runoffs.end(); ++roi)
if ((*roi)!=this && (*roi)->edge_effect) break;
if (roi==peak->runoffs.end()) peak->peak.edge_effect=false;
}
remove();
}
}
void Runoff::clear_inv(bool update_nbr)
{
if (!peak) return;
if (update_nbr) peak->remove_nbr(this);
//peak=peak->island_parent(elev);
while (peak->primary_nbr && elev<peak->saddle.elev) peak=peak->primary_nbr;
if (update_nbr) peak->add_nbr(this);
}
void Runoff::remove()
{
clear();
if (peak) {
peak->remove_nbr(this);
peak=0;
}
interior_quads=0;
}
void Runoff::reconnect(Domain *newpk)
{
peak->remove_nbr(this);
peak=newpk;
newpk->add_nbr(this);
}
void Runoff::SWI_switch(Domain *sadl)
{
Domain *ca=Domain::common_ancestor(peak,sadl);
reconnect(ca==sadl ? sadl->primary_nbr : sadl);
}
void Runoff::write(FILE *f) const
{
Saddle::write(f);
fwrite(Divide_tree::writing->index(peak),f);
fwrite(interior_quads,f);
}
void Runoff::read(FILE *f)
{
Index index;
Saddle::read(f);
fread(index,f);
peak=Divide_tree::reading->address(index);
fread(interior_quads,f);
}
#ifdef io_support
void Runoff::print(FILE *f) const
{
if (!format) {
Feature::print(f);
return;
}
for (const char *fc=format; *fc; ++fc) {
if (*fc=='%') {
switch (*++fc) {
case 'I': case 'i':
fprintf(f,Domain::id_format,Divide_tree::writing->index(*this));
break;
case 'Q': case 'q':
fprintf(f,IQ_format,interior_quads);
break;
case 'F': case 'f':
Feature::print(f);
break;
case 'P': case 'p':
fprintf(f,Domain::id_format,Divide_tree::writing->index(peak));
break;
case '%':
putc('%',f);
break;
default:
fprintf(stderr,"Basin saddle format error! (%c)\n",*fc);
abort();
}
}
else putc(*fc,f);
}
}
void Runoff::dump(FILE *f) const
{
Feature::print(f);
fprintf(f," IQ=%u, Peak #%ld\n",
interior_quads,Divide_tree::writing->index(peak));
}
void Runoff::print_header(FILE *f)
{
if (!format) {
Feature::print_header(f);
return;
}
for (const char *fc=format; *fc; ++fc) {
if (*fc=='%') {
switch (*++fc) {
case 'I': case 'i':
fprintf(f,Domain::id_field_format,id_ro_hdr);
break;
case 'Q': case 'q':
fprintf(f,"%s",IQ_hdr);
break;
case 'F': case 'f':
Feature::print_header(f);
break;
case 'P': case 'p':
fprintf(f,Domain::id_field_format,Domain::id_peak_hdr);
break;
case '%':
putc('%',f);
break;
default:
fprintf(stderr,"Runoff format error! (%c)\n",*fc);
abort();
}
}
else putc(*fc,f);
}
}
#endif // def io_support
/* BASIN SADDLE DATA MEMBERS */
const char
*Basin_saddle::format="BS %I: walk risk=%W, %F",
*Basin_saddle::id_bs_hdr=0,
*Basin_saddle::id_peak1_hdr=0,
*Basin_saddle::id_peak2_hdr=0,
*Basin_saddle::walk_risk_hdr=0,
*Basin_saddle::WRO_hdr=0,
*Basin_saddle::cycle_format="%u",
*Basin_saddle::cycle_hdr=0,
*Basin_saddle::WS_string="none";
/* BASIN SADDLE MEMBER FUNCTIONS */
static Domain::Sadl_cxn
check_low_cxn(const Domain *sadl1, const Domain *sadl2,
const Domain *ca, Elevation floor,
short int dc, Elev_endpt outer)
{
for (; sadl1!=ca; sadl1=sadl1->primary_nbr)
if (dc*sadl1->saddle.elev.*outer<floor) return Domain::LOW_CXN;
for (; sadl2!=ca; sadl2=sadl2->primary_nbr)
if (dc*sadl2->saddle.elev.*outer<floor) return Domain::LOW_CXN;
return Domain::GOOD_CXN;
}
// Determine the peaks that would be connected in an SWI switch
// between this and sadl_dom.
Domain::Sadl_cxn Basin_saddle::SWI_switch_cxn(Domain *sadl_dom,
Domain *&ps_cxn, Domain *&bs_cxn, unsigned short& cycle_side,
short int dc, Elev_endpt inner, Elev_endpt outer)
{
const Domain *ca,*bs_brk,*ps_brk;
cycle_side=on_cycle(sadl_dom);
if (cycle_side) {
// saddle is on the basin saddle's cycle
unsigned short hs=high_side(sadl_dom,sadl_dom->primary_nbr,dc,inner,outer);
switch (hs) {
case 0:
return Domain::AMBIG_CXN;
case 1:
bs_cxn=peak2;
bs_brk=peak1;
break;
case 2:
bs_cxn=peak1;
bs_brk=peak2;
break;
default: assert(0);
}
if (cycle_side==hs) {
ps_cxn=sadl_dom->primary_nbr;
ca=ps_brk=sadl_dom;
}
else {
ps_cxn=sadl_dom;
ps_brk=sadl_dom->primary_nbr;
ca=common_ancestor;
}
}
else {
// saddle is off of basin saddle's cycle
Domain *ca1,*ca2,*jct_dom=cycle_jct(sadl_dom,ca1,ca2);
if (jct_dom==0) return Domain::NO_CXN;
switch (high_side(jct_dom,dc,inner,outer)) {
case 0:
return Domain::AMBIG_CXN;
case 1:
bs_cxn=peak2;
bs_brk=peak1;
ca=ca1;
break;
case 2:
bs_cxn=peak1;
bs_brk=peak2;
ca=ca2;
break;
default: assert(0);
}
if (ca!=sadl_dom) {
ps_cxn=sadl_dom;
ps_brk=sadl_dom->primary_nbr;
}
else {
ps_cxn=sadl_dom->primary_nbr;
ps_brk=sadl_dom;
}
}
Elevation low1=dc*sadl_dom->saddle.elev.*inner,low2=dc*elev.*inner;
return check_low_cxn(bs_brk,ps_brk,ca,low1<low2?low1:low2,dc,outer);
}
Domain *Basin_saddle::hit(const Domain *jct, short int dc,
Elev_endpt inner, Elev_endpt outer) const
{
switch (high_side(jct,dc,inner,outer)) {
case 1: return peak1;
case 2: return peak2;
case 0: return 0;
}
assert(0);
return 0;
}
static Domain *hit2(Domain *a, Domain *b)
{
if (a==b || b==0) return a;
if (a==0) return b;
return 0;
}
enum Hit_side {SIDE_NONE,SIDE_SHORT,SIDE_LONG};
static inline Hit_side hit_side(Elev_intvl hn, Elev_intvl hf, Elev_intvl C)
{
if (hn.low>hf.high || hn.low>C.high) return SIDE_SHORT;
if (hf.low>hn.high && C.low>hn.high) return SIDE_LONG;
return SIDE_NONE;
}
static bool pair_gt(Elev_intvl& A1, Elev_intvl& B1, Elev_intvl& A2, Elev_intvl& B2,
short dc, Elev_endpt inner, Elev_endpt outer)
{
return dc*(min(A1.*inner,B1.*inner)-min(A2.*outer,B2.*outer))>0;
}
// Determine the peaks that would be connected in an SWI switch
// between bsA and bsB.
Domain::Sadl_cxn
Basin_saddle::SWI_switch_cxn(Basin_saddle& bsA, Basin_saddle& bsB,
Domain *&cxnA, Domain *&cxnB,
short int dc, Elev_endpt inner, Elev_endpt outer)
{
Domain *jctA1B=bsB.cycle_jct(bsA.peak1),*jctA2B=bsB.cycle_jct(bsA.peak2),
*jctB1A=bsA.cycle_jct(bsB.peak1);
Domain *brkA,*brkB;
if (jctA1B==jctA2B) {
// cycles are not fused
brkA=bsA.hit(jctB1A,dc,inner,outer),brkB=bsB.hit(jctA1B,dc,inner,outer);
if (brkA==0 || brkB==0) return Domain::AMBIG_CXN;
}
else {
// cycles are fused
bool swap=jctA2B==jctB1A;
assert(swap!=(jctA1B==jctB1A));
Elev_intvl A1,A2,B1,B2,C,Cx;
bsA.low_cycle(jctA1B,jctA2B,dc,A1,A2,C);
bsB.low_cycle(jctA1B,jctA2B,dc,B1,B2,Cx);
assert(C.low==Cx.low && C.high==Cx.high);
if (swap) {
Cx=B1;
B1=B2;
B2=Cx;
}
Hit_side sideA1=hit_side(A1,A2,C),sideB1=hit_side(B1,B2,C),
sideA2=hit_side(A2,A1,C),sideB2=hit_side(B2,B1,C);
if (sideA1==SIDE_SHORT && sideB1==SIDE_SHORT &&
pair_gt(A1,B1,A2,B2,dc,inner,outer)) {
brkA=bsA.peak1;
brkB=bsB.peak1;
}
else if (sideA2==SIDE_SHORT && sideB2==SIDE_SHORT &&
pair_gt(A2,B2,A1,B1,dc,inner,outer)) {
brkA=bsA.peak2;
brkB=bsB.peak2;
}
else if (sideA2==SIDE_LONG && sideB1==SIDE_LONG &&
pair_gt(A1,B2,A2,B1,dc,inner,outer)) {
brkA=bsA.peak1;
brkB=bsB.peak2;
}
else if (sideA1==SIDE_LONG && sideB2==SIDE_LONG &&
pair_gt(A2,B1,A1,B2,dc,inner,outer)) {
brkA=bsA.peak2;
brkB=bsB.peak1;
}
else return Domain::AMBIG_CXN;
if (swap) brkB=bsB.other_peak(brkB);
}
Elevation lowA=dc*bsA.elev.*inner,lowB=dc*bsB.elev.*inner;
cxnA=bsA.other_peak(brkA);
cxnB=bsB.other_peak(brkB);
return check_low_cxn(brkA,brkB,Domain::common_ancestor(brkA,brkB),
lowA<lowB?lowA:lowB,dc,outer);
}
static void get_leg_walk_info(Basin_saddle::Cycle_walk_info& cwinfo,
Domain *start, Domain *end, short int dc)
{
while (start!=end) {
const Elev_intvl& se=start->saddle.elev;
if ((se.low-cwinfo.low1)*dc<0) {
cwinfo.low2=cwinfo.low1;
cwinfo.low1=se.low;
cwinfo.low_src=start;
}
else if ((se.low-cwinfo.low2)*dc<0) cwinfo.low2=se.low;
if ((se.high-cwinfo.high1)*dc<0) {
cwinfo.high2=cwinfo.high1;
cwinfo.high1=se.high;
cwinfo.high_src=start;
}
else if ((se.high-cwinfo.high2)*dc<0) cwinfo.high2=se.high;
start=start->primary_nbr;
}
}
void Basin_saddle::get_walk_info(Cycle_walk_info& cwinfo, short int dc) const
{
cwinfo.low1=elev.low;
cwinfo.high1=elev.high;
cwinfo.low_src=cwinfo.high_src=0;
cwinfo.low2=cwinfo.high2=elev_infty*dc;
get_leg_walk_info(cwinfo,peak1,common_ancestor,dc);
get_leg_walk_info(cwinfo,peak2,common_ancestor,dc);
}
Elevation Basin_saddle::walk_risk(const Cycle_walk_info& cwinfo) const
{
return elev.high-(cwinfo.low_src==0?cwinfo.low2:cwinfo.low1);
}
Elevation Basin_saddle::WR_offense(const Cycle_walk_info& cwinfo) const
{
return (cwinfo.high_src==0?cwinfo.high2:cwinfo.high1)-elev.low;
}
Elevation Basin_saddle::walk_risk(const Cycle_walk_info& cwinfo,
const Domain *ps) const
{
return ps->saddle.elev.high-(cwinfo.low_src==ps?cwinfo.low2:cwinfo.low1);
}
Elevation Basin_saddle::WR_offense(const Cycle_walk_info& cwinfo,
const Domain *ps) const
{
return (cwinfo.high_src==ps?cwinfo.high2:cwinfo.high1)-ps->saddle.elev.low;
}
Domain *Basin_saddle::cycle_min(int sign, Elev_endpt outer)
{
if (common_ancestor==0) return 0;
Saddle *loop_min=this;
peak1->low_saddle_leg(loop_min,common_ancestor,sign,outer,false);
peak2->low_saddle_leg(loop_min,common_ancestor,sign,outer,false);
return loop_min!=this?Domain::FromSadl(loop_min):0;
}
static void check_low(const Elev_intvl& elev,
Elev_intvl& low_elev, short int dc)
{
if (dc*elev.high<dc*low_elev.high) low_elev.high=elev.high;
if (dc*elev.low<dc*low_elev.low) low_elev.low=elev.low;
}
static void get_low(unsigned short side, const Domain *jct, short int dc,
Domain *pk, const Domain *end, Elev_intvl low_elev[])
{
for (; pk!=end; pk=pk->primary_nbr) {
if (pk==jct) side=3-side;
check_low(pk->saddle.elev,low_elev[side-1],dc);
}
}
unsigned short Basin_saddle::high_side(const Domain *jct,
short int dc, Elev_endpt inner, Elev_endpt outer) const
{
Elev_intvl low_elev[]={dc*elev_infty,dc*elev_infty};
get_low(1,jct,dc,peak1,common_ancestor,low_elev);
get_low(2,jct,dc,peak2,common_ancestor,low_elev);
if (dc*low_elev[0].*outer<dc*low_elev[1].*inner) {
// high saddle is on side 2
return 2;
}
else if (dc*low_elev[1].*outer<dc*low_elev[0].*inner) {
// high saddle is on side 1
return 1;
}
return 0;
}
static void get_low_2(unsigned short init_side,
const Domain *jct1, const Domain *jct2, short int dc,
Domain *pk, const Domain *end, Elev_intvl low_elev[])
{
unsigned short side=init_side,ne;
for (; pk!=end; pk=pk->primary_nbr) {
ne=(pk==jct1)+(pk==jct2);
switch (ne) {
case 1:
if (side==init_side) side=0;
else if (side==0) side=3-init_side;
else assert(0);
break;
case 2:
assert(side==init_side);
side=3-init_side;
break;
}
check_low(pk->saddle.elev,low_elev[side],dc);
}
}
unsigned short Basin_saddle::high_side(const Domain *jct1, const Domain *jct2,
short int dc, Elev_endpt inner, Elev_endpt outer) const
{
Elev_intvl low_elev[]={dc*elev_infty,dc*elev_infty,dc*elev_infty};
get_low_2(1,jct1,jct2,dc,peak1,common_ancestor,low_elev);
get_low_2(2,jct1,jct2,dc,peak2,common_ancestor,low_elev);
if (dc*(low_elev[2].*inner-low_elev[1].*outer)>0) {
// high saddle is on side 2
return 2;
}
if (dc*(low_elev[1].*inner-low_elev[2].*outer)>0) {
// high saddle is on side 1
return 1;
}
return 0;
}
void Basin_saddle::low_cycle(const Domain *jct1, const Domain *jct2, short int dc,
Elev_intvl& h1, Elev_intvl& h2, Elev_intvl& C)
{
Elev_intvl low_elev[]={dc*elev_infty,dc*elev_infty,dc*elev_infty};
get_low_2(1,jct1,jct2,dc,peak1,common_ancestor,low_elev);
get_low_2(2,jct1,jct2,dc,peak2,common_ancestor,low_elev);
h1=low_elev[1];
h2=low_elev[2];
C=low_elev[0];
}
// Set just the loop size. Common ancestor must already be defined.
void Basin_saddle::set_cycle_length()
{
cycle=common_ancestor ? Domain::length(peak1,common_ancestor)+
Domain::length(peak2,common_ancestor)+1 : 0;
}
// Set both the common ancestor and the loop size.
void Basin_saddle::set_cycle_info()
{
common_ancestor=Domain::common_ancestor(peak1,peak2);
set_cycle_length();
}
// Determine if the saddle owned by d is on the loop closed by a basin saddle.
unsigned short Basin_saddle::on_cycle(const Domain *d) const
{
Domain *id;
for (id=peak1; id!=common_ancestor; id=id->primary_nbr)
if (id==d) return 1;
for (id=peak2; id!=common_ancestor; id=id->primary_nbr)
if (id==d) return 2;
return 0;
}
// find the point where the path from pk joins the cycle.
Domain *Basin_saddle::cycle_jct(Domain *pk, Domain *&ca1, Domain *&ca2)
{
ca1=Domain::common_ancestor(pk,peak1);
if (ca1==0) return 0;
// find out if ca1 is on the path from peak1 to the cycle CA
for (const Domain *ip=peak1; ip!=common_ancestor; ip=ip->primary_nbr)
if (ip==ca1) {
ca2=common_ancestor;
return ca1; // yes, that's the junction point
}
// otherwise, if it's the cycle CA itself,
// the junction point is the CA of peak2 and pk
if (ca1==common_ancestor) {
ca2=Domain::common_ancestor(pk,peak2);
return ca2;
}
// otherwise, the CA of peak1 and pk must be an ancestor of the cycle CA,
// and the junction point is the cycle CA
ca2=ca1;
return common_ancestor;
}
bool Basin_saddle::rotate(Domain *new_bs)
{
Saddle temp_BS(new_bs->saddle);
Domain *cut_parent=new_bs->primary_nbr,*child_peak,*parent_peak,*ci;
// determine on which side of the common ancestor is the broken saddle
for (ci=peak1; ci!=common_ancestor; ci=ci->primary_nbr) {
if (ci==new_bs) {
child_peak=peak1;
parent_peak=peak2;
break;
}
}
if (ci==common_ancestor) {
for (ci=peak2; ci!=common_ancestor; ci=ci->primary_nbr) {
if (ci==new_bs) {
child_peak=peak2;
parent_peak=peak1;
break;
}
}
if (ci==common_ancestor) return false;
}
// break saddle connection
new_bs->primary_nbr=0;
new_bs->saddle.clear();
// connect peaks through old basin saddle
child_peak->make_patriarch();
child_peak->primary_nbr=parent_peak;
child_peak->saddle=(*this);
// Define new basin saddle
(Saddle&)(*this)=temp_BS;
peak1=new_bs;
peak2=cut_parent;
// Update neighbor and Basin saddle arrays for affected peaks
if (cycle>2) {
child_peak->remove_nbr(this);
parent_peak->remove_nbr(this);
child_peak->add_nbr(parent_peak);
parent_peak->add_nbr(child_peak);
new_bs->remove_nbr(cut_parent);
cut_parent->remove_nbr(new_bs);
new_bs->add_nbr(this);
cut_parent->add_nbr(this);
}
return true;
}
void Basin_saddle::reconnect(Domain *from, Domain *to)
{
from->remove_nbr(this);
if (from==peak1) peak1=to;
else if (from==peak2) peak2=to;
else assert(0);
to->add_nbr(this);
set_cycle_info();
}
void Basin_saddle::remove()
{
clear();
peak1->remove_nbr(this);
peak2->remove_nbr(this);
common_ancestor=0;
cycle=0;
}
void Basin_saddle::clear_inv(bool update_nbr)
{
if (update_nbr) peak1->remove_nbr(this);
while (peak1->primary_nbr && elev<peak1->saddle.elev) {
if (peak1==common_ancestor) common_ancestor=peak1->primary_nbr;
peak1=peak1->primary_nbr;
}
if (update_nbr) peak1->add_nbr(this);
if (update_nbr) peak2->remove_nbr(this);
while (peak2->primary_nbr && elev<peak2->saddle.elev) {
if (peak2==common_ancestor) common_ancestor=peak2->primary_nbr;
peak2=peak2->primary_nbr;
}
if (update_nbr) peak2->add_nbr(this);
set_cycle_length();
}
// get the prominence of a basin saddle
Elev_intvl Basin_saddle::get_prom() const
{
return Elev_intvl(extreme_prom(LO_END),extreme_prom(HI_END));
}
// find the depth of peak i from the patriarch of a tree
static void set_depth(Domain::Index i, Topo_info tree[], unsigned anc_depth[])
{
unsigned j,d;
for (j=i,d=0; j!=Domain::undef && anc_depth[j]==0; j=tree[j].parnt,++d);
if (j!=Domain::undef) d+=anc_depth[j];
for (j=i; j!=Domain::undef && anc_depth[j]==0; j=tree[j].parnt,--d)
anc_depth[j]=d;
}
Domain::Index Basin_saddle::island_peak(const Domain *peak,
Topo_info ipit[], const Domain dom_base[])
{
Domain::Index i;
for (i=peak-dom_base;
ipit[i].parnt!=Domain::undef &&
!can_rotate(dom_base[ipit[i].sadl_dom].saddle);
i=ipit[i].parnt);
return i;
}
void Basin_saddle::inc_prom_sadl(const Domain& sadl_dom)
{
const Domain::Sadl_prom& sp=sadl_dom.prom.saddle;
if (sp.onmap>prom.cr_onmap) prom.cr_onmap=sp.onmap;
if (sp.offmap>prom.cr_offmap) prom.cr_offmap=sp.offmap;
if (can_rotate(sadl_dom.saddle)) {
if (sp.onmap>prom.onmap) prom.onmap=sp.onmap;
if (sp.offmap>prom.offmap) prom.offmap=sp.offmap;
}
}
Domain::Index Basin_saddle::set_prom_long_leg(Domain::Index idom,
unsigned d, const Domain dom_base[],
const Topo_info ipit[], const unsigned anc_depth[])
{
assert(anc_depth[idom]>=d);
while (anc_depth[idom]>d) {
inc_prom_sadl(dom_base[ipit[idom].sadl_dom]);
idom=ipit[idom].parnt;
}
return idom;
}
void Basin_saddle::set_prom_leg(const Domain *start)
{
for (; start!=common_ancestor; start=start->primary_nbr) {
inc_prom_sadl(*start);
}
}
void Basin_saddle::set_cycle_prom_leg(const Domain *start)
{
for (; start!=common_ancestor; start=start->primary_nbr) {
if (prom.onmap>start->ridge.cycle_prom)
start->ridge.cycle_prom=prom.onmap;
if (prom.offmap>start->ridge.cycle_offmap)
start->ridge.cycle_offmap=prom.offmap;
if (can_rotate(start->saddle)) {
Domain::Sadl_prom& sp=start->prom.saddle;
if (prom.cr_onmap>sp.cr_onmap) sp.cr_onmap=prom.cr_onmap;
if (prom.cr_offmap>sp.cr_offmap) sp.cr_offmap=prom.cr_offmap;
}
}
}
void Basin_saddle::set_prom(Topo_info ipit[], const Domain dom_base[],
unsigned anc_depth[])
{
assert((ipit==0) == (dom_base==0) && (ipit==0) == (anc_depth==0));
prom.onmap=prom.offmap=prom.cr_onmap=prom.cr_offmap=-elev_infty;
if (ipit) {
Domain::Index
i1=island_peak(peak1,ipit,dom_base),
i2=island_peak(peak2,ipit,dom_base);
set_depth(i1,ipit,anc_depth);
set_depth(i2,ipit,anc_depth);
unsigned d1=anc_depth[i1],d2=anc_depth[i2];
if (d1>d2) {
i1=set_prom_long_leg(i1,d2,dom_base,ipit,anc_depth);
}
else {
i2=set_prom_long_leg(i2,d1,dom_base,ipit,anc_depth);
}
while (i1!=i2) {
assert(i1!=Domain::undef && i2!=Domain::undef);
inc_prom_sadl(dom_base[ipit[i1].sadl_dom]);
inc_prom_sadl(dom_base[ipit[i2].sadl_dom]);
i1=ipit[i1].parnt;
i2=ipit[i2].parnt;
}
}
else {
set_prom_leg(peak1);
set_prom_leg(peak2);
}
if (prom.onmap==-elev_infty) {
// no proper rotation, therefore cell rotation prom is -infty
prom.cr_onmap=-elev_infty;
prom.cr_offmap=-elev_infty;
}
else {
// proper rotation, so set ridge & cell rotation prom
set_cycle_prom_leg(peak1);
set_cycle_prom_leg(peak2);
}
}
void Basin_saddle::extreme_prom_leg(Elevation& bs_prom, Domain *start,
Elev_endpt endpt) const
{
Elevation sp;
for (; start!=common_ancestor; start=start->primary_nbr) {
if (!can_rotate(start->saddle)) continue;
sp=start->extreme_sadl_prom(eff_stat(false)>start->saddle.eff_stat(false)?
elev_infty:elev.high,
endpt);
if (sp>bs_prom) bs_prom=sp;
}
}
Elevation Basin_saddle::extreme_prom(Elev_endpt endpt) const
{
Elevation bs_prom=-elev_infty;
extreme_prom_leg(bs_prom,peak1,endpt);
extreme_prom_leg(bs_prom,peak2,endpt);
return bs_prom;
}
void Basin_saddle::offmap_prom_leg(Elevation& bs_omp, Domain *start) const
{
Elevation osp;
for (; start!=common_ancestor; start=start->primary_nbr) {
if (!can_rotate(start->saddle)) continue;
osp=start->offmap_sadl_prom(eff_stat(false)>start->saddle.eff_stat(false)?
elev_infty:elev.high);
if (osp>bs_omp) bs_omp=osp;
}
}
Elevation Basin_saddle::offmap_prom() const
{
Elevation bs_omp=-elev_infty;
offmap_prom_leg(bs_omp,peak1);
offmap_prom_leg(bs_omp,peak2);
return bs_omp;
}
bool Basin_saddle::can_rotate(const Saddle& new_bs) const
{
Status bs_stat=eff_stat(false),ps_stat=new_bs.eff_stat(false);
if (ps_stat>bs_stat) return false;
if (ps_stat<bs_stat) return true;
return !(new_bs.elev>elev);
}
bool Basin_saddle::can_rotate() const
{
Domain *current;
// look for possibly lower saddle on leg 1.
for (current=peak1; current!=common_ancestor; current=current->primary_nbr)
if (can_rotate(current->saddle)) return true;
// no lower saddle on leg 1. try leg 2.
for (current=peak2; current!=common_ancestor; current=current->primary_nbr)
if (can_rotate(current->saddle)) return true;
// no lower saddle.
return false;
}
void Basin_saddle::write(FILE *f) const throw(file_error)
{
Saddle::write(f);
fwrite(Divide_tree::writing->index(peak1),f);
fwrite(Divide_tree::writing->index(peak2),f);
}
void Basin_saddle::read(FILE *f) throw(file_error)
{
Index index;
Saddle::read(f);
fread(index,f);
peak1=Divide_tree::reading->address(index);
fread(index,f);
peak2=Divide_tree::reading->address(index);
}
#ifdef io_support
void Basin_saddle::print(const Cycle_walk_info& cwinfo,
short int dc, FILE *f) const
{
if (!format) {
Feature::print(f);
return;
}
for (const char *fc=format; *fc; ++fc) {
if (*fc=='%') {
switch (*++fc) {
case 'I': case 'i':
fprintf(f,Domain::id_format,Divide_tree::writing->index(*this));
break;
case 'W': case 'w':
if (cycle>1)
fprintf(f,Elev_intvl::elem_format,
(dc>0)?walk_risk(cwinfo):WR_offense(cwinfo));
else fprintf(f,"%s",WS_string);
break;
case 'O': case 'o':
if (cycle>1)
fprintf(f,Elev_intvl::elem_format,
(dc>0)?WR_offense(cwinfo):walk_risk(cwinfo));
else fprintf(f,"%s",WS_string);
break;
case 'C': case 'c':
fprintf(f,cycle_format,cycle);
break;
case 'F': case 'f':
Feature::print(f);
break;
case '1':
fprintf(f,Domain::id_format,Divide_tree::writing->index(peak1));
break;
case '2':
fprintf(f,Domain::id_format,Divide_tree::writing->index(peak2));
break;
case '%':
putc('%',f);
break;
default:
fprintf(stderr,"Basin saddle format error! (%c)\n",*fc);
abort();
}
}
else putc(*fc,f);
}
}
void Basin_saddle::dump(FILE *f) const
{
Feature::print(f);
fprintf(f," P1=#%ld, P2=#%ld, CA=#%ld, cycle=%u\n",
Divide_tree::writing->index(peak1),Divide_tree::writing->index(peak2),
Divide_tree::writing->index(common_ancestor),cycle);
}
void Basin_saddle::print_header(FILE *f)
{
if (!format) {
Feature::print_header(f);
return;
}
for (const char *fc=format; *fc; ++fc) {
if (*fc=='%') {
switch (*++fc) {
case 'I': case 'i':
fprintf(f,Domain::id_field_format,id_bs_hdr);
break;
case 'W': case 'w':
fprintf(f,"%s",walk_risk_hdr);
break;
case 'O': case 'o':
fprintf(f,"%s",WRO_hdr);
break;
case 'C': case 'c':
fprintf(f,"%s",cycle_hdr);
break;
case 'F': case 'f':
Feature::print_header(f);
break;
case '1':
fprintf(f,Domain::id_field_format,id_peak1_hdr?id_peak1_hdr:Domain::id_peak_hdr);
break;
case '2':
fprintf(f,Domain::id_field_format,id_peak2_hdr?id_peak2_hdr:Domain::id_peak_hdr);
break;
case '%':
putc('%',f);
break;
default:
fprintf(stderr,"Basin saddle format error! (%c)\n",*fc);
abort();
}
}
else putc(*fc,f);
}
}
#endif // def io_support
void Basin_saddle::Cycle_iter::restart()
{
if (current==bs->common_ancestor && last_start==bs->peak1)
last_start=current=bs->peak2;
}
/* Domain DATA MEMBERS */
const char
*Domain::format="peak %I: %K\n%P",
*Domain::prom_format=" prom=%P, saddle %S\n",
*Domain::first_prom_format=0,
*Domain::HP_format=" high point, no saddle\n",
*Domain::id_format="#%lu",
*Domain::id_field_format="%s",
*Domain::id_peak_hdr=0,
*Domain::id_saddle_hdr=0,
*Domain::prom_hdr=0,
*Domain::usable_peak_hdr=0,
*Domain::usable_saddle_hdr=0,
*Domain::onmap_parent_string="",
*Domain::offmap_parent_string="off-map",
*Domain::runoff_string="off at",
*Domain::offmap_hdr=0;
const Domain::Index Domain::undef=(~(Domain::Index)0)>>1;
const Elevation Elev_intvl::infty=32512;
bool Domain::first_prom;
/* Domain MEMBER FUNCTIONS */
void Domain::operator=(const Domain& a)
{
peak=a.peak;
saddle=a.saddle;
primary_nbr=a.primary_nbr;
neighbors.clear();
runoffs.clear();
bsnsdls.clear();
}
void Domain::copy_nbrs(const Domain& source)
{
neighbors=source.neighbors;
runoffs=source.runoffs;
bsnsdls=source.bsnsdls;
}
static FILE *file;
static void print_dom_index(Domain *dom)
{
fprintf(file," #%ld",Divide_tree::writing->index(dom));
}
static void print_ro_index(Runoff *ro)
{
fprintf(file," #%ld",Divide_tree::writing->index(*ro));
}
static void print_bs_index(Basin_saddle *bs)
{
fprintf(file," #%ld",Divide_tree::writing->index(*bs));
}
static Domain dummy;
Domain *Domain::FromPeak(Feature *peak)
{
static const ptrdiff_t peak_offset=(char *)&dummy.peak-(char *)&dummy;
return (Domain *)((char *)peak-peak_offset);
}
const Domain *Domain::FromPeak(const Feature *peak)
{
static const ptrdiff_t peak_offset=(char *)&dummy.peak-(char *)&dummy;
return (const Domain *)((char *)peak-peak_offset);
}
Domain *Domain::FromSadl(Feature *saddle)
{
static const ptrdiff_t peak_offset=(char *)&dummy.saddle-(char *)&dummy;
return (Domain *)((char *)saddle-peak_offset);
}
const Domain *Domain::FromSadl(const Feature *saddle)
{
static const ptrdiff_t peak_offset=(char *)&dummy.saddle-(char *)&dummy;
return (const Domain *)((char *)saddle-peak_offset);
}
#ifdef io_support
void Domain::dump(FILE *f) const
{
file=f;
fprintf(f," Peak ");
peak.print(f);
fprintf(f,"\n Saddle ");
saddle.print(f);
if (!neighbors.empty()) fprintf(f,"\n Peak neighbors:");
for_each(neighbors.begin(),neighbors.end(),print_dom_index);
if (!runoffs.empty()) fprintf(f,"\n Runoff neighbors:");
for_each(runoffs.begin(),runoffs.end(),print_ro_index);
if (!bsnsdls.empty()) fprintf(f,"\n Basin saddle neighbors:");
for_each(bsnsdls.begin(),bsnsdls.end(),print_bs_index);
putc('\n',f);
}
#endif // def io_support
void Domain::write(FILE *f) const throw(file_error)
{
peak.write(f);
saddle.write(f);
fwrite(Divide_tree::writing->index(primary_nbr),f);
}
void Domain::read(FILE *f) throw(file_error)
{
Index indx;
peak.read(f);
saddle.read(f);
fread(indx,f);
primary_nbr=Divide_tree::reading->address(indx);
}
Elevation Domain::sadl_walk_inv_risk(Domain *a, bool drainage)
{
Elevation elev_nbr,extreme_nbr=drainage?elev_infty:-elev_infty;
const Domain *so=saddle_owner(a);
for (Neighbor_iter ni(*this,a); ni; ++ni) {
if (drainage) {
elev_nbr=ni.saddle_owner()->saddle.elev.low;
if (elev_nbr<extreme_nbr) extreme_nbr=elev_nbr;
}
else {
elev_nbr=ni.saddle_owner()->saddle.elev.high;
if (elev_nbr>extreme_nbr) extreme_nbr=elev_nbr;
}
}
for (ROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi) {
if (drainage) {
elev_nbr=(*roi)->elev.low;
if (elev_nbr<extreme_nbr) extreme_nbr=elev_nbr;
}
else {
elev_nbr=(*roi)->elev.high;
if (elev_nbr>extreme_nbr) extreme_nbr=elev_nbr;
}
}
for (BSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi) {
if (drainage) {
elev_nbr=(*bsi)->elev.low;
if (elev_nbr<extreme_nbr) extreme_nbr=elev_nbr;
}
else {
elev_nbr=(*bsi)->elev.high;
if (elev_nbr>extreme_nbr) extreme_nbr=elev_nbr;
}
}
return drainage?so->saddle.elev.high-extreme_nbr:
extreme_nbr-so->saddle.elev.low;
}
Elevation Domain::SWIR_offense(Domain *a, bool drainage)
{
const Domain *so=saddle_owner(a);
return SWIR_offense(so->saddle.elev,drainage,a);
}
Elevation Domain::SWIR_offense(Runoff *ro, bool drainage)
{
assert(ro->peak==this);
return SWIR_offense(ro->elev,drainage);
}
Elevation Domain::SWIR_offense(Basin_saddle *bs, bool drainage)
{
assert(bs->peak1==this || bs->peak2==this);
return SWIR_offense(bs->elev,drainage);
}
Elevation Domain::SWIR_offense(Elev_intvl range, bool drainage, Domain *a)
{
Elevation wro=elev_infty,elev=drainage?range.low:range.high,wro1;
for (Neighbor_iter ni(*this,a); ni; ++ni) {
if (drainage) wro1=ni.saddle_owner()->saddle.elev.high-elev;
else wro1=elev-ni.saddle_owner()->saddle.elev.low;
if (wro1<wro) wro=wro1;
}
return wro;
}
// find a maximum or minimum peak prominence
// endpt==LO_END ==> max, endpt==HI_END ==> min
Elevation Domain::extreme_pk_prom(Elev_endpt endpt)
{
assert(peak.location);
xplr_sup.root_LIS=elev_infty;
for (Explorer xplr(this,endpt); xplr; ++xplr) {
const Domain &curnt=(*xplr),&prev=*curnt.xplr_sup.root_nbr;
curnt.xplr_sup.root_LIS=prev.xplr_sup.root_LIS;
depress(curnt.xplr_sup.root_LIS,xplr.saddle().elev);
if (endpt==LO_END ? curnt.peak.elev>peak.elev :
!(curnt.peak.elev<peak.elev)) {
// we found a higher peak.
Elev_endpt farpt = OTHER_END(endpt);
return peak.elev.*farpt-curnt.xplr_sup.root_LIS.*endpt;
}
}
// we found no higher peak.
return elev_infty;
}
// get the prominence of a peak
Elev_intvl Domain::peak_prom()
{
return Elev_intvl(extreme_pk_prom(HI_END),extreme_pk_prom(LO_END));
}
// adjust the off-map prominence due to runoffs of this peak
void Domain::update_omp(const conditional_HIP& cond_HIP, Elevation& omp) const
{
// find the highest runoff elevation
Elev_intvl hi_ro_elev=-elev_infty;
for (const_ROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi) {
if (!((*roi)->elev<xplr_sup.dpar_LIS))
elevate(hi_ro_elev,(*roi)->elev);
}
if (hi_ro_elev.high==-elev_infty) return;
// bump the runoff elev down to the root LIS
depress(hi_ro_elev,xplr_sup.root_LIS);
// bump the omp down to its new level
Elevation this_omp=cond_HIP.get_HIP(hi_ro_elev)-hi_ro_elev.high;
if (this_omp<omp) omp=this_omp;
}
Elevation Domain::offmap_pk_prom()
{
Elevation omp=elev_infty;
Elev_intvl lo_sadl=elev_infty;
conditional_HIP cond_HIP(peak.elev.low);
set_island(false,cond_HIP);
// collect edge LISs from each runoff
update_omp(cond_HIP,omp);
for (Explorer xplr(this,LO_END); xplr; ) {
const Domain &curnt=(*xplr),*root_nbr=curnt.xplr_sup.root_nbr;
// have we left the prominence island? If so, discontinue this branch.
if (xplr.saddle().elev<root_nbr->xplr_sup.dpar_LIS ||
curnt.xplr_sup.root_LIS<curnt.xplr_sup.dpar_LIS) {
xplr.stop_branch();
continue;
}
// propagate the definite parent LIS out from the root
elevate(curnt.xplr_sup.dpar_LIS,root_nbr->xplr_sup.dpar_LIS);
// update omp
curnt.update_omp(cond_HIP,omp);
++xplr;
}
return omp;
}
// helper function for computing saddle prominence.
static bool island_xplr(Explorer& xplr, Elev_endpt endpt,
Elevation& pe, const Elev_intvl& use)
{
if (!xplr) {
// we've exhausted the prominence island.
return true;
}
if (endpt==HI_END ? xplr.saddle().elev<use :
!(xplr.saddle().elev>use))
xplr.stop_branch(); // we can't drop out of the prominence island
else {
Elevation new_pe=(*xplr).peak.elev.*endpt;
if (new_pe>pe)
pe=new_pe; // we found a higher peak in the prominence island
++xplr;
}
return false;
}
// find a maximum or minimum saddle prominence
// endpt==HI_END ==> max, endpt==LO_END ==> min
Elevation Domain::extreme_sadl_prom(Elevation ceiling, Elev_endpt endpt)
{
assert(peak.location && primary_nbr);
if (ceiling<saddle.elev.low) return -elev_infty;
Elev_intvl use=saddle.elev;
if (ceiling<use.high) use.high=ceiling;
Explorer xplr1(this,primary_nbr,endpt),xplr2(primary_nbr,this,endpt);
Elevation pe1=peak.elev.*endpt,pe2=primary_nbr->peak.elev.*endpt;
Elev_endpt farpt = OTHER_END(endpt);
while (true) {
// advance the explorer on whichever side has seen the lower highest peak
if (pe1<pe2) {
if (island_xplr(xplr1,endpt,pe1,use)) return pe1-use.*farpt;
}
else {
if (island_xplr(xplr2,endpt,pe2,use)) return pe2-use.*farpt;
}
}
assert(0);
return -elev_infty;
}
Elevation Domain::max_sadl_prom()
{
Elevation sp=extreme_sadl_prom(HI_END),omsp=offmap_sadl_prom();
return sp>omsp?sp:omsp;
}
Elev_intvl Domain::sadl_promx(Elevation ceiling)
{
return Elev_intvl(extreme_sadl_prom(ceiling,LO_END),
extreme_sadl_prom(ceiling,HI_END));
}
static void update_sadl_omp(const Domain& d, const Elev_intvl& use, bool& off)
{
const vector<Runoff *>& ros=d.runoffs;
for (const_ROiter roi=ros.begin(); roi!=ros.end(); ++roi)
if (!((*roi)->elev<use)) {
// we found a runoff in the prominence island
off=true;
break;
}
}
// helper function for computing offmap saddle prominence.
static void offmap_island_xplr(Explorer& xplr, Elev_intvl& pe,
bool& off, const Elev_intvl& use)
{
assert(xplr);
if (xplr.saddle().elev<use)
xplr.stop_branch(); // we can't drop out of the prominence subisland
else {
const Elev_intvl& new_pe=(*xplr).peak.elev;
// update subisland HP
elevate(pe,new_pe);
// update subisland runoff status
update_sadl_omp(*xplr,use,off);
++xplr;
}
}
Elevation Domain::offmap_sadl_prom(Elevation ceiling)
{
assert(peak.location && primary_nbr);
if (ceiling<saddle.elev.low) return -elev_infty;
Elev_intvl use=saddle.elev;
if (ceiling<use.high) use.high=ceiling;
Explorer xplr1(this,primary_nbr,LO_END),xplr2(primary_nbr,this,LO_END);
Elev_intvl pe1=peak.elev,pe2=primary_nbr->peak.elev;
bool off1=false,off2=false;
update_sadl_omp(*this,use,off1);
update_sadl_omp(*primary_nbr,use,off2);
while (true) {
if (off1 && off2) return elev_infty; // runoff on both sides; offmap prominence unlimited
if (!xplr1 && !off1 && pe1<pe2 ||
!xplr2 && !off2 && pe2<pe1) {
// exhausted low side w/o runoff, no effect on prominence
return -elev_infty;
}
if (xplr1 && (!xplr2 || pe1.low<pe2.low)) {
offmap_island_xplr(xplr1,pe1,off1,use);
}
else if (xplr2 && (!xplr1 || pe2.low<=pe1.low)) {
offmap_island_xplr(xplr2,pe2,off2,use);
}
else {
// exhausted both sides
assert(!xplr1 && !xplr2);
if (off1) return pe2.high-use.low;
if (off2) return pe1.high-use.low;
return -elev_infty;
}
}
assert(0);
return -elev_infty;
}
Domain *Domain::common_nbr(Domain *a)
{
if (primary_nbr==a->primary_nbr) return primary_nbr;
if (primary_nbr && primary_nbr->primary_nbr==a) return primary_nbr;
if (a->primary_nbr && a->primary_nbr->primary_nbr==this) return a->primary_nbr;
return 0;
}
Domain *Domain::patriarch()
{
Domain *start;
for (start=this; start->primary_nbr; start=start->primary_nbr);
return start;
}
Domain *Domain::ancestor(unsigned n)
{
Domain *d=this;
while (n>0) {
d=d->primary_nbr;
--n;
}
return d;
}
// propagate a peripheral LIS from an outlying point back toward the root
void Domain::transmit_LIS(Elev_intvl Domain::Explorer_support::*LIS) const
{
const Domain *d=this,*r;
Elev_intvl pl=d->xplr_sup.*LIS;
while (true) {
r=d->xplr_sup.root_nbr;
if (r==0) break;
depress(pl,d->saddle_owner(r)->saddle.elev);
d=r;
if (pl.low<=(d->xplr_sup.*LIS).low &&
pl.high<=(d->xplr_sup.*LIS).high) break;
elevate(d->xplr_sup.*LIS,pl);
}
}
// update highest peak & lowest saddle seen so far
void conditional_HIP::update(const Elev_intvl& LIS, Elevation pk_elev)
{
Elevation& hi_peak=hip_lis.back().HIP;
if (pk_elev>hi_peak) {
const Elev_intvl& old_lo_sadl=hip_lis.back().LIS;
if (LIS.low==old_lo_sadl.low && LIS.high==old_lo_sadl.high)
hi_peak=pk_elev;
else {
assert(LIS.low<old_lo_sadl.low ||
LIS.low==old_lo_sadl.low && (LIS.high==LIS.low ||
old_lo_sadl.high>old_lo_sadl.low));
hip_lis.push_back(HIP_LIS(pk_elev,LIS));
}
}
}
// get the HIP for a specific LIS
Elevation conditional_HIP::get_HIP(const Elev_intvl& LIS) const
{
vector<HIP_LIS>::const_reverse_iterator upei;
for (upei=hip_lis.rbegin(); !(LIS<(*upei).LIS); ++upei)
assert(upei!=hip_lis.rend());
return (*upei).HIP;
}
// set the root LIS and parent LISes in the prominence island
// and the path to the nearest line parent
void Domain::set_island(bool prom_sadl, conditional_HIP& cond_HIP)
{
Elev_intvl pLIS;
xplr_sup.dpar_LIS=xplr_sup.ppar_LIS=-elev_infty;
xplr_sup.root_LIS=elev_infty;
const Domain *pHIP_dom,*srcdom,*dom;
for (Explorer xplr(this,LO_END); xplr; ) {
const Domain &curnt=(*xplr),*root_nbr=curnt.xplr_sup.root_nbr;
// update the definite parent LIS by drawing from the root
if (xplr_sup.dpar_LIS>-elev_infty) {
for (srcdom=root_nbr; srcdom->xplr_sup.dpar_LIS==-elev_infty;
srcdom=srcdom->xplr_sup.root_nbr);
for (dom=root_nbr; dom!=srcdom; dom=dom->xplr_sup.root_nbr)
dom->xplr_sup.dpar_LIS=srcdom->xplr_sup.dpar_LIS;
}
// have we left the prominence island? If so, discontinue this branch.
const Elev_intvl& se=xplr.saddle().elev;
if (se<root_nbr->xplr_sup.dpar_LIS) {
xplr.stop_branch();
continue;
}
// propagate the root LIS
curnt.xplr_sup.root_LIS=root_nbr->xplr_sup.root_LIS;
depress(curnt.xplr_sup.root_LIS,se);
if (prom_sadl) {
// Is the current peak possibly higher than the original?
if (!(peak.elev>curnt.peak.elev)) {
// yes, transmit the possible parent LIS back toward the root.
curnt.xplr_sup.ppar_LIS=elev_infty;
curnt.transmit_LIS(&Explorer_support::ppar_LIS);
}
else curnt.xplr_sup.ppar_LIS=-elev_infty;
// update the peripheral HIP
curnt.xplr_sup.pHIP=-elev_infty;
pLIS=elev_infty;
for (pHIP_dom=&curnt;
!(pLIS<pHIP_dom->xplr_sup.root_LIS) &&
pHIP_dom->xplr_sup.pHIP<curnt.peak.elev.high;
pHIP_dom=pHIP_dom->xplr_sup.root_nbr) {
pHIP_dom->xplr_sup.pHIP=curnt.peak.elev.high;
depress(pLIS,pHIP_dom->saddle_owner(pHIP_dom->xplr_sup.root_nbr)->saddle.elev);
}
}
// Is the current peak definitely higher than the original?
if (curnt.peak.elev>peak.elev) {
// yes, transmit the definite parent LIS back toward the root.
curnt.xplr_sup.dpar_LIS=elev_infty;
curnt.transmit_LIS(&Explorer_support::dpar_LIS);
xplr.stop_branch();
continue;
}
curnt.xplr_sup.dpar_LIS=-elev_infty;
// update highest peak & lowest saddle seen so far
cond_HIP.update(curnt.xplr_sup.root_LIS,curnt.peak.elev.low);
// this cannot be in the "for" statement,
// because the continue statements above are supposed to skip it
++xplr;
}
}
void Domain::set_edge_nbr_LIS() const
{
xplr_sup.edge_LIS=-elev_infty;
for (const_ROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
elevate(xplr_sup.edge_LIS,(*roi)->elev);
}
void Domain::set_edge_LIS()
{
set_edge_nbr_LIS();
for (Explorer xplr(this,LO_END); xplr; ) {
const Domain& curnt=(*xplr);
// have we left the prominence island?
if (curnt.xplr_sup.root_LIS<curnt.xplr_sup.dpar_LIS) {
// yes, stop exploring in this direction.
xplr.stop_branch();
continue;
}
// update the edge LIS
curnt.set_edge_nbr_LIS();
curnt.transmit_LIS(&Explorer_support::edge_LIS);
++xplr;
}
}
#ifdef io_support
void Domain::list_prom_runoffs(Prom_sadl_CB pscb,
const conditional_HIP& cond_HIP, Elevation pk_hi_elev,
const Prom_sadl_filter& filter, const Database& data)
{
if (!filter.runoffs) return;
Elevation root_LIS=xplr_sup.root_LIS.high;
Elev_intvl use;
use.low=xplr_sup.dpar_LIS.low;
for (const_ROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi) {
use.high=root_LIS;
if (use.high<use.low || (*roi)->elev<use || !filter.runoff_filter.test(**roi,data)) continue;
if ((*roi)->elev.high<use.high) use.high=(*roi)->elev.high;
(*pscb)(**roi,FT_RUNOFF,Elev_intvl(cond_HIP.get_HIP(use),pk_hi_elev),use,false);
}
}
void Domain::list_prom_sadls(Prom_sadl_CB pscb,
const Prom_sadl_filter& filter, const Database& data)
{
Elevation hi_upe,lo_upe;
Elev_intvl use,off_use;
bool offmap=filter.off_sadls || filter.runoffs;
conditional_HIP cond_HIP(peak.elev.low);
set_island(true,cond_HIP);
if (offmap) set_edge_LIS();
list_prom_runoffs(pscb,cond_HIP,peak.elev.high,filter,data);
// The explorer must use the low end so that cond_HIP will be computed correctly.
for (Explorer xplr(this,LO_END); xplr; ) {
Domain& curnt=(*xplr);
Saddle& cur_sadl=xplr.saddle();
// did we leave the prominence island? If so, discontinue this branch.
if (cur_sadl.elev<curnt.xplr_sup.root_nbr->xplr_sup.dpar_LIS) {
xplr.stop_branch();
continue;
}
// determine usable saddle elevation
xplr.use(use,offmap?&off_use:0);
// Does it pass the filter?
if (filter.saddle_filter.test(cur_sadl,data)) {
// does the current actual saddle elevation intersect the USE?
if (!use.is_empty()) {
// yes! it's a possible prom saddle with on-map parent
hi_upe=peak.elev.high<curnt.xplr_sup.pHIP?
peak.elev.high:curnt.xplr_sup.pHIP;
if (hi_upe-use.low>=filter.min_prom || filter.min_prom==0) { // enough prominence
lo_upe=cond_HIP.get_HIP(use);
if (hi_upe>=lo_upe)
(*pscb)(cur_sadl,FT_SADDLE,Elev_intvl(lo_upe,hi_upe),use,false);
}
}
// does the actual saddle elevation intersect the off-map USE?
if (filter.off_sadls && !off_use.is_empty()) {
// yes. it's a possible prom saddle with off-map parent
if (peak.elev.high-off_use.low>=filter.min_prom) { // enough prominence
(*pscb)(cur_sadl,FT_SADDLE,Elev_intvl(cond_HIP.get_HIP(off_use),peak.elev.high),off_use,true);
}
}
}
curnt.list_prom_runoffs(pscb,cond_HIP,peak.elev.high,filter,data);
// propagate the definite parent LIS outward
elevate(curnt.xplr_sup.dpar_LIS,curnt.xplr_sup.root_nbr->xplr_sup.dpar_LIS);
++xplr;
}
}
static void draw_dpar_LIS(Domain *dom)
{
// draw definite parent LIS from the root
for (Domain *srcdom=dom; srcdom; srcdom=srcdom->xplr_sup.root_nbr)
elevate(dom->xplr_sup.dpar_LIS,srcdom->xplr_sup.dpar_LIS);
}
static void transmit_HIP(Domain *dom, const Elev_intvl& floor)
{
for (; dom->xplr_sup.root_nbr &&
dom->saddle_owner(dom->xplr_sup.root_nbr)->saddle.elev>floor &&
dom->xplr_sup.pHIP>dom->xplr_sup.root_nbr->xplr_sup.pHIP;
dom=dom->xplr_sup.root_nbr) {
dom->xplr_sup.root_nbr->xplr_sup.pHIP=dom->xplr_sup.pHIP;
}
}
void Domain::list_parnt_runoffs(const Elev_intvl& floor, Parent_CB parent_cb,
bool list_runoffs) const
{
if (list_runoffs) {
for (const_ROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi) {
if (!((*roi)->elev<floor))
(*parent_cb)(**roi,FT_RUNOFF);
}
}
}
bool Domain::list_line_parent(const Elev_intvl& child_elev, Parent_CB parent_cb,
bool list_runoffs)
{
// if this is possibly higher than the original peak, add it.
if (!(peak.elev<child_elev))
(*parent_cb)(peak,FT_PEAK);
// if this is definitely higher than original peak, bail.
if (peak.elev>child_elev)
return false;
// add neighboring runoffs.
list_parnt_runoffs(xplr_sup.dpar_LIS,parent_cb,list_runoffs);
return true;
}
void Domain::list_cell_parent(Elevation min_prom, const Elev_intvl& child_elev,
Parent_CB parent_cb, bool list_runoffs)
{
// if /this/ has enough prominence, add it.
if (prom.peak>=min_prom && !(peak.elev<child_elev))
(*parent_cb)(peak,FT_PEAK);
// add neighboring runoffs.
list_parnt_runoffs(xplr_sup.dpar_LIS,parent_cb,list_runoffs);
}
void Domain::list_island_parent(const Elev_intvl& use, Parent_CB parent_cb,
bool list_runoffs)
{
// if dom is possibly higher than its peripheral HIP, add it.
if (!(peak.elev<xplr_sup.pHIP))
(*parent_cb)(peak,FT_PEAK);
// add neighboring runoffs.
list_parnt_runoffs(use,parent_cb,list_runoffs);
}
void Domain::list_parents(Domain& sadl_dom, const Elev_intvl& upe, const Elev_intvl& use,
Domain::Topology topo, Parent_CB parent_cb, bool list_runoffs)
{
Domain *child_side_pk,*parnt_side_pk,*HIP_pk;
Elev_intvl par_se,pk_prom;
if (sadl_dom.xplr_sup.root_nbr==sadl_dom.primary_nbr) {
parnt_side_pk=&sadl_dom;
}
else {
assert(sadl_dom.primary_nbr->xplr_sup.root_nbr==&sadl_dom);
parnt_side_pk=sadl_dom.primary_nbr;
}
child_side_pk=parnt_side_pk->xplr_sup.root_nbr;
Explorer xplr(parnt_side_pk,child_side_pk,HI_END);
switch (topo) {
case Domain::TOPO_LINE:
// dpar_LIS was already set up when the prom saddle list
// of the original peak was generated.
if (parnt_side_pk->list_line_parent(upe,parent_cb,list_runoffs)) {
while (xplr) {
Domain &curnt_dom=(*xplr),*root_nbr=curnt_dom.xplr_sup.root_nbr;
if (xplr.saddle().elev<root_nbr->xplr_sup.dpar_LIS) {
// there's definitely a higher branch to a parent elsewhere.
// Stop exploring this branch.
xplr.stop_branch();
}
else if (!curnt_dom.list_line_parent(upe,parent_cb,list_runoffs)) {
// we found a definitely higher parent; stop exploring this branch.
xplr.stop_branch();
}
else ++xplr;
}
}
break;
case Domain::TOPO_CELL:
parnt_side_pk->xplr_sup.dpar_LIS=use;
HIP_pk=parnt_side_pk;
pk_prom=upe-use;
par_se.high=HIP_pk->peak.elev.low-pk_prom.low;
par_se.low=HIP_pk->peak.elev.low-pk_prom.high;
elevate(par_se,use);
// we must order by HI_END because that insures that parent-sufficient
// prominences are discovered correctly.
while (xplr) {
Domain &curnt_dom=(*xplr),*root_nbr=curnt_dom.xplr_sup.root_nbr;
const Elev_intvl& se=xplr.saddle().elev;
if (se<par_se) {
// we're trying to leave a contour that definitely contains
// a qualifying parent somewhere.
// Adjust the parent LIS
elevate(HIP_pk->xplr_sup.dpar_LIS,par_se);
HIP_pk->transmit_LIS(&Explorer_support::dpar_LIS);
// and reset the HIP
par_se=-elev_infty;
HIP_pk=0;
}
draw_dpar_LIS(root_nbr);
if (se<root_nbr->xplr_sup.dpar_LIS) {
// there's definitely a higher branch to a parent elsewhere.
// Discontinue this branch.
xplr.stop_branch();
continue;
}
curnt_dom.xplr_sup.dpar_LIS=use;
// update the running HIP
if (!HIP_pk || curnt_dom.peak.elev.low>HIP_pk->peak.elev.low) {
HIP_pk=&curnt_dom;
}
// update par_se
par_se.high=HIP_pk->peak.elev.low-pk_prom.low;
par_se.low=HIP_pk->peak.elev.low-pk_prom.high;
elevate(par_se,use);
++xplr;
}
if (HIP_pk) {
// this is in case explorer exhaustion constituted prom group detection
elevate(HIP_pk->xplr_sup.dpar_LIS,par_se);
HIP_pk->transmit_LIS(&Explorer_support::dpar_LIS);
}
parnt_side_pk->list_cell_parent(pk_prom.low,peak.elev,parent_cb,list_runoffs);
for (xplr.reset(parnt_side_pk,child_side_pk,HI_END); xplr; ) {
const Elev_intvl& se=xplr.saddle().elev;
Domain &curnt_dom=(*xplr),*root_nbr=curnt_dom.xplr_sup.root_nbr;
if (se<root_nbr->xplr_sup.dpar_LIS) {
// there's definitely a higher branch to a parent elsewhere.
// Discontinue this branch.
xplr.stop_branch();
continue;
}
// propagate dpar_LIS away from the root
elevate(curnt_dom.xplr_sup.dpar_LIS,root_nbr->xplr_sup.dpar_LIS);
curnt_dom.list_cell_parent(pk_prom.low,peak.elev,parent_cb,list_runoffs);
++xplr;
}
break;
case Domain::TOPO_ISLAND:
parnt_side_pk->xplr_sup.pHIP=parnt_side_pk->peak.elev.low;
while (xplr) {
const Elev_intvl& se=xplr.saddle().elev;
if (se<use) {
// We've dropped below the original saddle.
// Discontinue this branch.
xplr.stop_branch();
continue;
}
Domain &curnt_dom=(*xplr);
curnt_dom.xplr_sup.pHIP=curnt_dom.peak.elev.low;
// transmit pHIP toward the root
transmit_HIP(&curnt_dom,use);
++xplr;
}
// bump up the initial HIP to the peak elevation
if (parnt_side_pk->xplr_sup.pHIP<upe.low)
parnt_side_pk->xplr_sup.pHIP=upe.low;
parnt_side_pk->list_island_parent(use,parent_cb,list_runoffs);
for (xplr.reset(parnt_side_pk,child_side_pk,HI_END); xplr; ) {
const Elev_intvl& se=xplr.saddle().elev;
if (se<use) {
// We've dropped below the original saddle.
// Discontinue this branch.
xplr.stop_branch();
continue;
}
Domain &curnt_dom=(*xplr),*root_nbr=curnt_dom.xplr_sup.root_nbr;
// propagate the HIP away from the root
if (curnt_dom.xplr_sup.pHIP<root_nbr->xplr_sup.pHIP)
curnt_dom.xplr_sup.pHIP=root_nbr->xplr_sup.pHIP;
curnt_dom.list_island_parent(use,parent_cb,list_runoffs);
++xplr;
}
break;
default:
assert(0);
}
}
#endif // def io_support
void Domain::make_patriarch()
{
Domain *p=this,*a=primary_nbr,*b;
Saddle s1=saddle,s2;
primary_nbr=0;
saddle.clear();
while (a) {
b=a->primary_nbr;
a->primary_nbr=p;
assert(a!=a->primary_nbr);
s2=a->saddle;
a->saddle=s1;
p=a;
a=b;
s1=s2;
}
}
void Domain::low_saddle_leg(Saddle *&low_sadl, const Domain *stop,
int sign, Elev_endpt endpt, bool splice_mode)
{
Saddle::Status curnt_stat,low_stat;
int elev_diff;
Distance fs_diff;
for (Domain *start=this; start->primary_nbr && start!=stop; start=start->primary_nbr) {
if (low_sadl==0) {
low_sadl=&start->saddle;
}
else {
curnt_stat=start->saddle.eff_stat(splice_mode);
low_stat=low_sadl->eff_stat(splice_mode);
elev_diff=sign*start->saddle.elev.*endpt-low_sadl->elev.*endpt;
fs_diff=start->saddle.flat_sep-low_sadl->flat_sep;
if (curnt_stat<low_stat ||
(curnt_stat==low_stat && (elev_diff<0 ||
elev_diff==0 && fs_diff>0))) {
low_sadl=&start->saddle;
}
}
}
}
void Domain::change_nbr(Domain *from, Domain *to)
{
for (Dom_iter nbri=neighbors.begin(); nbri!=neighbors.end(); ++nbri) {
if (*nbri==from) {
*nbri=to;
break;
}
}
}
Domain::Sadl_cxn
Domain::SWI_switch_cxn(Domain *sadl1, Domain *sadl2, Domain *&ca,
short int dc, Elev_endpt inner, Elev_endpt outer)
{
ca=common_ancestor(sadl1,sadl2);
if (ca==0) return NO_CXN;
Elevation low1=dc*sadl1->saddle.elev.*inner,low2=dc*sadl2->saddle.elev.*inner;
return check_low_cxn(sadl1,sadl2,ca,low1<low2?low1:low2,dc,outer);
}
void Domain::SWI_switch(Domain& a, const Domain *ca)
{
if (ca==&a) a.primary_nbr->reconnect(*this,ca);
else a.reconnect(*this,ca);
}
// connect this to sadl
void Domain::reconnect(Domain& sadl, const Domain *ca)
{
if (ca==&sadl) {
// this is connected to child side of sadl
sadl.primary_nbr->change_nbr(&sadl,this);
sadl.remove_nbr(sadl.primary_nbr);
add_nbr(sadl.primary_nbr);
Saddle high_saddle=sadl.saddle;
Domain *parnt=sadl.primary_nbr;
sadl.saddle.clear();
sadl.primary_nbr=0;
make_patriarch();
primary_nbr=parnt;
saddle=high_saddle;
}
else {
// this is connected to parent side of sadl
sadl.change_nbr(sadl.primary_nbr,this);
sadl.primary_nbr->remove_nbr(&sadl);
add_nbr(&sadl);
sadl.primary_nbr=this;
}
}
Domain *Domain::common_ancestor(Domain *dom1, Domain *dom2)
{
unsigned i=0;
Domain *end1=dom1,*end2=dom2,*i1,*i2;
while (end1!=0 || end2!=0) {
++i;
if (end1!=0) {
for (i2=dom2; i2!=end2; i2=i2->primary_nbr)
if (end1==i2) return end1;
end1=end1->primary_nbr;
}
if (end2!=0) {
for (i1=dom1; i1!=end1; i1=i1->primary_nbr)
if (end2==i1) return end2;
end2=end2->primary_nbr;
}
}
return 0;
}
unsigned Domain::length(const Domain *dom1, const Domain *dom2)
{
unsigned i;
for (i=0; dom1!=dom2; dom1=dom1->primary_nbr)
++i;
return i;
}
void Domain::connect_nbr(const Basin_saddle& bs, Domain *dom1, Domain *dom2)
{
if (bs.location) {
if ((bs.peak1!=dom1 || bs.peak2!=dom2) &&
(bs.peak1!=dom2 || bs.peak2!=dom1)) {
bs.peak1->remove_nbr(bs.peak2);
bs.peak2->remove_nbr(bs.peak1);
dom1->add_nbr(dom2);
dom2->add_nbr(dom1);
}
}
else {
dom1->add_nbr(dom2);
dom2->add_nbr(dom1);
}
}
void Domain::connect(Saddle& junct, Domain *dom1, Domain *dom2,
Basin_saddle& ejected_sadl, bool splice_mode, bool immune)
{
Domain *comn_anc=0;
Saddle *low_saddle;
// Check for "triangle".
if (dom1->primary_nbr==dom2->primary_nbr)
comn_anc=dom1->primary_nbr;
else if (dom1->primary_nbr && dom1->primary_nbr->primary_nbr==dom2)
comn_anc=dom2;
else if (dom2->primary_nbr && dom2->primary_nbr->primary_nbr==dom1)
comn_anc=dom1;
if (!comn_anc) {
// No triangle found. Check for more distant common ancestor.
dom2->make_patriarch();
comn_anc=dom1->patriarch();
if (comn_anc!=dom2) comn_anc=0;
}
if (comn_anc) {
// Common ancestor found.
// Look for saddle lower than junction along each path to ancestor.
// if immune flag is set, new junction saddle is immune from ejection
low_saddle=immune?0:&junct;
dom1->low_saddle_leg(low_saddle,comn_anc,1,HI_END,splice_mode);
dom2->low_saddle_leg(low_saddle,comn_anc,1,HI_END,splice_mode);
}
else low_saddle=0; // No common ancestor. No need to find low saddle.
if (low_saddle==0) ejected_sadl.clear(); // not connected, no saddle ejected.
else if (low_saddle==&junct) {
// No lower saddle was found, so we just regurgitate attempted junction.
(Saddle&)ejected_sadl=junct;
ejected_sadl.peak1=dom1;
ejected_sadl.peak2=dom2;
}
else {
// Saddle lower than junction was found. Break it.
(Saddle&)ejected_sadl=*low_saddle;
Domain *low_sadl_dom=Domain::FromSadl(low_saddle);
ejected_sadl.peak1=low_sadl_dom;
ejected_sadl.peak2=low_sadl_dom->primary_nbr;
assert(dom1->primary_nbr!=dom2 && dom2->primary_nbr!=dom1 ||
ejected_sadl.peak1==dom1 && ejected_sadl.peak2==dom2 ||
ejected_sadl.peak2==dom1 && ejected_sadl.peak1==dom2);
low_sadl_dom->primary_nbr=0;
low_saddle->clear();
comn_anc=0; // Broken link cancels common ancestor.
}
if (!comn_anc) {
// No common ancestor (anymore). Connect domains.
dom2->make_patriarch();
dom2->primary_nbr=dom1;
assert(dom2!=dom2->primary_nbr);
dom2->saddle=junct;
}
}
Domain *Domain::high_nbr_saddle(int sign)
{
Neighbor_iter ni(*this);
Elev_endpt low_end=sign>0 ? LO_END:HI_END, high_end=sign>0 ? HI_END:LO_END;
Domain *max_low_sadl_nbr=*ni;
Elev_intvl *max_low_sadl=
&saddle_owner(max_low_sadl_nbr)->saddle.elev;
Elevation other_high_sadl=-elev_infty;
for (++ni; ni; ++ni) {
if (ni.saddle_owner()->saddle.elev.*low_end*sign>max_low_sadl->*low_end*sign) {
if (max_low_sadl->*high_end*sign>other_high_sadl)
other_high_sadl=max_low_sadl->*high_end*sign;
max_low_sadl_nbr=*ni;
max_low_sadl=&saddle_owner(max_low_sadl_nbr)->saddle.elev;
}
else if (ni.saddle_owner()->saddle.elev.*high_end>other_high_sadl)
other_high_sadl=ni.saddle_owner()->saddle.elev.*high_end*sign;
}
if (other_high_sadl>=max_low_sadl->*low_end*sign)
return 0;
for (ROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
if ((*roi)->elev.*high_end*sign>=max_low_sadl->*low_end*sign)
return 0;
for (BSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
if ((*bsi)->elev.*high_end*sign>=max_low_sadl->*low_end*sign)
return 0;
return max_low_sadl_nbr;
}
void Domain::remove_nbr(const Domain *a)
{
Dom_iter back=std::remove(neighbors.begin(),neighbors.end(),a);
// trim trailing junk left by remove()
while (neighbors.end()!=back) neighbors.pop_back();
}
void Domain::add_nbr(Domain *nbr)
{
neighbors.push_back(nbr);
}
void Domain::remove_nbr(const Basin_saddle *a)
{
BSiter back=std::remove(bsnsdls.begin(),bsnsdls.end(),a);
// trim trailing junk left by remove()
while (bsnsdls.end()!=back) bsnsdls.pop_back();
}
void Domain::add_nbr(Basin_saddle *bs)
{
assert(bs->peak1==this || bs->peak2==this);
bsnsdls.push_back(bs);
}
void Domain::remove_nbr(const Runoff *a)
{
ROiter back=std::remove(runoffs.begin(),runoffs.end(),a);
// trim trailing junk left by remove()
while (runoffs.end()!=back) runoffs.pop_back();
}
void Domain::add_nbr(Runoff *ro)
{
assert(ro->peak==this);
runoffs.push_back(ro);
}
// comparison function for peak sort
static bool high_peak(Domain *a, Domain *b)
{
return a->peak.elev.low>b->peak.elev.low;
}
// Sort the neighbors of a peak
void Domain::sort_nbrs()
{
sort(neighbors.begin(),neighbors.end(),high_peak);
}
void Domain::cut(Domain *a)
{
Domain *so=saddle_owner(a);
assert(so!=0);
so->saddle.clear();
so->primary_nbr=0;
remove_nbr(a);
a->remove_nbr(this);
}
void Domain::remove(Domain *elim_saddle, bool xfer_edge_effect)
{
if (neighbors.empty()) {
// Peak has no neighbors. Just kick it out.
assert(runoffs.empty()==0 && bsnsdls.empty());
peak.clear();
return;
}
assert(elim_saddle);
// Cut the connection made by the removed saddle
cut(elim_saddle);
// Merge neighbor lists
Neighbor_iter ni=*this;
for (; ni; ++ni)
elim_saddle->add_nbr(*ni);
sort(neighbors.begin(),neighbors.end(),high_peak);
// Reconnect runoffs of deleted peak to the subsuming peak.
ROiter roi;
for (roi=runoffs.begin(); roi!=runoffs.end(); ++roi) {
(*roi)->peak=elim_saddle;
if (!xfer_edge_effect) (*roi)->edge_effect=false;
}
// ...ditto for basin saddles
BSiter bsi;
for (bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi) {
if ((*bsi)->peak1==this) (*bsi)->peak1=elim_saddle;
if ((*bsi)->peak2==this) (*bsi)->peak2=elim_saddle;
}
// Merge runoff lists
for (roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
elim_saddle->runoffs.push_back(*roi);
// Merge basin saddle lists
for (bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
elim_saddle->bsnsdls.push_back(*bsi);
// Reconnect neighbors of the deleted peak to the subsuming peak.
for (ni.reset(); ni; ++ni) {
if ((*ni)->primary_nbr==this) {
(*ni)->primary_nbr=elim_saddle;
assert(*ni!=(*ni)->primary_nbr);
}
else {
assert(primary_nbr==(*ni));
assert(elim_saddle->primary_nbr==0);
elim_saddle->primary_nbr=*ni;
assert(elim_saddle!=elim_saddle->primary_nbr);
elim_saddle->saddle=saddle;
}
// modify neighbor list of neighbors of deleted peak.
(*ni)->change_nbr(this,elim_saddle);
}
neighbors.clear();
peak.clear();
primary_nbr=0;
saddle.clear();
}
void Domain::remove_river(Domain *peak_end, Domain *sadl_end)
{
Domain *ca=common_ancestor(peak_end,sadl_end),*p;
while (peak_end!=ca) {
p=peak_end->primary_nbr;
peak_end->remove(p);
peak_end=p;
}
if (ca!=sadl_end) {
while (sadl_end->primary_nbr!=ca) {
sadl_end->primary_nbr->remove(sadl_end);
}
ca->remove(sadl_end);
}
else sadl_end->remove(sadl_end->primary_nbr);
}
#ifdef io_support
#if 0
void Domain::print(FILE *f, bool offmap_sadls, bool runoffs, bool basnsadls)
{
scout_branch(); // scout now so that we know if peak is possible tree HP
first_prom=true;
for (const char *fc=format; *fc; fc++) {
if (*fc=='%') {
switch (*++fc) {
case 'I': case 'i':
fprintf(f,id_format,Divide_tree::writing->index(this));
break;
case 'K': case 'k': case 'F': case 'f':
peak.print(f);
break;
case 'P': case 'p':
if (scratch.parent_LIS==-elev_infty) {
// No definite parent, this peak might be the tree HP.
// TODO: find usable elevation for HP.
if (HP_format) {
fprintf(f,HP_format);
first_prom=false;
}
else print_prom(f,Feature(),undef,peak.elev,
-elev_infty,onmap_parent_string);
}
{
Saddle_iter sdli(*this,runoffs);
for (; sdli; ++sdli) {
if (!sdli.runoff()) {
if (sdli.onmap_parent()) {
print_prom(f,*sdli,sdli.index(),
sdli.usable_peak(),sdli.usable_saddle(),
onmap_parent_string);
}
if (sdli.offmap_parent() && offmap_sadls) {
print_prom(f,*sdli,sdli.index(),
sdli.usable_peak_edge(),sdli.usable_saddle_edge(),
offmap_parent_string);
}
}
else {
print_prom(f,*sdli,-(long)(sdli.index()),
sdli.usable_peak_runoff(),sdli.usable_saddle_runoff(),
runoff_string);
}
}
if (offmap_sadls && sdli.get_edge_LIS()>-elev_infty) {
Elev_intvl use(scratch.parent_LIS,sdli.get_edge_LIS()),
upe=Elev_intvl(sdli.get_edge_HIP(),peak.elev.high);
print_prom(f,Feature(GridPoint::undefined,use),undef,
upe,use,offmap_parent_string);
}
}
break;
case '%':
putc('%',f);
break;
default:
fprintf(stderr,"Domain format error! (%c)\n",*fc);
abort();
}
}
else putc(*fc,f);
}
}
void Domain::print_prom(FILE *f, const Feature& saddle, Index indx,
const Elev_intvl& usable_peak,
const Elev_intvl& usable_saddle,
const char *om_string)
{
const char *fc;
if (first_prom && first_prom_format) {
first_prom=false;
fc=first_prom_format;
}
else fc=prom_format;
for (; *fc; fc++) {
if (*fc=='%') {
switch (*++fc) {
case 'I': case 'i':
if (indx!=undef) fprintf(f,id_format,indx);
else fprintf(f,id_field_format,"");
break;
case 'P': case 'p':
(usable_peak-usable_saddle).print(f);
break;
case 'U': case 'u':
usable_peak.print(f);
putc(' ',f);
usable_saddle.print(f);
break;
case 'S': case 's':
saddle.print(f);
break;
case 'O': case 'o':
fprintf(f,"%s",om_string);
break;
case '%':
putc('%',f);
break;
default:
fprintf(stderr,"Domain prominence format error! (%c)\n",*fc);
abort();
}
}
else putc(*fc,f);
}
}
#endif
void Domain::print_header(FILE *f)
{
for (const char *fc=format; *fc; fc++) {
if (*fc=='%') {
switch (*++fc) {
case 'I': case 'i':
fprintf(f,id_field_format,id_peak_hdr);
break;
case 'K': case 'k': case 'F': case 'f':
Feature::print_header(f);
break;
case 'P': case 'p':
print_prom_header(f);
break;
case '%':
putc('%',f);
break;
default:
fprintf(stderr,"Domain format error! (%c)\n",*fc);
abort();
}
}
else putc(*fc,f);
}
}
void Domain::print_prom_header(FILE *f)
{
const char *fc;
for (fc=first_prom_format?first_prom_format:prom_format; *fc; fc++) {
if (*fc=='%') {
switch (*++fc) {
case 'I': case 'i':
fprintf(f,id_field_format,id_saddle_hdr);
break;
case 'P': case 'p':
fprintf(f,Elev_intvl::field_format,prom_hdr);
break;
case 'U': case 'u':
fprintf(f,Elev_intvl::field_format,usable_peak_hdr);
putc(' ',f);
fprintf(f,Elev_intvl::field_format,usable_saddle_hdr);
break;
case 'S': case 's':
Feature::print_header(f);
break;
case 'O': case 'o':
fprintf(f,"%s",offmap_hdr);
break;
case '%':
putc('%',f);
break;
default:
fprintf(stderr,"Domain HP prominence format error! (%c)\n",*fc);
abort();
}
}
else putc(*fc,f);
}
}
void Domain::Neighbor_iter::dump(FILE *f)
{
fprintf(f,"Center: ");
center->peak.print(f);
if (*this) {
fprintf(f,"\nSaddle: ");
saddle_owner()->saddle.print(f);
fprintf(f,"\nNabor: ");
(**this)->peak.print(f);
}
else fprintf(f,"\nExpired");
putc('\n',f);
}
#endif // def io_support
#if 0
EESnbrs::EESnbrs(const GridPoint& r1, const GridPoint& r2, const GridPoint& s)
: sadl(s)
{
if (r1<r2) {
ro1=r1;
ro2=r2;
}
else {
ro1=r2;
ro2=r1;
}
}
void EESnbrs::read(FILE *f) throw(file_error)
{
fread(ro1,f);
fread(ro2,f);
fread(sadl,f);
}
void EESnbrs::write(FILE *f) const throw(file_error)
{
fwrite(ro1,f);
fwrite(ro2,f);
fwrite(sadl,f);
}
#endif
/* EXPLORER MEMBER FUNCTIONS */
Boundary_saddle::Boundary_saddle(Domain *root, Domain *front, Elev_endpt endpt) :
saddle(&root->saddle_owner(front)->saddle),domain(front),
bdy_elev(saddle->elev.*endpt)
{
}
Explorer::Explorer(Domain *start, Elev_endpt e) : endpt(e)
{
start->xplr_sup.root_nbr=0;
serve(start);
}
Explorer::Explorer(Domain *start, Domain *root, Elev_endpt e) : endpt(e)
{
start->xplr_sup.root_nbr=root; // make the initial nbr iter avoid the root
serve(start);
start->xplr_sup.root_nbr=0;
}
void Explorer::reset(Domain *start)
{
while (!front.empty()) front.pop();
start->xplr_sup.root_nbr=0;
serve(start);
}
void Explorer::reset(Domain *start, Domain *root)
{
while (!front.empty()) front.pop();
start->xplr_sup.root_nbr=root; // make the initial nbr iter avoid the root
serve(start);
start->xplr_sup.root_nbr=0;
}
void Explorer::use(Elev_intvl& on_use, Elev_intvl *off_use) const
{
// Determine intervening saddle elvation
const Domain &curnt=*front.top().get_domain(),&prev=*curnt.xplr_sup.root_nbr;
const Elev_intvl &pdpLIS=prev.xplr_sup.dpar_LIS,&se=saddle().elev;
Elev_intvl& cdpLIS=curnt.xplr_sup.dpar_LIS;
// propagate the definite parent LIS away from the root
elevate(cdpLIS,pdpLIS);
// compute the path LIS, all the way from root to any possible parent
// except for the current saddle
Elev_intvl path_parnt_LIS=prev.xplr_sup.root_LIS;
depress(path_parnt_LIS,curnt.xplr_sup.ppar_LIS);
// compute the USE
if (se<pdpLIS || se>path_parnt_LIS) on_use.empty();
else {
on_use.set(pdpLIS.low,path_parnt_LIS.high);
on_use&=se;
}
// compute the off-map USE, if desired
if (off_use) {
// compute the path LIS, all the way from root to any runoff
// except for the current saddle
Elev_intvl path_edge_LIS=prev.xplr_sup.root_LIS;
depress(path_edge_LIS,curnt.xplr_sup.edge_LIS);
// compute the offmap USE
if (cdpLIS>path_edge_LIS) off_use->empty();
else {
off_use->set(cdpLIS.low,path_edge_LIS.high);
(*off_use)&=se;
}
}
}
void Explorer::operator++()
{
Domain& top=(**this);
front.pop();
serve(&top);
}
void Explorer::stop_branch()
{
front.pop();
}
void Explorer::serve(Domain *a)
{
for (Domain::Neighbor_iter ni(*a,a->xplr_sup.root_nbr); ni; ++ni) {
(*ni)->xplr_sup.root_nbr=a;
front.push(Boundary_saddle(a,*ni,endpt));
}
}
/* DIVIDE TREE MEMBER FUNCTIONS */
Divide_tree *Divide_tree::reading=0;
const Divide_tree *Divide_tree::writing=0;
Domain::Index Divide_tree::ndom_inuse() const
{
Index count=0;
for (const_rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi)
if ((*domi).peak.location)
++count;
return count;
}
Domain::Index Divide_tree::nrunoff_inuse() const
{
Index count=0;
for (const_rROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
if ((*roi).location)
++count;
return count;
}
Domain::Index Divide_tree::nbsnsdl_inuse() const
{
Index count=0;
for (const_rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
if ((*bsi).location)
++count;
return count;
}
static void div_drg_chk(const Elev_intvl& peak, const Elev_intvl& nbr,
Domain::Index& ndiv, Domain::Index& ndrg)
{
if (peak>=nbr) ++ndiv;
else if (peak<=nbr) ++ndrg;
}
void Divide_tree::div_drg_count(Index& ndiv, Index &ndrg) const
{
ndiv=ndrg=0;
for (const_rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi) {
if ((*domi).primary_nbr) {
div_drg_chk((*domi).peak.elev,(*domi).saddle.elev,ndiv,ndrg);
div_drg_chk((*domi).primary_nbr->peak.elev,(*domi).saddle.elev,ndiv,ndrg);
}
}
for (const_rROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi) {
if ((*roi).peak) {
div_drg_chk((*roi).peak->peak.elev,(*roi).elev,ndiv,ndrg);
}
}
for (const_rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi) {
if ((*bsi).location) {
div_drg_chk((*bsi).peak1->peak.elev,(*bsi).elev,ndiv,ndrg);
div_drg_chk((*bsi).peak2->peak.elev,(*bsi).elev,ndiv,ndrg);
}
}
}
void Divide_tree::area(Rectangl& alloc, Rectangl& defined) const
{
for (const_rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi) {
if ((*domi).peak.location) {
defined|=(*domi).peak.location;
if ((*domi).primary_nbr) {
defined|=(*domi).saddle.location;
}
}
}
for (const_rROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
if ((*roi).location) {
if ((*roi).peak) defined|=(*roi).location;
else alloc|=(*roi).location;
}
for (const_rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
if ((*bsi).location)
defined|=(*bsi).location;
alloc|=defined;
}
void Divide_tree::get_pat_steps(Domain *dom, unsigned *steps, Domain **pat) const
{
unsigned i;
Domain *d,*p;
for (i=0,d=dom; d->primary_nbr!=0 && steps[index(d)]==Domain::undef;
++i,d=d->primary_nbr);
if (d->primary_nbr==0) {
steps[index(d)]=0;
pat[index(d)]=d;
}
p=pat[index(d)];
i+=steps[index(d)];
for (d=dom; steps[index(d)]==Domain::undef; d=d->primary_nbr,--i) {
steps[index(d)]=i;
pat[index(d)]=p;
}
}
void Divide_tree::clear()
{
doms.~vector();
runoffs.~vector();
bsnsdls.~vector();
}
void Divide_tree::set_neighbors()
{
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi) {
if ((*domi).peak.location && (*domi).primary_nbr) {
assert((*domi).primary_nbr>=&doms.front() && (*domi).primary_nbr<=&doms.back());
(*domi).add_nbr((*domi).primary_nbr);
(*domi).primary_nbr->add_nbr(&*domi);
}
}
sort_nbrs();
}
void Divide_tree::set_runoffs()
{
for (rROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
if ((*roi).location && (*roi).peak)
(*roi).peak->add_nbr(&*roi);
}
void Divide_tree::clear_runoffs()
{
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi)
if ((*domi).peak.location)
(*domi).clear_runoffs();
}
void Divide_tree::set_bsnsdls()
{
for (rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
if ((*bsi).location) {
(*bsi).peak1->add_nbr(&*bsi);
(*bsi).peak2->add_nbr(&*bsi);
}
}
void Divide_tree::clear_bsnsdls()
{
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi)
if ((*domi).peak.location)
(*domi).clear_bsnsdls();
}
void Divide_tree::set_cycle_info()
{
Index n=doms.size(),i;
unsigned *pat_steps=new unsigned[n],i1,i2;
Domain **pat=new Domain *[n],*p1,*p2;
for (i=0; i<n; ++i) pat_steps[i]=Domain::undef;
for (rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
if ((*bsi).location) {
p1=(*bsi).peak1;
p2=(*bsi).peak2;
get_pat_steps(p1,pat_steps,pat);
get_pat_steps(p2,pat_steps,pat);
i1=pat_steps[index(p1)];
i2=pat_steps[index(p2)];
if (i1>i2) p1=p1->ancestor(i1-i2);
else p2=p2->ancestor(i2-i1);
while (p1!=p2) {
p1=p1->primary_nbr;
p2=p2->primary_nbr;
}
(*bsi).common_ancestor=p1;
(*bsi).set_cycle_length();
}
delete[] pat_steps;
delete[] pat;
}
void Divide_tree::change_ca(Domain *from, Domain *to)
{
for (rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi) {
if ((*bsi).location) {
if ((*bsi).common_ancestor==from) {
(*bsi).common_ancestor=to;
}
(*bsi).set_cycle_length();
}
}
}
Elevation Divide_tree::min_range() const
{
Elevation range=elev_infty;
for (const_rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi) {
(*domi).peak.min_range(range);
(*domi).saddle.min_range(range);
}
for (const_rROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
(*roi).min_range(range);
for (const_rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
(*bsi).min_range(range);
return range/2;
}
Elevation Divide_tree::max_peak_prom(Index i, const Topo_info island_tree[]) const
{
Elev_intvl pk_elev=doms[i].peak.elev;
Index j;
for (j=i; island_tree[j].parnt!=Domain::undef &&
!(pk_elev<doms[island_tree[j].parnt].peak.elev);
j=island_tree[j].parnt);
return island_tree[j].parnt==Domain::undef ? elev_infty :
doms[i].peak.elev.high-doms[island_tree[j].sadl_dom].saddle.elev.low;
}
Elevation *Divide_tree::min_peak_prom(const Topo_info island_tree[]) const
{
Index i,j,n=doms.size();
Elevation *min_pk_prom=new Elevation[n],minp;
for (i=0; i<n; ++i)
if (doms[i].peak.location) {
min_pk_prom[i]=island_tree[i].parnt==Domain::undef ?
elev_infty : doms[i].peak.elev.low-doms[island_tree[i].sadl_dom].saddle.elev.high;
}
for (i=0; i<n; ++i) {
if (!doms[i].peak.location) continue;
j=island_tree[i].parnt;
if (j!=Domain::undef && !(doms[i].peak.elev<doms[j].peak.elev)) {
minp=doms[j].peak.elev.low-doms[island_tree[i].sadl_dom].saddle.elev.high;
if (minp<min_pk_prom[j]) min_pk_prom[j]=minp;
}
}
return min_pk_prom;
}
void Divide_tree::assoc_peak_prom(const Topo_info tree[],
Elevation peak_prom[]) const
{
Domain::Index ndom=doms.size(),jp,kp,ipeak;
for (ipeak=0; ipeak<ndom; ++ipeak) {
if (!doms[ipeak].peak.location) continue;
// this fancy-schmancy loop checks if the current peak rivals its parent,
// based on the lowest possible peak elevation.
for (jp=ipeak; kp=tree[jp].parnt,kp!=Domain::undef; jp=kp) {
const Elev_intvl &je=doms[jp].peak.elev,&ke=doms[kp].peak.elev;
if (ke.low>je.low || ke>je) break;
}
peak_prom[ipeak] = kp==Domain::undef ? elev_infty :
doms[ipeak].peak.elev.low-doms[jp].saddle.elev.low;
}
}
#if 0
Elevation Divide_tree::peak_omp(Index i, const Topo_info tree[],
Elevation island_edge_LIS[]) const
{
Elevation HIP=-elev_infty,LIS=elev_infty,omp=elev_infty,ompx;
Index j=i,j1;
while (!(doms[i].peak.elev<doms[j].peak.elev)) {
if (doms[j].peak.elev.low>HIP) HIP=doms[j].peak.elev.low;
if (island_edge_LIS[j]>-elev_infty) {
ompx=HIP-(LIS<island_edge_LIS[j]?LIS:island_edge_LIS[j]);
if (ompx<omp) omp=ompx;
}
j1=tree[j].parnt;
if (j1==Domain::undef) break;
LIS=doms[tree[j].sadl_dom].saddle.elev.high;
j=j1;
}
if (omp<doms[i].prom.peak) return omp;
return elev_infty;
}
Elevation *Divide_tree::offmap_pk_prom(const Topo_info tree[]) const
{
Index i,j,n=doms.size(),nro=runoffs.size();
Elevation *peak_omp=new Elevation[n],minp,se;
for (i=0; i<n; ++i) peak_omp[i]=elev_infty;
for (i=0; i<nro; ++i) {
const Runoff& ro=runoffs[i];
if (!ro.location || ro.peak==0) continue;
// clear the runoff inversion
se=ro.elev.high;
for (j=index(ro.peak);
tree[j].parnt!=Domain::undef &&
se<doms[tree[j].sadl_dom].saddle.elev.low;
j=tree[j].parnt);
// bump the offmap prom down to the level possible due to current runoff
while (true) {
minp=doms[j].peak.elev.low-se;
if (minp<peak_omp[j]) peak_omp[j]=minp;
if (tree[j].parnt==Domain::undef) break;
se=doms[tree[j].sadl_dom].saddle.elev.high;
j=tree[j].parnt;
}
}
return peak_omp;
}
#endif
class Cmp_peak_index {
const Domain *dom_base;
Elev_endpt endpt;
public:
Cmp_peak_index(const Domain *base, Elev_endpt e) :
dom_base(base),endpt(e) {}
bool operator()(Domain::Index a, Domain::Index b) const
{return dom_base[a].peak.elev.*endpt>dom_base[b].peak.elev.*endpt;}
};
class Cmp_bs_index {
public:
const Basin_saddle *bs_base;
Cmp_bs_index(const Basin_saddle *base) : bs_base(base) {}
bool operator()(Domain::Index a, Domain::Index b) const
{return bs_base[a].elev.midpt()>bs_base[b].elev.midpt();}
};
static void path_reverse(Topo_info tree[],
Domain::Index istart, Domain::Index isadl)
{
if (isadl!=istart) {
// reverse the parent-child direction for the path between istart and isadl
// istart and isadl are both peak indices
Domain::Index a=tree[istart].parnt,b,so1=tree[istart].sadl_dom,so2;
Domain::Index ip=istart;
tree[istart].sadl_dom=tree[isadl].sadl_dom;
while (ip!=isadl) {
b=tree[a].parnt;
tree[a].parnt=ip;
so2=tree[a].sadl_dom;
tree[a].sadl_dom=so1;
ip=a;
a=b;
so1=so2;
}
}
}
void Divide_tree::get_line_tree(Topo_info tree[],
const vector<Domain::Index>& sorted,
Index rank[], Elev_endpt sadl_endpt,
Elevation Domain::Sadl_prom::*type)
{
#ifdef timer
clock_t clk=clock();
#endif
Index i,n=doms.size(),nu=sorted.size(),j,iparnt,isadl,ip;
Index iro;
// rearrange the topo tree
Elev_intvl LIS;
for (i=0; i<nu; ++i) {
j=sorted[i];
const Domain& dom=doms[j];
// find the first higher ancestor and LIS in between
iparnt=j;
LIS=elev_infty;
doms[j].xplr_sup.root_nbr=0;
iro=Domain::undef;
do {
Topo_info& pd=tree[iparnt];
if (pd.parnt>=n) {
// patriarch
if (pd.parnt==Domain::undef) {
// no final runoff
isadl=iparnt;
iparnt=Domain::undef;
}
else {
// final runoff
iro=pd.parnt-n;
const Elev_intvl& re=runoffs[iro].elev;
if (re.*sadl_endpt<LIS.*sadl_endpt)
isadl=iparnt;
depress(LIS,re);
}
break;
}
doms[iparnt].xplr_sup.root_LIS=LIS;
doms[iparnt].xplr_sup.dpar_LIS=-elev_infty;
doms[pd.parnt].xplr_sup.root_nbr=&doms[iparnt];
const Elev_intvl& se=doms[pd.sadl_dom].saddle.elev;
if (se.*sadl_endpt<LIS.*sadl_endpt)
isadl=iparnt;
depress(LIS,se);
iparnt=pd.parnt;
} while (rank[iparnt]>i);
/* We assume that if sadl_endpt is HI_END,
then we are interested in saddle prominence.
If so, set the highest possible prom for all saddles that might be
the lowest between original domain and parent domain */
if (iparnt!=Domain::undef && sadl_endpt==HI_END) {
doms[iparnt].xplr_sup.dpar_LIS=
iro==Domain::undef ? elev_infty : runoffs[iro].elev;
doms[iparnt].transmit_LIS(&Domain::Explorer_support::dpar_LIS);
for (ip=j; ip!=iparnt; ip=tree[ip].parnt) {
const Domain& sadl_dom=doms[tree[ip].sadl_dom];
LIS=doms[ip].xplr_sup.root_LIS;
depress(LIS,doms[tree[ip].parnt].xplr_sup.dpar_LIS);
if (sadl_dom.saddle.elev>LIS ||
sadl_dom.prom.saddle.*type!=elev_undef) continue;
sadl_dom.prom.saddle.*type=dom.peak.elev.high-sadl_dom.saddle.elev.low;
}
}
path_reverse(tree,j,isadl);
tree[j].parnt=iparnt;
}
#ifdef timer
TRACE("get_line_tree() took %d clock ticks\n",clock()-clk);
#endif
}
void Domain::clear_prom_inv() const
{
const Domain *&dcp=(const Domain *&)parent.cell;
if (!dcp) return;
const Domain::Sadl_prom *csp=&parent.saddle->prom.saddle,*psp;
while (dcp->parent.cell &&
(psp=&dcp->parent.saddle->prom.saddle,
csp->onmap > psp->onmap &&
csp->cr_onmap > psp->cr_onmap &&
csp->offmap > psp->offmap &&
csp->cr_offmap > psp->cr_offmap)) {
dcp->clear_prom_inv();
dcp=dcp->parent.cell;
}
}
void Domain::clear_sadl_inv() const
{
if (!parent.island) return;
const Elev_intvl& se=parent.saddle->saddle.elev;
while (parent.island->parent.island &&
se<parent.island->parent.saddle->saddle.elev) {
parent.island->clear_sadl_inv();
parent.island=parent.island->parent.island;
}
}
Domain *Domain::parent_with_prom(Elevation prom)
{
Domain *p;
for (p=this;
p->parent.cell && p->peak_topo_prom()<prom;
p=p->parent.cell);
return p;
}
Domain *Domain::prom_parent()
{
return !parent.cell ? 0 : parent.cell->
parent_with_prom(peak.elev.low-parent.saddle->saddle.elev.high);
}
Domain *Domain::get_parent(Topology topo, Elevation prom)
{
switch (topo) {
case TOPO_MS: return primary_nbr;
case TOPO_LINE: return parent.line ? parent.line->parent_with_prom(prom) : 0;
case TOPO_CELL: return prom_parent();
case TOPO_ISLAND: return parent.island;
}
assert(0);
return 0;
}
bool Domain::is_ancestor(Domain *d, Topology topo) const
{
while (d) {
if (d==this) return true;
d=d->get_parent(topo);
}
return false;
}
// compute highest possible onmap prom for each saddle
void Divide_tree::set_high_sadl_prom(const vector<Domain::Index>& sorted,
Index rank[])
{
Topo_info *tree=init_topo();
get_line_tree(tree,sorted,rank,HI_END,&Domain::Sadl_prom::onmap);
delete[] tree;
}
// compute offmap prom for each saddle
void Divide_tree::set_offmap_sadl_prom(const vector<Domain::Index>& sorted,
Index rank[])
{
Topo_info *tree=init_topo();
Index i,n=doms.size(),j,iparnt,isadl,ip,nro=runoffs.size();
// rearrange the tree, starting with runoffs
Elev_intvl LIS;
for (i=0; i<nro; ++i) {
const Runoff& ro=runoffs[i];
if (ro.peak==0) continue;
const Domain& dom=*ro.peak;
j=index(&dom);
// find path across tree and LIS in between
iparnt=j;
isadl=Domain::undef;
LIS=ro.elev;
while (true) {
Topo_info& pd=tree[iparnt];
if (pd.parnt>=n) break;
const Elev_intvl& se=doms[pd.sadl_dom].saddle.elev;
if (se.high<LIS.high)
isadl=iparnt;
depress(LIS,se);
iparnt=pd.parnt;
}
if (tree[iparnt].parnt==Domain::undef) isadl=iparnt; // no final runoff
else {
// final runoff
const Runoff& ro2=runoffs[tree[iparnt].parnt-n];
assert(index(ro2.peak)==iparnt);
const Elev_intvl& re=ro2.elev;
if (re.high<LIS.high)
isadl=iparnt;
depress(LIS,re);
// set the unlimited prom for all saddles that might be
// the lowest between orginal domain and parent domain
for (ip=j; ip!=iparnt; ip=tree[ip].parnt) {
const Domain& sadl_dom=doms[tree[ip].sadl_dom];
if (sadl_dom.saddle.elev>LIS ||
sadl_dom.prom.saddle.offmap!=elev_undef) continue;
sadl_dom.prom.saddle.offmap=elev_infty;
}
}
if (isadl!=Domain::undef) {
path_reverse(tree,j,isadl);
tree[j].parnt=n+index(ro);
}
}
// continue to rearrange the tree on internal peaks
get_line_tree(tree,sorted,rank,HI_END,&Domain::Sadl_prom::offmap);
delete[] tree;
}
void Divide_tree::update_sadl_prom_info(bool use_ss)
{
#ifdef timer
clock_t clk=clock();
#endif
// prepare array to represent the peaks in sorted order
vector<Index> sorted;
Index i,n=doms.size(),nbs,*rank=new Index[n];
for (i=0; i<n; ++i) {
if (doms[i].peak.location)
sorted.push_back(i);
Domain::Sadl_prom& sp=doms[i].prom.saddle;
sp.onmap=sp.offmap=elev_undef;
doms[i].ridge.cycle_prom=doms[i].ridge.cycle_offmap=-elev_infty;
}
if (!sorted.empty()) {
sort(sorted.begin(), sorted.end(), Cmp_peak_index(&doms.front(), HI_END));
}
Index nu=sorted.size();
for (i=0; i<nu; ++i) rank[sorted[i]]=i;
// compute the on-map prominence of all saddles
set_high_sadl_prom(sorted,rank);
// compute the off-map prominence of all saddles
set_offmap_sadl_prom(sorted,rank);
// determine the cell tree
Topo_info *line_tree=init_topo();
get_line_tree(line_tree,sorted,rank,LO_END,&Domain::Sadl_prom::onmap);
delete[] rank;
// initialize hierarchy with line tree
for (i=0; i<n; ++i) {
const Domain& dom=doms[i];
if (!dom.peak.location) continue;
Domain::Index line_par=line_tree[i].parnt;
if (line_par!=Domain::undef) {
dom.parent.line=dom.parent.cell=dom.parent.island=&doms[line_par];
dom.parent.saddle=&doms[line_tree[i].sadl_dom];
}
else dom.parent.line=dom.parent.cell=0;
}
delete[] line_tree;
// set cell rotation prominences
Saddle::use_status=use_ss;
for (i=0; i<n; ++i) {
Domain& dom=doms[i];
if (!dom.peak.location || dom.primary_nbr==0) continue;
Domain::Sadl_prom& sp=dom.prom.saddle;
sp.cr_onmap=sp.onmap;
sp.cr_offmap=sp.offmap;
}
nbs=n_bsnsdl();
Topo_info *ipit=get_ipit();
unsigned *anc_depth=new unsigned[n];
for (i=0; i<n; ++i) anc_depth[i]=0;
for (i=0; i<nbs; ++i) {
Basin_saddle& bs=bsnsdls[i];
if (!bs.location) continue;
bs.set_prom(ipit,&doms.front(),anc_depth);
}
delete[] ipit;
delete[] anc_depth;
// clear prom inversions, set children, and initialize child line prom
for (i=0; i<n; ++i) {
Domain& dom=doms[i];
if (dom.peak.location) {
dom.clear_prom_inv();
dom.parent.island=dom.parent.cell;
if (dom.parent.line) {
dom.parent.saddle->parent.child=&dom;
dom.ridge.line_child=dom.ridge.cycle_line_child=dom.prom.peak;
}
}
}
for (i=0; i<nbs; ++i) {
Basin_saddle& bs=bsnsdls[i];
if (!bs.location) continue;
if (bs.prom.onmap>bs.peak1->ridge.cycle_line_child)
bs.peak1->ridge.cycle_line_child=bs.prom.onmap;
if (bs.prom.onmap>bs.peak2->ridge.cycle_line_child)
bs.peak2->ridge.cycle_line_child=bs.prom.onmap;
}
// clear saddle inversions and update child line prom
Domain *line_dom;
for (i=0; i<n; ++i) {
Domain& dom=doms[i];
if (!dom.peak.location) continue;
dom.clear_sadl_inv();
for (line_dom=dom.parent.line;
line_dom && dom.ridge.line_child>line_dom->ridge.line_child;
line_dom=line_dom->parent.line)
line_dom->ridge.line_child=dom.ridge.line_child;
for (line_dom=dom.parent.line;
line_dom && dom.ridge.cycle_line_child>line_dom->ridge.cycle_line_child;
line_dom=line_dom->parent.line)
line_dom->ridge.cycle_line_child=dom.ridge.cycle_line_child;
}
#ifdef timer
TRACE("update_sadl_prom_info() took %d clock ticks\n",clock()-clk);
#endif
}
// set peak prominence for peak icon rendering (and other stuff)
void Divide_tree::update_peak_prom_info()
{
Topo_info *tree=get_island_tree(LO_END);
Index i,n=n_dom();
for (i=0; i<n; ++i) {
Domain& dom=doms[i];
if (!dom.peak.location) continue;
dom.prom.peak=max_peak_prom(i,tree);
dom.prom.pk_omp=dom.offmap_pk_prom();
}
delete[] tree;
update_runoff_prom_info();
}
const Elevation Domain::Sadl_prom::*sadl_prom_types[2][2] = {
{&Domain::Sadl_prom::onmap, &Domain::Sadl_prom::cr_onmap},
{&Domain::Sadl_prom::offmap, &Domain::Sadl_prom::cr_offmap}
};
struct Ridge_scratch {
unsigned nnbr; // number of non-truncated neighbors
Elevation peak_prom; // ridge prom of peak
bool peak_offmap; // is peak on an offmap ridge
Domain *patriarch;
};
static void set_BS_ridge_info_leg(Basin_saddle& bs, Domain *start)
{
for (; start!=bs.common_ancestor; start=start->primary_nbr) {
if (bs.can_rotate(start->saddle)) {
if (start->ridge.prom>bs.prom.rr_onmap)
bs.prom.rr_onmap=start->ridge.prom;
if (start->ridge.offmap) bs.prom.rr_offmap=true;
}
}
}
static void set_cycle_ridge_info_leg(const Basin_saddle& bs, Domain *start)
{
for (; start!=bs.common_ancestor; start=start->primary_nbr) {
// bump the ridge prom up to the level of the basin saddle prom
// with ridge rotation effects
if (bs.prom.rr_onmap>start->ridge.rot_prom)
start->ridge.rot_prom=bs.prom.rr_onmap;
if (bs.prom.rr_offmap) start->ridge.rot_offmap=true;
// if the saddle is possibly the cycle LIS, bump up the feature prominence of the saddle
if (bs.can_rotate(start->saddle)) {
if (bs.prom.rr_onmap>start->prom.saddle.rr_onmap)
start->prom.saddle.rr_onmap=bs.prom.rr_onmap;
if (bs.prom.rr_offmap) start->prom.saddle.rr_offmap=true;
}
}
}
// update ridge prominence
// peak prominence must already be up to date
void Divide_tree::update_ridge_info(bool use_ss)
{
#ifdef timer
clock_t clk=clock();
#endif
Saddle::use_status=use_ss;
Index i,j,k,n=n_dom(),nbs=n_bsnsdl();
// initialize scratch
Ridge_scratch *scratch=new Ridge_scratch[n];
for (i=0; i<n; ++i) {
Domain& dom=doms[i];
Ridge_scratch& dom_scr=scratch[i];
if (dom.peak.location) {
dom_scr.peak_prom=dom.prom.peak;
if (dom_scr.peak_prom<0) dom_scr.peak_prom=0;
dom_scr.peak_offmap=dom.runoffs.size()>0;
dom_scr.nnbr=dom.neighbors.size();
dom_scr.patriarch=0;
dom.ridge.prom=elev_undef;
dom.ridge.offmap=false;
}
else dom_scr.nnbr=0;
}
// truncate endpoints, one by one.
Domain *dom_base,*so,*d,*pat;
if (!doms.empty()) {
dom_base = &doms.front();
}
for (i=0; i<n; ++i) {
j=i;
while (scratch[j].nnbr==1 && scratch[j].peak_prom<elev_infty) {
// we're at a non-HP endpoint.
Domain& dom=doms[j];
// find the "remaining" neighbor
Domain::Neighbor_iter ni(dom);
for (; ni; ++ni) {
k=(*ni)-dom_base;
assert(k>=0 && k<n);
if (scratch[k].nnbr>0) break;
}
assert(ni);
// transfer peak ridge prominence to ridge prominence.
so=dom.saddle_owner(*ni);
so->ridge.prom=scratch[j].peak_prom;
if (so->ridge.prom>scratch[k].peak_prom)
scratch[k].peak_prom=so->ridge.prom;
// transfer offmap flag
so->ridge.offmap=scratch[j].peak_offmap;
if (so->ridge.offmap)
scratch[k].peak_offmap=true;
// lop off the endpoint
scratch[j].nnbr=0;
--scratch[k].nnbr;
j=k;
}
}
// now fill in the prominence of the ridges that connect the HP candidates.
map<Domain *, Elevation> islands;
bool new_pat;
Elevation sadl_prom;
for (i=0; i<n; ++i) {
Domain& dom=doms[i];
if (!dom.peak.location) continue;
Ridge_scratch& dom_scr=scratch[i];
// find the patriarch (island key) of this peak
pat=0;
new_pat=false;
for (d=&dom; pat==0; d=d->primary_nbr) {
j=d-dom_base;
if (scratch[j].patriarch) pat=scratch[j].patriarch;
else if (d->primary_nbr==0) {
pat=d;
new_pat=true;
}
}
// set the patriarch of ALL peaks from here to the patriarch,
// so we don't have to repeat the traversal effort again for those peaks.
for (d=&dom; d && (j=d-dom_base,scratch[j].patriarch==0); d=d->primary_nbr) {
scratch[j].patriarch=pat;
}
Elevation& popup_prom=islands[pat];
if (dom_scr.peak_prom<elev_infty) {
// bump the island popup prom up to the current peak
if (new_pat) popup_prom=dom_scr.peak_prom;
else if (dom_scr.peak_prom>popup_prom) popup_prom=dom_scr.peak_prom;
}
if (dom.ridge.prom==elev_undef && dom.primary_nbr) {
// we're on a ridge between HP candidates
sadl_prom=dom.extreme_sadl_prom(HI_END);
if (sadl_prom>popup_prom) popup_prom=sadl_prom;
}
}
// now we've found the popup prominence of each island.
// Assign it to the ridges that connect HP candidates
for (i=0; i<n; ++i) {
Domain& dom=doms[i];
if (dom.peak.location && dom.primary_nbr && dom.ridge.prom==elev_undef)
dom.ridge.prom=islands[scratch[i].patriarch];
}
delete[] scratch;
// compute basin rim prominence
for (i=0; i<n; ++i) {
Domain& dom=doms[i];
if (!dom.peak.location || dom.primary_nbr==0) continue;
dom.ridge.rot_prom=dom.ridge.prom;
dom.ridge.rot_offmap=dom.ridge.offmap;
dom.prom.saddle.rr_onmap=-elev_infty;
dom.prom.saddle.rr_offmap=false;
}
for (i=0; i<nbs; ++i) {
Basin_saddle& bs=bsnsdls[i];
bs.prom.rr_onmap=-elev_infty;
bs.prom.rr_offmap=false;
set_BS_ridge_info_leg(bs,bs.peak1);
set_BS_ridge_info_leg(bs,bs.peak2);
if (bs.prom.rr_onmap>-elev_infty) {
set_cycle_ridge_info_leg(bs,bs.peak1);
set_cycle_ridge_info_leg(bs,bs.peak2);
}
}
#ifdef timer
TRACE("update_ridge_info() took %d clock ticks\n",clock()-clk);
#endif
}
void Divide_tree::purge_domains(Elevation min_prom, bool keep_name, bool keep_edit,
bool zp, bool keep_rr, bool keep_cr, Index **xlate)
{
// peak and saddle prom info must be up to date
Index ndom=n_dom(),idom;
zero_prob=zp;
if (xlate) {
*xlate=new Index[ndom];
for (idom=0; idom<ndom; ++idom)
(*xlate)[idom]=idom;
}
bool cont=true;
while (cont) {
cont=false;
for (idom=0; idom<ndom; ++idom) {
Domain& domain=doms[idom];
if (domain.peak.location &&
(!keep_name || !domain.peak.name) &&
(!keep_edit || !domain.peak.edited) &&
domain.prom.peak<min_prom) {
if (domain.neighbors.empty()) {
// Peak has no saddle-peak neighbors.
// Remove it if it has no runoff or basin saddle neighbors.
if (domain.runoffs.empty() && domain.bsnsdls.empty()) {
domain.remove();
cont=true;
}
}
else {
// Peak has peak-saddle neighbors.
// Remove it if its highest saddle does not have enough prominence.
Domain::Neighbor_iter ni(domain);
assert(ni);
Domain *elim_saddle=*ni,*so;
for (++ni; ni; ++ni) {
if (ni.saddle_owner()->saddle.elev.low>
domain.saddle_owner(elim_saddle)->saddle.elev.low) {
elim_saddle=*ni;
}
}
so=domain.saddle_owner(elim_saddle);
const Domain::Sadl_prom& sp=so->prom.saddle;
if ((!keep_name || !so->saddle.name) &&
(!keep_edit || !so->saddle.edited) &&
sp.*sadl_prom_types[0][keep_cr]<min_prom &&
sp.*sadl_prom_types[1][keep_cr]<min_prom &&
(!keep_rr || sp.rr_onmap<min_prom && !sp.rr_offmap)) {
domain.remove(elim_saddle);
if (xlate) {
(*xlate)[index(&domain)]=index(elim_saddle);
}
cont=true;
}
} // if (!domain.neighbors.empty())
} // if (domain.peak.location && !has_min_prom[idom])
} // for (idom)
} // while (cont)
if (xlate) {
// flush out any "chains" of multiple translation
for (idom=0; idom<ndom; ++idom) {
Index& dom=(*xlate)[idom];
while (dom!=(*xlate)[dom])
dom=(*xlate)[dom];
}
}
set_cycle_info();
}
void Divide_tree::purge_bs(Elevation min_prom, bool keep_name, bool keep_edit,
bool zp, bool keep_rr, bool keep_cr)
{
// saddle prom info must be up to date
Index i,ndom=doms.size(),nbs=bsnsdls.size();
zero_prob=zp;
for (i=0; i<nbs; ++i) {
Basin_saddle& bs=bsnsdls[i];
if (bs.location && (!keep_name || !bs.name) && (!keep_edit || !bs.edited) &&
bs.prom.*sadl_prom_types[0][keep_cr]<min_prom &&
bs.prom.*sadl_prom_types[1][keep_cr]<min_prom &&
(!keep_rr || bs.prom.rr_onmap<min_prom && !bs.prom.rr_offmap)) {
bs.remove();
}
}
}
#if 0
void Divide_tree::set_error(Elevation defalt_range,
const FeatureFilter& filter, const Database& db)
{
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi) {
if ((*domi).peak.location) {
if (filter.test((*domi).peak,db)) (*domi).peak.set_range(defalt_range);
if ((*domi).saddle && filter.test((*domi).saddle,db))
(*domi).saddle.set_range(defalt_range);
}
}
for (rROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
if ((*roi).location && filter.test(*roi,db))
(*roi).set_range(defalt_range);
for (rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
if ((*bsi).location && filter.test(*bsi,db))
(*bsi).set_range(defalt_range);
}
#endif
void Divide_tree::xlate_dom(Domain *& d, Domain *new_dom,
const Index *xlate) const
{
d=d ? new_dom+xlate[index(d)] : 0;
}
void Divide_tree::xlate_dom(const Domain *& d, const Domain *new_dom,
const Index *xlate) const
{
d=d ? new_dom+xlate[index(d)] : 0;
}
void Divide_tree::xlate_address(const Domain *&xdom, const Domain *old_base) const
{
if (xdom!=0) xdom=xdom-old_base+&doms.front();
}
void Divide_tree::merge(const Divide_tree& intree)
{
Dom_iter nbri;
ROiter roi;
BSiter bsi;
Index total_dom=doms.size()+intree.doms.size(),
total_ro=runoffs.size()+intree.runoffs.size(),
total_bs=bsnsdls.size()+intree.bsnsdls.size();
//total_ees=ees_nbrs.size()+intree.ees_nbrs.size();
Domain *old_dom_base=&doms.front();
const Domain *in_dom_base=&intree.doms.front()-doms.size();
Runoff *old_ro_base=&runoffs.front();
const Runoff *in_ro_base=&intree.runoffs.front()-runoffs.size();
Basin_saddle *old_bs_base=&bsnsdls.front();
const Basin_saddle *in_bs_base=&intree.bsnsdls.front()-bsnsdls.size();
doms.reserve(total_dom);
runoffs.reserve(total_ro);
bsnsdls.reserve(total_bs);
//ees_nbrs.reserve(total_ees);
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi) {
xlate_address((const Domain *&)(*domi).primary_nbr,old_dom_base);
for (nbri=(*domi).neighbors.begin(); nbri!=(*domi).neighbors.end(); ++nbri)
xlate_address((const Domain *&)*nbri,old_dom_base);
for (roi=(*domi).runoffs.begin(); roi!=(*domi).runoffs.end(); ++roi)
if (*roi) (*roi)=(*roi)-old_ro_base+&runoffs.front();
for (bsi=(*domi).bsnsdls.begin(); bsi!=(*domi).bsnsdls.end(); ++bsi)
if (*bsi) (*bsi)=(*bsi)-old_bs_base+&bsnsdls.front();
}
for (rROiter rroi=runoffs.begin(); rroi!=runoffs.end(); ++rroi) {
xlate_address((const Domain *&)(*rroi).peak,old_dom_base);
}
for (rBSiter rbsi=bsnsdls.begin(); rbsi!=bsnsdls.end(); ++rbsi) {
xlate_address((const Domain *&)(*rbsi).peak1,old_dom_base);
xlate_address((const Domain *&)(*rbsi).peak2,old_dom_base);
xlate_address((const Domain *&)(*rbsi).common_ancestor,old_dom_base);
}
for (const_rDom_iter cdomi=intree.doms.begin();
cdomi!=intree.doms.end(); ++cdomi) {
doms.push_back(*cdomi);
Domain& dom=doms.back();
xlate_address((const Domain *&)dom.primary_nbr,in_dom_base);
for (nbri=dom.neighbors.begin(); nbri!=dom.neighbors.end(); ++nbri)
xlate_address((const Domain *&)*nbri,in_dom_base);
for (roi=dom.runoffs.begin(); roi!=dom.runoffs.end(); ++roi)
if (*roi) (*roi)=(*roi)-in_ro_base+&runoffs.front();
for (bsi=dom.bsnsdls.begin(); bsi!=dom.bsnsdls.end(); ++bsi)
if (*bsi) (*bsi)=(*bsi)-in_bs_base+&bsnsdls.front();
}
for (const_rROiter croi=intree.runoffs.begin();
croi!=intree.runoffs.end(); ++croi) {
runoffs.push_back(*croi);
xlate_address((const Domain *&)runoffs.back().peak,in_dom_base);
}
for (const_rBSiter cbsi=intree.bsnsdls.begin();
cbsi!=intree.bsnsdls.end(); ++cbsi) {
bsnsdls.push_back(*cbsi);
xlate_address((const Domain *&)bsnsdls.back().peak1,in_dom_base);
xlate_address((const Domain *&)bsnsdls.back().peak2,in_dom_base);
xlate_address((const Domain *&)bsnsdls.back().common_ancestor,in_dom_base);
}
//for (vector<EESnbrs>::const_iterator esni=intree.ees_nbrs.begin();
//esni!=intree.ees_nbrs.end(); ++esni)
//ees_nbrs.push_back(*esni);
compress_ro();
sort(runoffs.begin(),runoffs.end());
clear_runoffs();
set_runoffs();
}
const Feature *Divide_tree::transform(float m, float b,
bool xform_peak, bool xform_sadl,
bool xform_ro, bool xform_bs,
bool xform_edit)
{
float u,v;
rDom_iter domi;
rROiter roi;
rBSiter bsi;
if (m!=0) {
// precalculate interval for which transformation will be within range
u=(-elev_infty-b)/m;
v=( elev_infty-b)/m;
if (m<0) {
float y=u;
u=v;
v=y;
}
// check if all features would transform to a value within range
for (domi=doms.begin(); domi!=doms.end(); ++domi) {
if (xform_peak && !(*domi).peak.check_limit(u,v,xform_edit))
return &(*domi).peak;
if (xform_sadl && !(*domi).saddle.check_limit(u,v,xform_edit))
return &(*domi).saddle;
}
if (xform_ro)
for (roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
if (!(*roi).check_limit(u,v,xform_edit)) return &*roi;
if (xform_bs)
for (bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
if (!(*bsi).check_limit(u,v,xform_edit)) return &*bsi;
}
else {
if (b>=elev_infty || b<=-elev_infty) {
return &doms.front().peak;
}
}
// All features transform within range. Now do the transformation for real.
for (domi=doms.begin(); domi!=doms.end(); ++domi) {
if (xform_peak) (*domi).peak.transform(m,b,xform_edit);
if (xform_sadl) (*domi).saddle.transform(m,b,xform_edit);
}
if (xform_ro)
for (roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
(*roi).transform(m,b,xform_edit);
if (xform_bs)
for (bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
(*bsi).transform(m,b,xform_edit);
return 0;
}
class Cmp_dom_location {
public:
Feature Domain::*type;
Cmp_dom_location(Feature Domain::*t) : type(t) {}
bool operator()(const Domain *a, const Domain *b)
{return (a->*type).location<(b->*type).location;}
};
class Cmp_featr_location {
public:
bool operator()(const Feature *a, const Feature *b)
{return a->location<b->location;}
};
void Divide_tree::add_bs(const Basin_saddle& bs)
{
expand_nbs(1);
bsnsdls.push_back(bs);
bs.peak1->add_nbr(&bsnsdls.back());
bs.peak2->add_nbr(&bsnsdls.back());
}
Runoff *Divide_tree::add_ro(const Runoff& ro)
{
expand_nro(1);
rROiter roi;
for (roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
if ((*roi).location && ro.location<=(*roi).location) break;
runoffs.insert(roi,ro);
ROiter ropi;
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi)
for (ropi=(*domi).runoffs.begin(); ropi!=(*domi).runoffs.end(); ++ropi)
if (*ropi && *ropi>=&*roi) ++*ropi;
ro.peak->add_nbr(&*roi);
return &*roi;
}
// sort domain pointers by location
void Divide_tree::sort_doms(Feature Domain::*type, vector<Domain *>& sorted)
{
sorted.clear();
sorted.reserve(doms.size());
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi)
if (((*domi).*type).location) sorted.push_back(&*domi);
sort(sorted.begin(),sorted.end(),Cmp_dom_location(type));
}
// sort basin saddle pointers by location
void Divide_tree::sort_bs(vector<Basin_saddle *>& sorted)
{
sorted.clear();
sorted.reserve(bsnsdls.size());
for (rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
if ((*bsi).location) sorted.push_back(&*bsi);
sort(sorted.begin(),sorted.end(),Cmp_featr_location());
}
// prepare sorted list of runoff pointers by location
// by compressing the already sorted (except for deletions) runoff list
void Divide_tree::sort_ro(vector<Runoff *>& sorted)
{
sorted.clear();
sorted.reserve(runoffs.size());
for (rROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
if ((*roi).location) sorted.push_back(&*roi);
}
// find an exact location in a sorted list of domains
Domain::Index Divide_tree::search_dom(const GridPoint& target, const vector<Domain *>& sorted_doms,
Feature Domain::*type)
{
Index jdom,lim_lo=0,lim_hi=sorted_doms.size();
while (lim_hi>lim_lo) {
jdom=(lim_lo+lim_hi)/2;
if (target<(sorted_doms[jdom]->*type).location)
lim_hi=jdom;
else if (target>(sorted_doms[jdom]->*type).location)
lim_lo=jdom+1;
else lim_lo=lim_hi=jdom; // we'll automatically fall out of the loop here
}
return lim_lo;
}
// find a range of domain-owned features in the tree.
// use binary search to get the midpoint, then expand outward
void Divide_tree::dom_range(const GridPoint& target, const vector<Domain *>& sorted_doms,
Feature Domain::*type, Distance radius, Index& lim_lo, Index& lim_hi)
{
lim_lo=lim_hi=search_dom(target,sorted_doms,type);
while (lim_lo>0 &&
target.ever_radius((sorted_doms[lim_lo-1]->*type).location)<=radius) --lim_lo;
while (lim_hi<sorted_doms.size() &&
target.ever_radius((sorted_doms[lim_hi]->*type).location)<=radius) ++lim_hi;
}
// find an exact location in a sorted list of basin saddles
Domain::Index Divide_tree::search_bs(const GridPoint& target,
const vector<Basin_saddle *>& sorted_bs)
{
Index jbs,lim_lo=0,lim_hi=sorted_bs.size();
while (lim_hi>lim_lo) {
jbs=(lim_lo+lim_hi)/2;
if (target<sorted_bs[jbs]->location)
lim_hi=jbs;
else if (target>sorted_bs[jbs]->location)
lim_lo=jbs+1;
else lim_lo=lim_hi=jbs; // we'll automatically fall out of the loop here
}
return lim_lo;
}
// find a range of basin saddles in the tree.
// use binary search to get the midpoint, then expand outward
void Divide_tree::bs_range(const GridPoint& target, const vector<Basin_saddle *>& sorted_bs,
Distance radius, Index& lim_lo, Index& lim_hi)
{
lim_lo=lim_hi=search_bs(target,sorted_bs);
while (lim_lo>0 &&
target.ever_radius(sorted_bs[lim_lo-1]->location)<=radius) --lim_lo;
while (lim_hi<sorted_bs.size() &&
target.ever_radius(sorted_bs[lim_hi]->location)<=radius) ++lim_hi;
}
// find an exact location in a sorted list of runoffs
Domain::Index Divide_tree::search_ro(const GridPoint& target,
const vector<Runoff *>& sorted_ro)
{
Index jro,lim_lo=0,lim_hi=sorted_ro.size();
while (lim_hi>lim_lo) {
jro=(lim_lo+lim_hi)/2;
if (target<sorted_ro[jro]->location)
lim_hi=jro;
else if (target>sorted_ro[jro]->location)
lim_lo=jro+1;
else lim_lo=lim_hi=jro; // we'll automatically fall out of the loop here
}
return lim_lo;
}
// find a range of runoffs in the tree.
// use binary search to get the midpoint, then expand outward
void Divide_tree::runoff_range(const GridPoint& target, const vector<Runoff *>& sorted_ro,
Distance radius, Index& lim_lo, Index& lim_hi)
{
lim_lo=lim_hi=search_ro(target,sorted_ro);
while (lim_lo>0 &&
target.ever_radius(sorted_ro[lim_lo-1]->location)<=radius) --lim_lo;
while (lim_hi<sorted_ro.size() &&
target.ever_radius(sorted_ro[lim_hi]->location)<=radius) ++lim_hi;
}
void undefine_elev_array(Elevation array[], Domain::Index n)
{
if (array==0) return;
for (Domain::Index i=0; i<n; ++i)
array[i]=elev_undef;
}
void depress(Elev_intvl& a, const Elev_intvl& b)
{
if (b.low<a.low) a.low=b.low;
if (b.high<a.high) a.high=b.high;
}
void elevate(Elev_intvl& a, const Elev_intvl& b)
{
if (b.low>a.low) a.low=b.low;
if (b.high>a.high) a.high=b.high;
}
// prepare for extra basin saddles
void Divide_tree::expand_nbs(Index nextra_bs)
{
Basin_saddle *old_bs_base=&bsnsdls.front();
bsnsdls.reserve(bsnsdls.size()+nextra_bs);
if (old_bs_base!=&bsnsdls.front()) {
BSiter bsi;
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi)
for (bsi=(*domi).bsnsdls.begin(); bsi!=(*domi).bsnsdls.end(); ++bsi)
if (*bsi) (*bsi)=(*bsi)-old_bs_base+&bsnsdls.front();
}
}
// prepare for extra runoffs
void Divide_tree::expand_nro(Index nextra_ro)
{
Runoff *old_ro_base=&runoffs.front();
runoffs.reserve(runoffs.size()+nextra_ro);
if (old_ro_base!=&runoffs.front()) {
ROiter roi;
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi)
for (roi=(*domi).runoffs.begin(); roi!=(*domi).runoffs.end(); ++roi)
if (*roi) (*roi)=(*roi)-old_ro_base+&runoffs.front();
}
}
// splice a contiguous sequence of runoffs
// it is assumed that the basin saddle vector already has enough capacity
// to hold the new ones
bool Divide_tree::splice(rROiter& roi)
{
bool status=false;
#ifdef _DEBUG
writing=this;
#endif
rROiter roj;
for (roj=roi;
roj!=runoffs.begin() && (*(roj-1)).location==(*roi).location;
--roj);
roi=roj;
for (++roi; roi!=runoffs.end() && (*roi).location==(*roj).location; ++roi) {
Basin_saddle bs;
(*roj).splice(*roi,bs);
status=true;
if (bs && !bs.edge_effect) {
bsnsdls.push_back(bs);
bs.peak1->add_nbr(&bsnsdls.back());
bs.peak2->add_nbr(&bsnsdls.back());
}
}
return status;
}
// splice a contiguous sequence of runoffs
// it is assumed that the basin saddle vector already has enough capacity
// to hold the new ones
// NOTE(akirmse): Added this function to fix an improper use of a vector
// pointer as an iterator at promdoc.cpp:2651.
bool Divide_tree::splice(Runoff *ro)
{
bool status = false;
#ifdef _DEBUG
writing = this;
#endif
rROiter roj;
for (roj = runoffs.begin(); roj != runoffs.end(); ++roj) {
if (roj->location == ro->location) {
Basin_saddle bs;
(*roj).splice(*ro, bs);
status = true;
if (bs && !bs.edge_effect) {
bsnsdls.push_back(bs);
bs.peak1->add_nbr(&bsnsdls.back());
bs.peak2->add_nbr(&bsnsdls.back());
}
}
}
return status;
}
void Divide_tree::splice(Distance)
{
Index max_new_bs=0;
// count the # of possible runoff splices;
// that's an upper bound on the # of new basin saddles
rROiter roi;
for (roi=runoffs.begin(); (roi+1)!=runoffs.end(); ++roi)
if ((*roi).location==(*(roi+1)).location)
++max_new_bs;
// allocate & fill space for new basin saddles
expand_nbs(max_new_bs);
for (roi=runoffs.begin(); roi!=runoffs.end(); ++roi) {
if (!(*roi).location) continue;
splice(roi);
--roi;
}
set_cycle_info();
}
void Divide_tree::splice(Runoff *ro[], unsigned nro)
{
expand_nbs(nro-1);
for (unsigned iro=1; iro<nro; ++iro) {
Basin_saddle bs;
ro[0]->splice(*ro[iro],bs);
if (bs && !bs.edge_effect) {
bsnsdls.push_back(bs);
bs.peak1->add_nbr(&bsnsdls.back());
bs.peak2->add_nbr(&bsnsdls.back());
}
}
set_cycle_info();
}
void Divide_tree::rotate()
{
// determine which basin saddles might need to be rotated
Index nbs=bsnsdls.size(),nrot=0,irot;
Basin_saddle **rotated=new Basin_saddle *[nbs];
for (rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi) {
if ((*bsi).location && (*bsi).cycle_min(1,HI_END)) {
rotated[nrot]=&*bsi;
++nrot;
}
}
// rotate only those that need it
for (irot=0; irot<nrot; ++irot) {
rotated[irot]->set_cycle_info();
rotated[irot]->rotate();
}
delete[] rotated;
set_cycle_info();
}
// set the status of all saddles to unknown
void Divide_tree::set_sadl_stat_unknown()
{
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi)
(*domi).saddle.status=Saddle::STAT_UNKNOWN;
for (rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
(*bsi).status=Saddle::STAT_UNKNOWN;
}
// bump up the status of all edited prominence saddles
void Divide_tree::set_sadl_stat(Saddle::Status new_stat)
{
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi)
if ((*domi).saddle.edited && new_stat>(*domi).saddle.status)
(*domi).saddle.status=new_stat;
}
// find runoff tree for runoff rendering
void Divide_tree::update_runoff_prom_info()
{
// first, find the prominence island tree
Index i,j,n=doms.size();
Topo_info *tree=get_island_tree(HI_END);
for (i=0; i<n; ++i) {
Domain& dom=doms[i];
if (!dom.peak.location) continue;
j=tree[i].parnt;
if (j==Domain::undef) {
dom.prom.island_parent=0;
dom.prom.sadl_elev=-elev_infty;
}
else {
dom.prom.island_parent=&doms[j];
dom.prom.sadl_elev=doms[tree[i].sadl_dom].saddle.elev.high;
}
}
// now, clear runoff inversions
n=runoffs.size();
for (i=0; i<n; ++i) {
const Runoff& ro=runoffs[i];
const Domain *&ip=ro.island;
if (ro.peak) {
for (ip=ro.peak;
ip->prom.island_parent &&
ro.elev.high<doms[tree[index(ip)].sadl_dom].saddle.elev.low;
ip=ip->prom.island_parent);
}
else ip=0;
assert(ro.island==0 || index(ro.island)<doms.size());
}
delete[] tree;
}
void Divide_tree::uninvert_peak(Index idom, Elev_endpt endpt,
Topo_info tree[]) const
{
Elev_endpt farpt;
Index ipar,igpar,isdom,ipsdom;
const Elev_intvl& pk_elev=doms[idom].peak.elev;
while (ipar=tree[idom].parnt,
ipar!=Domain::undef &&
(pk_elev.*endpt > doms[ipar].peak.elev.*endpt ||
pk_elev.*endpt == doms[ipar].peak.elev.*endpt &&
(farpt=OTHER_END(endpt),
pk_elev.*farpt > doms[ipar].peak.elev.*farpt))) {
uninvert_peak(ipar,endpt,tree);
igpar=tree[ipar].parnt;
isdom=tree[idom].sadl_dom;
ipsdom=tree[ipar].sadl_dom;
if (igpar==Domain::undef ||
doms[isdom].saddle.elev.*endpt >
doms[ipsdom].saddle.elev.*endpt) {
// child-side saddle is higher
tree[ipar].parnt=idom;
tree[ipar].sadl_dom=isdom;
tree[idom].sadl_dom=ipsdom;
}
tree[idom].parnt=igpar;
}
}
void Divide_tree::uninvert_peak_ip(Index idom, Topo_info tree[]) const
{
Index ipar,igpar,isdom,ipsdom;
const Elev_intvl& pk_elev=doms[idom].peak.elev;
Elev_intvl path_LIS;
Saddle::Status path_stat,sadl_stat;
while (ipar=tree[idom].parnt,
ipar!=Domain::undef &&
(pk_elev.low > doms[ipar].peak.elev.low ||
pk_elev.low == doms[ipar].peak.elev.low &&
pk_elev.high > doms[ipar].peak.elev.high)) {
// original peak is (still) inverted
uninvert_peak_ip(ipar,tree);
igpar=tree[ipar].parnt;
isdom=tree[idom].sadl_dom;
ipsdom=tree[ipar].sadl_dom;
if (igpar!=Domain::undef &&
doms[isdom].saddle.elev<doms[ipsdom].saddle.elev &&
doms[isdom].saddle.eff_stat(false)<=doms[ipsdom].saddle.eff_stat(false)) {
// parent-side saddle is definitely higher.
// clear the inversion by making the grandparent the parent.
tree[idom].parnt=igpar;
continue;
}
for (path_LIS=doms[isdom].saddle.elev,
path_stat=doms[isdom].saddle.eff_stat(false);
igpar!=Domain::undef &&
(!(doms[ipsdom].saddle.elev<path_LIS) ||
(sadl_stat=doms[ipsdom].saddle.eff_stat(false))>path_stat); ) {
// next ancestor saddle is not definitely lower. Is the next peak higher?
const Elev_intvl& par_elev=doms[igpar].peak.elev;
if (par_elev.low > pk_elev.low ||
par_elev.low == pk_elev.low && par_elev.high > pk_elev.high) {
// yes. We'll consider ourselves not inverted, and can bail.
return;
}
// no. shift to the next saddle and continue.
ipar=igpar;
isdom=ipsdom;
igpar=tree[ipar].parnt;
ipsdom=tree[ipar].sadl_dom;
depress(path_LIS,doms[isdom].saddle.elev);
if (sadl_stat<path_stat) path_stat=sadl_stat;
}
// if we get here, we've found a definitely lower saddle
// before finding a higher peak. Reverse the path.
path_reverse(tree,idom,ipar);
tree[idom].parnt=igpar;
}
}
void Divide_tree::uninvert_peaks(Elev_endpt endpt, Topo_info tree[]) const
{
#ifdef timer
clock_t clk=clock();
#endif
Index i,n=doms.size();
for (i=0; i<n; ++i)
if (doms[i].peak.location)
uninvert_peak(i,endpt,tree);
#ifdef timer
TRACE("uninvert_peaks() took %d clock ticks\n",clock()-clk);
#endif
}
void Divide_tree::uninvert_saddle(Index idom, Elev_endpt endpt,
Topo_info tree[]) const
{
Index ipar,igpar,isdom=tree[idom].sadl_dom,ipsdom;
while (true) {
ipar=tree[idom].parnt;
if (ipar==Domain::undef) return;
igpar=tree[ipar].parnt;
if (igpar==Domain::undef) return;
ipsdom=tree[ipar].sadl_dom;
if (doms[isdom].saddle.elev.*endpt >
doms[ipsdom].saddle.elev.*endpt) return;
uninvert_saddle(ipar,endpt,tree);
tree[idom].parnt=tree[ipar].parnt;
}
}
void Divide_tree::uninvert_saddle_ip(Index idom, Topo_info tree[]) const
{
Index ipar,igpar,isdom=tree[idom].sadl_dom,ipsdom;
if (doms[isdom].saddle.edge_effect) return;
Saddle::Status sadl_stat=doms[isdom].saddle.eff_stat(false);
while (true) {
ipar=tree[idom].parnt;
if (ipar==Domain::undef) return;
igpar=tree[ipar].parnt;
if (igpar==Domain::undef) return;
ipsdom=tree[ipar].sadl_dom;
if (!(doms[isdom].saddle.elev < doms[ipsdom].saddle.elev) ||
sadl_stat>doms[ipsdom].saddle.eff_stat(false))
return;
uninvert_saddle_ip(ipar,tree);
tree[idom].parnt=tree[ipar].parnt;
}
}
void Divide_tree::uninvert_saddles(Elev_endpt endpt, Topo_info tree[]) const
{
#ifdef timer
clock_t clk=clock();
#endif
Index i,n=doms.size();
for (i=0; i<n; ++i)
if (doms[i].peak.location)
uninvert_saddle(i,endpt,tree);
#ifdef timer
TRACE("uninvert_saddles() took %d clock ticks\n",clock()-clk);
#endif
}
Topo_info *Divide_tree::init_topo() const
{
// initialize island info array to reflect M-S tree
Index i,n=doms.size();
Topo_info *tree=new Topo_info[n];
for (i=0; i<n; ++i) {
const Domain& dom=doms[i];
if (!dom.peak.location) continue;
tree[i].parnt=index(dom.primary_nbr);
tree[i].sadl_dom=i;
}
return tree;
}
Topo_info *Divide_tree::get_island_tree(Elev_endpt endpt) const
{
Topo_info *tree=init_topo();
uninvert_peaks(endpt,tree);
uninvert_saddles(endpt,tree);
return tree;
}
Topo_info *Divide_tree::get_ipit() const
{
#ifdef timer
clock_t clk=clock();
#endif
Topo_info *tree=init_topo();
Index i,n=doms.size();
for (i=0; i<n; ++i)
if (doms[i].peak.location)
uninvert_peak_ip(i,tree);
for (i=0; i<n; ++i)
if (doms[i].peak.location)
uninvert_saddle_ip(i,tree);
#ifdef timer
TRACE("get_ipit() took %d clock ticks\n",clock()-clk);
#endif
return tree;
}
void Divide_tree::sort_nbrs()
{
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi)
(*domi).sort_nbrs();
}
static inline void xlate_dom(const Domain *& d, const Domain *dom_base,
const Domain::Index *xlate)
{
assert(d==0 || xlate[d-dom_base]!=Domain::undef);
d = d ? dom_base+xlate[d-dom_base] : 0;
}
static inline void xlate_bs(const Basin_saddle *& bs, const Basin_saddle *bs_base,
const Domain::Index *xlate)
{
assert(bs==0 || xlate[bs-bs_base]!=Domain::undef);
bs = bs ? bs_base+xlate[bs-bs_base] : 0;
}
void Divide_tree::xlate_all_doms(Index xlate[], Index new_ndom)
{
// initialize new list and transfer peaks to it
Domain *dom_base=&doms.front();
vector<Domain> old_doms=doms;
doms.resize(new_ndom);
Index i,xi;
Dom_iter nbri;
for (i=0; i<old_doms.size(); ++i) {
xi=xlate[i];
if (xi!=Domain::undef) {
doms[xi]=old_doms[i];
doms[xi].copy_nbrs(old_doms[i]);
::xlate_dom((const Domain *&)doms[xi].primary_nbr,dom_base,xlate);
// translate neighbors
for (nbri=doms[xi].neighbors.begin();
nbri!=doms[xi].neighbors.end(); ++nbri)
::xlate_dom((const Domain *&)*nbri,dom_base,xlate);
}
}
// translate runoffs
for (rROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
if ((*roi).location && (*roi).peak)
::xlate_dom((const Domain *&)(*roi).peak,dom_base,xlate);
// translate basin saddles
for (rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi) {
if ((*bsi).location) {
::xlate_dom((const Domain *&)(*bsi).peak1,dom_base,xlate);
::xlate_dom((const Domain *&)(*bsi).peak2,dom_base,xlate);
::xlate_dom((const Domain *&)(*bsi).common_ancestor,dom_base,xlate);
}
}
}
void Divide_tree::xlate_all_bs(Index xlate[], Index new_nbs)
{
// initialize new list and transfer basin saddles to it (wothout translation)
Basin_saddle *bs_base=&bsnsdls.front();
vector<Basin_saddle> old_bs=bsnsdls;
bsnsdls.resize(new_nbs);
Index i,xi;
BSiter nbri;
// translate basin saddles from "old" list back to new list
for (i=0; i<old_bs.size(); ++i) {
xi=xlate[i];
if (xi!=Domain::undef) {
bsnsdls[xi]=old_bs[i];
}
}
// translate references from peak neighbor lists
for (i=0; i<doms.size(); ++i) {
for (nbri=doms[i].bsnsdls.begin(); nbri!=doms[i].bsnsdls.end(); ++nbri) {
::xlate_bs((const Basin_saddle *&)*nbri,bs_base,xlate);
}
}
}
void Divide_tree::compress_dom()
{
Index ndom=doms.size(),*xlate=new Index[ndom],i,new_ndom=0;
// prepare translation table
for (i=0; i<ndom; ++i) {
if (doms[i].peak.location) {
xlate[i]=new_ndom;
++new_ndom;
}
else xlate[i]=Domain::undef;
}
if (new_ndom==ndom) {
delete[] xlate;
return; // do nothing if there are no open spaces
}
xlate_all_doms(xlate,new_ndom);
delete[] xlate;
}
void Divide_tree::compress_ro()
{
if (runoffs.empty()) return;
Index nrunoff=runoffs.size(),*xlate=new Index[nrunoff],i,new_nro=0;
// prepare translation table
for (i=0; i<nrunoff; ++i) {
if (runoffs[i].location) {
xlate[i]=new_nro;
++new_nro;
}
else xlate[i]=Domain::undef;
}
if (new_nro==nrunoff) {
delete[] xlate;
return; // do nothing if there are no open spaces
}
// initialize new list and transfer runoffs to it
Runoff *runoff_base=&runoffs.front();
vector<Runoff> old_runoffs=runoffs;
runoffs.resize(new_nro);
for (i=0; i<nrunoff; ++i) {
if (xlate[i]!=Domain::undef) {
runoffs[xlate[i]]=old_runoffs[i];
}
}
// translate runoff lists on domains
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi) {
if ((*domi).peak.location) {
for (ROiter roi=(*domi).runoffs.begin();
roi!=(*domi).runoffs.end(); ++roi)
(*roi)=runoff_base+xlate[(*roi)-runoff_base];
}
}
delete[] xlate;
}
void Divide_tree::compress_bs()
{
if (bsnsdls.empty()) return;
Index nbs=bsnsdls.size(),*xlate=new Index[nbs],i,new_nbs=0;
// prepare translation table
for (i=0; i<nbs; ++i) {
if (bsnsdls[i].location) {
xlate[i]=new_nbs;
++new_nbs;
}
else xlate[i]=Domain::undef;
}
if (new_nbs==nbs) {
delete[] xlate;
return; // do nothing if there are no open spaces
}
// initialize new list and transfer basin saddles to it
Basin_saddle *bs_base=&bsnsdls.front();
vector<Basin_saddle> old_bs=bsnsdls;
bsnsdls.resize(new_nbs);
Basin_saddle *new_bs_base=&bsnsdls.front();
for (i=0; i<nbs; ++i) {
if (xlate[i]!=Domain::undef) {
bsnsdls[xlate[i]]=old_bs[i];
}
}
// translate basin saddle lists on domains
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi) {
if ((*domi).peak.location) {
for (BSiter bsi=(*domi).bsnsdls.begin();
bsi!=(*domi).bsnsdls.end(); ++bsi) {
(*bsi)=new_bs_base+xlate[(*bsi)-bs_base];
}
}
}
delete[] xlate;
}
void Divide_tree::sort_doms()
{
// blanks left over from deleted peaks will interfere with sorting
compress_dom();
// prepare array to represent the peaks in sorted order
vector<Index> sorted;
Index i,n=doms.size();
for (i=0; i<n; ++i) sorted.push_back(i);
sort(sorted.begin(),sorted.end(),Cmp_peak_index(&doms.front(),LO_END));
// invert the "sorted order" array to form a translation array
Index *xlate=new Index[n];
for (i=0; i<n; ++i)
xlate[sorted[i]]=i;
// reorder the peaks according to the translation
xlate_all_doms(xlate,n);
delete[] xlate;
}
void Divide_tree::sort_bs()
{
// blanks left over from deleted basin saddles will interfere with sorting
compress_bs();
// prepare array to represent the basin saddles in sorted order
vector<Index> sorted;
Index i,n=bsnsdls.size();
for (i=0; i<n; ++i) sorted.push_back(i);
sort(sorted.begin(),sorted.end(),Cmp_bs_index(&bsnsdls.front()));
// invert the "sorted order" array to form a translation array
Index *xlate=new Index[n];
for (i=0; i<n; ++i)
xlate[sorted[i]]=i;
// reorder the basin saddles according to the translation
xlate_all_bs(xlate,n);
delete[] xlate;
}
#ifdef io_support
void Divide_tree::dump(FILE *f) const
{
writing=this;
fprintf(f," ");
Feature::print_header(f);
putc('\n',f);
for (const_rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi) {
fprintf(f,"Domain #%ld:\n",index(&*domi));
(*domi).dump(f);
}
if (!runoffs.empty()) fprintf(f,"Runoffs:\n");
for (const_rROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi) {
fprintf(f," #%-5ld ",index(*roi));
(*roi).dump(f);
}
if (!bsnsdls.empty()) fprintf(f,"Basin saddles:\n");
for (const_rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi) {
fprintf(f," #%-5ld ",index(*bsi));
(*bsi).dump(f);
}
}
bool Divide_tree::dump(const char *fn) const
{
FILE *file=fopen(fn,"w");
if (!file) return false;
dump(file);
fclose(file);
return true;
}
#endif // io_support
void Divide_tree::xlate_address(const Domain *&xdom, const Divide_tree& source) const
{
if (xdom!=0) xdom=source.index(xdom)+&doms.front();
}
void Divide_tree::copy(const Divide_tree& source) throw(bad_alloc)
{
Dom_iter nbri;
ROiter roi;
BSiter bsi;
reading=this;
doms.clear();
doms=source.doms;
runoffs=source.runoffs;
bsnsdls=source.bsnsdls;
Runoff *ro_base=&*runoffs.begin();
Basin_saddle *bs_base=&*bsnsdls.begin();
for (rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi) {
xlate_address((const Domain *&)(*domi).primary_nbr,source);
for (nbri=(*domi).neighbors.begin(); nbri!=(*domi).neighbors.end(); ++nbri)
xlate_address((const Domain *&)*nbri,source);
for (roi=(*domi).runoffs.begin(); roi!=(*domi).runoffs.end(); ++roi)
if (*roi) (*roi)=source.index(**roi)+ro_base;
for (bsi=(*domi).bsnsdls.begin(); bsi!=(*domi).bsnsdls.end(); ++bsi)
if (*bsi) (*bsi)=source.index(**bsi)+bs_base;
}
for (rROiter rroi=runoffs.begin(); rroi!=runoffs.end(); ++rroi)
xlate_address((const Domain *&)(*rroi).peak,source);
for (rBSiter rbsi=bsnsdls.begin(); rbsi!=bsnsdls.end(); ++rbsi) {
xlate_address((const Domain *&)(*rbsi).peak1,source);
xlate_address((const Domain *&)(*rbsi).peak2,source);
xlate_address((const Domain *&)(*rbsi).common_ancestor,source);
}
}
void Divide_tree::read(FILE *f) throw(file_error,bad_alloc)
{
unsigned short version;
fread(version,f);
Saddle::distance_io=false;
Saddle::stat_io=0;
switch (version) {
case VERSION_SADL_STAT_RIVER:
Saddle::stat_io=2;
Saddle::distance_io=true;
break;
case VERSION_SADL_STAT:
Saddle::stat_io=1;
Saddle::distance_io=true;
break;
case VERSION_FS:
Saddle::distance_io=true;
break;
default: fseek(f, -(int) sizeof version,SEEK_CUR); // we don't have a file version stamp
}
GridPoint::read_stamp(f);
reading=this;
Index i,n;
fread(n,f);
doms.clear();
doms.resize(n); // !!! sometimes crashes if not preceeded by AfxMessageBox()
for (i=0; i<n; ++i)
doms[i].read(f);
fread(n,f);
runoffs.clear();
runoffs.resize(n);
for (i=0; i<n; ++i)
runoffs[i].read(f);
fread(n,f);
bsnsdls.clear();
bsnsdls.resize(n);
for (i=0; i<n; ++i)
bsnsdls[i].read(f);
#if 0
// won't use this until I have a better understanding of "boundary hugging walks"
try {
fread(n,f); // need to handle old file format which doesn't have this
}
catch (...) {
if (!feof(f)) throw;
n=0;
}
ees_nbrs.clear();
ees_nbrs.resize(n);
for (i=0; i<n; ++i)
ees_nbrs[i].read(f);
#endif
}
void Divide_tree::write(FILE *f) const throw(file_error)
{
fwrite(VERSION_SADL_STAT_RIVER,f);
GridPoint::write_stamp(f);
writing=this;
fwrite(doms.size(),f);
for (const_rDom_iter domi=doms.begin(); domi!=doms.end(); ++domi)
(*domi).write(f);
fwrite(runoffs.size(),f);
for (const_rROiter roi=runoffs.begin(); roi!=runoffs.end(); ++roi)
(*roi).write(f);
fwrite(bsnsdls.size(),f);
for (const_rBSiter bsi=bsnsdls.begin(); bsi!=bsnsdls.end(); ++bsi)
(*bsi).write(f);
#if 0
// won't use this until I have a better understanding of "boundary hugging walks"
fwrite(ees_nbrs.size(),f);
for (vector<EESnbrs>::const_iterator esni=ees_nbrs.begin(); esni!=ees_nbrs.end(); ++esni)
(*esni).write(f);
#endif
}
void Divide_tree::read(const char *fn) throw(file_error,bad_alloc)
{
FILE *file=fopen(fn,"rb");
if (!file) throw file_error();
try {read(file);}
catch (...) {
fclose(file);
throw;
}
fclose(file);
set_neighbors();
set_runoffs();
set_bsnsdls();
set_cycle_info();
}
void Divide_tree::write(const char *fn) const throw(file_error)
{
FILE *file=fopen(fn,"wb");
if (!file) throw file_error();
try {write(file);}
catch (...) {
fclose(file);
throw;
}
fclose(file);
}
| 28.127284 | 99 | 0.663935 | [
"vector",
"transform",
"3d"
] |
2c95c66bf3c534a3830feab287968f3070fda421 | 1,469 | cpp | C++ | modules/search-graph-diameter/src/search-graph-diameter.cpp | gurylev-nikita/devtools-course-practice | bab6ba4e39f04940e27c9ac148505eb152c05d17 | [
"CC-BY-4.0"
] | null | null | null | modules/search-graph-diameter/src/search-graph-diameter.cpp | gurylev-nikita/devtools-course-practice | bab6ba4e39f04940e27c9ac148505eb152c05d17 | [
"CC-BY-4.0"
] | 3 | 2021-04-08T16:19:27.000Z | 2021-04-25T09:29:45.000Z | modules/search-graph-diameter/src/search-graph-diameter.cpp | taktaev-artyom/devtools-course-practice | 7cf19defe061c07cfb3ebb71579456e807430a5d | [
"CC-BY-4.0"
] | null | null | null | // Copyright 2021 Kurnikova Anastasia
#include <limits>
#include <vector>
#include <algorithm>
#include "include/search-graph-diameter.h"
Graph::Graph() : number(10) {
vertex.resize(number);
for (int i = 0; i < number; ++i) {
vertex[i].resize(number);
for (int j = 0; j < number; ++j)
vertex[i][j] = 0;
}
}
Graph::Graph(matrix && v, int n) noexcept : vertex(move(v)), number(n) {}
Graph::Graph(const Graph& graph) : number(graph.number) {
vertex.resize(number);
for (int i = 0; i < number; ++i)
for (unsigned int j = 0; j < graph.vertex[i].size(); ++j)
vertex[i].push_back(graph.vertex[i][j]);
}
Graph& Graph::operator=(const Graph& graph) {
number = graph.number;
vertex = graph.vertex;
return *this;
}
void Graph::path() {
for (int i = 0; i < number; ++i)
for (int j = 0; j < number; ++j)
if (i != j && ((vertex[i][j] == 0) || (vertex[i][j] == -1)))
vertex[i][j] = std::numeric_limits<signed int>::max()/2;
for (int k = 0; k < number; ++k)
for (int i = 0; i < number; ++i)
for (int j = 0; j < number; ++j)
vertex[i][j] = std::min(vertex[i][j],
vertex[i][k] + vertex[k][j]);
}
int Graph::diameter() {
path();
int res = -2;
for (int i = 0; i < number; ++i)
for (int j = 0; j < number; ++j)
res = std::max(res, vertex[i][j]);
return res;
}
| 27.716981 | 73 | 0.507148 | [
"vector"
] |
2c96d9e04db7599f499ec7e92519fe33e66d613e | 1,203 | cpp | C++ | leetcode/leetcode021.cpp | KevinYang515/C-Projects | 1bf95a09a0ffc18102f12263c9163619ce6dba55 | [
"MIT"
] | null | null | null | leetcode/leetcode021.cpp | KevinYang515/C-Projects | 1bf95a09a0ffc18102f12263c9163619ce6dba55 | [
"MIT"
] | null | null | null | leetcode/leetcode021.cpp | KevinYang515/C-Projects | 1bf95a09a0ffc18102f12263c9163619ce6dba55 | [
"MIT"
] | null | null | null | #include "ListNode.h"
#include <iostream>
#include <vector>
using namespace std;
ListNode* mergeTwoLists(ListNode* l1, ListNode* l2);
int main(){
vector<ListNode*> l1_v = {new ListNode(1, new ListNode(2, new ListNode(4)))};
vector<ListNode*> l2_v = {new ListNode(1, new ListNode(3, new ListNode(4)))};
for (int i = 0; i < l1_v.size(); i++){
ListNode* answer = mergeTwoLists(l1_v[i], l2_v[i]);
while (answer != NULL){
printf("%d, ", answer->val);
answer = answer->next;
}
printf("\n");
}
return 0;
}
ListNode* mergeTwoLists(ListNode* l1, ListNode* l2) {
if (l1 == NULL) return l2;
else if (l2 == NULL) return l1;
ListNode *dummy = new ListNode(0), *result = dummy;
while (l1 != NULL && l2 != NULL){
if (l1->val > l2->val){
result->next = new ListNode(l2->val);
result = result->next;
l2 = l2->next;
}else {
result->next = new ListNode(l1->val);
result = result->next;
l1 = l1->next;
}
}
if (l1 != NULL){
result->next = l1;
}else{
result->next = l2;
}
return dummy->next;
} | 25.0625 | 81 | 0.523691 | [
"vector"
] |
2c9aa52244deb09e28af2da7043eb6c85db370fa | 10,274 | cpp | C++ | src/mesh.cpp | niess/turtle-perfs | ca7f92c7381cb147132995430bcc57a1ea9464a1 | [
"Unlicense"
] | null | null | null | src/mesh.cpp | niess/turtle-perfs | ca7f92c7381cb147132995430bcc57a1ea9464a1 | [
"Unlicense"
] | null | null | null | src/mesh.cpp | niess/turtle-perfs | ca7f92c7381cb147132995430bcc57a1ea9464a1 | [
"Unlicense"
] | null | null | null | /* Standard library */
#include <iostream>
#include <list>
/* The TURTLE library */
#include "turtle.h"
/* The CGAL library */
#include <CGAL/Simple_cartesian.h>
/* The C interfaces */
extern "C" {
#include "downsampler.h"
#include "geometry.h"
}
typedef CGAL::Simple_cartesian<double> Kernel;
typedef Kernel::FT Scalar;
typedef Kernel::Point_3 Point;
typedef Kernel::Vector_3 Vector;
typedef Kernel::Plane_3 Plane;
struct Cell {
int volume;
Plane faces[9];
void set_face(int index, const Point & a, const Point & b,
const Point & c);
void build(int volume);
bool inside(const Point & point);
int distance(const Point & point, const Vector & direction,
double * distance);
};
static struct turtle_map * gMap = NULL;
static struct turtle_map * gGeoid = NULL;
struct turtle_map_info gInfo;
static double gZBottom = -1E+03;
static double gZTop = 1E+04;
static struct Cell gCell;
static Vector gVertical;
static void get_nodes(int ix, int iy, int iz, Point & r_top, Point & r_bottom)
{
if (ix < 0) ix = 0;
else if (ix >= gInfo.nx) ix = gInfo.nx - 1;
if (iy < 0) iy = 0;
else if (iy >= gInfo.ny) iy = gInfo.ny - 1;
double x, y, z;
turtle_map_node(gMap, ix, iy, &x, &y, &z);
const struct turtle_projection * p = turtle_map_projection(gMap);
if (p != NULL) {
const double xmap = x, ymap = y;
turtle_projection_unproject(p, xmap, ymap, &y, &x);
}
double undulation;
turtle_map_elevation(gGeoid, x, y, &undulation, NULL);
z += undulation;
double ecef[3];
turtle_ecef_from_geodetic(y, x, z, ecef);
if (iz == 0) {
r_top = Point(ecef[0], ecef[1], ecef[2]);
r_bottom = r_top + (gZBottom - z) * gVertical;
} else {
r_bottom = Point(ecef[0], ecef[1], ecef[2]);
r_top = r_bottom + (gZTop - z) * gVertical;
}
}
static int index_to_volume(int ix, int iy, int iz)
{
if (iz < 0) return -1;
else return gInfo.nx * (iz * gInfo.ny + iy) + ix;
}
static void volume_to_index(int volume, int * ix, int * iy, int * iz)
{
if (volume < 0) {
*ix = *iy = *iz = -1;
} else {
*iz = volume / (gInfo.nx * gInfo.ny);
*iy = volume / gInfo.nx - (*iz) * gInfo.ny;
*ix = volume % gInfo.nx;
}
}
void Cell::set_face(
int index, const Point & a, const Point & b, const Point & c)
{
faces[index] = Plane(a, b, c);
}
void Cell::build(int volume_)
{
if (volume_ == volume) return;
volume = volume_;
int ix, iy, iz;
volume_to_index(volume, &ix, &iy, &iz);
/* Get the node data in ECEF */
Point nodes[8];
get_nodes(ix, iy, iz, nodes[0], nodes[4]);
get_nodes(ix + 1, iy , iz, nodes[1], nodes[5]);
get_nodes(ix + 1, iy + 1, iz, nodes[2], nodes[6]);
get_nodes(ix, iy + 1, iz, nodes[3], nodes[7]);
/* Model the cell */
int index = 0;
set_face(index++, nodes[0], nodes[1], nodes[2]);
set_face(index++, nodes[2], nodes[3], nodes[0]);
for (int i = 0; i < 4; i++) {
const int i00 = i;
const int i10 = (i + 1) % 4;
const int i01 = i00 + 4;
set_face(index++, nodes[i10], nodes[i00],
nodes[i01]);
}
set_face(index++, nodes[4], nodes[6], nodes[5]);
set_face(index++, nodes[6], nodes[4], nodes[7]);
set_face(index++, nodes[2], nodes[0], nodes[4]);
}
bool Cell::inside(const Point & point)
{
for (int i = 0; i < 8; i++) {
if (faces[i].has_on_positive_side(point))
return false;
}
return true;
}
static double distance_to_face(const Point & point, const Vector & direction,
const Plane & face)
{
const double a = face.a();
const double b = face.b();
const double c = face.c();
const double d = face.d();
const double dp = a * direction[0] + b * direction[1] +
c * direction[2];
if (fabs(dp) < DBL_EPSILON)
return DBL_MAX;
else
return -(a * point[0] + b * point[1] +
c * point[2] + d) / dp;
}
int Cell::distance(
const Point & point, const Vector & direction, double * distance)
{
if (volume < 0) {
*distance = -1.;
return -1;
}
/* Locate the closest face */
const int positive[] = { 0, 2, 3, 6, 8 };
const int negative[] = { 1, 4, 5, 7, 8 };
const int * iface = faces[8].has_on_positive_side(point) ?
positive : negative;
double distance_ = DBL_MAX;
int index = -1;
for (int ii = 0; ii < 5; ii++) {
const int i = iface[ii];
const double di = distance_to_face(
point, direction, faces[i]);
if ((di < DBL_EPSILON) || (di == DBL_MAX))
continue;
else if (di < distance_) {
distance_ = di;
index = i;
}
}
if (index < 0) {
*distance = -1.;
return -1;
} else {
*distance = distance_;
}
/* Locate the next volume */
if (index == 8) return volume;
int ix, iy, iz;
volume_to_index(volume, &ix, &iy, &iz);
if (index < 2) {
if (iz == 0) iz = 1;
else iz = -1;
} else if (index == 2) {
if (--iy < 0) iz = -1;
} else if (index == 3) {
if (++ix >= gInfo.nx - 1) iz = -1;
} else if (index == 4) {
if (++iy >= gInfo.ny - 1) iz = -1;
} else if (index == 5) {
if (--ix < 0) iz = -1;
} else {
if (iz == 1) iz = 0;
else iz = -1;
}
return index_to_volume(ix, iy, iz);
}
/* Build the mesh from a topography file */
static void mesh_create(const char * filename, int period)
{
/* Load the topography file */
downsampler_map_load(&gMap, filename, period);
turtle_map_load(&gGeoid, GEOMETRY_GEOID);
/* Set the top altitude */
if (strstr(filename, "tianshan") != NULL) {
gZTop = GEOMETRY_ZMAX_TIANSHAN;
} else {
gZTop = GEOMETRY_ZMAX_PDD;
}
/* Get the vertical */
turtle_map_meta(gMap, &gInfo, NULL);
double x0 = 0.5 * (gInfo.x[0] + gInfo.x[1]);
double y0 = 0.5 * (gInfo.y[0] + gInfo.y[1]);
const struct turtle_projection * p = turtle_map_projection(gMap);
if (p) {
const double xx = x0;
const double yy = y0;
turtle_projection_unproject(p, xx, yy, &y0, &x0);
}
double n[3];
turtle_ecef_from_horizontal(y0, x0, 0., 90., n);
gVertical = Vector(n[0], n[1], n[2]);
}
static int mesh_volume_at(const double position[3])
{
double latitude, longitude, altitude;
turtle_ecef_to_geodetic(position, &latitude, &longitude, &altitude);
double x, y, z;
const struct turtle_projection * p = turtle_map_projection(gMap);
if (p != NULL) {
turtle_projection_project(p, latitude, longitude, &x, &y);
} else {
x = longitude;
y = latitude;
}
int checkMap;
turtle_map_elevation(gMap, x, y, &z, &checkMap);
if (checkMap == 0) {
return GEOMETRY_MEDIUM_VOID;
}
double undulation;
turtle_map_elevation(gGeoid, longitude, latitude, &undulation, NULL);
z += undulation;
int ix, iy, iz;
const double dx = (gInfo.x[1] - gInfo.x[0]) / (gInfo.nx - 1);
const double dy = (gInfo.y[1] - gInfo.y[0]) / (gInfo.ny - 1);
ix = (int)((x - gInfo.x[0]) / dx);
if ((ix < 0) || (ix >= gInfo.nx)) return -1;
iy = (int)((y - gInfo.y[0]) / dy);
if ((iy < 0) || (iy >= gInfo.ny)) return -1;
iz = (altitude > z) ? 1 : 0;
Point r(position[0], position[1], position[2]);
int volume = index_to_volume(ix, iy, iz);
gCell.build(volume);
double d;
if (iz == 0) {
gCell.distance(r, gVertical, &d);
} else {
gCell.distance(r, -gVertical, &d);
}
if (d < 0) {
iz = !iz;
volume = index_to_volume(ix, iy, iz);
}
return volume;
}
static int mesh_distance_to(int volume, const double position[3],
const double direction[3], double * distance)
{
Point r(position[0], position[1], position[2]);
Vector u(direction[0], direction[1], direction[2]);
gCell.build(volume);
const int next = gCell.distance(r, u, distance);
if (*distance > 0)
*distance += 1E-06; /* Push out of the current cell */
return next;
}
static enum geometry_medium mesh_medium_at(int volume)
{
if (volume < 0) {
return GEOMETRY_MEDIUM_VOID;
} else {
int ix, iy, iz;
volume_to_index(volume, &ix, &iy, &iz);
return iz ? GEOMETRY_MEDIUM_AIR : GEOMETRY_MEDIUM_ROCK;
}
}
static void mesh_clear()
{
turtle_map_destroy(&gMap);
turtle_map_destroy(&gGeoid);
}
extern "C" void geometry_initialise_mesh(
struct geometry * geometry, const char * path, int period)
{
/* Create the Mesh */
mesh_create(path, period);
/* Initialise the corresponding geometry interface */
geometry->algorithm = "mesh";
if (strstr(path, "tianshan") != NULL)
geometry->location = GEOMETRY_LOCATION_TIANSHAN;
else
geometry->location = GEOMETRY_LOCATION_PDD;
geometry->volume_at = &mesh_volume_at;
geometry->distance_to = &mesh_distance_to;
geometry->medium_at = &mesh_medium_at;
geometry->clear = &mesh_clear;
}
| 29.438395 | 78 | 0.508857 | [
"mesh",
"geometry",
"vector",
"model"
] |
2c9b37bac29e930d41adb35b5e72989b1a2d5100 | 11,587 | cpp | C++ | main.cpp | Laakeri/kandi | 026c3c45c7242c08dd21541a6b06188e79cfa90e | [
"MIT"
] | null | null | null | main.cpp | Laakeri/kandi | 026c3c45c7242c08dd21541a6b06188e79cfa90e | [
"MIT"
] | null | null | null | main.cpp | Laakeri/kandi | 026c3c45c7242c08dd21541a6b06188e79cfa90e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define F first
#define S second
using namespace std;
const int N=20101010;
vector<int> g[N];
int n,m;
int vc_chosen=0;
int rem_n=0;
int rem_m=0;
int ch[N];
void ReadInput(){
string t;
cin>>t;
assert(t=="p");
cin>>t;
assert(t=="td");
cin>>n>>m;
assert(n<N&&m<N);
for (int i=0;i<m;i++){
int a,b;
cin>>a>>b;
assert(a>=1&&a<=n&&a!=b&&b>=1&&b<=n);
g[a].push_back(b);
g[b].push_back(a);
}
m=0;
for (int i=1;i<=n;i++){
sort(g[i].begin(), g[i].end());
g[i].erase(unique(g[i].begin(), g[i].end()), g[i].end());
m+=(int)g[i].size();
if (g[i].size()==0){
rem_n++;
}
}
assert(m%2==0);
m/=2;
}
void DelEdge(int a, int b){
for (int i = 0; i < (int)g[a].size(); i++){
if (g[a][i] == b){
swap(g[a][i], g[a].back());
g[a].pop_back();
return;
}
}
assert(false);
}
void Choose(int x){
assert(ch[x] == 0);
ch[x] = 1;
vc_chosen++;
rem_n++;
for (int nx:g[x]){
rem_m++;
DelEdge(nx, x);
if (g[nx].size()==0){
rem_n++;
}
}
g[x].clear();
}
void d12Reduktio(){
//cout<<"d12reduktio"<<endl;
queue<int> q;
for (int i=1;i<=n;i++){
if (g[i].size()<=2) {
q.push(i);
}
}
while (!q.empty()){
int x=q.front();
q.pop();
assert(g[x].size()<=2);
if (g[x].size()==0) continue;
if (g[x].size()==1){
int r=g[x][0];
vector<int> nbs=g[r];
Choose(r);
for (int nb:nbs){
if (g[nb].size()>0&&g[nb].size()<=2){
q.push(nb);
}
}
}
else{
assert(g[x].size()==2);
int a=g[x][0];
int b=g[x][1];
int f=0;
for (int na:g[a]){
if(na==b){
f=1;
break;
}
}
if (f){
vector<int> nba=g[a];
vector<int> nbb=g[b];
Choose(a);
Choose(b);
for (int nb:nba){
if (g[nb].size()>0&&g[nb].size()<=2){
q.push(nb);
}
}
for (int nb:nbb){
if (g[nb].size()>0&&g[nb].size()<=2){
q.push(nb);
}
}
}
else{
if (g[b].size() > g[a].size()){
swap(a, b);
}
int ff=0;
for (int nx:g[a]){
if (nx==x) ff++;
}
assert(ff==1);
for (int nx:g[b]){
if (nx==x) ff++;
}
assert(ff==2);
set<int> nba(g[a].begin(), g[a].end());
vector<int> add;
for (int nb:g[b]){
assert(nb!=a);
if (nb!=x&&nba.count(nb)==0){
add.push_back(nb);
}
}
for (int nb:g[b]){
DelEdge(nb, b);
rem_m++;
}
g[b].clear();
DelEdge(a, x);
rem_m++;
g[x].clear();
vc_chosen++;
rem_n+=2;
for (int y:add){
g[a].push_back(y);
g[y].push_back(a);
rem_m--;
}
for (int nb:g[a]){
if (g[nb].size()>0&&g[nb].size()<=2){
q.push(nb);
}
}
if (g[a].size()==0){
rem_n++;
}
}
}
}
//cout<<n-rem_n<<" "<<m-rem_m<<" "<<vc_chosen<<endl;
}
void assertConsistent(){
int remn=0;
int ml=0;
set<pair<int, int>> es;
for (int i=1;i<=n;i++){
if (g[i].empty()) remn++;
ml+=(int)g[i].size();
for (int nx:g[i]){
assert(es.count({i, nx})==0);
es.insert({i, nx});
}
}
for (auto e:es){
assert(es.count({e.S, e.F})==1);
}
ml/=2;
assert(remn==rem_n);
assert(ml+rem_m==m);
}
vector<pair<int, int>> maximalMatch(){
vector<pair<int, int>> match;
vector<int> u(n+1);
for (int i=1;i<=n;i++){
for (int nx:g[i]){
if (u[i]) break;
if (!u[nx]){
u[i]=1;
u[nx]=1;
match.push_back({i, nx});
break;
}
}
}
return match;
}
struct BipMatching{
vector<vector<int>> g_;
vector<int> a_, b_;
vector<pair<int, int> > m_;
int n1,n2;
vector<int> ma;
vector<int> layer;
int MapTo(int x){
int ap=lower_bound(a_.begin(), a_.end(), x)-a_.begin();
if (ap<(int)a_.size()&&a_[ap]==x) return ap;
int bp=lower_bound(b_.begin(), b_.end(), x)-b_.begin();
if (bp<(int)b_.size()&&b_[bp]==x) return bp+(int)a_.size();
assert(false);
}
int MapFrom(int x){
assert(x>=0);
if (x<(int)a_.size()){
return a_[x];
}
assert(x-(int)a_.size()<(int)b_.size());
return b_[x-(int)a_.size()];
}
BipMatching(const vector<int>& a, const vector<int>& b)
: g_((int)a.size() + (int)b.size()), a_(a), b_(b), n1(a.size()), n2(b.size()), ma(a.size()+b.size()), layer(a.size()+b.size()){
}
void AddEdge(int a, int b){
a=MapTo(a);
b=MapTo(b);
g_[a].push_back(b);
g_[b].push_back(a);
}
int agdfs(int i){
int la=layer[i];
layer[i]=0;
assert(la>0);
if (i<n1){
if (ma[i]==-1){
assert(la==1);
return 1;
}else{
assert(la>1);
if (layer[ma[i]]==la-1){
int ff=agdfs(ma[i]);
if (ff) return 1;
}
return 0;
}
}else{
for (int nx:g_[i]){
assert(nx<n1);
if (nx!=ma[i]&&layer[nx]==la-1){
int ff=agdfs(nx);
if (ff){
ma[i]=nx;
ma[nx]=i;
return 1;
}
}
}
return 0;
}
}
vector<pair<int, int> > Matching(){
int iter=0;
for (int i=0;i<n1+n2;i++){
ma[i]=-1;
}
vector<int> bfs(n1+n2);
int tofo=0;
while (1){
iter++;
for (int i=0;i<n1+n2;i++){
layer[i]=0;
}
int bfs1=0;
int bfs2=0;
for (int i=0;i<n1;i++){
if (ma[i]==-1){
layer[i]=1;
bfs[bfs2++]=i;
}
}
int f=0;
while (bfs1<bfs2){
int x=bfs[bfs1++];
assert(layer[x]>0);
assert(f==0);
if (x<n1){
for (int nx:g_[x]){
if (nx!=ma[x]&&layer[nx]==0){
layer[nx]=layer[x]+1;
bfs[bfs2++]=nx;
}
}
}else{
if (ma[x]==-1){
f=layer[x];
break;
}else{
if (layer[ma[x]]==0){
layer[ma[x]]=layer[x]+1;
bfs[bfs2++]=ma[x];
}
}
}
}
if (f==0) break;
for (int i=0;i<n1;i++){
assert(layer[i]==0||layer[i]%2==1);
}
for (int i=0;i<n2;i++){
assert(layer[i+n1]==0||layer[i+n1]%2==0);
}
int fo=0;
for (int i=0;i<n2;i++){
if (layer[i+n1]==f&&ma[i+n1]==-1){
fo+=agdfs(i+n1);
}
}
assert(fo>0);
tofo+=fo;
}
iter--;
assert(iter*iter<=4*(n1+n2));
assert(m_.size()==0);
for (int i=0;i<n1;i++){
if (ma[i]!=-1){
assert(ma[i]>=n1);
assert(ma[ma[i]]==i);
m_.push_back({i, ma[i]});
tofo--;
}
}
for (int i=0;i<n2;i++){
if (ma[i+n1]!=-1){
assert(ma[ma[i+n1]]==i+n1);
}
}
assert(tofo==0);
vector<pair<int, int>> ret;
for (auto e:m_){
ret.push_back({MapFrom(e.F), MapFrom(e.S)});
}
return ret;
}
void dfs2(vector<int>& u, int x, vector<int>& A){
if (u[x]) return;
u[x]=1;
A.push_back(MapFrom(x));
if (x<n1){
for (int nx:g_[x]){
if (nx!=ma[x]){
dfs2(u, nx, A);
}
}
}else{
assert(ma[x]!=-1);
dfs2(u, ma[x], A);
}
}
vector<int> Alternating(const vector<int>& sv) {
vector<int> u(n1+n2);
vector<int> A;
for (int x:sv){
x=MapTo(x);
assert(x<n1);
dfs2(u, x, A);
}
return A;
}
};
int lb,ub;
void kruunuredu(){
//cout<<"kruunureduktio"<<endl;
auto M1=maximalMatch();
lb=M1.size();
ub=lb*2;
vector<int> sta(n+1);
for (auto e:M1){
sta[e.F]=1;
sta[e.S]=1;
}
vector<int> I,NI;
for (int i=1;i<=n;i++){
if ((int)g[i].size()>0&&sta[i]==0){
I.push_back(i);
sta[i]=2;
}
}
for (int x:I){
assert(sta[x]==2);
for (int nx:g[x]){
assert(sta[nx]==1||sta[nx]==3);
if (sta[nx]==3) continue;
NI.push_back(nx);
sta[nx]=3;
}
}
sort(I.begin(), I.end());
sort(NI.begin(), NI.end());
BipMatching bm(I, NI);
for (int x:I){
for (int nx:g[x]){
assert(sta[x]==2&&sta[nx]==3);
bm.AddEdge(x, nx);
}
}
auto M2=bm.Matching();
lb=max(lb, (int)M2.size());
for (auto e:M2){
assert(sta[e.F]==2);
assert(sta[e.S]==3);
sta[e.F]=4;
}
vector<int> I0;
for (int x:I){
if (sta[x]==2){
I0.push_back(x);
}
}
vector<int> A=bm.Alternating(I0);
vector<int> H;
for (int x:A){
assert(sta[x]==2||sta[x]==3||sta[x]==4);
if (sta[x]==3){
H.push_back(x);
}
}
int olb=lb;
for (int x:H){
Choose(x);
lb--;
}
assert(olb*3>=n-rem_n);
//cout<<n-rem_n<<" "<<m-rem_m<<" "<<vc_chosen<<endl;
}
void nemhauserredu(){
//cout<<"nemhauser"<<endl;
vector<int> A,B;
for (int i=1;i<=n;i++){
if (!g[i].empty()){
A.push_back(i*2);
B.push_back(i*2+1);
}
}
BipMatching bm(A, B);
for (int i=1;i<=n;i++){
for (int nx:g[i]){
bm.AddEdge(i*2, nx*2+1);
}
}
auto M=bm.Matching();
//cout<<"M "<<M.size()<<endl;
vector<int> sta(n*2+2);
for (auto e:M){
assert(e.F%2==0&&e.S%2==1);
sta[e.F/2]=1;
}
vector<int> As;
for (int i=1;i<=n;i++){
if (!g[i].empty() && sta[i]==0){
As.push_back(i*2);
}
}
auto Aa=bm.Alternating(As);
for (int i=1;i<=n;i++){
sta[i]=0;
}
for (int i=1;i<=n;i++){
if (!g[i].empty()){
sta[i*2]=1;
}
}
for (int x:Aa){
if (x%2==1){
sta[x]=1;
}else{
sta[x]=0;
}
}
int vc=0;
for (int i=2;i<=n*2+1;i++){
if (sta[i]){
vc++;
}
}
//cout<<vc<<endl;
assert(vc==(int)M.size());
vector<int> H;
for (int i=1;i<=n;i++){
if (sta[i*2]==1&&sta[i*2+1]==1){
H.push_back(i);
}
}
lb=(int)M.size()/2;
for (int x:H){
lb--;
Choose(x);
}
//cout<<n-rem_n<<" "<<m-rem_m<<" "<<vc_chosen<<endl;
assert(lb*2+2>=n-rem_n);
if (rem_n > 0){
//cout<<rem_n<<endl;
}
}
class Timer {
private:
bool timing;
std::chrono::duration<double> elapsedTime;
std::chrono::time_point<std::chrono::steady_clock> startTime;
public:
Timer();
void start();
void stop();
std::chrono::duration<double> getTime();
};
Timer::Timer() {
timing = false;
elapsedTime = chrono::duration<double>(std::chrono::duration_values<double>::zero());
}
void Timer::start() {
if (timing) return;
timing = true;
startTime = chrono::steady_clock::now();
}
void Timer::stop() {
if (!timing) return;
timing = false;
chrono::time_point<std::chrono::steady_clock> endTime = chrono::steady_clock::now();
elapsedTime += (endTime - startTime);
}
chrono::duration<double> Timer::getTime() {
if (timing) {
stop();
chrono::duration<double> ret = elapsedTime;
start();
return ret;
}
else {
return elapsedTime;
}
}
int main(int argc, char** argv){
ios_base::sync_with_stdio(0);
cin.tie(0);
assert(argc==2);
string algo=string(argv[1]);
ReadInput();
//assertConsistent();
cout<<n<<" "<<m<<endl;
Timer tmr;
tmr.start();
if (algo=="kruunu"){
kruunuredu();
} else if(algo=="nt"){
nemhauserredu();
} else if(algo=="aste"){
d12Reduktio();
} else{
assert(0);
}
tmr.stop();
//assertConsistent();
cout<<rem_n<<" "<<rem_m<<" "<<vc_chosen<<endl;
cout<<"lb "<<lb<<endl;
cout<<"time "<<setprecision(3)<<fixed<<tmr.getTime().count()<<endl;
} | 19.840753 | 129 | 0.448175 | [
"vector"
] |
2c9dd9f3217bf3da91740655507513d538d2bde4 | 1,278 | cpp | C++ | secretsmanager/src/base64.cpp | definitelyNotFBI/utt | 1695e3a1f81848e19b042cdc4db9cf1d263c26a9 | [
"Apache-2.0"
] | 340 | 2018-08-27T16:30:45.000Z | 2022-03-28T14:31:44.000Z | secretsmanager/src/base64.cpp | definitelyNotFBI/utt | 1695e3a1f81848e19b042cdc4db9cf1d263c26a9 | [
"Apache-2.0"
] | 706 | 2018-09-02T17:50:32.000Z | 2022-03-31T13:03:15.000Z | secretsmanager/src/base64.cpp | glevkovich/concord-bft | a1b7b57472f5375230428d16c613a760b33233fa | [
"Apache-2.0"
] | 153 | 2018-08-29T05:37:25.000Z | 2022-03-23T14:08:45.000Z | // Concord
//
// Copyright (c) 2020 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the
// "License"). You may not use this product except in compliance with the
// Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyright
// notices and license terms. Your use of these subcomponents is subject to the
// terms and conditions of the subcomponent's license, as noted in the LICENSE
// file.
//
// This convenience header combines different block implementations.
#include "base64.h"
#include <cryptopp/cryptlib.h>
#include <cryptopp/base64.h>
namespace concord::secretsmanager {
std::string base64Enc(const std::vector<uint8_t>& cipher_text) {
CryptoPP::Base64Encoder encoder;
encoder.Put(cipher_text.data(), cipher_text.size());
encoder.MessageEnd();
uint64_t output_size = encoder.MaxRetrievable();
std::string output(output_size, '0');
encoder.Get((unsigned char*)output.data(), output.size());
return output;
}
std::vector<uint8_t> base64Dec(const std::string& input) {
std::vector<uint8_t> dec;
CryptoPP::StringSource ss(input, true, new CryptoPP::Base64Decoder(new CryptoPP::VectorSink(dec)));
return dec;
}
} // namespace concord::secretsmanager | 31.95 | 101 | 0.741002 | [
"vector"
] |
2c9f08853714de164c433081c721246b55a5605f | 5,466 | inl | C++ | include/vRt/Parts/Structures.inl | gitter-badger/vRt | a50b67d42a7d8eb0735016337ec7f482a2bde253 | [
"MIT"
] | null | null | null | include/vRt/Parts/Structures.inl | gitter-badger/vRt | a50b67d42a7d8eb0735016337ec7f482a2bde253 | [
"MIT"
] | null | null | null | include/vRt/Parts/Structures.inl | gitter-badger/vRt | a50b67d42a7d8eb0735016337ec7f482a2bde253 | [
"MIT"
] | null | null | null | #pragma once
#include "Headers.inl"
#include "StructuresLow.inl"
#include "StructuresDef.inl"
#include "Enums.inl"
#include "Handlers.inl"
namespace vt { // store in official namespace
// Description structs for make vRt objects
// Note: structures already have default headers for identifying
// in general that is conversion
struct VtInstanceConversionInfo {
VtStructureType sType = VT_STRUCTURE_TYPE_INSTANCE_CONVERSION_INFO;
const void* pNext = nullptr;
};
struct VtArtificalDeviceExtension {
VtStructureType sType = VT_STRUCTURE_TYPE_ARTIFICAL_DEVICE_EXTENSION;
const void* pNext = nullptr;
};
struct VtDeviceConversionInfo {
VtStructureType sType = VT_STRUCTURE_TYPE_DEVICE_CONVERSION_INFO;
const void* pNext = nullptr;
VtPhysicalDevice physicalDevice;
};
struct VtPhysicalDeviceConversionInfo {
VtStructureType sType = VT_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONVERSION_INFO;
const void* pNext = nullptr;
VtInstance instance;
};
struct VtRayTracingPipelineCreateInfo {
VtStructureType sType = VT_STRUCTURE_TYPE_RAY_TRACING_PIPELINE_CREATE_INFO;
const void* pNext = nullptr;
};
// use immutables in accelerator inputs
struct VtVertexInputCreateInfo {
VtStructureType sType = VT_STRUCTURE_TYPE_VERTEX_INPUT_CREATE_INFO;
const void* pNext = nullptr;
// all sources buffer
VkBuffer sourceBuffer = nullptr;
uint32_t primitiveCount = 0;
//uint32_t sourceBufferBinding;
// bindings regions
VtVertexRegionBinding * pBufferRegionBindings = nullptr;
VkBuffer bBufferRegionBindings = nullptr; // direct descriptor set bind
uint32_t bufferRegionCount = 0;
// accessor regions
VtVertexAccessor * pBufferAccessors = nullptr;
VkBuffer bBufferAccessors = nullptr; // direct descriptor set bind
uint32_t bufferAccessorCount = 0;
// attribute bindings (will stored in special patterned image buffer)
VtVertexAttributeBinding * pBufferAttributeBindings = nullptr;
VkBuffer bBufferAttributeBindings = nullptr; // direct descriptor set bind
uint32_t attributeBindingCount = 0;
VtVertexBufferView * pBufferViews = nullptr;
VkBuffer bBufferViews = nullptr; // direct descriptor set bind
uint32_t bufferViewCount = 0;
// where from must got vertex and indices
uint32_t verticeAccessor = 0;
uint32_t indiceAccessor = 0xFFFFFFFF; // has no indice accessor
// supported vertex topology
VtTopologyType topology = VT_TOPOLOGY_TYPE_TRIANGLES_LIST;
uint32_t materialID = 0; // material ID for identify in hit shader
};
// use as low level typed descriptor set
struct VtMaterialSetCreateInfo {
VtStructureType sType = VT_STRUCTURE_TYPE_MATERIAL_SET_CREATE_INFO;
const void* pNext = nullptr;
// immutable images (textures)
const VkDescriptorImageInfo* pImages = nullptr;
uint32_t imageCount;
// immutable samplers
const VkSampler* pSamplers = nullptr;
uint32_t samplerCount;
// virtual combined textures with samplers (better use in buffers)
const uint64_t* pImageSamplerCombinations = nullptr; // uint32 for images and next uint32 for sampler ID's
uint32_t imageSamplerCount;
// user defined materials
VkBuffer materialDescriptionsBuffer;
//const uint32_t* pMaterialDescriptionIDs = nullptr; // I don't remember why it need
uint32_t materialCount;
};
struct VtAcceleratorCreateInfo {
VtStructureType sType = VT_STRUCTURE_TYPE_ACCELERATOR_CREATE_INFO;
const void* pNext = nullptr;
// prefer to describe vertex input in accelerator for creation (and just more safer)
//const VtVertexInputCreateInfo * pVertexInputs = nullptr;
const VtVertexInputSet * pVertexInputSets = nullptr;
uint32_t vertexInputCount = 0;
};
// custom (unified) object create info, exclusive for vRt ray tracing system, and based on classic Satellite objects
// bound in device space
struct VtDeviceBufferCreateInfo {
VtStructureType sType = VT_STRUCTURE_TYPE_DEVICE_BUFFER_CREATE_INFO;
const void* pNext = nullptr;
VkBufferUsageFlags usageFlag = VK_BUFFER_USAGE_STORAGE_BUFFER_BIT | VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT | VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT | VK_BUFFER_USAGE_TRANSFER_SRC_BIT;
VkDeviceSize bufferSize = sizeof(uint32_t);
VkFormat format = VK_FORMAT_UNDEFINED;
uint32_t familyIndex = 0;
};
struct VtDeviceImageCreateInfo {
VtStructureType sType = VT_STRUCTURE_TYPE_DEVICE_IMAGE_CREATE_INFO;
const void* pNext = nullptr;
VkImageViewType imageViewType = VkImageViewType::VK_IMAGE_VIEW_TYPE_2D;
VkImageLayout layout = VkImageLayout::VK_IMAGE_LAYOUT_GENERAL;
VkExtent3D size = {1, 1, 1};
VkImageUsageFlags usage = VkImageUsageFlagBits::VK_IMAGE_USAGE_STORAGE_BIT | VkImageUsageFlagBits::VK_IMAGE_USAGE_SAMPLED_BIT | VkImageUsageFlagBits::VK_IMAGE_USAGE_TRANSFER_DST_BIT | VkImageUsageFlagBits::VK_IMAGE_USAGE_TRANSFER_SRC_BIT;
VkFormat format = VK_FORMAT_R32G32B32A32_SFLOAT;
uint32_t mipLevels = 1;
uint32_t familyIndex = 0;
};
};
| 38.765957 | 246 | 0.716795 | [
"object"
] |
2cad83bec43dc3c0d65350db5aaf485a4489943e | 2,083 | cpp | C++ | depth first search/130. Surrounded Regions.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | 1 | 2021-04-08T10:33:48.000Z | 2021-04-08T10:33:48.000Z | depth first search/130. Surrounded Regions.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | null | null | null | depth first search/130. Surrounded Regions.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | 1 | 2021-02-23T05:58:58.000Z | 2021-02-23T05:58:58.000Z | Given an m x n matrix board containing 'X' and 'O', capture all regions surrounded by 'X'.
A region is captured by flipping all 'O's into 'X's in that surrounded region.
Example 1:
Input: board = [["X","X","X","X"],["X","O","O","X"],["X","X","O","X"],["X","O","X","X"]]
Output: [["X","X","X","X"],["X","X","X","X"],["X","X","X","X"],["X","O","X","X"]]
Explanation: Surrounded regions should not be on the border, which means that any 'O' on the border of the board are not flipped to 'X'. Any 'O' that is not on the border and it is not connected to an 'O' on the border will be flipped to 'X'. Two cells are connected if they are adjacent cells connected horizontally or vertically.
class Solution {
public:
void DFS(vector<vector<char>>& board, int i, int j, int m, int n){
if((i < 0 or j < 0 or i >= m or j >= n) or board[i][j] != 'O' ){
return;
}
board[i][j] = '#';
DFS(board, i - 1, j, m, n);
DFS(board, i + 1, j, m, n);
DFS(board, i, j - 1, m, n);
DFS(board, i, j + 1, m, n);
return;
}
void solve(vector<vector<char>>& board) {
int m = board.size();
if(m == 0) {
return;
}
int n = board[0].size();
for(int i = 0; i < m; i++){
if(board[i][0] == 'O'){
DFS(board, i, 0, m, n);
}
if(board[i][n - 1] == 'O'){
DFS(board, i, n - 1, m, n);
}
}
for(int j = 0; j < n; j++){
if(board[0][j] == 'O'){
DFS(board, 0, j, m, n);
}
if(board[m - 1][j] == 'O'){
DFS(board, m - 1, j, m, n);
}
}
for(int i = 0; i < m; i++){
for(int j = 0; j < n; j++){
if(board[i][j] == 'O'){
board[i][j] = 'X';
}
else if(board[i][j] == '#'){
board[i][j] = 'O';
}
}
}
}
};
| 32.546875 | 331 | 0.402784 | [
"vector"
] |
2cadc96327511af72ad1d52a9368f7163ec31b62 | 99 | cpp | C++ | coding/merge_intervals/starter.cpp | Arijit1000/tech-interview-questions | 885717a9a0625d3a825a1030476c9c7806170a92 | [
"MIT"
] | 14 | 2022-02-08T17:29:29.000Z | 2022-03-27T17:22:14.000Z | coding/merge_intervals/starter.cpp | Arijit1000/tech-interview-questions | 885717a9a0625d3a825a1030476c9c7806170a92 | [
"MIT"
] | 18 | 2022-01-27T17:37:26.000Z | 2022-03-29T15:16:18.000Z | coding/merge_intervals/starter.cpp | Arijit1000/tech-interview-questions | 885717a9a0625d3a825a1030476c9c7806170a92 | [
"MIT"
] | 9 | 2022-02-08T16:03:10.000Z | 2022-03-19T03:26:30.000Z | class Solution {
public:
vector<vector<int>> merge(vector<vector<int>>& intervals) {
}
};
| 14.142857 | 63 | 0.636364 | [
"vector"
] |
2cb260d8c79f59054c9e66b4a92c47a1f629696e | 5,213 | cc | C++ | src/vbucketmap.cc | daverigby/ep-engine | b83769c89eec9cae396737cdbc11510b69514dbb | [
"Apache-2.0"
] | null | null | null | src/vbucketmap.cc | daverigby/ep-engine | b83769c89eec9cae396737cdbc11510b69514dbb | [
"Apache-2.0"
] | null | null | null | src/vbucketmap.cc | daverigby/ep-engine | b83769c89eec9cae396737cdbc11510b69514dbb | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "config.h"
#include <platform/make_unique.h>
#include <vector>
#include "kv_bucket_iface.h"
#include "ep_engine.h"
#include "vbucketmap.h"
VBucketMap::VBucketMap(Configuration& config, KVBucket& store)
: size(config.getMaxVbuckets()) {
WorkLoadPolicy &workload = store.getEPEngine().getWorkLoadPolicy();
for (size_t shardId = 0; shardId < workload.getNumShards(); shardId++) {
shards.push_back(std::make_unique<KVShard>(shardId, store));
}
config.addValueChangedListener("hlc_drift_ahead_threshold_us",
new VBucketConfigChangeListener(*this));
config.addValueChangedListener("hlc_drift_behind_threshold_us",
new VBucketConfigChangeListener(*this));
}
RCPtr<VBucket> VBucketMap::getBucket(id_type id) const {
static RCPtr<VBucket> emptyVBucket;
if (id < size) {
return getShardByVbId(id)->getBucket(id);
} else {
return emptyVBucket;
}
}
ENGINE_ERROR_CODE VBucketMap::addBucket(const RCPtr<VBucket> &b) {
if (b->getId() < size) {
getShardByVbId(b->getId())->setBucket(b);
LOG(EXTENSION_LOG_INFO, "Mapped new vbucket %d in state %s",
b->getId(), VBucket::toString(b->getState()));
return ENGINE_SUCCESS;
}
LOG(EXTENSION_LOG_WARNING,
"Cannot create vb %" PRIu16", max vbuckets is %" PRIu16, b->getId(),
size);
return ENGINE_ERANGE;
}
void VBucketMap::removeBucket(id_type id) {
if (id < size) {
// Theoretically, this could be off slightly. In
// practice, this happens only on dead vbuckets.
getShardByVbId(id)->resetBucket(id);
}
}
std::vector<VBucketMap::id_type> VBucketMap::getBuckets(void) const {
std::vector<id_type> rv;
for (id_type i = 0; i < size; ++i) {
RCPtr<VBucket> b(getBucket(i));
if (b) {
rv.push_back(b->getId());
}
}
return rv;
}
std::vector<VBucketMap::id_type> VBucketMap::getBucketsSortedByState(void) const {
std::vector<id_type> rv;
for (int state = vbucket_state_active;
state <= vbucket_state_dead; ++state) {
for (size_t i = 0; i < size; ++i) {
RCPtr<VBucket> b = getBucket(i);
if (b && b->getState() == state) {
rv.push_back(b->getId());
}
}
}
return rv;
}
std::vector<std::pair<VBucketMap::id_type, size_t> >
VBucketMap::getActiveVBucketsSortedByChkMgrMem(void) const {
std::vector<std::pair<id_type, size_t> > rv;
for (id_type i = 0; i < size; ++i) {
RCPtr<VBucket> b = getBucket(i);
if (b && b->getState() == vbucket_state_active) {
rv.push_back(std::make_pair(b->getId(), b->getChkMgrMemUsage()));
}
}
struct SortCtx {
static bool compareSecond(std::pair<id_type, size_t> a,
std::pair<id_type, size_t> b) {
return (a.second < b.second);
}
};
std::sort(rv.begin(), rv.end(), SortCtx::compareSecond);
return rv;
}
void VBucketMap::addBuckets(const std::vector<VBucket*> &newBuckets) {
std::vector<VBucket*>::const_iterator it;
for (it = newBuckets.begin(); it != newBuckets.end(); ++it) {
RCPtr<VBucket> v(*it);
addBucket(v);
}
}
KVShard* VBucketMap::getShardByVbId(id_type id) const {
return shards[id % shards.size()].get();
}
KVShard* VBucketMap::getShard(KVShard::id_type shardId) const {
return shards[shardId].get();
}
size_t VBucketMap::getNumShards() const {
return shards.size();
}
void VBucketMap::setHLCDriftAheadThreshold(std::chrono::microseconds threshold) {
for (id_type id = 0; id < size; id++) {
auto vb = getBucket(id);
if (vb) {
vb->setHLCDriftAheadThreshold(threshold);
}
}
}
void VBucketMap::setHLCDriftBehindThreshold(std::chrono::microseconds threshold) {
for (id_type id = 0; id < size; id++) {
auto vb = getBucket(id);
if (vb) {
vb->setHLCDriftBehindThreshold(threshold);
}
}
}
void VBucketMap::VBucketConfigChangeListener::sizeValueChanged(const std::string &key,
size_t value) {
if (key == "hlc_drift_ahead_threshold_us") {
map.setHLCDriftAheadThreshold(std::chrono::microseconds(value));
} else if (key == "hlc_drift_behind_threshold_us") {
map.setHLCDriftBehindThreshold(std::chrono::microseconds(value));
}
}
| 31.786585 | 86 | 0.621331 | [
"vector"
] |
2cb5911ffe8c61546b05e3357918a96cca36c151 | 8,745 | cpp | C++ | src/option.cpp | stkchp/pxtnplay | 349f2bd4af75f91c5158fab1bce277cbeb025987 | [
"MIT"
] | 27 | 2016-10-23T16:51:37.000Z | 2022-01-25T21:42:59.000Z | src/option.cpp | stkchp/pxtnplay | 349f2bd4af75f91c5158fab1bce277cbeb025987 | [
"MIT"
] | 1 | 2017-03-30T10:15:11.000Z | 2017-04-10T13:57:27.000Z | src/option.cpp | stkchp/pxtnplay | 349f2bd4af75f91c5158fab1bce277cbeb025987 | [
"MIT"
] | 1 | 2017-02-18T06:40:38.000Z | 2017-02-18T06:40:38.000Z | #include <algorithm>
#include <cstdint>
#include <iostream>
#include <limits>
#include <regex>
#include <sstream>
#include <string>
#include <getopt.h>
#include "option.h"
#define GETOPT_LONG_INDEX (0x100)
//
// Utility functions
//
namespace
{
bool parseBool(const std::string &in)
{
if (in == "true" || in == "1") {
return true;
}
return false;
}
unsigned long parseInteger(const std::string &in)
{
static const char uint_txt[] = R"([1-9][0-9]*)";
static std::regex uint_reg(uint_txt);
std::smatch match;
if (std::regex_match(in, match, uint_reg)) {
unsigned long ret;
std::stringstream(match[0].str()) >> ret;
return ret;
} else {
return 0;
}
}
bool validateInteger(const std::string &in, const std::string &limit)
{
auto t = parseInteger(in);
decltype(t) b_s = 0;
decltype(t) c_s = 0;
std::string s = "";
bool range = false;
for (auto it = limit.begin(); it != limit.end(); ++it) {
if (std::isdigit(*it)) {
s += *it;
} else {
b_s = c_s;
c_s = parseInteger(s);
s = "";
if (*it == ',') {
if (range) {
if (b_s <= t && t <= c_s) return true;
} else {
if (t == c_s) return true;
}
range = false;
} else if (*it == '-') {
range = true;
} else {
// not support format
return false;
}
}
}
b_s = c_s;
c_s = parseInteger(s);
if (range) {
if (b_s <= t && t <= c_s) return true;
} else {
if (t == c_s) return true;
}
return false;
}
}
//
// pxtnplay::option
//
namespace pxtnplay
{
namespace option
{
ppElement make_element(char _sopt, std::string &_lopt, std::string &_limit,
std::string &_type, bool _config)
{
ppElement element;
element.sopt = _sopt;
element.lopt = _lopt;
element.limit = _limit;
element.type = _type;
element.config = _config;
return element;
}
void ppOption::_appendHelp(std::string &str)
{
_help += str;
_help += "\n";
}
bool ppOption::_set(const char *lopt, const char *data, std::uint8_t priority)
{
std::string _data(data);
auto it = _m_lopt.find(lopt);
if (it == _m_lopt.end()) return false;
auto index = it->second;
auto &v = _element.at(index);
if (v.type == "int") {
// if limit exist, check value.
if (v.limit.size() > 0 && !validateInteger(_data, v.limit)) {
// print error and exit
std::cerr << "Error: '" << v.lopt << "' option must be " << v.limit << "."
<< std::endl;
return false;
}
}
_m_data.insert(
std::pair<size_t, pair_data_t>(index, pair_data_t(priority, data)));
return true;
}
bool ppOption::get(const char *name, bool &values)
{
auto it = _m_lopt.find(name);
if (it == _m_lopt.end()) return false;
auto index = it->second;
if (_element.at(index).type != "bool") return false;
std::string result;
if (!get(name, result)) return false;
values = parseBool(result);
return true;
}
bool ppOption::get(const char *name, unsigned long &values)
{
auto it = _m_lopt.find(name);
if (it == _m_lopt.end()) return false;
auto index = it->second;
if (_element.at(index).type != "int") return false;
std::string result;
if (!get(name, result)) return false;
values = parseInteger(result);
return true;
}
bool ppOption::get(const char *name, std::string &values)
{
std::vector<std::string> tmp;
if (!gets(name, tmp)) return false;
if (tmp.size() == 0) return false;
values = tmp.at(0);
return true;
}
bool ppOption::gets(const char *name, std::vector<std::string> &values)
{
auto it = _m_lopt.find(name);
if (it == _m_lopt.end()) return false;
auto index = it->second;
auto range = _m_data.equal_range(index);
std::vector<pair_data_t> tmp;
// get pair matching key
std::for_each(range.first, range.second,
[&tmp](const std::pair<size_t, pair_data_t> &x) {
tmp.push_back(x.second);
});
std::sort(
tmp.begin(), tmp.end(), [](const pair_data_t &a, const pair_data_t &b) {
return b.first == a.first ? b.second > a.second : b.first < a.first;
});
for (auto &v : tmp) {
values.push_back(v.second);
}
return true;
}
std::string ppOption::_makeShortOptions()
{
std::string s;
for (auto v : _element) {
if (v.sopt == 0) continue;
s += v.sopt;
if (v.type == "bool") continue;
s += ":";
}
return s;
}
void ppOption::_makeLongOptions(std::vector<::option> &values)
{
for (size_t i = 0; i < _element.size(); i++) {
::option opt = { // please see getopt.h
_element[i].lopt.c_str(), //
_element[i].type == "bool" ? 0 : 1, //
nullptr, //
static_cast<int>(i + GETOPT_LONG_INDEX)};
values.push_back(opt);
}
::option opt = {nullptr, 0, nullptr, 0};
values.push_back(opt);
}
void ppOption::parseHelp(const char *str)
{
// regex format
// clang-format off
static const char r_str[] =
R"((^[ \t]*(-([[:alnum:]])[ \t]+|())--([a-zA-Z0-9\-_]+)[^\(#]*(\(([^\)]+)\)|())[^\(#]*))"
R"(#[ \t]*([\w]+)[ \t]*<([^>]*)>[ \t]*<([0-9]+)>.*$)";
// clang-format on
std::regex reg(r_str);
std::smatch match;
std::istringstream iss(str);
for (std::string line; std::getline(iss, line);) {
if (std::regex_match(line, match, reg)) {
// save to help
_help += match[1].str();
_help += "\n";
size_t index = _element.size();
char sopt = 0;
auto lopt = match[5].str();
auto limit = match[7].str();
auto opttype = match[9].str();
if (match[3].str().size() > 0) sopt = match[3].str().at(0);
if (opttype != "bool" && opttype != "int") {
opttype = "string";
}
_element.push_back(
// add option element
make_element(sopt, // short option
lopt, // long option
limit, // value limitation
opttype, // opttype(bool,int,string)
parseBool(match[11].str()) // read from config?
));
// update index map
_m_lopt.insert(pair_index_t(match[5].str(), index));
if (match[3].str().size() > 0)
_m_sopt.insert(pair_index_t(match[3].str(), index));
// set default value
_set(_element.at(index).lopt.c_str(), match[10].str().c_str(), 0);
} else {
// save to help
_help += line;
_help += "\n";
}
}
}
bool ppOption::parseCommand(int argc, char *argv[])
{
// parsing argument
std::string short_options = _makeShortOptions();
std::vector<::option> long_options;
_makeLongOptions(long_options);
int c, option_index;
while ((c = getopt_long(argc, argv, short_options.c_str(),
long_options.data(), &option_index)) != -1) {
size_t index = std::numeric_limits<size_t>::max();
if (c < GETOPT_LONG_INDEX) {
std::string _c("");
_c += (char)(c & 0xFF);
std::string sopt(_c);
auto it = _m_sopt.find(sopt);
if (it == _m_sopt.end()) continue;
index = it->second;
} else {
index = c - GETOPT_LONG_INDEX;
}
if (index >= _element.size()) return false;
if (_element.at(index).type == "bool") {
if (!_set(_element.at(index).lopt.c_str(), "true", 255)) return false;
} else {
if (optarg != nullptr) {
if (!_set(_element.at(index).lopt.c_str(), optarg, 255)) return false;
}
}
}
if (optind < argc) {
_inputfile = argv[optind];
}
// for (auto v : _m_data) {
// std::cout << "---- data ----" << std::endl;
// std::cout << _element.at(v.first).lopt << std::endl //
// << " priority: " << (int)v.second.first << std::endl //
// << " data : " << v.second.second << std::endl;
// }
return true;
}
bool ppOption::parseConfig(const char *path, std::uint8_t priority)
{
return false;
}
const char *ppOption::dumpHelp() { return _help.c_str(); }
const std::string &ppOption::dumpInputfile() { return _inputfile; }
void ppOption::dumpOptions()
{
for (auto v : _element) {
std::cout << v.lopt << "(" << ((v.sopt) > 0 ? v.sopt : '\0') << "): ";
if (v.type == "bool") {
bool res = false;
get(v.lopt.c_str(), res);
std::cout << res << std::endl;
} else if (v.type == "int") {
unsigned long res = 0;
get(v.lopt.c_str(), res);
std::cout << res << std::endl;
} else {
std::string res("");
get(v.lopt.c_str(), res);
std::cout << res << std::endl;
}
}
}
}
}
| 25.12931 | 93 | 0.539508 | [
"vector"
] |
2cb8e154d288d4ba96721efc3599392879fea77c | 12,433 | cpp | C++ | Game/Source/SceneBattle.cpp | Hydeon-git/Project2_RPG | bed3f6ba412b4f533d6b8c9e401182259fcb43e5 | [
"MIT"
] | 4 | 2021-02-23T20:18:27.000Z | 2021-04-17T22:43:01.000Z | Game/Source/SceneBattle.cpp | Hydeon-git/Project2_RPG | bed3f6ba412b4f533d6b8c9e401182259fcb43e5 | [
"MIT"
] | 1 | 2021-02-25T11:10:11.000Z | 2021-02-25T11:10:11.000Z | Game/Source/SceneBattle.cpp | Hydeon-git/Project2_RPG | bed3f6ba412b4f533d6b8c9e401182259fcb43e5 | [
"MIT"
] | null | null | null | #include <string>
#include "SceneBattle.h"
#include "App.h"
#include "Audio.h"
#include "Input.h"
#include "Textures.h"
#include "Render.h"
#include "Window.h"
#include "Scene.h"
#include "Player.h"
#include "Enemy.h"
#include "FlyingEnemy.h"
#include "SceneWin.h"
#include "SceneLose.h"
#include "FadeToBlack.h"
#include "GuiButton.h"
#include "GuiSlider.h"
#include "GuiCheckBox.h"
#include "Font.h"
#include "Map.h"
#include "EntityManager.h"
#include "Player.h"
#include "Enemy1.h"
#include "Enemy2.h"
#include "Enemy3.h"
#include "NPC5.h"
#include "Defs.h"
#include "Log.h"
SceneBattle::SceneBattle() : Module()
{
name.Create("SceneBattle");
}
SceneBattle::~SceneBattle()
{
}
bool SceneBattle::Awake(pugi::xml_node& node)
{
fullscreenRect = new SDL_Rect{ 0, 0, 1280, 720 };
return true;
}
bool SceneBattle::Start()
{
bool ret = true;
if (this->active == true)
{
LOG("Loading background assets");
player = (Player*)app->entityManager->CreateEntity(EntityType::PLAYER);
npc5 = (NPC5*)app->entityManager->CreateEntity(EntityType::NPC5);
enemy1 = (Enemy1*)app->entityManager->CreateEntity(EntityType::Enemy1);
enemy2 = (Enemy2*)app->entityManager->CreateEntity(EntityType::Enemy2);
enemy3 = (Enemy3*)app->entityManager->CreateEntity(EntityType::Enemy3);
player->Start();
npc5->Start();
// Enemy Central
enemy1->Start();
// Enemy Up
enemy2->Start();
// Enemy Down
enemy3->Start();
// Counters
heroineCounter = 1;
mageCounter = 1;
enemyCounter = 0;
//introText = app->tex->Load("Assets/Textures/portada.png");
app->audio->PlayMusic("Assets/Audio/Music/battle_theme.ogg");
battletext = app->tex->Load("Assets/Textures/battleback.png");
app->sceneBattle->player->onBattle = true;
app->sceneLose->Disable();
app->sceneWin->Disable();
app->scene->Disable();
app->render->camera.x = 0;
app->render->camera.y = 0;
battleOn = true;
char lookupTable[] = { "! #$%&@()*+,-./0123456789:;<=>? ABCDEFGHIJKLMNOPQRSTUVWXYZ[ ]^_`abcdefghijklmnopqrstuvwxyz{|}~" };
whiteFont = app->font->Load("Assets/Textures/white_font_mini.png", lookupTable, 1);
goldFont = app->font->Load("Assets/Textures/gold_font_mini.png", lookupTable, 1);
hitEnemyFx = app->audio->LoadFx("Assets/Audio/Fx/hitEnemy.wav");
magicEnemyFx = app->audio->LoadFx("Assets/Audio/Fx/magic.wav");
btnHeroine = new GuiButton(1, { 25, 200, 60, 15 }, "Heroine");
btnHeroine->SetObserver(this);
btnMage = new GuiButton(2, { 25, 220, 60, 15 }, "Mage");
btnMage->SetObserver(this);
btnAttack = new GuiButton(3, { 140, 180, 60, 15 }, "Attack");
btnAttack->SetObserver(this);
btnMagic = new GuiButton(4, { 140, 200, 60, 15 }, "Magic");
btnMagic->SetObserver(this);
btnDefense = new GuiButton(5, { 140, 220, 60, 15 }, "Defense");
btnDefense->SetObserver(this);
btnEnemy1 = new GuiButton(6, { 300, 100, 16, 16 }, "");
btnEnemy1->SetObserver(this);
btnEnemy2 = new GuiButton(7, { 315, 80, 16, 16 }, "");
btnEnemy2->SetObserver(this);
btnEnemy3 = new GuiButton(8, { 315, 120, 16, 16 }, "");
btnEnemy3->SetObserver(this);
}
return ret;
}
bool SceneBattle::Update(float dt)
{
if (enemiesAlive == 0 || (playerDead && mageDead))
{
app->fadeToBlack->FadeToBlk(this, app->scene, 30);
battleOn = false;
battleEnd = true;
}
btnHeroine->Update(dt);
btnMage->Update(dt);
if (heroine || mage)
{
btnAttack->Update(dt);
btnMagic->Update(dt);
btnDefense->Update(dt);
}
if (attack || magic)
{
btnEnemy1->Update(dt);
btnEnemy2->Update(dt);
btnEnemy3->Update(dt);
}
if (player->playerHealth <= 0)
{
player->playerHealth = 0;
playerDead = true;
}
if (npc5->mageHealth <= 0)
{
npc5->mageHealth = 0;
mageDead = true;
}
if (heroineCounter == 0 && mageCounter == 0)
{
enemyCounter++;
if (enemiesAlive == 3)
{
if (enemyCounter == 150)
{
EnemyAttack();
}
if (enemyCounter == 250)
{
EnemyAttack();
}
if (enemyCounter == 350)
{
EnemyAttack();
enemyCounter = 0;
heroineCounter = 1;
mageCounter = 1;
}
}
else if (enemiesAlive == 2)
{
if (enemyCounter == 150)
{
EnemyAttack();
}
if (enemyCounter == 250)
{
EnemyAttack();
enemyCounter = 0;
heroineCounter = 1;
mageCounter = 1;
}
}
else if (enemiesAlive == 1)
{
if (enemyCounter == 150)
{
EnemyAttack();
enemyCounter = 0;
heroineCounter = 1;
mageCounter = 1;
}
}
}
return true;
}
// Update: draw background
bool SceneBattle::PostUpdate()
{
bool ret = true;
if (exit == true) ret = false;
app->render->DrawTexture(battletext, 0, 0, fullscreenRect, 3);
app->render->DrawRectangle({ 0, 510, 1280, 210 }, 0, 0, 0, 220, true, false);
app->render->DrawRectangle({ 10, 520, 330, 190 }, 100, 100, 200, 220, true, false);
app->render->DrawRectangle({ 350, 520, 370, 190 }, 100, 100, 200, 220, true, false);
app->render->DrawRectangle({ 730, 520, 540, 190 }, 100, 100, 200, 220, true, false);
app->font->DrawText(35, 180, goldFont, "NAME");
// Print Characters HP
app->font->DrawText(280, 180, goldFont, "HP");
// Heroine
sprintf_s(heroineHpText, 10, "%d/200", player->playerHealth);
app->font->DrawText(280, 200, whiteFont, heroineHpText);
// Heroine
sprintf_s(mageHpText, 10, "%d/120", npc5->mageHealth);
app->font->DrawText(280, 220, whiteFont, mageHpText);
// Print Enemies HP
// Enemy Central
if (!enemy1Dead)
{
sprintf_s(enemy1HpText, 10, "%d/100", enemy1->enemy1Health);
app->font->DrawText(320, 100, whiteFont, enemy1HpText);
}
// Enemy Up
if (!enemy2Dead)
{
sprintf_s(enemy2HpText, 10, "%d/150", enemy2->enemy2Health);
app->font->DrawText(335, 75, whiteFont, enemy2HpText);
}
// Enemy Down
if (!enemy3Dead)
{
sprintf_s(enemy3HpText, 10, "%d/50", enemy3->enemy3Health);
app->font->DrawText(335, 120, whiteFont, enemy3HpText);
}
btnHeroine->Draw();
btnMage->Draw();
if (heroine || mage)
{
btnAttack->Draw();
btnMagic->Draw();
btnDefense->Draw();
}
if (attack || magic)
{
btnEnemy1->Draw();
btnEnemy2->Draw();
btnEnemy3->Draw();
}
return ret;
}
bool SceneBattle::OnGuiMouseClickEvent(GuiControl* control)
{
switch (control->type)
{
case GuiControlType::BUTTON:
{
if ((control->id == 1) && (heroineCounter == 1) && !playerDead)
{
heroine = true;
mage = false;
btnHeroine->state = GuiControlState::DISABLED;
btnMage->state = GuiControlState::NORMAL;
}
else if ((control->id == 2) && (mageCounter == 1) && !mageDead)
{
mage = true;
heroine = false;
btnMage->state = GuiControlState::DISABLED;
btnHeroine->state = GuiControlState::NORMAL;
}
else if (control->id == 3)
{
attack = true;
magic = false;
btnAttack->state = GuiControlState::DISABLED;
btnMagic->state = GuiControlState::NORMAL;
btnDefense->state = GuiControlState::NORMAL;
}
else if (control->id == 4)
{
magic = true;
attack = false;
btnAttack->state = GuiControlState::NORMAL;
btnMagic->state = GuiControlState::DISABLED;
btnDefense->state = GuiControlState::NORMAL;
}
else if (control->id == 5)
{
if (heroine)
{
hDefense = true;
heroineCounter = 0;
}
else if (mage)
{
mDefense = true;
mageCounter = 0;
}
heroine = false;
mage = false;
attack = false;
magic = false;
}
else if (control->id == 6 && !enemy1Dead)
{
// Enemy Central
if (heroine)
{
if (attack)
{
enemy1->enemy1Health -= player->playerDmg;
attack = false;
app->audio->PlayFx(hitEnemyFx, 0);
heroineCounter = 0;
}
else if (magic)
{
enemy1->enemy1Health -= player->playerMagicDmg;
magic = false;
app->audio->PlayFx(magicEnemyFx, 0);
heroineCounter = 0;
}
heroine = false;
}
else if (mage)
{
if (attack)
{
enemy1->enemy1Health -= npc5->mageDmg;
attack = false;
app->audio->PlayFx(hitEnemyFx, 0);
mageCounter = 0;
}
else if (magic)
{
enemy1->enemy1Health -= npc5->mageMagicDmg;
magic = false;
app->audio->PlayFx(magicEnemyFx, 0);
mageCounter = 0;
}
mage = false;
}
// Resetting button states
btnAttack->state = GuiControlState::NORMAL;
btnMagic->state = GuiControlState::NORMAL;
if (enemy1->enemy1Health <= 0)
{
enemy1->enemy1Health = 0;
enemy1Dead = true;
enemiesAlive--;
}
}
else if (control->id == 7 && !enemy2Dead)
{
// Enemy Up
if (heroine)
{
if (attack)
{
enemy2->enemy2Health -= player->playerDmg;
attack = false;
app->audio->PlayFx(hitEnemyFx, 0);
heroineCounter = 0;
}
else if (magic)
{
enemy2->enemy2Health -= player->playerMagicDmg;
magic = false;
app->audio->PlayFx(magicEnemyFx, 0);
heroineCounter = 0;
}
heroine = false;
}
else if (mage)
{
if (attack)
{
enemy2->enemy2Health -= npc5->mageDmg;
attack = false;
app->audio->PlayFx(hitEnemyFx, 0);
mageCounter = 0;
}
else if (magic)
{
enemy2->enemy2Health -= npc5->mageMagicDmg;
magic = false;
app->audio->PlayFx(magicEnemyFx, 0);
mageCounter = 0;
}
mage = false;
}
// Resetting button states
btnAttack->state = GuiControlState::NORMAL;
btnMagic->state = GuiControlState::NORMAL;
if (enemy2->enemy2Health <= 0)
{
enemy2->enemy2Health = 0;
enemy2Dead = true;
enemiesAlive--;
}
}
else if (control->id == 8 && !enemy3Dead)
{
// Enemy Down
if (heroine)
{
if (attack)
{
enemy3->enemy3Health -= player->playerDmg;
attack = false;
app->audio->PlayFx(hitEnemyFx, 0);
heroineCounter = 0;
}
else if (magic)
{
enemy3->enemy3Health -= player->playerMagicDmg;
magic = false;
app->audio->PlayFx(magicEnemyFx, 0);
heroineCounter = 0;
}
heroine = false;
}
else if (mage)
{
if (attack)
{
enemy3->enemy3Health -= npc5->mageDmg;
attack = false;
app->audio->PlayFx(hitEnemyFx, 0);
mageCounter = 0;
}
else if (magic)
{
enemy3->enemy3Health -= npc5->mageMagicDmg;
magic = false;
app->audio->PlayFx(magicEnemyFx, 0);
mageCounter = 0;
}
mage = false;
}
// Resetting button states
btnAttack->state = GuiControlState::NORMAL;
btnMagic->state = GuiControlState::NORMAL;
if (enemy3->enemy3Health <= 0)
{
enemy3->enemy3Health = 0;
enemy3Dead = true;
enemiesAlive--;
}
}
}
default: break;
}
return true;
}
bool SceneBattle::CleanUp()
{
app->tex->UnLoad(battletext);
app->font->UnLoad(whiteFont);
app->font->UnLoad(goldFont);
app->entityManager->DestroyEntity(player);
app->entityManager->DestroyEntity(enemy1);
app->entityManager->DestroyEntity(enemy2);
app->entityManager->DestroyEntity(enemy3);
app->entityManager->DestroyEntity(npc5);
return true;
}
void SceneBattle::EnemyAttack()
{
int enemyPool = 1 + (rand() % 3);
int characterPool = 1 + (rand() % 2);
switch (enemyPool)
{
case 1:
{
// Enemy 1
switch (characterPool)
{
case 1:
{
if (hDefense)
{
player->playerHealth -= (enemy1->enemy1Dmg) / 2;
}
else
{
player->playerHealth -= enemy1->enemy1Dmg;
}
} break;
case 2:
{
if (mDefense)
{
npc5->mageHealth -= (enemy1->enemy1Dmg) / 2;
}
else
{
npc5->mageHealth -= enemy1->enemy1Dmg;
}
} break;
}
} break;
case 2:
{
// Enemy 2
switch (characterPool)
{
case 1:
{
if (hDefense)
{
player->playerHealth -= (enemy2->enemy2Dmg) / 2;
}
else
{
player->playerHealth -= enemy2->enemy2Dmg;
}
} break;
case 2:
{
if (mDefense)
{
npc5->mageHealth -= (enemy2->enemy2Dmg) / 2;
}
else
{
npc5->mageHealth -= enemy2->enemy2Dmg;
}
} break;
}
} break;
case 3:
{
// Enemy 3
switch (characterPool)
{
case 1:
{
if (hDefense)
{
player->playerHealth -= (enemy3->enemy3Dmg) / 2;
}
else
{
player->playerHealth -= enemy3->enemy3Dmg;
}
} break;
case 2:
{
if (mDefense)
{
npc5->mageHealth -= (enemy3->enemy3Dmg) / 2;
}
else
{
npc5->mageHealth -= enemy3->enemy3Dmg;
}
} break;
}
} break;
}
app->audio->PlayFx(hitEnemyFx, 0);
} | 20.825796 | 124 | 0.605566 | [
"render"
] |
2cb8ec386910c52aa052a085ff46b8a729684797 | 1,585 | hpp | C++ | Sources/Graph/edgeless.hpp | vigsterkr/netket | 1e187ae2b9d2aa3f2e53b09fe743e50763d04c9a | [
"Apache-2.0"
] | null | null | null | Sources/Graph/edgeless.hpp | vigsterkr/netket | 1e187ae2b9d2aa3f2e53b09fe743e50763d04c9a | [
"Apache-2.0"
] | null | null | null | Sources/Graph/edgeless.hpp | vigsterkr/netket | 1e187ae2b9d2aa3f2e53b09fe743e50763d04c9a | [
"Apache-2.0"
] | null | null | null | // Copyright 2018-2019 The Simons Foundation, 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
//
// 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 NETKET_EDGELESS_HPP
#define NETKET_EDGELESS_HPP
#include "abstract_graph.hpp"
namespace netket {
/**
Edgeless graph (only vertices without edges)
*/
class Edgeless : public AbstractGraph {
public:
using AbstractGraph::ColorMap;
using AbstractGraph::Edge;
private:
int n_sites_; ///< Total number of nodes in the graph
std::vector<std::vector<int>> automorphisms_;
std::vector<Edge> edges_;
ColorMap cmap_;
public:
Edgeless(int n_vertices);
int Nsites() const noexcept override;
int Size() const noexcept override;
std::vector<Edge> const &Edges() const noexcept override;
std::vector<std::vector<int>> AdjacencyList() const override;
const ColorMap &EdgeColors() const noexcept override;
std::vector<std::vector<int>> SymmetryTable() const override;
bool IsConnected() const noexcept override;
bool IsBipartite() const noexcept override;
};
} // namespace netket
#endif // NETKET_CUSTOM_GRAPH_HPP
| 30.480769 | 75 | 0.743849 | [
"vector"
] |
2cbd6506ec79702aac0183b2e097f3a814ddc8d7 | 9,457 | cpp | C++ | DT3Core/Scripting/ScriptingSoundReverb.cpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2016-01-27T13:17:18.000Z | 2019-03-19T09:18:25.000Z | DT3Core/Scripting/ScriptingSoundReverb.cpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3Core/Scripting/ScriptingSoundReverb.cpp | adderly/DT3 | e2605be091ec903d3582e182313837cbaf790857 | [
"MIT"
] | 3 | 2016-01-25T16:44:51.000Z | 2021-01-29T19:59:45.000Z | //==============================================================================
///
/// File: ScriptingSoundReverb.cpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE.txt', which is part of this source code package.
///
//==============================================================================
#include "DT3Core/Scripting/ScriptingSoundReverb.hpp"
#include "DT3Core/System/Factory.hpp"
#include "DT3Core/System/Profiler.hpp"
#include "DT3Core/Types/FileBuffer/ArchiveData.hpp"
#include "DT3Core/Types/FileBuffer/Archive.hpp"
#include "DT3Core/Types/Math/MoreMath.hpp"
//==============================================================================
//==============================================================================
namespace DT3 {
//==============================================================================
/// Register with object factory
//==============================================================================
IMPLEMENT_FACTORY_CREATION_SCRIPT(ScriptingSoundReverb,"Sound",NULL)
IMPLEMENT_PLUG_NODE(ScriptingSoundReverb)
IMPLEMENT_PLUG_INFO_INDEX(_sound_packet_in)
IMPLEMENT_PLUG_INFO_INDEX(_sound_packet_out)
IMPLEMENT_PLUG_INFO_INDEX(_delay)
IMPLEMENT_PLUG_INFO_INDEX(_reverb_gain)
IMPLEMENT_PLUG_INFO_INDEX(_output_gain)
//==============================================================================
//==============================================================================
BEGIN_IMPLEMENT_PLUGS(ScriptingSoundReverb)
PLUG_INIT(_sound_packet_in,"Sound_Packet_In")
.affects(PLUG_INFO_INDEX(_sound_packet_out))
.set_input(true)
.set_always_dirty(true);
PLUG_INIT(_sound_packet_out,"Sound_Packet_Out")
.set_single_output(true)
.set_output(true)
.set_always_dirty(true);
PLUG_INIT(_delay,"Delay")
.set_input(true);
PLUG_INIT(_reverb_gain,"Reverb_Gain")
.set_input(true);
PLUG_INIT(_output_gain,"Output_Gain")
.set_input(true);
END_IMPLEMENT_PLUGS
//==============================================================================
/// Standard class constructors/destructors
//==============================================================================
ScriptingSoundReverb::ScriptingSoundReverb (void)
: _sound_packet_in (PLUG_INFO_INDEX(_sound_packet_in)),
_sound_packet_out (PLUG_INFO_INDEX(_sound_packet_out)),
_delay (PLUG_INFO_INDEX(_delay), 1000),
_reverb_gain (PLUG_INFO_INDEX(_reverb_gain), 0.5F),
_output_gain (PLUG_INFO_INDEX(_output_gain), 0.5F),
_sample_index (0)
{
}
ScriptingSoundReverb::ScriptingSoundReverb (const ScriptingSoundReverb &rhs)
: ScriptingSoundBase (rhs),
_sound_packet_in (rhs._sound_packet_in),
_sound_packet_out (rhs._sound_packet_out),
_delay (rhs._delay),
_reverb_gain (rhs._reverb_gain),
_output_gain (rhs._output_gain),
_sample_index (0)
{
}
ScriptingSoundReverb & ScriptingSoundReverb::operator = (const ScriptingSoundReverb &rhs)
{
// Make sure we are not assigning the class to itself
if (&rhs != this) {
ScriptingSoundBase::operator = (rhs);
_sound_packet_in = rhs._sound_packet_in;
_sound_packet_out = rhs._sound_packet_out;
_delay = rhs._delay;
_reverb_gain = rhs._reverb_gain;
_output_gain = rhs._output_gain;
_sample_index = rhs._sample_index;
}
return (*this);
}
ScriptingSoundReverb::~ScriptingSoundReverb (void)
{
}
//==============================================================================
//==============================================================================
void ScriptingSoundReverb::initialize (void)
{
ScriptingSoundBase::initialize();
}
//==============================================================================
//==============================================================================
void ScriptingSoundReverb::archive (const std::shared_ptr<Archive> &archive)
{
ScriptingSoundBase::archive(archive);
archive->push_domain (class_id ());
*archive << ARCHIVE_PLUG(_delay, DATA_PERSISTENT | DATA_SETTABLE);
*archive << ARCHIVE_PLUG(_reverb_gain, DATA_PERSISTENT | DATA_SETTABLE);
*archive << ARCHIVE_PLUG(_output_gain, DATA_PERSISTENT | DATA_SETTABLE);
archive->pop_domain ();
}
//==============================================================================
//==============================================================================
DTboolean ScriptingSoundReverb::compute (const PlugBase *plug)
{
PROFILER(SOUND);
if (super_type::compute(plug)) return true;
if (plug == &_sound_packet_out) {
SoundPacket &sound_packet_in = _sound_packet_in.as_ref_no_compute();
SoundPacket &sound_packet_out = _sound_packet_out.as_ref_no_compute();
if (!_sound_packet_in.has_incoming_connection()) {
sound_packet_out.set_format(SoundResource::FORMAT_STEREO16);
sound_packet_out.set_num_bytes(0);
sound_packet_out.set_frequency(44100);
return true;
}
// This copies the buffer so no extra memory is needed
sound_packet_out = sound_packet_in;
if (sound_packet_in.format() == SoundResource::FORMAT_MONO16) {
sound_packet_out.set_format(sound_packet_in.format());
sound_packet_out.set_frequency(sound_packet_in.frequency());
sound_packet_out.set_num_bytes(sound_packet_in.num_bytes());
// Check if samples buffer needs resizing
if (_samples_left.size() != _delay) {
_samples_left.resize(_delay);
_sample_index = 0;
}
DTshort *data_in = (DTshort *) sound_packet_in.buffer();
DTshort *data_out = (DTshort *) sound_packet_out.buffer();
DTsize num_samples = sound_packet_in.num_samples();
DTint reverb_gain_int = UNIT_TO_10BIT_INT(_reverb_gain);
DTint output_gain_int = UNIT_TO_10BIT_INT(_output_gain);
for (DTuint s = 0; s < num_samples; ++s) {
DTint val = _samples_left[_sample_index];
DTshort fb = static_cast<DTshort>(REM_10BIT(CLAMP_PAD_10BIT(reverb_gain_int * val)));
_samples_left[_sample_index] = fb + (s >= num_samples ? 0 : data_in[s]);
_sample_index += 1;
if (_sample_index >= _samples_left.size())
_sample_index = 0;
data_out[s] = static_cast<DTshort>(REM_10BIT(CLAMP_PAD_10BIT(output_gain_int * val)));
}
} else if (sound_packet_in.format() == SoundResource::FORMAT_STEREO16) {
sound_packet_out.set_format(sound_packet_in.format());
sound_packet_out.set_frequency(sound_packet_in.frequency());
sound_packet_out.set_num_bytes(sound_packet_in.num_bytes());
// Check if samples buffer needs resizing
if (_samples_left.size() != _delay) {
_samples_left.resize(_delay);
_samples_right.resize(_delay);
_sample_index = 0;
}
DTshort *data_in = (DTshort *) sound_packet_in.buffer();
DTshort *data_out = (DTshort *) sound_packet_out.buffer();
DTsize num_samples = sound_packet_in.num_samples();
DTint reverb_gain_int = UNIT_TO_10BIT_INT(_reverb_gain);
DTint output_gain_int = UNIT_TO_10BIT_INT(_output_gain);
for (DTuint s = 0; s < num_samples; ++s) {
DTshort val = _samples_left[_sample_index];
DTshort fb = static_cast<DTshort>(REM_10BIT(CLAMP_PAD_10BIT(reverb_gain_int * val)));
_samples_left[_sample_index] = fb + (s >= num_samples ? 0 : (*data_in));
(*data_out) = static_cast<DTshort>(REM_10BIT(CLAMP_PAD_10BIT(output_gain_int * val)));
++data_out;
++data_in;
val = _samples_right[_sample_index];
fb = static_cast<DTshort>(REM_10BIT(CLAMP_PAD_10BIT(reverb_gain_int * val)));
_samples_right[_sample_index] = fb + (s >= num_samples ? 0 : (*data_in));
(*data_out) = static_cast<DTshort>(REM_10BIT(CLAMP_PAD_10BIT(output_gain_int * val)));
++data_out;
++data_in;
_sample_index += 1;
if (_sample_index >= _samples_left.size())
_sample_index = 0;
}
}
_sound_packet_out.set_clean();
return true;
}
return false;
}
//==============================================================================
//==============================================================================
} // DT3
| 37.379447 | 103 | 0.518029 | [
"object"
] |
2cc7855019e7985b1dc1143008d9dd68710078cd | 5,905 | cpp | C++ | lyricwidget.cpp | jjzhang166/doubanfm-qt | 199b55d379b6de3b70693c70fa433943dcf413bf | [
"MIT"
] | 425 | 2015-01-03T13:34:16.000Z | 2022-02-09T07:01:49.000Z | lyricwidget.cpp | jjzhang166/doubanfm-qt | 199b55d379b6de3b70693c70fa433943dcf413bf | [
"MIT"
] | 29 | 2015-01-06T15:40:09.000Z | 2018-01-10T01:22:29.000Z | lyricwidget.cpp | jjzhang166/doubanfm-qt | 199b55d379b6de3b70693c70fa433943dcf413bf | [
"MIT"
] | 108 | 2015-01-01T08:02:42.000Z | 2021-02-19T13:36:43.000Z | #include "lyricwidget.h"
#include "libs/doubanplayer.h"
#include <QVBoxLayout>
#include <QDebug>
#include <QPropertyAnimation>
#include <QDebug>
LyricWidget::LyricWidget(QWidget *parent) :
QWidget(parent), ui(new Ui_LyricWidget),
animWidget(nullptr),
firstShowing(false),
lyricGetter(new LyricGetter(this)),
isShowing(false), haveSearchedLyric(false), saveTick(0)
{
ui->setupUi(this);
ui->border->setText(QString("<font color='grey'>") + tr("No lyrics") + QString("</font>"));
ui->bg->lower();
connect(&DoubanPlayer::getInstance(), SIGNAL(positionChanged(qint64)),
this, SLOT(setTick(qint64)));
connect(lyricGetter, &LyricGetter::gotLyric, [this] (const QLyricList& lyric) {
this->setLyric(lyric);
});
connect(lyricGetter, &LyricGetter::gotLyricError, [this] (const QString&) {
this->clear();
});
connect(&DoubanPlayer::getInstance(), SIGNAL(currentSongChanged(DoubanFMSong)),
this, SLOT(setSong(DoubanFMSong)));
}
LyricWidget::~LyricWidget() {
if (animWidget) delete animWidget;
delete lyricGetter;
delete ui;
}
void LyricWidget::setLyric(const QLyricList &lyric) {
if (animWidget) delete animWidget;
animWidget = new QWidget(this);
animWidget->raise();
ui->border->raise();
QRect geo = this->geometry();
animWidget->setMinimumWidth(geo.width());
animWidget->setMaximumWidth(geo.width());
animWidget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
QVBoxLayout *vbox = new QVBoxLayout(animWidget);
vbox->setMargin(0);
vbox->setSpacing(0);
vbox->setContentsMargins(0, 0, 0, 0);
animWidget->setLayout(vbox);
labels.clear();
curInd = 0;
this->lyric = lyric;
firstShowing = false;
int widgetWidth = this->geometry().width();
int accuHeight = 0;
for (const QLyric& lyr : lyric) {
QLabel *label = new QLabel(animWidget);
QFont font("文泉驿微米黑", 11);
font.setStyleStrategy(QFont::PreferAntialias);
label->setFont(font);
label->setText(QString("<font color='grey'>") +
lyr.lyric + QString("</font>"));
label->setMaximumWidth(widgetWidth);
label->setMaximumWidth(widgetWidth);
label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
label->setWordWrap(true);
labels.append(label);
QRect fsize = label->fontMetrics().boundingRect(label->text());
int height = (widgetWidth + fsize.width()) / widgetWidth * fsize.height() + 15;
heights.append(height);
label->setMinimumHeight(height);
label->setMaximumHeight(height);
accuHeight += height;
animWidget->layout()->addWidget(label);
}
if (heights.size() > 0) {
animWidget->setGeometry(0, this->geometry().height() / 2 + heights[0],
this->geometry().width(), accuHeight);
}
animWidget->show();
ui->border->setText("");
}
void LyricWidget::setTick(qint64 tick) {
if (!isShowing) {
saveTick = tick;
return;
}
if (tick != 0) {
QTime time(0, (tick / 60000) % 60, (tick / 1000) % 60, tick % 1000);
setTime(time);
}
else
setTime(QTime(0, 0, 0, 0));
}
void LyricWidget::setTime(const QTime &time) {
if (lyric.size() == 0) return;
int befind = curInd;
if (time < lyric[curInd].time) {
for (int i = curInd - 1; i >= 0; -- i) {
if (lyric[i].time <= time && lyric[i + 1].time > time) {
curInd = i;
break;
}
}
}
else {
if (curInd == lyric.size() - 2 && time >= lyric[lyric.size() - 1].time)
curInd ++;
else if (curInd < lyric.size() - 2) {
for (int i = curInd; i < lyric.size(); ++ i) {
if (lyric[i].time > time) {
curInd = i > 0 ? i - 1 : 0;
break;
}
}
}
}
if (curInd == 0 && !firstShowing) firstShowing = true;
else if (curInd == befind) return;
QPropertyAnimation *anim = new QPropertyAnimation(animWidget, "geometry");
anim->setDuration(400);
anim->setStartValue(animWidget->geometry());
int accuHeight = 0;
for (int i = 0; i < curInd; ++ i) accuHeight += heights[i];
accuHeight += heights[curInd] / 2;
accuHeight = this->height() / 2 - accuHeight;
QRect endval(0, accuHeight, animWidget->width(), animWidget->height());
anim->setEndValue(endval);
anim->setEasingCurve(QEasingCurve::OutCubic);
labels[befind]->setText(labels[befind]->text().replace("white", "grey"));
connect(anim, &QPropertyAnimation::finished, [this] () {
labels[curInd]->setText(labels[curInd]->text().replace("grey", "white"));
});
anim->start(QPropertyAnimation::DeleteWhenStopped);
}
void LyricWidget::clear() {
if (animWidget) {
animWidget->hide();
delete animWidget;
animWidget = nullptr;
}
curInd = 0;
lyric.clear();
labels.clear();
heights.clear();
firstShowing = false;
ui->border->setText(QString("<font color='grey'>") + tr("No lyrics") + QString("</font>"));
}
void LyricWidget::mousePressEvent(QMouseEvent *event) {
if (event->button() == Qt::LeftButton) {
emit clicked();
}
}
void LyricWidget::setSong(const DoubanFMSong &song) {
this->clear();
if (isShowing) {
lyricGetter->getLyric(song);
this->haveSearchedLyric = true;
}
else {
this->saveCurrentSong = song;
this->haveSearchedLyric = false;
}
}
void LyricWidget::setShowing(bool s) {
isShowing = s;
if (s) {
if (!haveSearchedLyric) {
this->haveSearchedLyric = true;
lyricGetter->getLyric(saveCurrentSong);
}
else {
this->setTick(saveTick);
}
}
}
| 30.91623 | 95 | 0.58696 | [
"geometry"
] |
2ccc198ca56f802f1f777c246f235586976392aa | 9,333 | cc | C++ | google/cloud/spanner/bytes_test.cc | antfitch/google-cloud-cpp-spanner | 05a2e3ad3ee0ac96164013ce4d9cfce251059569 | [
"Apache-2.0"
] | null | null | null | google/cloud/spanner/bytes_test.cc | antfitch/google-cloud-cpp-spanner | 05a2e3ad3ee0ac96164013ce4d9cfce251059569 | [
"Apache-2.0"
] | null | null | null | google/cloud/spanner/bytes_test.cc | antfitch/google-cloud-cpp-spanner | 05a2e3ad3ee0ac96164013ce4d9cfce251059569 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "google/cloud/spanner/bytes.h"
#include "google/cloud/testing_util/assert_ok.h"
#include <gmock/gmock.h>
#include <cstdint>
#include <deque>
#include <limits>
#include <string>
#include <utility>
#include <vector>
namespace google {
namespace cloud {
namespace spanner {
inline namespace SPANNER_CLIENT_NS {
namespace {
using ::testing::HasSubstr;
TEST(Bytes, RoundTrip) {
char c = std::numeric_limits<char>::min();
std::string chars(1, c);
while (c != std::numeric_limits<char>::max()) {
chars.push_back(++c);
}
// Empty string.
std::string data;
Bytes bytes(data);
EXPECT_EQ("", internal::BytesToBase64(bytes));
EXPECT_EQ(data, bytes.get<std::string>());
// All 1-char strings.
data.resize(1);
for (auto c : chars) {
data[0] = c;
Bytes bytes(data);
EXPECT_EQ(4, internal::BytesToBase64(bytes).size());
EXPECT_EQ(data, bytes.get<std::string>());
}
// All 2-char strings.
data.resize(2);
for (auto c0 : chars) {
data[0] = c0;
for (auto c1 : chars) {
data[1] = c1;
Bytes bytes(data);
EXPECT_EQ(4, internal::BytesToBase64(bytes).size());
EXPECT_EQ(data, bytes.get<std::string>());
}
}
// Some 3-char strings.
data.resize(3);
for (auto c0 : {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'}) {
data[0] = c0;
for (auto c1 : chars) {
data[1] = c1;
for (auto c2 : chars) {
data[2] = c2;
Bytes bytes(data);
EXPECT_EQ(4, internal::BytesToBase64(bytes).size());
EXPECT_EQ(data, bytes.get<std::string>());
}
}
}
}
TEST(Bytes, LongerRoundTrip) {
std::vector<std::pair<std::string, std::string>> test_cases = {
{"abcd", "YWJjZA=="},
{"abcde", "YWJjZGU="},
{"abcdef", "YWJjZGVm"},
{"abcdefg", "YWJjZGVmZw=="},
{"abcdefgh", "YWJjZGVmZ2g="},
{"abcdefghi", "YWJjZGVmZ2hp"},
{"abcdefghij", "YWJjZGVmZ2hpag=="},
{"abcdefghijk", "YWJjZGVmZ2hpams="},
{"abcdefghijkl", "YWJjZGVmZ2hpamts"},
{"abcdefghijklm", "YWJjZGVmZ2hpamtsbQ=="},
{"abcdefghijklmn", "YWJjZGVmZ2hpamtsbW4="},
{"abcdefghijklmno", "YWJjZGVmZ2hpamtsbW5v"},
{"abcdefghijklmnop", "YWJjZGVmZ2hpamtsbW5vcA=="},
{"abcdefghijklmnopq", "YWJjZGVmZ2hpamtsbW5vcHE="},
{"abcdefghijklmnopqr", "YWJjZGVmZ2hpamtsbW5vcHFy"},
{"abcdefghijklmnopqrs", "YWJjZGVmZ2hpamtsbW5vcHFycw=="},
{"abcdefghijklmnopqrst", "YWJjZGVmZ2hpamtsbW5vcHFyc3Q="},
{"abcdefghijklmnopqrstu", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1"},
{"abcdefghijklmnopqrstuv", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dg=="},
{"abcdefghijklmnopqrstuvw", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnc="},
{"abcdefghijklmnopqrstuvwx", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4"},
{"abcdefghijklmnopqrstuvwxy", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eQ=="},
{"abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo="},
};
for (auto const& test_case : test_cases) {
Bytes bytes(test_case.first);
EXPECT_EQ(test_case.second, internal::BytesToBase64(bytes));
EXPECT_EQ(test_case.first, bytes.get<std::string>());
auto decoded = internal::BytesFromBase64(test_case.second);
EXPECT_STATUS_OK(decoded) << test_case.first;
EXPECT_EQ(test_case.first, decoded->get<std::string>());
EXPECT_EQ(bytes, *decoded);
}
}
TEST(Bytes, RFC4648TestVectors) {
// https://tools.ietf.org/html/rfc4648#section-10
std::vector<std::pair<std::string, std::string>> test_cases = {
{"", ""},
{"f", "Zg=="},
{"fo", "Zm8="},
{"foo", "Zm9v"},
{"foob", "Zm9vYg=="},
{"fooba", "Zm9vYmE="},
{"foobar", "Zm9vYmFy"},
};
for (auto const& test_case : test_cases) {
Bytes bytes(test_case.first);
EXPECT_EQ(test_case.second, internal::BytesToBase64(bytes));
EXPECT_EQ(test_case.first, bytes.get<std::string>());
auto decoded = internal::BytesFromBase64(test_case.second);
EXPECT_STATUS_OK(decoded) << test_case.first;
EXPECT_EQ(test_case.first, decoded->get<std::string>());
EXPECT_EQ(bytes, *decoded);
}
}
TEST(Bytes, WikiExample) {
// https://en.wikipedia.org/wiki/Base64#Examples
std::string const plain =
"Man is distinguished, not only by his reason, but by this singular "
"passion from other animals, which is a lust of the mind, that by a "
"perseverance of delight in the continued and indefatigable generation "
"of knowledge, exceeds the short vehemence of any carnal pleasure.";
std::string const coded =
"TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0"
"aGlzIHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1"
"c3Qgb2YgdGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0"
"aGUgY29udGludWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdl"
"LCBleGNlZWRzIHRoZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4"
"=";
Bytes bytes(plain);
EXPECT_EQ(coded, internal::BytesToBase64(bytes));
EXPECT_EQ(plain, bytes.get<std::string>());
auto decoded = internal::BytesFromBase64(coded);
EXPECT_STATUS_OK(decoded) << coded;
EXPECT_EQ(plain, decoded->get<std::string>());
EXPECT_EQ(bytes, *decoded);
}
TEST(Bytes, FromBase64Failures) {
// Bad lengths.
for (std::string const base64 : {"x", "xx", "xxx"}) {
auto decoded = internal::BytesFromBase64(base64);
EXPECT_FALSE(decoded.ok());
if (!decoded) {
EXPECT_THAT(decoded.status().message(), HasSubstr("Invalid base64"));
EXPECT_THAT(decoded.status().message(), HasSubstr("at offset 0"));
}
}
for (std::string const base64 : {"xxxxx", "xxxxxx", "xxxxxxx"}) {
auto decoded = internal::BytesFromBase64(base64);
EXPECT_FALSE(decoded.ok());
if (!decoded) {
EXPECT_THAT(decoded.status().message(), HasSubstr("Invalid base64"));
EXPECT_THAT(decoded.status().message(), HasSubstr("at offset 4"));
}
}
// Chars outside base64 alphabet.
for (std::string const base64 : {".xxx", "x.xx", "xx.x", "xxx.", "xx.="}) {
auto decoded = internal::BytesFromBase64(base64);
EXPECT_FALSE(decoded.ok());
if (!decoded) {
EXPECT_THAT(decoded.status().message(), HasSubstr("Invalid base64"));
EXPECT_THAT(decoded.status().message(), HasSubstr("at offset 0"));
}
}
// Non-zero padding bits.
for (std::string const base64 : {"xx==", "xxx="}) {
auto decoded = internal::BytesFromBase64(base64);
EXPECT_FALSE(decoded.ok());
if (!decoded) {
EXPECT_THAT(decoded.status().message(), HasSubstr("Invalid base64"));
EXPECT_THAT(decoded.status().message(), HasSubstr("at offset 0"));
}
}
}
TEST(Bytes, Conversions) {
std::string const s_coded = "Zm9vYmFy";
std::string const s_plain = "foobar";
std::deque<char> const d_plain(s_plain.begin(), s_plain.end());
std::vector<std::uint8_t> const v_plain(s_plain.begin(), s_plain.end());
auto bytes = internal::BytesFromBase64(s_coded);
EXPECT_STATUS_OK(bytes) << s_coded;
EXPECT_EQ(s_coded, internal::BytesToBase64(*bytes));
EXPECT_EQ(s_plain, bytes->get<std::string>());
EXPECT_EQ(d_plain, bytes->get<std::deque<char>>());
EXPECT_EQ(v_plain, bytes->get<std::vector<std::uint8_t>>());
bytes = Bytes(s_plain);
EXPECT_EQ(s_coded, internal::BytesToBase64(*bytes));
EXPECT_EQ(s_plain, bytes->get<std::string>());
EXPECT_EQ(d_plain, bytes->get<std::deque<char>>());
EXPECT_EQ(v_plain, bytes->get<std::vector<std::uint8_t>>());
bytes = Bytes(d_plain);
EXPECT_EQ(s_coded, internal::BytesToBase64(*bytes));
EXPECT_EQ(s_plain, bytes->get<std::string>());
EXPECT_EQ(d_plain, bytes->get<std::deque<char>>());
EXPECT_EQ(v_plain, bytes->get<std::vector<std::uint8_t>>());
bytes = Bytes(v_plain);
EXPECT_EQ(s_coded, internal::BytesToBase64(*bytes));
EXPECT_EQ(s_plain, bytes->get<std::string>());
EXPECT_EQ(d_plain, bytes->get<std::deque<char>>());
EXPECT_EQ(v_plain, bytes->get<std::vector<std::uint8_t>>());
}
TEST(Bytes, RelationalOperators) {
std::string const s_plain = "The quick brown fox jumps over the lazy dog.";
std::deque<char> const d_plain(s_plain.begin(), s_plain.end());
std::vector<std::uint8_t> const v_plain(s_plain.begin(), s_plain.end());
auto s_bytes = Bytes(s_plain.begin(), s_plain.end());
auto d_bytes = Bytes(d_plain.begin(), d_plain.end());
auto v_bytes = Bytes(v_plain.begin(), v_plain.end());
EXPECT_EQ(s_bytes, d_bytes);
EXPECT_EQ(d_bytes, v_bytes);
EXPECT_EQ(v_bytes, s_bytes);
auto x_bytes = Bytes(s_plain + " How vexingly quick daft zebras jump!");
EXPECT_NE(x_bytes, s_bytes);
EXPECT_NE(x_bytes, d_bytes);
EXPECT_NE(x_bytes, v_bytes);
}
} // namespace
} // namespace SPANNER_CLIENT_NS
} // namespace spanner
} // namespace cloud
} // namespace google
| 35.896154 | 80 | 0.672131 | [
"vector"
] |
2cda7afae0976c158cc08c8ebc27ee204068f63b | 23,560 | hpp | C++ | dockerfiles/gaas_tutorial_2/GAAS/software/SLAM/ygz_slam_ros/Thirdparty/PCL/outofcore/include/pcl/outofcore/impl/octree_disk_container.hpp | hddxds/scripts_from_gi | afb8977c001b860335f9062464e600d9115ea56e | [
"Apache-2.0"
] | 2 | 2019-04-10T14:04:52.000Z | 2019-05-29T03:41:58.000Z | software/SLAM/ygz_slam_ros/Thirdparty/PCL/outofcore/include/pcl/outofcore/impl/octree_disk_container.hpp | glider54321/GAAS | 5c3b8c684e72fdf7f62c5731a260021e741069e7 | [
"BSD-3-Clause"
] | null | null | null | software/SLAM/ygz_slam_ros/Thirdparty/PCL/outofcore/include/pcl/outofcore/impl/octree_disk_container.hpp | glider54321/GAAS | 5c3b8c684e72fdf7f62c5731a260021e741069e7 | [
"BSD-3-Clause"
] | 1 | 2021-12-20T06:54:41.000Z | 2021-12-20T06:54:41.000Z | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2012, Willow Garage, Inc.
* Copyright (c) 2012, Urban Robotics, Inc.
*
* 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.
* * Neither the name of Willow Garage, Inc. nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* $Id: octree_disk_container.hpp 6927M 2012-08-24 17:01:57Z (local) $
*/
#ifndef PCL_OUTOFCORE_OCTREE_DISK_CONTAINER_IMPL_H_
#define PCL_OUTOFCORE_OCTREE_DISK_CONTAINER_IMPL_H_
// C++
#include <sstream>
#include <cassert>
#include <ctime>
// Boost
#include <pcl/outofcore/boost.h>
// PCL
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/PCLPointCloud2.h>
// PCL (Urban Robotics)
#include <pcl/outofcore/octree_disk_container.h>
//allows operation on POSIX
#if !defined WIN32
#define _fseeki64 fseeko
#elif defined __MINGW32__
#define _fseeki64 fseeko64
#endif
namespace pcl
{
namespace outofcore
{
template<typename PointT>
boost::mutex OutofcoreOctreeDiskContainer<PointT>::rng_mutex_;
template<typename PointT> boost::mt19937
OutofcoreOctreeDiskContainer<PointT>::rand_gen_ (static_cast<unsigned int> (std::time(NULL)));
template<typename PointT>
boost::uuids::basic_random_generator<boost::mt19937> OutofcoreOctreeDiskContainer<PointT>::uuid_gen_ (&rand_gen_);
template<typename PointT>
const uint64_t OutofcoreOctreeDiskContainer<PointT>::READ_BLOCK_SIZE_ = static_cast<uint64_t> (2e12);
template<typename PointT>
const uint64_t OutofcoreOctreeDiskContainer<PointT>::WRITE_BUFF_MAX_ = static_cast<uint64_t> (2e12);
template<typename PointT> void
OutofcoreOctreeDiskContainer<PointT>::getRandomUUIDString (std::string& s)
{
boost::uuids::uuid u;
{
boost::mutex::scoped_lock lock (rng_mutex_);
u = uuid_gen_ ();
}
std::stringstream ss;
ss << u;
s = ss.str ();
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT>
OutofcoreOctreeDiskContainer<PointT>::OutofcoreOctreeDiskContainer ()
: disk_storage_filename_ ()
, filelen_ (0)
, writebuff_ (0)
{
std::string temp;
getRandomUUIDString (temp);
disk_storage_filename_ = boost::shared_ptr<std::string> (new std::string (temp));
filelen_ = 0;
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT>
OutofcoreOctreeDiskContainer<PointT>::OutofcoreOctreeDiskContainer (const boost::filesystem::path& path)
: disk_storage_filename_ ()
, filelen_ (0)
, writebuff_ (0)
{
if (boost::filesystem::exists (path))
{
if (boost::filesystem::is_directory (path))
{
std::string uuid;
getRandomUUIDString (uuid);
boost::filesystem::path filename (uuid);
boost::filesystem::path file = path / filename;
disk_storage_filename_ = boost::shared_ptr<std::string> (new std::string (file.string ()));
}
else
{
uint64_t len = boost::filesystem::file_size (path);
disk_storage_filename_ = boost::shared_ptr<std::string> (new std::string (path.string ()));
filelen_ = len / sizeof(PointT);
pcl::PCLPointCloud2 cloud_info;
Eigen::Vector4f origin;
Eigen::Quaternionf orientation;
int pcd_version;
int data_type;
unsigned int data_index;
//read the header of the pcd file and get the number of points
PCDReader reader;
reader.readHeader (*disk_storage_filename_, cloud_info, origin, orientation, pcd_version, data_type, data_index, 0);
filelen_ = cloud_info.width * cloud_info.height;
}
}
else //path doesn't exist
{
disk_storage_filename_ = boost::shared_ptr<std::string> (new std::string (path.string ()));
filelen_ = 0;
}
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT>
OutofcoreOctreeDiskContainer<PointT>::~OutofcoreOctreeDiskContainer ()
{
flushWritebuff (true);
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> void
OutofcoreOctreeDiskContainer<PointT>::flushWritebuff (const bool force_cache_dealloc)
{
if (writebuff_.size () > 0)
{
//construct the point cloud for this node
typename pcl::PointCloud<PointT>::Ptr cloud (new pcl::PointCloud<PointT>);
cloud->width = static_cast<uint32_t> (writebuff_.size ());
cloud->height = 1;
cloud->points = writebuff_;
//write data to a pcd file
pcl::PCDWriter writer;
PCL_WARN ("[pcl::outofcore::OutofcoreOctreeDiskContainer::%s] Flushing writebuffer in a dangerous way to file %s. This might overwrite data in destination file\n", __FUNCTION__, disk_storage_filename_->c_str ());
// Write ascii for now to debug
int res = writer.writeBinaryCompressed (*disk_storage_filename_, *cloud);
(void)res;
assert (res == 0);
if (force_cache_dealloc)
{
writebuff_.resize (0);
}
}
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> PointT
OutofcoreOctreeDiskContainer<PointT>::operator[] (uint64_t idx) const
{
PCL_THROW_EXCEPTION (PCLException, "[pcl::outofcore::OutofcoreOctreeDiskContainer] Not implemented for use with PCL library\n");
//if the index is on disk
if (idx < filelen_)
{
PointT temp;
//open our file
FILE* f = fopen (disk_storage_filename_->c_str (), "rb");
assert (f != NULL);
//seek the right length;
int seekret = _fseeki64 (f, idx * sizeof(PointT), SEEK_SET);
(void)seekret;
assert (seekret == 0);
size_t readlen = fread (&temp, 1, sizeof(PointT), f);
(void)readlen;
assert (readlen == sizeof (PointT));
int res = fclose (f);
(void)res;
assert (res == 0);
return (temp);
}
//otherwise if the index is still in the write buffer
if (idx < (filelen_ + writebuff_.size ()))
{
idx -= filelen_;
return (writebuff_[idx]);
}
//else, throw out of range exception
PCL_THROW_EXCEPTION (PCLException, "[pcl::outofcore:OutofcoreOctreeDiskContainer] Index is out of range");
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> void
OutofcoreOctreeDiskContainer<PointT>::readRange (const uint64_t start, const uint64_t count, AlignedPointTVector& dst)
{
if (count == 0)
{
return;
}
if ((start + count) > size ())
{
PCL_ERROR ("[pcl::outofcore::OutofcoreOctreeDiskContainer::%s] Indices out of range; start + count exceeds the size of the stored points\n", __FUNCTION__);
PCL_THROW_EXCEPTION (PCLException, "[pcl::outofcore::OutofcoreOctreeDiskContainer] Outofcore Octree Exception: Read indices exceed range");
}
pcl::PCDReader reader;
typename pcl::PointCloud<PointT>::Ptr cloud (new pcl::PointCloud<PointT> ());
int res = reader.read (*disk_storage_filename_, *cloud);
(void)res;
assert (res == 0);
for (size_t i=0; i < cloud->points.size (); i++)
dst.push_back (cloud->points[i]);
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> void
OutofcoreOctreeDiskContainer<PointT>::readRangeSubSample_bernoulli (const uint64_t start, const uint64_t count, const double percent, AlignedPointTVector& dst)
{
if (count == 0)
{
return;
}
dst.clear ();
uint64_t filestart = 0;
uint64_t filecount = 0;
int64_t buffstart = -1;
int64_t buffcount = -1;
if (start < filelen_)
{
filestart = start;
}
if ((start + count) <= filelen_)
{
filecount = count;
}
else
{
filecount = filelen_ - start;
buffstart = 0;
buffcount = count - filecount;
}
if (buffcount > 0)
{
{
boost::mutex::scoped_lock lock (rng_mutex_);
boost::bernoulli_distribution<double> buffdist (percent);
boost::variate_generator<boost::mt19937&, boost::bernoulli_distribution<double> > buffcoin (rand_gen_, buffdist);
for (size_t i = buffstart; i < static_cast<uint64_t> (buffcount); i++)
{
if (buffcoin ())
{
dst.push_back (writebuff_[i]);
}
}
}
}
if (filecount > 0)
{
//pregen and then sort the offsets to reduce the amount of seek
std::vector < uint64_t > offsets;
{
boost::mutex::scoped_lock lock (rng_mutex_);
boost::bernoulli_distribution<double> filedist (percent);
boost::variate_generator<boost::mt19937&, boost::bernoulli_distribution<double> > filecoin (rand_gen_, filedist);
for (uint64_t i = filestart; i < (filestart + filecount); i++)
{
if (filecoin ())
{
offsets.push_back (i);
}
}
}
std::sort (offsets.begin (), offsets.end ());
FILE* f = fopen (disk_storage_filename_->c_str (), "rb");
assert (f != NULL);
PointT p;
char* loc = reinterpret_cast<char*> (&p);
uint64_t filesamp = offsets.size ();
for (uint64_t i = 0; i < filesamp; i++)
{
int seekret = _fseeki64 (f, offsets[i] * static_cast<uint64_t> (sizeof(PointT)), SEEK_SET);
(void)seekret;
assert (seekret == 0);
size_t readlen = fread (loc, sizeof(PointT), 1, f);
(void)readlen;
assert (readlen == 1);
dst.push_back (p);
}
fclose (f);
}
}
////////////////////////////////////////////////////////////////////////////////
//change this to use a weighted coin flip, to allow sparse sampling of small clouds (eg the bernoulli above)
template<typename PointT> void
OutofcoreOctreeDiskContainer<PointT>::readRangeSubSample (const uint64_t start, const uint64_t count, const double percent, AlignedPointTVector& dst)
{
if (count == 0)
{
return;
}
dst.clear ();
uint64_t filestart = 0;
uint64_t filecount = 0;
int64_t buffcount = -1;
if (start < filelen_)
{
filestart = start;
}
if ((start + count) <= filelen_)
{
filecount = count;
}
else
{
filecount = filelen_ - start;
buffcount = count - filecount;
}
uint64_t filesamp = static_cast<uint64_t> (percent * static_cast<double> (filecount));
uint64_t buffsamp = (buffcount > 0) ? (static_cast<uint64_t > (percent * static_cast<double> (buffcount))) : 0;
if ((filesamp == 0) && (buffsamp == 0) && (size () > 0))
{
//std::cerr << "would not add points to LOD, falling back to bernoulli";
readRangeSubSample_bernoulli (start, count, percent, dst);
return;
}
if (buffcount > 0)
{
{
boost::mutex::scoped_lock lock (rng_mutex_);
boost::uniform_int < uint64_t > buffdist (0, buffcount - 1);
boost::variate_generator<boost::mt19937&, boost::uniform_int<uint64_t> > buffdie (rand_gen_, buffdist);
for (uint64_t i = 0; i < buffsamp; i++)
{
uint64_t buffstart = buffdie ();
dst.push_back (writebuff_[buffstart]);
}
}
}
if (filesamp > 0)
{
//pregen and then sort the offsets to reduce the amount of seek
std::vector < uint64_t > offsets;
{
boost::mutex::scoped_lock lock (rng_mutex_);
offsets.resize (filesamp);
boost::uniform_int < uint64_t > filedist (filestart, filestart + filecount - 1);
boost::variate_generator<boost::mt19937&, boost::uniform_int<uint64_t> > filedie (rand_gen_, filedist);
for (uint64_t i = 0; i < filesamp; i++)
{
uint64_t _filestart = filedie ();
offsets[i] = _filestart;
}
}
std::sort (offsets.begin (), offsets.end ());
FILE* f = fopen (disk_storage_filename_->c_str (), "rb");
assert (f != NULL);
PointT p;
char* loc = reinterpret_cast<char*> (&p);
for (uint64_t i = 0; i < filesamp; i++)
{
int seekret = _fseeki64 (f, offsets[i] * static_cast<uint64_t> (sizeof(PointT)), SEEK_SET);
(void)seekret;
assert (seekret == 0);
size_t readlen = fread (loc, sizeof(PointT), 1, f);
(void)readlen;
assert (readlen == 1);
dst.push_back (p);
}
int res = fclose (f);
(void)res;
assert (res == 0);
}
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> void
OutofcoreOctreeDiskContainer<PointT>::push_back (const PointT& p)
{
writebuff_.push_back (p);
if (writebuff_.size () > WRITE_BUFF_MAX_)
{
flushWritebuff (false);
}
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> void
OutofcoreOctreeDiskContainer<PointT>::insertRange (const AlignedPointTVector& src)
{
const uint64_t count = src.size ();
typename pcl::PointCloud<PointT>::Ptr tmp_cloud (new pcl::PointCloud<PointT> ());
// If there's a pcd file with data
if (boost::filesystem::exists (*disk_storage_filename_))
{
// Open the existing file
pcl::PCDReader reader;
int res = reader.read (*disk_storage_filename_, *tmp_cloud);
(void)res;
assert (res == 0);
}
// Otherwise create the point cloud which will be saved to the pcd file for the first time
else
{
tmp_cloud->width = static_cast<uint32_t> (count + writebuff_.size ());
tmp_cloud->height = 1;
}
for (size_t i = 0; i < src.size (); i++)
tmp_cloud->points.push_back (src[i]);
// If there are any points in the write cache writebuff_, a different write cache than this one, concatenate
for (size_t i = 0; i < writebuff_.size (); i++)
{
tmp_cloud->points.push_back (writebuff_[i]);
}
//assume unorganized point cloud
tmp_cloud->width = static_cast<uint32_t> (tmp_cloud->points.size ());
//save and close
PCDWriter writer;
int res = writer.writeBinaryCompressed (*disk_storage_filename_, *tmp_cloud);
(void)res;
assert (res == 0);
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> void
OutofcoreOctreeDiskContainer<PointT>::insertRange (const pcl::PCLPointCloud2::Ptr& input_cloud)
{
pcl::PCLPointCloud2::Ptr tmp_cloud (new pcl::PCLPointCloud2 ());
//if there's a pcd file with data associated with this node, read the data, concatenate, and resave
if (boost::filesystem::exists (*disk_storage_filename_))
{
//open the existing file
pcl::PCDReader reader;
int res = reader.read (*disk_storage_filename_, *tmp_cloud);
(void)res;
assert (res == 0);
pcl::PCDWriter writer;
PCL_DEBUG ("[pcl::outofcore::OutofcoreOctreeDiskContainer::%s] Concatenating point cloud from %s to new cloud\n", __FUNCTION__, disk_storage_filename_->c_str ());
size_t previous_num_pts = tmp_cloud->width*tmp_cloud->height + input_cloud->width*input_cloud->height;
//Concatenate will fail if the fields in input_cloud do not match the fields in the PCD file.
pcl::concatenatePointCloud (*tmp_cloud, *input_cloud, *tmp_cloud);
size_t res_pts = tmp_cloud->width*tmp_cloud->height;
(void)previous_num_pts;
(void)res_pts;
assert (previous_num_pts == res_pts);
writer.writeBinaryCompressed (*disk_storage_filename_, *tmp_cloud);
}
else //otherwise create the point cloud which will be saved to the pcd file for the first time
{
pcl::PCDWriter writer;
int res = writer.writeBinaryCompressed (*disk_storage_filename_, *input_cloud);
(void)res;
assert (res == 0);
}
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> void
OutofcoreOctreeDiskContainer<PointT>::readRange (const uint64_t, const uint64_t, pcl::PCLPointCloud2::Ptr& dst)
{
pcl::PCDReader reader;
Eigen::Vector4f origin;
Eigen::Quaternionf orientation;
int pcd_version;
if (boost::filesystem::exists (*disk_storage_filename_))
{
// PCL_INFO ("[pcl::outofcore::OutofcoreOctreeDiskContainer::%s] Reading points from disk from %s.\n", __FUNCTION__ , disk_storage_filename_->c_str ());
int res = reader.read (*disk_storage_filename_, *dst, origin, orientation, pcd_version);
(void)res;
assert (res != -1);
}
else
{
PCL_ERROR ("[pcl::outofcore::OutofcoreOctreeDiskContainer::%s] File %s does not exist in node.\n", __FUNCTION__, disk_storage_filename_->c_str ());
}
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> int
OutofcoreOctreeDiskContainer<PointT>::read (pcl::PCLPointCloud2::Ptr& output_cloud)
{
pcl::PCLPointCloud2::Ptr temp_output_cloud (new pcl::PCLPointCloud2 ());
if (boost::filesystem::exists (*disk_storage_filename_))
{
// PCL_INFO ("[pcl::outofcore::OutofcoreOctreeDiskContainer::%s] Reading points from disk from %s.\n", __FUNCTION__ , disk_storage_filename_->c_str ());
int res = pcl::io::loadPCDFile (*disk_storage_filename_, *temp_output_cloud);
(void)res;
assert (res != -1);
if(res == -1)
return (-1);
}
else
{
PCL_ERROR ("[pcl::outofcore::OutofcoreOctreeDiskContainer::%s] File %s does not exist in node.\n", __FUNCTION__, disk_storage_filename_->c_str ());
return (-1);
}
if(output_cloud.get () != 0)
{
pcl::concatenatePointCloud (*output_cloud, *temp_output_cloud, *output_cloud);
}
else
{
output_cloud = temp_output_cloud;
}
return (0);
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> void
OutofcoreOctreeDiskContainer<PointT>::insertRange (const PointT* const * start, const uint64_t count)
{
// PCL_THROW_EXCEPTION (PCLException, "[pcl::outofcore::OutofcoreOctreeDiskContainer] Deprecated\n");
//copy the handles to a continuous block
PointT* arr = new PointT[count];
//copy from start of array, element by element
for (size_t i = 0; i < count; i++)
{
arr[i] = *(start[i]);
}
insertRange (arr, count);
delete[] arr;
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> void
OutofcoreOctreeDiskContainer<PointT>::insertRange (const PointT* start, const uint64_t count)
{
typename pcl::PointCloud<PointT>::Ptr tmp_cloud (new pcl::PointCloud<PointT> ());
// If there's a pcd file with data, read it in from disk for appending
if (boost::filesystem::exists (*disk_storage_filename_))
{
pcl::PCDReader reader;
// Open it
int res = reader.read (disk_storage_filename_->c_str (), *tmp_cloud);
(void)res;
assert (res == 0);
}
else //otherwise create the pcd file
{
tmp_cloud->width = static_cast<uint32_t> (count) + static_cast<uint32_t> (writebuff_.size ());
tmp_cloud->height = 1;
}
// Add any points in the cache
for (size_t i = 0; i < writebuff_.size (); i++)
{
tmp_cloud->points.push_back (writebuff_ [i]);
}
//add the new points passed with this function
for (size_t i = 0; i < count; i++)
{
tmp_cloud->points.push_back (*(start + i));
}
tmp_cloud->width = static_cast<uint32_t> (tmp_cloud->points.size ());
tmp_cloud->height = 1;
//save and close
PCDWriter writer;
int res = writer.writeBinaryCompressed (*disk_storage_filename_, *tmp_cloud);
(void)res;
assert (res == 0);
}
////////////////////////////////////////////////////////////////////////////////
template<typename PointT> boost::uint64_t
OutofcoreOctreeDiskContainer<PointT>::getDataSize () const
{
pcl::PCLPointCloud2 cloud_info;
Eigen::Vector4f origin;
Eigen::Quaternionf orientation;
int pcd_version;
int data_type;
unsigned int data_index;
//read the header of the pcd file and get the number of points
PCDReader reader;
reader.readHeader (*disk_storage_filename_, cloud_info, origin, orientation, pcd_version, data_type, data_index, 0);
boost::uint64_t total_points = cloud_info.width * cloud_info.height + writebuff_.size ();
return (total_points);
}
////////////////////////////////////////////////////////////////////////////////
}//namespace outofcore
}//namespace pcl
#endif //PCL_OUTOFCORE_OCTREE_DISK_CONTAINER_IMPL_H_
| 33.850575 | 220 | 0.578098 | [
"vector"
] |
2ce90aad0ec543c8a90265e9aeb20345493d6399 | 2,155 | cpp | C++ | src/solvers/BFS.cpp | mdd36/picture_maze_solver | 6f7e8c997960ea5dc1e0e725026d8ff0b0cd9dee | [
"MIT"
] | null | null | null | src/solvers/BFS.cpp | mdd36/picture_maze_solver | 6f7e8c997960ea5dc1e0e725026d8ff0b0cd9dee | [
"MIT"
] | null | null | null | src/solvers/BFS.cpp | mdd36/picture_maze_solver | 6f7e8c997960ea5dc1e0e725026d8ff0b0cd9dee | [
"MIT"
] | null | null | null | //
// Created by Matthew on 8/22/2018.
//
#include <iostream>
#include <queue>
#include "Solver.h"
class BFS : public Solver{
public:
/**
* Solve the maze by running BFS on the graph.
* @param head Starting node
* @param tail Target node
* @param grid Grid to color as the search occurs
*/
void solve(GraphNode* head, GraphNode* tail, std::vector<std::vector<int>>* grid) override {
std::cout << "Solving with BFS..." << std::endl;
std::queue<GraphNode*> q;
q.push(head);
while(!q.empty()){
GraphNode* top = processesTop(grid, &q);
if(top == tail){
paintSolutionPath(grid, tail);
return;
}
}
throw std::invalid_argument("Graph has no path to tail node");
}
/**
* @return String for the type of solver used
*/
std::string getTypeString() override {
return "BFS";
}
private:
/**
* Take the top node off the queue, paint the grid, and push its unvisited neighbors
* @param grid Return grid to paint
* @param q Queue used in the BFS
* @return Graph node popped off the top of the queue
*/
GraphNode* processesTop(std::vector<std::vector<int>>* grid, std::queue<GraphNode*>* q){
GraphNode* top = q->front();
q->pop();
paint(grid, top);
top->visit(GraphNode::BLACK);
pushNeighbors(top, q);
return top;
}
/**
* Push all the neighbors of a graph node to the stack.
* @param gn GraphNode whose neighbors to push
* @param q Pointer to the queue to push the neighbors onto
*/
void pushNeighbors(GraphNode* gn, std::queue<GraphNode*>* q){
for(std::pair<GraphNode*, GraphEdge> pair : gn->getNeighbors()){
GraphNode* neighbor = pair.first;
if(neighbor->getColor() == GraphNode::WHITE){
q->push(neighbor);
if(parents.find(neighbor) == parents.end())
parents[neighbor] = new std::list<GraphNode*>;
parents[neighbor]->emplace_back(gn);
}
}
}
}; | 29.520548 | 96 | 0.562877 | [
"vector"
] |
f8e7d0fd01bf5b27eb5bfffa9124a0de428cdeb2 | 5,309 | cpp | C++ | Plugins/NaiveCustomMeshComponent/Source/StaticDataStaticMeshComponent/Private/StaticDataStaticMeshSceneProxy.cpp | cas2void/SkelAnimTestbed | 5a3a866c8d564273747a4523a2bb59b012f6adc9 | [
"MIT"
] | null | null | null | Plugins/NaiveCustomMeshComponent/Source/StaticDataStaticMeshComponent/Private/StaticDataStaticMeshSceneProxy.cpp | cas2void/SkelAnimTestbed | 5a3a866c8d564273747a4523a2bb59b012f6adc9 | [
"MIT"
] | null | null | null | Plugins/NaiveCustomMeshComponent/Source/StaticDataStaticMeshComponent/Private/StaticDataStaticMeshSceneProxy.cpp | cas2void/SkelAnimTestbed | 5a3a866c8d564273747a4523a2bb59b012f6adc9 | [
"MIT"
] | null | null | null | #include "StaticDataStaticMeshSceneProxy.h"
#include "Materials/MaterialInterface.h"
#include "Materials/Material.h"
FStaticDataStaticMeshSceneProxy::FStaticDataStaticMeshSceneProxy(const UStaticDataStaticMeshComponent* Component)
: FPrimitiveSceneProxy(Component)
, VertexFactory(GetScene().GetFeatureLevel(), "FStaticDataStaticMeshSceneProxy")
{
// Generate verices of a quad
float MinValue = Component->Width * -0.5f;
float MaxValue = Component->Width * 0.5f;
TArray<FVector> Positions{
FVector(MaxValue, MinValue, 0.0f),
FVector(MinValue, MinValue, 0.0f),
FVector(MinValue, MaxValue, 0.0f),
FVector(MaxValue, MaxValue, 0.0f)
};
StaticVertexBuffers.PositionVertexBuffer.Init(Positions);
TArray<FStaticMeshBuildVertex> Vertices;
Vertices.AddDefaulted(4);
Vertices[0].TangentZ = FVector::UpVector;
Vertices[1].TangentZ = FVector::UpVector;
Vertices[2].TangentZ = FVector::UpVector;
Vertices[3].TangentZ = FVector::UpVector;
Vertices[0].UVs[0] = FVector2D(0.0f, 0.0f);
Vertices[1].UVs[0] = FVector2D(0.0f, 1.0f);
Vertices[2].UVs[0] = FVector2D(1.0f, 1.0f);
Vertices[3].UVs[0] = FVector2D(1.0f, 0.0f);
StaticVertexBuffers.StaticMeshVertexBuffer.Init(Vertices, 1);
TArray<FColor> Colors{ FColor::Red, FColor::Green, FColor::White, FColor::Blue };
StaticVertexBuffers.ColorVertexBuffer.InitFromColorArray(Colors);
TArray<uint32> Indices{
0, 1, 2,
2, 3, 0
};
IndexBuffer.AppendIndices(Indices.GetData(), Indices.Num());
// Initialize render resources and bind data
ENQUEUE_RENDER_COMMAND(NaiveSkeletalMeshVertexFactoryInit)(
[this](FRHICommandListImmediate& RHICmdList)
{
StaticVertexBuffers.StaticMeshVertexBuffer.InitResource();
StaticVertexBuffers.PositionVertexBuffer.InitResource();
StaticVertexBuffers.ColorVertexBuffer.InitResource();
IndexBuffer.InitResource();
FLocalVertexFactory::FDataType Data;
StaticVertexBuffers.StaticMeshVertexBuffer.BindTangentVertexBuffer(&VertexFactory, Data);
StaticVertexBuffers.StaticMeshVertexBuffer.BindPackedTexCoordVertexBuffer(&VertexFactory, Data);
StaticVertexBuffers.PositionVertexBuffer.BindPositionVertexBuffer(&VertexFactory, Data);
StaticVertexBuffers.ColorVertexBuffer.BindColorVertexBuffer(&VertexFactory, Data);
VertexFactory.SetData(Data);
VertexFactory.InitResource();
});
Material = Component->GetMaterial(0);
if (!Material)
{
Material = UMaterial::GetDefaultMaterial(MD_Surface);
}
}
FStaticDataStaticMeshSceneProxy::~FStaticDataStaticMeshSceneProxy()
{
StaticVertexBuffers.StaticMeshVertexBuffer.ReleaseResource();
StaticVertexBuffers.PositionVertexBuffer.ReleaseResource();
StaticVertexBuffers.ColorVertexBuffer.ReleaseResource();
IndexBuffer.ReleaseResource();
VertexFactory.ReleaseResource();
}
void FStaticDataStaticMeshSceneProxy::GetDynamicMeshElements(const TArray<const FSceneView*>& Views, const FSceneViewFamily& ViewFamily, uint32 VisibilityMap, FMeshElementCollector& Collector) const
{
for (int32 ViewIndex = 0; ViewIndex < Views.Num(); ViewIndex++)
{
if (VisibilityMap & (1 << ViewIndex))
{
FMeshBatch& Mesh = Collector.AllocateMesh();
Mesh.MaterialRenderProxy = Material->GetRenderProxy();
Mesh.VertexFactory = &VertexFactory;
Mesh.ReverseCulling = IsLocalToWorldDeterminantNegative();
Mesh.Type = PT_TriangleList;
Mesh.DepthPriorityGroup = SDPG_World;
Mesh.bCanApplyViewModeOverrides = true;
FMeshBatchElement& BatchElement = Mesh.Elements[0];
BatchElement.IndexBuffer = &IndexBuffer;
// Set uniform buffer
bool bHasPrecomputedVolumetricLightmap;
FMatrix PreviousLocalToWorld;
int32 SingleCaptureIndex;
bool bOutputVelocity;
GetScene().GetPrimitiveUniformShaderParameters_RenderThread(GetPrimitiveSceneInfo(), bHasPrecomputedVolumetricLightmap, PreviousLocalToWorld, SingleCaptureIndex, bOutputVelocity);
FDynamicPrimitiveUniformBuffer& DynamicPrimitiveUniformBuffer = Collector.AllocateOneFrameResource<FDynamicPrimitiveUniformBuffer>();
DynamicPrimitiveUniformBuffer.Set(GetLocalToWorld(), PreviousLocalToWorld, GetBounds(), GetLocalBounds(), true, bHasPrecomputedVolumetricLightmap, DrawsVelocity(), false);
BatchElement.PrimitiveUniformBufferResource = &DynamicPrimitiveUniformBuffer.UniformBuffer;
BatchElement.FirstIndex = 0;
BatchElement.NumPrimitives = IndexBuffer.GetNumIndices() / 3;
BatchElement.MinVertexIndex = 0;
BatchElement.MaxVertexIndex = StaticVertexBuffers.PositionVertexBuffer.GetNumVertices() - 1;
Collector.AddMesh(ViewIndex, Mesh);
}
}
}
FPrimitiveViewRelevance FStaticDataStaticMeshSceneProxy::GetViewRelevance(const FSceneView* View) const
{
FPrimitiveViewRelevance Result;
Result.bDynamicRelevance = true;
Result.bDrawRelevance = IsShown(View);
Result.bShadowRelevance = IsShadowCast(View);
return Result;
}
| 43.162602 | 198 | 0.718779 | [
"mesh",
"render"
] |
f8eb358e1de834be52b56ca9e4ceb83f364bc5d2 | 6,475 | cxx | C++ | clsim/private/clsim/random_value/I3CLSimRandomValueApplyFunction.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 1 | 2020-12-24T22:00:01.000Z | 2020-12-24T22:00:01.000Z | clsim/private/clsim/random_value/I3CLSimRandomValueApplyFunction.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | null | null | null | clsim/private/clsim/random_value/I3CLSimRandomValueApplyFunction.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 3 | 2020-07-17T09:20:29.000Z | 2021-03-30T16:44:18.000Z | /**
* Copyright (c) 2011, 2012
* Claudio Kopper <claudio.kopper@icecube.wisc.edu>
* and the IceCube Collaboration <http://www.icecube.wisc.edu>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
*
* $Id: I3CLSimRandomValueApplyFunction.cxx 108199 2013-07-12 21:33:08Z nwhitehorn $
*
* @file I3CLSimRandomValueApplyFunction.cxx
* @version $Revision: 108199 $
* @date $Date: 2013-07-12 15:33:08 -0600 (Fri, 12 Jul 2013) $
* @author Claudio Kopper
*/
#include <icetray/serialization.h>
#include <icetray/I3Logging.h>
#include <clsim/random_value/I3CLSimRandomValueApplyFunction.h>
#include <boost/lexical_cast.hpp>
#include <string>
#include <sstream>
#include <vector>
#include <cmath>
#include <limits>
I3CLSimRandomValueApplyFunction::
I3CLSimRandomValueApplyFunction(const I3CLSimRandomValuePtr &randomDistUsed,
const std::string &applyFunctionName)
:
randomDistUsed_(randomDistUsed),
applyFunctionName_(applyFunctionName)
{
if (!randomDistUsed_) {
log_fatal("The \"randomDistUsed\" parameter must not be NULL!");
}
if (applyFunctionName_=="") {
log_fatal("The \"applyFunctionName\" parameter must be set!");
}
}
I3CLSimRandomValueApplyFunction::~I3CLSimRandomValueApplyFunction()
{
}
I3CLSimRandomValueApplyFunction::I3CLSimRandomValueApplyFunction() {;}
std::size_t I3CLSimRandomValueApplyFunction::NumberOfParameters() const
{
return randomDistUsed_->NumberOfParameters();
}
double I3CLSimRandomValueApplyFunction::SampleFromDistribution(const I3RandomServicePtr &random,
const std::vector<double> ¶meters) const
{
if (!random) log_fatal("random service is NULL!");
const double sampledValue = randomDistUsed_->SampleFromDistribution(random, parameters);
if (applyFunctionName_=="cos") return std::cos (sampledValue);
else if (applyFunctionName_=="sin") return std::sin (sampledValue);
else if (applyFunctionName_=="tan") return std::tan (sampledValue);
else if (applyFunctionName_=="acos") return std::acos(sampledValue);
else if (applyFunctionName_=="asin") return std::asin(sampledValue);
else if (applyFunctionName_=="atan") return std::atan(sampledValue);
else if (applyFunctionName_=="exp") return std::exp (sampledValue);
else {
log_fatal("The function \"%s\" is currently not implemented in host code.", applyFunctionName_.c_str());
return NAN;
}
}
std::string I3CLSimRandomValueApplyFunction::GetOpenCLFunction
(const std::string &functionName,
const std::string &functionArgs,
const std::string &functionArgsToCall,
const std::string &uniformRandomCall_co,
const std::string &uniformRandomCall_oc
) const
{
// some simple substitutions
std::string applyFunctionNameNativeMath;
if (applyFunctionName_=="cos") applyFunctionNameNativeMath="native_cos";
else if (applyFunctionName_=="sin") applyFunctionNameNativeMath="native_sin";
else if (applyFunctionName_=="tan") applyFunctionNameNativeMath="native_tan";
else if (applyFunctionName_=="acos") applyFunctionNameNativeMath="native_acos";
else if (applyFunctionName_=="asin") applyFunctionNameNativeMath="native_asin";
else if (applyFunctionName_=="atan") applyFunctionNameNativeMath="native_atan";
else if (applyFunctionName_=="exp") applyFunctionNameNativeMath="native_exp";
else applyFunctionNameNativeMath=applyFunctionName_;
std::string parametersInDecl, parametersToCall;
for (std::size_t i=0;i<randomDistUsed_->NumberOfParameters();++i)
{
parametersInDecl += ", float p" + boost::lexical_cast<std::string>(i);
parametersToCall += ", p" + boost::lexical_cast<std::string>(i);
}
const std::string functionDecl = std::string("inline float ") + functionName + "(" + functionArgs + parametersInDecl +")";
const std::string functionNameUsed = std::string("") + functionName + "_used";
const std::string usedFunctionDecl =
randomDistUsed_->GetOpenCLFunction
(
functionNameUsed,
functionArgs,
functionArgsToCall,
uniformRandomCall_co,
uniformRandomCall_oc
);
return usedFunctionDecl + "\n\n" + functionDecl + ";\n\n" + functionDecl + "\n"
"{\n"
" const float number = " + functionNameUsed + "(" + functionArgsToCall + parametersToCall + ");\n"
" \n"
"#ifdef USE_NATIVE_MATH\n"
" return " + applyFunctionNameNativeMath + "(number);\n"
"#else\n"
" return " + applyFunctionName_ + "(number);\n"
"#endif\n"
"}\n"
;
}
bool I3CLSimRandomValueApplyFunction::CompareTo(const I3CLSimRandomValue &other) const
{
try
{
const I3CLSimRandomValueApplyFunction &other_ = dynamic_cast<const I3CLSimRandomValueApplyFunction &>(other);
if (other_.applyFunctionName_ != applyFunctionName_) return false;
if (!(*(other_.randomDistUsed_) == *randomDistUsed_)) return false;
return true;
}
catch (const std::bad_cast& e)
{
// not of the same type, treat it as non-equal
return false;
}
}
template <class Archive>
void I3CLSimRandomValueApplyFunction::serialize(Archive &ar, unsigned version)
{
if (version>i3clsimrandomvalueapplyfunction_version_)
log_fatal("Attempting to read version %u from file but running version %u of I3CLSimRandomValueApplyFunction class.",
version,
i3clsimrandomvalueapplyfunction_version_);
ar & make_nvp("I3CLSimRandomValue", base_object<I3CLSimRandomValue>(*this));
ar & make_nvp("applyFunctionName", applyFunctionName_);
ar & make_nvp("randomDistUsed", randomDistUsed_);
}
I3_SERIALIZABLE(I3CLSimRandomValueApplyFunction);
| 37.427746 | 126 | 0.709344 | [
"vector"
] |
f8f0f958e05c26e1a009aaa38fdddea1834d269f | 576 | cpp | C++ | cpp/codeforces/unnatural_conditions.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/codeforces/unnatural_conditions.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/codeforces/unnatural_conditions.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | //Codeforces Problem No. 1028 B
//Written by Xuqiang Fang on 27 Aug, 2018
/*
Description:
*/
#include <iostream>
#include <string>
#include <vector>
#include <unordered_map>
#include <map>
#include <unordered_set>
#include <set>
#include <stack>
#include <queue>
using namespace std;
int main(){
int n,m;
cin >> n >> m;
int a = 5;
string ans;
string bns;
while(a < n){
a += 4;
ans.append("4");
bns.append("5");
}
ans.append("5");
bns.append("5");
cout << ans << endl;
cout << bns << endl;
return 0;
}
| 16.457143 | 41 | 0.565972 | [
"vector"
] |
f8f3eeacc3abe971abd85afd6e57e9157074f18d | 626 | cpp | C++ | src/main/cpp/binarysearch/one_interval.cpp | jo3-l/cp-practice | d1db0c8e9269c8720b31013068dff948b33f57fd | [
"MIT"
] | 5 | 2022-01-05T20:15:47.000Z | 2022-02-15T22:40:44.000Z | src/main/cpp/binarysearch/one_interval.cpp | jo3-l/ccc-java | 7a77f365e52496967e5265ecefb34f3b7db5fae8 | [
"MIT"
] | 3 | 2022-01-06T01:34:42.000Z | 2022-01-20T23:46:53.000Z | src/main/cpp/binarysearch/one_interval.cpp | jo3-l/ccc-java | 7a77f365e52496967e5265ecefb34f3b7db5fae8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int solve(vector<vector<int>> &intervals) {
sort(begin(intervals), end(intervals), [](auto &a, auto &b) { return a[0] < b[0]; });
int min_end = INT_MAX, max_start = INT_MIN;
int disjoint_intervals = 0;
int i = 0;
while (i < intervals.size()) {
auto &interval = intervals[i++];
while (i < intervals.size() && intervals[i][0] <= interval[1]) interval[1] = max(interval[1], intervals[i++][1]);
min_end = min(min_end, interval[1]);
max_start = max(max_start, interval[0]);
disjoint_intervals++;
}
if (disjoint_intervals < 2) return 0;
return max_start - min_end;
} | 32.947368 | 115 | 0.65655 | [
"vector"
] |
f8f96789732ca7e310095e208e202a9cf4771919 | 4,549 | hpp | C++ | include/UnityEngine/ProBuilder/MeshOperations/VertexEditing.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/ProBuilder/MeshOperations/VertexEditing.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/ProBuilder/MeshOperations/VertexEditing.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ProBuilder.SimpleTuple`2
#include "UnityEngine/ProBuilder/SimpleTuple_2.hpp"
// Completed includes
// Begin forward declares
// Forward declaring namespace: UnityEngine::ProBuilder
namespace UnityEngine::ProBuilder {
// Forward declaring type: ProBuilderMesh
class ProBuilderMesh;
// Forward declaring type: Edge
struct Edge;
// Forward declaring type: FaceRebuildData
class FaceRebuildData;
// Forward declaring type: Vertex
class Vertex;
// Forward declaring type: WingedEdge
class WingedEdge;
// Forward declaring type: EdgeLookup
struct EdgeLookup;
}
// Forward declaring namespace: System::Collections::Generic
namespace System::Collections::Generic {
// Forward declaring type: IEnumerable`1<T>
template<typename T>
class IEnumerable_1;
// Forward declaring type: IList`1<T>
template<typename T>
class IList_1;
// Forward declaring type: Dictionary`2<TKey, TValue>
template<typename TKey, typename TValue>
class Dictionary_2;
// Forward declaring type: List`1<T>
template<typename T>
class List_1;
}
// Completed forward declares
// Type namespace: UnityEngine.ProBuilder.MeshOperations
namespace UnityEngine::ProBuilder::MeshOperations {
// Size: 0x10
#pragma pack(push, 1)
// Autogenerated type: UnityEngine.ProBuilder.MeshOperations.VertexEditing
// [ExtensionAttribute] Offset: FFFFFFFF
class VertexEditing : public ::Il2CppObject {
public:
// Creating value type constructor for type: VertexEditing
VertexEditing() noexcept {}
// static public System.Int32 MergeVertices(UnityEngine.ProBuilder.ProBuilderMesh mesh, System.Int32[] indexes, System.Boolean collapseToFirst)
// Offset: 0x16FEBA0
static int MergeVertices(UnityEngine::ProBuilder::ProBuilderMesh* mesh, ::Array<int>* indexes, bool collapseToFirst);
// static public System.Void SplitVertices(UnityEngine.ProBuilder.ProBuilderMesh mesh, UnityEngine.ProBuilder.Edge edge)
// Offset: 0x16FEEB0
static void SplitVertices(UnityEngine::ProBuilder::ProBuilderMesh* mesh, UnityEngine::ProBuilder::Edge edge);
// static public System.Void SplitVertices(UnityEngine.ProBuilder.ProBuilderMesh mesh, System.Collections.Generic.IEnumerable`1<System.Int32> vertices)
// Offset: 0x16FEF48
static void SplitVertices(UnityEngine::ProBuilder::ProBuilderMesh* mesh, System::Collections::Generic::IEnumerable_1<int>* vertices);
// static public System.Int32[] WeldVertices(UnityEngine.ProBuilder.ProBuilderMesh mesh, System.Collections.Generic.IEnumerable`1<System.Int32> indexes, System.Single neighborRadius)
// Offset: 0x16FF290
static ::Array<int>* WeldVertices(UnityEngine::ProBuilder::ProBuilderMesh* mesh, System::Collections::Generic::IEnumerable_1<int>* indexes, float neighborRadius);
// static UnityEngine.ProBuilder.FaceRebuildData ExplodeVertex(System.Collections.Generic.IList`1<UnityEngine.ProBuilder.Vertex> vertices, System.Collections.Generic.IList`1<UnityEngine.ProBuilder.SimpleTuple`2<UnityEngine.ProBuilder.WingedEdge,System.Int32>> edgeAndCommonIndex, System.Single distance, out System.Collections.Generic.Dictionary`2<System.Int32,System.Collections.Generic.List`1<System.Int32>> appendedVertices)
// Offset: 0x16FFE34
static UnityEngine::ProBuilder::FaceRebuildData* ExplodeVertex(System::Collections::Generic::IList_1<UnityEngine::ProBuilder::Vertex*>* vertices, System::Collections::Generic::IList_1<UnityEngine::ProBuilder::SimpleTuple_2<UnityEngine::ProBuilder::WingedEdge*, int>>* edgeAndCommonIndex, float distance, System::Collections::Generic::Dictionary_2<int, System::Collections::Generic::List_1<int>*>*& appendedVertices);
// static private UnityEngine.ProBuilder.Edge AlignEdgeWithDirection(UnityEngine.ProBuilder.EdgeLookup edge, System.Int32 commonIndex)
// Offset: 0x1700818
static UnityEngine::ProBuilder::Edge AlignEdgeWithDirection(UnityEngine::ProBuilder::EdgeLookup edge, int commonIndex);
}; // UnityEngine.ProBuilder.MeshOperations.VertexEditing
#pragma pack(pop)
}
#include "extern/beatsaber-hook/shared/utils/il2cpp-type-check.hpp"
DEFINE_IL2CPP_ARG_TYPE(UnityEngine::ProBuilder::MeshOperations::VertexEditing*, "UnityEngine.ProBuilder.MeshOperations", "VertexEditing");
| 60.653333 | 432 | 0.763245 | [
"mesh"
] |
f8fe2082945fa4278b9ffc0bf5bcce95508db8d0 | 984 | hpp | C++ | include/mcfile/je/chunksection/chunk-section-116.hpp | kbinani/libminecraft-file | 7068e877f49f442be7229e996325276ed13dcf47 | [
"MIT"
] | 3 | 2020-02-07T19:58:13.000Z | 2022-02-15T14:00:35.000Z | include/mcfile/je/chunksection/chunk-section-116.hpp | kbinani/libminecraft-file | 7068e877f49f442be7229e996325276ed13dcf47 | [
"MIT"
] | null | null | null | include/mcfile/je/chunksection/chunk-section-116.hpp | kbinani/libminecraft-file | 7068e877f49f442be7229e996325276ed13dcf47 | [
"MIT"
] | null | null | null | #pragma once
namespace mcfile::je::chunksection {
class ChunkSection116 : public ChunkSection113Base<BlockStatesParser116> {
public:
static std::shared_ptr<ChunkSection> MakeEmpty(int sectionY) {
using namespace std;
vector<shared_ptr<Block const>> palette;
vector<uint16_t> paletteIndices;
auto extra = make_shared<nbt::CompoundTag>();
return shared_ptr<ChunkSection116>(
new ChunkSection116(sectionY,
palette,
paletteIndices,
extra));
}
private:
ChunkSection116(int y,
std::vector<std::shared_ptr<Block const>> const &palette,
std::vector<uint16_t> const &paletteIndices,
std::shared_ptr<nbt::CompoundTag> const &extra)
: ChunkSection113Base<BlockStatesParser116>(y, palette, paletteIndices, extra) {
}
};
} // namespace mcfile::je::chunksection
| 33.931034 | 88 | 0.603659 | [
"vector"
] |
5d05641a5d3690f39fde5aa3815ccbf65c6586bd | 1,356 | cpp | C++ | 0686-Repeated String Match/0686-Repeated String Match.cpp | zhuangli1987/LeetCode-1 | e81788abf9e95e575140f32a58fe983abc97fa4a | [
"MIT"
] | 49 | 2018-05-05T02:53:10.000Z | 2022-03-30T12:08:09.000Z | 0601-0700/0686-Repeated String Match/0686-Repeated String Match.cpp | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 11 | 2017-12-15T22:31:44.000Z | 2020-10-02T12:42:49.000Z | 0601-0700/0686-Repeated String Match/0686-Repeated String Match.cpp | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 28 | 2017-12-05T10:56:51.000Z | 2022-01-26T18:18:27.000Z | class Solution {
public:
int repeatedStringMatch(string A, string B) {
int n = A.size();
if (n == 0) {
return -1;
}
int m = B.size();
vector<int> lps(m);
int i = 1;
int len = 0;
while (i < m) {
if (B[i] == B[len]) {
lps[i++] = ++len;
}
else if (len != 0) {
len = lps[len - 1];
}
else {
++i;
}
}
i = 0;
int j = 0;
while (i < n) {
if (A[(i + j) % n] == B[j]) {
++j;
if (j == m) {
return (i + j) / n + ((i + j) % n != 0 ? 1 : 0);
}
}
else if (j != 0) {
i += j - lps[j - 1];
j = lps[j - 1];
}
else {
++i;
}
}
return -1;
}
};
class Solution {
public:
int repeatedStringMatch(string A, string B) {
int n = A.size();
int m = B.size();
string s = A;
while (s.size() < B.size()) {
s += A;
}
s += A;
int index = s.find(B);
if (index == -1) {
return -1;
}
return (index + m + n - 1) / n;
}
};
| 21.52381 | 68 | 0.276549 | [
"vector"
] |
5d13fe6060beb99a96a387bee3ff3f3f92418d4a | 172 | cpp | C++ | chapter-9/9.41.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-9/9.41.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-9/9.41.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | #include <vector>
#include <string>
using std::vector;
using std::string;
int main()
{
vector<char> vc = {'h', 'e', 'l', 'l', 'o'};
string s(vc.begin(), vc.end());
}
| 14.333333 | 46 | 0.563953 | [
"vector"
] |
5d15107dd1672b0296964f764207212f49b4818d | 4,930 | hpp | C++ | include/memory/hadesmem/process_helpers.hpp | CvX/hadesmem | d2c5164cc753dac37879ac8079f2ae23f2b8edb5 | [
"MIT"
] | 24 | 2018-08-18T18:05:37.000Z | 2021-09-28T00:26:35.000Z | include/memory/hadesmem/process_helpers.hpp | CvX/hadesmem | d2c5164cc753dac37879ac8079f2ae23f2b8edb5 | [
"MIT"
] | null | null | null | include/memory/hadesmem/process_helpers.hpp | CvX/hadesmem | d2c5164cc753dac37879ac8079f2ae23f2b8edb5 | [
"MIT"
] | 9 | 2018-04-16T09:53:09.000Z | 2021-02-26T05:04:49.000Z | // Copyright (C) 2010-2014 Joshua Boyce.
// See the file COPYING for copying permission.
#pragma once
#include <algorithm>
#include <string>
#include <vector>
#include <windows.h>
#include <hadesmem/config.hpp>
#include <hadesmem/detail/to_upper_ordinal.hpp>
#include <hadesmem/detail/winapi.hpp>
#include <hadesmem/detail/winternl.hpp>
#include <hadesmem/error.hpp>
#include <hadesmem/process.hpp>
#include <hadesmem/process_entry.hpp>
#include <hadesmem/process_list.hpp>
namespace hadesmem
{
inline ProcessEntry GetProcessEntryByName(std::wstring const& proc_name,
bool name_forced = false)
{
std::wstring const proc_name_upper =
hadesmem::detail::ToUpperOrdinal(proc_name);
auto const compare_proc_name = [&](hadesmem::ProcessEntry const& proc_entry)
{
return hadesmem::detail::ToUpperOrdinal(proc_entry.GetName()) ==
proc_name_upper;
};
hadesmem::ProcessList proc_list;
if (name_forced)
{
auto const proc_iter = std::find_if(
std::begin(proc_list), std::end(proc_list), compare_proc_name);
if (proc_iter == std::end(proc_list))
{
HADESMEM_DETAIL_THROW_EXCEPTION(
hadesmem::Error{} << hadesmem::ErrorString{"Failed to find process."});
}
return *proc_iter;
}
else
{
std::vector<hadesmem::ProcessEntry> found_procs;
std::copy_if(std::begin(proc_list),
std::end(proc_list),
std::back_inserter(found_procs),
compare_proc_name);
if (found_procs.empty())
{
HADESMEM_DETAIL_THROW_EXCEPTION(
hadesmem::Error{} << hadesmem::ErrorString{"Failed to find process."});
}
if (found_procs.size() > 1)
{
HADESMEM_DETAIL_THROW_EXCEPTION(
hadesmem::Error{} << hadesmem::ErrorString{
"Process name search found multiple matches."});
}
return found_procs.front();
}
}
inline Process GetProcessByName(std::wstring const& proc_name,
bool name_forced = false)
{
// Guard against potential PID reuse race condition. Unlikely
// to ever happen in practice, but better safe than sorry.
DWORD retries = 3;
do
{
hadesmem::Process process_1{
GetProcessEntryByName(proc_name, name_forced).GetId()};
hadesmem::Process process_2{
GetProcessEntryByName(proc_name, name_forced).GetId()};
if (process_1 == process_2)
{
return process_1;
}
} while (retries--);
HADESMEM_DETAIL_THROW_EXCEPTION(
hadesmem::Error{} << hadesmem::ErrorString{
"Could not get handle to target process (PID reuse race)."});
}
inline std::wstring GetPathNative(Process const& process)
{
HMODULE const ntdll = GetModuleHandleW(L"ntdll");
if (!ntdll)
{
DWORD const last_error = ::GetLastError();
HADESMEM_DETAIL_THROW_EXCEPTION(Error{}
<< ErrorString{"GetModuleHandleW failed."}
<< ErrorCodeWinLast{last_error});
}
FARPROC const nt_query_system_information_proc =
GetProcAddress(ntdll, "NtQuerySystemInformation");
if (!nt_query_system_information_proc)
{
DWORD const last_error = ::GetLastError();
HADESMEM_DETAIL_THROW_EXCEPTION(Error{}
<< ErrorString{"GetProcAddress failed."}
<< ErrorCodeWinLast{last_error});
}
using NtQuerySystemInformationPtr = NTSTATUS(
NTAPI*)(detail::winternl::SYSTEM_INFORMATION_CLASS system_information_class,
PVOID system_information,
ULONG system_information_length,
PULONG return_length);
auto const nt_query_system_information =
reinterpret_cast<NtQuerySystemInformationPtr>(
nt_query_system_information_proc);
std::vector<wchar_t> buffer(HADESMEM_DETAIL_MAX_PATH_UNICODE);
detail::winternl::SYSTEM_PROCESS_ID_INFORMATION process_id_info;
process_id_info.ProcessId =
reinterpret_cast<void*>(static_cast<DWORD_PTR>(process.GetId()));
process_id_info.ImageName.Buffer = buffer.data();
process_id_info.ImageName.Length = 0;
process_id_info.ImageName.MaximumLength = static_cast<USHORT>(buffer.size());
NTSTATUS const status =
nt_query_system_information(detail::winternl::SystemProcessIdInformation,
&process_id_info,
sizeof(process_id_info),
nullptr);
if (!NT_SUCCESS(status))
{
HADESMEM_DETAIL_THROW_EXCEPTION(
Error{} << ErrorString{"NtQuerySystemInformation failed."}
<< ErrorCodeWinStatus{status});
}
return {buffer.data(), buffer.data() + process_id_info.ImageName.Length / 2};
}
inline std::wstring GetPath(Process const& process)
{
return detail::QueryFullProcessImageNameW(process.GetHandle());
}
inline bool IsWoW64(Process const& process)
{
return detail::IsWoW64Process(process.GetHandle());
}
}
| 31.202532 | 80 | 0.670994 | [
"vector"
] |
5d16d60a4815aad82b93e7efdb3ca8d7cc38c797 | 9,803 | hpp | C++ | src/NumericalAlgorithms/DiscontinuousGalerkin/NumericalFluxes/Hll.hpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | src/NumericalAlgorithms/DiscontinuousGalerkin/NumericalFluxes/Hll.hpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | src/NumericalAlgorithms/DiscontinuousGalerkin/NumericalFluxes/Hll.hpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <algorithm>
#include <cstddef>
#include "DataStructures/DataBox/DataBoxTag.hpp"
#include "DataStructures/DataBox/Prefixes.hpp"
#include "DataStructures/Tensor/Tensor.hpp"
#include "Options/Options.hpp"
#include "Utilities/Gsl.hpp"
#include "Utilities/MakeWithValue.hpp"
#include "Utilities/TMPL.hpp"
namespace dg {
namespace NumericalFluxes {
/*!
* \ingroup DiscontinuousGalerkinGroup
* \ingroup NumericalFluxesGroup
* \brief Compute the HLL numerical flux.
*
* Let \f$U\f$ and \f$F^i(U)\f$ be the state vector of the system and its
* corresponding volume flux, respectively. Let \f$n_i\f$ be the unit normal to
* the interface. Defining \f$F_n(U) := n_i F^i(U)\f$, and denoting the
* corresponding projections of the numerical fluxes as \f${F_n}^*(U)\f$, the
* HLL flux \ref hll_ref "[1]" for each variable is
*
* \f{align*}
* {F_n}^*(U) = \frac{c_\text{max} F_n(U_\text{int}) -
* c_\text{min} F_n(U_\text{ext})}{c_\text{max} - c_\text{min}}
* - \frac{c_\text{min}c_\text{max}}{c_\text{max} - c_\text{min}}
* \left(U_\text{int} - U_\text{ext}\right)
* \f}
*
* where "int" and "ext" stand for interior and exterior, respectively.
* \f$c_\text{min}\f$ and \f$c_\text{max}\f$ are estimates on the minimum
* and maximum signal velocities bounding the interior-moving and
* exterior-moving wavespeeds that arise when solving the Riemann problem.
* Here we use the simple estimates \ref estimates_ref "[2]"
*
* \f{align*}
* c_\text{min} &= \text{min}\left( \lambda_1(U_\text{int}; n_\text{int}),
* \lambda_1(U_\text{ext}; n_\text{ext}), 0\right),\\
* c_\text{max} &= \text{max}\left( \lambda_N(U_\text{int}; n_\text{int}),
* \lambda_N(U_\text{ext}; n_\text{ext}), 0\right),
* \f}
*
* where \f$\lambda_1(U; n) \leq \lambda_2(U; n) \leq ... \leq
* \lambda_N(U; n)\f$ are the (ordered) characteristic speeds of the system.
* Note that the definitions above ensure that \f$c_\text{min} \leq 0\f$ and
* \f$c_\text{max} \geq 0\f$. Also, for either \f$c_\text{min} = 0\f$ or
* \f$c_\text{max} = 0\f$ (i.e. all characteristics move in the same direction)
* the HLL flux reduces to pure upwinding.
*
* \anchor hll_ref [1] A. Harten, P. D. Lax, B. van Leer, On Upstream
* Differencing and Godunov-Type Schemes for Hyperbolic Conservation Laws,
* SIAM Rev. [25 (1983) 35](https://doi.org/10.1137/1025002)
*
* \anchor estimates_ref [2] S. F. Davis, Simplified Second-Order Godunov-Type
* Methods, SIAM J. Sci. Stat. Comput.
* [9 (1988) 445](https://doi.org/10.1137/0909030)
*/
template <typename System>
struct Hll {
private:
using char_speeds_tag = typename System::char_speeds_tag;
using variables_tag = typename System::variables_tag;
public:
/// The minimum signal velocity bounding
/// the wavespeeds on one side of the interface.
struct MinSignalSpeed : db::SimpleTag {
using type = Scalar<DataVector>;
static std::string name() noexcept { return "MinSignalSpeed"; }
};
/// The maximum signal velocity bounding
/// the wavespeeds on one side of the interface.
struct MaxSignalSpeed : db::SimpleTag {
using type = Scalar<DataVector>;
static std::string name() noexcept { return "MaxSignalSpeed"; }
};
using package_tags = tmpl::append<
db::split_tag<db::add_tag_prefix<::Tags::NormalDotFlux, variables_tag>>,
db::split_tag<variables_tag>,
tmpl::list<MinSignalSpeed, MaxSignalSpeed>>;
using argument_tags =
tmpl::push_back<tmpl::append<db::split_tag<db::add_tag_prefix<
::Tags::NormalDotFlux, variables_tag>>,
db::split_tag<variables_tag>>,
char_speeds_tag>;
private:
template <typename VariablesTagList, typename NormalDoFluxTagList>
struct package_data_helper;
template <typename... VariablesTags, typename... NormalDotFluxTags>
struct package_data_helper<tmpl::list<VariablesTags...>,
tmpl::list<NormalDotFluxTags...>> {
static void function(
const gsl::not_null<Variables<package_tags>*> packaged_data,
const db::item_type<NormalDotFluxTags>&... n_dot_f_to_package,
const db::item_type<VariablesTags>&... u_to_package,
const db::item_type<char_speeds_tag>& characteristic_speeds) noexcept {
expand_pack((get<VariablesTags>(*packaged_data) = u_to_package)...);
expand_pack(
(get<NormalDotFluxTags>(*packaged_data) = n_dot_f_to_package)...);
get<MinSignalSpeed>(*packaged_data) = make_with_value<Scalar<DataVector>>(
characteristic_speeds[0],
std::numeric_limits<double>::signaling_NaN());
get<MaxSignalSpeed>(*packaged_data) = make_with_value<Scalar<DataVector>>(
characteristic_speeds[0],
std::numeric_limits<double>::signaling_NaN());
// This finds the min and max characteristic speeds at each grid point,
// which are used as estimates of the min and max signal speeds.
for (size_t s = 0; s < characteristic_speeds[0].size(); ++s) {
// This ensures that local_min_signal_speed <= 0.0
const double local_min_signal_speed = (*std::min_element(
characteristic_speeds.begin(), characteristic_speeds.end(),
[&s](const auto& a, const auto& b) { return a[s] < b[s]; }))[s];
get(get<MinSignalSpeed>(*packaged_data))[s] =
std::min(local_min_signal_speed, 0.0);
// Likewise, local_max_signal_speed >= 0.0
const double local_max_signal_speed = (*std::max_element(
characteristic_speeds.begin(), characteristic_speeds.end(),
[&s](const auto& a, const auto& b) { return a[s] < b[s]; }))[s];
get(get<MaxSignalSpeed>(*packaged_data))[s] =
std::max(local_max_signal_speed, 0.0);
}
}
};
template <typename NormalDotNumericalFluxTagList, typename VariablesTagList,
typename NormalDotFluxTagList>
struct call_operator_helper;
template <typename... NormalDotNumericalFluxTags, typename... VariablesTags,
typename... NormalDotFluxTags>
struct call_operator_helper<tmpl::list<NormalDotNumericalFluxTags...>,
tmpl::list<VariablesTags...>,
tmpl::list<NormalDotFluxTags...>> {
static void function(
const gsl::not_null<
db::item_type<NormalDotNumericalFluxTags>*>... n_dot_numerical_f,
const db::item_type<NormalDotFluxTags>&... n_dot_f_interior,
const db::item_type<VariablesTags>&... u_interior,
const db::item_type<MinSignalSpeed>& min_signal_speed_interior,
const db::item_type<MaxSignalSpeed>& max_signal_speed_interior,
const db::item_type<NormalDotFluxTags>&... minus_n_dot_f_exterior,
const db::item_type<VariablesTags>&... u_exterior,
const db::item_type<MinSignalSpeed>& min_signal_speed_exterior,
const db::item_type<MaxSignalSpeed>&
max_signal_speed_exterior) noexcept {
auto min_signal_speed = make_with_value<db::item_type<MinSignalSpeed>>(
min_signal_speed_interior,
std::numeric_limits<double>::signaling_NaN());
auto max_signal_speed = make_with_value<db::item_type<MaxSignalSpeed>>(
max_signal_speed_interior,
std::numeric_limits<double>::signaling_NaN());
for (size_t s = 0; s < min_signal_speed.begin()->size(); ++s) {
get(min_signal_speed)[s] = std::min(get(min_signal_speed_interior)[s],
get(min_signal_speed_exterior)[s]);
get(max_signal_speed)[s] = std::max(get(max_signal_speed_interior)[s],
get(max_signal_speed_exterior)[s]);
}
const DataVector one_over_cp_minus_cm =
1.0 / (get(max_signal_speed) - get(min_signal_speed));
const auto assemble_numerical_flux =
[&min_signal_speed, &max_signal_speed, &one_over_cp_minus_cm ](
const auto n_dot_num_f, const auto& n_dot_f_in, const auto& u_in,
const auto& minus_n_dot_f_ex, const auto& u_ex) noexcept {
for (size_t i = 0; i < n_dot_num_f->size(); ++i) {
(*n_dot_num_f)[i] = one_over_cp_minus_cm *
(get(max_signal_speed) * n_dot_f_in[i] +
get(min_signal_speed) * minus_n_dot_f_ex[i] -
get(max_signal_speed) * get(min_signal_speed) *
(u_in[i] - u_ex[i]));
}
return nullptr;
};
expand_pack(assemble_numerical_flux(n_dot_numerical_f, n_dot_f_interior,
u_interior, minus_n_dot_f_exterior,
u_exterior)...);
}
};
public:
using options = tmpl::list<>;
static constexpr OptionString help = {"Computes the HLL numerical flux."};
// clang-tidy: google-runtime-references
void pup(PUP::er& /*p*/) noexcept {} // NOLINT
template <class... Args>
void package_data(const Args&... args) const noexcept {
package_data_helper<
db::split_tag<variables_tag>,
db::split_tag<db::add_tag_prefix<::Tags::NormalDotFlux,
variables_tag>>>::function(args...);
}
template <class... Args>
void operator()(const Args&... args) const noexcept {
call_operator_helper<
db::split_tag<
db::add_tag_prefix<::Tags::NormalDotNumericalFlux, variables_tag>>,
db::split_tag<variables_tag>,
db::split_tag<db::add_tag_prefix<::Tags::NormalDotFlux,
variables_tag>>>::function(args...);
}
};
} // namespace NumericalFluxes
} // namespace dg
| 44.157658 | 80 | 0.645415 | [
"vector"
] |
5d2579e774b1a8a0549bc4a219a42837e405daae | 3,600 | cpp | C++ | assignments/tp01/primera-entrega.cpp | rnsavinelli/aed | 747f784b28a4891e329d7045f36c59681bcbb5e7 | [
"MIT"
] | null | null | null | assignments/tp01/primera-entrega.cpp | rnsavinelli/aed | 747f784b28a4891e329d7045f36c59681bcbb5e7 | [
"MIT"
] | null | null | null | assignments/tp01/primera-entrega.cpp | rnsavinelli/aed | 747f784b28a4891e329d7045f36c59681bcbb5e7 | [
"MIT"
] | null | null | null | /* primera-entrega.cpp
*
* Copyright (c) 2020 Savinelli Roberto Nicolás <rsavinelli@est.frba.utn.edu.ar>
*
* 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 <iostream>
#include <fstream>
/* ARCHIVOS PARA LEER DATOS */
#define PRODUCTS_FILE "products.txt"
#define COLOURS_FILE "colours.txt"
#define PRODUCTION_FILE "production.txt"
/* MACROS DEFINIDAS SEGÚN CONSIGNA */
#define N_PRODUCTS 6
#define N_COLOURS 3
#define ERROR -1
//#define NDEBUG 1
using namespace std;
/* ESTRUCTURAS CON UTILIDAD GENÉRICA */
struct answer {
float value;
string description;
};
struct matrixdata {
int value;
unsigned int x;
unsigned int y;
};
struct vectordata {
int value;
unsigned int index;
};
int main(void)
{
/* CATÁLOGO ***************************************************************
* ************************************************************************/
string products[N_PRODUCTS]
string colours[N_COLOURS];
/* products[N_PRODUCTS] almacena en un vector de strings los productos
* del archivo "products.txt" en el orden en que son leídos.
* colours[N_COLOURS] almacena en un vector de strings los colores del
* archivo "colours.txt" en el orden en que son leídos. */
string catalogue[N_PRODUCTS][N_COLOURS];
/* catalogue[N_PRODUCTS][N_COLOURS] almacena todas las combinaciones de
* producto-color posibles en una matriz de strings.
* Esto es, suponiendo la posición (i, j) tenemos:
* products_and_colours[i][j] == "producto_i color_j"
* ************************************************************************/
/* DATOS DE PRODUCCIÓN ****************************************************
* ************************************************************************/
int production[N_PRODUCTS][N_COLOURS];
/* production[N_PRODUCTS][N_COLOURS] almacena en una matriz de ints las
* cantidades producidas de cada producto en cada color. Este enfoque nos
* permite,independientemente del orden en que los colores aparezcan en el
* archivo, poder interpretar la producción.*/
int production_batch[N_PRODUCTS][N_COLOURS];
/* production_batch[N_PRODUCTS][N_COLOURS] almacena en una matriz de ints la
* cantidad de lotes de producción para cada combinación producto-color.
* Es decir, por cada ocurrencia de "cantidad producida" de un combinación,
* se incrementa en uno la misma significando los lotes.
* ************************************************************************/
return 0;
}
| 35.294118 | 81 | 0.640556 | [
"vector"
] |
5d25892767f7dcbbd659605283d208c601e2d93a | 1,157 | hpp | C++ | src/CL_MapMode_stub.hpp | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | 1 | 2020-10-24T14:48:04.000Z | 2020-10-24T14:48:04.000Z | src/CL_MapMode_stub.hpp | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | null | null | null | src/CL_MapMode_stub.hpp | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | null | null | null | /* ocaml-clanlib: OCaml bindings to the ClanLib SDK
Copyright (C) 2013 Florent Monnier
This software is provided "AS-IS", without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely. */
#include <ClanLib/Display/Render/graphic_context.h>
#include "cl_caml_incs.hpp"
#ifndef _CL_MAPMODE_INC
#define _CL_MAPMODE_INC
// Conversions of enum CL_MapMode:
static const CL_MapMode caml_table_CL_MapMode[] = {
cl_map_2d_upper_left,
cl_map_2d_lower_left,
cl_user_projection,
};
#define CL_MapMode_val(v) \
(caml_table_CL_MapMode[Long_val(v)])
value
Val_CL_MapMode(CL_MapMode e)
{
switch (e)
{
case cl_map_2d_upper_left: return Val_long(0);
case cl_map_2d_lower_left: return Val_long(1);
case cl_user_projection: return Val_long(2);
default: caml_failwith("CL_MapMode");
}
caml_failwith("CL_MapMode");
}
#endif // _CL_MAPMODE_INC
// vim: sw=4 sts=4 ts=4 et
| 26.295455 | 71 | 0.73898 | [
"render"
] |
5d25bf6f053a2f44b5c1ae287dd1300626177988 | 10,256 | cpp | C++ | tester/testmain.cpp | vs49688/nimroda | 6a86742affac391ee39c75ed184e7c9f0c028483 | [
"Apache-2.0"
] | null | null | null | tester/testmain.cpp | vs49688/nimroda | 6a86742affac391ee39c75ed184e7c9f0c028483 | [
"Apache-2.0"
] | null | null | null | tester/testmain.cpp | vs49688/nimroda | 6a86742affac391ee39c75ed184e7c9f0c028483 | [
"Apache-2.0"
] | null | null | null | /*
* Nimrod/A Native Optimisation Library for Nimrod/OK
* https://github.com/vs49688/nimroda
*
* SPDX-License-Identifier: Apache-2.0
* Copyright (c) 2019 Zane van Iperen
*
* 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.
*/
#if 0
#include <allocators>
#include "nimroda/cxx/CoordinateVector.hpp"
#include "nimroda/cxx/Nimrod.hpp"
using namespace NimrodA;
template class CoordinateVector<double, std::allocator<double>>;
extern "C" void debug_hack(nimroda_instance_t *instance)
{
Nimrod *pNimrod = reinterpret_cast<Nimrod*>(instance->__cpp);
typedef NimrodAllocator<double> NimDouble;
NimDouble dalloc = pNimrod->allocator;
DoubleVector<> vectorStandard(10, 1.0);
DoubleVector<NimDouble> vectorNimrod(10, 1.0, pNimrod->allocator);
DoubleVector<>::String sString = vectorStandard.toString();
DoubleVector<NimDouble>::String nString = vectorNimrod.toString();
__debugbreak();
}
#endif
#if 0
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include "nimroda/nimroda_ip.h"
#include "nimroda/mots2/TabuSearch.hpp"
#include "zdt4.hpp"
using namespace NimrodA;
static void mots2_stm_test(void)
{
MOTS2::STMContainer stm(2);
stm.add(MOTS2::Point::create(3, 0));
stm.add(MOTS2::Point::create(3, 1));
stm.add(MOTS2::Point::create(3, 2));
// stm should only contain (1, 1) and (2, 2)
MOTS2::Point::Ref tabuPoint = MOTS2::Point::create(3, 1);
bool isTabu = stm.isTabu(tabuPoint);
assert(isTabu);
}
static void mots2_stm_test_close_tabu()
{
using Point = MOTS2::Point;
MOTS2::STMContainer stm(1);
stm.add(Point::create(1, 0.69999999999999996));
Point::Ref pt = Point::create(1, 0.70000000000000007);
/* Numbers this close together had issues when using the old unordered_map
* implementation of STMContainer. */
bool isTabu = stm.isTabu(pt);
assert(isTabu);
}
static void mots2_mtm_test()
{
//DummyObjective obj(MOTS2::Point::create(3, 0.0), MOTS2::Point::create(3, 1.0));
//MOTS2::MTMContainer mtm(obj);
//mtm.add(MOTS2::Point::create(3, 0));
//mtm.add(MOTS2::Point::create(3, 1));
//mtm.add(MOTS2::Point::create(3, 2));
//
//for(const MOTS2::Point::ConstRef& p : mtm)
//{
// const MOTS2::Point& pt = *p;
//
// printf("(%lf, %lf, %lf)\n", pt[0], pt[1], pt[2]);
//}
}
static void mots2_ak_test()
{
auto pt = MOTS2::Point::create(3, 1.0);
auto pt2 = MOTS2::Point::create(3, 1.0);
//std::unordered_set<MOTS2::Point::ConstRef> kek;
MOTS2::PointSet kek;
/* Check for duplicates */
kek.add(pt);
kek.add(pt2);
assert(kek.size() == 1);
/* See if addition works */
auto pt3 = MOTS2::Point::create(3, 2.0);
kek.add(pt3);
assert(kek.size() == 2);
}
static int dominates(const MOTS2::Point::ConstRef& pt1, const MOTS2::Point::ConstRef& pt2, MOTS2::ObjectiveFunction& obj)
{
/* Fail condition - bug */
if(pt1->length != pt2->length)
throw std::runtime_error("Point::dominates(): Incompatible points.");
size_t numGreater = 0, numLess = 0;
MOTS2::Point::ConstRef obj1 = obj.evaluate(pt1);
MOTS2::Point::ConstRef obj2 = obj.evaluate(pt2);
/* This is a fail condition, if we get here, there's a bug in the code. */
if(!obj1 || !obj2)
throw std::runtime_error("Point::dominates(): Error retrieving evaluation results: Point not evaluated.");
for(size_t i = 0; i < obj1->length; ++i)
{
double o1 = (*obj1)[i];
double o2 = (*obj2)[i];
if(o1 > o2)
++numGreater;
else if(o1 < o2)
++numLess;
//if((o1 - o2) > 0)
// ++numGreater;
//else if((o1 - o2) < 0)
// ++numLess;
}
/* No component is greater and at least one component is smaller. */
if(numGreater > 0 && numLess == 0)
return -1; /* pt1 dominates pt2 */
else if(numLess > 0 && numGreater == 0)
return 1; /* pt2 dominates pt1 */
else
return 0;
}
static bool addIfNotDominated(MOTS2::MTMContainer& mtm, const MOTS2::Point::ConstRef& pt, MOTS2::ObjectiveFunction& obj)
{
for(const MOTS2::Point::ConstRef& point : mtm)
{
int dom = dominates(point, pt, obj);
printf("dom = %d\n", dom);
if(dom == 1)
return false;
}
return mtm.add(pt), true;
}
static void dominance_test()
{
MOTS2::Point::ConstRef startPoint = MOTS2::Point::create(10, 0);
std::vector<MOTS2::Point::Ref> tempSampled(6);
tempSampled[0] = MOTS2::Point::create(10, 0);
(*(tempSampled[0]))[7] = -1;
tempSampled[1] = MOTS2::Point::create(10, 0);
(*(tempSampled[1]))[1] = 1;
tempSampled[2] = MOTS2::Point::create(10, 0);
(*(tempSampled[2]))[6] = -1;
tempSampled[3] = MOTS2::Point::create(10, 0);
(*(tempSampled[3]))[8] = -1;
tempSampled[4] = MOTS2::Point::create(10, 0);
(*(tempSampled[4]))[5] = -1;
tempSampled[5] = MOTS2::Point::create(10, 0);
(*(tempSampled[5]))[0] = 0.100;
ZDT4Adapter zdt4Adapter;
MOTS2::MTMContainer mtm(zdt4Adapter);
mtm.add(startPoint);
int selfDominates = dominates(startPoint, startPoint, zdt4Adapter);
//MOTS2::PointSet tempSampledDominated;
//MOTS2::PointSet tempSampledDominat;
//
//int i = 0;
//for(const MOTS2::Point::ConstRef& pt : tempSampled)
//{
// if(i == 5)
// {
// printf("");
// }
// if(/*m_MTM.addIfNotDominated(pt)*/addIfNotDominated(mtm, pt, zdt4Adapter))
// tempSampledDominat.add(pt);
// else
// tempSampledDominated.add(pt);
//
// ++i;
//}
}
MOTS2::Point::Ref createPointV(size_t n, va_list ap)
{
std::vector<double> pt(n);
for(size_t i = 0; i < n; ++i)
pt[i] = va_arg(ap, double);
return MOTS2::Point::create(pt);
}
MOTS2::Point::Ref createPoint(size_t n, ...)
{
MOTS2::Point::Ref pt;
va_list ap;
va_start(ap, n);
pt = createPointV(n, ap);
va_end(ap);
return pt;
}
static void mots2_set_adding_test(void)
{
/* These are all the points generated by the initial Hooke&Jeeves move for ZDT4,
* assuming (0, 0, 0, 0, 0, 0, 0, 0, 0, 0) is the starting point. */
MOTS2::Point::Ref points[20];
size_t pt = 0;
points[pt++] = createPoint(10, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, -0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0);
points[pt++] = createPoint(10, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0);
// pt = 20
MOTS2::PointSet set;
for(size_t i = 0; i < pt; ++i)
{
set.add(points[i]);
}
assert(set.size() == pt);
}
int main2(int argc, char **argv);
int main3(int argc, char **argv)
{
return main2(argc, argv);
//{
// MOTS2::ConfigurationSettings settings;
//
// settings.nVar = 3;
//
// settings.setUniformStartingStep(0.5);
//
// settings.starting_point = MOTS2::Point::create(3, 0);
// settings.starting_point->operator[](0) = 0;
// settings.starting_point->operator[](1) = 1;
// settings.starting_point->operator[](2) = 2;
//
// settings.write("configuration-mots2.txt");
//}
//
//{
// MOTS2::ConfigurationSettings settings("configuration-mots2.txt");
// settings.dump(stdout);
//}
//nimroda_state_t state;
//
//printf("sizeof(nimroda_state_t) = %u\n", (uint32_t)sizeof(nimroda_state_t));
//printf("sizeof(nimroda_variable_attributes_t) = %u\n", (uint32_t)sizeof(nimroda_variable_attributes_t));
//printf("sizeof(nimroda_optim_status_t) = %u\n", (uint32_t)sizeof(nimroda_optim_status_t));
//printf("sizeof(state.config) = %u\n", (uint32_t)sizeof(state.config));
mots2_stm_test();
mots2_stm_test_close_tabu();
mots2_mtm_test();
mots2_ak_test();
dominance_test();
mots2_set_adding_test();
return 0;
}
#endif
#include "nimroda/nimroda.h"
NIMRODA_API void debugHack(nimroda_instance_t *nimrod);
extern "C" void debug_hack(nimroda_instance_t *instance)
{
//debugHack(instance);
}
//#include "nimroda/cxx/Nimrod.hpp"
//
//NIMRODA_API void debugHack(nimroda_instance_t *nimrod)
//{
// Nimrod *nim = (Nimrod*)nimrod->__cpp;
//
// PointSet::Set set(nim->allocator);
//
// Point::_DoubleVector vec(10, nim->allocator);
// vec[0] = 0.7309677873767;
// vec[1] = -2.5946358432851;
// vec[2] = 1.3741742535011;
// vec[3] = 0.5043700511763;
// vec[4] = 0.975452777972;
// vec[5] = -1.6678160052335;
// vec[6] = -1.1481081525928;
// vec[7] = 4.8484154019981;
// vec[8] = 3.7918251787248;
// vec[9] = 4.4124917948211;
// set.insert(nim->createPoint(vec));
//
// vec[0] = 0.74;
// set.insert(nim->createPoint(vec));
//
// int x = 0;
//} | 27.42246 | 121 | 0.627145 | [
"vector"
] |
5d2d3d6566cf6292b307bfadc1d93f3969c5cd2c | 3,922 | cpp | C++ | VC2010Samples/MFC/general/propdlg/propdlg.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2010Samples/MFC/general/propdlg/propdlg.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2010Samples/MFC/general/propdlg/propdlg.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // propdlg.cpp : Defines the class behaviors for the application.
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.
#include "stdafx.h"
#include "propdlg.h"
#include "shapeobj.h"
#include "colorpge.h"
#include "stylepge.h"
#include "preview.h"
#include "propsht.h"
#include "propsht2.h"
#include "minifrm.h"
#include "mainfrm.h"
#include "shapedoc.h"
#include "shapesvw.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPropDlgApp
BEGIN_MESSAGE_MAP(CPropDlgApp, CWinApp)
//{{AFX_MSG_MAP(CPropDlgApp)
ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPropDlgApp construction
CPropDlgApp::CPropDlgApp()
{
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CPropDlgApp object
CPropDlgApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CPropDlgApp initialization
BOOL CPropDlgApp::InitInstance()
{
// It is very important to have consistent gray dialogs in this
// application. If CTL3D32.DLL cannot be loaded, then non-3d
// gray dialogs are used instead.
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register document templates
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_SHAPESTYPE,
RUNTIME_CLASS(CShapesDoc),
RUNTIME_CLASS(CMDIChildWnd), // standard MDI child frame
RUNTIME_CLASS(CShapesView));
AddDocTemplate(pDocTemplate);
// create main MDI Frame window
CMainFrame* pMainFrame = new CMainFrame;
if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
{
// free the memory
delete pMainFrame;
return FALSE;
}
m_pMainWnd = pMainFrame;
// enable file manager drag/drop and DDE Execute open
EnableShellOpen();
RegisterShellFileTypes(TRUE);
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
m_pMainWnd->DragAcceptFiles();
pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->UpdateWindow();
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA
// Implementation
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//{{AFX_MSG(CAboutDlg)
// No message handlers
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
// App command to run the dialog
void CPropDlgApp::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();
}
/////////////////////////////////////////////////////////////////////////////
// CPropDlgApp commands
| 24.980892 | 77 | 0.663437 | [
"object",
"3d"
] |
5d30ba160736c2868aea267ab8249ea2dbb20a75 | 1,581 | cc | C++ | code/render/frame/framealgorithm.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/render/frame/framealgorithm.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/render/frame/framealgorithm.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// framealgorithm.cc
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "framealgorithm.h"
#include "algorithm/algorithmbase.h"
using namespace Core;
namespace Frame
{
__ImplementClass(Frame::FrameAlgorithm, 'FRAL', Core::RefCounted);
//------------------------------------------------------------------------------
/**
*/
FrameAlgorithm::FrameAlgorithm()
{
// empty
}
//------------------------------------------------------------------------------
/**
*/
FrameAlgorithm::~FrameAlgorithm()
{
// empty
}
//------------------------------------------------------------------------------
/**
*/
void
FrameAlgorithm::Discard()
{
this->algorithm->Discard();
this->algorithm = 0;
}
//------------------------------------------------------------------------------
/**
*/
void
FrameAlgorithm::Begin()
{
this->algorithm->Begin();
}
//------------------------------------------------------------------------------
/**
*/
void
FrameAlgorithm::Render(IndexT frameIndex)
{
this->algorithm->Render();
}
//------------------------------------------------------------------------------
/**
*/
void
FrameAlgorithm::End()
{
this->algorithm->End();
}
//------------------------------------------------------------------------------
/**
*/
void
FrameAlgorithm::OnDisplayResize(SizeT width, SizeT height)
{
this->algorithm->OnDisplayResized(width, height);
}
} // namespace Frame | 20.802632 | 80 | 0.368121 | [
"render"
] |
5d363aad774d8bf939e2b9a5b70435f5c00111cb | 5,111 | cpp | C++ | raspberry_pi_build/program/resource_test.cpp | santais/iotivity_1.1.0 | 611d90f537fafd63f8da2e2df90cf197ad0235fe | [
"Apache-2.0"
] | null | null | null | raspberry_pi_build/program/resource_test.cpp | santais/iotivity_1.1.0 | 611d90f537fafd63f8da2e2df90cf197ad0235fe | [
"Apache-2.0"
] | null | null | null | raspberry_pi_build/program/resource_test.cpp | santais/iotivity_1.1.0 | 611d90f537fafd63f8da2e2df90cf197ad0235fe | [
"Apache-2.0"
] | 1 | 2019-07-26T08:18:26.000Z | 2019-07-26T08:18:26.000Z | #include "RPIRCSController.h"
#include "RPIRCSResourceObject.h"
#include "RCSRequest.h"
#include "ConfigurationResource.h"
#include "MaintenanceResource.h"
#include "LightResource.h"
#include "ButtonResource.h"
#include "TVResource.h"
#include "resource_types.h"
#include "OCPlatform.h"
#include "OCApi.h"
#include <signal.h>
#include <unistd.h>
#define UNUSED __attribute__((__unused__))
ConfigurationResource::Ptr g_configurationResource;
MaintenanceResource::Ptr g_maintenanceResource;
/*
const static std::vector<std::string> g_lightTypes = {OIC_DEVICE_LIGHT, OIC_TYPE_LIGHT_DIMMING,
OIC_TYPE_BINARY_SWITCH};
const static std::vector<std::string> g_buttonTypes ={OIC_DEVICE_BUTTON};
const static std::vector<std::string> g_interfaces = {OC_RSRVD_INTERFACE_DEFAULT};
const static std::vector<std::string> g_buttonInterfaces = {OC_RSRVD_INTERFACE_DEFAULT, OC_RSRVD_INTERFACE_READ};
RPIRCSResourceObject::Ptr g_lightResource;
RPIRCSResourceObject::Ptr g_buttonResource;
*/
LightResource g_lightResource;
ButtonResource g_buttonResource;
TVResource g_tvResource;
int g_quitFlag = false;
void handleSigInt(int signum)
{
if (signum == SIGINT)
{
g_quitFlag = 1;
}
}
void setResponse(const RCSRequest& request, RCSResourceAttributes& attributes)
{
std::cout << "Got a get Request for resource with uri: " << request.getResourceUri() << std::endl;
for(const auto& attr : attributes)
{
std::cout << "\tkey : " << attr.key() << "\n\tvalue : "
<< attr.value().toString() << std::endl;
}
//return RCSSetResponse::defaultAction();
}
void bootstrapCallback(const RCSResourceAttributes &attrs)
{
std::cout << __func__ << std::endl;
}
/*
void createLightResource()
{
g_lightResource = std::make_shared<RPIRCSResourceObject>(RPIRCSResourceObject( "/a/light", std::move(g_lightTypes), std::move(g_interfaces)));
//std::make_shared<RPIRCSResourceObject>( RPIRCSResourceObject { "/a/light", std::move(g_types), std::move(g_interfaces) } ) ;
g_lightResource->createResource(true, true, false);
// Add attributes
RCSResourceAttributes::Value value((int) 0);
g_lightResource->addAttribute("brightness", value);
RCSResourceAttributes::Value power((bool) false);
g_lightResource->addAttribute("power", power);
std::cout << "Resource has been created" << std::endl;
g_lightResource->setReqHandler(setResponse);
std::cout << "Types are: " << std::endl;
for(std::string& type : g_lightResource->getTypes())
{
std::cout << "\t " << type << std::endl;
}
std::cout << "Interfaces are: " << std::endl;
for(std::string& interface : g_lightResource->getInterfaces())
{
std::cout << "\t " << interface << std::endl;
}
}
void createButtonResource()
{
g_buttonResource = std::make_shared<RPIRCSResourceObject>(RPIRCSResourceObject( "/a/button", std::move(g_buttonTypes), std::move(g_buttonInterfaces)));
//std::make_shared<RPIRCSResourceObject>( RPIRCSResourceObject { "/a/light", std::move(g_types), std::move(g_interfaces) } ) ;
g_buttonResource->createResource(true, true, false);
// Add attributes
RCSResourceAttributes::Value value((bool) 0);
g_buttonResource->addAttribute("state", value);
std::cout << "Resource has been created" << std::endl;
g_buttonResource->setReqHandler(setResponse);
std::cout << "Types are: " << std::endl;
for(std::string& type : g_buttonResource->getTypes())
{
std::cout << "\t " << type << std::endl;
}
std::cout << "Interfaces are: " << std::endl;
for(std::string& interface : g_buttonResource->getInterfaces())
{
std::cout << "\t " << interface << std::endl;
}
}*/
int main()
{
std::cout << "Starting test program" << std::endl;
// Create new light resource
g_lightResource = LightResource(3, "/rpi/light/1");
g_lightResource.createResource();
// Create new button resource
g_buttonResource = ButtonResource(3, "/rpi/button/1");
g_buttonResource.createResource();
// Create new TV resource
g_tvResource = TVResource("/rpi/tv/1");
g_tvResource.createResource();
// Setup the configuration resource
g_configurationResource = ConfigurationResource::Ptr(ConfigurationResource::getInstance());
g_configurationResource->bootstrap(bootstrapCallback);
// Setup the maintenance resource
g_maintenanceResource = MaintenanceResource::Ptr(MaintenanceResource::getInstance());
g_maintenanceResource->setConfigurationResource(g_configurationResource);
g_maintenanceResource->createResource();
// Enable prsence
if(OCStartPresence(OC_MAX_PRESENCE_TTL_SECONDS - 1) != OC_STACK_OK)
{
std::cerr << "Unable to start presence" << std::endl;
}
std::cout << "Setup completed" << std::endl;
signal(SIGINT, handleSigInt);
while(!g_quitFlag)
{
if(OCProcess() != OC_STACK_OK)
{
return 0;
}
std::this_thread::sleep_for(std::chrono::milliseconds(200));
}
return 0;
}
| 30.242604 | 155 | 0.68245 | [
"vector"
] |
5d4304a99450e381aa6c7f05a516288fdc739ea2 | 320 | cpp | C++ | 1101-9999/1557. Minimum Number of Vertices to Reach All Nodes.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1101-9999/1557. Minimum Number of Vertices to Reach All Nodes.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1101-9999/1557. Minimum Number of Vertices to Reach All Nodes.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | class Solution
{
public:
vector<int> findSmallestSetOfVertices(int n, vector<vector<int>> &edges)
{
vector<int> f(n, 0);
for (auto &edge : edges)
{
f[edge[1]]++;
}
vector<int> ret;
for (int i = 0; i < n; ++i)
{
if (!f[i])
ret.push_back(i);
}
return ret;
}
}; | 16.842105 | 74 | 0.5 | [
"vector"
] |
5d4fd06d2bd1ba54ed8f8437c6a1f8a5ebf5af97 | 2,918 | hpp | C++ | tau/TauEngine/include/renderer/BatchRenderer.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | tau/TauEngine/include/renderer/BatchRenderer.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | tau/TauEngine/include/renderer/BatchRenderer.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | #pragma once
#include <Objects.hpp>
#include <Safeties.hpp>
#include "DLL.hpp"
#include "Color.hpp"
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <glm/mat4x4.hpp>
class IGraphicsInterface;
class ICommandList;
class IResource;
class TAU_DLL BatchRenderer final
{
DELETE_CONSTRUCT(BatchRenderer);
DELETE_DESTRUCT(BatchRenderer);
DELETE_CM(BatchRenderer);
public:
static void init(IGraphicsInterface& gi, ICommandList& cmdList) noexcept;
static void flush() noexcept;
static void beginBatch(NullableRef<ICommandList> cmdList);
static void endBatch();
static void drawEquilateralTriangle(glm::vec2 centerPosition, float radius, RGBAColor color) noexcept;
static void drawEquilateralTriangle(glm::vec3 centerPosition, float radius, RGBAColor color) noexcept;
static void drawEquilateralTriangle(glm::vec2 centerPosition, float radius, float rotation, RGBAColor color) noexcept;
static void drawEquilateralTriangle(glm::vec3 centerPosition, float radius, float rotation, RGBAColor color) noexcept;
static void drawQuad(const glm::mat4& transform, RGBAColor color) noexcept;
static void drawQuad(const glm::mat4& transform, NullableRef<IResource>& texture, RGBAColor tint = { 255, 255, 255, 255 }) noexcept;
static void drawQuad(glm::vec2 position, glm::vec2 size, RGBAColor color) noexcept;
static void drawQuad(glm::vec3 position, glm::vec2 size, RGBAColor color) noexcept;
static void drawQuad(glm::vec2 position, glm::vec2 size, const NullableRef<IResource>& texture, RGBAColor tint = { 255, 255, 255, 255 }) noexcept;
static void drawQuad(glm::vec3 position, glm::vec2 size, const NullableRef<IResource>& texture, RGBAColor tint = { 255, 255, 255, 255 }) noexcept;
static void drawQuad(glm::vec2 position, glm::vec2 size, float rotation, RGBAColor color) noexcept;
static void drawQuad(glm::vec3 position, glm::vec2 size, float rotation, RGBAColor color) noexcept;
static void drawQuad(glm::vec2 position, glm::vec2 size, float rotation, const NullableRef<IResource>& texture, RGBAColor tint = { 255, 255, 255, 255 }) noexcept;
static void drawQuad(glm::vec3 position, glm::vec2 size, float rotation, const NullableRef<IResource>& texture, RGBAColor tint = { 255, 255, 255, 255 }) noexcept;
static void drawCircle(glm::vec2 centerPosition, float radius, uSys outerVertexCount, RGBAColor color) noexcept;
static void drawCircle(glm::vec3 centerPosition, float radius, uSys outerVertexCount, RGBAColor color) noexcept;
static void drawCircle(glm::vec2 centerPosition, float radius, uSys outerVertexCount, const NullableRef<IResource>& texture, RGBAColor color = { 255, 255, 255, 255 }) noexcept;
static void drawCircle(glm::vec3 centerPosition, float radius, uSys outerVertexCount, const NullableRef<IResource>& texture, RGBAColor color = { 255, 255, 255, 255 }) noexcept;
};
| 55.056604 | 180 | 0.758739 | [
"transform"
] |
5d5171f7969372b9b3ded88f887d4480edfb7781 | 2,663 | cpp | C++ | test/TestData/TestInitializers.cpp | alexweav/BackpropFramework | 2de396628180db1e6535037663497f9814e83039 | [
"MIT"
] | 1 | 2017-10-25T07:04:30.000Z | 2017-10-25T07:04:30.000Z | test/TestData/TestInitializers.cpp | alexweav/BackpropFramework | 2de396628180db1e6535037663497f9814e83039 | [
"MIT"
] | 21 | 2017-08-21T23:16:34.000Z | 2018-06-04T00:53:13.000Z | test/TestData/TestInitializers.cpp | alexweav/BackpropFramework | 2de396628180db1e6535037663497f9814e83039 | [
"MIT"
] | null | null | null | #include "TestData.h"
TEST(InitializerTests, ZeroInitGivesScalarZero) {
DataObject zeroScalar = Initializers::Zeros();
EXPECT_EQ(zeroScalar.Dim(), 0);
EXPECT_EQ(zeroScalar.Shape(), std::vector<int64_t>());
EXPECT_FLOAT_EQ(zeroScalar.ToScalar(), 0.0);
zeroScalar = Initializers::Zeros({});
EXPECT_EQ(zeroScalar.Dim(), 0);
EXPECT_EQ(zeroScalar.Shape(), std::vector<int64_t>());
EXPECT_FLOAT_EQ(zeroScalar.ToScalar(), 0.0);
}
TEST(InitializerTests, ZeroInitGivesMatrixZero) {
DataObject zeroMatrix = Initializers::Zeros(2, 3);
EXPECT_EQ(zeroMatrix.Dim(), 2);
EXPECT_EQ(zeroMatrix.Shape(), std::vector<int64_t>({2, 3}));
EXPECT_EQ(zeroMatrix.ToMatrix(), Eigen::MatrixXf::Zero(2, 3));
zeroMatrix = Initializers::Zeros({2, 3});
EXPECT_EQ(zeroMatrix.Dim(), 2);
EXPECT_EQ(zeroMatrix.Shape(), std::vector<int64_t>({2, 3}));
EXPECT_EQ(zeroMatrix.ToMatrix(), Eigen::MatrixXf::Zero(2, 3));
}
TEST(InitializerTests, OnesInitGivesScalarOne) {
DataObject one = Initializers::Ones();
EXPECT_EQ(one.Dim(), 0);
EXPECT_EQ(one.Shape(), std::vector<int64_t>());
EXPECT_FLOAT_EQ(one.ToScalar(), 1.0);
one = Initializers::Ones({});
EXPECT_EQ(one.Dim(), 0);
EXPECT_EQ(one.Shape(), std::vector<int64_t>());
EXPECT_FLOAT_EQ(one.ToScalar(), 1.0);
}
TEST(InitializerTests, OnesInitGivesMatrixOnes) {
DataObject ones = Initializers::Ones(2, 3);
EXPECT_EQ(ones.Dim(), 2);
EXPECT_EQ(ones.Shape(), std::vector<int64_t>({2, 3}));
EXPECT_EQ(ones.ToMatrix(), Eigen::MatrixXf::Constant(2, 3, 1.0));
ones = Initializers::Ones({2, 3});
EXPECT_EQ(ones.Dim(), 2);
EXPECT_EQ(ones.Shape(), std::vector<int64_t>({2, 3}));
EXPECT_EQ(ones.ToMatrix(), Eigen::MatrixXf::Constant(2, 3, 1.0));
}
TEST(InitializerTests, ConstantInitGivesScalarConstant) {
DataObject two = Initializers::Constant(2.0);
EXPECT_EQ(two.Dim(), 0);
EXPECT_EQ(two.Shape(), std::vector<int64_t>());
EXPECT_FLOAT_EQ(two.ToScalar(), 2.0);
two = Initializers::Constant({}, 2.0);
EXPECT_EQ(two.Dim(), 0);
EXPECT_EQ(two.Shape(), std::vector<int64_t>());
EXPECT_FLOAT_EQ(two.ToScalar(), 2.0);
}
TEST(Initializertests, ConstantInitGivesMatrixConstant) {
DataObject twos = Initializers::Constant(2, 3, 2.0);
EXPECT_EQ(twos.Dim(), 2);
EXPECT_EQ(twos.Shape(), std::vector<int64_t>({2, 3}));
EXPECT_EQ(twos.ToMatrix(), Eigen::MatrixXf::Constant(2, 3, 2.0));
twos = Initializers::Constant({2, 3}, 2.0);
EXPECT_EQ(twos.Dim(), 2);
EXPECT_EQ(twos.Shape(), std::vector<int64_t>({2, 3}));
EXPECT_EQ(twos.ToMatrix(), Eigen::MatrixXf::Constant(2, 3, 2.0));
}
| 39.161765 | 69 | 0.665039 | [
"shape",
"vector"
] |
5d55b51421891482a4bc90f8e2e4ba2396c5b720 | 4,334 | cpp | C++ | src/control_a/src/velocity_handler.cpp | METUrone/ROSAPI2 | c66e6be32504ee4a88f4e88eca2418d464c5bcf2 | [
"MIT"
] | null | null | null | src/control_a/src/velocity_handler.cpp | METUrone/ROSAPI2 | c66e6be32504ee4a88f4e88eca2418d464c5bcf2 | [
"MIT"
] | null | null | null | src/control_a/src/velocity_handler.cpp | METUrone/ROSAPI2 | c66e6be32504ee4a88f4e88eca2418d464c5bcf2 | [
"MIT"
] | null | null | null | #include "control_a/velocity_handler.hpp"
#include "math.h"
#include "vector"
struct velocity{
double x;
double y;
double z;
};
std::vector<velocity> velocities;
ros::ServiceClient hiz_client;
UAVvel::UAVvel(ros::NodeHandle& _n){
n = _n;
odom_client = n.serviceClient<control_a::odom_srv>("/control/odom");
takeoff_land_client = n.serviceClient<control_a::takeoff_land>("/control/takeoff_land");
hiz_client = n.serviceClient<control_a::hiz>("/control/hiz");
}
nav_msgs::Odometry UAVvel::getPosition(){
control_a::odom_srv srv_msg;
odom_client.call(srv_msg);
return srv_msg.response.odom;
}
void UAVvel::giveVelocity(double x, double y, double z){
control_a::hiz vel_command;
vel_command.request.twist.twist.linear.x = x;
vel_command.request.twist.twist.linear.y = y;
vel_command.request.twist.twist.linear.z = z;
hiz_client.call(vel_command);
}
void UAVvel::takeoff(double x, double y, double z, double yaw){
control_a::takeoff_land srv_msg;
srv_msg.request.isTakeoff = true;
srv_msg.request.pose.pose.position.x = x;
srv_msg.request.pose.pose.position.y = y;
srv_msg.request.pose.pose.position.z = z;
tf2::Quaternion q;
q.setRPY(0,0,yaw);
q = q.normalize();
srv_msg.request.pose.pose.orientation.w = q.w();
srv_msg.request.pose.pose.orientation.x = q.x();
srv_msg.request.pose.pose.orientation.y = q.y();
srv_msg.request.pose.pose.orientation.z = q.z();
takeoff_land_client.call(srv_msg);
}
void UAVvel::land(){
control_a::takeoff_land srv_msg;
srv_msg.request.isTakeoff = false;
takeoff_land_client.call(srv_msg);
}
void UAVvel::gotoposition(double x, double y, double z, double wait_time, double timeout){
double err_x,err_y,err_z;
double last_err_x,last_err_y,last_err_z;
double last_time = ros::Time::now().toSec();
double dt,i_x,i_y,i_z;
ros::Rate looprate(50);
nav_msgs::Odometry odom = getPosition();
double timestamp = ros::Time::now().toSec();
while(ros::ok()&&(ros::Time::now().toSec()-timestamp < timeout)&&!(
(x-radius <odom.pose.pose.position.x&&odom.pose.pose.position.x< x+radius)&&
(y-radius <odom.pose.pose.position.y&&odom.pose.pose.position.y< y+radius)&&
(z-radius <odom.pose.pose.position.z&&odom.pose.pose.position.z< z+radius)))
{
err_x = x - odom.pose.pose.position.x;
err_y = y - odom.pose.pose.position.y;
err_z = z - odom.pose.pose.position.z;
if((last_err_x<0&&err_x>0)||(last_err_x>0&&err_x<0)){
i_x = 0;
}
if((last_err_y<0&&err_y>0)||(last_err_y>0&&err_y<0)){
i_y = 0;
}
if((last_err_z<0&&err_z>0)||(last_err_z>0&&err_z<0)){
i_z = 0;
}
dt = ros::Time::now().toSec()-last_time;
i_x += err_x*dt;
i_y += err_y*dt;
i_z += err_z*dt;
giveVelocity(kp_x*err_x + kd_x*(err_x - last_err_x)/dt + ki_x*i_x,kp_y*err_y + kd_y*(err_y - last_err_y)/dt + ki_y*i_y,kp_z*err_z + kd_z*(err_z - last_err_z)/dt + ki_z*i_z);
last_time = ros::Time::now().toSec();
last_err_x = err_x;
last_err_y = err_y;
last_err_z = err_z;
ros::spinOnce();
ROS_INFO("%.2f %.2f %.2f", odom.pose.pose.position.x,odom.pose.pose.position.y,odom.pose.pose.position.z);
odom = getPosition();
looprate.sleep();
}
ros::Duration(wait_time).sleep();
}
int main(int argc, char **argv)
{ // Ros için gerekli olan şeyler
ros::init(argc, argv, "handler");
ros::NodeHandle n;
UAVvel drone(n);
velocities.reserve(10);
velocities.push_back({0.0,0.0,5.0});
velocities.push_back({3.0,4.0,5.0});
velocities.push_back({5.0,6.0,5.0});
velocities.push_back({3.0,4.0,3.0});
velocities.push_back({3.0,3.0,3.0});
velocities.push_back({3.0,3.0,4.0});
velocities.push_back({5.0,4.0,5.0});
velocities.push_back({5.0,10.0,5.0});
velocities.push_back({3.0,3.0,5.0});
velocities.push_back({0.0,0.0,5.0});
drone.takeoff(0,0,3);
ros::Duration(5.0).sleep();
drone.gotoposition(0,0,5);
drone.giveVelocity(0,0,0);
/*
for(velocity &vel : velocities){
drone.giveVelocity(vel.x,vel.y,vel.z);
ros::Duration(2.0).sleep();
ros::spinOnce();
}
*/
} | 30.307692 | 181 | 0.630595 | [
"vector"
] |
5d5751a7b5a2ef4751f598a85db9d74f1fe0e5cb | 8,287 | hpp | C++ | include/uitsl/distributed/RdmaWindow.hpp | mmore500/pipe-profile | 861babd819909d1bda5e933269e7bc64018272d6 | [
"MIT"
] | 15 | 2020-07-31T23:06:09.000Z | 2022-01-13T18:05:33.000Z | include/uitsl/distributed/RdmaWindow.hpp | mmore500/pipe-profile | 861babd819909d1bda5e933269e7bc64018272d6 | [
"MIT"
] | 137 | 2020-08-13T23:32:17.000Z | 2021-10-16T04:00:40.000Z | include/uitsl/distributed/RdmaWindow.hpp | mmore500/pipe-profile | 861babd819909d1bda5e933269e7bc64018272d6 | [
"MIT"
] | 3 | 2020-08-09T01:52:03.000Z | 2020-10-02T02:13:47.000Z | #pragma once
#ifndef UITSL_DISTRIBUTED_RDMAWINDOW_HPP_INCLUDE
#define UITSL_DISTRIBUTED_RDMAWINDOW_HPP_INCLUDE
#include <stddef.h>
#include <mpi.h>
#include "../../../third-party/Empirical/include/emp/base/optional.hpp"
#include "../../../third-party/Empirical/include/emp/base/vector.hpp"
#include "../mpi/audited_routines.hpp"
#include "../mpi/mpi_init_utils.hpp"
#include "../mpi/mpi_types.hpp"
namespace uitsl {
// TODO is it possible to have a seperate window/communicator
// between each pair of procs?
class RdmaWindow {
std::byte *buffer;
emp::optional<MPI_Win> window;
emp::vector<std::byte> initialization_bytes;
// this is relative to the window communicator
// rank where window is located
proc_id_t local_rank;
public:
~RdmaWindow() {
if (IsInitialized()) {
UITSL_Win_free(&window.value());
UITSL_Free_mem(buffer);
}
}
bool IsInitialized() const { return window.has_value(); }
bool IsUninitialized() const { return !window.has_value(); }
// returns index
size_t Acquire(const emp::vector<std::byte>& initial_bytes) {
emp_assert(IsUninitialized());
const size_t address = initialization_bytes.size();
initialization_bytes.insert(
std::end(initialization_bytes),
std::begin(initial_bytes),
std::end(initial_bytes)
);
// TODO cache line alignment?
return address;
}
std::byte *GetBytes(const size_t byte_offset) {
emp_assert( IsInitialized() );
return std::next(
reinterpret_cast<std::byte *>(buffer),
byte_offset
);
}
const MPI_Win & GetWindow() {
emp_assert( IsInitialized() );
return window.value();
}
void LockExclusive() {
emp_assert( IsInitialized() );
UITSL_Win_lock(
MPI_LOCK_EXCLUSIVE, // int lock_type
// Indicates whether other processes may access the target window at the
// same time (if MPI_LOCK_SHARED) or not (MPI_LOCK_EXCLUSIVE)
local_rank, // int rank
// rank of locked window (nonnegative integer)
0, // int assert TODO optimize?
// Used to optimize this call; zero may be used as a default.
window.value() // MPI_Win win
// window object (handle)
);
}
void LockShared() {
emp_assert( IsInitialized() );
UITSL_Win_lock(
MPI_LOCK_SHARED, // int lock_type
// Indicates whether other processes may access the target window at the
// same time (if MPI_LOCK_SHARED) or not (MPI_LOCK_EXCLUSIVE)
local_rank, // int rank
// rank of locked window (nonnegative integer)
0, // int assert TODO optimize?
// Used to optimize this call; zero may be used as a default.
window.value() // MPI_Win win
// window object (handle)
);
}
void Unlock() {
emp_assert( IsInitialized() );
UITSL_Win_unlock(
local_rank, // int rank
// rank of window (nonnegative integer)
window.value() // MPI_Win win
// window object (handle)
);
}
void Put(
const std::byte *origin_addr,
const size_t num_bytes,
const MPI_Aint target_disp
) {
emp_assert( IsInitialized() );
UITSL_Put(
origin_addr, // const void *origin_addr
num_bytes, // int origin_count
MPI_BYTE, // MPI_Datatype origin_datatype
local_rank, // int target_rank
target_disp, // MPI_Aint target_disp
num_bytes, // int target_count
MPI_BYTE, // MPI_Datatype target_datatype
window.value() // MPI_Win win
);
}
void Rput(
const std::byte *origin_addr,
const size_t num_bytes,
const MPI_Aint target_disp,
MPI_Request *request
) {
emp_assert( IsInitialized() );
emp_assert( *request );
UITSL_Rput(
origin_addr, // const void *origin_addr
num_bytes, // int origin_count
MPI_BYTE, // MPI_Datatype origin_datatype
local_rank, // int target_rank
target_disp, // MPI_Aint target_disp
num_bytes, // int target_count
MPI_BYTE, // MPI_Datatype target_datatype
window.value(), // MPI_Win win
request // MPI_Request* request (handle)
);
}
template<typename T>
void Accumulate(
const std::byte *origin_addr,
const size_t num_bytes,
const MPI_Aint target_disp
) {
emp_assert( IsInitialized() );
UITSL_Accumulate(
// const void *origin_addr: initial address of buffer (choice)
origin_addr,
// int origin_count: number of entries in buffer (nonnegative integer)
num_bytes / sizeof(T),
// MPI_Datatype origin_datatype: datatype of each buffer entry (handle)
uitsl::datatype_from_type<T>(),
// int target_rank: rank of target (nonnegative integer)
local_rank,
// MPI_Aint target_disp
// displacement from start of window to beginning of target buffer
// (nonnegative integer)
target_disp,
// int target_count
// number of entries in target buffer (nonnegative integer)
num_bytes / sizeof(T),
// MPI_Datatype target_datatype
// datatype of each entry in target buffer (handle)
uitsl::datatype_from_type<T>(),
// MPI_Op op: predefined reduce operation (handle)
MPI_SUM,
// MPI_Win win: window object (handle)
window.value()
);
}
template<typename T>
void Raccumulate(
const std::byte *origin_addr,
const size_t num_bytes,
const MPI_Aint target_disp,
MPI_Request *request
) {
emp_assert( IsInitialized() );
UITSL_Raccumulate(
// const void *origin_addr: initial address of buffer (choice)
origin_addr,
// int origin_count: number of entries in buffer (nonnegative integer)
num_bytes / sizeof(T),
// MPI_Datatype origin_datatype: datatype of each buffer entry (handle)
uitsl::datatype_from_type<T>(),
// int target_rank: rank of target (nonnegative integer)
local_rank,
// MPI_Aint target_disp
// displacement from start of window to beginning of target buffer
// (nonnegative integer)
target_disp,
// int target_count
// number of entries in target buffer (nonnegative integer)
num_bytes / sizeof(T),
// MPI_Datatype target_datatype
// datatype of each entry in target buffer (handle)
uitsl::datatype_from_type<T>(),
// MPI_Op op: predefined reduce operation (handle)
MPI_SUM,
// MPI_Win win: window object (handle)
window.value(),
// MPI_Request* request:
request // RMA request (handle)
);
}
void Initialize(const proc_id_t target, MPI_Comm comm=MPI_COMM_WORLD) {
emp_assert(IsUninitialized());
local_rank = target;
UITSL_Alloc_mem(
initialization_bytes.size(),
MPI_INFO_NULL,
&buffer
);
// initialize allocated memory
std::memcpy(
buffer,
initialization_bytes.data(),
initialization_bytes.size()
);
window.emplace();
// all procs must make this call
UITSL_Win_create(
buffer, // base: initial address of window (choice)
initialization_bytes.size(), // size
// size of window in bytes (nonnegative integer)
1, // disp_unit: local unit size for displacements, in bytes
// (positive integer)
MPI_INFO_NULL, // info: info argument (handle)
comm, // comm: communicator (handle)
&window.value() // win: window object returned by the call (handle)
);
// ensure that RputDucts have received target offsets
UITSL_Barrier(comm);
emp_assert( IsInitialized() );
}
size_t GetSize() const { return initialization_bytes.size(); }
proc_id_t GetLocalRank() const { return local_rank; }
std::string ToString() const {
std::stringstream ss;
ss << uitsl::format_member("IsInitialized()", emp::to_string(IsInitialized()))
<< '\n';
ss << uitsl::format_member("IsUninitialized()", emp::to_string(IsUninitialized()))
<< '\n';
// TODO add print function for MPI_Win
ss << uitsl::format_member("std::byte *buffer", static_cast<const void *>(buffer))
<< '\n';
ss << uitsl::format_member("GetSize()", GetSize()) << '\n';
ss << uitsl::format_member("proc_id_t local_rank", local_rank);
return ss.str();
}
};
} // namespace uitsl
#endif // #ifndef UITSL_DISTRIBUTED_RDMAWINDOW_HPP_INCLUDE
| 26.560897 | 86 | 0.656933 | [
"object",
"vector"
] |
5d57d6c308ed48a5bed8e26d52419436efb0fe88 | 5,523 | cpp | C++ | smart_pointers/main.cpp | VgTajdd/cpp_playground | d13c198952782a96cccdd35504abd8c915128e19 | [
"MIT"
] | 2 | 2019-12-18T12:20:12.000Z | 2021-08-02T00:16:17.000Z | smart_pointers/main.cpp | VgTajdd/cpp_playground | d13c198952782a96cccdd35504abd8c915128e19 | [
"MIT"
] | null | null | null | smart_pointers/main.cpp | VgTajdd/cpp_playground | d13c198952782a96cccdd35504abd8c915128e19 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
class Entity
{
public:
Entity( const char* name ) : m_name( name )
{
std::cout << "Created Entity : " << m_name << std::endl;
}
~Entity()
{
std::cout << "Destroyed Entity : " << m_name << std::endl;
}
void doSomething()
{
std::cout << m_name << " doing something... " << std::endl;
}
private:
const char* m_name;
};
int main()
{
//-------------- Unique pointer --------------//
// First way to create a unique pointer.
{
// This way to create shared pointer is exception safe.
std::unique_ptr< Entity > entity = std::make_unique< Entity >( "E1" );
}
// Alternative ways to create a unique pointer.
{
std::unique_ptr< Entity > entity;
entity.reset( new Entity( "E2" ) ); // Destroy the old object (if exists) and owns the new one.
std::unique_ptr< Entity > anotherEntity( new Entity( "E3" ) );
}
// To point and onw another object unique_ptr first destroy the old object (if exists).
{
std::unique_ptr< Entity > entityA = std::make_unique< Entity >( "EA" );
entityA.reset( new Entity( "EB" ) ); // Destroy the old object (if exists) and owns the new one.
entityA = std::make_unique< Entity >( "EC" ); // Destroy the old object (if exists) and owns the new one.
}
// Unique pointer can be released.
{
std::unique_ptr< Entity > entity;
entity = std::make_unique< Entity >( "E4" );
entity->doSomething();
// Unique pointer can be released.
Entity* releasedPtr = entity.release();
releasedPtr->doSomething();
// Must delete the released raw pointer.
delete releasedPtr;
}
// This pointer is only movable.
{
std::unique_ptr< Entity > entity = std::make_unique< Entity >( "E5" );
std::unique_ptr< Entity > anotherEntity = std::move( entity );
}
// Inappropriate use - Don't do this!
{
Entity* entityPtr = new Entity( "E6" );
{
std::unique_ptr< Entity > entity( entityPtr );
}
// Undefined behaviour, E6 was already deleted. If the method requires to access data
// already deleted, a exception of Access violation will be thrown.
/*entityPtr->doSomething();*/
}
std::cout << "-----------------------" << std::endl;
//-------------- Shared pointer --------------//
// It has a control block that is heap-allocated with the object.
// First way to create a shared pointer.
{
// This way to create shared pointer is exception safe.
auto entity = std::make_shared< Entity >( "E1" );
}
// Alternative way to create shared pointer.
{
std::shared_ptr< Entity > entity( new Entity( "E2" ) ); // No exception safe.
}
// This pointer is copyable and movable.
{
auto entity = std::make_shared< Entity >( "E3" );
std::cout << entity.use_count() << std::endl; // 1
std::shared_ptr< Entity > anotherEntityPtr = entity;
std::cout << entity.use_count() << std::endl; // 2
// The scope ends, so the shared pointers in this scope are removed from the stack
// and that will decrease by 1 (for each shared_ptr)
// the ref-counter in the control block.
// If the ref-counter is 0 the object is destroyed.
}
{
std::shared_ptr< Entity > theSameEntity;
{
auto entity = std::make_shared< Entity >( "E4" );
std::cout << entity.use_count() << std::endl; // 1
theSameEntity = entity;
std::cout << theSameEntity.use_count() << std::endl; // 2
// Entity is created in this scope but keeps alive even is the scope ends.
// It's because new pointer is created and ref-counter in the control block is 2.
}
std::cout << theSameEntity.use_count() << std::endl; // 1
// Here the entity is destroyed.
}
std::cout << "-----------------------" << std::endl;
//-------------- Weak pointer --------------//
// std::weak_ptr is a smart pointer that holds a non-owning ("weak") reference
// to an object that is managed by std::shared_ptr.
// It must be converted to std::shared_ptr in order to access the referenced object.
// https://en.cppreference.com/w/cpp/memory/weak_ptr
// std::weak_ptr are created from shared_ptr.
{
auto entity = std::make_shared< Entity >( "E1" );
std::cout << entity.use_count() << std::endl; // 1
std::weak_ptr< Entity > weak_entity = entity;
// The ref-counter in the shared_ptr control block is not increased after
// creating a weak_ptr using copy constructor.
std::cout << entity.use_count() << std::endl; // 1
if ( !weak_entity.expired() )
weak_entity.lock()->doSomething();
}
// Example 1:
{
std::weak_ptr< Entity > weakEntity;
std::shared_ptr< Entity > anotherSharedPtr;
{
auto entity = std::make_shared< Entity >( "E2" );
std::cout << entity.use_count() << std::endl; // 1
weakEntity = entity;
if ( !weakEntity.expired() )
anotherSharedPtr = weakEntity.lock();
std::cout << entity.use_count() << std::endl; // 2
}
std::cout << anotherSharedPtr.use_count() << std::endl; // 1
anotherSharedPtr->doSomething();
}
// Example 2:
{
std::weak_ptr< Entity > weakEntity;
{
auto entity = std::make_shared< Entity >( "E3" );
weakEntity = entity;
if ( !weakEntity.expired() )
weakEntity.lock()->doSomething();
}
if ( !weakEntity.expired() )
weakEntity.lock()->doSomething();
}
// Recomendations:
// - Create allways smart pointers using : std::make_unique and std::make_shared (Exception safe).
// Avoid this:
// - std::unique_ptr< Entity > entity = std::make_unique< Entity >( new Entity( "E1" ) );
// - entity.reset( new Entity( "E2" ) );
// - std::shared_ptr< Entity > entity( new Entity( "E2" ) );
std::cin.get();
return 0;
} | 30.513812 | 107 | 0.634438 | [
"object"
] |
5d5835ed285467bc9e2ae1f437aff98a8bc39772 | 45,203 | cpp | C++ | Noise.cpp | sherrbss/ProceduralNoise | 99162d9b00d52b50e33a64313911300406af0745 | [
"MIT"
] | null | null | null | Noise.cpp | sherrbss/ProceduralNoise | 99162d9b00d52b50e33a64313911300406af0745 | [
"MIT"
] | null | null | null | Noise.cpp | sherrbss/ProceduralNoise | 99162d9b00d52b50e33a64313911300406af0745 | [
"MIT"
] | null | null | null | /**
* Noise.cpp
* Authors: Sheldon Taylor, Jiju Poovvancheri
*
* Driver function for noise generation.
*/
#include "Noise.h"
Noise::Noise() {}
Noise::~Noise() {}
/*
* Generates Perlin noise.
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs including Perlin noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generatePerlin(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting Perlin noise generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunction(pairingFunction);
noiseGenerator->setInitFrequency(4.0f);
//noiseGenerator->setOctaves(1);
//noiseGenerator->setInitFrequency(32.0f);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
//int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value - f(x, y, z)
//noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.72f);
noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.5f);
/// Warping domain
/*
// Generate noise value - f((x, y, z) + f(x, y, z))
float fp1 = noiseGenerator -> noise(noise + float(x) * invWidth, noise + float(y) * invHeight, noise + 0.72);
// Generate noise value - f((x, y, z) + f((x, y, z) + f(x, y, z)))
float fp2 = noiseGenerator -> noise(fp1 + float(x) * invWidth, fp1 + float(y) * invHeight, fp1 + 0.72);
float fp3 = noiseGenerator -> noise(fp2 + float(x) * invWidth, fp2 + float(y) * invHeight, fp2 + 0.72);
float fp4 = noiseGenerator -> noise(fp3 + float(x) * invWidth, fp3 + float(y) * invHeight, fp3 + 0.72);
noise = fp4;
*/
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
}
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated Perlin noise.\n");
//delete noiseGenerator;
delete[] noiseArray;
return points;
}
/*
* Generates Better Gradient noise.
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs including Better Gradient noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generateBetterGradient(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting Better Gradient noise generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunction(pairingFunction);
noiseGenerator->setInitFrequency(4.0f);
noiseGenerator->setOctaves(1);
//noiseGenerator->setInitFrequency(32.0f);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
//int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value - f(x, y, z)
//noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.72f);
noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.5f);
/// Warping domain
/*
// Generate noise value - f((x, y, z) + f(x, y, z))
float fp1 = noiseGenerator -> noise(noise + float(x) * invWidth, noise + float(y) * invHeight, noise + 0.72);
// Generate noise value - f((x, y, z) + f((x, y, z) + f(x, y, z)))
float fp2 = noiseGenerator -> noise(fp1 + float(x) * invWidth, fp1 + float(y) * invHeight, fp1 + 0.72);
float fp3 = noiseGenerator -> noise(fp2 + float(x) * invWidth, fp2 + float(y) * invHeight, fp2 + 0.72);
float fp4 = noiseGenerator -> noise(fp3 + float(x) * invWidth, fp3 + float(y) * invHeight, fp3 + 0.72);
noise = fp4;
*/
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
}
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated Better Gradient noise.\n");
//delete noiseGenerator;
delete[] noiseArray;
return points;
}
/*
* Generates Wavelet noise.
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs including Wavelet noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generateWavelet(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting Wavelet noise generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunction(pairingFunction);
//noiseGenerator->setInitFrequency(4.0f);
noiseGenerator->setOctaves(1);
noiseGenerator->setInitFrequency(64.0f);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
//int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value - f(x, y, z)
//noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.72f);
noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.5f);
/// Warping domain
/*
// Generate noise value - f((x, y, z) + f(x, y, z))
float fp1 = noiseGenerator -> noise(noise + float(x) * invWidth, noise + float(y) * invHeight, noise + 0.72);
// Generate noise value - f((x, y, z) + f((x, y, z) + f(x, y, z)))
float fp2 = noiseGenerator -> noise(fp1 + float(x) * invWidth, fp1 + float(y) * invHeight, fp1 + 0.72);
float fp3 = noiseGenerator -> noise(fp2 + float(x) * invWidth, fp2 + float(y) * invHeight, fp2 + 0.72);
float fp4 = noiseGenerator -> noise(fp3 + float(x) * invWidth, fp3 + float(y) * invHeight, fp3 + 0.72);
noise = fp4;
*/
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
}
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated Wavelet noise.\n");
//delete noiseGenerator;
delete[] noiseArray;
return points;
}
/*
* Generates Phasor noise.
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs including Phasor noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generatePhasor(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting Phasor noise generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunction(pairingFunction);
//noiseGenerator->setInitFrequency(4.0f);
noiseGenerator->setOctaves(1);
noiseGenerator->setInitFrequency(2.0f);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
//int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value - f(x, y, z)
//noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.72f);
noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.5f);
/// Warping domain
/*
// Generate noise value - f((x, y, z) + f(x, y, z))
float fp1 = noiseGenerator -> noise(noise + float(x) * invWidth, noise + float(y) * invHeight, noise + 0.72);
// Generate noise value - f((x, y, z) + f((x, y, z) + f(x, y, z)))
float fp2 = noiseGenerator -> noise(fp1 + float(x) * invWidth, fp1 + float(y) * invHeight, fp1 + 0.72);
float fp3 = noiseGenerator -> noise(fp2 + float(x) * invWidth, fp2 + float(y) * invHeight, fp2 + 0.72);
float fp4 = noiseGenerator -> noise(fp3 + float(x) * invWidth, fp3 + float(y) * invHeight, fp3 + 0.72);
noise = fp4;
*/
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
}
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated Phasor noise.\n");
//delete noiseGenerator;
delete[] noiseArray;
return points;
}
/*
* Generates gradient noise with Prime numbers replacing gradients.
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs including Gradient noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generatePrimedGradient(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting primed gradient noise generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunction(pairingFunction);
noiseGenerator->setOctaves(8);
noiseGenerator->setPGNOctaves(8);
noiseGenerator->setInitFrequency(4.0f);
//noiseGenerator->setInitFrequency(32.0f);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value - f(x, y, z)
noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 1.0f);
//noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.5f);
/// Warping domain
// Generate noise value - f((x, y, z) + f(x, y, z))
//float fp1 = noiseGenerator -> noise(noise + float(x) * invWidth, noise + float(y) * invHeight, noise + 0.72);
//float fp2 = noiseGenerator -> noise(fp1 + float(x) * invWidth, fp1 + float(y) * invHeight, fp1 + 0.72);
//noise = fp2;
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
}
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated primed gradient noise.\n");
//delete noiseGenerator;
delete[] noiseArray;
delete[] indexArray;
return points;
}
/*
* Generates density/gradient noise with Prime numbers replacing gradients.
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs containing noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generatePrimedDensity(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting primed gradient noise generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunction(pairingFunction);
noiseGenerator->setInitFrequency(4.0f);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value - f(x, y, z)
noise = noiseGenerator -> noise(float(x), float(y), 1.0f);
//noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 1.0f);
//noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.5f);
/// Warping domain
/*
// Generate noise value - f((x, y, z) + f(x, y, z))
float fp1 = noiseGenerator -> noise(noise + float(x) * invWidth, noise + float(y) * invHeight, noise + 0.72);
// Generate noise value - f((x, y, z) + f((x, y, z) + f(x, y, z)))
float fp2 = noiseGenerator -> noise(fp1 + float(x) * invWidth, fp1 + float(y) * invHeight, fp1 + 0.72);
float fp3 = noiseGenerator -> noise(fp2 + float(x) * invWidth, fp2 + float(y) * invHeight, fp2 + 0.72);
float fp4 = noiseGenerator -> noise(fp3 + float(x) * invWidth, fp3 + float(y) * invHeight, fp3 + 0.72);
noise = fp4;
*/
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
}
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated primed gradient noise.\n");
//delete noiseGenerator;
delete[] noiseArray;
delete[] indexArray;
return points;
}
/*
* Generates Gabor noise.
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs including Gabor noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generateGabor(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting Gabor noise generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunction(pairingFunction);
noiseGenerator->setInitFrequency(4.0f);
noiseGenerator->setOctaves(1);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value
noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.72);
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
}
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated Gabor noise.\n");
//std::vector<Noise::Point>().swap(points);
//delete noiseGenerator;
delete[] noiseArray;
delete[] indexArray;
return points;
}
/*
* Generates Perlin noise (with marble perturbation).
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs including Perlin noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generateMarble(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting Perlin noise (with marble perturbation) generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunctionMarble(pairingFunction);
noiseGenerator->setInitFrequency(4.0f);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value
noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.72);
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
}
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated Perlin noise (with marble perturbation).\n");
//std::vector<Noise::Point>().swap(points);
//delete noiseGenerator;
delete[] noiseArray;
delete[] indexArray;
return points;
}
/*
* Generates Worley noise.
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs including Worley noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generateWorley(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting Worley noise generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunction(pairingFunction);
noiseGenerator->setInitFrequency(4.0f);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
/// Progress variables
int currLevel = 0;
int percentFinished = 0;
time_t startTime;
time(&startTime);
/// End progress variables
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value
noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.72);
/// Warp domain
/**/
// Generate noise value - f((x, y, z) + f(x, y, z))
//float fp1 = noiseGenerator -> noise(noise + float(x) * invWidth, noise + float(y) * invHeight, noise + 0.72);
//noise = fp1;
// Generate noise value - f((x, y, z) + f((x, y, z) + f(x, y, z)))
//float fp2 = noiseGenerator -> noise(fp1 + float(x) * invWidth, fp1 + float(y) * invHeight, fp1 + 0.72);
//noise = fp2;
// Generate noise value - f((x, y, z) + f((x, y, z) + f((x, y, z) + f(x, y, z))))
//float fp3 = noiseGenerator -> noise(fp2 + float(x) * invWidth, fp2 + float(y) * invHeight, fp2 + 0.72);
//noise = fp3;
//noise = (noise + fp1) / 2.0f;
//noise = (noise + fp1 + fp2) / 3.0f;
//noise = (noise + fp1 + fp2 + fp3) / 4.0f;
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
/// ======= Display progress
int progressFlag = 1; // 0 - off || 1 - on
if (progressFlag == 1) {
if (x > currLevel) {
int minutes, seconds;
// Increment level and percent
currLevel += 10;
percentFinished += 1;
// Get current time
time_t currTime;
time(&currTime);
// Calculate total seconds to completion
float timeDiff = difftime(currTime, startTime);
float totalSeconds = timeDiff * (100.0f / ((float)percentFinished)) * (1.0f - ((float)percentFinished / 100.0f));
int totalSecondsInt = (int) floor(totalSeconds);
// Update minutes/seconds then print
minutes = totalSecondsInt / 60;
seconds = totalSecondsInt % 60;
if (percentFinished > 5) {
printf(" Percent completed: %2d%% [Estimated time to completion: %d:%02d]\n", percentFinished - 5, minutes, seconds);
} else {
printf(" Percent completed: --%% [Estimated time to completion: -:--]\n");
}
}
}
/// ======= End display progress
}
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated Worley noise.\n");
//std::vector<Noise::Point>().swap(points);
//delete noiseGenerator;
delete[] noiseArray;
delete[] indexArray;
return points;
}
/*
* Generates ExperimentalNoise noise.
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs including ExperimentalNoise noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generateExperiental(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting experimental noise generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunctionExperimental(pairingFunction);
noiseGenerator->setInitFrequency(4.0f);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
/// Progress variables
int currLevel = 0;
int percentFinished = 0;
time_t startTime;
time(&startTime);
/// End progress variables
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value
noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.72);
/// Warp domain
/**/
// Generate noise value - f((x, y, z) + f(x, y, z))
//float fp1 = noiseGenerator -> noise(noise + float(x) * invWidth, noise + float(y) * invHeight, noise + 0.72);
//noise = fp1;
// Generate noise value - f((x, y, z) + f((x, y, z) + f(x, y, z)))
//float fp2 = noiseGenerator -> noise(fp1 + float(x) * invWidth, fp1 + float(y) * invHeight, fp1 + 0.72);
//noise = fp2;
// Generate noise value - f((x, y, z) + f((x, y, z) + f((x, y, z) + f(x, y, z))))
//float fp3 = noiseGenerator -> noise(fp2 + float(x) * invWidth, fp2 + float(y) * invHeight, fp2 + 0.72);
//noise = fp3;
//noise = (noise + fp1) / 2.0f;
//noise = (noise + fp1 + fp2) / 3.0f;
//noise = (noise + fp1 + fp2 + fp3) / 4.0f;
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
/// ======= Display progress
int progressFlag = 1; // 0 - off || 1 - on
if (progressFlag == 1) {
if (x > currLevel) {
int minutes, seconds;
// Increment level and percent
currLevel += 10;
percentFinished += 1;
// Get current time
time_t currTime;
time(&currTime);
// Calculate total seconds to completion
float timeDiff = difftime(currTime, startTime);
float totalSeconds = timeDiff * (100.0f / ((float)percentFinished)) * (1.0f - ((float)percentFinished / 100.0f));
int totalSecondsInt = (int) floor(totalSeconds);
// Update minutes/seconds then print
minutes = totalSecondsInt / 60;
seconds = totalSecondsInt % 60;
if (percentFinished > 5) {
printf(" Percent completed: %2d%% [Estimated time to completion: %d:%02d]\n", percentFinished - 5, minutes, seconds);
} else {
printf(" Percent completed: --%% [Estimated time to completion: -:--]\n");
}
}
}
/// ======= End display progress
}
// Debug
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
//printf("before_noise: %f | after_noise: %f\n", temp, noise);
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated experimental noise.\n");
//std::vector<Noise::Point>().swap(points);
//delete noiseGenerator;
delete[] noiseArray;
delete[] indexArray;
return points;
}
/*
* Generate Perlin noise (with splatter perturbation)
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs including Perlin noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generateSplatter(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting Perlin noise (with splatter perturbation) generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunctionSplatter(pairingFunction);
noiseGenerator->setInitFrequency(4.0f);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value
noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.72);
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
}
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated Perlin noise (with splatter perturbation).\n");
//std::vector<Noise::Point>().swap(points);
//delete noiseGenerator;
delete[] noiseArray;
delete[] indexArray;
return points;
}
/*
* Generate Perlin noise (with wood perturbation)
*
* Parameters:
* pairingFunction: pairing function to be used
* noiseType: type of noise to be used
* width: number of x-axis pixels
* height: number of y-axis pixels
*
* Returns:
* vector: structs including Perlin noise values and coordinates.
*/
std::vector<Noise::Point> Noise::generateWood(int pairingFunction, int noiseType, int width, int height) {
printf("\nStarting Perlin noise (with wood perturbation) generation.\n");
HashFunctions HashInstance;
Fractal *noiseGenerator = new Fractal(noiseType);
noiseGenerator->setPerlinDimensions(width, height);
noiseGenerator->setPairingFunctionWood(pairingFunction);
noiseGenerator->setInitFrequency(4.0f);
// Define array size
unsigned long long int arr_size = pow(width, 2) * pow(height, 2);
int *indexArray = new int[width * height];
int indexArrayCurr = 0;
// Intialize nosie array
float *noiseArray = new float[arr_size];
// Generate a noise value for each pixel
float invWidth = 1.0f / float(width);
float invHeight = 1.0f / float(height);
float noise;
float min = 0.0f;
float max = 0.0f;
std::vector<Noise::Point> points;
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
// Generate noise value
noise = noiseGenerator -> noise(float(x) * invWidth, float(y) * invHeight, 0.72);
// Set noise value dependant on hashed value
int index = HashInstance.linearPair(x, y, width);
noiseArray[index] = noise;
// Keep track of minimum and maximum noise values
if (noise < min) {
min = noise;
}
if (noise > max) {
max = noise;
}
}
}
// Convert noise values to pixel colour values.
float temp = 1.0f / (max - min);
printf(" Noise Values: Max: %f | Min: %f\n", max, min);
// Invert Hash Functions
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; ++y) {
int index = HashInstance.linearPair(x, y, width);
noise = noiseArray[index];
// Use gaussian distribution of noise values to fill [-1, 1] range.
noise = -1.0f + 2.0f * (noise - min) * temp;
// Remap to RGB friendly colour values in range [0, 1].
noise += 1.0f;
noise *= 0.5f;
points.push_back(Noise::Point());
int i = x * height + y;
points[i].x = x;
points[i].y = y;
points[i].colour = noise;
//printf("X[%f] Y[%f] COLOUR[%f]\n", points[i].x, points[i].y, points[i].colour);
}
}
printf("Successfully generated Perlin noise (with wood perturbation).\n");
//std::vector<Noise::Point>().swap(points);
//delete noiseGenerator;
delete[] noiseArray;
delete[] indexArray;
return points;
} | 32.058865 | 140 | 0.557419 | [
"vector"
] |
5d6d593dc8354e93ab4590df691185448be9401f | 9,042 | hpp | C++ | OcularCore/include/Math/Geometry/Frustum.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 8 | 2017-01-27T01:06:06.000Z | 2020-11-05T20:23:19.000Z | OcularCore/include/Math/Geometry/Frustum.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 39 | 2016-06-03T02:00:36.000Z | 2017-03-19T17:47:39.000Z | OcularCore/include/Math/Geometry/Frustum.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 4 | 2019-05-22T09:13:36.000Z | 2020-12-01T03:17:45.000Z | /**
* Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.com)
*
* 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
#ifndef __H__OCULAR_MATH_FRUSTUM__H__
#define __H__OCULAR_MATH_FRUSTUM__H__
#include "Math/Matrix4x4.hpp"
#include "Math/Geometry/Plane.hpp"
#include <array>
//------------------------------------------------------------------------------------------
/**
* \addtogroup Ocular
* @{
*/
namespace Ocular
{
/**
* \addtogroup Math
* @{
*/
namespace Math
{
class BoundsAABB;
class BoundsOBB;
class BoundsSphere;
/**
* \class Frustum
*
* A frustum is defined by a view and projection matrix and is used
* to perform culling tests which define what is and isn't visible.
*
* For an object (point, bounding volume, etc.) to be considered inside
* of the frustum, it must not be outside of any of the 6 infinite planes
* that define it. The outside of a plane is defined as the positive
* half-space: the direction in which the plane's normal is pointing.
*
* If an object is either inside and/or intersects all of the individual
* planes, then it is inside the frustum.
*/
class Frustum
{
public:
Frustum();
~Frustum();
//------------------------------------------------------------
// View and Projection matrix setting
//------------------------------------------------------------
/**
* Rebuilds the frustum using the current view and projection settings.
*/
void rebuild();
/**
* Sets the view matrix that helps define this frustum.
* \note Must call rebuild to update the frustum.
*/
void setViewMatrix(Math::Matrix4x4 const& viewMatrix);
/**
* Sets the projection matrix that helps define this frustum.
* \note Must call rebuild to update the frustum.
*/
void setProjectionMatrix(Math::Matrix4x4 const& projMatrix);
Math::Matrix4x4 getViewMatrix() const;
Math::Matrix4x4 getProjectionMatrix() const;
//------------------------------------------------------------
// Misc Getters
//------------------------------------------------------------
/**
* \return The point this frustum originates from.
*/
Vector3f const& getOrigin() const;
/**
* Returns the four corners the comprise the finite portion of the near clip plane.
* These corners are ordered counter-clockwise from the bottom left:
*
* [0] : Bottom left
* [1] : Bottom right
* [2] : Top right
* [3] : Top left
*/
std::array<Vector3f, 4> const& getNearClipCorners() const;
/**
* Returns the four corners the comprise the finite portion of the far clip plane.
* These corners are ordered counter-clockwise from the bottom left:
*
* [0] : Bottom left
* [1] : Bottom right
* [2] : Top right
* [3] : Top left
*/
std::array<Vector3f, 4> const& getFarClipCorners() const;
//------------------------------------------------------------
// Containment Testing
//------------------------------------------------------------
/**
* Tests to determine if the frustum contains the specified point.
*
* \param[in] point
* \return TRUE if bounds is inside or intersects.
*/
bool contains(Point3f const& point) const;
/**
* Tests to determine if the frustum contains the specified bounding sphere.
*
* \param[in] bounds
* \return TRUE if bounds is inside or intersects.
*/
bool contains(BoundsSphere const& bounds) const;
/**
* Tests to determine if the frustum contains the specified AABB.
*
* \param[in] bounds
* \return TRUE if bounds is inside or intersects.
*/
bool contains(BoundsAABB const& bounds) const;
/**
* Tests to determine if the frustum contains the specified OBB.
*
* \param[in] bounds
* \return TRUE if bounds is inside or intersects.
*/
bool contains(BoundsOBB const& bounds) const;
//------------------------------------------------------------
// Property Retrieval
//------------------------------------------------------------
/**
* \return The distance from the point-of-view to the near clip plane.
* Anything behind this point will be culled.
*/
float getNearClipDistance() const;
/**
* \return The distance from the point-of-view to the far clip plane.
* Anything beyond this point will be culled.
*/
float getFarClipDistance() const;
/**
* \return The left infinite plane that helps define this frustum.
*/
Plane const& getLeftPlane() const;
/**
* \return The right infinite plane that helps define this frustum.
*/
Plane const& getRightPlane() const;
/**
* \return The top infinite plane that helps define this frustum.
*/
Plane const& getTopPlane() const;
/**
* \return The bottom infinite plane that helps define this frustum.
*/
Plane const& getBottomPlane() const;
/**
* \return The near infinite plane that helps define this frustum.
*/
Plane const& getNearPlane() const;
/**
* \return The far infinite plane that helps define this frustum.
*/
Plane const& getFarPlane() const;
/**
* \return The field-of-view. If an orthographic projection, returns 0
*/
float getFieldOfView() const;
/**
* \return The aspect ratio. If an orthographic projection, returns 0
*/
float getAspectRatio() const;
/**
* \return The minimum x value. Used only with orthographic projections.
*/
float getXMin() const;
/**
* \return The maximum x value. Used only with orthographic projections.
*/
float getXMax() const;
/**
* \return The minimum y value. Used only with orthographic projections.
*/
float getYMin() const;
/**
* \return The maximum y value. Used only with orthographic projections.
*/
float getYMax() const;
protected:
private:
Math::Matrix4x4 m_ViewMatrix;
Math::Matrix4x4 m_ProjMatrix;
float m_MinX;
float m_MaxX;
float m_MinY;
float m_MaxY;
float m_NearClip;
float m_FarClip;
// Perspective-specific variables saved for user querying
float m_FieldOfView;
float m_AspectRatio;
Vector3f m_Origin;
std::array<Vector3f, 4> m_NearCorners; ///< Corners of the finite near clip plane ordered counter-clockwise from bottom left
std::array<Vector3f, 4> m_FarCorners; ///< Corners of the finite far clip plane ordered counter-clockwise from bottom left
Plane m_LeftPlane;
Plane m_RightPlane;
Plane m_TopPlane;
Plane m_BottomPlane;
Plane m_NearPlane;
Plane m_FarPlane;
};
}
/**
* @} End of Doxygen Groups
*/
}
/**
* @} End of Doxygen Groups
*/
//------------------------------------------------------------------------------------------
#endif | 33 | 137 | 0.487945 | [
"geometry",
"object"
] |
5d6df3997ceb2d081b57a44c9840c512d7fb9d38 | 4,088 | cpp | C++ | src/visvalingam_algorithm.cpp | giraldeau/visvalingam_simplify | e28fc3b760d2037dcdaf0c19af644ecaa2367347 | [
"BSD-2-Clause-FreeBSD"
] | 26 | 2015-03-07T01:17:19.000Z | 2022-01-14T06:17:49.000Z | src/visvalingam_algorithm.cpp | giraldeau/visvalingam_simplify | e28fc3b760d2037dcdaf0c19af644ecaa2367347 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/visvalingam_algorithm.cpp | giraldeau/visvalingam_simplify | e28fc3b760d2037dcdaf0c19af644ecaa2367347 | [
"BSD-2-Clause-FreeBSD"
] | 7 | 2017-04-05T12:43:41.000Z | 2021-05-08T12:51:10.000Z | //
//
// 2013 (c) Mathieu Courtemanche
#include "visvalingam_algorithm.h"
#include <cstdlib>
#include <cmath>
#include <limits>
#include <vector>
#include <iostream>
#include "heap.hpp"
static const double NEARLY_ZERO = 1e-7;
// Represents 3 vertices from the input line and its associated effective area.
struct VertexNode
{
VertexNode(VertexIndex vertex_, VertexIndex prev_vertex_,
VertexIndex next_vertex_, double area_)
: vertex(vertex_)
, prev_vertex(prev_vertex_)
, next_vertex(next_vertex_)
, area(area_)
{
}
// ie: a triangle
VertexIndex vertex;
VertexIndex prev_vertex;
VertexIndex next_vertex;
// effective area
double area;
};
struct VertexNodeCompare
{
bool operator()(const VertexNode* lhs, const VertexNode* rhs) const
{
return lhs->area < rhs->area;
}
};
static double effective_area(VertexIndex current, VertexIndex previous,
VertexIndex next, const Linestring& input_line)
{
const Point& c = input_line[current];
const Point& p = input_line[previous];
const Point& n = input_line[next];
const Point c_n = vector_sub(n, c);
const Point c_p = vector_sub(p, c);
const double det = cross_product(c_n, c_p);
return 0.5 * fabs(det);
}
static double effective_area(const VertexNode& node,
const Linestring& input_line)
{
return effective_area(node.vertex, node.prev_vertex,
node.next_vertex, input_line);
}
Visvalingam_Algorithm::Visvalingam_Algorithm(const Linestring& input)
: m_effective_areas(input.size(), 0.0)
, m_input_line(input)
{
// Compute effective area for each point in the input (except endpoints)
std::vector<VertexNode*> node_list(input.size(), NULL);
Heap<VertexNode*, VertexNodeCompare> min_heap(input.size());
for (VertexIndex i=1; i < input.size()-1; ++i)
{
double area = effective_area(i, i-1, i+1, input);
if (area > NEARLY_ZERO)
{
node_list[i] = new VertexNode(i, i-1, i+1, area);
min_heap.insert(node_list[i]);
}
}
double min_area = -std::numeric_limits<double>::max();
while (!min_heap.empty())
{
VertexNode* curr_node = min_heap.pop();
assert (curr_node == node_list[curr_node->vertex]);
// If the current point's calculated area is less than that of the last
// point to be eliminated, use the latter's area instead. (This ensures
// that the current point cannot be eliminated without eliminating
// previously eliminated points.)
min_area = std::max(min_area, curr_node->area);
VertexNode* prev_node = node_list[curr_node->prev_vertex];
if (prev_node != NULL)
{
prev_node->next_vertex = curr_node->next_vertex;
prev_node->area = effective_area(*prev_node, input);
min_heap.reheap(prev_node);
}
VertexNode* next_node = node_list[curr_node->next_vertex];
if (next_node != NULL)
{
next_node->prev_vertex = curr_node->prev_vertex;
next_node->area = effective_area(*next_node, input);
min_heap.reheap(next_node);
}
// store the final value for this vertex and delete the node.
m_effective_areas[curr_node->vertex] = min_area;
node_list[curr_node->vertex] = NULL;
delete curr_node;
}
node_list.clear();
}
void Visvalingam_Algorithm::simplify(double area_threshold,
Linestring* res) const
{
assert(res);
for (VertexIndex i=0; i < m_input_line.size(); ++i)
{
if (contains_vertex(i, area_threshold))
{
res->push_back(m_input_line[i]);
}
}
if (res->size() < 4)
{
res->clear();
}
}
void Visvalingam_Algorithm::print_areas() const
{
for (VertexIndex i=0; i < m_effective_areas.size(); ++i)
{
std::cout << i << ": " << m_effective_areas[i] << std::endl;
}
}
| 29.2 | 79 | 0.619374 | [
"vector"
] |
5d78075920a9f54e692135c448d302202810ba84 | 2,597 | cc | C++ | extensions/pyre/timers/wall_timers.cc | PyreFramework/pyre | 345c7449a3416eea1c1affa74fb32faff30a6aaa | [
"BSD-3-Clause"
] | null | null | null | extensions/pyre/timers/wall_timers.cc | PyreFramework/pyre | 345c7449a3416eea1c1affa74fb32faff30a6aaa | [
"BSD-3-Clause"
] | null | null | null | extensions/pyre/timers/wall_timers.cc | PyreFramework/pyre | 345c7449a3416eea1c1affa74fb32faff30a6aaa | [
"BSD-3-Clause"
] | null | null | null | // -*- c++ -*-
//
// michael a.g. aïvázis <michael.aivazis@para-sim.com>
// (c) 1998-2022 all rights reserved
// externals
#include "external.h"
// namespace setup
#include "forward.h"
// type alias
using wall_timer_t = pyre::timers::wall_timer_t;
// add bindings timers
void
pyre::py::timers::wall_timers(py::module & m)
{
// the timer interface
py::class_<wall_timer_t>(m, "WallTimer")
// the constructor
.def(py::init<const wall_timer_t::name_type &>(), "name"_a)
// accessors
// the name; read-only property
.def_property_readonly(
"name",
// the implementation
&wall_timer_t::name,
// the docstring
"my name")
// the registry; read-only static property
.def_property_readonly_static(
"registry",
// the implementation
[](py::object) -> wall_timer_t::registry_reference { return wall_timer_t::registry(); },
// the docstring
"the timer registry")
// interface
// start
.def(
"start",
// implementation
&wall_timer_t::start,
// docstring
"start the timer")
// stop
.def(
"stop",
// implementation
&wall_timer_t::stop,
// doctstring
"stop the timer")
// reset
.def(
"reset",
// implementation
&wall_timer_t::reset,
// docstring
"reset the timer")
// read
.def(
"read",
// implementation: by default, always return the interval in seconds to match the
// expectations of the pure python implementation
&wall_timer_t::sec,
// docstring
"get the accumulated time")
// as a string, in seconds
.def(
"sec",
// implementation
&wall_timer_t::sec,
// docstring
"render the accumulated time in seconds")
// as a string, in milliseconds
.def(
"ms",
// implementation
&wall_timer_t::ms,
// docstring
"render the accumulated time in milliseconds")
// as a string, in microseconds
.def(
"us",
// implementation
&wall_timer_t::us,
// docstring
"render the accumulated time in microseconds")
// done
;
// all done
return;
}
// end of file
| 25.460784 | 100 | 0.501733 | [
"render",
"object"
] |
5d7c7601292614f249c57c97fc6f9397988d65ed | 6,665 | cpp | C++ | 8088/demo/moire/make_table.cpp | reenigne/reenigne | c3eb8b31d7964e78bbe44908987d4be052a74488 | [
"Unlicense"
] | 92 | 2015-04-10T17:45:11.000Z | 2022-03-30T17:58:51.000Z | 8088/demo/moire/make_table.cpp | MS-DOS-stuff/reenigne | 0a113990aef398550c6f14d1c7a33af1cb091887 | [
"Unlicense"
] | 2 | 2017-11-05T07:21:35.000Z | 2018-11-04T23:36:13.000Z | 8088/demo/moire/make_table.cpp | MS-DOS-stuff/reenigne | 0a113990aef398550c6f14d1c7a33af1cb091887 | [
"Unlicense"
] | 18 | 2015-04-11T20:32:44.000Z | 2021-11-06T05:19:57.000Z | #include "alfe/main.h"
#include "alfe/vectors.h"
class Program : public ProgramBase
{
public:
int colour(Vector p)
{
int palette[16] =
// { 0, 8, 9, 1, 5, 13, 12, 4, 6, 14, 15, 7, 3, 11, 10, 2 };
{ 0, 1, 5, 4, 6, 7, 3, 2, 10, 11, 15, 14, 12, 13, 9, 8 };
double d = sqrt(static_cast<double>(p.modulus2()));
return palette[static_cast<int>(d) & 15];
}
//int colour(Vector p)
//{
// int t = static_cast<int>(17 * 6 * atan2(p.y, p.x) / tau + 17 * 6);
// int bayer[16] = {
// 0, 8, 2, 10,
// 12, 4, 14, 6,
// 3, 11, 1, 9,
// 15, 7, 13, 5 };
// int palette[6] = { 12, 14, 10, 11, 9, 13 };
// int c1 = (t / 17) % 6;
// int c2 = (c1 + 1) % 6;
// int dither = t % 17;
// int xd = p.x & 3;
// int yd = p.y & 3;
// int b = bayer[yd * 4 + xd];
// //return palette[dither > b ? c2 : c1];
// return palette[c2];
//}
void run()
{
Vector screenSize(80, 48);
int frames = 13125000 * 14 / (11 * 76 * 262);
int maxRadius = 20;
// Center of screen
Vector2<double> c = Vector2Cast<double>(screenSize) / 2;
// Positions of screen top-left relative to centre of each picture
Array<Vector> p1s(frames);
Array<Vector> p2s(frames);
int minX = 0, maxX = 0;
for (int t = 0; t < frames; ++t) {
double f = static_cast<double>(t) / frames;
double r = maxRadius; // *(1 - cos(f * tau)) / 2;
Rotor2<double> z1(f * 6);
Rotor2<double> z2(f * 7);
Vector2<double> a1(r*cos(f*tau * 6), r*sin(f*tau * 7));
Vector2<double> a2(r*cos(f*tau * 5), r*sin(f*tau * 4));
// Positions of picture centres relative to screen top-left
Vector p1 = -Vector2Cast<int>(c + a1);
Vector p2 = -Vector2Cast<int>(c + a2);
p1s[t] = p1;
p2s[t] = p2;
minX = min(min(minX, p1.x), p2.x);
maxX = max(max(maxX, p1.x + screenSize.x), p2.x + screenSize.x);
}
int stride = (3 + maxX - minX) & ~3;
// Offset in picture from start of screen to end
int ss = (screenSize.y - 1)*stride + screenSize.x;
Array<int> o1s(frames);
Array<int> o2s(frames);
int minO = 0, maxO = 0;
for (int t = 0; t < frames; ++t) {
Vector p1 = p1s[t];
Vector p2 = p2s[t];
// Offsets of screen top-left into pictures relative to pictures
// center.
int o1 = p1.y*stride + p1.x;
int o2 = p2.y*stride + p2.x;
int o1e = o1 + ss;
int o2e = o2 + ss;
// Picture bounds
minO = min(min(minO, o1), o2);
maxO = max(max(maxO, o1e), o2e);
o1s[t] = o1;
o2s[t] = o2;
}
minO &= -2;
maxO = (maxO + 1) & -2;
FileStream output = File("tables.asm").openWrite();
/* output.write("cpu 8086\n"
"segment _DATA public class = DATA\n"
"\n"
"global _picture, _motion\n"
"\n"
"\n"); */
int d = ((-minO) / stride + 1)*stride + stride/2;
int bytes = (maxO + 1 - minO) / 2;
int xs = (minO + d) % stride;
int ys = (minO - xs) / stride;
console.write("First position: (" + decimal(xs) + ", " + decimal(ys) +
")\n");
xs = (maxO + d) % stride;
ys = (maxO - xs) / stride;
console.write("Last position: (" + decimal(xs) + ", " + decimal(ys) +
")\n");
console.write("Picture size: " + decimal(bytes) + "\n");
console.write("Motion size: " + decimal(4 * frames) + "\n");
output.write("frames equ " + decimal(frames) + "\n");
output.write("stride equ " + decimal(stride/2) + "\n");
output.write("p equ picture\n");
output.write(
"p2 equ pictureEnd+(pictureEnd-picture)+(headerEnd-header)\n\n");
output.write("motion:");
for (int t = 0; t < frames; ++t) {
int o1 = o1s[t] - minO;
int o2 = o2s[t] - minO;
int sp = o1 / 2;
if ((o1 & 1) != 0)
sp += bytes;
int bp = o2 / 2;
if ((o2 & 1) != 0)
bp += bytes;
if (t % 3 == 0)
output.write("\n dw ");
else
output.write(", ");
output.write("p+" + hex(sp, 4) + ", p+" + hex(bp, 4));
}
int lastX = 20;
output.write("\n\n");
int p2 = (maxO + 1 - minO) / 2;
p2 += p2 - 1;
output.write("transition:");
Array<bool> cleared(20 * 13);
for (int p = 0; p < 20 * 13; ++p)
cleared[p] = false;
int pp = 0;
for (int t = 0; t < 1000000; ++t) {
int r = 999 - t / 1000;
int theta = t % 1000;
Vector2<double> z =
Vector2<double>(r/20.0, 0)*Rotor2<double>(theta / 1000.0);
Vector p = Vector2Cast<int>(z + Vector2<double>(10, 6));
if (p.x >= 0 && p.x < 20 && p.y >= 0 && p.y < 12) {
int aa = p.y * 20 + p.x;
if (cleared[aa])
continue;
int a = p.y * 206 * 4 + p.x * 10;
if (pp % 3 == 0)
output.write("\n dw ");
else
output.write(", ");
++pp;
output.write("p2+" + hex(a, 4) + ", ");
if (p.y == 12)
output.write("p2+" + hex(a, 4));
else
output.write("p2+" + hex(a + 206*2, 4));
cleared[aa] = true;
}
}
console.write("pp = " + decimal(pp) + " \n");
output.write("\n\npicture:");
for (int o = minO; o < maxO + 1; o += 2) {
int x = (o + d) % stride;
int y = (o + d - x) / stride - d/stride;
if (lastX == 20) {
output.write("\n db ");
lastX = 0;
}
else
output.write(", ");
for (; lastX < x % 20; lastX += 2)
output.write(" ");
Vector p(x - stride / 2, y);
int cL = colour(p);
int cR = colour(p + Vector(1, 0));
int b = cL | (cR << 4);
output.write(String(hex(b, 2)));
lastX += 2;
}
output.write("\n");
output.write("pictureEnd:\n");
}
};
| 32.832512 | 83 | 0.413353 | [
"vector"
] |
5d7eb5a9abdd389dee9f5bb8843e405ea32fd051 | 386 | cpp | C++ | LeetCode/Solutions/LC0643.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | LeetCode/Solutions/LC0643.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | LeetCode/Solutions/LC0643.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | /*
Problem Statement: https://leetcode.com/problems/maximum-average-subarray-i/
*/
class Solution {
public:
double findMaxAverage(vector<int>& nums, int k) {
double max_sum, sum;
max_sum = sum = accumulate(nums.begin(), nums.begin() + k, 0);
for (int i = k; i < nums.size(); i++) {
sum += nums[i] - nums[i - k];
max_sum = max(sum, max_sum);
}
return max_sum / k;
}
}; | 24.125 | 76 | 0.624352 | [
"vector"
] |
5d7f92ab950e06ddcab49c5bddd530fc964e6f20 | 2,608 | cpp | C++ | Codeforces/ChessTournament/solution.cpp | arushmangal/Hack-CP-DSA | 91f5aabc4741c1c518f35065273c7fcfced67061 | [
"MIT"
] | 205 | 2021-09-30T15:41:05.000Z | 2022-03-27T18:34:56.000Z | Codeforces/ChessTournament/solution.cpp | arushmangal/Hack-CP-DSA | 91f5aabc4741c1c518f35065273c7fcfced67061 | [
"MIT"
] | 566 | 2021-09-30T15:27:27.000Z | 2021-10-16T21:21:02.000Z | Codeforces/ChessTournament/solution.cpp | arushmangal/Hack-CP-DSA | 91f5aabc4741c1c518f35065273c7fcfced67061 | [
"MIT"
] | 399 | 2021-09-29T05:40:46.000Z | 2022-03-27T18:34:58.000Z | /*
Each chess game ends in either a win for one player
and a loss for another player, or a draw for both players.
Expectations of the player can be of 2 types:
1. a player wants not to lose any game (i. e. finish the tournament with zero losses);
2. a player wants to win at least one game.
Output : Print "YES" and the sequence if it is possible to meet the expectations of the players.
else print "NO"
*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define repp(i,j,n) for(int i= j;i<n;i++)
#define COUNT(vect, n) count(vect.begin(), vect.end(), n)
#define boost ios_base::sync_with_stdio(false), cin.tie(NULL);
int32_t main(){
int t=1;
cin>>t;
while(t--){
int n;
string s;
cin>>n>>s;
vector<vector<char>> v(n, vector<char> (n));
//if all players *dont want to lose the game* => Draw all matches.
if (COUNT(s,'1')==n) {
rep(i,n){
rep(j,n){
(i==j)? v[i][j]='X':v[i][j]='=';
}
}
}
// if Count of players who wants to win atleast 1 game is <= 2
// print "NO" => Impossible Case
if (COUNT(s,'2')==2 || COUNT(s,'2')==1) cout << "NO\n";
else{
rep(i,n){
char c = s[i];
// else if string[i] == '1' => draw all of it's corresponding games.
if (c=='1'){
rep(j,n){
v[i][j] = '=';
v[j][i] = '=';
}
}
else{
// else alternately, let player1 win one match
//and player2 lose next match using brute force
bool set=false;
repp(j,i+1,n){
if(s[j]=='2'){
if (!set){
v[i][j] = '+';
v[j][i] = '-';
set = true;
}
else {
v[i][j] = '-';
v[j][i] = '+';
}
}
}
}
}
// for all i==j set Verdict = 'X'
rep(i,n) v[i][i] = 'X';
cout << "YES\n";
// print sequence
for(auto i:v){
for(auto j:i) cout << j;
cout << endl;
}
}
}
return 0;
}
| 32.197531 | 96 | 0.389954 | [
"vector"
] |
5d871f5c1cd7484853988a26d44afa23e7445060 | 2,057 | hxx | C++ | opencascade/IFSelect_SignType.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/IFSelect_SignType.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 66 | 2019-12-20T16:07:36.000Z | 2022-03-15T21:56:10.000Z | opencascade/IFSelect_SignType.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 1996-01-29
// Created by: Christian CAILLET
// Copyright (c) 1996-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _IFSelect_SignType_HeaderFile
#define _IFSelect_SignType_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Boolean.hxx>
#include <IFSelect_Signature.hxx>
#include <Standard_CString.hxx>
class Standard_Transient;
class Interface_InterfaceModel;
class IFSelect_SignType;
DEFINE_STANDARD_HANDLE(IFSelect_SignType, IFSelect_Signature)
//! This Signature returns the cdl Type of an entity, under two
//! forms :
//! - complete dynamic type (package and class)
//! - class type, without package name
class IFSelect_SignType : public IFSelect_Signature
{
public:
//! Returns a SignType
//! <nopk> false (D) : complete dynamic type (name = Dynamic Type)
//! <nopk> true : class type without pk (name = Class Type)
Standard_EXPORT IFSelect_SignType(const Standard_Boolean nopk = Standard_False);
//! Returns the Signature for a Transient object, as its Dynamic
//! Type, with or without package name, according starting option
Standard_EXPORT Standard_CString Value (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IFSelect_SignType,IFSelect_Signature)
protected:
private:
Standard_Boolean thenopk;
};
#endif // _IFSelect_SignType_HeaderFile
| 26.714286 | 152 | 0.775401 | [
"object",
"model"
] |
5d93c37bce70565f8d529015bd3ada938d665912 | 1,061 | cpp | C++ | ScoreAfterFlippingMatrix.cpp | ArnabBir/leetcode-solutions | 31cf1edaa2f39c1f8d0300ad815889999058a0c8 | [
"MIT"
] | null | null | null | ScoreAfterFlippingMatrix.cpp | ArnabBir/leetcode-solutions | 31cf1edaa2f39c1f8d0300ad815889999058a0c8 | [
"MIT"
] | null | null | null | ScoreAfterFlippingMatrix.cpp | ArnabBir/leetcode-solutions | 31cf1edaa2f39c1f8d0300ad815889999058a0c8 | [
"MIT"
] | null | null | null | class Solution {
public:
int matrixScore(vector<vector<int>>& A) {
int count0;
for(int i = 0; i < A.size(); ++i) {
if(A[i][0] == 0) {
for(int j = 0; j < A[i].size(); ++j) {
A[i][j] = abs(A[i][j] -1);
}
}
}
for(int j = 1; j < A[0].size(); ++j) {
count0 = 0;
for(int i = 0; i < A.size(); ++i) {
if(A[i][j] == 0) ++count0;
}
if(count0 > A.size() / 2) {
for(int i = 0; i < A.size(); ++i) {
A[i][j] = abs(A[i][j] -1);
}
}
}
int sum = 0, factor = 1, colSum;
for(int j = A[0].size() -1; j >= 0; --j) {
colSum = 0;
for(int i = 0; i < A.size(); ++i) {
colSum += A[i][j];
}
sum += factor * colSum;
factor = factor<<1;
}
return sum;
}
};
| 27.205128 | 57 | 0.28181 | [
"vector"
] |
5d93d666ad82510e436c8b9a70b23a3e99c12fd3 | 1,285 | cpp | C++ | system/lib/libcxxabi/src/format_exception.cpp | rajkumarananthu/emscripten | a2d0b4e533d1af75e0d2897c805cea0b7572799a | [
"MIT"
] | 1 | 2019-06-30T22:24:26.000Z | 2019-06-30T22:24:26.000Z | system/lib/libcxxabi/src/format_exception.cpp | rajkumarananthu/emscripten | a2d0b4e533d1af75e0d2897c805cea0b7572799a | [
"MIT"
] | null | null | null | system/lib/libcxxabi/src/format_exception.cpp | rajkumarananthu/emscripten | a2d0b4e533d1af75e0d2897c805cea0b7572799a | [
"MIT"
] | null | null | null | #include "cxa_exception.h"
#include "cxxabi.h"
#include <stdio.h>
#include <typeinfo>
#ifdef __USING_EMSCRIPTEN_EXCEPTIONS__
extern "C" {
int __cxa_can_catch(const std::type_info* catchType,
const std::type_info* excpType,
void** thrown);
char* emscripten_format_exception(void* exc_ptr) {
__cxxabiv1::__cxa_exception* exc_info =
(__cxxabiv1::__cxa_exception*)exc_ptr - 1;
std::type_info* exc_type = exc_info->exceptionType;
const char* exc_name = exc_type->name();
int status = 0;
char* demangled_buf = __cxxabiv1::__cxa_demangle(exc_name, 0, 0, &status);
if (status == 0 && demangled_buf) {
exc_name = demangled_buf;
}
int can_catch = __cxa_can_catch(&typeid(std::exception), exc_type, &exc_ptr);
char* result = NULL;
if (can_catch) {
const char* exc_what = ((std::exception*)exc_ptr)->what();
asprintf(&result, "Cpp Exception %s: %s", exc_name, exc_what);
} else {
asprintf(&result,
"Cpp Exception: The exception is an object of type '%s' at "
"address %p which does not inherit from std::exception",
exc_name,
exc_ptr);
}
if (demangled_buf) {
free(demangled_buf);
}
return result;
}
}
#endif // __USING_EMSCRIPTEN_EXCEPTIONS__
| 27.340426 | 79 | 0.654475 | [
"object"
] |
5d9846df7d9a30bf6b9c8d212bbaa3b1f763eae6 | 1,687 | hpp | C++ | orca_gazebo/include/orca_gazebo/orca_gazebo_util.hpp | tsaoyu/orca2 | 101513efe9168d0d122158b8c26968595ddf28d4 | [
"BSD-3-Clause"
] | null | null | null | orca_gazebo/include/orca_gazebo/orca_gazebo_util.hpp | tsaoyu/orca2 | 101513efe9168d0d122158b8c26968595ddf28d4 | [
"BSD-3-Clause"
] | null | null | null | orca_gazebo/include/orca_gazebo/orca_gazebo_util.hpp | tsaoyu/orca2 | 101513efe9168d0d122158b8c26968595ddf28d4 | [
"BSD-3-Clause"
] | null | null | null | #ifndef ORCA_GAZEBO_UTIL_H
#define ORCA_GAZEBO_UTIL_H
#include "ignition/math/Vector3.hh"
#include "ignition/math/Quaternion.hh"
#include "geometry_msgs/msg/vector3.hpp"
#include "geometry_msgs/msg/quaternion.hpp"
namespace orca_gazebo
{
double gaussianKernel(double mean, double stddev)
{
// Get 2 random numbers from a uniform distribution
static unsigned int seed = 0;
double uniform1 = static_cast<double>(rand_r(&seed)) / static_cast<double>(RAND_MAX);
double uniform2 = static_cast<double>(rand_r(&seed)) / static_cast<double>(RAND_MAX);
// Use a Box-Muller transform to generate a value from a Gaussian distribution with mean=0 stddev=1
double gaussian = sqrt(-2.0 * ::log(uniform1)) * cos(2.0 * M_PI * uniform2);
// Scale
return stddev * gaussian + mean;
}
// Assume x, y and z are independent, e.g., MEMS accelerometers or gyros
void addNoise(const double stddev, ignition::math::Vector3d &v)
{
v.X() = gaussianKernel(v.X(), stddev);
v.Y() = gaussianKernel(v.Y(), stddev);
v.Z() = gaussianKernel(v.Z(), stddev);
}
// Assume r, p and y are independent, e.g., MEMS magnetometers
void addNoise(const double stddev, ignition::math::Quaterniond &q)
{
ignition::math::Vector3d v = q.Euler();
addNoise(stddev, v);
q.Euler(v);
}
void ignition2msg(const ignition::math::Vector3d &i, geometry_msgs::msg::Vector3 &m)
{
m.x = i.X();
m.y = i.Y();
m.z = i.Z();
}
void ignition2msg(const ignition::math::Quaterniond &i, geometry_msgs::msg::Quaternion &m)
{
m.x = i.X();
m.y = i.Y();
m.z = i.Z();
m.w = i.W();
}
} // namespace orca_gazebo
#endif // ORCA_GAZEBO_UTIL_H
| 27.655738 | 103 | 0.6639 | [
"transform"
] |
4b6e8e983bfb55fbb7998b808f850511fb2162e8 | 9,485 | cpp | C++ | src/resolver_impl.cpp | samuelpowell/liblsl | 92f0e2f4870cd9b505cd35c89f70c7a9d3b191a3 | [
"MIT"
] | null | null | null | src/resolver_impl.cpp | samuelpowell/liblsl | 92f0e2f4870cd9b505cd35c89f70c7a9d3b191a3 | [
"MIT"
] | null | null | null | src/resolver_impl.cpp | samuelpowell/liblsl | 92f0e2f4870cd9b505cd35c89f70c7a9d3b191a3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <boost/asio/ip/udp.hpp>
#include <boost/asio/placeholders.hpp>
#include <boost/bind.hpp>
#include <boost/thread/thread_only.hpp>
#include "api_config.h"
#include "cast.h"
#include "resolve_attempt_udp.h"
#include "resolver_impl.h"
#include "socket_utils.h"
// === implementation of the resolver_impl class ===
using namespace lsl;
using namespace lslboost::asio;
/**
* Instantiate a new resolver and configure timing parameters.
* A note on resolution logic. If KnownPeers in the api_config is empty, a new multicast wave will be scheduled every mcast_min_rtt (until a timeout expires or the desired number of streams has been resolved).
* If KnownPeers is non-empty, a multicast wave an a unicast wave will be schedule in alternation. The spacing between waves will be no shorter than the respective minimum RTTs.
* TCP resolves are currently not implemented (but may be at a later time); these are only necessary when UDP traffic is disabled on a particular router.
*/
resolver_impl::resolver_impl(): cfg_(api_config::get_instance()), cancelled_(false), expired_(false), forget_after_(FOREVER), fast_mode_(true),
io_(io_context_p(new io_context())), resolve_timeout_expired_(*io_), wave_timer_(*io_), unicast_timer_(*io_)
{
// parse the multicast addresses into endpoints and store them
std::vector<std::string> mcast_addrs = cfg_->multicast_addresses();
uint16_t mcast_port = cfg_->multicast_port();
for (std::size_t k=0;k<mcast_addrs.size();k++) {
try {
mcast_endpoints_.push_back(udp::endpoint(ip::make_address(mcast_addrs[k]),(uint16_t)mcast_port));
}
catch(std::exception &) { }
}
// parse the per-host addresses into endpoints, and store them, too
std::vector<std::string> peers = cfg_->known_peers();
udp::resolver udp_resolver(*io_);
// for each known peer...
for (std::size_t k=0;k<peers.size();k++) {
try {
// resolve the name
udp::resolver::results_type res = udp_resolver.resolve(peers[k], to_string(cfg_->base_port()));
// for each endpoint...
for (udp::resolver::results_type::iterator i=res.begin(); i != res.end(); i++) {
// for each port in the range...
for (int p=cfg_->base_port(); p<cfg_->base_port()+cfg_->port_range(); p++)
// add a record
ucast_endpoints_.push_back(udp::endpoint(i->endpoint().address(),p));
}
} catch(std::exception &) { }
}
// generate the list of protocols to use
if (cfg_->allow_ipv6()) {
udp_protocols_.push_back(udp::v6());
tcp_protocols_.push_back(tcp::v6());
}
if (cfg_->allow_ipv4()) {
udp_protocols_.push_back(udp::v4());
tcp_protocols_.push_back(tcp::v4());
}
}
// === resolve functions ===
/**
* Resolve a query string into a list of matching stream_info's on the network.
* Blocks until at least the minimum number of streams has been resolved, or the timeout fires, or the resolve has been cancelled.
*/
std::vector<stream_info_impl> resolver_impl::resolve_oneshot(const std::string &query, int minimum, double timeout, double minimum_time) {
// reset the IO service & set up the query parameters
io_->restart();
query_ = query;
minimum_ = minimum;
wait_until_ = lsl_clock() + minimum_time;
results_.clear();
forget_after_ = FOREVER;
fast_mode_ = true;
expired_ = false;
// start a timer that cancels all outstanding IO operations and wave schedules after the timeout has expired
if (timeout != FOREVER) {
resolve_timeout_expired_.expires_after(timeout_sec(timeout));
resolve_timeout_expired_.async_wait(lslboost::bind(&resolver_impl::resolve_timeout_expired,this,placeholders::error));
}
// start the first wave of resolve packets
next_resolve_wave();
// run the IO operations until finished
if (!cancelled_) {
io_->run();
// collect output
std::vector<stream_info_impl> output;
for(result_container::iterator i=results_.begin(); i!= results_.end();i++)
output.push_back(i->second.first);
return output;
} else
return std::vector<stream_info_impl>();
}
void resolver_impl::resolve_continuous(const std::string &query, double forget_after) {
// reset the IO service & set up the query parameters
io_->restart();
query_ = query;
minimum_ = 0;
wait_until_ = 0;
results_.clear();
forget_after_ = forget_after;
fast_mode_ = false;
expired_ = false;
// start a wave of resolve packets
next_resolve_wave();
// spawn a thread that runs the IO operations
background_io_.reset(new lslboost::thread(lslboost::bind(&io_context::run,io_)));
}
/// Get the current set of results (e.g., during continuous operation).
std::vector<stream_info_impl> resolver_impl::results() {
std::vector<stream_info_impl> output;
lslboost::lock_guard<lslboost::mutex> lock(results_mut_);
double expired_before = lsl_clock() - forget_after_;
for(result_container::iterator i=results_.begin(); i!=results_.end();) {
if (i->second.second < expired_before) {
result_container::iterator tmp = i++;
results_.erase(tmp);
} else {
output.push_back(i->second.first);
i++;
}
}
return output;
}
// === timer-driven async handlers ===
/// This function starts a new wave of resolves.
void resolver_impl::next_resolve_wave() {
std::size_t num_results = 0;
{
lslboost::lock_guard<lslboost::mutex> lock(results_mut_);
num_results = results_.size();
}
if (cancelled_ || expired_ || (minimum_ && (num_results >= (std::size_t)minimum_) && lsl_clock() >= wait_until_)) {
// stopping criteria satisfied: cancel the ongoing operations
cancel_ongoing_resolve();
} else {
// start a new multicast wave
udp_multicast_burst();
if (!ucast_endpoints_.empty()) {
// we have known peer addresses: we spawn a unicast wave and shortly thereafter the next wave
unicast_timer_.expires_after(timeout_sec(cfg_->multicast_min_rtt()));
unicast_timer_.async_wait(lslboost::bind(&resolver_impl::udp_unicast_burst,this,placeholders::error));
wave_timer_.expires_after(timeout_sec((fast_mode_?0:cfg_->continuous_resolve_interval())+(cfg_->multicast_min_rtt()+cfg_->unicast_min_rtt())));
wave_timer_.async_wait(lslboost::bind(&resolver_impl::wave_timeout_expired,this,placeholders::error));
} else {
// there are no known peer addresses; just set up the next wave
wave_timer_.expires_after(timeout_sec((fast_mode_?0:cfg_->continuous_resolve_interval())+cfg_->multicast_min_rtt()));
wave_timer_.async_wait(lslboost::bind(&resolver_impl::wave_timeout_expired,this,placeholders::error));
}
}
}
/// Start a new resolver attepmpt on the multicast hosts.
void resolver_impl::udp_multicast_burst() {
// start one per IP stack under consideration
for (std::size_t k=0,failures=0;k<udp_protocols_.size();k++) {
try {
resolve_attempt_udp_p attempt(new resolve_attempt_udp(*io_,udp_protocols_[k],mcast_endpoints_,query_,results_,results_mut_,cfg_->multicast_max_rtt(),this));
attempt->begin();
} catch(std::exception &e) {
if (++failures == udp_protocols_.size())
std::cerr << "Could not start a multicast resolve attempt for any of the allowed protocol stacks: " << e.what() << std::endl;
}
}
}
/// Start a new resolver attempt on the known peers.
void resolver_impl::udp_unicast_burst(error_code err) {
if (err != error::operation_aborted) {
// start one per IP stack under consideration
for (std::size_t k=0,failures=0;k<udp_protocols_.size();k++) {
try {
resolve_attempt_udp_p attempt(new resolve_attempt_udp(*io_,udp_protocols_[k],ucast_endpoints_,query_,results_,results_mut_,cfg_->unicast_max_rtt(),this));
attempt->begin();
} catch(std::exception &e) {
if (++failures == udp_protocols_.size())
std::cerr << "Could not start a unicast resolve attempt for any of the allowed protocol stacks: " << e.what() << std::endl;
}
}
}
}
/// This handler is called when the overall resolve timeout (if any) expires.
void resolver_impl::resolve_timeout_expired(error_code err) {
if (err != error::operation_aborted)
cancel_ongoing_resolve();
}
/// This handler is called when the wave timeout expires.
void resolver_impl::wave_timeout_expired(error_code err) {
if (err != error::operation_aborted)
next_resolve_wave();
}
// === cancellation and teardown ===
/// Cancel any ongoing operations and render the resolver unusable.
/// This can be used to cancel a blocking resolve_oneshot() from another thread (e.g., to initiate teardown of the object).
void resolver_impl::cancel() {
cancelled_ = true;
cancel_ongoing_resolve();
}
/// Cancel an ongoing resolve, if any (otherwise without effect).
void resolver_impl::cancel_ongoing_resolve() {
// make sure that ongoing handler loops terminate
expired_ = true;
// timer fires: cancel the next wave schedule
post(*io_, lslboost::bind(&steady_timer::cancel, &wave_timer_));
post(*io_, lslboost::bind(&steady_timer::cancel, &unicast_timer_));
// and cancel the timeout, too
post(*io_, lslboost::bind(&steady_timer::cancel, &resolve_timeout_expired_));
// cancel all currently active resolve attempts
cancel_all_registered();
}
/// Destructor.
/// Cancels any ongoing processes and waits until they finish.
resolver_impl::~resolver_impl() {
try {
if (background_io_) {
cancel();
background_io_->join();
}
}
catch(std::exception &e) {
std::cerr << "Error during destruction of a resolver_impl: " << e.what() << std::endl;
}
catch(...) {
std::cerr << "Severe error during destruction of a resolver_impl." << std::endl;
}
}
| 37.94 | 208 | 0.719346 | [
"render",
"object",
"vector"
] |
4b70972044b7f760d03f03470bfd7b429d38d371 | 3,191 | hpp | C++ | src/entities/Player.hpp | andrelegault/cpp-risk | 73c59a9add8e43824c681c9dcde4715b027d09a2 | [
"MIT"
] | null | null | null | src/entities/Player.hpp | andrelegault/cpp-risk | 73c59a9add8e43824c681c9dcde4715b027d09a2 | [
"MIT"
] | null | null | null | src/entities/Player.hpp | andrelegault/cpp-risk | 73c59a9add8e43824c681c9dcde4715b027d09a2 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <iostream>
#include <algorithm>
#include "Player.fwd.hpp"
#include "PlayerStrategies.hpp"
#include "Map.hpp"
#include "Order.hpp"
#include "Cards.hpp"
#include "UI.hpp"
#include "MVC.hpp"
using std::cout;
using std::ostream;
using std::endl;
/**
* A Risk player.
*/
class Player : public Subject {
public:
int armies;
/// default constructor
Player();
/// parameter constructor
Player(string name);
/// parameter constructor
Player(Deck* deck, PlayerStrategy* initStrategy);
/// parameter constructor
Player(string name, Deck* deck, PlayerStrategy* initStrategy);
// Copy constructor
Player(const Player& other);
// Desctructor.
~Player();
// Orders to apply.
OrdersList* orders;
/// gets the player's name
string getName() const;
// The card collection for the Player.
Hand* hand;
// Number of territories owned by the player.
int getNumTerritories() const;
/**
* Returns player territories.
*/
vector<Territory*> getTerritories() const;
/**
* Stream insertion operator.
* @param stream Stream to output to.
* @param player Reference to object to output.
*/
friend ostream& operator<<(ostream& stream, const Player& player);
/**
* Assignment operator.
* @param other Reference to object used for assignment.
*/
Player& operator=(const Player& other);
/**
* @return A list of territories to defended.
*/
vector<Territory*> toDefend();
/**
* @return A list of territories to attack.
*/
vector<Territory*> toAttack();
/**
* Creates an Order and adds it to the list of orders.
*/
void issueOrder();
/**
* Adds an order to the player's list of orders.
* @param order Order to add.
*/
void addOrder(Order* order);
/**
* Removes an order from the player's list of orders.
* @param order Order to add.
*/
void removeOrder(Order* order);
/// Gets the number of orders in the player's order list.
int remainingOrders() const;
/**
* Add territory to territories.
*/
void addTerritory(Territory* territory);
/**
* Remove territory from territories.
*/
void removeTerritory(Territory* territory);
/**
* Gets the iterator of a territory.
*/
vector<Territory*>::iterator getTerritory(Territory* territory);
/**
* Gets the player's next order.
* @return the order with highest priority.
*/
Order* getNextOrder(const int wantedPriority = -1) const;
/**
* Change the strategy type the player uses
* @param newStrategy New player strategy.
*/
void setStrategy(PlayerStrategy* newStrategy);
/**
* Gets the player's current strategy.
* @return the player's current strategy.
*/
PlayerStrategy& getStrategy() const;
private:
// The territories owned by the players.
vector<Territory*> territories;
// The static player count.
static int count;
// The name of the player.
string name;
// Strategy.
PlayerStrategy* ps;
};
| 21.273333 | 70 | 0.625509 | [
"object",
"vector"
] |
4b754af401b8decf0e68ca042f738dbf9a358286 | 1,502 | cpp | C++ | c++/day14/20.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | c++/day14/20.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | c++/day14/20.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | class MyQueue {
public:
/** Initialize your data structure here. */
MyQueue() {
}
/** Push element x to the back of queue. */
void push(int x) {
mStack.push(x);
}
/** Removes the element from in front of queue and returns that element. */
int pop() {
int res;
if(cache.empty()) {
while(!mStack.empty()) {
int data = mStack.top();
cache.push(data);
mStack.pop();
}
}
if(cache.empty()) return 0;
res = cache.top();
cache.pop();
return res;
}
/** Get the front element. */
int peek() {
int res;
if(cache.empty()) {
while(!mStack.empty()) {
int data = mStack.top();
cache.push(data);
mStack.pop();
}
}
// if(cache.empty()) return 0;
res = cache.top();
return res;
}
/** Returns whether the queue is empty. */
bool empty() {
return mStack.empty()&& cache.empty();
}
private:
std::stack<int> mStack, cache;
};
/**
* Your MyQueue object will be instantiated and called as such:
* MyQueue obj = MyQueue();
* obj.push(x);
* int param_2 = obj.pop();
* int param_3 = obj.peek();
* bool param_4 = obj.empty();
*/
//need to been done 两个queue, 实现一个stack | 20.575342 | 79 | 0.449401 | [
"object"
] |
4b779ab201b00b89b48c8f87c614f9bd93bd00ef | 1,051 | cpp | C++ | Data_structures/2d array/grid_successors.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | 3 | 2017-08-12T06:09:39.000Z | 2018-09-16T02:31:27.000Z | Data_structures/2d array/grid_successors.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | null | null | null | Data_structures/2d array/grid_successors.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef vector <int> vi;
typedef long long ll;
vector <vector <bool>> a(3, vector <bool> (3));
int func(){
vector <vector <bool>> temp(a);
a[0][0] = temp[1][0] ^ temp[0][1];
a[2][2] = temp[2][1] ^ temp[1][2];
a[0][2] = temp[1][2] ^ temp[0][1];
a[2][0] = temp[1][0] ^ temp[2][1];
a[0][1] = temp[0][0] ^ temp[0][2] ^ temp[1][1];
a[1][0] = temp[0][0] ^ temp[2][0] ^ temp[1][1];
a[2][1] = temp[2][0] ^ temp[2][2] ^ temp[1][1];
a[1][2] = temp[0][2] ^ temp[2][2] ^ temp[1][1];
a[1][1] = temp[1][2] ^ temp[1][0] ^ temp[0][1] ^ temp[2][1];
if(a == temp) return 0;
else return 1;
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
//ifstream cin("in.txt");
//ofstream cout("out.txt");
int t;
cin >> t;
vector <string> b(3);
while(t--){
for(int i=0; i<3; i++) cin >> b[i];
for(int i=0; i<3; i++) for(int j=0; j<3; j++) a[i][j] = b[i][j]-'0';
int index = -1;
while(func()){
index++;
}
cout << index << endl;
}
return 0;
}
| 25.02381 | 71 | 0.490961 | [
"vector"
] |
4b7aee24913ff3a23e5402b2edef42e25cecc170 | 5,371 | cpp | C++ | libs/bloom-filter/tests/unit/bloom_filter_tests.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 96 | 2018-08-23T16:49:05.000Z | 2021-11-25T00:47:16.000Z | libs/bloom-filter/tests/unit/bloom_filter_tests.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1,011 | 2018-08-17T12:25:21.000Z | 2021-11-18T09:30:19.000Z | libs/bloom-filter/tests/unit/bloom_filter_tests.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 65 | 2018-08-20T20:05:40.000Z | 2022-02-26T23:54:35.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI 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.
//
//------------------------------------------------------------------------------
#include "bloom_filter/bloom_filter.hpp"
#include "core/byte_array/const_byte_array.hpp"
#include "gmock/gmock.h"
#include <algorithm>
#include <cstddef>
#include <iterator>
#include <vector>
namespace {
using namespace fetch;
std::vector<std::size_t> double_length_as_hash(fetch::byte_array::ConstByteArray const &input)
{
return {2 * input.size()};
}
std::vector<std::size_t> length_powers_as_hash(fetch::byte_array::ConstByteArray const &input)
{
auto const size = input.size();
return {size, size * size, size * size * size};
}
std::vector<std::size_t> raw_data_as_hash(fetch::byte_array::ConstByteArray const &input)
{
auto start = reinterpret_cast<std::size_t const *>(input.pointer());
auto const size_in_bytes = input.size();
std::vector<std::size_t> output((size_in_bytes + sizeof(std::size_t) - 1) / sizeof(std::size_t));
for (std::size_t i = 0; i < output.size(); ++i)
{
output[i] = *(start + i);
}
return output;
}
class HashSourceTests : public ::testing::Test
{
public:
HashSourceTests()
: hash_source_factory({double_length_as_hash, length_powers_as_hash, raw_data_as_hash})
// ASCII '3' == 0x33u, 'D' == 0x44u, 'w' == 0x77u
, input("wD3D3D3D333ww")
, expected_output{2 * input.size(), input.size(), input.size() * input.size(),
input.size() * input.size() * input.size(),
// First 8 bytes of input
0x4433443344334477ull,
// Second 8 bytes of input
0x7777333333ull}
, hash_source(hash_source_factory(input))
{}
internal::HashSourceFactory const hash_source_factory;
fetch::byte_array::ConstByteArray const input;
std::vector<std::size_t> const expected_output;
internal::HashSource const hash_source;
};
TEST_F(HashSourceTests, hash_source_supports_iterator_ranges_and_evaluates_hashes_in_order)
{
std::vector<std::size_t> output_from_range(hash_source.cbegin(), hash_source.cend());
EXPECT_EQ(output_from_range, expected_output);
}
TEST_F(HashSourceTests, hash_source_supports_range_for_loops_and_evaluates_hashes_in_order)
{
std::vector<std::size_t> output_from_loop;
for (std::size_t hash : hash_source)
{
output_from_loop.push_back(hash);
}
EXPECT_EQ(output_from_loop, expected_output);
}
TEST_F(HashSourceTests, one_hash_source_may_be_traversed_multiple_times)
{
std::vector<std::size_t> output_from_range1(hash_source.cbegin(), hash_source.cend());
std::vector<std::size_t> output_from_range2(hash_source.begin(), hash_source.end());
std::vector<std::size_t> output_from_loop1;
std::vector<std::size_t> output_from_loop2;
for (std::size_t hash : hash_source)
{
output_from_loop1.push_back(hash);
}
for (std::size_t hash : hash_source)
{
output_from_loop2.push_back(hash);
}
EXPECT_EQ(output_from_loop1, expected_output);
EXPECT_EQ(output_from_loop2, expected_output);
EXPECT_EQ(output_from_range1, expected_output);
EXPECT_EQ(output_from_range2, expected_output);
}
class BloomFilterTests : public ::testing::Test
{
public:
BloomFilterTests()
: strong_hash_functions{double_length_as_hash, length_powers_as_hash, raw_data_as_hash}
, weak_hash_functions{double_length_as_hash, length_powers_as_hash}
, filter(strong_hash_functions)
, filter_weak_hashing(weak_hash_functions)
{}
BasicBloomFilter::Functions strong_hash_functions;
BasicBloomFilter::Functions weak_hash_functions;
BasicBloomFilter filter;
BasicBloomFilter filter_weak_hashing;
};
TEST_F(BloomFilterTests, empty_bloom_filter_reports_matches_no_items)
{
EXPECT_FALSE(filter.Match("abc").first);
}
TEST_F(BloomFilterTests, items_which_had_been_added_are_matched)
{
filter.Add("abc");
EXPECT_TRUE(filter.Match("abc").first);
}
TEST_F(BloomFilterTests, items_which_had_not_been_added_are_not_matched)
{
filter.Add("abc");
EXPECT_FALSE(filter.Match("xyz").first);
}
TEST_F(BloomFilterTests, multiple_items_may_be_added_and_queried)
{
filter.Add("abc");
EXPECT_TRUE(filter.Match("abc").first);
filter.Add("xyz");
EXPECT_TRUE(filter.Match("xyz").first);
EXPECT_FALSE(filter.Match("klmnop").first);
}
TEST_F(BloomFilterTests, false_positives_are_reported_if_all_hash_values_coincide)
{
auto const entry1 = "abc";
auto const entry2 = "xyz";
for (auto const &fn : weak_hash_functions)
{
EXPECT_EQ(fn(entry1), fn(entry2));
}
filter_weak_hashing.Add(entry1);
EXPECT_TRUE(filter_weak_hashing.Match(entry2).first);
}
} // namespace
| 29.674033 | 99 | 0.700987 | [
"vector"
] |
4b7b19e497e4b3c4def5e218638b08a88d56f12d | 16,730 | cpp | C++ | indra/newview/piemenu.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/newview/piemenu.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/newview/piemenu.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | /**
* @file piemenu.cpp
* @brief Pie menu class
*
* $LicenseInfo:firstyear=2001&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
* Copyright (C) 2011, Zi Ree @ Second Life
*
* This library 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;
* version 2.1 of the License only.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
#include "llviewerprecompiledheaders.h"
#include "linden_common.h"
#include "piemenu.h"
#include "pieslice.h"
#include "pieseparator.h"
#include "llviewercontrol.h"
#include "llviewerwindow.h"
#include "v2math.h"
// copied from LLMenuGL - Remove these lines over there when finished
const S32 PIE_INNER_SIZE=20; // radius of the inner pie circle
const F32 PIE_POPUP_FACTOR=(F32)1.7f; // pie menu size factor on popup
const F32 PIE_POPUP_TIME=(F32)0.25f; // time to shrink from popup size to regular size
const S32 PIE_OUTER_SIZE=96; // radius of the outer pie circle
// register the pie menu globally as child widget
static LLDefaultChildRegistry::Register<PieMenu> r1("pie_menu");
// register all possible child widgets a pie menu can have
static PieChildRegistry::Register<PieMenu> pie_r1("pie_menu");
static PieChildRegistry::Register<PieSlice> pie_r2("pie_slice");
static PieChildRegistry::Register<PieSeparator> pie_r3("pie_separator");
#define PIE_POPUP_EFFECT 1 // debug
#define PIE_DRAW_BOUNDING_BOX 0 // debug
// pie slice label text positioning
const S32 PIE_X[] = {64,45, 0,-45,-63,-45, 0, 45};
const S32 PIE_Y[] = { 0,44,73, 44, 0,-44,-73,-44};
PieMenu::PieMenu(const LLContextMenu::Params& p) :
LLContextMenu(p)
{
LL_DEBUGS() << "PieMenu::PieMenu()" << LL_ENDL;
// radius, so we need this *2
reshape(PIE_OUTER_SIZE*2,PIE_OUTER_SIZE*2,FALSE);
// set up the font for the menu
mFont=LLFontGL::getFont(LLFontDescriptor("SansSerif","Pie",LLFontGL::NORMAL));
if(!mFont)
{
LL_WARNS() << "Could not find font size for Pie menu, falling back to Small font." << LL_ENDL;
mFont=LLFontGL::getFont(LLFontDescriptor("SansSerif","Small",LLFontGL::NORMAL));
}
// set slices pointer to our own slices
mSlices=&mMySlices;
// this will be the first click on the menu
mFirstClick=TRUE;
// clean initialisation
mSlice=0;
}
bool PieMenu::addChild(LLView* child,S32 tab_group)
{
// don't add invalid slices
if(!child)
return FALSE;
// add a new slice to the menu
mSlices->push_back(child);
// tell the view that our menu has changed and reshape it back to correct size
LLUICtrl::addChild(child);
reshape(PIE_OUTER_SIZE*2,PIE_OUTER_SIZE*2,FALSE);
return TRUE;
}
void PieMenu::removeChild(LLView* child)
{
// remove a slice from the menu
slice_list_t::iterator found_it=std::find(mSlices->begin(),mSlices->end(),child);
if(found_it!=mSlices->end())
{
mSlices->erase(found_it);
}
// tell the view that our menu has changed and reshape it back to correct size
LLUICtrl::removeChild(child);
reshape(PIE_OUTER_SIZE*2,PIE_OUTER_SIZE*2,FALSE);
}
BOOL PieMenu::handleHover(S32 x,S32 y,MASK mask)
{
// do nothing
return TRUE;
}
void PieMenu::show(S32 x, S32 y, LLView* spawning_view)
{
// if the menu is already there, do nothing
if(getVisible())
return;
// play a sound
make_ui_sound("UISndPieMenuAppear");
LL_DEBUGS() << "PieMenu::show(): " << x << " " << y << LL_ENDL;
// make sure the menu is always the correct size
reshape(PIE_OUTER_SIZE*2,PIE_OUTER_SIZE*2,FALSE);
// remember our center point
mCenterX=x;
mCenterY=y;
// get the 3D view rectangle
LLRect screen=LLMenuGL::sMenuContainer->getMenuRect();
// check if the pie menu is out of bounds and move it accordingly
if(x-PIE_OUTER_SIZE<0)
x=PIE_OUTER_SIZE;
else if(x+PIE_OUTER_SIZE>screen.getWidth())
x=screen.getWidth()-PIE_OUTER_SIZE;
if(y-PIE_OUTER_SIZE<screen.mBottom)
y=PIE_OUTER_SIZE+screen.mBottom;
else if(y+PIE_OUTER_SIZE-screen.mBottom>screen.getHeight())
y=screen.getHeight()-PIE_OUTER_SIZE+screen.mBottom;
// move the mouse pointer into the center of the menu
LLUI::setMousePositionLocal(getParent(),x,y);
// set our drawing origin to the center of the menu, taking UI scale into account
LLVector2 scale=gViewerWindow->getDisplayScale();
setOrigin(x-PIE_OUTER_SIZE/scale.mV[VX],y-PIE_OUTER_SIZE/scale.mV[VY]);
// grab mouse control
gFocusMgr.setMouseCapture(this);
// this was the first click for the menu
mFirstClick=TRUE;
// set up the slices pointer to the menu's own slices
mSlices=&mMySlices;
// reset enable update checks for slices
for (slice_list_t::iterator it = mSlices->begin(); it != mSlices->end(); it++)
{
PieSlice* resetSlice = dynamic_cast<PieSlice*>(*it);
if (resetSlice)
{
resetSlice->resetUpdateEnabledCheck();
}
}
// cleanup
mSlice=0;
mOldSlice=0;
// draw the menu on screen
setVisible(TRUE);
LLView::setVisible(TRUE);
}
void PieMenu::hide()
{
// if the menu is already hidden, do nothing
if(!getVisible())
return;
// make a sound when hiding
make_ui_sound("UISndPieMenuHide");
LL_DEBUGS() << "Clearing selections" << LL_ENDL;
mSlices=&mMySlices;
#if PIE_POPUP_EFFECT
// safety in case the timer was still running
mPopupTimer.stop();
#endif
LLView::setVisible(FALSE);
}
void PieMenu::setVisible(BOOL visible)
{
// hide the menu if needed
if(!visible)
{
hide();
// clear all menus and temporary selections
sMenuContainer->hideMenus();
}
}
void PieMenu::draw( void )
{
// save the current OpenGL drawing matrix so we can freely modify it
gGL.pushMatrix();
// save the widget's rectangle for later use
LLRect r=getRect();
// initialize pie scale factor for popup effect
F32 factor=1.f;
#if PIE_POPUP_EFFECT
// set the popup size if this was the first click on the menu
if(mFirstClick)
{
factor=PIE_POPUP_FACTOR;
}
// otherwise check if the popup timer is still running
else if(mPopupTimer.getStarted())
{
// if the timer ran past the popup time, stop the timer and set the size to 1.0
F32 elapsedTime=mPopupTimer.getElapsedTimeF32();
if(elapsedTime>PIE_POPUP_TIME)
{
factor=1.f;
mPopupTimer.stop();
}
// otherwise calculate the size factor to make the menu shrink over time
else
{
factor=PIE_POPUP_FACTOR-(PIE_POPUP_FACTOR-1.f)*elapsedTime/PIE_POPUP_TIME;
}
// setRect(r); // obsolete?
}
#endif
#if PIE_DRAW_BOUNDING_BOX
// draw a bounding box around the menu for debugging purposes
gl_rect_2d(0,r.getHeight(),r.getWidth(),0,LLColor4::white,FALSE);
#endif
// set up pie menu colors
LLColor4 lineColor=LLUIColorTable::instance().getColor("PieMenuLineColor");
LLColor4 selectedColor=LLUIColorTable::instance().getColor("PieMenuSelectedColor");
LLColor4 textColor=LLUIColorTable::instance().getColor("PieMenuTextColor");
LLColor4 bgColor=LLUIColorTable::instance().getColor("PieMenuBgColor");
LLColor4 borderColor=bgColor % (F32)0.3f;
// if the user wants their own colors, apply them here
static LLCachedControl<bool> sOverridePieColors(gSavedSettings, "OverridePieColors", false);
if (sOverridePieColors)
{
static LLCachedControl<F32> sPieMenuOpacity(gSavedSettings, "PieMenuOpacity");
static LLCachedControl<F32> sPieMenuFade(gSavedSettings, "PieMenuFade");
bgColor=LLUIColorTable::instance().getColor("PieMenuBgColorOverride") % sPieMenuOpacity;
borderColor=bgColor % (1.f - sPieMenuFade);
selectedColor=LLUIColorTable::instance().getColor("PieMenuSelectedColorOverride");
}
// on first click, make the menu fade out to indicate "borderless" operation
if(mFirstClick)
borderColor%=0.f;
// initially, the current segment is marked as invalid
S32 currentSegment=-1;
// get the current mouse pointer position local to the pie
S32 x,y;
LLUI::getMousePositionLocal(this,&x,&y);
// remember to take the UI scaling into account
LLVector2 scale=gViewerWindow->getDisplayScale();
// move mouse coordinates to be relative to the pie center
LLVector2 mouseVector(x-PIE_OUTER_SIZE/scale.mV[VX],y-PIE_OUTER_SIZE/scale.mV[VY]);
// get the distance from the center point
F32 distance=mouseVector.length();
// check if our mouse pointer is within the pie slice area
if(distance>PIE_INNER_SIZE && (distance<(PIE_OUTER_SIZE*factor) || mFirstClick))
{
// get the angle of the mouse pointer from the center in radians
F32 angle=acos(mouseVector.mV[VX]/distance);
// if the mouse is below the middle of the pie, reverse the angle
if(mouseVector.mV[VY]<0)
angle=F_PI*2-angle;
// rotate the angle slightly so the slices' centers are aligned correctly
angle+=F_PI/8;
// calculate slice number from the angle
currentSegment=(S32) (8.f*angle/(F_PI*2.f)) % 8;
}
// move origin point to the center of our rectangle
gGL.translatef(r.getWidth() / 2, r.getHeight() / 2, 0);
// draw the general pie background
gl_washer_2d(PIE_OUTER_SIZE*factor,PIE_INNER_SIZE,32,bgColor,borderColor);
// set up an item list iterator to point at the beginning of the item list
slice_list_t::iterator cur_item_iter;
cur_item_iter=mSlices->begin();
// clear current slice pointer
mSlice=0;
// current slice number is 0
S32 num=0;
BOOL wasAutohide=FALSE;
do
{
// standard item text color
LLColor4 itemColor=textColor;
// clear the label and set up the starting angle to draw in
std::string label("");
F32 segmentStart = F_PI/4.f * (F32)num - F_PI / 8.f;
// iterate through the list of slices
if(cur_item_iter!=mSlices->end())
{
// get current slice item
LLView* item=(*cur_item_iter);
// check if this is a submenu or a normal click slice
PieSlice* currentSlice=dynamic_cast<PieSlice*>(item);
PieMenu* currentSubmenu=dynamic_cast<PieMenu*>(item);
// advance internally to the next slice item
cur_item_iter++;
// in case it is regular click slice
if(currentSlice)
{
// get the slice label and tell the slice to check if it's supposed to be visible
label=currentSlice->getLabel();
currentSlice->updateVisible();
// disable it if it's not visible, pie slices never really disappear
BOOL slice_visible = currentSlice->getVisible();
currentSlice->setEnabled(slice_visible);
if (!slice_visible)
{
// LL_DEBUGS() << label << " is not visible" << LL_ENDL;
label = "";
}
// if the current slice is the start of an autohide chain, clear out previous chains
if(currentSlice->getStartAutohide())
wasAutohide=FALSE;
// check if the current slice is part of an autohide chain
if(currentSlice->getAutohide())
{
// if the previous item already won the autohide, skip this item
if(wasAutohide)
continue;
// look at the next item in the pie
LLView* lookAhead=(*cur_item_iter);
// check if this is a normal click slice
PieSlice* lookSlice=dynamic_cast<PieSlice*>(lookAhead);
if(lookSlice)
{
// if the next item is part of the current autohide chain as well ...
if(lookSlice->getAutohide() && !lookSlice->getStartAutohide())
{
// ... it's visible and it's enabled, skip the current one.
// the first visible and enabled item in autohide chains wins
// this is useful for Sit/Stand toggles
lookSlice->updateEnabled();
lookSlice->updateVisible();
if(lookSlice->getVisible() && lookSlice->getEnabled())
continue;
// this item won the autohide contest
wasAutohide=TRUE;
}
}
}
else
// reset autohide chain
wasAutohide=FALSE;
// check if the slice is currently enabled
currentSlice->updateEnabled();
if(!currentSlice->getEnabled())
{
LL_DEBUGS() << label << " is disabled" << LL_ENDL;
// fade the item color alpha to mark the item as disabled
itemColor%=(F32)0.3f;
}
}
// if it's a submenu just get the label
else if(currentSubmenu)
label=currentSubmenu->getLabel();
// if it's a slice or submenu, the mouse pointer is over the same segment as our counter and the item is enabled
if((currentSlice || currentSubmenu) && (currentSegment==num) && item->getEnabled())
{
// memorize the currently highlighted slice for later
mSlice=item;
// if we highlighted a different slice than before, we must play a sound
if(mOldSlice!=mSlice)
{
// get the appropriate UI sound and play it
char soundNum='0'+num;
std::string soundName="UISndPieMenuSliceHighlight";
soundName+=soundNum;
make_ui_sound(soundName.c_str());
// remember which slice we highlighted last, so we only play the sound once
mOldSlice=mSlice;
}
// draw the currently highlighted pie slice
gl_washer_segment_2d(PIE_OUTER_SIZE * factor, PIE_INNER_SIZE, segmentStart + 0.02f, segmentStart + F_PI / 4.f - 0.02f, 4, selectedColor, borderColor);
}
}
// draw the divider line for this slice
gl_washer_segment_2d(PIE_OUTER_SIZE * factor, PIE_INNER_SIZE, segmentStart - 0.02f, segmentStart + 0.02f, 4, lineColor, borderColor);
// draw the slice labels around the center
mFont->renderUTF8(label,
0,
PIE_X[num],
PIE_Y[num],
itemColor,
LLFontGL::HCENTER,
LLFontGL::VCENTER,
LLFontGL::NORMAL,
LLFontGL::DROP_SHADOW_SOFT);
// next slice
num++;
}
while(num<8); // do this until the menu is full
// draw inner and outer circle, outer only if it was not the first click
if(!mFirstClick)
gl_washer_2d(PIE_OUTER_SIZE * factor, PIE_OUTER_SIZE * factor - 2.f, 32, lineColor, borderColor);
gl_washer_2d(PIE_INNER_SIZE+1,PIE_INNER_SIZE-1,16,borderColor,lineColor);
// restore OpenGL drawing matrix
gGL.popMatrix();
// give control back to the UI library
LLView::draw();
}
BOOL PieMenu::appendContextSubMenu(PieMenu* menu)
{
LL_DEBUGS() << "PieMenu::appendContextSubMenu()" << LL_ENDL;
if(!menu)
return FALSE;
LL_DEBUGS() << "PieMenu::appendContextSubMenu() appending " << menu->getLabel() << " to " << getLabel() << LL_ENDL;
// add the submenu to the list of items
mSlices->push_back(menu);
// tell the view that our menu has changed
LLUICtrl::addChild(menu);
return TRUE;
}
BOOL PieMenu::handleMouseUp(S32 x,S32 y,MASK mask)
{
// left and right mouse buttons both do the same thing currently
return handleMouseButtonUp(x,y,mask);
}
BOOL PieMenu::handleRightMouseUp(S32 x,S32 y,MASK mask)
{
// left and right mouse buttons both do the same thing currently
return handleMouseButtonUp(x,y,mask);
}
// left and right mouse buttons both do the same thing currently
BOOL PieMenu::handleMouseButtonUp(S32 x,S32 y,MASK mask)
{
// if this was the first click and no slice is highlighted (no borderless click), start the popup timer
if(mFirstClick && !mSlice)
{
mFirstClick=FALSE;
#if PIE_POPUP_EFFECT
mPopupTimer.start();
#endif
}
else
{
// default to invisible
BOOL visible=FALSE;
// get the current selected slice and check if this is a regular click slice
PieSlice* currentSlice=dynamic_cast<PieSlice*>(mSlice);
if(currentSlice)
{
// if so, click it and make a sound
make_ui_sound("UISndClickRelease");
currentSlice->onCommit();
}
else
{
// check if this was a submenu
PieMenu* currentSubmenu=dynamic_cast<PieMenu*>(mSlice);
if(currentSubmenu)
{
// if so, remember we clicked the menu already at least once
mFirstClick=FALSE;
// swap out the list of items for the ones in the submenu
mSlices=¤tSubmenu->mMySlices;
// reset enable update checks for slices
for (slice_list_t::iterator it = mSlices->begin(); it != mSlices->end(); it++)
{
PieSlice* resetSlice = dynamic_cast<PieSlice*>(*it);
if (resetSlice)
{
resetSlice->resetUpdateEnabledCheck();
}
}
// the menu stays visible
visible=TRUE;
#if PIE_POPUP_EFFECT
// restart the popup timer
mPopupTimer.reset();
mPopupTimer.start();
#endif
// make a sound
make_ui_sound("UISndPieMenuAppear");
}
}
// show or hide the menu, as needed
setVisible(visible);
}
// release mouse capture after the first click if we still have it grabbed
if(hasMouseCapture())
gFocusMgr.setMouseCapture(NULL);
// give control back to the system
return LLView::handleMouseUp(x,y,mask);
}
| 30.867159 | 154 | 0.713568 | [
"3d"
] |
4b7bc9d3997f9adc37ad408759f1ea92a5d6988b | 28,961 | cc | C++ | ash/components/phonehub/camera_roll_manager_impl_unittest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | ash/components/phonehub/camera_roll_manager_impl_unittest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | ash/components/phonehub/camera_roll_manager_impl_unittest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/components/phonehub/camera_roll_manager_impl.h"
#include "ash/components/phonehub/camera_roll_item.h"
#include "ash/components/phonehub/camera_roll_thumbnail_decoder_impl.h"
#include "ash/components/phonehub/fake_camera_roll_download_manager.h"
#include "ash/components/phonehub/fake_message_receiver.h"
#include "ash/components/phonehub/fake_message_sender.h"
#include "ash/components/phonehub/pref_names.h"
#include "ash/components/phonehub/proto/phonehub_api.pb.h"
#include "base/callback.h"
#include "base/strings/utf_string_conversions.h"
#include "chromeos/services/multidevice_setup/public/cpp/fake_multidevice_setup_client.h"
#include "chromeos/services/multidevice_setup/public/mojom/multidevice_setup.mojom.h"
#include "chromeos/services/secure_channel/public/cpp/client/fake_connection_manager.h"
#include "chromeos/services/secure_channel/public/mojom/secure_channel_types.mojom.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_skia.h"
namespace ash {
namespace phonehub {
namespace {
using BatchDecodeResult = CameraRollThumbnailDecoder::BatchDecodeResult;
using BatchDecodeCallback =
base::OnceCallback<void(BatchDecodeResult,
const std::vector<CameraRollItem>&)>;
using FeatureState = chromeos::multidevice_setup::mojom::FeatureState;
using FileTransferStatus = chromeos::secure_channel::mojom::FileTransferStatus;
class FakeObserver : public CameraRollManager::Observer {
public:
FakeObserver() = default;
~FakeObserver() override = default;
// CameraRollManager::Observer
void OnCameraRollViewUiStateUpdated() override {
on_camera_roll_items_changed_call_count_++;
}
int GetOnCameraRollViewUiStateUpdatedCallCount() const {
return on_camera_roll_items_changed_call_count_;
}
private:
int on_camera_roll_items_changed_call_count_ = 0;
};
// Registers preferences for
void RegisterHasDismissedOnBoardingUiPreferences(
TestingPrefServiceSimple* pref_service) {
DCHECK(pref_service);
pref_service->registry()->RegisterBooleanPref(
prefs::kHasDismissedCameraRollOnboardingUi, false);
}
void PopulateItemProto(proto::CameraRollItem* item_proto, std::string key) {
proto::CameraRollItemMetadata* metadata = item_proto->mutable_metadata();
metadata->set_key(key);
metadata->set_mime_type("image/png");
metadata->set_last_modified_millis(123456789L);
metadata->set_file_size_bytes(123456789L);
proto::CameraRollItemThumbnail* thumbnail = item_proto->mutable_thumbnail();
thumbnail->set_format(proto::CameraRollItemThumbnail_Format_JPEG);
thumbnail->set_data("encoded_thumbnail_data");
}
// Verifies that the metadata of a generated item matches the corresponding
// proto input.
void VerifyMetadataEqual(const proto::CameraRollItemMetadata& expected,
const proto::CameraRollItemMetadata& actual) {
EXPECT_EQ(expected.key(), actual.key());
EXPECT_EQ(expected.mime_type(), actual.mime_type());
EXPECT_EQ(expected.last_modified_millis(), actual.last_modified_millis());
EXPECT_EQ(expected.file_size_bytes(), actual.file_size_bytes());
}
} // namespace
class FakeThumbnailDecoder : public CameraRollThumbnailDecoder {
public:
FakeThumbnailDecoder() = default;
~FakeThumbnailDecoder() override = default;
void BatchDecode(const proto::FetchCameraRollItemsResponse& response,
const std::vector<CameraRollItem>& current_items,
BatchDecodeCallback callback) override {
if (!pending_callback_.is_null()) {
CompletePendingCallback(BatchDecodeResult::kCancelled);
}
last_response_ = response;
pending_callback_ = std::move(callback);
}
void CompletePendingCallback(BatchDecodeResult result) {
std::vector<CameraRollItem> items;
if (result == BatchDecodeResult::kCompleted) {
for (const proto::CameraRollItem& item_proto : last_response_.items()) {
SkBitmap test_bitmap;
test_bitmap.allocN32Pixels(1, 1);
gfx::ImageSkia image_skia =
gfx::ImageSkia::CreateFrom1xBitmap(test_bitmap);
image_skia.MakeThreadSafe();
gfx::Image thumbnail(image_skia);
items.emplace_back(item_proto.metadata(), thumbnail);
}
}
std::move(pending_callback_).Run(result, items);
}
private:
proto::FetchCameraRollItemsResponse last_response_;
BatchDecodeCallback pending_callback_;
};
class CameraRollManagerImplTest : public testing::Test {
protected:
CameraRollManagerImplTest() = default;
CameraRollManagerImplTest(const CameraRollManagerImplTest&) = delete;
CameraRollManagerImplTest& operator=(const CameraRollManagerImplTest&) =
delete;
~CameraRollManagerImplTest() override = default;
void SetUp() override {
RegisterHasDismissedOnBoardingUiPreferences(&pref_service_);
fake_multidevice_setup_client_ =
std::make_unique<multidevice_setup::FakeMultiDeviceSetupClient>();
fake_connection_manager_ =
std::make_unique<secure_channel::FakeConnectionManager>();
std::unique_ptr<FakeCameraRollDownloadManager>
fake_camera_roll_download_manager =
std::make_unique<FakeCameraRollDownloadManager>();
fake_camera_roll_download_manager_ =
fake_camera_roll_download_manager.get();
SetCameraRollFeatureState(FeatureState::kEnabledByUser);
camera_roll_manager_ = std::make_unique<CameraRollManagerImpl>(
&pref_service_, &fake_message_receiver_, &fake_message_sender_,
fake_multidevice_setup_client_.get(), fake_connection_manager_.get(),
std::move(fake_camera_roll_download_manager));
camera_roll_manager_->thumbnail_decoder_ =
std::make_unique<FakeThumbnailDecoder>();
camera_roll_manager_->AddObserver(&fake_observer_);
}
void TearDown() override {
camera_roll_manager_->RemoveObserver(&fake_observer_);
}
int GetOnCameraRollViewUiStateUpdatedCallCount() const {
return fake_observer_.GetOnCameraRollViewUiStateUpdatedCallCount();
}
int GetCurrentItemsCount() const {
return camera_roll_manager_->current_items().size();
}
size_t GetSentFetchCameraRollItemsRequestCount() const {
return fake_message_sender_.GetFetchCameraRollItemsRequestCallCount();
}
const proto::FetchCameraRollItemsRequest& GetSentFetchCameraRollItemsRequest()
const {
return fake_message_sender_.GetRecentFetchCameraRollItemsRequest();
}
size_t GetSentFetchCameraRollItemDataRequestCount() const {
return fake_message_sender_.GetFetchCameraRollItemDataRequestCallCount();
}
const proto::FetchCameraRollItemDataRequest&
GetRecentFetchCameraRollItemDataRequest() const {
return fake_message_sender_.GetRecentFetchCameraRollItemDataRequest();
}
size_t GetSentInitiateCameraRollItemTransferRequestCount() const {
return fake_message_sender_
.GetInitiateCameraRollItemTransferRequestCallCount();
}
const proto::InitiateCameraRollItemTransferRequest&
GetRecentInitiateCameraRollItemTransferRequest() const {
return fake_message_sender_
.GetRecentInitiateCameraRollItemTransferRequest();
}
// Verifies current items match the list of items in the last received
// |FetchCameraRollItemsResponse|, and their thumbnails have been properly
// decoded.
void VerifyCurrentItemsMatchResponse(
const proto::FetchCameraRollItemsResponse& response) const {
EXPECT_EQ(response.items_size(), GetCurrentItemsCount());
for (int i = 0; i < GetCurrentItemsCount(); i++) {
const CameraRollItem& current_item =
camera_roll_manager_->current_items()[i];
VerifyMetadataEqual(response.items(i).metadata(),
current_item.metadata());
EXPECT_FALSE(current_item.thumbnail().IsEmpty());
}
}
void CompleteThumbnailDecoding(BatchDecodeResult result) {
static_cast<FakeThumbnailDecoder*>(
camera_roll_manager_->thumbnail_decoder_.get())
->CompletePendingCallback(result);
}
void SetCameraRollFeatureState(FeatureState feature_state) {
fake_multidevice_setup_client_->SetFeatureState(
chromeos::multidevice_setup::mojom::Feature::kPhoneHubCameraRoll,
feature_state);
}
void SendFetchCameraRollItemDataResponse(
const proto::CameraRollItemMetadata& item_metadata,
proto::FetchCameraRollItemDataResponse::FileAvailability
file_availability,
int64_t payload_id) {
proto::FetchCameraRollItemDataResponse response;
*response.mutable_metadata() = item_metadata;
response.set_file_availability(file_availability);
response.set_payload_id(payload_id);
fake_message_receiver_.NotifyFetchCameraRollItemDataResponseReceived(
response);
}
void SendFileTransferUpdate(int64_t payload_id,
FileTransferStatus status,
uint64_t total_bytes,
uint64_t bytes_transferred) {
fake_connection_manager_->SendFileTransferUpdate(
chromeos::secure_channel::mojom::FileTransferUpdate::New(
payload_id, status, total_bytes, bytes_transferred));
}
void VerifyFileTransferProgress(int64_t payload_id,
FileTransferStatus status,
uint64_t total_bytes,
uint64_t bytes_transferred) {
const chromeos::secure_channel::mojom::FileTransferUpdatePtr&
latest_update = fake_camera_roll_download_manager_
->GetFileTransferUpdates(payload_id)
.back();
EXPECT_EQ(payload_id, latest_update->payload_id);
EXPECT_EQ(status, latest_update->status);
EXPECT_EQ(total_bytes, latest_update->total_bytes);
EXPECT_EQ(bytes_transferred, latest_update->bytes_transferred);
}
CameraRollManager* camera_roll_manager() {
return camera_roll_manager_.get();
}
secure_channel::FakeConnectionManager* fake_connection_manager() {
return fake_connection_manager_.get();
}
FakeCameraRollDownloadManager* fake_camera_roll_download_manager() {
return fake_camera_roll_download_manager_;
}
FakeMessageReceiver fake_message_receiver_;
std::unique_ptr<multidevice_setup::FakeMultiDeviceSetupClient>
fake_multidevice_setup_client_;
private:
TestingPrefServiceSimple pref_service_;
FakeMessageSender fake_message_sender_;
std::unique_ptr<secure_channel::FakeConnectionManager>
fake_connection_manager_;
FakeCameraRollDownloadManager* fake_camera_roll_download_manager_;
std::unique_ptr<CameraRollManagerImpl> camera_roll_manager_;
FakeObserver fake_observer_;
};
TEST_F(CameraRollManagerImplTest, OnCameraRollItemsReceived) {
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key3");
PopulateItemProto(response.add_items(), "key2");
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
EXPECT_EQ(1, GetOnCameraRollViewUiStateUpdatedCallCount());
VerifyCurrentItemsMatchResponse(response);
}
TEST_F(CameraRollManagerImplTest,
OnCameraRollItemsReceivedWithCancelledThumbnailDecodingRequest) {
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key3");
PopulateItemProto(response.add_items(), "key2");
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCancelled);
EXPECT_EQ(0, GetOnCameraRollViewUiStateUpdatedCallCount());
EXPECT_EQ(0, GetCurrentItemsCount());
}
TEST_F(CameraRollManagerImplTest,
OnCameraRollItemsReceivedWithPendingThumbnailDecodedRequest) {
proto::FetchCameraRollItemsResponse first_response;
PopulateItemProto(first_response.add_items(), "key2");
PopulateItemProto(first_response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(
first_response);
proto::FetchCameraRollItemsResponse second_response;
PopulateItemProto(second_response.add_items(), "key4");
PopulateItemProto(second_response.add_items(), "key3");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(
second_response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
// The first thumbnail decode request should be cancelled and the current item
// set should be updated only once after the second request completes.
EXPECT_EQ(1, GetOnCameraRollViewUiStateUpdatedCallCount());
VerifyCurrentItemsMatchResponse(second_response);
}
TEST_F(CameraRollManagerImplTest, OnCameraRollItemsReceivedWithExistingItems) {
proto::FetchCameraRollItemsResponse first_response;
PopulateItemProto(first_response.add_items(), "key3");
PopulateItemProto(first_response.add_items(), "key2");
PopulateItemProto(first_response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(
first_response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
VerifyCurrentItemsMatchResponse(first_response);
proto::FetchCameraRollItemsResponse second_response;
PopulateItemProto(second_response.add_items(), "key4");
// Thumbnails won't be sent with the proto if an item's data is already
// available and up-to-date.
PopulateItemProto(second_response.add_items(), "key3");
second_response.mutable_items(1)->clear_thumbnail();
PopulateItemProto(second_response.add_items(), "key2");
second_response.mutable_items(2)->clear_thumbnail();
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(
second_response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
EXPECT_EQ(2, GetOnCameraRollViewUiStateUpdatedCallCount());
VerifyCurrentItemsMatchResponse(second_response);
}
TEST_F(CameraRollManagerImplTest,
OnPhoneStatusUpdateReceivedWithoutCameraRollUpdates) {
proto::PhoneStatusUpdate update;
update.set_has_camera_roll_updates(false);
proto::CameraRollAccessState* access_state =
update.mutable_properties()->mutable_camera_roll_access_state();
access_state->set_storage_permission_granted(true);
fake_message_receiver_.NotifyPhoneStatusUpdateReceived(update);
EXPECT_EQ(0UL, GetSentFetchCameraRollItemsRequestCount());
EXPECT_EQ(CameraRollManager::CameraRollUiState::SHOULD_HIDE,
camera_roll_manager()->ui_state());
EXPECT_EQ(1, GetOnCameraRollViewUiStateUpdatedCallCount());
}
TEST_F(CameraRollManagerImplTest,
OnPhoneStatusUpdateReceivedWithCameraRollUpdates) {
proto::PhoneStatusUpdate update;
update.set_has_camera_roll_updates(true);
proto::CameraRollAccessState* access_state =
update.mutable_properties()->mutable_camera_roll_access_state();
access_state->set_storage_permission_granted(true);
fake_message_receiver_.NotifyPhoneStatusUpdateReceived(update);
EXPECT_EQ(1UL, GetSentFetchCameraRollItemsRequestCount());
EXPECT_EQ(0,
GetSentFetchCameraRollItemsRequest().current_item_metadata_size());
EXPECT_EQ(CameraRollManager::CameraRollUiState::SHOULD_HIDE,
camera_roll_manager()->ui_state());
EXPECT_EQ(1, GetOnCameraRollViewUiStateUpdatedCallCount());
}
TEST_F(CameraRollManagerImplTest,
OnPhoneStatusUpdateReceivedWithExistingItems) {
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key3");
PopulateItemProto(response.add_items(), "key2");
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
proto::PhoneStatusUpdate update;
update.set_has_camera_roll_updates(true);
proto::CameraRollAccessState* access_state =
update.mutable_properties()->mutable_camera_roll_access_state();
access_state->set_storage_permission_granted(true);
fake_message_receiver_.NotifyPhoneStatusUpdateReceived(update);
EXPECT_EQ(1UL, GetSentFetchCameraRollItemsRequestCount());
EXPECT_EQ(CameraRollManager::CameraRollUiState::ITEMS_VISIBLE,
camera_roll_manager()->ui_state());
EXPECT_EQ(2, GetOnCameraRollViewUiStateUpdatedCallCount());
EXPECT_EQ(3,
GetSentFetchCameraRollItemsRequest().current_item_metadata_size());
VerifyMetadataEqual(
response.items(0).metadata(),
GetSentFetchCameraRollItemsRequest().current_item_metadata(0));
VerifyMetadataEqual(
response.items(1).metadata(),
GetSentFetchCameraRollItemsRequest().current_item_metadata(1));
VerifyMetadataEqual(
response.items(2).metadata(),
GetSentFetchCameraRollItemsRequest().current_item_metadata(2));
}
TEST_F(CameraRollManagerImplTest,
OnPhoneStatusUpdateReceivedWithCameraRollSettingsDisabled) {
SetCameraRollFeatureState(FeatureState::kDisabledByUser);
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key2");
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
proto::PhoneStatusUpdate update;
update.set_has_camera_roll_updates(true);
proto::CameraRollAccessState* access_state =
update.mutable_properties()->mutable_camera_roll_access_state();
access_state->set_storage_permission_granted(true);
fake_message_receiver_.NotifyPhoneStatusUpdateReceived(update);
EXPECT_EQ(0UL, GetSentFetchCameraRollItemsRequestCount());
EXPECT_EQ(CameraRollManager::CameraRollUiState::CAN_OPT_IN,
camera_roll_manager()->ui_state());
EXPECT_EQ(4, GetOnCameraRollViewUiStateUpdatedCallCount());
EXPECT_EQ(0, GetCurrentItemsCount());
}
TEST_F(CameraRollManagerImplTest,
OnPhoneStatusUpdateReceivedWithoutStoragePermission) {
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key2");
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
proto::PhoneStatusUpdate update;
proto::CameraRollAccessState* access_state =
update.mutable_properties()->mutable_camera_roll_access_state();
access_state->set_storage_permission_granted(false);
fake_message_receiver_.NotifyPhoneStatusUpdateReceived(update);
EXPECT_EQ(0UL, GetSentFetchCameraRollItemsRequestCount());
EXPECT_EQ(CameraRollManager::CameraRollUiState::NO_STORAGE_PERMISSION,
camera_roll_manager()->ui_state());
EXPECT_EQ(2, GetOnCameraRollViewUiStateUpdatedCallCount());
EXPECT_EQ(0, GetCurrentItemsCount());
}
TEST_F(CameraRollManagerImplTest, OnPhoneStatusSnapshotReceived) {
proto::PhoneStatusSnapshot snapshot;
proto::CameraRollAccessState* access_state =
snapshot.mutable_properties()->mutable_camera_roll_access_state();
access_state->set_storage_permission_granted(true);
fake_message_receiver_.NotifyPhoneStatusSnapshotReceived(snapshot);
EXPECT_EQ(1UL, GetSentFetchCameraRollItemsRequestCount());
EXPECT_EQ(CameraRollManager::CameraRollUiState::SHOULD_HIDE,
camera_roll_manager()->ui_state());
EXPECT_EQ(1, GetOnCameraRollViewUiStateUpdatedCallCount());
}
TEST_F(CameraRollManagerImplTest,
OnPhoneStatusSnapshotReceivedWithCameraRollSettingDisabled) {
SetCameraRollFeatureState(FeatureState::kDisabledByUser);
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key2");
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
proto::PhoneStatusSnapshot snapshot;
proto::CameraRollAccessState* access_state =
snapshot.mutable_properties()->mutable_camera_roll_access_state();
access_state->set_storage_permission_granted(true);
fake_message_receiver_.NotifyPhoneStatusSnapshotReceived(snapshot);
EXPECT_EQ(0UL, GetSentFetchCameraRollItemsRequestCount());
EXPECT_EQ(CameraRollManager::CameraRollUiState::CAN_OPT_IN,
camera_roll_manager()->ui_state());
EXPECT_EQ(4, GetOnCameraRollViewUiStateUpdatedCallCount());
EXPECT_EQ(0, GetCurrentItemsCount());
}
TEST_F(CameraRollManagerImplTest,
OnPhoneStatusSnapshotReceivedWithoutStoragePermission) {
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key2");
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
proto::PhoneStatusSnapshot snapshot;
proto::CameraRollAccessState* access_state =
snapshot.mutable_properties()->mutable_camera_roll_access_state();
access_state->set_storage_permission_granted(false);
fake_message_receiver_.NotifyPhoneStatusSnapshotReceived(snapshot);
EXPECT_EQ(0UL, GetSentFetchCameraRollItemsRequestCount());
EXPECT_EQ(CameraRollManager::CameraRollUiState::NO_STORAGE_PERMISSION,
camera_roll_manager()->ui_state());
EXPECT_EQ(2, GetOnCameraRollViewUiStateUpdatedCallCount());
EXPECT_EQ(0, GetCurrentItemsCount());
}
TEST_F(CameraRollManagerImplTest, OnFeatureOnFeatureStatesChangedToDisabled) {
proto::PhoneStatusSnapshot snapshot;
proto::CameraRollAccessState* access_state =
snapshot.mutable_properties()->mutable_camera_roll_access_state();
access_state->set_storage_permission_granted(true);
fake_message_receiver_.NotifyPhoneStatusSnapshotReceived(snapshot);
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key2");
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
SetCameraRollFeatureState(FeatureState::kDisabledByUser);
EXPECT_EQ(CameraRollManager::CameraRollUiState::CAN_OPT_IN,
camera_roll_manager()->ui_state());
EXPECT_EQ(3, GetOnCameraRollViewUiStateUpdatedCallCount());
EXPECT_EQ(0, GetCurrentItemsCount());
}
TEST_F(CameraRollManagerImplTest, FeatureProhibitedByPolicy) {
SetCameraRollFeatureState(FeatureState::kProhibitedByPolicy);
proto::PhoneStatusSnapshot snapshot;
proto::CameraRollAccessState* access_state =
snapshot.mutable_properties()->mutable_camera_roll_access_state();
access_state->set_storage_permission_granted(true);
fake_message_receiver_.NotifyPhoneStatusSnapshotReceived(snapshot);
EXPECT_EQ(CameraRollManager::CameraRollUiState::SHOULD_HIDE,
camera_roll_manager()->ui_state());
}
TEST_F(CameraRollManagerImplTest, DownloadItem) {
// Make an item available to CameraRollManager.
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
const CameraRollItem& item_to_download =
camera_roll_manager()->current_items().back();
// Request to download the item that was added.
camera_roll_manager()->DownloadItem(item_to_download.metadata());
EXPECT_EQ(1UL, GetSentFetchCameraRollItemDataRequestCount());
EXPECT_EQ("key1", GetRecentFetchCameraRollItemDataRequest().metadata().key());
// CameraRollManager should initiate transfer of the item after receiving
// FetchCameraRollItemDataResponse.
SendFetchCameraRollItemDataResponse(
item_to_download.metadata(),
proto::FetchCameraRollItemDataResponse::AVAILABLE,
/*payload_id=*/1234);
EXPECT_EQ(1UL, GetSentInitiateCameraRollItemTransferRequestCount());
EXPECT_EQ("key1",
GetRecentInitiateCameraRollItemTransferRequest().metadata().key());
EXPECT_EQ(1234,
GetRecentInitiateCameraRollItemTransferRequest().payload_id());
// Now the CameraRollManager should be ready to receive updates of the item
// transfer.
SendFileTransferUpdate(/*payload_id=*/1234, FileTransferStatus::kInProgress,
/*total_bytes=*/1000, /*bytes_transferred=*/200);
VerifyFileTransferProgress(/*payload_id=*/1234,
FileTransferStatus::kInProgress,
/*total_bytes=*/1000,
/*bytes_transferred=*/200);
SendFileTransferUpdate(/*payload_id=*/1234, FileTransferStatus::kSuccess,
/*total_bytes=*/1000, /*bytes_transferred=*/1000);
VerifyFileTransferProgress(/*payload_id=*/1234, FileTransferStatus::kSuccess,
/*total_bytes=*/1000,
/*bytes_transferred=*/1000);
}
TEST_F(CameraRollManagerImplTest,
DownloadItemWhenFileNoLongerAvailableOnPhone) {
// Make an item available to CameraRollManager.
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
const CameraRollItem& item_to_download =
camera_roll_manager()->current_items().back();
// Request to download the item that was added.
camera_roll_manager()->DownloadItem(item_to_download.metadata());
EXPECT_EQ(1UL, GetSentFetchCameraRollItemDataRequestCount());
EXPECT_EQ("key1", GetRecentFetchCameraRollItemDataRequest().metadata().key());
SendFetchCameraRollItemDataResponse(
item_to_download.metadata(),
proto::FetchCameraRollItemDataResponse::NOT_FOUND,
/*payload_id=*/1234);
EXPECT_EQ(0UL, GetSentInitiateCameraRollItemTransferRequestCount());
}
TEST_F(CameraRollManagerImplTest, DownloadItemAndCreatePayloadFilesFail) {
// Make an item available to CameraRollManager.
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
const CameraRollItem& item_to_download =
camera_roll_manager()->current_items().back();
// Request to download the item that was added.
camera_roll_manager()->DownloadItem(item_to_download.metadata());
EXPECT_EQ(1UL, GetSentFetchCameraRollItemDataRequestCount());
EXPECT_EQ("key1", GetRecentFetchCameraRollItemDataRequest().metadata().key());
fake_camera_roll_download_manager()->set_should_create_payload_files_succeed(
false);
SendFetchCameraRollItemDataResponse(
item_to_download.metadata(),
proto::FetchCameraRollItemDataResponse::AVAILABLE,
/*payload_id=*/1234);
EXPECT_EQ(0UL, GetSentInitiateCameraRollItemTransferRequestCount());
}
TEST_F(CameraRollManagerImplTest, DownloadItemAndRegisterPayloadFileFail) {
// Make an item available to CameraRollManager.
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
const CameraRollItem& item_to_download =
camera_roll_manager()->current_items().back();
// Request to download the item that was added.
camera_roll_manager()->DownloadItem(item_to_download.metadata());
EXPECT_EQ(1UL, GetSentFetchCameraRollItemDataRequestCount());
EXPECT_EQ("key1", GetRecentFetchCameraRollItemDataRequest().metadata().key());
fake_connection_manager()->set_register_payload_file_result(false);
SendFetchCameraRollItemDataResponse(
item_to_download.metadata(),
proto::FetchCameraRollItemDataResponse::AVAILABLE,
/*payload_id=*/1234);
EXPECT_EQ(0UL, GetSentInitiateCameraRollItemTransferRequestCount());
}
TEST_F(CameraRollManagerImplTest, ItemsClearedWhenDeviceDisconnected) {
fake_connection_manager()->SetStatus(
secure_channel::ConnectionManager::Status::kConnected);
proto::FetchCameraRollItemsResponse response;
PopulateItemProto(response.add_items(), "key3");
PopulateItemProto(response.add_items(), "key2");
PopulateItemProto(response.add_items(), "key1");
fake_message_receiver_.NotifyFetchCameraRollItemsResponseReceived(response);
CompleteThumbnailDecoding(BatchDecodeResult::kCompleted);
EXPECT_EQ(3, GetCurrentItemsCount());
fake_connection_manager()->SetStatus(
secure_channel::ConnectionManager::Status::kDisconnected);
EXPECT_EQ(0, GetCurrentItemsCount());
}
} // namespace phonehub
} // namespace ash
| 42.094477 | 89 | 0.784123 | [
"vector"
] |
4b89fbc7e064a6b0d5fcbfd319870978ac53fd1c | 6,610 | cpp | C++ | EvtGen1_06_00/src/EvtGenModels/EvtTauHadnu.cpp | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | EvtGen1_06_00/src/EvtGenModels/EvtTauHadnu.cpp | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | EvtGen1_06_00/src/EvtGenModels/EvtTauHadnu.cpp | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Information: See EvtGen/COPYRIGHT
// Copyright (C) 1998 Caltech, UCSB
//
// Module: EvtTauHadnu.cc
//
// Description: The leptonic decay of the tau meson.
// E.g., tau- -> e- nueb nut
//
// Modification history:
//
// RYD January 17, 1997 Module created
//
//------------------------------------------------------------------------
//
#include <stdlib.h>
#include <iostream>
#include <string>
#include "EvtGenBase/EvtParticle.hh"
#include "EvtGenBase/EvtPDL.hh"
#include "EvtGenBase/EvtGenKine.hh"
#include "EvtGenModels/EvtTauHadnu.hh"
#include "EvtGenBase/EvtDiracSpinor.hh"
#include "EvtGenBase/EvtReport.hh"
#include "EvtGenBase/EvtVector4C.hh"
#include "EvtGenBase/EvtIdSet.hh"
using namespace std;
EvtTauHadnu::~EvtTauHadnu() {}
std::string EvtTauHadnu::getName(){
return "TAUHADNU";
}
EvtDecayBase* EvtTauHadnu::clone(){
return new EvtTauHadnu;
}
void EvtTauHadnu::init() {
// check that there are 0 arguments
checkSpinParent(EvtSpinType::DIRAC);
//the last daughter should be a neutrino
checkSpinDaughter(getNDaug()-1,EvtSpinType::NEUTRINO);
int i;
for ( i=0; i<(getNDaug()-1);i++) {
checkSpinDaughter(i,EvtSpinType::SCALAR);
}
bool validndaug=false;
if ( getNDaug()==4 ) {
//pipinu
validndaug=true;
checkNArg(7);
_beta = getArg(0);
_mRho = getArg(1);
_gammaRho = getArg(2);
_mRhopr = getArg(3);
_gammaRhopr = getArg(4);
_mA1 = getArg(5);
_gammaA1 = getArg(6);
}
if ( getNDaug()==3 ) {
//pipinu
validndaug=true;
checkNArg(5);
_beta = getArg(0);
_mRho = getArg(1);
_gammaRho = getArg(2);
_mRhopr = getArg(3);
_gammaRhopr = getArg(4);
}
if ( getNDaug()==2 ) {
//pipinu
validndaug=true;
checkNArg(0);
}
if ( !validndaug ) {
EvtGenReport(EVTGEN_ERROR,"EvtGen") << "Have not yet implemented this final state in TAUHADNUKS model" << endl;
EvtGenReport(EVTGEN_ERROR,"EvtGen") << "Ndaug="<<getNDaug() << endl;
int id;
for ( id=0; id<(getNDaug()-1); id++ )
EvtGenReport(EVTGEN_ERROR,"EvtGen") << "Daug " << id << " "<<EvtPDL::name(getDaug(id)).c_str() << endl;
}
}
void EvtTauHadnu::initProbMax(){
if ( getNDaug()==2 ) setProbMax(90.0);
if ( getNDaug()==3 ) setProbMax(2500.0);
if ( getNDaug()==4 ) setProbMax(30000.0);
}
void EvtTauHadnu::decay(EvtParticle *p){
static EvtId TAUM=EvtPDL::getId("tau-");
EvtIdSet thePis("pi+","pi-","pi0");
EvtIdSet theKs("K+","K-");
p->initializePhaseSpace(getNDaug(),getDaugs());
EvtParticle *nut;
nut = p->getDaug(getNDaug()-1);
p->getDaug(0)->getP4();
//get the leptonic current
EvtVector4C tau1, tau2;
if (p->getId()==TAUM) {
tau1=EvtLeptonVACurrent(nut->spParentNeutrino(),p->sp(0));
tau2=EvtLeptonVACurrent(nut->spParentNeutrino(),p->sp(1));
}
else{
tau1=EvtLeptonVACurrent(p->sp(0),nut->spParentNeutrino());
tau2=EvtLeptonVACurrent(p->sp(1),nut->spParentNeutrino());
}
EvtVector4C hadCurr;
bool foundHadCurr=false;
if ( getNDaug() == 2 ) {
hadCurr = p->getDaug(0)->getP4();
foundHadCurr=true;
}
if ( getNDaug() == 3 ) {
//pi pi0 nu with rho and rhopr resonance
if ( thePis.contains(getDaug(0)) &&
thePis.contains(getDaug(1)) ) {
EvtVector4R q1 = p->getDaug(0)->getP4();
EvtVector4R q2 = p->getDaug(1)->getP4();
double m1 = q1.mass();
double m2 = q2.mass();
hadCurr = Fpi( (q1+q2).mass2(), m1, m2 ) * (q1-q2);
foundHadCurr = true;
}
}
if ( getNDaug() == 4 ) {
if ( thePis.contains(getDaug(0)) &&
thePis.contains(getDaug(1)) &&
thePis.contains(getDaug(2)) ) {
//figure out which is the different charged pi
//want it to be q3
int diffPi(0),samePi1(0),samePi2(0);
if ( getDaug(0) == getDaug(1) ) {diffPi=2; samePi1=0; samePi2=1;}
if ( getDaug(0) == getDaug(2) ) {diffPi=1; samePi1=0; samePi2=2;}
if ( getDaug(1) == getDaug(2) ) {diffPi=0; samePi1=1; samePi2=2;}
EvtVector4R q1=p->getDaug(samePi1)->getP4();
EvtVector4R q2=p->getDaug(samePi2)->getP4();
EvtVector4R q3=p->getDaug(diffPi)->getP4();
double m1 = q1.mass();
double m2 = q2.mass();
double m3 = q3.mass();
EvtVector4R Q = q1 + q2 + q3;
double Q2 = Q.mass2();
double _mA12 = _mA1*_mA1;
double _gammaA1X = _gammaA1 * gFunc( Q2, samePi1 )/gFunc( _mA12, samePi1 );
EvtComplex denBW_A1( _mA12 - Q2, -1.*_mA1*_gammaA1X );
EvtComplex BW_A1 = _mA12 / denBW_A1;
hadCurr = BW_A1 * ( ((q1-q3)-(Q*(Q*(q1-q3))/Q2)) * Fpi( (q1+q3).mass2(), m1, m3) +
((q2-q3)-(Q*(Q*(q2-q3))/Q2)) * Fpi( (q2+q3).mass2(), m2, m3) );
foundHadCurr = true;
}
}
if ( !foundHadCurr ) {
EvtGenReport(EVTGEN_ERROR,"EvtGen") << "Have not yet implemented this final state in TAUHADNUKS model" << endl;
EvtGenReport(EVTGEN_ERROR,"EvtGen") << "Ndaug="<<getNDaug() << endl;
int id;
for ( id=0; id<(getNDaug()-1); id++ )
EvtGenReport(EVTGEN_ERROR,"EvtGen") << "Daug " << id << " "<<EvtPDL::name(getDaug(id)).c_str() << endl;
}
vertex(0,tau1*hadCurr);
vertex(1,tau2*hadCurr);
return;
}
double EvtTauHadnu::gFunc(double Q2, int dupD) {
double mpi= EvtPDL::getMeanMass(getDaug(dupD));
double mpi2 = pow( mpi,2.);
if ( Q2 < pow(_mRho + mpi, 2.) ) {
double arg = Q2-9.*mpi2;
return 4.1 * pow(arg,3.) * (1. - 3.3*arg + 5.8*pow(arg,2.));
}
else
return Q2 * (1.623 + 10.38/Q2 - 9.32/pow(Q2,2.) + 0.65/pow(Q2,3.));
}
EvtComplex EvtTauHadnu::Fpi( double s, double xm1, double xm2 ) {
EvtComplex BW_rho = BW( s, _mRho, _gammaRho, xm1, xm2 );
EvtComplex BW_rhopr = BW( s, _mRhopr, _gammaRhopr, xm1, xm2 );
return (BW_rho + _beta*BW_rhopr)/(1.+_beta);
}
EvtComplex EvtTauHadnu::BW( double s, double m, double gamma, double xm1, double xm2 ) {
double m2 = pow( m, 2.);
if ( s > pow( xm1+xm2, 2.) ) {
double qs = sqrt( fabs( (s-pow(xm1+xm2,2.)) * (s-pow(xm1-xm2,2.)) ) ) / sqrt(s);
double qm = sqrt( fabs( (m2-pow(xm1+xm2,2.)) * (m2-pow(xm1-xm2,2.)) ) ) / m;
gamma *= m2/s * pow( qs/qm, 3.);
}
else
gamma = 0.;
EvtComplex denBW( m2 - s, -1.* sqrt(s) * gamma );
return m2 / denBW;
}
| 24.849624 | 115 | 0.585023 | [
"model"
] |
4b8a2c93c399afcbe40aea4fa0440890dcfb59e2 | 2,742 | cc | C++ | third_party/blink/renderer/platform/wtf/ref_ptr_test.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/blink/renderer/platform/wtf/ref_ptr_test.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/renderer/platform/wtf/ref_ptr_test.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/memory/scoped_refptr.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/wtf/ref_counted.h"
#include "third_party/blink/renderer/platform/wtf/text/string_impl.h"
#include "third_party/blink/renderer/platform/wtf/thread_safe_ref_counted.h"
namespace WTF {
namespace {
TEST(RefPtrTest, Basic) {
scoped_refptr<StringImpl> string;
EXPECT_TRUE(!string);
string = StringImpl::Create("test");
EXPECT_TRUE(!!string);
string = nullptr;
EXPECT_TRUE(!string);
}
TEST(RefPtrTest, MoveAssignmentOperator) {
scoped_refptr<StringImpl> a = StringImpl::Create("a");
scoped_refptr<StringImpl> b = StringImpl::Create("b");
b = std::move(a);
EXPECT_TRUE(!!b);
EXPECT_TRUE(!a);
}
class RefCountedClass : public RefCounted<RefCountedClass> {};
TEST(RefPtrTest, ConstObject) {
// This test is only to ensure we force the compilation of a const RefCounted
// object to ensure the generated code compiles.
scoped_refptr<const RefCountedClass> ptr_to_const =
base::AdoptRef(new RefCountedClass());
}
class CustomDeleter;
struct Deleter {
static void Destruct(const CustomDeleter*);
};
class CustomDeleter : public RefCounted<CustomDeleter, Deleter> {
public:
explicit CustomDeleter(bool* deleted) : deleted_(deleted) {}
private:
friend struct Deleter;
~CustomDeleter() = default;
bool* deleted_;
};
void Deleter::Destruct(const CustomDeleter* obj) {
EXPECT_FALSE(*obj->deleted_);
*obj->deleted_ = true;
delete obj;
}
TEST(RefPtrTest, CustomDeleter) {
bool deleted = false;
scoped_refptr<CustomDeleter> obj =
base::AdoptRef(new CustomDeleter(&deleted));
EXPECT_FALSE(deleted);
obj = nullptr;
EXPECT_TRUE(deleted);
}
class CustomDeleterThreadSafe;
struct DeleterThreadSafe {
static void Destruct(const CustomDeleterThreadSafe*);
};
class CustomDeleterThreadSafe
: public ThreadSafeRefCounted<CustomDeleterThreadSafe, DeleterThreadSafe> {
public:
explicit CustomDeleterThreadSafe(bool* deleted) : deleted_(deleted) {}
private:
friend struct DeleterThreadSafe;
~CustomDeleterThreadSafe() = default;
bool* deleted_;
};
void DeleterThreadSafe::Destruct(const CustomDeleterThreadSafe* obj) {
EXPECT_FALSE(*obj->deleted_);
*obj->deleted_ = true;
delete obj;
}
TEST(RefPtrTest, CustomDeleterThreadSafe) {
bool deleted = false;
scoped_refptr<CustomDeleterThreadSafe> obj =
base::AdoptRef(new CustomDeleterThreadSafe(&deleted));
EXPECT_FALSE(deleted);
obj = nullptr;
EXPECT_TRUE(deleted);
}
} // namespace
} // namespace WTF
| 25.388889 | 79 | 0.7469 | [
"object"
] |
4b8e1a75f2829be518c4cf854b8aa8f74048f836 | 2,208 | hpp | C++ | include/PlantArchitect/InternodeBehaviours/LSystemBehaviour.hpp | edisonlee0212/PlantArchitect | f01e48fb67291947407a45494178db982b9be0e3 | [
"BSD-3-Clause"
] | 1 | 2021-08-25T06:25:00.000Z | 2021-08-25T06:25:00.000Z | include/PlantArchitect/InternodeBehaviours/LSystemBehaviour.hpp | edisonlee0212/PlantArchitect-dev | f01e48fb67291947407a45494178db982b9be0e3 | [
"BSD-3-Clause"
] | null | null | null | include/PlantArchitect/InternodeBehaviours/LSystemBehaviour.hpp | edisonlee0212/PlantArchitect-dev | f01e48fb67291947407a45494178db982b9be0e3 | [
"BSD-3-Clause"
] | 1 | 2022-02-07T02:54:05.000Z | 2022-02-07T02:54:05.000Z | #pragma once
#include <plant_architect_export.h>
#include <IInternodeBehaviour.hpp>
using namespace UniEngine;
namespace PlantArchitect {
struct PLANT_ARCHITECT_API LSystemTag : public IDataComponent {
};
struct PLANT_ARCHITECT_API LSystemParameters : public IDataComponent {
float m_internodeLength = 1.0f;
float m_thicknessFactor = 0.5f;
float m_endNodeThickness = 0.02f;
void OnInspect();
};
enum class PLANT_ARCHITECT_API LSystemCommandType {
Unknown,
/**
* Command F
*/
Forward,
/**
* Command +
*/
TurnLeft,
/**
* Command -
*/
TurnRight,
/**
* Command ^
*/
PitchUp,
/**
* Command &
*/
PitchDown,
/**
* Command \
*/
RollLeft,
/**
* Command /
*/
RollRight,
/**
* Command [
*/
Push,
/**
* Command ]
*/
Pop
};
struct PLANT_ARCHITECT_API LSystemCommand {
LSystemCommandType m_type = LSystemCommandType::Unknown;
float m_value = 0.0f;
};
class PLANT_ARCHITECT_API LString : public IAsset {
protected:
bool SaveInternal(const std::filesystem::path &path) override;
bool LoadInternal(const std::filesystem::path &path) override;
public:
void ParseLString(const std::string &string);
void OnInspect() override;
std::vector<LSystemCommand> commands;
};
struct PLANT_ARCHITECT_API LSystemState {
glm::vec3 m_eulerRotation = glm::vec3(0.0f);
int m_index = 0;
};
class PLANT_ARCHITECT_API LSystemBehaviour : public IInternodeBehaviour {
protected:
bool InternalInternodeCheck(const Entity &target) override;
public:
Entity FormPlant(const std::shared_ptr<LString> &lString, const LSystemParameters ¶meters);
void OnInspect() override;
void OnCreate() override;
Entity CreateInternode() override;
Entity CreateInternode(const Entity &parent) override;
};
} | 22.30303 | 103 | 0.569746 | [
"vector"
] |
4b940240280a84a64befb12e3742081568ff7aad | 6,224 | cc | C++ | gpgpu/demos/signed_distance_objects.cc | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 1 | 2019-04-14T11:40:28.000Z | 2019-04-14T11:40:28.000Z | gpgpu/demos/signed_distance_objects.cc | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 5 | 2018-04-18T13:54:29.000Z | 2019-08-22T20:04:17.000Z | gpgpu/demos/signed_distance_objects.cc | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 1 | 2018-12-24T03:45:47.000Z | 2018-12-24T03:45:47.000Z | #include "gpgpu/demos/ray_lut.hh"
#include "gpgpu/import/load_kernel.hh"
#include "gpgpu/interplatform/cl_liegroups.hh"
#include "gpgpu/wrappers/create_context.hh"
#include "gpgpu/wrappers/errors.hh"
#include "gpgpu/wrappers/image_read_write.hh"
#include "util/timing.hh"
#include "viewer/interaction/ui2d.hh"
#include "viewer/primitives/simple_geometry.hh"
#include "viewer/window_3d.hh"
#include "util/environment.hh"
#include "eigen.hh"
#include "out.hh"
#include "util/waves.hh"
#include "gpgpu/opencl.hh"
#include <iostream>
#include <vector>
#include "gpgpu/demos/signed_distance_shapes.hh"
struct ImageSize {
std::size_t cols = -1;
std::size_t rows = -1;
};
estimation::NonlinearCameraModel nice_model(int cols, int rows) {
estimation::ProjectionCoefficients proj_coeffs;
proj_coeffs.fx = rows;
proj_coeffs.fy = rows;
proj_coeffs.cx = cols / 2;
proj_coeffs.cy = rows / 2;
proj_coeffs.k1 = 0.0;
proj_coeffs.k2 = -0.0;
proj_coeffs.p1 = 0.0;
proj_coeffs.p2 = 0.0;
proj_coeffs.k3 = 0.0;
proj_coeffs.rows = rows;
proj_coeffs.cols = cols;
const estimation::NonlinearCameraModel model(proj_coeffs);
return model;
}
void draw(viewer::Window3D& view,
viewer::Ui2d& ui2d,
cl::CommandQueue& cmd_queue,
cl::Kernel& sdf_kernel,
cl::Image2D& dv_rendered_image,
const RenderConfig& cc_cfg,
const ImageSize& out_im_size,
float t) {
const jcc::PrintingScopedTimer tt("Frame Time");
const SE3 world_from_camera = view.standard_camera_from_world().inverse();
const jcc::clSE3 cl_world_from_camera(world_from_camera);
JCHECK_STATUS(sdf_kernel.setArg(2, cl_world_from_camera));
const clRenderConfig cfg = cc_cfg.convert();
JCHECK_STATUS(sdf_kernel.setArg(3, cfg));
cl_float cl_t = t;
JCHECK_STATUS(sdf_kernel.setArg(4, cl_t));
const cl::NDRange work_group_size{static_cast<std::size_t>(out_im_size.cols),
static_cast<std::size_t>(out_im_size.rows)};
JCHECK_STATUS(
cmd_queue.enqueueNDRangeKernel(sdf_kernel, {0}, work_group_size, {480, 1u}));
cmd_queue.flush();
cv::Mat out_img(cv::Size(out_im_size.cols, out_im_size.rows), CV_32FC4,
cv::Scalar(0.0, 0.0, 0.0, 0.0));
jcc::read_image_from_device(cmd_queue, dv_rendered_image, out(out_img));
out_img.convertTo(out_img, CV_8UC4);
cv::cvtColor(out_img, out_img, CV_BGRA2BGR);
ui2d.add_image(out_img, 1.0);
ui2d.flip();
}
int main() {
cl_int status = 0;
const auto cl_info = jcc::create_context();
const auto kernels = read_kernels(
cl_info, jcc::Environment::repo_path() + "gpgpu/demos/signed_distance_objects.cl");
auto sdf_kernel = kernels.at("compute_sdf");
cl::CommandQueue cmd_queue(cl_info.context);
const auto view = viewer::get_window3d("Render Visualization");
const auto ui2d = view->add_primitive<viewer::Ui2d>();
const auto geo = view->add_primitive<viewer::SimpleGeometry>();
{
view->set_view_preset(viewer::Window3D::ViewSetting::CAMERA);
view->set_azimuth(0.0);
view->set_elevation(0.0);
const auto background = view->add_primitive<viewer::SimpleGeometry>();
const geometry::shapes::Plane ground{jcc::Vec3(0.0, 1.0, 0.0).normalized(), 1.0};
background->add_plane({ground});
background->flip();
}
ImageSize out_im_size;
out_im_size.cols = 2 * 480;
out_im_size.rows = 2 * 480;
const auto model = nice_model(out_im_size.cols, out_im_size.rows);
//
// Send the ray LUT
//
const cl::ImageFormat ray_lut_fmt(CL_RGBA, CL_FLOAT);
cl::Image2D dv_ray_lut(cl_info.context, CL_MEM_READ_ONLY, ray_lut_fmt, out_im_size.cols,
out_im_size.rows, 0, nullptr, &status);
{
JCHECK_STATUS(status);
const cv::Mat ray_lut =
jcc::create_ray_lut(model, out_im_size.cols, out_im_size.rows).clone();
jcc::send_image_to_device(cmd_queue, dv_ray_lut, ray_lut);
}
//
// Prepare a rendered image
//
const cl::ImageFormat output_image_fmt(CL_RGBA, CL_FLOAT);
cl::Image2D dv_rendered_image(cl_info.context, CL_MEM_WRITE_ONLY, output_image_fmt,
out_im_size.cols, out_im_size.rows, 0, nullptr, &status);
JCHECK_STATUS(sdf_kernel.setArg(0, dv_ray_lut));
JCHECK_STATUS(sdf_kernel.setArg(1, dv_rendered_image));
view->add_menu_hotkey("debug_mode", 0, 'P', 5);
view->add_menu_hotkey("terminal_iteration", 6, 'I', 24);
view->add_menu_hotkey("test_feature", 0, 'F', 2);
float t = 0.0;
RenderConfig cc_cfg;
view->add_toggle_callback("terminal_iteration", [&](int iter_ct) {
std::cout << "\tIteration Count --> " << iter_ct * 10 << std::endl;
cc_cfg.terminal_iteration = iter_ct * 10;
draw(*view, *ui2d, cmd_queue, sdf_kernel, dv_rendered_image, cc_cfg, out_im_size, t);
});
view->add_toggle_callback("test_feature", [&](int feature) {
std::cout << "\tTest Feature --> " << feature << std::endl;
cc_cfg.test_feature = feature;
draw(*view, *ui2d, cmd_queue, sdf_kernel, dv_rendered_image, cc_cfg, out_im_size, t);
});
view->add_toggle_callback("debug_mode", [&](int dbg_mode) {
if (dbg_mode == 1) {
std::cout << "\tSetting Debug Mode: Iterations" << std::endl;
} else if (dbg_mode == 2) {
std::cout << "\tSetting Debug Mode: Cone Distance" << std::endl;
} else if (dbg_mode == 3) {
std::cout << "\tSetting Debug Mode: Ray Length" << std::endl;
} else if (dbg_mode == 4) {
std::cout << "\tSetting Debug Mode: Normals" << std::endl;
} else {
std::cout << "\tDisabling Debug Mode" << std::endl;
}
cc_cfg.debug_mode = dbg_mode;
draw(*view, *ui2d, cmd_queue, sdf_kernel, dv_rendered_image, cc_cfg, out_im_size, t);
});
view->run_menu_callbacks();
view->trigger_continue();
while (true) {
t += 0.1;
// cc_cfg.terminal_iteration = view->get_menu("terminal_iteration") * 10;
geo->add_sphere({jcc::Vec3(0.0, 0.0, 3.0), 0.5});
geo->add_sphere({jcc::Vec3(0.2, 0.0, 3.5), 1.0 + std::cos(0.05 * t)});
geo->add_sphere({jcc::Vec3(0.0, 0.0, 0.0), 0.1});
geo->flip();
draw(*view, *ui2d, cmd_queue, sdf_kernel, dv_rendered_image, cc_cfg, out_im_size, t);
view->spin_until_step();
}
}
| 31.276382 | 90 | 0.674647 | [
"geometry",
"render",
"vector",
"model"
] |
4b982e293e1ab1af2288cb60df20e0666fb17624 | 1,055 | cpp | C++ | src/view/TavoloDaGioco.cpp | lohathe/monopoliMoralista | 8c7df0a01bfb62ba37e81a9a6ecccba4f94b6cf3 | [
"MIT"
] | null | null | null | src/view/TavoloDaGioco.cpp | lohathe/monopoliMoralista | 8c7df0a01bfb62ba37e81a9a6ecccba4f94b6cf3 | [
"MIT"
] | null | null | null | src/view/TavoloDaGioco.cpp | lohathe/monopoliMoralista | 8c7df0a01bfb62ba37e81a9a6ecccba4f94b6cf3 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2009-2016 Marco Ziccardi, Luca Bonato
* Licensed under the MIT license.
*/
#include"TavoloDaGioco.h"
TavoloDaGioco::TavoloDaGioco(TurnoGrafico * tur, vector<CasellaGrafica *> & cas, InfoGiocatori * i): QWidget(0), t(tur), caselle(cas), Info(i)
{
setWindowTitle("Monopoly");
setFixedSize(1020,700);
QGridLayout * lay=new QGridLayout();
connect(t, SIGNAL(chiudi()), this, SLOT(close()));
connect(t, SIGNAL(aggiornaInfoGiocatori(int)), Info, SLOT(abilitaGiocatore(int)));
Info->show();
lay->addWidget(t,1,2,3,5);
lay->addWidget(Info, 0, 0, 5, 1);
int cont=0;
while(cont<20)
{
for (int i =0; i<7; ++i)
{
lay->addWidget(caselle[cont],0,i+1,1,1);
cont++;
}
for (int j=1; j<5; ++j)
{
lay->addWidget(caselle[cont],j,7,1,1);
cont++;
}
for (int k=5; k>-1; --k)
{
lay->addWidget(caselle[cont],4,k+1,1,1);
cont++;
}
for (int l=3; l>0; --l)
{
lay->addWidget(caselle[cont],l,1,1,1);
cont++;
}
}
setLayout(lay);
}
| 20.686275 | 143 | 0.574408 | [
"vector"
] |
4b9b766f2680e5f459d74b1fbd79dcd86bd3ecc6 | 523 | cpp | C++ | Chapter9/adaptor.cpp | heiheiyoyo/LearnCpp | 8b053e9e34d929f5fc3b210d30e646affe5b6dc8 | [
"WTFPL"
] | null | null | null | Chapter9/adaptor.cpp | heiheiyoyo/LearnCpp | 8b053e9e34d929f5fc3b210d30e646affe5b6dc8 | [
"WTFPL"
] | null | null | null | Chapter9/adaptor.cpp | heiheiyoyo/LearnCpp | 8b053e9e34d929f5fc3b210d30e646affe5b6dc8 | [
"WTFPL"
] | null | null | null | #include <iostream>
#include <vector>
#include <stack>
#include <string>
int main()
{
std::stack<int,std::vector<int>> istack{std::vector<int>{1,2,3}};
std::string s="Hello,world!";
std::stack<char,std::string> cstack{s};
for(std::vector<int>::size_type i=0,s=istack.size();i!=s;++i)
{
std::cout<<istack.top()<<std::ends;
istack.pop();
}
for(decltype(cstack.size()) i=0,s=cstack.size();i!=s;++i)
{
std::cout<<cstack.top();
cstack.pop();
}
return 0;
} | 23.772727 | 69 | 0.560229 | [
"vector"
] |
4ba6d4cd4bbad341cbea488a39bb520839d61e2b | 107,475 | cpp | C++ | qtdeclarative/tests/auto/quick/qquickitem2/tst_qquickitem.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | qtdeclarative/tests/auto/quick/qquickitem2/tst_qquickitem.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | qtdeclarative/tests/auto/quick/qquickitem2/tst_qquickitem.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see http://www.qt.io/terms-conditions. For further
** information use the contact form at http://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 or version 3 as published by the Free
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
** following information to ensure the GNU Lesser General Public License
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** As a special exception, The Qt Company gives you certain additional
** rights. These rights are described in The Qt Company LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include <qtest.h>
#include <QtTest/QSignalSpy>
#include <QtQml/qqmlengine.h>
#include <QtQml/qqmlcomponent.h>
#include <QtQml/qqmlcontext.h>
#include <QtQuick/qquickitemgrabresult.h>
#include <QtQuick/qquickview.h>
#include <QtGui/private/qinputmethod_p.h>
#include <QtQuick/private/qquickrectangle_p.h>
#include <QtQuick/private/qquicktextinput_p.h>
#include <QtGui/qstylehints.h>
#include <private/qquickitem_p.h>
#include "../../shared/util.h"
#include "../shared/visualtestutil.h"
#include "../../shared/platforminputcontext.h"
using namespace QQuickVisualTestUtil;
class tst_QQuickItem : public QQmlDataTest
{
Q_OBJECT
public:
tst_QQuickItem();
private slots:
void initTestCase();
void cleanup();
void activeFocusOnTab();
void activeFocusOnTab2();
void activeFocusOnTab3();
void activeFocusOnTab4();
void activeFocusOnTab5();
void activeFocusOnTab6();
void activeFocusOnTab7();
void activeFocusOnTab8();
void activeFocusOnTab9();
void activeFocusOnTab10();
void nextItemInFocusChain();
void nextItemInFocusChain2();
void nextItemInFocusChain3();
void tabFence();
void qtbug_50516();
void qtbug_50516_2_data();
void qtbug_50516_2();
void keys();
void standardKeys_data();
void standardKeys();
void keysProcessingOrder();
void keysim();
void keysForward();
void keyNavigation_data();
void keyNavigation();
void keyNavigation_RightToLeft();
void keyNavigation_skipNotVisible();
void keyNavigation_implicitSetting();
void keyNavigation_focusReason();
void keyNavigation_loop();
void layoutMirroring();
void layoutMirroringIllegalParent();
void smooth();
void antialiasing();
void clip();
void mapCoordinates();
void mapCoordinates_data();
void mapCoordinatesRect();
void mapCoordinatesRect_data();
void propertyChanges();
void nonexistentPropertyConnection();
void transforms();
void transforms_data();
void childrenRect();
void childrenRectBug();
void childrenRectBug2();
void childrenRectBug3();
void childrenRectBottomRightCorner();
void childrenProperty();
void resourcesProperty();
void transformCrash();
void implicitSize();
void qtbug_16871();
void visibleChildren();
void parentLoop();
void contains_data();
void contains();
void childAt();
void grab();
private:
QQmlEngine engine;
bool qt_tab_all_widgets() {
return QGuiApplication::styleHints()->tabFocusBehavior() == Qt::TabFocusAllControls;
}
};
class KeysTestObject : public QObject
{
Q_OBJECT
Q_PROPERTY(bool processLast READ processLast NOTIFY processLastChanged)
public:
KeysTestObject() : mKey(0), mModifiers(0), mForwardedKey(0), mLast(false), mNativeScanCode(0) {}
void reset() {
mKey = 0;
mText = QString();
mModifiers = 0;
mForwardedKey = 0;
mNativeScanCode = 0;
}
bool processLast() const { return mLast; }
void setProcessLast(bool b) {
if (b != mLast) {
mLast = b;
emit processLastChanged();
}
}
public slots:
void keyPress(int key, QString text, int modifiers) {
mKey = key;
mText = text;
mModifiers = modifiers;
}
void keyRelease(int key, QString text, int modifiers) {
mKey = key;
mText = text;
mModifiers = modifiers;
}
void forwardedKey(int key) {
mForwardedKey = key;
}
void specialKey(int key, QString text, quint32 nativeScanCode) {
mKey = key;
mText = text;
mNativeScanCode = nativeScanCode;
}
signals:
void processLastChanged();
public:
int mKey;
QString mText;
int mModifiers;
int mForwardedKey;
bool mLast;
quint32 mNativeScanCode;
private:
};
class KeyTestItem : public QQuickItem
{
Q_OBJECT
public:
KeyTestItem(QQuickItem *parent=0) : QQuickItem(parent), mKey(0) {}
protected:
void keyPressEvent(QKeyEvent *e) {
mKey = e->key();
if (e->key() == Qt::Key_A)
e->accept();
else
e->ignore();
}
void keyReleaseEvent(QKeyEvent *e) {
if (e->key() == Qt::Key_B)
e->accept();
else
e->ignore();
}
public:
int mKey;
};
class FocusEventFilter : public QObject
{
protected:
bool eventFilter(QObject *watched, QEvent *event) {
if ((event->type() == QEvent::FocusIn) || (event->type() == QEvent::FocusOut)) {
QFocusEvent *focusEvent = static_cast<QFocusEvent *>(event);
lastFocusReason = focusEvent->reason();
return false;
} else
return QObject::eventFilter(watched, event);
}
public:
Qt::FocusReason lastFocusReason;
};
QML_DECLARE_TYPE(KeyTestItem);
class HollowTestItem : public QQuickItem
{
Q_OBJECT
Q_PROPERTY(bool circle READ isCircle WRITE setCircle)
Q_PROPERTY(qreal holeRadius READ holeRadius WRITE setHoleRadius)
public:
HollowTestItem(QQuickItem *parent = 0)
: QQuickItem(parent),
m_isPressed(false),
m_isHovered(false),
m_isCircle(false),
m_holeRadius(50)
{
setAcceptHoverEvents(true);
setAcceptedMouseButtons(Qt::LeftButton);
}
bool isPressed() const { return m_isPressed; }
bool isHovered() const { return m_isHovered; }
bool isCircle() const { return m_isCircle; }
void setCircle(bool circle) { m_isCircle = circle; }
qreal holeRadius() const { return m_holeRadius; }
void setHoleRadius(qreal radius) { m_holeRadius = radius; }
bool contains(const QPointF &point) const {
const qreal w = width();
const qreal h = height();
const qreal r = m_holeRadius;
// check boundaries
if (!QRectF(0, 0, w, h).contains(point))
return false;
// square shape
if (!m_isCircle)
return !QRectF(w / 2 - r, h / 2 - r, r * 2, r * 2).contains(point);
// circle shape
const qreal dx = point.x() - (w / 2);
const qreal dy = point.y() - (h / 2);
const qreal dd = (dx * dx) + (dy * dy);
const qreal outerRadius = qMin<qreal>(w / 2, h / 2);
return dd > (r * r) && dd <= outerRadius * outerRadius;
}
protected:
void hoverEnterEvent(QHoverEvent *) { m_isHovered = true; }
void hoverLeaveEvent(QHoverEvent *) { m_isHovered = false; }
void mousePressEvent(QMouseEvent *) { m_isPressed = true; }
void mouseReleaseEvent(QMouseEvent *) { m_isPressed = false; }
private:
bool m_isPressed;
bool m_isHovered;
bool m_isCircle;
qreal m_holeRadius;
};
QML_DECLARE_TYPE(HollowTestItem);
class TabFenceItem : public QQuickItem
{
Q_OBJECT
public:
TabFenceItem(QQuickItem *parent = Q_NULLPTR)
: QQuickItem(parent)
{
QQuickItemPrivate *d = QQuickItemPrivate::get(this);
d->isTabFence = true;
}
};
QML_DECLARE_TYPE(TabFenceItem);
class TabFenceItem2 : public QQuickItem
{
Q_OBJECT
public:
TabFenceItem2(QQuickItem *parent = Q_NULLPTR)
: QQuickItem(parent)
{
QQuickItemPrivate *d = QQuickItemPrivate::get(this);
d->isTabFence = true;
setFlag(ItemIsFocusScope);
}
};
QML_DECLARE_TYPE(TabFenceItem2);
tst_QQuickItem::tst_QQuickItem()
{
}
void tst_QQuickItem::initTestCase()
{
QQmlDataTest::initTestCase();
qmlRegisterType<KeyTestItem>("Test",1,0,"KeyTestItem");
qmlRegisterType<HollowTestItem>("Test", 1, 0, "HollowTestItem");
qmlRegisterType<TabFenceItem>("Test", 1, 0, "TabFence");
qmlRegisterType<TabFenceItem2>("Test", 1, 0, "TabFence2");
}
void tst_QQuickItem::cleanup()
{
QInputMethodPrivate *inputMethodPrivate = QInputMethodPrivate::get(qApp->inputMethod());
inputMethodPrivate->testContext = 0;
}
void tst_QQuickItem::activeFocusOnTab()
{
if (!qt_tab_all_widgets())
QSKIP("This function doesn't support NOT iterating all.");
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl("activeFocusOnTab.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
// original: button12
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "button12");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// Tab: button12->sub2
QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "sub2");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// Tab: sub2->button21
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "button21");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// Tab: button21->button22
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "button22");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// Tab: button22->edit
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "edit");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// BackTab: edit->button22
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "button22");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// BackTab: button22->button21
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "button21");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// BackTab: button21->sub2
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "sub2");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// BackTab: sub2->button12
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "button12");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// BackTab: button12->button11
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "button11");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// BackTab: button11->edit
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "edit");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::activeFocusOnTab2()
{
if (!qt_tab_all_widgets())
QSKIP("This function doesn't support NOT iterating all.");
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl("activeFocusOnTab.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
// original: button12
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "button12");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// BackTab: button12->button11
QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "button11");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// BackTab: button11->edit
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "edit");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::activeFocusOnTab3()
{
if (!qt_tab_all_widgets())
QSKIP("This function doesn't support NOT iterating all.");
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl("activeFocusOnTab3.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
// original: button1
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "button1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 Tabs: button1->button2, through a repeater
QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);;
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button2");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 Tabs: button2->button3, through a row
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);;
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button3");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 Tabs: button3->button4, through a flow
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);;
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button4");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 Tabs: button4->button5, through a focusscope
// parent is activeFocusOnTab:false, one of children is focus:true
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);;
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button5");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 Tabs: button5->button6, through a focusscope
// parent is activeFocusOnTab:true, one of children is focus:true
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);;
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button6");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 5 Tabs: button6->button7, through a focusscope
// parent is activeFocusOnTab:true, none of children is focus:true
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);;
for (int i = 0; i < 5; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button7");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 BackTabs: button7->button6, through a focusscope
// parent is activeFocusOnTab:true, one of children got focus:true in previous code
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button6");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 Tabs: button6->button7, through a focusscope
// parent is activeFocusOnTab:true, one of children got focus:true in previous code
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);;
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button7");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 BackTabs: button7->button6, through a focusscope
// parent is activeFocusOnTab:true, one of children got focus:true in previous code
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button6");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 BackTabs: button6->button5, through a focusscope(parent is activeFocusOnTab: false)
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button5");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 BackTabs: button5->button4, through a focusscope(parent is activeFocusOnTab: false)
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button4");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 BackTabs: button4->button3, through a flow
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button3");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 BackTabs: button3->button2, through a row
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button2");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// 4 BackTabs: button2->button1, through a repeater
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
for (int i = 0; i < 4; ++i) {
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
}
item = findItem<QQuickItem>(window->rootObject(), "button1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::activeFocusOnTab4()
{
if (!qt_tab_all_widgets())
QSKIP("This function doesn't support NOT iterating all.");
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl("activeFocusOnTab4.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
// original: button11
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "button11");
item->setActiveFocusOnTab(true);
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// Tab: button11->button21
QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "button21");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::activeFocusOnTab5()
{
if (!qt_tab_all_widgets())
QSKIP("This function doesn't support NOT iterating all.");
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl("activeFocusOnTab4.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
// original: button11 in sub1
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "button11");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
QQuickItem *item2 = findItem<QQuickItem>(window->rootObject(), "sub1");
item2->setActiveFocusOnTab(true);
// Tab: button11->button21
QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "button21");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::activeFocusOnTab6()
{
if (qt_tab_all_widgets())
QSKIP("This function doesn't support iterating all.");
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl("activeFocusOnTab6.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
// original: button12
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "button12");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// Tab: button12->edit
QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "edit");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// BackTab: edit->button12
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "button12");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// BackTab: button12->button11
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "button11");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// BackTab: button11->edit
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "edit");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::activeFocusOnTab7()
{
if (qt_tab_all_widgets())
QSKIP("This function doesn't support iterating all.");
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(300,300));
window->setSource(testFileUrl("activeFocusOnTab7.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "button1");
QVERIFY(item);
item->forceActiveFocus();
QVERIFY(item->hasActiveFocus());
// Tab: button1->button1
QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(!key.isAccepted());
QVERIFY(item->hasActiveFocus());
// BackTab: button1->button1
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(!key.isAccepted());
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::activeFocusOnTab8()
{
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(300,300));
window->setSource(testFileUrl("activeFocusOnTab8.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *content = window->contentItem();
QVERIFY(content);
QVERIFY(content->hasActiveFocus());
QQuickItem *button1 = findItem<QQuickItem>(window->rootObject(), "button1");
QVERIFY(button1);
QVERIFY(!button1->hasActiveFocus());
QQuickItem *button2 = findItem<QQuickItem>(window->rootObject(), "button2");
QVERIFY(button2);
QVERIFY(!button2->hasActiveFocus());
// Tab: contentItem->button1
QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(button1->hasActiveFocus());
// Tab: button1->button2
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(button2->hasActiveFocus());
QVERIFY(!button1->hasActiveFocus());
// BackTab: button2->button1
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(button1->hasActiveFocus());
QVERIFY(!button2->hasActiveFocus());
delete window;
}
void tst_QQuickItem::activeFocusOnTab9()
{
if (qt_tab_all_widgets())
QSKIP("This function doesn't support iterating all.");
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(300,300));
window->setSource(testFileUrl("activeFocusOnTab9.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *content = window->contentItem();
QVERIFY(content);
QVERIFY(content->hasActiveFocus());
QQuickItem *textinput1 = findItem<QQuickItem>(window->rootObject(), "textinput1");
QVERIFY(textinput1);
QQuickItem *textedit1 = findItem<QQuickItem>(window->rootObject(), "textedit1");
QVERIFY(textedit1);
QVERIFY(!textinput1->hasActiveFocus());
textinput1->forceActiveFocus();
QVERIFY(textinput1->hasActiveFocus());
// Tab: textinput1->textedit1
QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(textedit1->hasActiveFocus());
// BackTab: textedit1->textinput1
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(textinput1->hasActiveFocus());
// BackTab: textinput1->textedit1
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(textedit1->hasActiveFocus());
delete window;
}
void tst_QQuickItem::activeFocusOnTab10()
{
if (!qt_tab_all_widgets())
QSKIP("This function doesn't support NOT iterating all.");
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(300,300));
window->setSource(testFileUrl("activeFocusOnTab9.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *content = window->contentItem();
QVERIFY(content);
QVERIFY(content->hasActiveFocus());
QQuickItem *textinput1 = findItem<QQuickItem>(window->rootObject(), "textinput1");
QVERIFY(textinput1);
QQuickItem *textedit1 = findItem<QQuickItem>(window->rootObject(), "textedit1");
QVERIFY(textedit1);
QQuickItem *textinput2 = findItem<QQuickItem>(window->rootObject(), "textinput2");
QVERIFY(textinput2);
QQuickItem *textedit2 = findItem<QQuickItem>(window->rootObject(), "textedit2");
QVERIFY(textedit2);
QVERIFY(!textinput1->hasActiveFocus());
textinput1->forceActiveFocus();
QVERIFY(textinput1->hasActiveFocus());
// Tab: textinput1->textinput2
QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(textinput2->hasActiveFocus());
// Tab: textinput2->textedit1
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(textedit1->hasActiveFocus());
// BackTab: textedit1->textinput2
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(textinput2->hasActiveFocus());
// BackTab: textinput2->textinput1
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(textinput1->hasActiveFocus());
// BackTab: textinput1->textedit2
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(textedit2->hasActiveFocus());
// BackTab: textedit2->textedit1
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(textedit1->hasActiveFocus());
// BackTab: textedit1->textinput2
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(textinput2->hasActiveFocus());
delete window;
}
void tst_QQuickItem::nextItemInFocusChain()
{
if (!qt_tab_all_widgets())
QSKIP("This function doesn't support NOT iterating all.");
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl("activeFocusOnTab.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *button11 = findItem<QQuickItem>(window->rootObject(), "button11");
QVERIFY(button11);
QQuickItem *button12 = findItem<QQuickItem>(window->rootObject(), "button12");
QVERIFY(button12);
QQuickItem *sub2 = findItem<QQuickItem>(window->rootObject(), "sub2");
QVERIFY(sub2);
QQuickItem *button21 = findItem<QQuickItem>(window->rootObject(), "button21");
QVERIFY(button21);
QQuickItem *button22 = findItem<QQuickItem>(window->rootObject(), "button22");
QVERIFY(button22);
QQuickItem *edit = findItem<QQuickItem>(window->rootObject(), "edit");
QVERIFY(edit);
QQuickItem *next, *prev;
next = button11->nextItemInFocusChain(true);
QVERIFY(next);
QCOMPARE(next, button12);
prev = button11->nextItemInFocusChain(false);
QVERIFY(prev);
QCOMPARE(prev, edit);
next = button12->nextItemInFocusChain();
QVERIFY(next);
QCOMPARE(next, sub2);
prev = button12->nextItemInFocusChain(false);
QVERIFY(prev);
QCOMPARE(prev, button11);
next = sub2->nextItemInFocusChain(true);
QVERIFY(next);
QCOMPARE(next, button21);
prev = sub2->nextItemInFocusChain(false);
QVERIFY(prev);
QCOMPARE(prev, button12);
next = button21->nextItemInFocusChain();
QVERIFY(next);
QCOMPARE(next, button22);
prev = button21->nextItemInFocusChain(false);
QVERIFY(prev);
QCOMPARE(prev, sub2);
next = button22->nextItemInFocusChain(true);
QVERIFY(next);
QCOMPARE(next, edit);
prev = button22->nextItemInFocusChain(false);
QVERIFY(prev);
QCOMPARE(prev, button21);
next = edit->nextItemInFocusChain();
QVERIFY(next);
QCOMPARE(next, button11);
prev = edit->nextItemInFocusChain(false);
QVERIFY(prev);
QCOMPARE(prev, button22);
delete window;
}
void tst_QQuickItem::nextItemInFocusChain2()
{
if (qt_tab_all_widgets())
QSKIP("This function doesn't support iterating all.");
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl("activeFocusOnTab6.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *button11 = findItem<QQuickItem>(window->rootObject(), "button11");
QVERIFY(button11);
QQuickItem *button12 = findItem<QQuickItem>(window->rootObject(), "button12");
QVERIFY(button12);
QQuickItem *edit = findItem<QQuickItem>(window->rootObject(), "edit");
QVERIFY(edit);
QQuickItem *next, *prev;
next = button11->nextItemInFocusChain(true);
QVERIFY(next);
QCOMPARE(next, button12);
prev = button11->nextItemInFocusChain(false);
QVERIFY(prev);
QCOMPARE(prev, edit);
next = button12->nextItemInFocusChain();
QVERIFY(next);
QCOMPARE(next, edit);
prev = button12->nextItemInFocusChain(false);
QVERIFY(prev);
QCOMPARE(prev, button11);
next = edit->nextItemInFocusChain();
QVERIFY(next);
QCOMPARE(next, button11);
prev = edit->nextItemInFocusChain(false);
QVERIFY(prev);
QCOMPARE(prev, button12);
delete window;
}
void tst_QQuickItem::nextItemInFocusChain3()
{
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl("nextItemInFocusChain3.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
}
void verifyTabFocusChain(QQuickView *window, const char **focusChain, bool forward)
{
int idx = 0;
for (const char **objectName = focusChain; *objectName; ++objectName, ++idx) {
const QString &descrStr = QString("idx=%1 objectName=\"%2\"").arg(idx).arg(*objectName);
const char *descr = descrStr.toLocal8Bit().data();
QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, forward ? Qt::NoModifier : Qt::ShiftModifier);
QGuiApplication::sendEvent(window, &key);
QVERIFY2(key.isAccepted(), descr);
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), *objectName);
QVERIFY2(item, descr);
QVERIFY2(item->hasActiveFocus(), descr);
}
}
void tst_QQuickItem::tabFence()
{
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl("tabFence.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QVERIFY(QGuiApplication::focusWindow() == window);
QVERIFY(window->rootObject()->hasActiveFocus());
const char *rootTabFocusChain[] = {
"input1", "input2", "input3", "input1", Q_NULLPTR
};
verifyTabFocusChain(window, rootTabFocusChain, true /* forward */);
const char *rootBacktabFocusChain[] = {
"input3", "input2", "input1", "input3", Q_NULLPTR
};
verifyTabFocusChain(window, rootBacktabFocusChain, false /* forward */);
// Give focus to input11 in fence1
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "input11");
item->setFocus(true);
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
const char *fence1TabFocusChain[] = {
"input12", "input13", "input11", "input12", Q_NULLPTR
};
verifyTabFocusChain(window, fence1TabFocusChain, true /* forward */);
const char *fence1BacktabFocusChain[] = {
"input11", "input13", "input12", "input11", Q_NULLPTR
};
verifyTabFocusChain(window, fence1BacktabFocusChain, false /* forward */);
}
void tst_QQuickItem::qtbug_50516()
{
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl("qtbug_50516.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QVERIFY(QGuiApplication::focusWindow() == window);
QVERIFY(window->rootObject()->hasActiveFocus());
QQuickItem *contentItem = window->rootObject();
QQuickItem *next = contentItem->nextItemInFocusChain(true);
QCOMPARE(next, contentItem);
next = contentItem->nextItemInFocusChain(false);
QCOMPARE(next, contentItem);
delete window;
}
void tst_QQuickItem::qtbug_50516_2_data()
{
QTest::addColumn<QString>("filename");
QTest::addColumn<QString>("item1");
QTest::addColumn<QString>("item2");
QTest::newRow("FocusScope TabFence with one Item(focused)")
<< QStringLiteral("qtbug_50516_2_1.qml") << QStringLiteral("root") << QStringLiteral("root");
QTest::newRow("FocusScope TabFence with one Item(unfocused)")
<< QStringLiteral("qtbug_50516_2_2.qml") << QStringLiteral("root") << QStringLiteral("root");
QTest::newRow("FocusScope TabFence with two Items(focused)")
<< QStringLiteral("qtbug_50516_2_3.qml") << QStringLiteral("root") << QStringLiteral("root");
QTest::newRow("FocusScope TabFence with two Items(unfocused)")
<< QStringLiteral("qtbug_50516_2_4.qml") << QStringLiteral("root") << QStringLiteral("root");
QTest::newRow("FocusScope TabFence with one Item and one TextInput(unfocused)")
<< QStringLiteral("qtbug_50516_2_5.qml") << QStringLiteral("item1") << QStringLiteral("item1");
QTest::newRow("FocusScope TabFence with two TextInputs(unfocused)")
<< QStringLiteral("qtbug_50516_2_6.qml") << QStringLiteral("item1") << QStringLiteral("item2");
}
void tst_QQuickItem::qtbug_50516_2()
{
QFETCH(QString, filename);
QFETCH(QString, item1);
QFETCH(QString, item2);
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(800,600));
window->setSource(testFileUrl(filename));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QVERIFY(QGuiApplication::focusWindow() == window);
QVERIFY(window->rootObject()->hasActiveFocus());
QQuickItem *contentItem = window->rootObject();
QQuickItem *next = contentItem->nextItemInFocusChain(true);
QCOMPARE(next->objectName(), item1);
next = contentItem->nextItemInFocusChain(false);
QCOMPARE(next->objectName(), item2);
delete window;
}
void tst_QQuickItem::keys()
{
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(240,320));
KeysTestObject *testObject = new KeysTestObject;
window->rootContext()->setContextProperty("keysTestObject", testObject);
window->rootContext()->setContextProperty("enableKeyHanding", QVariant(true));
window->rootContext()->setContextProperty("forwardeeVisible", QVariant(true));
window->setSource(testFileUrl("keystest.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QVERIFY(window->rootObject());
QCOMPARE(window->rootObject()->property("isEnabled").toBool(), true);
QKeyEvent key(QEvent::KeyPress, Qt::Key_A, Qt::NoModifier, "A", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_A));
QCOMPARE(testObject->mForwardedKey, int(Qt::Key_A));
QCOMPARE(testObject->mText, QLatin1String("A"));
QCOMPARE(testObject->mModifiers, int(Qt::NoModifier));
QVERIFY(!key.isAccepted());
testObject->reset();
key = QKeyEvent(QEvent::KeyRelease, Qt::Key_A, Qt::ShiftModifier, "A", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_A));
QCOMPARE(testObject->mForwardedKey, int(Qt::Key_A));
QCOMPARE(testObject->mText, QLatin1String("A"));
QCOMPARE(testObject->mModifiers, int(Qt::ShiftModifier));
QVERIFY(key.isAccepted());
testObject->reset();
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Return, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_Return));
QCOMPARE(testObject->mForwardedKey, int(Qt::Key_Return));
QCOMPARE(testObject->mText, QLatin1String("Return"));
QCOMPARE(testObject->mModifiers, int(Qt::NoModifier));
QVERIFY(key.isAccepted());
testObject->reset();
key = QKeyEvent(QEvent::KeyPress, Qt::Key_0, Qt::NoModifier, "0", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_0));
QCOMPARE(testObject->mForwardedKey, int(Qt::Key_0));
QCOMPARE(testObject->mText, QLatin1String("0"));
QCOMPARE(testObject->mModifiers, int(Qt::NoModifier));
QVERIFY(key.isAccepted());
testObject->reset();
key = QKeyEvent(QEvent::KeyPress, Qt::Key_9, Qt::NoModifier, "9", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_9));
QCOMPARE(testObject->mForwardedKey, int(Qt::Key_9));
QCOMPARE(testObject->mText, QLatin1String("9"));
QCOMPARE(testObject->mModifiers, int(Qt::NoModifier));
QVERIFY(!key.isAccepted());
testObject->reset();
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_Tab));
QCOMPARE(testObject->mForwardedKey, int(Qt::Key_Tab));
QCOMPARE(testObject->mText, QLatin1String("Tab"));
QCOMPARE(testObject->mModifiers, int(Qt::NoModifier));
QVERIFY(key.isAccepted());
testObject->reset();
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Backtab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_Backtab));
QCOMPARE(testObject->mForwardedKey, int(Qt::Key_Backtab));
QCOMPARE(testObject->mText, QLatin1String("Backtab"));
QCOMPARE(testObject->mModifiers, int(Qt::NoModifier));
QVERIFY(key.isAccepted());
testObject->reset();
key = QKeyEvent(QEvent::KeyPress, Qt::Key_VolumeUp, Qt::NoModifier, 1234, 0, 0);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_VolumeUp));
QCOMPARE(testObject->mForwardedKey, int(Qt::Key_VolumeUp));
QCOMPARE(testObject->mModifiers, int(Qt::NoModifier));
QCOMPARE(testObject->mNativeScanCode, quint32(1234));
QVERIFY(key.isAccepted());
testObject->reset();
window->rootContext()->setContextProperty("forwardeeVisible", QVariant(false));
key = QKeyEvent(QEvent::KeyPress, Qt::Key_A, Qt::NoModifier, "A", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_A));
QCOMPARE(testObject->mForwardedKey, 0);
QCOMPARE(testObject->mText, QLatin1String("A"));
QCOMPARE(testObject->mModifiers, int(Qt::NoModifier));
QVERIFY(!key.isAccepted());
testObject->reset();
window->rootContext()->setContextProperty("enableKeyHanding", QVariant(false));
QCOMPARE(window->rootObject()->property("isEnabled").toBool(), false);
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Return, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, 0);
QVERIFY(!key.isAccepted());
window->rootContext()->setContextProperty("enableKeyHanding", QVariant(true));
QCOMPARE(window->rootObject()->property("isEnabled").toBool(), true);
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Return, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_Return));
QVERIFY(key.isAccepted());
delete window;
delete testObject;
}
Q_DECLARE_METATYPE(QEvent::Type);
Q_DECLARE_METATYPE(QKeySequence::StandardKey);
void tst_QQuickItem::standardKeys_data()
{
QTest::addColumn<QKeySequence::StandardKey>("standardKey");
QTest::addColumn<QKeySequence::StandardKey>("contextProperty");
QTest::addColumn<QEvent::Type>("eventType");
QTest::addColumn<bool>("pressed");
QTest::addColumn<bool>("released");
QTest::newRow("Press: Open") << QKeySequence::Open << QKeySequence::Open << QEvent::KeyPress << true << false;
QTest::newRow("Press: Close") << QKeySequence::Close << QKeySequence::Close << QEvent::KeyPress << true << false;
QTest::newRow("Press: Save") << QKeySequence::Save << QKeySequence::Save << QEvent::KeyPress << true << false;
QTest::newRow("Press: Quit") << QKeySequence::Quit << QKeySequence::Quit << QEvent::KeyPress << true << false;
QTest::newRow("Release: New") << QKeySequence::New << QKeySequence::New << QEvent::KeyRelease << false << true;
QTest::newRow("Release: Delete") << QKeySequence::Delete << QKeySequence::Delete << QEvent::KeyRelease << false << true;
QTest::newRow("Release: Undo") << QKeySequence::Undo << QKeySequence::Undo << QEvent::KeyRelease << false << true;
QTest::newRow("Release: Redo") << QKeySequence::Redo << QKeySequence::Redo << QEvent::KeyRelease << false << true;
QTest::newRow("Mismatch: Cut") << QKeySequence::Cut << QKeySequence::Copy << QEvent::KeyPress << false << false;
QTest::newRow("Mismatch: Copy") << QKeySequence::Copy << QKeySequence::Paste << QEvent::KeyPress << false << false;
QTest::newRow("Mismatch: Paste") << QKeySequence::Paste << QKeySequence::Cut << QEvent::KeyRelease << false << false;
QTest::newRow("Mismatch: Quit") << QKeySequence::Quit << QKeySequence::New << QEvent::KeyRelease << false << false;
}
void tst_QQuickItem::standardKeys()
{
QFETCH(QKeySequence::StandardKey, standardKey);
QFETCH(QKeySequence::StandardKey, contextProperty);
QFETCH(QEvent::Type, eventType);
QFETCH(bool, pressed);
QFETCH(bool, released);
QKeySequence keySequence(standardKey);
if (keySequence.isEmpty())
QSKIP("Undefined key sequence.");
QQuickView view;
view.rootContext()->setContextProperty("standardKey", contextProperty);
view.setSource(testFileUrl("standardkeys.qml"));
view.show();
view.requestActivate();
QVERIFY(QTest::qWaitForWindowActive(&view));
QQuickItem *item = qobject_cast<QQuickItem*>(view.rootObject());
QVERIFY(item);
const int key = keySequence[0] & Qt::Key_unknown;
const int modifiers = keySequence[0] & Qt::KeyboardModifierMask;
QKeyEvent keyEvent(eventType, key, static_cast<Qt::KeyboardModifiers>(modifiers));
QGuiApplication::sendEvent(&view, &keyEvent);
QCOMPARE(item->property("pressed").toBool(), pressed);
QCOMPARE(item->property("released").toBool(), released);
}
void tst_QQuickItem::keysProcessingOrder()
{
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(240,320));
KeysTestObject *testObject = new KeysTestObject;
window->rootContext()->setContextProperty("keysTestObject", testObject);
window->setSource(testFileUrl("keyspriority.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
KeyTestItem *testItem = qobject_cast<KeyTestItem*>(window->rootObject());
QVERIFY(testItem);
QCOMPARE(testItem->property("priorityTest").toInt(), 0);
QKeyEvent key(QEvent::KeyPress, Qt::Key_A, Qt::NoModifier, "A", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_A));
QCOMPARE(testObject->mText, QLatin1String("A"));
QCOMPARE(testObject->mModifiers, int(Qt::NoModifier));
QVERIFY(key.isAccepted());
testObject->reset();
testObject->setProcessLast(true);
QCOMPARE(testItem->property("priorityTest").toInt(), 1);
key = QKeyEvent(QEvent::KeyPress, Qt::Key_A, Qt::NoModifier, "A", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, 0);
QVERIFY(key.isAccepted());
testObject->reset();
key = QKeyEvent(QEvent::KeyPress, Qt::Key_B, Qt::NoModifier, "B", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, int(Qt::Key_B));
QCOMPARE(testObject->mText, QLatin1String("B"));
QCOMPARE(testObject->mModifiers, int(Qt::NoModifier));
QVERIFY(!key.isAccepted());
testObject->reset();
key = QKeyEvent(QEvent::KeyRelease, Qt::Key_B, Qt::NoModifier, "B", false, 1);
QGuiApplication::sendEvent(window, &key);
QCOMPARE(testObject->mKey, 0);
QVERIFY(key.isAccepted());
delete window;
delete testObject;
}
void tst_QQuickItem::keysim()
{
PlatformInputContext platformInputContext;
QInputMethodPrivate *inputMethodPrivate = QInputMethodPrivate::get(qApp->inputMethod());
inputMethodPrivate->testContext = &platformInputContext;
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(240,320));
window->setSource(testFileUrl("keysim.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QVERIFY(window->rootObject());
QVERIFY(window->rootObject()->hasFocus() && window->rootObject()->hasActiveFocus());
QQuickTextInput *input = window->rootObject()->findChild<QQuickTextInput*>();
QVERIFY(input);
QInputMethodEvent ev("Hello world!", QList<QInputMethodEvent::Attribute>());
QGuiApplication::sendEvent(qGuiApp->focusObject(), &ev);
QEXPECT_FAIL("", "QTBUG-24280", Continue);
QCOMPARE(input->text(), QLatin1String("Hello world!"));
delete window;
}
void tst_QQuickItem::keysForward()
{
QQuickView window;
window.setBaseSize(QSize(240,320));
window.setSource(testFileUrl("keysforward.qml"));
window.show();
window.requestActivate();
QVERIFY(QTest::qWaitForWindowActive(&window));
QCOMPARE(QGuiApplication::focusWindow(), &window);
QQuickItem *rootItem = qobject_cast<QQuickItem *>(window.rootObject());
QVERIFY(rootItem);
QQuickItem *sourceItem = rootItem->property("source").value<QQuickItem *>();
QVERIFY(sourceItem);
QQuickItem *primaryTarget = rootItem->property("primaryTarget").value<QQuickItem *>();
QVERIFY(primaryTarget);
QQuickItem *secondaryTarget = rootItem->property("secondaryTarget").value<QQuickItem *>();
QVERIFY(secondaryTarget);
// primary target accepts/consumes Key_P
QKeyEvent pressKeyP(QEvent::KeyPress, Qt::Key_P, Qt::NoModifier, "P");
QCoreApplication::sendEvent(sourceItem, &pressKeyP);
QCOMPARE(rootItem->property("pressedKeys").toList(), QVariantList());
QCOMPARE(sourceItem->property("pressedKeys").toList(), QVariantList());
QCOMPARE(primaryTarget->property("pressedKeys").toList(), QVariantList() << Qt::Key_P);
QCOMPARE(secondaryTarget->property("pressedKeys").toList(), QVariantList() << Qt::Key_P);
QVERIFY(pressKeyP.isAccepted());
QKeyEvent releaseKeyP(QEvent::KeyRelease, Qt::Key_P, Qt::NoModifier, "P");
QCoreApplication::sendEvent(sourceItem, &releaseKeyP);
QCOMPARE(rootItem->property("releasedKeys").toList(), QVariantList());
QCOMPARE(sourceItem->property("releasedKeys").toList(), QVariantList());
QCOMPARE(primaryTarget->property("releasedKeys").toList(), QVariantList() << Qt::Key_P);
QCOMPARE(secondaryTarget->property("releasedKeys").toList(), QVariantList() << Qt::Key_P);
QVERIFY(releaseKeyP.isAccepted());
// secondary target accepts/consumes Key_S
QKeyEvent pressKeyS(QEvent::KeyPress, Qt::Key_S, Qt::NoModifier, "S");
QCoreApplication::sendEvent(sourceItem, &pressKeyS);
QCOMPARE(rootItem->property("pressedKeys").toList(), QVariantList());
QCOMPARE(sourceItem->property("pressedKeys").toList(), QVariantList());
QCOMPARE(primaryTarget->property("pressedKeys").toList(), QVariantList() << Qt::Key_P);
QCOMPARE(secondaryTarget->property("pressedKeys").toList(), QVariantList() << Qt::Key_P << Qt::Key_S);
QVERIFY(pressKeyS.isAccepted());
QKeyEvent releaseKeyS(QEvent::KeyRelease, Qt::Key_S, Qt::NoModifier, "S");
QCoreApplication::sendEvent(sourceItem, &releaseKeyS);
QCOMPARE(rootItem->property("releasedKeys").toList(), QVariantList());
QCOMPARE(sourceItem->property("releasedKeys").toList(), QVariantList());
QCOMPARE(primaryTarget->property("releasedKeys").toList(), QVariantList() << Qt::Key_P);
QCOMPARE(secondaryTarget->property("releasedKeys").toList(), QVariantList() << Qt::Key_P << Qt::Key_S);
QVERIFY(releaseKeyS.isAccepted());
// neither target accepts/consumes Key_Q
QKeyEvent pressKeyQ(QEvent::KeyPress, Qt::Key_Q, Qt::NoModifier, "Q");
QCoreApplication::sendEvent(sourceItem, &pressKeyQ);
QCOMPARE(rootItem->property("pressedKeys").toList(), QVariantList());
QCOMPARE(sourceItem->property("pressedKeys").toList(), QVariantList() << Qt::Key_Q);
QCOMPARE(primaryTarget->property("pressedKeys").toList(), QVariantList() << Qt::Key_P << Qt::Key_Q);
QCOMPARE(secondaryTarget->property("pressedKeys").toList(), QVariantList() << Qt::Key_P << Qt::Key_S << Qt::Key_Q);
QVERIFY(!pressKeyQ.isAccepted());
QKeyEvent releaseKeyQ(QEvent::KeyRelease, Qt::Key_Q, Qt::NoModifier, "Q");
QCoreApplication::sendEvent(sourceItem, &releaseKeyQ);
QCOMPARE(rootItem->property("releasedKeys").toList(), QVariantList());
QCOMPARE(sourceItem->property("releasedKeys").toList(), QVariantList() << Qt::Key_Q);
QCOMPARE(primaryTarget->property("releasedKeys").toList(), QVariantList() << Qt::Key_P << Qt::Key_Q);
QCOMPARE(secondaryTarget->property("releasedKeys").toList(), QVariantList() << Qt::Key_P << Qt::Key_S << Qt::Key_Q);
QVERIFY(!releaseKeyQ.isAccepted());
}
QQuickItemPrivate *childPrivate(QQuickItem *rootItem, const char * itemString)
{
QQuickItem *item = findItem<QQuickItem>(rootItem, QString(QLatin1String(itemString)));
QQuickItemPrivate* itemPrivate = QQuickItemPrivate::get(item);
return itemPrivate;
}
QVariant childProperty(QQuickItem *rootItem, const char * itemString, const char * property)
{
QQuickItem *item = findItem<QQuickItem>(rootItem, QString(QLatin1String(itemString)));
return item->property(property);
}
bool anchorsMirrored(QQuickItem *rootItem, const char * itemString)
{
QQuickItem *item = findItem<QQuickItem>(rootItem, QString(QLatin1String(itemString)));
QQuickItemPrivate* itemPrivate = QQuickItemPrivate::get(item);
return itemPrivate->anchors()->mirrored();
}
void tst_QQuickItem::layoutMirroring()
{
QQuickView *window = new QQuickView(0);
window->setSource(testFileUrl("layoutmirroring.qml"));
window->show();
QQuickItem *rootItem = qobject_cast<QQuickItem*>(window->rootObject());
QVERIFY(rootItem);
QQuickItemPrivate *rootPrivate = QQuickItemPrivate::get(rootItem);
QVERIFY(rootPrivate);
QCOMPARE(childPrivate(rootItem, "mirrored1")->effectiveLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "mirrored2")->effectiveLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "notMirrored1")->effectiveLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "notMirrored2")->effectiveLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror1")->effectiveLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "inheritedMirror2")->effectiveLayoutMirror, true);
QCOMPARE(anchorsMirrored(rootItem, "mirrored1"), true);
QCOMPARE(anchorsMirrored(rootItem, "mirrored2"), true);
QCOMPARE(anchorsMirrored(rootItem, "notMirrored1"), false);
QCOMPARE(anchorsMirrored(rootItem, "notMirrored2"), false);
QCOMPARE(anchorsMirrored(rootItem, "inheritedMirror1"), true);
QCOMPARE(anchorsMirrored(rootItem, "inheritedMirror2"), true);
QCOMPARE(childPrivate(rootItem, "mirrored1")->inheritedLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "mirrored2")->inheritedLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "notMirrored1")->inheritedLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "notMirrored2")->inheritedLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror1")->inheritedLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "inheritedMirror2")->inheritedLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "mirrored1")->isMirrorImplicit, false);
QCOMPARE(childPrivate(rootItem, "mirrored2")->isMirrorImplicit, false);
QCOMPARE(childPrivate(rootItem, "notMirrored1")->isMirrorImplicit, false);
QCOMPARE(childPrivate(rootItem, "notMirrored2")->isMirrorImplicit, true);
QCOMPARE(childPrivate(rootItem, "inheritedMirror1")->isMirrorImplicit, true);
QCOMPARE(childPrivate(rootItem, "inheritedMirror2")->isMirrorImplicit, true);
QCOMPARE(childPrivate(rootItem, "mirrored1")->inheritMirrorFromParent, true);
QCOMPARE(childPrivate(rootItem, "mirrored2")->inheritMirrorFromParent, false);
QCOMPARE(childPrivate(rootItem, "notMirrored1")->inheritMirrorFromParent, true);
QCOMPARE(childPrivate(rootItem, "notMirrored2")->inheritMirrorFromParent, false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror1")->inheritMirrorFromParent, true);
QCOMPARE(childPrivate(rootItem, "inheritedMirror2")->inheritMirrorFromParent, true);
QCOMPARE(childPrivate(rootItem, "mirrored1")->inheritMirrorFromItem, true);
QCOMPARE(childPrivate(rootItem, "mirrored2")->inheritMirrorFromItem, false);
QCOMPARE(childPrivate(rootItem, "notMirrored1")->inheritMirrorFromItem, false);
QCOMPARE(childPrivate(rootItem, "notMirrored2")->inheritMirrorFromItem, false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror1")->inheritMirrorFromItem, false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror2")->inheritMirrorFromItem, false);
// load dynamic content using Loader that needs to inherit mirroring
rootItem->setProperty("state", "newContent");
QCOMPARE(childPrivate(rootItem, "notMirrored3")->effectiveLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror3")->effectiveLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "notMirrored3")->inheritedLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "inheritedMirror3")->inheritedLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "notMirrored3")->isMirrorImplicit, false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror3")->isMirrorImplicit, true);
QCOMPARE(childPrivate(rootItem, "notMirrored3")->inheritMirrorFromParent, true);
QCOMPARE(childPrivate(rootItem, "inheritedMirror3")->inheritMirrorFromParent, true);
QCOMPARE(childPrivate(rootItem, "notMirrored3")->inheritMirrorFromItem, false);
QCOMPARE(childPrivate(rootItem, "notMirrored3")->inheritMirrorFromItem, false);
// disable inheritance
rootItem->setProperty("childrenInherit", false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror1")->effectiveLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror2")->effectiveLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "mirrored1")->effectiveLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "notMirrored1")->effectiveLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror1")->inheritedLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror2")->inheritedLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "mirrored1")->inheritedLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "notMirrored1")->inheritedLayoutMirror, false);
// re-enable inheritance
rootItem->setProperty("childrenInherit", true);
QCOMPARE(childPrivate(rootItem, "inheritedMirror1")->effectiveLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "inheritedMirror2")->effectiveLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "mirrored1")->effectiveLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "notMirrored1")->effectiveLayoutMirror, false);
QCOMPARE(childPrivate(rootItem, "inheritedMirror1")->inheritedLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "inheritedMirror2")->inheritedLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "mirrored1")->inheritedLayoutMirror, true);
QCOMPARE(childPrivate(rootItem, "notMirrored1")->inheritedLayoutMirror, true);
//
// dynamic parenting
//
QQuickItem *parentItem1 = new QQuickItem();
QQuickItemPrivate::get(parentItem1)->effectiveLayoutMirror = true; // LayoutMirroring.enabled: true
QQuickItemPrivate::get(parentItem1)->isMirrorImplicit = false;
QQuickItemPrivate::get(parentItem1)->inheritMirrorFromItem = true; // LayoutMirroring.childrenInherit: true
QQuickItemPrivate::get(parentItem1)->resolveLayoutMirror();
// inherit in constructor
QQuickItem *childItem1 = new QQuickItem(parentItem1);
QCOMPARE(QQuickItemPrivate::get(childItem1)->effectiveLayoutMirror, true);
QCOMPARE(QQuickItemPrivate::get(childItem1)->inheritMirrorFromParent, true);
// inherit through a parent change
QQuickItem *childItem2 = new QQuickItem();
QCOMPARE(QQuickItemPrivate::get(childItem2)->effectiveLayoutMirror, false);
QCOMPARE(QQuickItemPrivate::get(childItem2)->inheritMirrorFromParent, false);
childItem2->setParentItem(parentItem1);
QCOMPARE(QQuickItemPrivate::get(childItem2)->effectiveLayoutMirror, true);
QCOMPARE(QQuickItemPrivate::get(childItem2)->inheritMirrorFromParent, true);
// stop inherting through a parent change
QQuickItem *parentItem2 = new QQuickItem();
QQuickItemPrivate::get(parentItem2)->effectiveLayoutMirror = true; // LayoutMirroring.enabled: true
QQuickItemPrivate::get(parentItem2)->resolveLayoutMirror();
childItem2->setParentItem(parentItem2);
QCOMPARE(QQuickItemPrivate::get(childItem2)->effectiveLayoutMirror, false);
QCOMPARE(QQuickItemPrivate::get(childItem2)->inheritMirrorFromParent, false);
delete parentItem1;
delete parentItem2;
}
void tst_QQuickItem::layoutMirroringIllegalParent()
{
QQmlComponent component(&engine);
component.setData("import QtQuick 2.0; QtObject { LayoutMirroring.enabled: true; LayoutMirroring.childrenInherit: true }", QUrl::fromLocalFile(""));
QTest::ignoreMessage(QtWarningMsg, "<Unknown File>:1:21: QML QtObject: LayoutDirection attached property only works with Items");
QObject *object = component.create();
QVERIFY(object != 0);
}
void tst_QQuickItem::keyNavigation_data()
{
QTest::addColumn<QString>("source");
QTest::newRow("KeyNavigation") << QStringLiteral("keynavigationtest.qml");
QTest::newRow("KeyNavigation_FocusScope") << QStringLiteral("keynavigationtest_focusscope.qml");
}
void tst_QQuickItem::keyNavigation()
{
QFETCH(QString, source);
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(240,320));
window->setSource(testFileUrl(source));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
QVariant result;
QVERIFY(QMetaObject::invokeMethod(window->rootObject(), "verify",
Q_RETURN_ARG(QVariant, result)));
QVERIFY(result.toBool());
// right
QKeyEvent key(QEvent::KeyPress, Qt::Key_Right, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item2");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// down
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Down, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item4");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// left
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Left, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item3");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// up
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Up, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// tab
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item2");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// backtab
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Backtab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::keyNavigation_RightToLeft()
{
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(240,320));
window->setSource(testFileUrl("keynavigationtest.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *rootItem = qobject_cast<QQuickItem*>(window->rootObject());
QVERIFY(rootItem);
QQuickItemPrivate* rootItemPrivate = QQuickItemPrivate::get(rootItem);
rootItemPrivate->effectiveLayoutMirror = true; // LayoutMirroring.mirror: true
rootItemPrivate->isMirrorImplicit = false;
rootItemPrivate->inheritMirrorFromItem = true; // LayoutMirroring.inherit: true
rootItemPrivate->resolveLayoutMirror();
QEvent wa(QEvent::WindowActivate);
QGuiApplication::sendEvent(window, &wa);
QFocusEvent fe(QEvent::FocusIn);
QGuiApplication::sendEvent(window, &fe);
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
QVariant result;
QVERIFY(QMetaObject::invokeMethod(window->rootObject(), "verify",
Q_RETURN_ARG(QVariant, result)));
QVERIFY(result.toBool());
// right
QKeyEvent key(QEvent::KeyPress, Qt::Key_Left, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item2");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// left
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Right, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::keyNavigation_skipNotVisible()
{
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(240,320));
window->setSource(testFileUrl("keynavigationtest.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// Set item 2 to not visible
item = findItem<QQuickItem>(window->rootObject(), "item2");
QVERIFY(item);
item->setVisible(false);
QVERIFY(!item->isVisible());
// right
QKeyEvent key(QEvent::KeyPress, Qt::Key_Right, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// tab
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item3");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// backtab
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Backtab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
//Set item 3 to not visible
item = findItem<QQuickItem>(window->rootObject(), "item3");
QVERIFY(item);
item->setVisible(false);
QVERIFY(!item->isVisible());
// tab
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item4");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// backtab
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Backtab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::keyNavigation_implicitSetting()
{
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(240,320));
window->setSource(testFileUrl("keynavigationtest_implicit.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QEvent wa(QEvent::WindowActivate);
QGuiApplication::sendEvent(window, &wa);
QFocusEvent fe(QEvent::FocusIn);
QGuiApplication::sendEvent(window, &fe);
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
QVariant result;
QVERIFY(QMetaObject::invokeMethod(window->rootObject(), "verify",
Q_RETURN_ARG(QVariant, result)));
QVERIFY(result.toBool());
// right
QKeyEvent key(QEvent::KeyPress, Qt::Key_Right, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item2");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// back to item1
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Left, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// down
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Down, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item3");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// move to item4
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Right, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item4");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// left
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Left, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item3");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// back to item4
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Right, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item4");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// up
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Up, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item2");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// back to item4
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Down, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item4");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// tab
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// back to item4
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Backtab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item4");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
// backtab
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Backtab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
item = findItem<QQuickItem>(window->rootObject(), "item3");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::keyNavigation_focusReason()
{
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(240,320));
FocusEventFilter focusEventFilter;
window->setSource(testFileUrl("keynavigationtest.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
// install event filter on first item
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
item->installEventFilter(&focusEventFilter);
//install event filter on second item
item = findItem<QQuickItem>(window->rootObject(), "item2");
QVERIFY(item);
item->installEventFilter(&focusEventFilter);
//install event filter on third item
item = findItem<QQuickItem>(window->rootObject(), "item3");
QVERIFY(item);
item->installEventFilter(&focusEventFilter);
//install event filter on last item
item = findItem<QQuickItem>(window->rootObject(), "item4");
QVERIFY(item);
item->installEventFilter(&focusEventFilter);
// tab
QKeyEvent key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QCOMPARE(focusEventFilter.lastFocusReason, Qt::TabFocusReason);
// backtab
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Backtab, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QCOMPARE(focusEventFilter.lastFocusReason, Qt::BacktabFocusReason);
// right - it's also one kind of key navigation
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Right, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QCOMPARE(focusEventFilter.lastFocusReason, Qt::TabFocusReason);
item->setFocus(true, Qt::OtherFocusReason);
QVERIFY(item->hasActiveFocus());
QCOMPARE(focusEventFilter.lastFocusReason, Qt::OtherFocusReason);
delete window;
}
void tst_QQuickItem::keyNavigation_loop()
{
// QTBUG-47229
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(240,320));
window->setSource(testFileUrl("keynavigationtest_loop.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasActiveFocus());
QKeyEvent key = QKeyEvent(QEvent::KeyPress, Qt::Key_Down, Qt::NoModifier, "", false, 1);
QGuiApplication::sendEvent(window, &key);
QVERIFY(key.isAccepted());
QVERIFY(item->hasActiveFocus());
delete window;
}
void tst_QQuickItem::smooth()
{
QQmlComponent component(&engine);
component.setData("import QtQuick 2.0; Item { smooth: false; }", QUrl::fromLocalFile(""));
QQuickItem *item = qobject_cast<QQuickItem*>(component.create());
QSignalSpy spy(item, SIGNAL(smoothChanged(bool)));
QVERIFY(item);
QVERIFY(!item->smooth());
item->setSmooth(true);
QVERIFY(item->smooth());
QCOMPARE(spy.count(),1);
QList<QVariant> arguments = spy.first();
QCOMPARE(arguments.count(), 1);
QVERIFY(arguments.at(0).toBool());
item->setSmooth(true);
QCOMPARE(spy.count(),1);
item->setSmooth(false);
QVERIFY(!item->smooth());
QCOMPARE(spy.count(),2);
item->setSmooth(false);
QCOMPARE(spy.count(),2);
delete item;
}
void tst_QQuickItem::antialiasing()
{
QQmlComponent component(&engine);
component.setData("import QtQuick 2.0; Item { antialiasing: false; }", QUrl::fromLocalFile(""));
QQuickItem *item = qobject_cast<QQuickItem*>(component.create());
QSignalSpy spy(item, SIGNAL(antialiasingChanged(bool)));
QVERIFY(item);
QVERIFY(!item->antialiasing());
item->setAntialiasing(true);
QVERIFY(item->antialiasing());
QCOMPARE(spy.count(),1);
QList<QVariant> arguments = spy.first();
QCOMPARE(arguments.count(), 1);
QVERIFY(arguments.at(0).toBool());
item->setAntialiasing(true);
QCOMPARE(spy.count(),1);
item->setAntialiasing(false);
QVERIFY(!item->antialiasing());
QCOMPARE(spy.count(),2);
item->setAntialiasing(false);
QCOMPARE(spy.count(),2);
delete item;
}
void tst_QQuickItem::clip()
{
QQmlComponent component(&engine);
component.setData("import QtQuick 2.0\nItem { clip: false\n }", QUrl::fromLocalFile(""));
QQuickItem *item = qobject_cast<QQuickItem*>(component.create());
QSignalSpy spy(item, SIGNAL(clipChanged(bool)));
QVERIFY(item);
QVERIFY(!item->clip());
item->setClip(true);
QVERIFY(item->clip());
QList<QVariant> arguments = spy.first();
QCOMPARE(arguments.count(), 1);
QVERIFY(arguments.at(0).toBool());
QCOMPARE(spy.count(),1);
item->setClip(true);
QCOMPARE(spy.count(),1);
item->setClip(false);
QVERIFY(!item->clip());
QCOMPARE(spy.count(),2);
item->setClip(false);
QCOMPARE(spy.count(),2);
delete item;
}
void tst_QQuickItem::mapCoordinates()
{
QFETCH(int, x);
QFETCH(int, y);
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(300, 300));
window->setSource(testFileUrl("mapCoordinates.qml"));
window->show();
qApp->processEvents();
QQuickItem *root = qobject_cast<QQuickItem*>(window->rootObject());
QVERIFY(root != 0);
QQuickItem *a = findItem<QQuickItem>(window->rootObject(), "itemA");
QVERIFY(a != 0);
QQuickItem *b = findItem<QQuickItem>(window->rootObject(), "itemB");
QVERIFY(b != 0);
QVariant result;
QVERIFY(QMetaObject::invokeMethod(root, "mapAToB",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y)));
QCOMPARE(result.value<QPointF>(), qobject_cast<QQuickItem*>(a)->mapToItem(b, QPointF(x, y)));
QVERIFY(QMetaObject::invokeMethod(root, "mapAFromB",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y)));
QCOMPARE(result.value<QPointF>(), qobject_cast<QQuickItem*>(a)->mapFromItem(b, QPointF(x, y)));
QVERIFY(QMetaObject::invokeMethod(root, "mapAToNull",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y)));
QCOMPARE(result.value<QPointF>(), qobject_cast<QQuickItem*>(a)->mapToScene(QPointF(x, y)));
QVERIFY(QMetaObject::invokeMethod(root, "mapAFromNull",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y)));
QCOMPARE(result.value<QPointF>(), qobject_cast<QQuickItem*>(a)->mapFromScene(QPointF(x, y)));
QString warning1 = testFileUrl("mapCoordinates.qml").toString() + ":40:5: QML Item: mapToItem() given argument \"1122\" which is neither null nor an Item";
QString warning2 = testFileUrl("mapCoordinates.qml").toString() + ":40:5: QML Item: mapFromItem() given argument \"1122\" which is neither null nor an Item";
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning1));
QVERIFY(QMetaObject::invokeMethod(root, "checkMapAToInvalid",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y)));
QVERIFY(result.toBool());
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning2));
QVERIFY(QMetaObject::invokeMethod(root, "checkMapAFromInvalid",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y)));
QVERIFY(result.toBool());
delete window;
}
void tst_QQuickItem::mapCoordinates_data()
{
QTest::addColumn<int>("x");
QTest::addColumn<int>("y");
for (int i=-20; i<=20; i+=10)
QTest::newRow(QTest::toString(i)) << i << i;
}
void tst_QQuickItem::mapCoordinatesRect()
{
QFETCH(int, x);
QFETCH(int, y);
QFETCH(int, width);
QFETCH(int, height);
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(300, 300));
window->setSource(testFileUrl("mapCoordinatesRect.qml"));
window->show();
qApp->processEvents();
QQuickItem *root = qobject_cast<QQuickItem*>(window->rootObject());
QVERIFY(root != 0);
QQuickItem *a = findItem<QQuickItem>(window->rootObject(), "itemA");
QVERIFY(a != 0);
QQuickItem *b = findItem<QQuickItem>(window->rootObject(), "itemB");
QVERIFY(b != 0);
QVariant result;
QVERIFY(QMetaObject::invokeMethod(root, "mapAToB",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y), Q_ARG(QVariant, width), Q_ARG(QVariant, height)));
QCOMPARE(result.value<QRectF>(), qobject_cast<QQuickItem*>(a)->mapRectToItem(b, QRectF(x, y, width, height)));
QVERIFY(QMetaObject::invokeMethod(root, "mapAFromB",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y), Q_ARG(QVariant, width), Q_ARG(QVariant, height)));
QCOMPARE(result.value<QRectF>(), qobject_cast<QQuickItem*>(a)->mapRectFromItem(b, QRectF(x, y, width, height)));
QVERIFY(QMetaObject::invokeMethod(root, "mapAToNull",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y), Q_ARG(QVariant, width), Q_ARG(QVariant, height)));
QCOMPARE(result.value<QRectF>(), qobject_cast<QQuickItem*>(a)->mapRectToScene(QRectF(x, y, width, height)));
QVERIFY(QMetaObject::invokeMethod(root, "mapAFromNull",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y), Q_ARG(QVariant, width), Q_ARG(QVariant, height)));
QCOMPARE(result.value<QRectF>(), qobject_cast<QQuickItem*>(a)->mapRectFromScene(QRectF(x, y, width, height)));
QString warning1 = testFileUrl("mapCoordinatesRect.qml").toString() + ":40:5: QML Item: mapToItem() given argument \"1122\" which is neither null nor an Item";
QString warning2 = testFileUrl("mapCoordinatesRect.qml").toString() + ":40:5: QML Item: mapFromItem() given argument \"1122\" which is neither null nor an Item";
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning1));
QVERIFY(QMetaObject::invokeMethod(root, "checkMapAToInvalid",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y), Q_ARG(QVariant, width), Q_ARG(QVariant, height)));
QVERIFY(result.toBool());
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning2));
QVERIFY(QMetaObject::invokeMethod(root, "checkMapAFromInvalid",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y), Q_ARG(QVariant, width), Q_ARG(QVariant, height)));
QVERIFY(result.toBool());
delete window;
}
void tst_QQuickItem::mapCoordinatesRect_data()
{
QTest::addColumn<int>("x");
QTest::addColumn<int>("y");
QTest::addColumn<int>("width");
QTest::addColumn<int>("height");
for (int i=-20; i<=20; i+=5)
QTest::newRow(QTest::toString(i)) << i << i << i << i;
}
void tst_QQuickItem::transforms_data()
{
QTest::addColumn<QByteArray>("qml");
QTest::addColumn<QTransform>("transform");
QTest::newRow("translate") << QByteArray("Translate { x: 10; y: 20 }")
<< QTransform(1,0,0,0,1,0,10,20,1);
QTest::newRow("matrix4x4") << QByteArray("Matrix4x4 { matrix: Qt.matrix4x4(1,0,0,10, 0,1,0,15, 0,0,1,0, 0,0,0,1) }")
<< QTransform(1,0,0,0,1,0,10,15,1);
QTest::newRow("rotation") << QByteArray("Rotation { angle: 90 }")
<< QTransform(0,1,0,-1,0,0,0,0,1);
QTest::newRow("scale") << QByteArray("Scale { xScale: 1.5; yScale: -2 }")
<< QTransform(1.5,0,0,0,-2,0,0,0,1);
QTest::newRow("sequence") << QByteArray("[ Translate { x: 10; y: 20 }, Scale { xScale: 1.5; yScale: -2 } ]")
<< QTransform(1,0,0,0,1,0,10,20,1) * QTransform(1.5,0,0,0,-2,0,0,0,1);
}
void tst_QQuickItem::transforms()
{
QFETCH(QByteArray, qml);
QFETCH(QTransform, transform);
QQmlComponent component(&engine);
component.setData("import QtQuick 2.3\nItem { transform: "+qml+"}", QUrl::fromLocalFile(""));
QQuickItem *item = qobject_cast<QQuickItem*>(component.create());
QVERIFY(item);
QCOMPARE(item->itemTransform(0,0), transform);
}
void tst_QQuickItem::childrenProperty()
{
QQmlComponent component(&engine, testFileUrl("childrenProperty.qml"));
QObject *o = component.create();
QVERIFY(o != 0);
QCOMPARE(o->property("test1").toBool(), true);
QCOMPARE(o->property("test2").toBool(), true);
QCOMPARE(o->property("test3").toBool(), true);
QCOMPARE(o->property("test4").toBool(), true);
QCOMPARE(o->property("test5").toBool(), true);
delete o;
}
void tst_QQuickItem::resourcesProperty()
{
QQmlComponent component(&engine, testFileUrl("resourcesProperty.qml"));
QObject *object = component.create();
QVERIFY(object != 0);
QQmlProperty property(object, "resources", component.creationContext());
QVERIFY(property.isValid());
QQmlListReference list = qvariant_cast<QQmlListReference>(property.read());
QVERIFY(list.isValid());
QCOMPARE(list.count(), 4);
QCOMPARE(object->property("test1").toBool(), true);
QCOMPARE(object->property("test2").toBool(), true);
QCOMPARE(object->property("test3").toBool(), true);
QCOMPARE(object->property("test4").toBool(), true);
QCOMPARE(object->property("test5").toBool(), true);
QCOMPARE(object->property("test6").toBool(), true);
QObject *subObject = object->findChild<QObject *>("subObject");
QVERIFY(subObject);
QCOMPARE(object, subObject->parent());
delete subObject;
QCOMPARE(list.count(), 3);
delete object;
}
void tst_QQuickItem::propertyChanges()
{
QQuickView *window = new QQuickView(0);
window->setBaseSize(QSize(300, 300));
window->setSource(testFileUrl("propertychanges.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *item = findItem<QQuickItem>(window->rootObject(), "item");
QQuickItem *parentItem = findItem<QQuickItem>(window->rootObject(), "parentItem");
QVERIFY(item);
QVERIFY(parentItem);
QSignalSpy parentSpy(item, SIGNAL(parentChanged(QQuickItem*)));
QSignalSpy widthSpy(item, SIGNAL(widthChanged()));
QSignalSpy heightSpy(item, SIGNAL(heightChanged()));
QSignalSpy baselineOffsetSpy(item, SIGNAL(baselineOffsetChanged(qreal)));
QSignalSpy childrenRectSpy(parentItem, SIGNAL(childrenRectChanged(QRectF)));
QSignalSpy focusSpy(item, SIGNAL(focusChanged(bool)));
QSignalSpy wantsFocusSpy(parentItem, SIGNAL(activeFocusChanged(bool)));
QSignalSpy childrenChangedSpy(parentItem, SIGNAL(childrenChanged()));
QSignalSpy xSpy(item, SIGNAL(xChanged()));
QSignalSpy ySpy(item, SIGNAL(yChanged()));
item->setParentItem(parentItem);
item->setWidth(100.0);
item->setHeight(200.0);
item->setFocus(true);
item->setBaselineOffset(10.0);
QCOMPARE(item->parentItem(), parentItem);
QCOMPARE(parentSpy.count(),1);
QList<QVariant> parentArguments = parentSpy.first();
QCOMPARE(parentArguments.count(), 1);
QCOMPARE(item->parentItem(), qvariant_cast<QQuickItem *>(parentArguments.at(0)));
QCOMPARE(childrenChangedSpy.count(),1);
item->setParentItem(parentItem);
QCOMPARE(childrenChangedSpy.count(),1);
QCOMPARE(item->width(), 100.0);
QCOMPARE(widthSpy.count(),1);
QCOMPARE(item->height(), 200.0);
QCOMPARE(heightSpy.count(),1);
QCOMPARE(item->baselineOffset(), 10.0);
QCOMPARE(baselineOffsetSpy.count(),1);
QList<QVariant> baselineOffsetArguments = baselineOffsetSpy.first();
QCOMPARE(baselineOffsetArguments.count(), 1);
QCOMPARE(item->baselineOffset(), baselineOffsetArguments.at(0).toReal());
QCOMPARE(parentItem->childrenRect(), QRectF(0.0,0.0,100.0,200.0));
QCOMPARE(childrenRectSpy.count(),1);
QList<QVariant> childrenRectArguments = childrenRectSpy.at(0);
QCOMPARE(childrenRectArguments.count(), 1);
QCOMPARE(parentItem->childrenRect(), childrenRectArguments.at(0).toRectF());
QCOMPARE(item->hasActiveFocus(), true);
QCOMPARE(focusSpy.count(),1);
QList<QVariant> focusArguments = focusSpy.first();
QCOMPARE(focusArguments.count(), 1);
QCOMPARE(focusArguments.at(0).toBool(), true);
QCOMPARE(parentItem->hasActiveFocus(), false);
QCOMPARE(parentItem->hasFocus(), false);
QCOMPARE(wantsFocusSpy.count(),0);
item->setX(10.0);
QCOMPARE(item->x(), 10.0);
QCOMPARE(xSpy.count(), 1);
item->setY(10.0);
QCOMPARE(item->y(), 10.0);
QCOMPARE(ySpy.count(), 1);
delete window;
}
void tst_QQuickItem::nonexistentPropertyConnection()
{
// QTBUG-56551: don't crash
QQmlComponent component(&engine, testFileUrl("nonexistentPropertyConnection.qml"));
QObject *o = component.create();
QVERIFY(o);
delete o;
}
void tst_QQuickItem::childrenRect()
{
QQuickView *window = new QQuickView(0);
window->setSource(testFileUrl("childrenRect.qml"));
window->setBaseSize(QSize(240,320));
window->show();
QQuickItem *o = window->rootObject();
QQuickItem *item = o->findChild<QQuickItem*>("testItem");
QCOMPARE(item->width(), qreal(0));
QCOMPARE(item->height(), qreal(0));
o->setProperty("childCount", 1);
QCOMPARE(item->width(), qreal(10));
QCOMPARE(item->height(), qreal(20));
o->setProperty("childCount", 5);
QCOMPARE(item->width(), qreal(50));
QCOMPARE(item->height(), qreal(100));
o->setProperty("childCount", 0);
QCOMPARE(item->width(), qreal(0));
QCOMPARE(item->height(), qreal(0));
delete o;
delete window;
}
// QTBUG-11383
void tst_QQuickItem::childrenRectBug()
{
QQuickView *window = new QQuickView(0);
QString warning = testFileUrl("childrenRectBug.qml").toString() + ":7:5: QML Item: Binding loop detected for property \"height\"";
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning));
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning));
window->setSource(testFileUrl("childrenRectBug.qml"));
window->show();
QQuickItem *o = window->rootObject();
QQuickItem *item = o->findChild<QQuickItem*>("theItem");
QCOMPARE(item->width(), qreal(200));
QCOMPARE(item->height(), qreal(100));
QCOMPARE(item->x(), qreal(100));
delete window;
}
// QTBUG-11465
void tst_QQuickItem::childrenRectBug2()
{
QQuickView *window = new QQuickView(0);
QString warning1 = testFileUrl("childrenRectBug2.qml").toString() + ":7:5: QML Item: Binding loop detected for property \"width\"";
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning1));
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning1));
QString warning2 = testFileUrl("childrenRectBug2.qml").toString() + ":7:5: QML Item: Binding loop detected for property \"height\"";
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning2));
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning2));
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning2));
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning2));
window->setSource(testFileUrl("childrenRectBug2.qml"));
window->show();
QQuickRectangle *rect = qobject_cast<QQuickRectangle*>(window->rootObject());
QVERIFY(rect);
QQuickItem *item = rect->findChild<QQuickItem*>("theItem");
QCOMPARE(item->width(), qreal(100));
QCOMPARE(item->height(), qreal(110));
QCOMPARE(item->x(), qreal(130));
QQuickItemPrivate *rectPrivate = QQuickItemPrivate::get(rect);
rectPrivate->setState("row");
QCOMPARE(item->width(), qreal(210));
QCOMPARE(item->height(), qreal(50));
QCOMPARE(item->x(), qreal(75));
delete window;
}
// QTBUG-12722
void tst_QQuickItem::childrenRectBug3()
{
QQuickView *window = new QQuickView(0);
window->setSource(testFileUrl("childrenRectBug3.qml"));
window->show();
//don't crash on delete
delete window;
}
// QTBUG-38732
void tst_QQuickItem::childrenRectBottomRightCorner()
{
QQuickView *window = new QQuickView(0);
window->setSource(testFileUrl("childrenRectBottomRightCorner.qml"));
window->show();
QQuickItem *rect = window->rootObject()->findChild<QQuickItem*>("childrenRectProxy");
QCOMPARE(rect->x(), qreal(-100));
QCOMPARE(rect->y(), qreal(-100));
QCOMPARE(rect->width(), qreal(50));
QCOMPARE(rect->height(), qreal(50));
delete window;
}
// QTBUG-13893
void tst_QQuickItem::transformCrash()
{
QQuickView *window = new QQuickView(0);
window->setSource(testFileUrl("transformCrash.qml"));
window->show();
delete window;
}
void tst_QQuickItem::implicitSize()
{
QQuickView *window = new QQuickView(0);
window->setSource(testFileUrl("implicitsize.qml"));
window->show();
QQuickItem *item = qobject_cast<QQuickItem*>(window->rootObject());
QVERIFY(item);
QCOMPARE(item->width(), qreal(80));
QCOMPARE(item->height(), qreal(60));
QCOMPARE(item->implicitWidth(), qreal(200));
QCOMPARE(item->implicitHeight(), qreal(100));
QMetaObject::invokeMethod(item, "resetSize");
QCOMPARE(item->width(), qreal(200));
QCOMPARE(item->height(), qreal(100));
QMetaObject::invokeMethod(item, "changeImplicit");
QCOMPARE(item->implicitWidth(), qreal(150));
QCOMPARE(item->implicitHeight(), qreal(80));
QCOMPARE(item->width(), qreal(150));
QCOMPARE(item->height(), qreal(80));
QMetaObject::invokeMethod(item, "assignImplicitBinding");
QCOMPARE(item->implicitWidth(), qreal(150));
QCOMPARE(item->implicitHeight(), qreal(80));
QCOMPARE(item->width(), qreal(150));
QCOMPARE(item->height(), qreal(80));
QMetaObject::invokeMethod(item, "increaseImplicit");
QCOMPARE(item->implicitWidth(), qreal(200));
QCOMPARE(item->implicitHeight(), qreal(100));
QCOMPARE(item->width(), qreal(175));
QCOMPARE(item->height(), qreal(90));
QMetaObject::invokeMethod(item, "changeImplicit");
QCOMPARE(item->implicitWidth(), qreal(150));
QCOMPARE(item->implicitHeight(), qreal(80));
QCOMPARE(item->width(), qreal(150));
QCOMPARE(item->height(), qreal(80));
QMetaObject::invokeMethod(item, "assignUndefinedBinding");
QCOMPARE(item->implicitWidth(), qreal(150));
QCOMPARE(item->implicitHeight(), qreal(80));
QCOMPARE(item->width(), qreal(150));
QCOMPARE(item->height(), qreal(80));
QMetaObject::invokeMethod(item, "increaseImplicit");
QCOMPARE(item->implicitWidth(), qreal(200));
QCOMPARE(item->implicitHeight(), qreal(100));
QCOMPARE(item->width(), qreal(175));
QCOMPARE(item->height(), qreal(90));
QMetaObject::invokeMethod(item, "changeImplicit");
QCOMPARE(item->implicitWidth(), qreal(150));
QCOMPARE(item->implicitHeight(), qreal(80));
QCOMPARE(item->width(), qreal(150));
QCOMPARE(item->height(), qreal(80));
delete window;
}
void tst_QQuickItem::qtbug_16871()
{
QQmlComponent component(&engine, testFileUrl("qtbug_16871.qml"));
QObject *o = component.create();
QVERIFY(o != 0);
delete o;
}
void tst_QQuickItem::visibleChildren()
{
QQuickView *window = new QQuickView(0);
window->setSource(testFileUrl("visiblechildren.qml"));
window->show();
QQuickItem *root = qobject_cast<QQuickItem*>(window->rootObject());
QVERIFY(root);
QCOMPARE(root->property("test1_1").toBool(), true);
QCOMPARE(root->property("test1_2").toBool(), true);
QCOMPARE(root->property("test1_3").toBool(), true);
QCOMPARE(root->property("test1_4").toBool(), true);
QMetaObject::invokeMethod(root, "hideFirstAndLastRowChild");
QCOMPARE(root->property("test2_1").toBool(), true);
QCOMPARE(root->property("test2_2").toBool(), true);
QCOMPARE(root->property("test2_3").toBool(), true);
QCOMPARE(root->property("test2_4").toBool(), true);
QMetaObject::invokeMethod(root, "showLastRowChildsLastChild");
QCOMPARE(root->property("test3_1").toBool(), true);
QCOMPARE(root->property("test3_2").toBool(), true);
QCOMPARE(root->property("test3_3").toBool(), true);
QCOMPARE(root->property("test3_4").toBool(), true);
QMetaObject::invokeMethod(root, "showLastRowChild");
QCOMPARE(root->property("test4_1").toBool(), true);
QCOMPARE(root->property("test4_2").toBool(), true);
QCOMPARE(root->property("test4_3").toBool(), true);
QCOMPARE(root->property("test4_4").toBool(), true);
QString warning1 = testFileUrl("visiblechildren.qml").toString() + ":87: TypeError: Cannot read property 'visibleChildren' of null";
QTest::ignoreMessage(QtWarningMsg, qPrintable(warning1));
QMetaObject::invokeMethod(root, "tryWriteToReadonlyVisibleChildren");
QMetaObject::invokeMethod(root, "reparentVisibleItem3");
QCOMPARE(root->property("test6_1").toBool(), true);
QCOMPARE(root->property("test6_2").toBool(), true);
QCOMPARE(root->property("test6_3").toBool(), true);
QCOMPARE(root->property("test6_4").toBool(), true);
QMetaObject::invokeMethod(root, "reparentImlicitlyInvisibleItem4_1");
QCOMPARE(root->property("test7_1").toBool(), true);
QCOMPARE(root->property("test7_2").toBool(), true);
QCOMPARE(root->property("test7_3").toBool(), true);
QCOMPARE(root->property("test7_4").toBool(), true);
// FINALLY TEST THAT EVERYTHING IS AS EXPECTED
QCOMPARE(root->property("test8_1").toBool(), true);
QCOMPARE(root->property("test8_2").toBool(), true);
QCOMPARE(root->property("test8_3").toBool(), true);
QCOMPARE(root->property("test8_4").toBool(), true);
QCOMPARE(root->property("test8_5").toBool(), true);
delete window;
}
void tst_QQuickItem::parentLoop()
{
QQuickView *window = new QQuickView(0);
#ifndef QT_NO_REGULAREXPRESSION
QRegularExpression msgRegexp = QRegularExpression("QQuickItem::setParentItem: Parent QQuickItem\\(.*\\) is already part of the subtree of QQuickItem\\(.*\\)");
QTest::ignoreMessage(QtWarningMsg, msgRegexp);
#endif
window->setSource(testFileUrl("parentLoop.qml"));
QQuickItem *root = qobject_cast<QQuickItem*>(window->rootObject());
QVERIFY(root);
QQuickItem *item1 = root->findChild<QQuickItem*>("item1");
QVERIFY(item1);
QCOMPARE(item1->parentItem(), root);
QQuickItem *item2 = root->findChild<QQuickItem*>("item2");
QVERIFY(item2);
QCOMPARE(item2->parentItem(), item1);
delete window;
}
void tst_QQuickItem::contains_data()
{
QTest::addColumn<bool>("circleTest");
QTest::addColumn<bool>("insideTarget");
QTest::addColumn<QList<QPoint> >("points");
QList<QPoint> points;
points << QPoint(176, 176)
<< QPoint(176, 226)
<< QPoint(226, 176)
<< QPoint(226, 226)
<< QPoint(150, 200)
<< QPoint(200, 150)
<< QPoint(200, 250)
<< QPoint(250, 200);
QTest::newRow("hollow square: testing points inside") << false << true << points;
points.clear();
points << QPoint(162, 162)
<< QPoint(162, 242)
<< QPoint(242, 162)
<< QPoint(242, 242)
<< QPoint(200, 200)
<< QPoint(175, 200)
<< QPoint(200, 175)
<< QPoint(200, 228)
<< QPoint(228, 200)
<< QPoint(200, 122)
<< QPoint(122, 200)
<< QPoint(200, 280)
<< QPoint(280, 200);
QTest::newRow("hollow square: testing points outside") << false << false << points;
points.clear();
points << QPoint(174, 174)
<< QPoint(174, 225)
<< QPoint(225, 174)
<< QPoint(225, 225)
<< QPoint(165, 200)
<< QPoint(200, 165)
<< QPoint(200, 235)
<< QPoint(235, 200);
QTest::newRow("hollow circle: testing points inside") << true << true << points;
points.clear();
points << QPoint(160, 160)
<< QPoint(160, 240)
<< QPoint(240, 160)
<< QPoint(240, 240)
<< QPoint(200, 200)
<< QPoint(185, 185)
<< QPoint(185, 216)
<< QPoint(216, 185)
<< QPoint(216, 216)
<< QPoint(145, 200)
<< QPoint(200, 145)
<< QPoint(255, 200)
<< QPoint(200, 255);
QTest::newRow("hollow circle: testing points outside") << true << false << points;
}
void tst_QQuickItem::contains()
{
QFETCH(bool, circleTest);
QFETCH(bool, insideTarget);
QFETCH(QList<QPoint>, points);
QQuickView *window = new QQuickView(0);
window->rootContext()->setContextProperty("circleShapeTest", circleTest);
window->setBaseSize(QSize(400, 400));
window->setSource(testFileUrl("hollowTestItem.qml"));
window->show();
window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QCOMPARE(QGuiApplication::focusWindow(), window);
QQuickItem *root = qobject_cast<QQuickItem *>(window->rootObject());
QVERIFY(root);
HollowTestItem *hollowItem = root->findChild<HollowTestItem *>("hollowItem");
QVERIFY(hollowItem);
foreach (const QPoint &point, points) {
// check mouse hover
QTest::mouseMove(window, point);
QTest::qWait(10);
QCOMPARE(hollowItem->isHovered(), insideTarget);
// check mouse press
QTest::mousePress(window, Qt::LeftButton, 0, point);
QTest::qWait(10);
QCOMPARE(hollowItem->isPressed(), insideTarget);
// check mouse release
QTest::mouseRelease(window, Qt::LeftButton, 0, point);
QTest::qWait(10);
QCOMPARE(hollowItem->isPressed(), false);
}
delete window;
}
void tst_QQuickItem::childAt()
{
QQuickItem parent;
QQuickItem child1;
child1.setX(0);
child1.setY(0);
child1.setWidth(100);
child1.setHeight(100);
child1.setParentItem(&parent);
QQuickItem child2;
child2.setX(50);
child2.setY(50);
child2.setWidth(100);
child2.setHeight(100);
child2.setParentItem(&parent);
QQuickItem child3;
child3.setX(0);
child3.setY(200);
child3.setWidth(50);
child3.setHeight(50);
child3.setParentItem(&parent);
QCOMPARE(parent.childAt(0, 0), &child1);
QCOMPARE(parent.childAt(0, 100), &child1);
QCOMPARE(parent.childAt(25, 25), &child1);
QCOMPARE(parent.childAt(25, 75), &child1);
QCOMPARE(parent.childAt(75, 25), &child1);
QCOMPARE(parent.childAt(75, 75), &child2);
QCOMPARE(parent.childAt(150, 150), &child2);
QCOMPARE(parent.childAt(25, 200), &child3);
QCOMPARE(parent.childAt(0, 150), static_cast<QQuickItem *>(0));
QCOMPARE(parent.childAt(300, 300), static_cast<QQuickItem *>(0));
}
void tst_QQuickItem::grab()
{
QQuickView view;
view.setSource(testFileUrl("grabToImage.qml"));
view.show();
QTest::qWaitForWindowExposed(&view);
QQuickItem *root = qobject_cast<QQuickItem *>(view.rootObject());
QVERIFY(root);
QQuickItem *item = root->findChild<QQuickItem *>("myItem");
QVERIFY(item);
{ // Default size (item is 100x100)
QSharedPointer<QQuickItemGrabResult> result = item->grabToImage();
QSignalSpy spy(result.data(), SIGNAL(ready()));
QTRY_VERIFY(spy.size() > 0);
QVERIFY(!result->url().isEmpty());
QImage image = result->image();
QCOMPARE(image.pixel(0, 0), qRgb(255, 0, 0));
QCOMPARE(image.pixel(99, 99), qRgb(0, 0, 255));
}
{ // Smaller size
QSharedPointer<QQuickItemGrabResult> result = item->grabToImage(QSize(50, 50));
QVERIFY(!result.isNull());
QSignalSpy spy(result.data(), SIGNAL(ready()));
QTRY_VERIFY(spy.size() > 0);
QVERIFY(!result->url().isEmpty());
QImage image = result->image();
QCOMPARE(image.pixel(0, 0), qRgb(255, 0, 0));
QCOMPARE(image.pixel(49, 49), qRgb(0, 0, 255));
}
}
QTEST_MAIN(tst_QQuickItem)
#include "tst_qquickitem.moc"
| 35.099608 | 165 | 0.677432 | [
"object",
"shape",
"transform"
] |
4bacfcaec2a87eb206137a5612e5eefa2bb8b880 | 3,337 | cpp | C++ | Nistal Engine/UIAbout.cpp | AlbertCayuela/NistalEngine | d5a082c49326dcd47557fdb856a5a86deac40616 | [
"MIT"
] | null | null | null | Nistal Engine/UIAbout.cpp | AlbertCayuela/NistalEngine | d5a082c49326dcd47557fdb856a5a86deac40616 | [
"MIT"
] | null | null | null | Nistal Engine/UIAbout.cpp | AlbertCayuela/NistalEngine | d5a082c49326dcd47557fdb856a5a86deac40616 | [
"MIT"
] | 1 | 2020-09-28T13:25:32.000Z | 2020-09-28T13:25:32.000Z | #include "Application.h"
#include "Globals.h"
#include "UIAbout.h"
#include "UIWindow.h"
using namespace ImGui;
UIAbout::UIAbout() : UIWindow()
{
is_on = false;
}
UIAbout::~UIAbout()
{}
bool UIAbout::Start()
{
bool ret = true;
return ret;
}
bool UIAbout::CleanUp()
{
return true;
}
void UIAbout::Draw()
{
Begin("About Nistal Engine", &is_on);
//TODO ADD LIBRARY VERSIONS
Separator();
TextWrapped("Nistal Engine");
Separator();
TextWrapped("3D Game Engine");
Separator();
TextWrapped("By Albert Cayuela and Nadine Gutierrez");
Separator();
if (CollapsingHeader("Libraries used:"))
{
Columns(2, NULL);
Text("Library");
SameLine();
NextColumn();
Text("Version");
NextColumn();
if (MenuItem("SDL"))
if (IsMouseClicked(0))
//App->RequestBrowser("https://www.libsdl.org/download-2.0.php");
SameLine();
NextColumn();
Text("2.0.4");
NextColumn();
if (MenuItem("OpenGL"))
if (IsMouseClicked(0))
//App->RequestBrowser("");
SameLine();
NextColumn();
Text("4.6");
NextColumn();
if (MenuItem("ImGui"))
if (IsMouseClicked(1))
//App->RequestBrowser("https://github.com/ocornut/imgui/releases/tag/v1.72");
SameLine();
NextColumn();
Text("1.72");
NextColumn();
if (MenuItem("Glew"))
if (IsMouseClicked(0))
//App->RequestBrowser("http://glew.sourceforge.net/");
SameLine();
NextColumn();
Text("2.1.0");
NextColumn();
if (MenuItem("MathGeoLib"))
if (IsMouseClicked(0))
//App->RequestBrowser("https://github.com/juj/MathGeoLib/releases/tag/v1.5");
SameLine();
NextColumn();
Text("1.5");
NextColumn();
if (MenuItem("DevIL"))
if (IsMouseClicked(1))
//App->RequestBrowser("https://github.com/ocornut/imgui/releases/tag/v1.72");
SameLine();
NextColumn();
Text("1.8.0");
NextColumn();
if (MenuItem("Assimp"))
if (IsMouseClicked(1))
//App->RequestBrowser("https://github.com/ocornut/imgui/releases/tag/v1.72");
SameLine();
NextColumn();
Text("");
NextColumn();;
Columns(1, NULL);
}
Separator();
TextWrapped("MIT License\nCopyright (c) 2020 Albert Cayuela and Nadine Gutierrez\n"
"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:");
NewLine();
TextWrapped("The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.");
NewLine();
TextWrapped("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.");
ImGui::End();
} | 24.718519 | 185 | 0.670962 | [
"3d"
] |
4bae0002fc40aed9146a247352397ff64db093d2 | 1,456 | cpp | C++ | 14/tests/iterator_cast.cpp | rapha-opensource/viper | 78f25771c7198ac66b846afde3f38c8b2c1c7cc9 | [
"MIT"
] | 2 | 2018-04-28T19:54:49.000Z | 2021-01-13T17:31:12.000Z | 17/tests/iterator_cast.cpp | rapha-opensource/viper | 78f25771c7198ac66b846afde3f38c8b2c1c7cc9 | [
"MIT"
] | null | null | null | 17/tests/iterator_cast.cpp | rapha-opensource/viper | 78f25771c7198ac66b846afde3f38c8b2c1c7cc9 | [
"MIT"
] | null | null | null | #include <array>
#include <iostream>
#include <vector>
#include "catch.hpp"
#include "../headers/iterator_cast.h"
SCENARIO( "iterator_cast wrapping an iterator object", "[iterator_cast], [object]" ) {
GIVEN( "A vector of integers [1,2,3,4]" ) {
std::vector<int> vi{1,2,3,4};
WHEN( "mapped into a string" ) {
const auto convert = [](const int& i) { return (std::string::value_type)(i+48); };
auto str = std::string(iterator_cast(vi.cbegin(), convert), iterator_cast(vi.cend(), convert));
THEN( "returns '1234' " ) {
REQUIRE( str == "1234" );
}
}
}
}
SCENARIO( "iterator_cast wrapping a pointer", "[iterator_cast], [pointer]" ) {
GIVEN( "An std::array of bools" ) {
std::array<bool, 10> ab{true, false, true, false, true, false, true, false, true, false};
WHEN( " making 2 iterators returning a char " ) {
const auto bool_to_char = [](const bool& b) { return (std::string::value_type)(b?'0':'1'); };
auto begin = iterator_cast(ab.cbegin(), bool_to_char);
auto end = iterator_cast(ab.cend(), bool_to_char);
std::string str(begin, end);
THEN( "the iterators work" ) {
REQUIRE( begin != end );
REQUIRE( (end - begin) == std::distance(ab.cbegin(), ab.cend()) );
REQUIRE( str == "0101010101" );
}
}
}
}
| 31.652174 | 107 | 0.543956 | [
"object",
"vector"
] |
4bb3b079b1f2445dc48235c114d0459a7e92e7f8 | 4,493 | cpp | C++ | src/plugins/gmp/Rational.cpp | ngoyal/flusspferd | 93ca7ec99d751bc4e240fbd7cbcf235f8fa49e3e | [
"MIT"
] | 1 | 2016-09-20T19:26:56.000Z | 2016-09-20T19:26:56.000Z | src/plugins/gmp/Rational.cpp | ngoyal/flusspferd | 93ca7ec99d751bc4e240fbd7cbcf235f8fa49e3e | [
"MIT"
] | null | null | null | src/plugins/gmp/Rational.cpp | ngoyal/flusspferd | 93ca7ec99d751bc4e240fbd7cbcf235f8fa49e3e | [
"MIT"
] | null | null | null | #include "Rational.hpp"
#include "Float.hpp"
#include "Integer.hpp"
using namespace flusspferd;
namespace multi_precision {
Rational::Rational(flusspferd::object const &self, mpq_class const &mp)
: base_type(self), mp(mp)
{ }
Rational::Rational(flusspferd::object const &self, flusspferd::call_context &x)
: base_type(self)
{
if(x.arg.size() == 1) {
flusspferd::value v = x.arg.front();
if(v.is_double())
mp = v.get_double();
else if(v.is_int())
mp = v.get_int();
else if(v.is_string())
mp = v.to_std_string();
else if(flusspferd::is_native<Integer>(v.get_object()))
mp = flusspferd::get_native<Integer>(v.get_object()).mp;
else if(flusspferd::is_native<Rational>(v.get_object()))
mp = flusspferd::get_native<Rational>(v.get_object()).mp;
else if(flusspferd::is_native<Float>(v.get_object()))
mp = flusspferd::get_native<Float>(v.get_object()).mp;
else
throw flusspferd::exception("Wrong parameter type");
}
else if(x.arg.size() == 2) {
flusspferd::value v = x.arg.front();
flusspferd::value u = x.arg.back();
if(v.is_int() && u.is_int())
mp = mpq_class(v.get_int(), u.get_int());
else if(v.is_string() && u.is_int())
mp.set_str(v.to_std_string(), u.get_int());
else
throw flusspferd::exception("Wrong arguments! (string, int) expected.");
}
else
throw flusspferd::exception("Wrong number of arguments");
}
double Rational::get_double() /*const*/ {
return mp.get_d();
}
std::string Rational::get_string() /*const*/ {
return mp.get_str();
}
std::string Rational::get_string_base(int base) /*const*/ {
return mp.get_str(base);
}
int Rational::sgn() /*const*/ {
return ::sgn(mp);
}
Rational &Rational::abs() /*const*/ {
return Rational::create_rational(::abs(mp));
}
void Rational::canonicalize() {
mp.canonicalize();
}
Integer &Rational::get_num() /*const*/ {
return Integer::create_integer(mp.get_num());
}
Integer &Rational::get_den() /*const*/ {
return Integer::create_integer(mp.get_den());
}
void Rational::cmp(flusspferd::call_context &x) /*const*/ {
if(x.arg.empty() || x.arg.size() > 1)
throw flusspferd::exception("Expected one parameter");
flusspferd::value v = x.arg.front();
if(v.is_int())
x.result = ::cmp(mp, v.get_int());
else if(v.is_double())
x.result = ::cmp(mp, v.get_double());
else if(flusspferd::is_native<Integer>(v.get_object()))
x.result = ::cmp(mp, flusspferd::get_native<Integer>(v.get_object()).mp);
else if(flusspferd::is_native<Float>(v.get_object()))
x.result = ::cmp(mp, flusspferd::get_native<Float>(v.get_object()).mp);
else if(flusspferd::is_native<Rational>(v.get_object()))
x.result = ::cmp(mp, flusspferd::get_native<Rational>(v.get_object()).mp);
else
throw flusspferd::exception("Wrong parameter type");
}
#define OPERATOR(name, op) \
void Rational:: name (flusspferd::call_context &x) /*const*/ { \
if(x.arg.empty() || x.arg.size() > 1) \
throw flusspferd::exception("Expected on parameter"); \
flusspferd::value v = x.arg.front(); \
if(v.is_int()) \
x.result = create_rational(mp op v.get_int()); \
else if(v.is_double()) \
x.result = create_rational(mp op v.get_double()); \
else if(flusspferd::is_native<Integer>(v.get_object())) \
x.result = create_rational(mp op flusspferd::get_native<Integer>(v.get_object()).mp); \
else if(flusspferd::is_native<Rational>(v.get_object())) \
x.result = create_rational(mp op flusspferd::get_native<Rational>(v.get_object()).mp); \
else if(flusspferd::is_native<Float>(v.get_object())) \
x.result = create_rational(mp op flusspferd::get_native<Float>(v.get_object()).mp); \
else \
throw flusspferd::exception("Wrong parameter type"); \
} \
/**/
OPERATOR(add, +)
OPERATOR(sub, -)
OPERATOR(mul, *)
OPERATOR(div, /)
#undef OPERATOR
}
| 36.827869 | 94 | 0.565992 | [
"object"
] |
4bbcce947ea82e3083c721b5075aaf88ffe3af9f | 1,165 | cpp | C++ | test/Algorithm/Search/BinarySearchTest.cpp | jljacoblo/jalgorithmCPP | b64307bfd029e3e276d8f9a91381aef812075e6f | [
"MIT"
] | null | null | null | test/Algorithm/Search/BinarySearchTest.cpp | jljacoblo/jalgorithmCPP | b64307bfd029e3e276d8f9a91381aef812075e6f | [
"MIT"
] | null | null | null | test/Algorithm/Search/BinarySearchTest.cpp | jljacoblo/jalgorithmCPP | b64307bfd029e3e276d8f9a91381aef812075e6f | [
"MIT"
] | null | null | null | //
// Created by Jacob Lo on 10/2/18.
//
#include <vector>
#include <iostream>
#include "catch.hpp"
#include "Search/BinarySearch.h"
using namespace std;
using namespace BinarySearch;
TEST_CASE( "Test Binary Search iterate", "[TestBSIterate]" ) {
vector<int> a { 0,2,3,5,6,9,10,11,14,15 };
int* arr = a.data();
REQUIRE( true == numExists( arr, a.size() ,0 ) );
REQUIRE( false == numExists( arr, a.size() ,1 ) );
REQUIRE( true == numExists( arr, a.size() ,2 ) );
REQUIRE( true == numExists( arr, a.size() ,3 ) );
REQUIRE( false == numExists( arr, a.size() ,4 ) );
REQUIRE( true == numExists( arr, a.size() ,5 ) );
REQUIRE( true == numExists( arr, a.size() ,6 ) );
REQUIRE( false == numExists( arr, a.size() ,7 ) );
REQUIRE( false == numExists( arr, a.size() ,8 ) );
REQUIRE( true == numExists( arr, a.size() ,9 ) );
REQUIRE( true == numExists( arr, a.size() ,10 ) );
REQUIRE( true == numExists( arr, a.size() ,11 ) );
REQUIRE( false == numExists( arr, a.size() ,12 ) );
REQUIRE( false == numExists( arr, a.size() ,13 ) );
REQUIRE( true == numExists( arr, a.size() ,14 ) );
REQUIRE( true == numExists( arr, a.size() ,15 ) );
} | 34.264706 | 62 | 0.593133 | [
"vector"
] |
4bc9a605298b21c8e4ea4ef04a864691e0dbe1f8 | 14,619 | cpp | C++ | hphp/runtime/base/empty-array.cpp | Gpapas/hhvm | 6173469fbd8377c6e0e846cdaa673ed79fb3a7d7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/base/empty-array.cpp | Gpapas/hhvm | 6173469fbd8377c6e0e846cdaa673ed79fb3a7d7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/base/empty-array.cpp | Gpapas/hhvm | 6173469fbd8377c6e0e846cdaa673ed79fb3a7d7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
*/
#include "hphp/runtime/base/empty-array.h"
#include <utility>
#include <type_traits>
#include "hphp/util/assertions.h"
#include "hphp/runtime/base/array-init.h"
#include "hphp/runtime/base/tv-helpers.h"
#include "hphp/runtime/base/array-data.h"
#include "hphp/runtime/base/type-variant.h"
#include "hphp/runtime/base/hphp-array.h"
#include "hphp/runtime/base/hphp-array-defs.h"
#include "hphp/runtime/base/packed-array-defs.h"
namespace HPHP {
//////////////////////////////////////////////////////////////////////
std::aligned_storage<
sizeof(ArrayData),
alignof(ArrayData)
>::type s_theEmptyArray;
struct EmptyArray::Initializer {
Initializer() {
void* vpEmpty = &s_theEmptyArray;
auto const ad = static_cast<ArrayData*>(vpEmpty);
ad->m_kind = ArrayData::kEmptyKind;
ad->m_size = 0;
ad->m_pos = ArrayData::invalid_index;
ad->m_count = 0;
ad->setStatic();
}
};
EmptyArray::Initializer EmptyArray::s_initializer;
//////////////////////////////////////////////////////////////////////
void EmptyArray::Release(ArrayData*) {
always_assert(!"never try to free the empty array");
}
/*
* Used for NvGetInt, NvGetStr. (We never contain the string or int.)
*
* Used for GetAPCHandle (we don't have one).
*/
void* EmptyArray::ReturnNull(...) {
return nullptr;
}
/*
* Used for ExistsInt, ExistsStr. (We never contain the int or string.)
*/
bool EmptyArray::ReturnFalse(...) {
return false;
}
/*
* Used for IsVectorData (we're always trivially a vector).
*
* Used for Uksort, Usort, Uasort. These functions return false only
* if the user compare function modified they array, which it can't
* here because we don't call it.
*/
bool EmptyArray::ReturnTrue(...) {
return true;
}
void EmptyArray::NvGetKey(const ArrayData*, TypedValue* out, ssize_t pos) {
// We have no valid positions---no one should call this function.
not_reached();
}
const Variant& EmptyArray::GetValueRef(const ArrayData* ad, ssize_t pos) {
// We have no valid positions---no one should call this function.
not_reached();
}
/*
* Used for RemoveInt, RemoveStr. We don't every have the int or str,
* so even if copy is true we can just return the same array.
*
* Used for EscalateForSort---we are already sorted by any imaginable
* method of sorting, so the sort functions are no-ops, so we don't
* need to copy.
*/
ArrayData* EmptyArray::ReturnFirstArg(ArrayData* a, ...) {
return a;
}
/*
* Used for IterBegin and IterEnd. We always return the invalid_index.
*/
ssize_t EmptyArray::ReturnInvalidIndex(const ArrayData*) {
return ArrayData::invalid_index;
}
// Iterators can't be advanced or rewinded, because we have no valid
// iterators.
ssize_t EmptyArray::IterAdvance(const ArrayData*, ssize_t prev) {
not_reached();
}
ssize_t EmptyArray::IterRewind(const ArrayData*, ssize_t prev) {
not_reached();
}
// Strong iterating the empty array doesn't give back any elements.
bool EmptyArray::ValidMArrayIter(const ArrayData*, const MArrayIter& fp) {
return false;
}
bool EmptyArray::AdvanceMArrayIter(ArrayData*, MArrayIter& fp) {
not_reached();
}
/*
* Don't do anything.
*
* Used for Ksort, Sort, and Asort. The empty array is already
* sorted, and these functions have no other side-effects.
*
* Used for Renumber---we're trivially numbered properly.
*/
void EmptyArray::NoOp(...) {}
// We're always already a static array.
void EmptyArray::OnSetEvalScalar(ArrayData*) { not_reached(); }
ArrayData* EmptyArray::NonSmartCopy(const ArrayData* ad) { not_reached(); }
//////////////////////////////////////////////////////////////////////
NEVER_INLINE
ArrayData* EmptyArray::Copy(const ArrayData*) {
auto const cap = kPackedSmallSize;
auto const ad = static_cast<ArrayData*>(
MM().objMallocLogged(sizeof(ArrayData) + sizeof(TypedValue) * cap)
);
ad->m_kindAndSize = cap;
ad->m_posAndCount = static_cast<uint32_t>(ArrayData::invalid_index);
assert(ad->m_kind == ArrayData::kPackedKind);
assert(ad->m_size == 0);
assert(ad->m_packedCap == cap);
assert(ad->m_pos == ArrayData::invalid_index);
assert(ad->m_count == 0);
assert(PackedArray::checkInvariants(ad));
return ad;
}
ArrayData* EmptyArray::CopyWithStrongIterators(const ArrayData* ad) {
// We can never have strong iterators, so we don't need to do
// anything extra.
return Copy(ad);
}
//////////////////////////////////////////////////////////////////////
/*
* Note: if you try to tail-call these helper routines, gcc will
* unfortunately still generate functions with frames and and makes a
* call instead of a jump. It's because of std::pair (and is still
* the case if you return a custom struct).
*
* For now we're leaving this, because it's essentially free for these
* routines to leave the lval pointer in the second return register,
* and it seems questionable to clone the whole function just to avoid
* the frame creation in these callers. (It works to reinterpret_cast
* these functions to one that returns ArrayData* instead of a pair in
* the cases we don't need the second value, but this seems a tad too
* sketchy for probably-unmeasurable benefits. I'll admit I didn't
* try to measure it though... ;)
*/
/*
* Helper for empty array -> packed transitions. Creates an array
* with one element. The element is transfered into the array (should
* already be incref'd).
*/
ALWAYS_INLINE
std::pair<ArrayData*,TypedValue*> EmptyArray::MakePackedInl(TypedValue tv) {
auto const cap = kPackedSmallSize;
auto const ad = static_cast<ArrayData*>(
MM().objMallocLogged(sizeof(ArrayData) + cap * sizeof(TypedValue))
);
ad->m_kindAndSize = uint64_t{1} << 32 | cap; // also set kind
ad->m_posAndCount = 0;
auto& lval = *reinterpret_cast<TypedValue*>(ad + 1);
lval.m_data = tv.m_data;
lval.m_type = tv.m_type;
assert(ad->m_kind == ArrayData::kPackedKind);
assert(ad->m_size == 1);
assert(ad->m_pos == 0);
assert(ad->m_count == 0);
assert(ad->m_packedCap == cap);
assert(PackedArray::checkInvariants(ad));
return { ad, &lval };
}
NEVER_INLINE
std::pair<ArrayData*,TypedValue*> EmptyArray::MakePacked(TypedValue tv) {
return MakePackedInl(tv);
}
/*
* Helper for creating a single-element mixed array with a string key.
*
* Note: the key is not already incref'd, but the value must be.
*/
NEVER_INLINE
std::pair<ArrayData*,TypedValue*>
EmptyArray::MakeMixed(StringData* key, TypedValue val) {
auto const mask = HphpArray::SmallMask; // 3
auto const cap = HphpArray::computeMaxElms(mask); // 3
auto const ad = smartAllocArray(cap, mask);
ad->m_kindAndSize = uint64_t{1} << 32 | ArrayData::kMixedKind << 24;
ad->m_posAndCount = 0;
ad->m_capAndUsed = uint64_t{1} << 32 | cap;
ad->m_tableMask = mask;
ad->m_nextKI = 0;
ad->m_hLoad = 1;
auto const data = reinterpret_cast<HphpArray::Elm*>(ad + 1);
auto const hash = reinterpret_cast<int32_t*>(data + cap);
assert(mask + 1 == 4);
auto const emptyVal = int64_t{HphpArray::Empty};
reinterpret_cast<int64_t*>(hash)[0] = emptyVal;
reinterpret_cast<int64_t*>(hash)[1] = emptyVal;
auto const khash = key->hash();
hash[khash & mask] = 0;
data[0].setStrKey(key, khash);
auto& lval = data[0].data;
lval.m_data = val.m_data;
lval.m_type = val.m_type;
assert(ad->m_kind == ArrayData::kMixedKind);
assert(ad->m_size == 1);
assert(ad->m_pos == 0);
assert(ad->m_count == 0);
assert(ad->m_cap == cap);
assert(ad->m_used == 1);
assert(ad->checkInvariants());
return { ad, &lval };
}
/*
* Creating a single-element mixed array with a integer key. The
* value is already incref'd.
*/
std::pair<ArrayData*,TypedValue*>
EmptyArray::MakeMixed(int64_t key, TypedValue val) {
auto const mask = HphpArray::SmallMask; // 3
auto const cap = HphpArray::computeMaxElms(mask); // 3
auto const ad = smartAllocArray(cap, mask);
ad->m_kindAndSize = uint64_t{1} << 32 | ArrayData::kMixedKind << 24;
ad->m_posAndCount = 0;
ad->m_capAndUsed = uint64_t{1} << 32 | cap;
ad->m_tableMask = mask;
ad->m_nextKI = key + 1;
ad->m_hLoad = 1;
auto const data = reinterpret_cast<HphpArray::Elm*>(ad + 1);
auto const hash = reinterpret_cast<int32_t*>(data + cap);
assert(mask + 1 == 4);
auto const emptyVal = int64_t{HphpArray::Empty};
reinterpret_cast<int64_t*>(hash)[0] = emptyVal;
reinterpret_cast<int64_t*>(hash)[1] = emptyVal;
hash[key & mask] = 0;
data[0].setIntKey(key);
auto& lval = data[0].data;
lval.m_data = val.m_data;
lval.m_type = val.m_type;
assert(ad->m_kind == ArrayData::kMixedKind);
assert(ad->m_size == 1);
assert(ad->m_pos == 0);
assert(ad->m_count == 0);
assert(ad->m_cap == cap);
assert(ad->m_used == 1);
assert(ad->checkInvariants());
return { ad, &lval };
}
//////////////////////////////////////////////////////////////////////
ArrayData* EmptyArray::SetInt(ArrayData*, int64_t k, const Variant& v, bool) {
auto c = *v.asCell();
// TODO(#3888164): we should make it so we don't need KindOfUninit checks
if (c.m_type == KindOfUninit) c.m_type = KindOfNull;
tvRefcountedIncRef(&c);
auto const ret = k == 0 ? EmptyArray::MakePacked(c)
: EmptyArray::MakeMixed(k, c);
return ret.first;
}
ArrayData* EmptyArray::SetStr(ArrayData*,
StringData* k,
const Variant& v,
bool copy) {
auto val = *v.asCell();
tvRefcountedIncRef(&val);
// TODO(#3888164): we should make it so we don't need KindOfUninit checks
if (val.m_type == KindOfUninit) val.m_type = KindOfNull;
return EmptyArray::MakeMixed(k, val).first;
}
ArrayData* EmptyArray::LvalInt(ArrayData*, int64_t k, Variant*& retVar, bool) {
auto const ret = k == 0 ? EmptyArray::MakePacked(make_tv<KindOfNull>())
: EmptyArray::MakeMixed(k, make_tv<KindOfNull>());
retVar = &tvAsVariant(ret.second);
return ret.first;
}
ArrayData* EmptyArray::LvalStr(ArrayData*,
StringData* k,
Variant*& retVar,
bool) {
auto const ret = EmptyArray::MakeMixed(k, make_tv<KindOfNull>());
retVar = &tvAsVariant(ret.second);
return ret.first;
}
ArrayData* EmptyArray::LvalNew(ArrayData*, Variant*& retVar, bool) {
auto const ret = EmptyArray::MakePacked(make_tv<KindOfNull>());
retVar = &tvAsVariant(ret.second);
return ret.first;
}
ArrayData* EmptyArray::SetRefInt(ArrayData*,
int64_t k,
const Variant& var,
bool) {
auto ref = *var.asRef();
tvIncRef(&ref);
auto const ret = k == 0 ? EmptyArray::MakePacked(ref)
: EmptyArray::MakeMixed(k, ref);
return ret.first;
}
ArrayData* EmptyArray::SetRefStr(ArrayData*,
StringData* k,
const Variant& var,
bool) {
auto ref = *var.asRef();
tvIncRef(&ref);
return EmptyArray::MakeMixed(k, ref).first;
}
ArrayData* EmptyArray::Append(ArrayData*, const Variant& vin, bool copy) {
auto cell = *vin.asCell();
tvRefcountedIncRef(&cell);
// TODO(#3888164): we should make it so we don't need KindOfUninit checks
if (cell.m_type == KindOfUninit) cell.m_type = KindOfNull;
return EmptyArray::MakePackedInl(cell).first;
}
ArrayData* EmptyArray::AppendRef(ArrayData*, const Variant& v, bool copy) {
auto ref = *v.asRef();
tvIncRef(&ref);
return EmptyArray::MakePacked(ref).first;
}
ArrayData* EmptyArray::AppendWithRef(ArrayData*, const Variant& v, bool copy) {
auto tv = make_tv<KindOfNull>();
tvAsVariant(&tv).setWithRef(v);
return EmptyArray::MakePacked(tv).first;
}
//////////////////////////////////////////////////////////////////////
ArrayData* EmptyArray::PlusEq(ArrayData*, const ArrayData* elems) {
elems->incRefCount();
return const_cast<ArrayData*>(elems);
}
ArrayData* EmptyArray::Merge(ArrayData*, const ArrayData* elems) {
// TODO(#4049965): can this just copy elems and then renumber?
auto const ret = HphpArray::MakeReserveMixed(HphpArray::SmallSize);
auto const tmp = HphpArray::Merge(ret, elems);
ret->release();
return tmp;
}
ArrayData* EmptyArray::PopOrDequeue(ArrayData* ad, Variant& value) {
value = uninit_null();
return ad;
}
ArrayData* EmptyArray::Prepend(ArrayData*, const Variant& vin, bool) {
auto cell = *vin.asCell();
tvRefcountedIncRef(&cell);
// TODO(#3888164): we should make it so we don't need KindOfUninit checks
if (cell.m_type == KindOfUninit) cell.m_type = KindOfNull;
return EmptyArray::MakePacked(cell).first;
}
//////////////////////////////////////////////////////////////////////
ArrayData* EmptyArray::ZSetInt(ArrayData* ad, int64_t k, RefData* v) {
auto const arr = HphpArray::MakeReserveMixed(HphpArray::SmallSize);
arr->m_count = 0;
DEBUG_ONLY auto const tmp = arr->zSet(k, v);
assert(tmp == arr);
return arr;
}
ArrayData* EmptyArray::ZSetStr(ArrayData* ad, StringData* k, RefData* v) {
auto const arr = HphpArray::MakeReserveMixed(HphpArray::SmallSize);
arr->m_count = 0;
DEBUG_ONLY auto const tmp = arr->zSet(k, v);
assert(tmp == arr);
return arr;
}
ArrayData* EmptyArray::ZAppend(ArrayData* ad, RefData* v) {
auto const arr = HphpArray::MakeReserveMixed(HphpArray::SmallSize);
arr->m_count = 0;
DEBUG_ONLY auto const tmp = arr->zAppend(v);
assert(tmp == arr);
return arr;
}
//////////////////////////////////////////////////////////////////////
}
| 32.414634 | 79 | 0.625966 | [
"vector"
] |
4bcb2bfebe1661555dcd7ca9044233eb7ba256c0 | 22,182 | cpp | C++ | plugins/core/qPhotoscanIO/src/PhotoScanFilter.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | null | null | null | plugins/core/qPhotoscanIO/src/PhotoScanFilter.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | null | null | null | plugins/core/qPhotoscanIO/src/PhotoScanFilter.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | 1 | 2019-02-03T12:19:42.000Z | 2019-02-03T12:19:42.000Z | //##########################################################################
//# #
//# CLOUDCOMPARE PLUGIN: qPhotoScanIO #
//# #
//# 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; version 2 or later of the License. #
//# #
//# 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. #
//# #
//# COPYRIGHT: Daniel Girardeau-Montaut #
//# #
//##########################################################################
#include "PhotoScanFilter.h"
//Qt
#include <QTextStream>
#include <QXmlStreamReader>
#include <QStringRef>
#include <QFileInfo>
#include <QDir>
//qCC_db
#include <ccPointCloud.h>
#include <ccMesh.h>
#include <ccHObject.h>
#include <ccCameraSensor.h>
#include <ccImage.h>
#include <ccLog.h>
#include <ccProgressDialog.h>
//qCC_io
#include <PlyFilter.h>
//quazip
#include <quazip.h>
#include <quazipfile.h>
//System
#include <string.h>
#include <assert.h>
struct CameraDesc
{
CameraDesc()
: id(-1)
, sensorId(-1)
{}
ccGLMatrix trans;
QString imageFilename;
int id, sensorId;
};
struct CloudDesc
{
QString filename;
QString type;
};
struct MeshDesc
{
QString filename;
QString texture;
};
bool PhotoScanFilter::canLoadExtension(const QString& upperCaseExt) const
{
return (upperCaseExt == "PSZ");
}
enum Sections { DOCUMENT, CHUNKS, CHUNK, SENSORS, CAMERAS, FRAMES, FRAME, TRANSFORM };
QString ToName(Sections section)
{
switch (section)
{
case DOCUMENT:
return "DOCUMENT";
case CHUNKS:
return "CHUNKS";
case CHUNK:
return "CHUNK";
case SENSORS:
return "SENSORS";
case CAMERAS:
return "CAMERAS";
case FRAMES:
return "FRAMES";
case FRAME:
return "FRAME";
case TRANSFORM:
return "TRANSFORM";
default:
assert(false);
}
return QString();
}
template<typename T> bool DecodeRotation(const QString& rotationValues, ccGLMatrixTpl<T>& output)
{
QStringList tokens = rotationValues.split(" ", QString::SkipEmptyParts);
if (tokens.size() != 9)
{
return false;
}
T* m = output.data();
for (int i = 0; i < 9; ++i)
{
int col = (i / 3);
int row = (i % 3);
bool ok = true;
m[col * 4 + row] = static_cast<T>(tokens[i].toDouble(&ok));
if (!ok)
{
//invalid input string
return false;
}
}
output.transpose();
return true;
}
template<typename T> bool DecodeTransformation(const QString& transformationValues, ccGLMatrixTpl<T>& output)
{
QStringList tokens = transformationValues.split(" ", QString::SkipEmptyParts);
if (tokens.size() != 16)
{
return false;
}
T* m = output.data();
for (int i = 0; i < 16; ++i)
{
bool ok = true;
m[i] = static_cast<T>(tokens[i].toDouble(&ok));
if (!ok)
{
//invalid input string
return false;
}
}
output.transpose();
return true;
}
static void DisplayCurrentNodeInfo(QXmlStreamReader& stream)
{
ccLog::Warning("--> " + stream.name().toString() + (stream.isStartElement() ? " [start]" : "") + (stream.isEndElement() ? " [end]" : ""));
for (int i = 0; i < stream.attributes().size(); ++i)
{
ccLog::Warning(QString("\t") + stream.attributes().at(i).qualifiedName().toString());
}
}
static ccCameraSensor* DecodeSensor(QXmlStreamReader& stream, int& sensorId)
{
assert(stream.name() == "sensor");
sensorId = -1;
QXmlStreamAttributes sensorAttributes = stream.attributes();
if (!sensorAttributes.hasAttribute("type") || sensorAttributes.value("type") != "frame")
{
//unhandled sensor type
return 0;
}
if (!sensorAttributes.hasAttribute("id"))
{
//invalid sensor?!
assert(false);
return 0;
}
sensorId = sensorAttributes.value("id").toInt();
ccCameraSensor* sensor = 0;
ccCameraSensor::IntrinsicParameters params;
bool hasPixelSize = false;
while (stream.readNextStartElement())
{
#ifdef _DEBUG
DisplayCurrentNodeInfo(stream);
#endif
if (stream.name() == "property")
{
if (stream.attributes().value("name") == "pixel_width")
{
params.pixelSize_mm[0] = stream.attributes().value("value").toDouble();
//hasPixelSize = true;
}
else if (stream.attributes().value("name") == "pixel_height")
{
params.pixelSize_mm[1] = stream.attributes().value("value").toDouble();
hasPixelSize = true;
}
stream.skipCurrentElement();
}
else if (stream.name() == "calibration" && stream.attributes().value("type") == "frame")
{
ccCameraSensor::ExtendedRadialDistortionParameters distParams;
bool hasDistortion = false;
bool hasResolution = false;
bool hasVertFocal = false;
bool hasCentralPoint = false;
while (stream.readNextStartElement())
{
#ifdef _DEBUG
//DisplayCurrentNodeInfo(stream);
#endif
if (stream.name() == "resolution")
{
int width = stream.attributes().value("width").toInt();
int height = stream.attributes().value("height").toInt();
if (width > 0 && height > 0)
{
params.arrayWidth = width;
params.arrayHeight = height;
hasResolution = true;
}
stream.skipCurrentElement();
}
else if (stream.name() == "fx")
{
double horizFocal_pix = stream.readElementText().toDouble();
//++paramsCount;
}
else if (stream.name() == "fy")
{
params.vertFocal_pix = stream.readElementText().toDouble();
hasVertFocal = true;
}
else if (stream.name() == "cx")
{
params.principal_point[0] = stream.readElementText().toDouble();
hasCentralPoint = true;
}
else if (stream.name() == "cy")
{
params.principal_point[1] = stream.readElementText().toDouble();
hasCentralPoint = true;
}
else if (stream.name() == "k1")
{
distParams.k1 = stream.readElementText().toDouble();
hasDistortion = true;
}
else if (stream.name() == "k2")
{
distParams.k2 = stream.readElementText().toDouble();
hasDistortion = true;
}
else if (stream.name() == "k3")
{
distParams.k3 = stream.readElementText().toDouble();
hasDistortion = true;
}
else
{
stream.skipCurrentElement();
}
}
if (hasResolution && hasVertFocal)
{
if (!hasCentralPoint)
{
//we define an arbitrary principal point
params.principal_point[0] = params.arrayWidth / 2.0f;
params.principal_point[1] = params.arrayHeight / 2.0f;
}
if (!hasPixelSize)
{
//we use an arbitrary 'pixel size'
params.pixelSize_mm[0] = params.pixelSize_mm[1] = 1.0f / std::max(params.arrayWidth, params.arrayHeight);
}
params.vFOV_rad = ccCameraSensor::ComputeFovRadFromFocalPix(params.vertFocal_pix, params.arrayHeight);
sensor = new ccCameraSensor(params);
if (sensorAttributes.hasAttribute("label"))
{
sensor->setName(sensorAttributes.value("label").toString());
}
if (hasDistortion)
{
sensor->setDistortionParameters(ccCameraSensor::LensDistortionParameters::Shared(new ccCameraSensor::ExtendedRadialDistortionParameters(distParams)));
}
}
} //"calibration"
else
{
stream.skipCurrentElement();
}
}
return sensor;
}
static bool DecodeCamera(QXmlStreamReader& stream, CameraDesc& camera)
{
assert(stream.name() == "camera");
QXmlStreamAttributes cameraAttributes = stream.attributes();
if ( !cameraAttributes.hasAttribute("id")
|| !cameraAttributes.hasAttribute("sensor_id")
|| !cameraAttributes.hasAttribute("label"))
{
//invalid camera?!
assert(false);
return false;
}
camera.id = cameraAttributes.value("id").toInt();
camera.sensorId = cameraAttributes.value("sensor_id").toInt();
camera.imageFilename = cameraAttributes.value("label").toString();
while (stream.readNextStartElement())
{
#ifdef _DEBUG
//DisplayCurrentNodeInfo(stream);
#endif
if (stream.name() == "transform")
{
QString transformationValues = stream.readElementText();
DecodeTransformation<float>(transformationValues, camera.trans);
}
else if (stream.name() == "reference")
{
QXmlStreamAttributes attributes = stream.attributes();
if (attributes.value("enabled").toString() == "true")
{
CCVector3d T = { attributes.value("x").toDouble(),
attributes.value("y").toDouble(),
attributes.value("z").toDouble() };
//What is exactly the "reference" point?!
//camera.trans.setTranslation(CCVector3::fromArray(T.u));
}
stream.skipCurrentElement();
}
else //orientation? Not sure what it corresponds to!
{
stream.skipCurrentElement();
}
}
return true;
}
static QString CreateTempFile(QuaZip& zip, QString zipFilename)
{
if (!zip.setCurrentFile(zipFilename))
{
ccLog::Warning(QString("[Photoscan] Failed to locate '%1' in the Photoscan archive").arg(zipFilename));
return QString();
}
//decompress the file
QuaZipFile zipFile(&zip);
if (!zipFile.open(QFile::ReadOnly))
{
ccLog::Warning(QString("[Photoscan] Failed to extract '%1' from Photoscan archive").arg(zipFilename));
return QString();
}
QDir tempDir = QDir::temp();
QString tempFilename = tempDir.absoluteFilePath(zipFilename);
QFile tempFile(tempFilename);
if (!tempFile.open(QFile::WriteOnly))
{
ccLog::Warning(QString("[Photoscan] Failed to create temp file '%1'").arg(tempFilename));
return QString();
}
tempFile.write(zipFile.readAll());
tempFile.close();
return tempFilename;
}
CC_FILE_ERROR PhotoScanFilter::loadFile(const QString& filename,
ccHObject& container,
LoadParameters& parameters)
{
QuaZip zip(filename);
if (!zip.open(QuaZip::mdUnzip))
{
//failed to open or read the zip file
return CC_FERR_READING;
}
QStringList fileList = zip.getFileNameList();
if (fileList.isEmpty())
{
//empty archive?
return CC_FERR_NO_LOAD;
}
static const QString s_defaultXMLFilename("doc.xml");
if (!fileList.contains(s_defaultXMLFilename))
{
//empty archive?
ccLog::Warning(QString("[Photoscan] Couldn't find '%1' in Photoscan archive").arg(s_defaultXMLFilename));
return CC_FERR_NO_LOAD;
}
//look for the XML file
if (!zip.setCurrentFile(s_defaultXMLFilename))
{
ccLog::Warning(QString("[Photoscan] Failed to locate '%1' in the Photoscan archive").arg(s_defaultXMLFilename));
return CC_FERR_MALFORMED_FILE;
}
//decompress the XML file
QuaZipFile zipXML(&zip);
if (!zipXML.open(QFile::ReadOnly))
{
ccLog::Warning(QString("[Photoscan] Failed to extract '%1' from Photoscan archive").arg(s_defaultXMLFilename));
return CC_FERR_NO_LOAD;
}
QXmlStreamReader stream(&zipXML);
//expected: "document"
if (!stream.readNextStartElement() || stream.name() != "document")
{
return CC_FERR_MALFORMED_FILE;
}
std::vector<Sections> sections;
sections.push_back(DOCUMENT);
QMap<int, ccCameraSensor*> sensors;
QMap<int, CameraDesc> cameras;
QList<CloudDesc> clouds;
QList<MeshDesc> meshes;
ccGLMatrixd globalTransform;
bool hasGlobalTransform = false;
while (true)
{
if (!stream.readNextStartElement())
{
//end of section?
if (!sections.empty())
{
ccLog::PrintDebug(" < " + stream.name().toString() + QString(" [%1]").arg(ToName(sections.back())));
sections.pop_back();
//stream.skipCurrentElement();
continue;
}
else
{
//end of file
break;
}
}
ccLog::PrintDebug(" > " + stream.name().toString());
switch (sections.back())
{
case DOCUMENT:
if (stream.name() == "chunks")
{
sections.push_back(CHUNKS);
}
else
{
//not handled
stream.skipCurrentElement();
}
break;
case CHUNKS:
if (stream.name() == "chunk")
{
sections.push_back(CHUNK);
}
else
{
//not handled
stream.skipCurrentElement();
}
break;
case CHUNK:
if (stream.name() == "sensors")
{
sections.push_back(SENSORS);
}
else if (stream.name() == "cameras")
{
sections.push_back(CAMERAS);
}
else if (stream.name() == "frames")
{
sections.push_back(FRAMES);
}
else if (stream.name() == "transform")
{
//inner loop
while (stream.readNextStartElement())
{
if (stream.name() == "rotation")
{
QString rotationValues = stream.readElementText();
if (DecodeRotation<double>(rotationValues, globalTransform))
{
hasGlobalTransform = true;
}
else
{
assert(false);
}
}
stream.skipCurrentElement();
}
}
else //frames, reference, region, settings, meta, etc.
{
//not handled for now
stream.skipCurrentElement();
}
break;
case SENSORS:
if (stream.name() == "sensor")
{
int sensorId = -1;
ccCameraSensor* sensor = DecodeSensor(stream, sensorId);
if (sensor)
{
assert(!sensors.contains(sensorId));
sensors.insert(sensorId, sensor);
//currentContainer->addChild(sensor);
}
}
else
{
//not handled
stream.skipCurrentElement();
}
break;
case CAMERAS:
if (stream.name() == "camera")
{
CameraDesc camera;
ccGLMatrix trans;
if (DecodeCamera(stream, camera))
{
assert(!cameras.contains(camera.id));
cameras.insert(camera.id, camera);
//currentContainer->addChild(camera.image);
}
}
else
{
//not handled
stream.skipCurrentElement();
}
break;
case FRAMES:
if (stream.name() == "frame")
{
sections.push_back(FRAME);
}
else
{
//not handled
stream.skipCurrentElement();
}
break;
case FRAME:
if (stream.name() == "point_cloud" || stream.name() == "dense_cloud")
{
//inner loop
bool denseCloud = (stream.name() == "dense_cloud");
while (stream.readNextStartElement())
{
if (stream.name() == "points")
{
if (stream.attributes().hasAttribute("path"))
{
CloudDesc desc;
desc.filename = stream.attributes().value("path").toString();
desc.type = (denseCloud ? "dense cloud" : "keypoints");
clouds.push_back(desc);
}
else
{
assert(false);
}
}
stream.skipCurrentElement();
}
}
else if (stream.name() == "model")
{
MeshDesc desc;
//inner loop
while (stream.readNextStartElement())
{
if (stream.name() == "mesh")
{
if (stream.attributes().hasAttribute("path"))
{
desc.filename = stream.attributes().value("path").toString();
}
else
{
assert(false);
}
}
else if (stream.name() == "texture")
{
if (stream.attributes().hasAttribute("path"))
{
desc.texture = stream.attributes().value("path").toString();
}
else
{
assert(false);
}
}
stream.skipCurrentElement();
}
if (!desc.filename.isEmpty())
{
meshes.push_back(desc);
}
}
else
{
//not handled
stream.skipCurrentElement();
}
break;
case TRANSFORM:
//not handled
stream.skipCurrentElement();
break;
default:
break;
}
}
QScopedPointer<ccProgressDialog> progressDialog(0);
if (parameters.parentWidget)
{
progressDialog.reset(new ccProgressDialog(parameters.parentWidget));
progressDialog->setRange(0, cameras.size() + clouds.size() + meshes.size());
progressDialog->setWindowTitle("Loading data");
progressDialog->start();
}
bool wasCanceled = false;
int currentProgress = 0;
//end of file: now we can sort the various extracted components
QDir dir = QFileInfo(filename).dir();
ccHObject* imageGroup = new ccHObject("Images");
if (progressDialog && !cameras.empty())
{
progressDialog->setInfo(QString("Loading %1 image(s)").arg(cameras.size()));
}
for (CameraDesc& camera : cameras)
{
//progress
if (progressDialog)
{
progressDialog->setValue(++currentProgress);
if (progressDialog->wasCanceled())
{
wasCanceled = true;
break;
}
}
if (camera.imageFilename.isEmpty())
{
assert(false);
continue;
}
//DGM: the images are not in the archive!
//if (!zip.setCurrentFile(camera.imageFilename))
//{
// ccLog::Warning(QString("[Photoscan] Failed to locate image '%1' in the Photoscan archive").arg(camera.imageFilename));
// continue;
//}
////decompress the image file
//QuaZipFile zipImage(&zip);
//if (!zipImage.open(QFile::ReadOnly))
//{
// ccLog::Warning(QString("[Photoscan] Failed to extract '%1' from Photoscan archive").arg(camera.imageFilename));
// continue;
//}
QImage qImage;
QString absoluteImageFilename = dir.absoluteFilePath(camera.imageFilename);
//if (!qImage.load(&zipImage, qPrintable(QFileInfo(camera.imageFilename).suffix())))
if (!qImage.load(absoluteImageFilename))
{
ccLog::Warning(QString("[Photoscan] Failed to load image '%1'").arg(camera.imageFilename));
continue;
}
ccCameraSensor* const origSensor = sensors[camera.sensorId];
if (origSensor)
{
origSensor->undistort(qImage);
}
ccImage* image = new ccImage(qImage);
image->setName(camera.imageFilename);
image->setAlpha(0.5f);
image->setVisible(false);
//associated sensor (if any)
if (origSensor)
{
//make a copy of the original sensor
ccCameraSensor* sensor = new ccCameraSensor(*origSensor);
camera.trans.setColumn(1, -camera.trans.getColumnAsVec3D(1));
camera.trans.setColumn(2, -camera.trans.getColumnAsVec3D(2));
//FIXME: we would have to transform the clouds and meshes as well!
//if (hasGlobalTransform)
//{
// //apply global transformation (if any)
// camera.trans = ccGLMatrix(globalTransform.data()) * camera.trans;
//}
sensor->setRigidTransformation(camera.trans);
sensor->setVisible(true);
sensor->setGraphicScale(0.1f);
image->setAssociatedSensor(sensor);
image->addChild(sensor);
imageGroup->addChild(image);
}
}
if (imageGroup->getChildrenNumber())
{
container.addChild(imageGroup);
}
else
{
//no image?!
delete imageGroup;
imageGroup = 0;
}
//we can get rid of the original sensors
for (ccCameraSensor*& sensor : sensors)
{
delete sensor;
sensor = 0;
}
sensors.clear();
//clouds
if (!wasCanceled)
{
if (progressDialog && !clouds.empty())
{
progressDialog->setInfo(QString("Loading %1 cloud(s)").arg(cameras.size()));
}
for (CloudDesc& desc : clouds)
{
//progress
if (progressDialog)
{
progressDialog->setValue(++currentProgress);
if (progressDialog->wasCanceled())
{
wasCanceled = true;
break;
}
}
if (desc.filename.isEmpty())
{
assert(false);
continue;
}
if (desc.filename.endsWith(".oc3", Qt::CaseInsensitive))
{
ccLog::Warning(QString("[Photoscan] OC3 format not supported. Can't import %1 from the Photoscan archive").arg(desc.type));
continue;
}
QString tempFilename = CreateTempFile(zip, desc.filename);
if (tempFilename.isNull())
{
continue;
}
ccHObject tempContainer;
FileIOFilter::LoadParameters params;
params.alwaysDisplayLoadDialog = false;
params.autoComputeNormals = false;
params.parentWidget = 0;
CC_FILE_ERROR result = CC_FERR_NO_ERROR;
ccHObject* newGroup = FileIOFilter::LoadFromFile(tempFilename, params, result);
if (newGroup)
{
newGroup->setName(desc.type);
if (desc.type == "keypoints")
{
newGroup->setEnabled(false);
}
container.addChild(newGroup);
}
else
{
ccLog::Warning(QString("[Photoscan] Failed to extract '%1' from Photoscan archive").arg(desc.filename));
}
QFile::remove(tempFilename);
}
}
//meshes
if (!wasCanceled)
{
if (progressDialog && !meshes.empty())
{
progressDialog->setInfo(QString("Loading %1 mesh(es)").arg(cameras.size()));
}
for (MeshDesc& desc : meshes)
{
//progress
if (progressDialog)
{
progressDialog->setValue(++currentProgress);
if (progressDialog->wasCanceled())
{
wasCanceled = true;
break;
}
}
if (desc.filename.isEmpty())
{
assert(false);
continue;
}
QString tempFilename = CreateTempFile(zip, desc.filename);
if (tempFilename.isNull())
{
continue;
}
FileIOFilter::LoadParameters params;
params.alwaysDisplayLoadDialog = false;
params.autoComputeNormals = false;
params.parentWidget = 0;
bool success = false;
if (!desc.texture.isEmpty() && desc.filename.endsWith("ply", Qt::CaseInsensitive))
{
QString tempTextureFilename = CreateTempFile(zip, desc.texture);
ccHObject tempContainer;
if (PlyFilter().loadFile(tempFilename, desc.texture, tempContainer, params) == CC_FERR_NO_ERROR)
{
success = true;
//transfer the loaded entities to the current container
for (unsigned i = 0; i < tempContainer.getChildrenNumber(); ++i)
{
container.addChild(tempContainer.getChild(i));
}
tempContainer.detatchAllChildren();
}
if (!tempTextureFilename.isNull())
{
QFile::remove(tempTextureFilename);
}
}
else
{
CC_FILE_ERROR result = CC_FERR_NO_ERROR;
ccHObject* newGroup = FileIOFilter::LoadFromFile(tempFilename, params, result);
if (newGroup)
{
success = true;
//transfer the loaded entities to the current container
for (unsigned i = 0; i < newGroup->getChildrenNumber(); ++i)
{
container.addChild(newGroup->getChild(i));
}
newGroup->detatchAllChildren();
delete newGroup;
newGroup = 0;
}
}
if (!success)
{
ccLog::Warning(QString("[Photoscan] Failed to extract '%1' from Photoscan archive").arg(desc.filename));
}
QFile::remove(tempFilename);
}
}
if (progressDialog)
{
progressDialog->stop();
}
return wasCanceled ? CC_FERR_CANCELED_BY_USER : CC_FERR_NO_ERROR;
}
| 23.77492 | 155 | 0.634073 | [
"mesh",
"vector",
"model",
"transform"
] |
4bd963f0f64ab0d779663ac36a3bd523d556f89b | 2,068 | cpp | C++ | src/activity/Backbutton.cpp | ArthurSonzogni/pigami | bc33ed2797ba1da534d9cd4337e59d33ce46d4c5 | [
"MIT"
] | 4 | 2019-12-19T17:08:04.000Z | 2020-09-20T08:31:15.000Z | src/activity/Backbutton.cpp | ArthurSonzogni/pigami | bc33ed2797ba1da534d9cd4337e59d33ce46d4c5 | [
"MIT"
] | null | null | null | src/activity/Backbutton.cpp | ArthurSonzogni/pigami | bc33ed2797ba1da534d9cd4337e59d33ce46d4c5 | [
"MIT"
] | null | null | null | // Copyright 2019 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
#include "activity/Backbutton.hpp"
#include <cmath>
#include <smk/Color.hpp>
#include <smk/Input.hpp>
#include <smk/Shape.hpp>
#include <smk/Text.hpp>
#include "Resources.hpp"
void Backbutton::Step() {
float width = window().width();
float height = window().height();
float zoom = std::min(width, height);
glm::vec2 center = glm::vec2(width, height) * 0.5f;
back_button_position =
glm::vec2(-width, height) * 0.5f / zoom + glm::vec2(0.15f, -0.1f);
auto delta =
back_button_position - (window().input().cursor() - center) / zoom;
delta.x /= 0.1f;
delta.y /= 0.07f;
back_button_hover = glm::length(delta) < 1.f;
if (window().input().IsCursorReleased() && back_button_hover)
on_quit();
}
void Backbutton::Draw() {
glDisable(GL_CULL_FACE);
glDisable(GL_DEPTH_TEST);
glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
glStencilFunc(GL_ALWAYS, 0, 0xffffffff);
glFrontFace(GL_CCW);
glClear(GL_STENCIL_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
// Set the view.
float width = window().width();
float height = window().height();
float zoom = std::min(width, height);
smk::View view;
view.SetCenter(0, 0);
view.SetSize(width / zoom, height / zoom);
window().SetShaderProgram(window().shader_program_2d());
window().SetView(view);
auto circle = smk::Shape::Circle(1.f, 90);
circle.SetPosition(back_button_position);
circle.SetColor(back_button_hover ? smk::Color::White : smk::Color::Black);
circle.SetScale(0.1f, 0.07f);
window().Draw(circle);
circle.SetColor(back_button_hover ? smk::Color::Black : smk::Color::White);
circle.SetScale(0.095f, 0.065f);
window().Draw(circle);
auto text = smk::Text(font_arial, L"←");
text.SetPosition(back_button_position);
float scale = 0.0015f;
text.SetColor(back_button_hover ? smk::Color::White : smk::Color::Black);
text.SetScale(scale, scale);
text.Move(-0.07f, -0.1f);
window().Draw(text);
}
| 30.411765 | 78 | 0.686654 | [
"shape"
] |
4be64ce2a2975776a6a66c9ee559869e2add3b36 | 6,067 | cc | C++ | third_party/blink/renderer/core/loader/history_item.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/blink/renderer/core/loader/history_item.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/renderer/core/loader/history_item.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | /*
* Copyright (C) 2005, 2006, 2008, 2011 Apple Inc. 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 APPLE COMPUTER, INC. ``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 APPLE COMPUTER, INC. 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 "third_party/blink/renderer/core/loader/history_item.h"
#include <memory>
#include <utility>
#include "third_party/blink/renderer/core/html/forms/form_controller.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_request.h"
#include "third_party/blink/renderer/platform/weborigin/security_policy.h"
#include "third_party/blink/renderer/platform/wtf/assertions.h"
#include "third_party/blink/renderer/platform/wtf/text/cstring.h"
#include "third_party/blink/renderer/platform/wtf/time.h"
namespace blink {
static long long GenerateSequenceNumber() {
// Initialize to the current time to reduce the likelihood of generating
// identifiers that overlap with those from past/future browser sessions.
static long long next = static_cast<long long>(CurrentTime() * 1000000.0);
return ++next;
}
HistoryItem::HistoryItem()
: item_sequence_number_(GenerateSequenceNumber()),
document_sequence_number_(GenerateSequenceNumber()),
scroll_restoration_type_(kScrollRestorationAuto) {}
HistoryItem::~HistoryItem() = default;
const String& HistoryItem::UrlString() const {
return url_string_;
}
KURL HistoryItem::Url() const {
return KURL(url_string_);
}
const Referrer& HistoryItem::GetReferrer() const {
return referrer_;
}
void HistoryItem::SetURLString(const String& url_string) {
if (url_string_ != url_string)
url_string_ = url_string;
}
void HistoryItem::SetURL(const KURL& url) {
SetURLString(url.GetString());
}
void HistoryItem::SetReferrer(const Referrer& referrer) {
// This should be a CHECK.
referrer_ = SecurityPolicy::GenerateReferrer(referrer.referrer_policy, Url(),
referrer.referrer);
}
void HistoryItem::SetVisualViewportScrollOffset(const ScrollOffset& offset) {
if (!view_state_)
view_state_ = std::make_unique<ViewState>();
view_state_->visual_viewport_scroll_offset_ = offset;
}
void HistoryItem::SetScrollOffset(const ScrollOffset& offset) {
if (!view_state_)
view_state_ = std::make_unique<ViewState>();
view_state_->scroll_offset_ = offset;
}
void HistoryItem::SetPageScaleFactor(float scale_factor) {
if (!view_state_)
view_state_ = std::make_unique<ViewState>();
view_state_->page_scale_factor_ = scale_factor;
}
void HistoryItem::SetScrollAnchorData(
const ScrollAnchorData& scroll_anchor_data) {
if (!view_state_)
view_state_ = std::make_unique<ViewState>();
view_state_->scroll_anchor_data_ = scroll_anchor_data;
}
void HistoryItem::SetDocumentState(const Vector<String>& state) {
DCHECK(!document_state_);
document_state_vector_ = state;
}
void HistoryItem::SetDocumentState(DocumentState* state) {
document_state_ = state;
}
const Vector<String>& HistoryItem::GetDocumentState() {
if (document_state_)
document_state_vector_ = document_state_->ToStateVector();
return document_state_vector_;
}
Vector<String> HistoryItem::GetReferencedFilePaths() {
return FormController::GetReferencedFilePaths(GetDocumentState());
}
void HistoryItem::ClearDocumentState() {
document_state_.Clear();
document_state_vector_.clear();
}
void HistoryItem::SetStateObject(scoped_refptr<SerializedScriptValue> object) {
state_object_ = std::move(object);
}
const AtomicString& HistoryItem::FormContentType() const {
return form_content_type_;
}
void HistoryItem::SetFormInfoFromRequest(const ResourceRequest& request) {
if (DeprecatedEqualIgnoringCase(request.HttpMethod(), "POST")) {
// FIXME: Eventually we have to make this smart enough to handle the case
// where we have a stream for the body to handle the "data interspersed with
// files" feature.
form_data_ = request.HttpBody();
form_content_type_ = request.HttpContentType();
} else {
form_data_ = nullptr;
form_content_type_ = g_null_atom;
}
}
void HistoryItem::SetFormData(scoped_refptr<EncodedFormData> form_data) {
form_data_ = std::move(form_data);
}
void HistoryItem::SetFormContentType(const AtomicString& form_content_type) {
form_content_type_ = form_content_type;
}
EncodedFormData* HistoryItem::FormData() {
return form_data_.get();
}
ResourceRequest HistoryItem::GenerateResourceRequest(
mojom::FetchCacheMode cache_mode) {
ResourceRequest request(url_string_);
request.SetHTTPReferrer(referrer_);
request.SetCacheMode(cache_mode);
if (form_data_) {
request.SetHTTPMethod(HTTPNames::POST);
request.SetHTTPBody(form_data_);
request.SetHTTPContentType(form_content_type_);
request.SetHTTPOriginToMatchReferrerIfNeeded();
}
return request;
}
void HistoryItem::Trace(blink::Visitor* visitor) {
visitor->Trace(document_state_);
}
} // namespace blink
| 33.335165 | 80 | 0.761332 | [
"object",
"vector"
] |
4be6ceb131c2793242303abe68e2726fe206fa9e | 4,996 | cc | C++ | python/pytinyrenderer.cc | erwincoumans/tinyrenderer | 0e8b3fe69f34f0b01683760c3eee29b077410631 | [
"Zlib"
] | 12 | 2017-03-20T15:11:48.000Z | 2022-03-03T23:40:05.000Z | python/pytinyrenderer.cc | erwincoumans/tinyrenderer | 0e8b3fe69f34f0b01683760c3eee29b077410631 | [
"Zlib"
] | null | null | null | python/pytinyrenderer.cc | erwincoumans/tinyrenderer | 0e8b3fe69f34f0b01683760c3eee29b077410631 | [
"Zlib"
] | 1 | 2016-09-19T13:08:51.000Z | 2016-09-19T13:08:51.000Z | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <pybind11/operators.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <stdio.h>
#include <string>
#include "model.h"
#include "our_gl.h"
#include "tinyrenderer.h"
std::string file_open_dialog(const std::string& path) {
return std::string("opening: ") + path;
}
using namespace TinyRender2;
namespace py = pybind11;
PYBIND11_MODULE(pytinyrenderer, m) {
m.doc() = R"pbdoc(
python bindings for tiny renderer
-----------------------
.. currentmodule:: pytinyrenderer
.. autosummary::
:toctree: _generate
)pbdoc";
m.def("file_open_dialog", &file_open_dialog);
py::class_<RenderBuffers>(m, "RenderBuffers")
.def(py::init<int, int>())
.def_readwrite("width", &RenderBuffers::m_width)
.def_readwrite("height", &RenderBuffers::m_height)
.def_readwrite("rgb", &RenderBuffers::rgb)
.def_readwrite("depthbuffer", &RenderBuffers::zbuffer)
.def_readwrite("segmentation_mask", &RenderBuffers::segmentation_mask);
py::class_<TinyRenderCamera>(m, "TinyRenderCamera")
.def(py::init<int, int, float, float, float, float,
const std::vector<float>&, const std::vector<float>&,
const std::vector<float>&>(),
py::arg("viewWidth") = 640, py::arg("viewHeight") = 480,
py::arg("near") = 0.01, py::arg("far") = 1000.0,
py::arg("hfov") = 58.0, py::arg("vfov") = 45.0,
py::arg("position") = std::vector<float>{1, 1, 1},
py::arg("target") = std::vector<float>{0, 0, 0},
py::arg("up") = std::vector<float>{0, 0, 1})
.def(py::init<int, int, const std::vector<float>&,
const std::vector<float>&>(),
py::arg("viewWidth"), py::arg("viewHeight"),
py::arg("viewMatrix"),
py::arg("projectionMatrix"))
.def_readonly("view_width", &TinyRenderCamera::m_viewWidth)
.def_readonly("view_height", &TinyRenderCamera::m_viewHeight);
py::class_<TinyRenderLight>(m, "TinyRenderLight")
.def(py::init<const std::vector<float>&, const std::vector<float>&,
const std::vector<float>&, float, float, float, float, bool, float>(),
py::arg("direction") = std::vector<float>{0.57735, 0.57735, 0.57735},
py::arg("color") = std::vector<float>{1, 1, 1},
py::arg("shadowmap_center") = std::vector<float>{0, 0, 0},
py::arg("distance") = 10.0, py::arg("ambient") = 0.6,
py::arg("diffuse") = 0.35, py::arg("specular") = 0.05,
py::arg("has_shadow") = true, py::arg("shadow_coefficient")= 0.4);
py::class_<TinySceneRenderer>(m, "TinySceneRenderer")
.def(py::init<>())
.def("create_mesh", &TinySceneRenderer::create_mesh)
.def("create_cube", &TinySceneRenderer::create_cube)
.def("create_capsule", &TinySceneRenderer::create_capsule)
.def("create_object_instance", &TinySceneRenderer::create_object_instance)
.def("set_object_position", &TinySceneRenderer::set_object_position)
.def("set_object_orientation", &TinySceneRenderer::set_object_orientation)
.def("set_object_local_scaling",
&TinySceneRenderer::set_object_local_scaling)
.def("set_object_color", &TinySceneRenderer::set_object_color)
.def("set_object_double_sided",
&TinySceneRenderer::set_object_double_sided)
.def("set_object_segmentation_uid",
&TinySceneRenderer::set_object_segmentation_uid)
.def("get_object_segmentation_uid",
&TinySceneRenderer::get_object_segmentation_uid)
.def("get_camera_image", &TinySceneRenderer::get_camera_image_py)
.def("delete_mesh", &TinySceneRenderer::delete_mesh)
.def("delete_instance", &TinySceneRenderer::delete_instance)
;
m.def("compute_projection_matrix",
&TinySceneRenderer::compute_projection_matrix);
m.def("compute_projection_matrix2",
&TinySceneRenderer::compute_projection_matrix2);
m.def("compute_view_matrix", &TinySceneRenderer::compute_view_matrix);
m.def("compute_view_matrix_from_yaw_pitch_roll", &TinySceneRenderer::compute_view_matrix_from_yaw_pitch_roll);
#ifdef VERSION_INFO
m.attr("__version__") = VERSION_INFO;
#else
m.attr("__version__") = "dev";
#endif
}
| 41.289256 | 113 | 0.643114 | [
"vector",
"model"
] |
4bef9353fb981e643ce1ba7cbb65be0805f71efa | 2,163 | cpp | C++ | lib/item/src/Collection.cpp | maxim-puchkov/TheAdventure2019 | 049b0318b492f7a360817825f8772d7e28b5f75e | [
"MIT"
] | null | null | null | lib/item/src/Collection.cpp | maxim-puchkov/TheAdventure2019 | 049b0318b492f7a360817825f8772d7e28b5f75e | [
"MIT"
] | null | null | null | lib/item/src/Collection.cpp | maxim-puchkov/TheAdventure2019 | 049b0318b492f7a360817825f8772d7e28b5f75e | [
"MIT"
] | null | null | null | //
// Collection.cpp
// adventure2019
//
// Created by admin on 2019-02-06.
// Copyright © 2019 maximpuchkov. All rights reserved.
//
#include "Collection.h"
// using namespace objects;
//using items::Collection;
namespace items {
/* Constructors */
//Collection::Collection()
//{ }
Collection::~Collection()
{ }
Collection::Collection(const Item &container, unsigned int capacity)
: container(container), capacity(capacity) {
// for (unsigned int i = 0; i < capacity; i++) {
// // this->set.insert(Slot(i));
// }
}
/* Object interface */
ItemIdentifier Collection::identifier() const {
return this->collectionID;
}
Key Collection::brief() const {
return this->keywords.first();
}
Text Collection::toString() const {
ostringstream stream{""};
const char NL = '\n';
const char TAB = '\t';
stream << this->keywords.first();
stream << NL;
for (auto &itemID : this->set) {
stream << TAB << itemID << NL;
}
stream << "Total size: " << this->size();
return stream.str();
}
Text Collection::examine(const Key &keyword) const {
// .....
return "callee: Collection::examine(const Key&)";
}
/* Set operations */
bool Collection::insert(const Item &item) {
return this->set.insert(item.identifier()).second;
}
bool Collection::insert(ItemIdentifier id) {
return this->set.insert(id).second;
}
bool Collection::erase(const Item &item) {
bool valid = (this->set.find(item.identifier()) != this->set.cend());
this->set.erase(item.identifier());
return valid;
}
bool Collection::erase(ItemIdentifier id) {
bool valid = (this->set.find(id) != this->set.cend());
this->set.erase(id);
return valid;
}
bool Collection::contains(ItemIdentifier id) const {
return (this->set.find(id) != this->set.cend());
}
size_t Collection::size() const {
return this->set.size();
}
std::set<ItemIdentifier>::const_iterator Collection::begin() const {
return this->set.cbegin();
}
std::set<ItemIdentifier>::const_iterator Collection::end() const {
return this->set.cend();
}
} /* namespace items */
| 17.166667 | 73 | 0.626445 | [
"object"
] |
4bf1317ffd9f789fcae408a7c30109750836a449 | 4,018 | cpp | C++ | AI-DungeonGeneration/AStar.cpp | LiadKhamd/AI-DungeonGeneration | fd19320002e2d3d0529575d723cb018dad90bfd5 | [
"MIT"
] | 1 | 2019-12-18T00:50:49.000Z | 2019-12-18T00:50:49.000Z | AI-DungeonGeneration/AStar.cpp | LiadKh/AI-DungeonGeneration | fd19320002e2d3d0529575d723cb018dad90bfd5 | [
"MIT"
] | null | null | null | AI-DungeonGeneration/AStar.cpp | LiadKh/AI-DungeonGeneration | fd19320002e2d3d0529575d723cb018dad90bfd5 | [
"MIT"
] | null | null | null | #include "AStar.h"
extern int maze[MSIZE][MSIZE];
AStar::AStar()
{
}
AStar::~AStar()
{
delete lastTarget;
solution.clear();
}
AStar::AStar(Point2D *pos)
{
myPos = pos;
lastTarget = new Point2D(-1, -1);
}
int AStar::getDiraction(Point2D *p)
{
if (myPos->GetX() != p->GetX())
{
if (myPos->GetX() > p->GetX())
return LEFT;
else
return RIGHT;
}
else
{
if (myPos->GetY() > p->GetY())
return DOWN;
else
return UP;
}
}
void AStar::SetSolution(Point2D target)
{
Point2D_hg bestPoint;
std::priority_queue <Point2D_hg, std::vector <Point2D_hg>, ComparePoints> pq;
std::vector <Point2D_hg> black;
std::vector <Point2D_hg> gray;
bestPoint = Point2D_hg(*myPos, target);
pq.emplace(bestPoint);
gray.push_back(bestPoint);
Point2D_hg *bestPointAsParent, neighborPos_hg;
Point2D bestPointPos, neighborPos;
std::vector<Point2D_hg>::iterator black_iterator;
std::vector<Point2D_hg>::iterator gray_iterator;
do {
bestPoint = pq.top();
pq.pop();
gray_iterator = find(gray.begin(), gray.end(), bestPoint);
gray.erase(gray_iterator);
black.push_back(bestPoint);
bestPointAsParent = new Point2D_hg(bestPoint);
bestPointPos = bestPointAsParent->getPoint();
if (bestPointPos == target) {
while (bestPointAsParent->getParent() != NULL)
{
solution.push_back(new Point2D(bestPointAsParent->getPoint()));
bestPointAsParent = bestPointAsParent->getParent();
}
break;
}
neighborPos = Point2D(bestPointPos.GetX() + 1, bestPointPos.GetY());
if (maze[neighborPos.GetY()][neighborPos.GetX()] != WALL && maze[neighborPos.GetY()][neighborPos.GetX()] != BLOCK) {
neighborPos_hg = Point2D_hg(bestPointAsParent, neighborPos, target);
black_iterator = find(black.begin(), black.end(), neighborPos_hg);
gray_iterator = find(gray.begin(), gray.end(), neighborPos_hg);
if (black_iterator == black.end() && gray_iterator == gray.end())
{
pq.emplace(neighborPos_hg);
gray.push_back(neighborPos_hg);
}
}
neighborPos = Point2D(bestPointPos.GetX() - 1, bestPointPos.GetY());
if (maze[neighborPos.GetY()][neighborPos.GetX()] != WALL && maze[neighborPos.GetY()][neighborPos.GetX()] != BLOCK) {
neighborPos_hg = Point2D_hg(bestPointAsParent, neighborPos, target);
black_iterator = find(black.begin(), black.end(), neighborPos_hg);
gray_iterator = find(gray.begin(), gray.end(), neighborPos_hg);
if (black_iterator == black.end() && gray_iterator == gray.end())
{
pq.emplace(neighborPos_hg);
gray.push_back(neighborPos_hg);
}
}
neighborPos = Point2D(bestPointPos.GetX(), bestPointPos.GetY() + 1);
if (maze[neighborPos.GetY()][neighborPos.GetX()] != WALL && maze[neighborPos.GetY()][neighborPos.GetX()] != BLOCK) {
neighborPos_hg = Point2D_hg(bestPointAsParent, neighborPos, target);
black_iterator = find(black.begin(), black.end(), neighborPos_hg);
gray_iterator = find(gray.begin(), gray.end(), neighborPos_hg);
if (black_iterator == black.end() && gray_iterator == gray.end())
{
pq.emplace(neighborPos_hg);
gray.push_back(neighborPos_hg);
}
}
neighborPos = Point2D(bestPointPos.GetX(), bestPointPos.GetY() - 1);
if (maze[neighborPos.GetY()][neighborPos.GetX()] != WALL && maze[neighborPos.GetY()][neighborPos.GetX()] != BLOCK) {
neighborPos_hg = Point2D_hg(bestPointAsParent, neighborPos, target);
black_iterator = find(black.begin(), black.end(), neighborPos_hg);
gray_iterator = find(gray.begin(), gray.end(), neighborPos_hg);
if (black_iterator == black.end() && gray_iterator == gray.end())
{
pq.emplace(neighborPos_hg);
gray.push_back(neighborPos_hg);
}
}
} while (true);
}
int AStar::run(Point2D target)
{
if (!(*lastTarget == target && !solution.empty()))
{
delete lastTarget;
lastTarget = new Point2D(target);
solution.clear();
SetSolution(*lastTarget);
}
if (!solution.empty())
{
Point2D *best = solution.back();
solution.pop_back();
int dir = getDiraction(best);
delete best;
return dir;
}
return ERROR_DIR;
} | 28.295775 | 118 | 0.684171 | [
"vector"
] |
4bfaaf72b24b0f2c5b323a511aa5f3aadcf82e68 | 10,325 | cpp | C++ | ace/tests/Refcounted_Auto_Ptr_Test.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | ace/tests/Refcounted_Auto_Ptr_Test.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | ace/tests/Refcounted_Auto_Ptr_Test.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | // Refcounted_Auto_Ptr_Test.cpp,v 4.8 2001/06/18 19:33:43 shuston Exp
//=============================================================================
/**
* @file Refcounted_Auto_Ptr_Test.cpp
*
* Refcounted_Auto_Ptr_Test.cpp,v 4.8 2001/06/18 19:33:43 shuston Exp
*
* This example tests the <ACE_Refcounted_Auto_Ptr> and illustrates
* how they may be dispersed between multiple threads using an
* implementation of the Active Object pattern, which is available
* at <http://www.cs.wustl.edu/~schmidt/PDF/Act-Obj.pdf>.
*
*
* @author Johnny Tucker <johnny_tucker@yahoo.com>
*/
//=============================================================================
#include "test_config.h"
#include "ace/ACE.h"
#include "ace/Task.h"
#include "ace/Synch.h"
#include "ace/Message_Queue.h"
#include "ace/Method_Request.h"
#include "ace/Activation_Queue.h"
#include "ace/Refcounted_Auto_Ptr.h"
ACE_RCSID (tests,
Refcounted_Auto_Ptr_Test,
"Refcounted_Auto_Ptr_Test.cpp,v 4.8 2000/04/23 04:43:58 brunsch Exp")
struct Printer
{
Printer (const char *message);
~Printer (void) ;
void print (void);
const char *message_;
static size_t instance_count_;
};
size_t Printer::instance_count_ = 0;
Printer::Printer (const char *message)
: message_ (message)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) Creating Printer object\n")));
++Printer::instance_count_;
}
Printer::~Printer (void)
{
--Printer::instance_count_;
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) Deleting Printer object\n")));
}
void
Printer::print (void)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) %s\n"),
this->message_));
}
#if defined (ACE_HAS_THREADS)
typedef ACE_Refcounted_Auto_Ptr<Printer, ACE_Thread_Mutex> Printer_var;
/**
* @class Scheduler
*
* @brief The scheduler for the Active Object.
*
* This class also plays the role of the Proxy and the Servant
* in the Active Object pattern. Naturally, these roles could
* be split apart from the Scheduler.
*/
class Scheduler : public ACE_Task<ACE_SYNCH>
{
friend class Method_Request_print;
friend class Method_Request_end;
public:
// = Initialization and termination methods.
/// Constructor.
Scheduler (Scheduler * = 0);
/// Initializer.
virtual int open (void *args = 0);
/// Terminator.
virtual int close (u_long flags = 0);
/// Destructor.
virtual ~Scheduler (void);
// = These methods are part of the Active Object Proxy interface.
void print (Printer_var &printer);
void end (void);
protected:
/// Runs the Scheduler's event loop, which dequeues <Method_Requests>
/// and dispatches them.
virtual int svc (void);
private:
// = These are the <Scheduler> implementation details.
ACE_Activation_Queue activation_queue_;
Scheduler *scheduler_;
};
/**
* @class Method_Request_print
*
* @brief Reification of the <print> method.
*/
class Method_Request_print : public ACE_Method_Request
{
public:
Method_Request_print (Scheduler *,
Printer_var &printer);
virtual ~Method_Request_print (void);
/// This is the entry point into the Active Object method.
virtual int call (void);
private:
Scheduler *scheduler_;
Printer_var printer_;
};
Method_Request_print::Method_Request_print (Scheduler *new_scheduler,
Printer_var &printer)
: scheduler_ (new_scheduler),
printer_ (printer)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) Method_Request_print created\n")));
}
Method_Request_print::~Method_Request_print (void)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) Method_Request_print will be deleted.\n")));
}
int
Method_Request_print::call (void)
{
// Dispatch the Servant's operation and store the result into the
// Future.
Printer_var temp = printer_;
temp->print ();
return 0;
}
/**
* @class Method_Request_end
*
* @brief Reification of the <end> method.
*/
class Method_Request_end : public ACE_Method_Request
{
public:
Method_Request_end (Scheduler *new_Prime_Scheduler);
virtual ~Method_Request_end (void);
virtual int call (void);
private:
Scheduler *scheduler_;
};
Method_Request_end::Method_Request_end (Scheduler *scheduler)
: scheduler_ (scheduler)
{
}
Method_Request_end::~Method_Request_end (void)
{
}
int
Method_Request_end::call (void)
{
// Shut down the scheduler by deactivating the activation queue's
// underlying message queue - should pop all worker threads off their
// wait and they'll exit.
this->scheduler_->msg_queue ()->deactivate ();
return -1;
}
// Constructor
// Associates the activation queue with this task's message queue,
// allowing easy access to the message queue for shutting it down
// when it's time to stop this object's service threads.
Scheduler::Scheduler (Scheduler *new_scheduler)
: activation_queue_ (msg_queue ()), scheduler_ (new_scheduler)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) Scheduler created\n")));
}
// Destructor
Scheduler::~Scheduler (void)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) Scheduler will be destroyed\n")));
}
// open
int
Scheduler::open (void *)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) Scheduler open\n")));
// Become an Active Object.
int num_threads = 3;
return this->activate (THR_BOUND | THR_JOINABLE, num_threads);
}
// close
int
Scheduler::close (u_long)
{
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) rundown\n")));
return 0;
}
// Service..
int
Scheduler::svc (void)
{
for (;;)
{
// Dequeue the next method request (we use an auto pointer in
// case an exception is thrown in the <call>).
ACE_Method_Request *mo_p = this->activation_queue_.dequeue ();
if (0 == mo_p)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) activation queue shut down\n")));
break;
}
auto_ptr<ACE_Method_Request> mo (mo_p);
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) calling method request\n")));
// Call it.
if(mo->call () == -1)
break;
// Destructor automatically deletes it.
}
return 0;
}
void
Scheduler::end (void)
{
this->activation_queue_.enqueue (new Method_Request_end (this));
}
// Here's where the work takes place.
void
Scheduler::print (Printer_var &printer)
{
this->activation_queue_.enqueue
(new Method_Request_print (this,
printer));
}
// Total number of loops.
static int n_loops = 10;
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Refcounted_Auto_Ptr<Printer, ACE_Thread_Mutex>;
template class ACE_Auto_Basic_Ptr<Printer>;
template class ACE_Auto_Basic_Ptr<Scheduler>;
template class auto_ptr<Scheduler>;
template class auto_ptr<ACE_Method_Request>;
template class ACE_Auto_Basic_Ptr<ACE_Method_Request>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Refcounted_Auto_Ptr<Printer, ACE_Thread_Mutex>
#pragma instantiate ACE_Auto_Basic_Ptr<Printer>
#pragma instantiate ACE_Auto_Basic_Ptr<Scheduler>
#pragma instantiate auto_ptr<Scheduler>
#pragma instantiate auto_ptr<ACE_Method_Request>
#pragma instantiate ACE_Auto_Basic_Ptr<ACE_Method_Request>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
#endif /* ACE_HAS_THREADS */
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Refcounted_Auto_Ptr<Printer, ACE_Null_Mutex>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Refcounted_Auto_Ptr<Printer, ACE_Null_Mutex>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
int
main (int, ACE_TCHAR *[])
{
ACE_START_TEST (ACE_TEXT ("Refcounted_Auto_Ptr_Test"));
// =========================================================================
// The following test uses the ACE_Refcounted_Auto_Ptr in a single
// thread of control, hence we use the ACE_Null_Mutex
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) performing synchronous test...\n")));
Printer *printer1;
ACE_NEW_RETURN (printer1,
Printer ("I am printer 1"),
-1);
{
ACE_Refcounted_Auto_Ptr<Printer, ACE_Null_Mutex> r(printer1);
ACE_Refcounted_Auto_Ptr<Printer, ACE_Null_Mutex> r1(r);
ACE_Refcounted_Auto_Ptr<Printer, ACE_Null_Mutex> r2(r);
ACE_Refcounted_Auto_Ptr<Printer, ACE_Null_Mutex> r3(r);
ACE_Refcounted_Auto_Ptr<Printer, ACE_Null_Mutex> r4(r);
ACE_Refcounted_Auto_Ptr<Printer, ACE_Null_Mutex> r5 = r2;
ACE_Refcounted_Auto_Ptr<Printer, ACE_Null_Mutex> r6 = r1;
}
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) Printer instance count is %d, expecting 0\n"),
Printer::instance_count_));
ACE_ASSERT (Printer::instance_count_ == 0);
#if defined (ACE_HAS_THREADS)
// =========================================================================
// The following test uses the ACE_Refcounted_Auto_Ptr in multiple
// threads of control.
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) performing asynchronous test...\n")));
Scheduler *scheduler_ptr;
// Create active objects..
ACE_NEW_RETURN (scheduler_ptr,
Scheduler (),
-1);
auto_ptr<Scheduler> scheduler(scheduler_ptr);
ACE_ASSERT (scheduler->open () != -1);
{
ACE_NEW_RETURN (printer1,
Printer ("I am printer 2"),
-1);
Printer_var r (printer1);
for (int i = 0; i < n_loops; i++)
// Spawn off the methods, which run in a separate thread as
// active object invocations.
scheduler->print (r);
}
// Close things down.
scheduler->end ();
scheduler->wait ();
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) Printer instance count is %d, expecting 0\n"),
Printer::instance_count_));
ACE_ASSERT (Printer::instance_count_ == 0);
#endif /* ACE_HAS_THREADS */
ACE_END_TEST;
return 0;
}
| 26.139241 | 81 | 0.638063 | [
"object"
] |
4bfc7288ad8a8ed870c92acf47ebef7f7444dac4 | 826 | cpp | C++ | tests/geometry/algorithm/intersect/circle_circle.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | 17 | 2018-08-22T06:48:20.000Z | 2022-02-22T21:20:09.000Z | tests/geometry/algorithm/intersect/circle_circle.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | tests/geometry/algorithm/intersect/circle_circle.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | // Copyright 2018 Oleksandr Bacherikov.
//
// Distributed under the Boost Software License, Version 1.0
// (see accompanying file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#include <actl/geometry/algorithm/intersect/circle_circle.hpp>
#include "test.hpp"
TEST_CASE("default")
{
circle<int> c0{{0, 0}, 17};
using vpi = std::vector<point<int>>;
std::vector<point<double>> res;
auto dst = std::back_inserter(res);
intersect(c0, circle<int>{{6, 0}, 10}, dst);
CHECK(res.empty());
intersect(c0, circle<int>{{28, 0}, 10}, dst);
CHECK(res.empty());
intersect(c0, circle<int>{{27, 0}, 10}, dst);
CHECK_NEAR(vpi{{17, 0}}, res, 1e-12);
res = {};
intersect(c0, circle<int>{{21, 0}, 10}, dst);
sort(res);
CHECK_NEAR(vpi{{15, -8}, {15, 8}}, res, 1e-12);
}
| 30.592593 | 62 | 0.622276 | [
"geometry",
"vector"
] |
4bfd72202960ce4c92b10806aea8d80e8305594c | 1,613 | cpp | C++ | cpp/1034.coloring-a-border.cpp | Yu-Xiaoxian/leetcode | 294f8240b57810bb16e4acae39e68e81f99f6db1 | [
"Apache-2.0"
] | null | null | null | cpp/1034.coloring-a-border.cpp | Yu-Xiaoxian/leetcode | 294f8240b57810bb16e4acae39e68e81f99f6db1 | [
"Apache-2.0"
] | null | null | null | cpp/1034.coloring-a-border.cpp | Yu-Xiaoxian/leetcode | 294f8240b57810bb16e4acae39e68e81f99f6db1 | [
"Apache-2.0"
] | null | null | null | /*
* @lc app=leetcode id=1034 lang=cpp
*
* [1034] Coloring A Border
*/
#include <vector>
using namespace std;
// @lc code=start
class Solution {
public:
vector<vector<int>> colorBorder(vector<vector<int>>& grid, int r0, int c0, int color) {
int originColor = grid[r0][c0];
int height = grid.size(), width;
if(height > 0){
width = grid[0].size();
}
vector<vector<char>> visited;
visited.reserve(height);
vector<char> tmp;
tmp.resize(width, '0');
for(int i = 0; i<height; i++){
visited.push_back(tmp);
}
fill(grid, r0, c0, originColor, color, visited);
return grid;
}
int fill(vector<vector<int>>& grid, int r, int c, int origColor, int color, vector<vector<char>>& visited){
if(!inArena(grid, r, c)){
return 0;
}
if(visited[r][c] == '1'){
return 1;
}
if(grid[r][c] != origColor){
return 0;
}
visited[r][c] = '1';
int surround = fill(grid, r+1, c, origColor, color, visited)
+ fill(grid, r-1, c, origColor, color, visited)
+ fill(grid, r, c+1, origColor, color, visited)
+ fill(grid, r, c-1, origColor, color, visited);
if(surround < 4)
grid[r][c] = color;
return 1;
}
bool inArena(const vector<vector<int>>& grid, int r, int c){
return r >= 0 && r < grid.size() && c >= 0 && c < grid[0].size();
}
};
// @lc code=end
int main(int argc, char** argv){
Solution solution;
return 0;
} | 26.442623 | 111 | 0.515809 | [
"vector"
] |
ef02556be005f6b783aa2bca1f17386beff68eec | 11,796 | cpp | C++ | video/common/Video/jhcListVSrc.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | 1 | 2020-03-01T13:22:34.000Z | 2020-03-01T13:22:34.000Z | video/common/Video/jhcListVSrc.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | null | null | null | video/common/Video/jhcListVSrc.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | 1 | 2020-07-30T10:24:58.000Z | 2020-07-30T10:24:58.000Z | // jhcListVSrc.cpp : makes a video from a file containing a list of names
//
// Written by Jonathan H. Connell, jconnell@alum.mit.edu
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 1999-2019 IBM 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.
//
///////////////////////////////////////////////////////////////////////////
#include <string.h>
#include "Video/jhcListVSrc.h"
//////////////////////////////////////////////////////////////////////////////
// Register File Extensions //
//////////////////////////////////////////////////////////////////////////////
#ifdef JHC_GVID
#include "Video/jhcVidReg.h"
#if defined(JHC_MSIO)
#if defined(JHC_JRST)
JREG_VSRC(jhcListVSrc, "txt cam lst bmp pgm 664 ras jpg jpeg tif tiff gif png img");
#else
JREG_VSRC(jhcListVSrc, "txt cam lst bmp pgm 664 ras jpg jpeg tif tiff gif png");
#endif
#else
#if defined(JHC_JRST)
JREG_VSRC(jhcListVSrc, "txt cam lst bmp pgm 664 ras jpg jpeg tif tiff img");
#elif defined(JHC_TIFF)
JREG_VSRC(jhcListVSrc, "txt cam lst bmp pgm 664 ras jpg jpeg tif tiff");
#elif defined(JHC_JPEG)
JREG_VSRC(jhcListVSrc, "txt cam lst bmp pgm 664 ras jpg jpeg");
#else
JREG_VSRC(jhcListVSrc, "txt cam lst bmp pgm 664 ras");
#endif
#endif
#endif // JHC_GVID
///////////////////////////////////////////////////////////////////////////
// Creation and Destruction //
///////////////////////////////////////////////////////////////////////////
//= Destructor closes any open list of file names.
jhcListVSrc::~jhcListVSrc ()
{
if (list != NULL)
fclose(list);
delete [] daux; // better done in base class?
}
//= Construct source given a file name.
// index request ignored since simple array indexing suffices
// assumes 1 Hz display framerate
jhcListVSrc::jhcListVSrc (const char *name, int index)
{
// make up space for auxilliary data
daux = new UC8[256];
// set up default values
strcpy_s(kind, "jhcListVSrc");
def = 0;
frt = 0.0;
list = NULL;
aspect = 1.0;
freq = 1.0;
strcpy_s(list_name, name);
ParseName(name);
// make a list of names if needed, then start reading
if (strchr(BaseName, '*') != NULL)
make_list();
if ((strcmp(Ext, ".txt") == 0) || (strcmp(Ext, ".cam") == 0) || (strcmp(Ext, ".lst") == 0))
ok = read_list();
else
ok = repeat_img();
}
//= Return either base filename or full filename for current image.
const char *jhcListVSrc::FrameName (int idx_wid, int full)
{
if (full > 0)
return iname.File();
return iname.Base();
}
//= Find the index of the frame whose image file name matches tag.
// returns -1 if no match, else gives proper starting frame number
// Note: leaves video source positioned so named image is next Get
int jhcListVSrc::FrameMatch (const char *tag)
{
if (!Valid() || (tag == NULL) || (*tag == '\0'))
return -1;
// rewind video and scan image names
Rewind();
while (next_line() > 0)
{
// turn file line into image name
jio.BuildName(entry, -1);
iname.ParseName(jio.File());
// save number if matching name image found
if (strcmp(iname.Base(), tag) == 0)
{
// unread last image name
fseek(list, backup, SEEK_SET);
return nextread;
}
nextread++;
}
// rewind for failure
Rewind();
return -1;
}
///////////////////////////////////////////////////////////////////////////
// Initialization //
///////////////////////////////////////////////////////////////////////////
//= Set up to repeat a single image many times.
int jhcListVSrc::repeat_img ()
{
char dname[500];
// check that main image exists
nframes = 1; // default number of repeats
iname.ParseName(list_name);
if (jio.Specs(&w, &h, &d, list_name, 1) <= 0)
return 0;
// see if there is an associated secondary (depth) image
sprintf_s(dname, "%s_z.ras", iname.Trimmed());
if (jio.Specs(&w2, &h2, &d2, dname, -1) > 0)
kinect_geom();
return 1;
}
//= Hack based on depth image size to set Kinect 1 vs 2 geometry.
void jhcListVSrc::kinect_geom ()
{
// Kinect 2 geometry (h2 = 540)
if (h2 > 500)
{
flen2 = 540.685; // was 535
dsc2 = 1.0;
flen = flen2;
if (w > 1000)
flen *= 2.0;
return;
}
// Kinect 1 geometry (h2 = 480)
flen2 = 525.0;
dsc2 = 0.9659;
flen = flen2;
if (w > 1000)
flen *= 2.0;
}
//= Determine all files which match the given specification.
// creates a script file (because commands are int) then executes
// for DOS and Windows makes temporary batch file
// e.g."\s3vvc5m3.bat" containing commands:
// @echo off
// <working-disk>:
// cd <working-directory>
// <pattern-disk>:
// cd <pattern-directory>
// dir /ON/B <base-pattern> > <place>
void jhcListVSrc::make_list ()
{
char *start;
char clean[250], script[250], list[250] = "tmp_list.lst";
FILE *out;
// create first line specifying target directory
if (fopen_s(&out, list, "w") != 0)
return;
fprintf(out, "%s*\n", JustDir);
fclose(out);
// make sure pattern has no forward slashes
strcpy_s(clean, FileName);
start = clean;
while (*start != '\0')
if (*start == '/')
*start++ = '\\';
else
start++;
// create a new script file which will append name list
sprintf_s(script, "dir /ON/B/-W/-P/A:-D \"%s\" >> %s", clean, list);
system(script);
strcpy_s(list_name, list);
ParseName(list_name);
}
//= Create instructions to go to some directory.
// automatically handles change of disk if needed
void jhcListVSrc::shift_dir (FILE *out, char *path)
{
char misc[250];
char *rest;
int n;
// if no disk change required, just change directory
strcpy_s(misc, path);
if ((rest = strchr(misc, ':')) == NULL)
{
fprintf(out, "cd %s\n", path);
return;
}
// else change disk first then directory
*rest = '\0';
fprintf(out, "%s:\n", misc);
rest++;
n = (int) strlen(rest) - 1;
if (rest[n] == '\\')
rest[n] = '\0';
fprintf(out, "cd %s\n", rest);
}
//= Read a formatted list of images (binds "list" pointer).
// first line may be special framerate spec, e.g. ">FPS 30.0"
// first line may be spec default with "*" for file names
// assumes all images will be same size as first one
int jhcListVSrc::read_list ()
{
int n = 1;
char full[500], dname[500];
// open file and check first line (or two)
if (fopen_s(&list, list_name, "r") != 0)
return 0;
if (next_line() <= 0)
return 0;
// special framerate specifier found so parse and then read next line
if (strncmp(entry, ">FPS ", 5) == 0)
{
if (sscanf_s(entry + 5, "%f", &frt) != 1)
return 0;
freq = frt;
if (next_line() <= 0)
return 0;
}
// if first line is a default specification
// append listing file's directory unless a different disk is mentioned
if (strchr(entry, '*') != NULL)
{
def = 1;
if (strchr(entry, ':') != NULL)
strcpy_s(full, entry);
else if ((strstr(entry, "//") != NULL) || (strstr(entry, "\\\\") != NULL))
sprintf_s(full, "%s%s", DiskSpec, entry + 1);
else
sprintf_s(full, "%s%s", JustDir, entry);
jio.SaveSpec(full);
}
else
jio.SaveDir(FileName);
// determine standard image size (must be at least one image in list)
if (def != 0)
if (next_line() <= 0)
return 0;
if (jio.Specs(&w, &h, &d, entry, -1) <= 0)
return 0;
iname.ParseName(jio.File());
// see if there is an associated secondary (depth) image
sprintf_s(dname, "%s_z.ras", iname.Trimmed());
if (jio.Specs(&w2, &h2, &d2, dname, -1) > 0)
kinect_geom();
// count rest of lines to give total number of "frames"
// then rewind file to access filenames in order (after default)
while (next_line() > 0)
n++;
nframes = n;
if (reset_list() <= 0)
return 0;
return 1;
}
//= Get back to first file name in list.
int jhcListVSrc::reset_list ()
{
rewind(list);
backup = ftell(list);
if (frt != 0.0)
if (next_line() <= 0)
return 0;
if (def != 0)
if (next_line() <= 0)
return 0;
previous = 0;
return 1;
}
//= Eliminates leading and trailing whitespace.
// allows embedded spaces but alters given string
// copies valid portion to "entry" variable
int jhcListVSrc::next_line ()
{
int i = 0;
char *begin;
char line[500];
// remember starting file position then scan for valid line
backup = ftell(list);
while (i == 0)
{
// find next non-blank line in file
if (feof(list))
return 0;
if (fgets(line, 500, list) == NULL)
return 0;
// prune whitespace from front
begin = line;
while (*begin != '\0')
if (strchr(" \n\r", *begin) != NULL)
begin++;
else
break;
// prune whitespace from back
for (i = (int) strlen(begin); i > 0; i--)
if (strchr(" \n\r", begin[i - 1]) == NULL)
break;
}
// valid portion of line found, so copy to output
begin[i] = '\0';
strcpy_s(entry, begin);
return 1;
}
///////////////////////////////////////////////////////////////////////////
// Retrieval //
///////////////////////////////////////////////////////////////////////////
//= Position file pointer so desired line is the next one read.
int jhcListVSrc::iSeek (int number)
{
int now = previous + 1;
// figure out where file pointer is now and if it needs to move
if (jumped != 0)
now = nextread;
if ((number == now) || (list == NULL))
return 1;
// if small number, start over from beginning of list
if (number < now)
{
if (reset_list() <= 0)
return 0;
now = previous + 1;
}
// advance by appropriate number of name entries
while (now++ < number)
if (next_line() <= 0)
return 0;
return 1;
}
//= Read next image on list, or the basic file if no list.
// ignores "block" argument since not a live source
// NOTE: resizes destination image to match file
int jhcListVSrc::iGet (jhcImg &dest, int *advance, int src, int block)
{
char dname[500];
if (list != NULL)
{
// advance to next still image in list (if any)
if (next_line() <= 0)
return 0;
// build frame name for primary image
jio.BuildName(entry, -1);
iname.ParseName(jio.File());
}
// load pixels (and possibly auxilliary data)
if ((src > 0) && (d2 > 0))
{
// convert name to background depth image instead
sprintf_s(dname, "%s_z.ras", iname.Trimmed());
naux = jio.LoadResize(dest, dname, 1, 256, daux);
}
else
naux = jio.LoadResize(dest, iname.File(), 1, 256, daux);
return naux;
}
//= See if there is an associated depth image.
// NOTE: resizes destination images to match files
int jhcListVSrc::iDual (jhcImg& dest, jhcImg& dest2)
{
char dname[500];
int ans, n;
// get basic (color) image
ans = iGet(dest, &n, 0, 1);
if (ans <= 0)
return ans;
// get secondary (depth) image
if (d2 <= 0)
return dest2.CopyArr(dest);
sprintf_s(dname, "%s_z.ras", iname.Trimmed());
return jio.LoadResize(dest2, dname, 1);
}
| 25.259101 | 93 | 0.567396 | [
"geometry"
] |
ef070b93846914295e2b620c8ef382827f4be257 | 11,168 | cc | C++ | GeneratorInterface/Herwig7Interface/src/Herwig7Interface.cc | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | GeneratorInterface/Herwig7Interface/src/Herwig7Interface.cc | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | GeneratorInterface/Herwig7Interface/src/Herwig7Interface.cc | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | /** \class Herwig7Interface
*
* Marco A. Harrendorf marco.harrendorf@cern.ch
* Dominik Beutel dominik.beutel@cern.ch
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <memory>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <boost/shared_ptr.hpp>
#include <boost/filesystem.hpp>
#include <HepMC/GenEvent.h>
#include <HepMC/PdfInfo.h>
#include <HepMC/IO_GenEvent.h>
#include <Herwig/API/HerwigAPI.h>
#include <ThePEG/Utilities/DynamicLoader.h>
#include <ThePEG/Repository/Repository.h>
#include <ThePEG/Handlers/EventHandler.h>
#include <ThePEG/Handlers/XComb.h>
#include <ThePEG/EventRecord/Event.h>
#include <ThePEG/EventRecord/Particle.h>
#include <ThePEG/EventRecord/Collision.h>
#include <ThePEG/EventRecord/TmpTransform.h>
#include <ThePEG/Config/ThePEG.h>
#include <ThePEG/PDF/PartonExtractor.h>
#include <ThePEG/PDF/PDFBase.h>
#include <ThePEG/Utilities/UtilityBase.h>
#include <ThePEG/Vectors/HepMCConverter.h>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "GeneratorInterface/Core/interface/ParameterCollector.h"
#include "GeneratorInterface/Herwig7Interface/interface/Proxy.h"
#include "GeneratorInterface/Herwig7Interface/interface/RandomEngineGlue.h"
#include "GeneratorInterface/Herwig7Interface/interface/Herwig7Interface.h"
#include "CLHEP/Random/RandomEngine.h"
using namespace std;
using namespace gen;
Herwig7Interface::Herwig7Interface(const edm::ParameterSet &pset) :
randomEngineGlueProxy_(ThePEG::RandomEngineGlue::Proxy::create()),
dataLocation_(ParameterCollector::resolve(pset.getParameter<string>("dataLocation"))),
generator_(pset.getParameter<string>("generatorModule")),
run_(pset.getParameter<string>("run")),
dumpConfig_(pset.getUntrackedParameter<string>("dumpConfig", "HerwigConfig.in")),
skipEvents_(pset.getUntrackedParameter<unsigned int>("skipEvents", 0))
{
// Write events in hepmc ascii format for debugging purposes
string dumpEvents = pset.getUntrackedParameter<string>("dumpEvents", "");
if (!dumpEvents.empty()) {
iobc_.reset(new HepMC::IO_GenEvent(dumpEvents, ios::out));
edm::LogInfo("ThePEGSource") << "Event logging switched on (=> " << dumpEvents << ")";
}
// Clear dumpConfig target
if (!dumpConfig_.empty())
ofstream cfgDump(dumpConfig_.c_str(), ios_base::trunc);
}
Herwig7Interface::~Herwig7Interface () noexcept
{
if (eg_)
eg_->finalize();
edm::LogInfo("Herwig7Interface") << "Event generator finalized";
}
void Herwig7Interface::setPEGRandomEngine(CLHEP::HepRandomEngine* v) {
randomEngineGlueProxy_->setRandomEngine(v);
randomEngine = v;
ThePEG::RandomEngineGlue *rnd = randomEngineGlueProxy_->getInstance();
if(rnd) {
rnd->setRandomEngine(v);
}
}
void Herwig7Interface::initRepository(const edm::ParameterSet &pset)
{
std::string runModeTemp = pset.getUntrackedParameter<string>("runModeList","read,run");
// To Lower
std::transform(runModeTemp.begin(), runModeTemp.end(), runModeTemp.begin(), ::tolower);
while(!runModeTemp.empty())
{
// Split first part of List
std::string choice;
size_t pos = runModeTemp.find(",");
if (std::string::npos == pos)
choice=runModeTemp;
else
choice = runModeTemp.substr(0, pos);
if (pos == std::string::npos)
runModeTemp.erase();
else
runModeTemp.erase(0, pos+1);
// construct HerwigUIProvider object and return it as global object
HwUI_ = new Herwig::HerwigUIProvider(pset, dumpConfig_, Herwig::RunMode::READ);
edm::LogInfo("Herwig7Interface") << "HerwigUIProvider object with run mode " << HwUI_->runMode() << " created.\n";
// Chose run mode
if ( choice == "read" )
{
createInputFile(pset);
HwUI_->setRunMode(Herwig::RunMode::READ, pset, dumpConfig_);
edm::LogInfo("Herwig7Interface") << "Input file " << dumpConfig_ << " will be passed to Herwig for the read step.\n";
callHerwigGenerator();
}
else if ( choice == "build" )
{
createInputFile(pset);
HwUI_->setRunMode(Herwig::RunMode::BUILD, pset, dumpConfig_);
edm::LogInfo("Herwig7Interface") << "Input file " << dumpConfig_ << " will be passed to Herwig for the build step.\n";
callHerwigGenerator();
}
else if ( choice == "integrate" )
{
std::string runFileName = run_ + ".run";
edm::LogInfo("Herwig7Interface") << "Run file " << runFileName << " will be passed to Herwig for the integrate step.\n";
HwUI_->setRunMode(Herwig::RunMode::INTEGRATE, pset, runFileName);
callHerwigGenerator();
}
else if ( choice == "run" )
{
std::string runFileName = run_ + ".run";
edm::LogInfo("Herwig7Interface") << "Run file " << runFileName << " will be passed to Herwig for the run step.\n";
HwUI_->setRunMode(Herwig::RunMode::RUN, pset, runFileName);
}
else
{
edm::LogInfo("Herwig7Interface") << "Cannot recognize \"" << choice << "\".\n"
<< "Trying to skip step.\n";
continue;
}
}
}
void Herwig7Interface::callHerwigGenerator()
{
try {
edm::LogInfo("Herwig7Interface") << "callHerwigGenerator function invoked with run mode " << HwUI_->runMode() << ".\n";
// Call program switches according to runMode
switch ( HwUI_->runMode() ) {
case Herwig::RunMode::INIT: Herwig::API::init(*HwUI_); break;
case Herwig::RunMode::READ: Herwig::API::read(*HwUI_); break;
case Herwig::RunMode::BUILD: Herwig::API::build(*HwUI_); break;
case Herwig::RunMode::INTEGRATE: Herwig::API::integrate(*HwUI_); break;
case Herwig::RunMode::MERGEGRIDS: Herwig::API::mergegrids(*HwUI_); break;
case Herwig::RunMode::RUN: {
HwUI_->setSeed(randomEngine->getSeed());
eg_ = Herwig::API::prepareRun(*HwUI_); break;}
case Herwig::RunMode::ERROR:
edm::LogError("Herwig7Interface") << "Error during read in of command line parameters.\n"
<< "Program execution will stop now.";
return;
default:
HwUI_->quitWithHelp();
}
return;
}
catch ( ThePEG::Exception & e ) {
edm::LogError("Herwig7Interface") << ": ThePEG::Exception caught.\n"
<< e.what() << '\n'
<< "See logfile for details.\n";
return;
}
catch ( std::exception & e ) {
edm::LogError("Herwig7Interface") << ": " << e.what() << '\n';
return;
}
catch ( const char* what ) {
edm::LogError("Herwig7Interface") << ": caught exception: "
<< what << "\n";
return;
}
}
bool Herwig7Interface::initGenerator()
{
if ( HwUI_->runMode() == Herwig::RunMode::RUN) {
edm::LogInfo("Herwig7Interface") << "Starting EventGenerator initialization";
callHerwigGenerator();
edm::LogInfo("Herwig7Interface") << "EventGenerator initialized";
// Skip events
for (unsigned int i = 0; i < skipEvents_; i++) {
flushRandomNumberGenerator();
eg_->shoot();
edm::LogInfo("Herwig7Interface") << "Event discarded";
}
return true;
} else {
edm::LogInfo("Herwig7Interface") << "Stopped EventGenerator due to missing run mode.";
return false;
/*
throw cms::Exception("Herwig7Interface")
<< "EventGenerator could not be initialized due to wrong run mode!" << endl;
*/
}
}
void Herwig7Interface::flushRandomNumberGenerator()
{
/*ThePEG::RandomEngineGlue *rnd = randomEngineGlueProxy_->getInstance();
if (!rnd)
edm::LogWarning("ProxyMissing")
<< "ThePEG not initialised with RandomEngineGlue.";
else
rnd->flush();
*/
}
unique_ptr<HepMC::GenEvent> Herwig7Interface::convert(
const ThePEG::EventPtr &event)
{
return std::unique_ptr<HepMC::GenEvent>(
ThePEG::HepMCConverter<HepMC::GenEvent>::convert(*event));
}
double Herwig7Interface::pthat(const ThePEG::EventPtr &event)
{
using namespace ThePEG;
if (!event->primaryCollision())
return -1.0;
tSubProPtr sub = event->primaryCollision()->primarySubProcess();
TmpTransform<tSubProPtr> tmp(sub, Utilities::getBoostToCM(
sub->incoming()));
double pthat = (*sub->outgoing().begin())->momentum().perp() / ThePEG::GeV;
for(PVector::const_iterator it = sub->outgoing().begin();
it != sub->outgoing().end(); ++it)
pthat = std::min<double>(pthat, (*it)->momentum().perp() / ThePEG::GeV);
return pthat;
}
void Herwig7Interface::createInputFile(const edm::ParameterSet &pset)
{
/* Initialize the input config for Herwig from
* 1. the Herwig7 config files
* 2. the CMSSW config blocks
* Writes them to an output file which is read by Herwig
*/
stringstream logstream;
// Contains input config passed to Herwig
stringstream herwiginputconfig;
// Define output file to which input config is written, too, if dumpConfig parameter is set.
// Otherwise use default file HerwigConfig.in which is read in by Herwig
ofstream cfgDump;
cfgDump.open(dumpConfig_.c_str(), ios_base::app);
// Read Herwig config files as input
vector<string> configFiles = pset.getParameter<vector<string> >("configFiles");
// Loop over the config files
for ( const auto & iter : configFiles ) {
// Open external config file
ifstream externalConfigFile (iter);
if (externalConfigFile.is_open()) {
edm::LogInfo("Herwig7Interface") << "Reading config file (" << iter << ")" << endl;
stringstream configFileStream;
configFileStream << externalConfigFile.rdbuf();
string configFileContent = configFileStream.str();
// Comment out occurence of saverun in config file since it is set later considering run and generator option
string searchKeyword("saverun");
if(configFileContent.find(searchKeyword) !=std::string::npos) {
edm::LogInfo("Herwig7Interface") << "Commented out saverun command in external input config file(" << iter << ")" << endl;
configFileContent.insert(configFileContent.find(searchKeyword),"#");
}
herwiginputconfig << "# Begin Config file input" << endl << configFileContent << endl << "# End Config file input";
edm::LogInfo("Herwig7Interface") << "Finished reading config file (" << iter << ")" << endl;
}
else {
edm::LogWarning("Herwig7Interface") << "Could not read config file (" << iter << ")" << endl;
}
}
edm::LogInfo("Herwig7Interface") << "Start with processing CMSSW config" << endl;
// Read CMSSW config file parameter sets starting from "parameterSets"
ParameterCollector collector(pset);
ParameterCollector::const_iterator iter;
iter = collector.begin();
herwiginputconfig << endl << "# Begin Parameter set input\n" << endl;
for(; iter != collector.end(); ++iter) {
herwiginputconfig << *iter << endl;
}
// Add some additional necessary lines to the Herwig input config
herwiginputconfig << "saverun " << run_ << " " << generator_ << endl;
// write the ProxyID for the RandomEngineGlue to fill its pointer in
ostringstream ss;
ss << randomEngineGlueProxy_->getID();
//herwiginputconfig << "set " << generator_ << ":RandomNumberGenerator:ProxyID " << ss.str() << endl;
// Dump Herwig input config to file, so that it can be read by Herwig
cfgDump << herwiginputconfig.str() << endl;
cfgDump.close();
}
| 32.091954 | 126 | 0.680963 | [
"object",
"vector",
"transform"
] |
ef09f9948687bbc5a9b044c2113c213dcefb676f | 868 | cpp | C++ | 0043-Maximum Subarray III/0043-Maximum Subarray III.cpp | lightwindy/LintCode-1 | 316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0001-0100/0043-Maximum Subarray III/0043-Maximum Subarray III.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0001-0100/0043-Maximum Subarray III/0043-Maximum Subarray III.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
/**
* @param nums: A list of integers
* @param k: An integer denote to find k non-overlapping subarrays
* @return: An integer denote the sum of max k non-overlapping subarrays
*/
int maxSubArray(vector<int> nums, int k) {
// write your code here
int n = nums.size();
vector<vector<int>> local(1 + k, vector<int>(1 + n));
vector<vector<int>> global(1 + k, vector<int>(1 + n));
for (int i = 1; i <= k; ++i)
{
local[i][i - 1] = INT_MIN;
global[i][i - 1] = INT_MIN;
for (int j = i; j <= n; ++j)
{
local[i][j] = max(local[i][j - 1], global[i - 1][j - 1]) + nums[j - 1];
global[i][j] = max(global[i][j - 1], local[i][j]);
}
}
return global[k][n];
}
};
| 32.148148 | 87 | 0.46659 | [
"vector"
] |
ef0ef87e0a2c4a7f07585a2c91c98eb72986045b | 5,680 | cc | C++ | rocksdb.cc | cighao/ycsb-c | 4e58ead9d5174778dedc51a79a0f3568a6fcc4d5 | [
"Apache-2.0"
] | 1 | 2019-09-30T05:50:14.000Z | 2019-09-30T05:50:14.000Z | rocksdb.cc | cighao/ycsb-c | 4e58ead9d5174778dedc51a79a0f3568a6fcc4d5 | [
"Apache-2.0"
] | null | null | null | rocksdb.cc | cighao/ycsb-c | 4e58ead9d5174778dedc51a79a0f3568a6fcc4d5 | [
"Apache-2.0"
] | null | null | null | /*
* rocksdb.cc
* Hao Chen
* 2019-07-21
*/
#include <cstring>
#include <iostream>
#include <vector>
#include <thread>
#include "core/utils.h"
#include "core/timer.h"
#include "core/rocksdb_client.h"
#include "core/core_workload.h"
#include "db/db_factory.h"
#include "db/rocksdb_db.h"
using namespace std;
void UsageMessage(const char *command);
bool StrStartWith(const char *str, const char *pre);
string ParseCommandLine(int argc, const char *argv[], utils::Properties &props);
void check_args(utils::Properties &props);
void DelegateClient(ycsbc::RocksDB *db, ycsbc::CoreWorkload *wl, const int num_ops, bool is_loading) {
ycsbc::RocksDBClient client(*db, *wl);
if (!is_loading){
rocksdb::SetPerfLevel(rocksdb::PerfLevel::kEnableTimeExceptForMutex);
rocksdb::get_perf_context()->Reset();
rocksdb::get_iostats_context()->Reset();
}
for (int i = 0; i < num_ops; i++) {
if (is_loading) {
client.DoInsert();
} else {
client.DoTransaction();
}
}
if (!is_loading){
client.AddState();
}
}
int main(const int argc, const char *argv[]) {
utils::Properties props;
string file_name = ParseCommandLine(argc, argv, props);
ycsbc::CoreWorkload wl;
wl.Init(props);
printf("Data location: %s\n", props.GetProperty("data_dir").c_str());
printf("Log location: %s\n", props.GetProperty("log_dir").c_str());
printf("Threads number: %s\n", props.GetProperty("threadcount").c_str());
printf("Log files number: %s\n", props.GetProperty("logs_num").c_str());
ycsbc::RocksDB rocksdb(props.GetProperty("data_dir"),
props.GetProperty("log_dir"),
stoi(props.GetProperty("logs_num")));
const int num_threads = stoi(props.GetProperty("threadcount", "1"));
int total_ops = stoi(props[ycsbc::CoreWorkload::RECORD_COUNT_PROPERTY]);
int ops_per_thread = total_ops / num_threads;
// load
std::vector<std::thread> threads;
for(int i=0; i<num_threads; i++){
threads.push_back(std::thread(DelegateClient, &rocksdb, &wl, ops_per_thread, true));
}
for(int i=0; i<num_threads; i++){
threads[i].join();
}
// request
rocksdb.Reset();
threads.clear();
total_ops = stoi(props[ycsbc::CoreWorkload::OPERATION_COUNT_PROPERTY]);
ops_per_thread = total_ops / num_threads;
auto start = std::chrono::high_resolution_clock::now();
for(int i=0; i<num_threads; i++){
threads.push_back(std::thread(DelegateClient, &rocksdb, &wl, ops_per_thread, false));
}
for(int i=0; i<num_threads; i++){
threads[i].join();
}
auto end = std::chrono::high_resolution_clock::now();
double time = std::chrono::duration<double>(end - start).count() * 1000;
double iops = total_ops / (time / 1000);
printf("total IOPS: %.3lf\n", iops);
rocksdb.PrintState();
return 0;
}
string ParseCommandLine(int argc, const char *argv[], utils::Properties &props) {
int argindex = 1;
string filename;
while (argindex < argc && StrStartWith(argv[argindex], "-")) {
if (strcmp(argv[argindex], "-threads") == 0) {
argindex++;
if (argindex >= argc) {
UsageMessage(argv[0]);
exit(0);
}
props.SetProperty("threadcount", argv[argindex]);
argindex++;
}else if (strcmp(argv[argindex], "-logs") == 0) {
argindex++;
if (argindex >= argc) {
UsageMessage(argv[0]);
exit(0);
}
props.SetProperty("logs_num", argv[argindex]);
argindex++;
}else if (strcmp(argv[argindex], "-datadir") == 0) {
argindex++;
if (argindex >= argc) {
UsageMessage(argv[0]);
exit(0);
}
props.SetProperty("data_dir", argv[argindex]);
argindex++;
}else if (strcmp(argv[argindex], "-logdir") == 0) {
argindex++;
if (argindex >= argc) {
UsageMessage(argv[0]);
exit(0);
}
props.SetProperty("log_dir", argv[argindex]);
argindex++;
} else if (strcmp(argv[argindex], "-slaves") == 0) {
argindex++;
if (argindex >= argc) {
UsageMessage(argv[0]);
exit(0);
}
props.SetProperty("slaves", argv[argindex]);
argindex++;
} else if (strcmp(argv[argindex], "-P") == 0) {
argindex++;
if (argindex >= argc) {
UsageMessage(argv[0]);
exit(0);
}
filename.assign(argv[argindex]);
ifstream input(argv[argindex]);
try {
props.Load(input);
} catch (const string &message) {
printf("%s\n", message.c_str());
exit(0);
}
input.close();
argindex++;
} else {
printf("Unknown option '%s'\n", argv[argindex]);
exit(0);
}
}
if (argindex == 1 || argindex != argc) {
UsageMessage(argv[0]);
exit(0);
}
check_args(props);
return filename;
}
void UsageMessage(const char *command) {
printf("Usage: %s [options]\n", command);
printf("Options:\n");
printf(" -threads n: execute using n threads (default: 1)\n");
printf(" -P propertyfile: load properties from the given file. Multiple files can ");
printf("be specified, and will be processed in the order specified\n");
}
inline bool StrStartWith(const char *str, const char *pre) {
return strncmp(str, pre, strlen(pre)) == 0;
}
void check_args(utils::Properties &props){
// TODO
} | 31.555556 | 102 | 0.576761 | [
"vector"
] |
ef1512185c187258d27c4a94faf273d8c1131230 | 1,897 | cc | C++ | PROIECT/core/entry.cc | m3sserschmitt/lab_poo | 6d635cb395f908efa8502005964edf52cdcb643c | [
"MIT"
] | null | null | null | PROIECT/core/entry.cc | m3sserschmitt/lab_poo | 6d635cb395f908efa8502005964edf52cdcb643c | [
"MIT"
] | null | null | null | PROIECT/core/entry.cc | m3sserschmitt/lab_poo | 6d635cb395f908efa8502005964edf52cdcb643c | [
"MIT"
] | null | null | null | #include "./include/entry.h"
#include "../util/include/util.h"
#include <vector>
using namespace std;
Entry::Entry() {}
Entry::Entry(string name)
{
this->name = name;
}
Entry::Entry(const Entry &e)
{
this->name = e.name;
this->date = e.date;
}
Entry::~Entry() {}
void Entry::set_date(Date date)
{
this->date = date;
}
void Entry::set_date(int day, int month, int year)
{
this->set_date(Date(day, month, year));
}
void Entry::set_name(string name)
{
this->name = name;
}
string Entry::get_name() const
{
return this->name;
}
Date Entry::get_date() const
{
return this->date;
}
bool Entry::in_range(const DateRange &range) const
{
return this->date >= range.get_begin() and this->date <= range.get_end();
}
void Entry::read_map(ifstream &in, map<string, string> &m)
{
string data;
vector<string> tokens;
do
{
getline(in, data);
tokens = split(data, ":", 1);
if (tokens.size() == 2)
{
strip(tokens[0], " ");
strip(tokens[1], " ");
m[tokens[0]] = tokens[1];
}
} while (data.size());
}
bool operator==(const Entry &e1, const Entry &e2)
{
if (typeid(e1) == typeid(e2))
{
return e1.name == e2.name and not e1.compare(e2);
}
Entry *entry = dynamic_cast<Entry *>(&(Entry &)e2);
if (entry)
{
return not e1.compare(*entry);
}
return false;
}
bool operator!=(const Entry &e1, const Entry &e2)
{
return not(e1 == e2);
}
ostream &operator<<(ostream &out, const Entry &entry)
{
out << entry.to_string();
return out;
}
/*
ofstream &operator<<(ofstream &out, const Entry &entry)
{
out << entry.to_string2();
return out;
}
*/
istream &operator>>(istream &in, Entry &entry)
{
return entry.read(in);
}
ifstream &operator>>(ifstream &in, Entry &entry)
{
return entry.read2(in);
}
| 15.941176 | 77 | 0.579863 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.